<commit_before>package org.jsync.sync;

import java.io.File;
import java.io.IOException;
import java.net.URI;
import java.net.URISyntaxException;
import java.util.List;

import org.eclipse.jgit.api.CreateBranchCommand.SetupUpstreamMode;
import org.eclipse.jgit.api.Git;
import org.eclipse.jgit.api.MergeCommand.FastForwardMode;
import org.eclipse.jgit.api.MergeResult;
import org.eclipse.jgit.api.PullResult;
import org.eclipse.jgit.api.Status;
import org.eclipse.jgit.api.errors.GitAPIException;
import org.eclipse.jgit.api.errors.NoFilepatternException;
import org.eclipse.jgit.diff.DiffEntry;
import org.eclipse.jgit.diff.DiffFormatter;
import org.eclipse.jgit.diff.RawTextComparator;
import org.eclipse.jgit.lib.Constants;
import org.eclipse.jgit.lib.RefUpdate.Result;
import org.eclipse.jgit.lib.StoredConfig;
import org.eclipse.jgit.merge.MergeStrategy;
import org.eclipse.jgit.revwalk.RevWalk;
import org.eclipse.jgit.transport.FetchResult;
import org.eclipse.jgit.transport.TrackingRefUpdate;
import org.eclipse.jgit.transport.URIish;
import org.eclipse.jgit.util.io.DisabledOutputStream;

import lombok.val;

public class Puller extends Updater {
	private final String remote;

	public Puller() throws NoFilepatternException, IOException, GitAPIException {
		this("res", "master", "http://github.com/Ughuuu/JavaSync.git");
	}

	public Puller(String localFolder, String branch, String remote)
			throws IOException, NoFilepatternException, GitAPIException {
		// super(localFolder, branch);
		this.remote = remote;
		val head = repository.resolve(Constants.HEAD);
		try {
			Git result = Git.cloneRepository().setURI(remote).setDirectory(new File(localFolder)).call();
			result.close();
		} catch (Exception e) {
		}
	}<commit_msg>set defaault to assets<commit_after>package org.jsync.sync;

import java.io.File;
import java.io.IOException;
import java.net.URI;
import java.net.URISyntaxException;
import java.util.List;

import org.eclipse.jgit.api.CreateBranchCommand.SetupUpstreamMode;
import org.eclipse.jgit.api.Git;
import org.eclipse.jgit.api.MergeCommand.FastForwardMode;
import org.eclipse.jgit.api.MergeResult;
import org.eclipse.jgit.api.PullResult;
import org.eclipse.jgit.api.Status;
import org.eclipse.jgit.api.errors.GitAPIException;
import org.eclipse.jgit.api.errors.NoFilepatternException;
import org.eclipse.jgit.diff.DiffEntry;
import org.eclipse.jgit.diff.DiffFormatter;
import org.eclipse.jgit.diff.RawTextComparator;
import org.eclipse.jgit.lib.Constants;
import org.eclipse.jgit.lib.RefUpdate.Result;
import org.eclipse.jgit.lib.StoredConfig;
import org.eclipse.jgit.merge.MergeStrategy;
import org.eclipse.jgit.revwalk.RevWalk;
import org.eclipse.jgit.transport.FetchResult;
import org.eclipse.jgit.transport.TrackingRefUpdate;
import org.eclipse.jgit.transport.URIish;
import org.eclipse.jgit.util.io.DisabledOutputStream;

import lombok.val;

public class Puller extends Updater {
	private final String remote;

	public Puller() throws NoFilepatternException, IOException, GitAPIException {
		this("assets", "master", "http://github.com/Ughuuu/JavaSync.git");
	}

	public Puller(String localFolder, String branch, String remote)
			throws IOException, NoFilepatternException, GitAPIException {
		// super(localFolder, branch);
		this.remote = remote;
		val head = repository.resolve(Constants.HEAD);
		try {
			Git result = Git.cloneRepository().setURI(remote).setDirectory(new File(localFolder)).call();
			result.close();
		} catch (Exception e) {
		}
	}
{'fraction_non_alphanumeric': 0.11683848797250859, 'fraction_numerical': 0.0, 'mean_word_length': 5.666030534351145, '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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6332260', 'n_tokens_mistral': 1144, 'n_tokens_neox': 1110, 'n_words': 201}