<commit_before>import java.io.BufferedWriter;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.FileWriter;
import java.io.IOException;
import java.io.OutputStreamWriter;
import java.io.UnsupportedEncodingException;
import java.util.Scanner;

public class Main {
	private static Scanner sc;

	static BufferedWriter bf;
	static String ruta = "Fichero1.txt";
	static File f = new File(ruta);

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		if (f.exists()) {
			try {
				calcularFibonacci(f);
			} catch (IOException e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
			}
		} else {
			instanciarFichero();
		}

	}
	
	/**
	 * Metodo que Instancia el Fichero
	 */

	private static void instanciarFichero() {
		try {
			FileWriter fw = new FileWriter(f);
			bf = new BufferedWriter(fw);
			
			calcularFibonacci(f);

		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}

	}
	
	/**
	 * Metodo que hace la serie Fibonachi y la escribe en el fichero
	 * @param f
	 * @throws IOException
	 */

	public static void calcularFibonacci(File f) throws IOException {
		System.out.println("Introduzca un Numero");
		sc = new Scanner(System.in);
		int m = sc.nextInt();
		BufferedWriter out = null;
		try {
			out = new BufferedWriter(new OutputStreamWriter(
					new FileOutputStream(f, true), "UTF8"));

		} catch (UnsupportedEncodingException | FileNotFoundException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		int acumulador = 1;
		int acumulador2 = 0;
		for (int i = 0; i < m; i++) {
			int total = acumulador + acumulador2;
			acumulador2 = acumulador;
			acumulador = total;
			String acu = Integer.toString(acumulador2);
			out.write(acu);
			
		}
		out.newLine();
		out.close();
	}

}<commit_msg>Ejercicio 4.6 Listo para Entregar<commit_after>import java.io.BufferedWriter;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.FileWriter;
import java.io.IOException;
import java.io.OutputStreamWriter;
import java.io.UnsupportedEncodingException;
import java.util.Scanner;

public class Main {
	private static Scanner sc;

	static BufferedWriter bf;
	static String ruta = "Fichero1.txt";
	static File f = new File(ruta);

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		if (f.exists()) {
			calcularFibonacci(f);
		} else {
			instanciarFichero();
		}

	}
	
	/**
	 * Metodo que Instancia el Fichero
	 */

	private static void instanciarFichero() {
		try {
			FileWriter fw = new FileWriter(f);
			bf = new BufferedWriter(fw);
			
			calcularFibonacci(f);

		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}

	}
	
	/**
	 * Metodo que hace la serie Fibonachi y la escribe en el fichero
	 * @param f
	 * @throws IOException
	 */

	public static void calcularFibonacci(File f)  {
		System.out.println("Introduzca un Numero");
		sc = new Scanner(System.in);
		int m = sc.nextInt();
		BufferedWriter out = null;
		try {
			out = new BufferedWriter(new OutputStreamWriter(
					new FileOutputStream(f, true), "UTF8"));

		} catch (UnsupportedEncodingException | FileNotFoundException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		int acumulador = 1;
		int acumulador2 = 0;
		for (int i = 0; i < m; i++) {
			int total = acumulador + acumulador2;
			acumulador2 = acumulador;
			acumulador = total;
			String acu = Integer.toString(acumulador2);
			try {
				out.write(acu);
			} catch (IOException e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
			}
			
		}
		try {
			out.newLine();
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		try {
			out.close();
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}

}
{'fraction_non_alphanumeric': 0.11646279306829765, 'fraction_numerical': 0.0050968399592252805, 'mean_word_length': 3.289617486338798, 'pattern_counts': {'":': 0, '<': 5, '<?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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7108202', 'n_tokens_mistral': 1525, 'n_tokens_neox': 1320, 'n_words': 348}