<commit_before>package uk.kludje.test.sample;

import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.net.URI;

import static uk.kludje.fn.nary.UTriFunction.asUTriFunction;

public class ArbitraryInterfaces {

  public void invoke() throws IOException {
    call(asUTriFunction(this::download)::apply);
  }

  private boolean download(File target, URI source, Object ignored) throws IOException {
    try (InputStream in = source.toURL().openStream()) {
      return true;
    }
  }

  private void call(Foo foo) {
    foo.exec(new File("foo.txt"), URI.create("http://foo"), null);
  }

  public static interface Foo {<commit_msg>0.2 documentation<commit_after>package uk.kludje.test.sample;

import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.net.URI;

import static uk.kludje.fn.nary.UTriFunction.asUTriFunction;

public class ArbitraryInterfaces {

  public void invoke() throws IOException {
    call(asUTriFunction(this::download)::apply);
  }

  /**This method doesn't work but it might throw an exception*/
  private boolean download(File target, URI source, Object ignored) throws IOException {
    try (InputStream in = source.toURL().openStream()) {
      return true;
    }
  }

  private void call(Foo foo) {
    foo.exec(new File("foo.txt"), URI.create("http://foo"), null);
  }

  public static interface Foo {
{'fraction_non_alphanumeric': 0.12106017191977077, 'fraction_numerical': 0.0014326647564469914, 'mean_word_length': 4.193308550185874, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '141702', 'n_tokens_mistral': 436, 'n_tokens_neox': 420, 'n_words': 111}