repo stringlengths 1 191 ⌀ | file stringlengths 23 351 | code stringlengths 0 5.32M | file_length int64 0 5.32M | avg_line_length float64 0 2.9k | max_line_length int64 0 288k | extension_type stringclasses 1
value |
|---|---|---|---|---|---|---|
SeqTrans | SeqTrans-master/Migration/src/collect/CollectSingleFile.java | package collect;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Calendar;
im... | 8,390 | 31.905882 | 107 | java |
SeqTrans | SeqTrans-master/Migration/src/collect/CommitFileList.java | package collect;
import java.io.BufferedWriter;
import java.io.ByteArrayOutputStream;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
import java.util.LinkedList;
import java.util.List;
import org.apache.... | 10,989 | 37.159722 | 153 | java |
SeqTrans | SeqTrans-master/Migration/src/collect/DiffAnalysis.java | package collect;
import java.io.BufferedWriter;
import java.io.ByteArrayOutputStream;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.HashSet;
import java.util.LinkedHashSet;
import java.util.LinkedList;
import java.util... | 9,748 | 33.817857 | 158 | java |
SeqTrans | SeqTrans-master/Migration/src/collect/FileFilter.java | package collect;
import gumtreediff.gen.srcml.SrcmlJavaTreeGenerator;
import gumtreediff.matchers.MappingStore;
import gumtreediff.matchers.Matcher;
import gumtreediff.matchers.Matchers;
import gumtreediff.tree.TreeContext;
import structure.API;
import structure.Migration;
import utils.FileOperation;
import java.io.*... | 10,214 | 33.510135 | 110 | java |
SeqTrans | SeqTrans-master/Migration/src/collect/FilterDefuse.java | package collect;
import gumtreediff.actions.ActionGenerator;
import gumtreediff.actions.model.Action;
import gumtreediff.io.TreeIoUtils;
import gumtreediff.matchers.MappingStore;
import gumtreediff.matchers.Matcher;
import gumtreediff.matchers.Matchers;
import gumtreediff.tree.ITree;
import gumtreediff.tree.TreeContex... | 20,289 | 35.492806 | 123 | java |
SeqTrans | SeqTrans-master/Migration/src/collect/testcase/CollectFullProject.java | package collect.testcase;
import java.io.File;
import java.io.IOException;
import java.util.List;
import org.apache.commons.exec.CommandLine;
import org.apache.commons.exec.DefaultExecutor;
import org.apache.commons.exec.ExecuteException;
import org.apache.commons.exec.ExecuteWatchdog;
import org.apache.commons.io.Fi... | 2,894 | 36.597403 | 102 | java |
SeqTrans | SeqTrans-master/Migration/src/collect/testcase/CollectTestcase.java | package collect.testcase;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.ByteArrayOutputStream;
import java.io.File;
import java.io.FileDescriptor;
import java.io.FileOutputStream;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import java.net.URL;
impor... | 13,201 | 35.980392 | 122 | java |
SeqTrans | SeqTrans-master/Migration/src/collect/testcase/CountBugNum.java | package collect.testcase;
import org.apache.commons.io.FileUtils;
import org.apache.commons.lang3.tuple.Pair;
import java.io.File;
import java.io.IOException;
import java.util.*;
/**
* Count bug numbers for each repo and then sort them
* @throws Exception
*/
public class CountBugNum {
private static HashMap<St... | 4,887 | 32.710345 | 105 | java |
SeqTrans | SeqTrans-master/Migration/src/collect/testcase/FilterTestcase.java | package collect.testcase;
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Map;
import org.apache.commons.io.FileUtils;
public class FilterTestcase {
public static void main(String[] args) throws Exception{
String cpPa... | 5,837 | 32.745665 | 105 | java |
SeqTrans | SeqTrans-master/Migration/src/collect/testcase/ModifyGradleBuild.java | package collect.testcase;
import java.io.BufferedReader;
import java.io.CharArrayWriter;
import java.io.File;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import org.apache.commons.io.FileUtils;
import... | 4,654 | 37.471074 | 98 | java |
SeqTrans | SeqTrans-master/Migration/src/collect/testcase/ModifyMavenBuild.java | package collect.testcase;
import org.apache.commons.io.FileUtils;
import org.apache.commons.io.filefilter.DirectoryFileFilter;
import org.apache.commons.io.filefilter.FileFilterUtils;
import org.dom4j.Document;
import org.dom4j.DocumentException;
import org.dom4j.Element;
import org.dom4j.io.SAXReader;
import java.io... | 3,819 | 29.806452 | 89 | java |
SeqTrans | SeqTrans-master/Migration/src/collect/testcase/MultiSpotbugsTestRun.java | package collect.testcase;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.util.ArrayList;
import java.util.List;
import org.apache.commons.exec.CommandLine;
import org.apache.commons.exec.D... | 4,154 | 31.209302 | 138 | java |
SeqTrans | SeqTrans-master/Migration/src/collect/testcase/MultiTestRun.java | package collect.testcase;
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashSet;
import java.util.List;
import org.apache.commons.exec.CommandLine;
import org.apache.commons.exec.DefaultExecuteResultHandler;
import org.apache.commons.exec.De... | 5,098 | 34.165517 | 137 | java |
SeqTrans | SeqTrans-master/Migration/src/collect/testcase/SearchLocation.java | package collect.testcase;
import org.apache.commons.io.FileUtils;
import org.apache.commons.io.filefilter.RegexFileFilter;
import org.apache.commons.lang3.StringUtils;
import org.apache.commons.lang3.tuple.Pair;
import java.io.File;
import java.util.*;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
... | 7,753 | 33.15859 | 126 | java |
SeqTrans | SeqTrans-master/Migration/src/collect/testcase/SearchUncompiledProject.java | package collect.testcase;
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import org.apache.commons.io.FileUtils;
import org.apache.commons.io.filefilter.DirectoryFileFilter;
import org.apache.commons.io.filefilter.FileFilterUtils;
impor... | 3,588 | 35.252525 | 101 | java |
SeqTrans | SeqTrans-master/Migration/src/collect/testcase/TestMissingUnkonw.java | package collect.testcase;
import java.io.File;
import org.eclipse.jgit.lib.ObjectId;
import org.eclipse.jgit.lib.Repository;
import org.eclipse.jgit.revwalk.RevCommit;
import org.eclipse.jgit.revwalk.RevWalk;
import org.eclipse.jgit.storage.file.FileRepositoryBuilder;
public class TestMissingUnkonw {
public stati... | 885 | 29.551724 | 62 | java |
SeqTrans | SeqTrans-master/Migration/src/structure/API.java | package structure;
import java.util.ArrayList;
public class API {
private String longName;
private String className;
private String methodName;
private ArrayList<String> params;
public API(String longName, String className, String methodName, ArrayList<String> params) {
this.longName = longName;
this.cla... | 1,769 | 16.878788 | 93 | java |
SeqTrans | SeqTrans-master/Migration/src/structure/ChangePair.java | package structure;
import java.util.List;
import org.eclipse.jgit.diff.DiffEntry;
import org.eclipse.jgit.revwalk.RevCommit;
public class ChangePair {
private RevCommit newCommit;
private RevCommit oldCommit;
private String rootPath;
private String repoName;
private List<DiffEntry> diffs;
public ChangePair(R... | 1,176 | 17.983871 | 85 | java |
SeqTrans | SeqTrans-master/Migration/src/structure/Diff.java | package structure;
public class Diff {
private String oldCommitId;
private String newCommitId;
private String oldPath;
private String newPath;
private String addLine;
private String deleteLine;
private int oldBeginLine;
private int oldEndLine = 0;
private int newBeginLine = 0;
private int newEndLine = 0;
... | 1,425 | 17.763158 | 69 | java |
SeqTrans | SeqTrans-master/Migration/src/structure/Location.java | package structure;
import java.util.List;
import gumtreediff.tree.ITree;
import gumtreediff.tree.TreeContext;
public class Location {
private int BeginLine;
private int LastLine;
private int BeginCol;
private int LastCol;
public Location(SubTree st) {
TreeContext tc = st.getTC();
ITree stRoot = st.getRoo... | 1,653 | 20.763158 | 82 | java |
SeqTrans | SeqTrans-master/Migration/src/test/Debug.java | package test;
import java.io.BufferedWriter;
import java.io.ByteArrayOutputStream;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;
import org.eclipse.jgit.api.Git;
import org.eclipse.jgit.api.errors.GitAPIExce... | 4,861 | 33.978417 | 122 | java |
SeqTrans | SeqTrans-master/Migration/src/test/MavenConfig.java | package test;
import org.apache.commons.io.FileUtils;
import org.apache.commons.io.filefilter.DirectoryFileFilter;
import org.apache.commons.io.filefilter.FileFilterUtils;
import org.dom4j.Document;
import org.dom4j.DocumentException;
import org.dom4j.Element;
import org.dom4j.io.SAXReader;
import java.io.File;
impor... | 3,382 | 30.915094 | 91 | java |
SeqTrans | SeqTrans-master/Migration/src/test/RunJGit.java | package test;
import java.io.File;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import java.io.PrintWriter;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Date;
import java.util.Iterator;
import java.util.List;
import ja... | 9,266 | 37.936975 | 124 | java |
SeqTrans | SeqTrans-master/Migration/src/test/TestGeneration.java | package test;
import gumtreediff.actions.ActionGenerator;
import gumtreediff.actions.model.*;
import gumtreediff.gen.srcml.SrcmlJavaTreeGenerator;
import gumtreediff.io.ActionsIoUtils;
import gumtreediff.io.TreeIoUtils;
import gumtreediff.matchers.Mapping;
import gumtreediff.matchers.MappingStore;
import gumtreediff.m... | 5,460 | 39.451852 | 100 | java |
SeqTrans | SeqTrans-master/Migration/src/test/test.java | package test;
import java.io.File;
import java.io.IOException;
import java.util.Map;
import java.util.Set;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import org.apache.commons.exec.CommandLine;
import org.apache.commons.exec.DefaultExecuteResultHandler;
import org.apache.commons.exec.DefaultExecu... | 1,861 | 34.132075 | 82 | java |
SeqTrans | SeqTrans-master/Migration/src/test/test1.java | //package test;
//
//import gumtreediff.tree.hash.StaticHashGenerator;
//
//public class test1 {
//
// private static final ClassLoader var1 =
// ClassLoadingAwareObjectInputStream.calss.getClassLoader();
// private static String[] var2;
//
// public static boolean isAllAllowed() {
// return getSerialziablePackages(... | 920 | 31.892857 | 68 | java |
SeqTrans | SeqTrans-master/Migration/src/test/test2.java | package test;
import java.io.*;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import org.dom4j.Attribute;
import org.dom4j.Document;
import org.dom4j.DocumentException;
import org.dom4j.Element;
import org.dom4j.io.SAXReader;
/**
* @author liu
* @version 创建时间:2018年3月26日 上午11:22:29
* ... | 2,680 | 33.818182 | 110 | java |
SeqTrans | SeqTrans-master/Migration/src/test/testIO.java | package test;
import java.util.ArrayList;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
public class testIO {
public static void main(String[] args) throws Exception{
ArrayList<String> tests = new ArrayList();
tests.add("abc");
if(tests.get(0).contains("ab"))
System.out.println("True");
... | 1,852 | 33.962264 | 282 | java |
SeqTrans | SeqTrans-master/Migration/src/test/testJGit.java | package test;
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import org.eclipse.jgit.errors.IncorrectObjectTypeException;
import org.eclipse.jgit.lib.ObjectId;
import org.eclipse.jgit.lib.Ref;
import org.eclipse.jgit.lib.Repository;
impor... | 3,557 | 32.885714 | 97 | java |
SeqTrans | SeqTrans-master/Migration/src/utils/CountCPs.java | package utils;
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import org.apache.commons.io.FileUtils;
public class CountCPs {
public static void main(String[] args) throws Exception{
String path = "J:\\Vulnerability_commit";
List<String> cpList = countCPs(pa... | 808 | 24.28125 | 69 | java |
SeqTrans | SeqTrans-master/Migration/src/utils/FileOperation.java | package utils;
import java.io.BufferedInputStream;
import java.io.BufferedOutputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.util.ArrayList;
public class FileOperation {
public static void copyFile(File sourcefile,File targetF... | 3,999 | 30.25 | 136 | java |
SeqTrans | SeqTrans-master/Migration/src/utils/MergeData.java | package utils;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileReader;
import java.io.FileWriter;
import java.util.ArrayList;
public class MergeData {
/**
* Merge training files into the final training set
* @throws Exception
*/
public static void main(... | 3,269 | 27.938053 | 83 | java |
SeqTrans | SeqTrans-master/Migration/src/utils/ReadAPI.java | package utils;
import java.io.*;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.LinkedHashSet;
import structure.API;
public class ReadAPI {
public static void main(String[] args) throws Exception{
String path = "apis_test";
LinkedHashSet<API> apis = readAPI(path);
System.out.println(ap... | 2,565 | 29.188235 | 85 | java |
SeqTrans | SeqTrans-master/Migration/src/utils/SearchTag.java | package utils;
import java.io.File;
import java.io.IOException;
import java.util.Collection;
import java.util.LinkedList;
import java.util.List;
import org.eclipse.jgit.api.Git;
import org.eclipse.jgit.api.LogCommand;
import org.eclipse.jgit.api.errors.GitAPIException;
import org.eclipse.jgit.lib.ObjectId;
import org... | 2,359 | 31.777778 | 125 | java |
SeqTrans | SeqTrans-master/gumtree/AbstractBuild1.java | /*
* The MIT License
*
* Copyright (c) 2004-2010, Sun Microsystems, Inc., Kohsuke Kawaguchi, Yahoo! Inc., CloudBees, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without rest... | 52,051 | 36.746193 | 179 | java |
SeqTrans | SeqTrans-master/gumtree/AbstractBuild2.java | /*
* The MIT License
*
* Copyright (c) 2004-2010, Sun Microsystems, Inc., Kohsuke Kawaguchi, Yahoo! Inc., CloudBees, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without rest... | 52,097 | 36.77955 | 179 | java |
SeqTrans | SeqTrans-master/gumtree/AbstractProject1.java | /*
* The MIT License
*
* Copyright (c) 2004-2011, Sun Microsystems, Inc., Kohsuke Kawaguchi,
* Brian Westrich, Erik Ramfelt, Ertan Deniz, Jean-Baptiste Quenot,
* Luca Domenico Milanesio, R. Tyler Ballance, Stephen Connolly, Tom Huybrechts,
* id:cactusman, Yahoo! Inc., Andrew Bayer, Manufacture Francaise des Pneum... | 84,413 | 35.574523 | 218 | java |
SeqTrans | SeqTrans-master/gumtree/AbstractProject2.java | /*
* The MIT License
*
* Copyright (c) 2004-2011, Sun Microsystems, Inc., Kohsuke Kawaguchi,
* Brian Westrich, Erik Ramfelt, Ertan Deniz, Jean-Baptiste Quenot,
* Luca Domenico Milanesio, R. Tyler Ballance, Stephen Connolly, Tom Huybrechts,
* id:cactusman, Yahoo! Inc., Andrew Bayer, Manufacture Francaise des Pneum... | 85,167 | 35.55279 | 218 | java |
SeqTrans | SeqTrans-master/gumtree/AccountInstance.java | package org.telegram.messenger;
import org.telegram.tgnet.ConnectionsManager;
public class AccountInstance {
private int currentAccount;
private static volatile AccountInstance[] Instance = new AccountInstance[UserConfig.MAX_ACCOUNT_COUNT];
public static AccountInstance getInstance(int num) {
Acc... | 1,750 | 29.189655 | 107 | java |
SeqTrans | SeqTrans-master/gumtree/AccountInstance2.java | package org.telegram.messenger;
import android.content.SharedPreferences;
import org.telegram.tgnet.ConnectionsManager;
public class AccountInstance {
private int currentAccount;
private static volatile AccountInstance[] Instance = new AccountInstance[UserConfig.MAX_ACCOUNT_COUNT];
public static Account... | 2,804 | 29.48913 | 107 | java |
SeqTrans | SeqTrans-master/gumtree/DefaultSubscriptionRegistry1.java | /*
* Copyright 2002-2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... | 18,696 | 31.180723 | 128 | java |
SeqTrans | SeqTrans-master/gumtree/DefaultSubscriptionRegistry2.java | /*
* Copyright 2002-2017 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... | 18,347 | 31.020942 | 128 | java |
SeqTrans | SeqTrans-master/gumtree/Downsampler.java | package com.bumptech.glide.load.resource.bitmap;
import android.annotation.TargetApi;
import android.graphics.Bitmap;
import android.graphics.Bitmap.Config;
import android.graphics.BitmapFactory;
import android.graphics.ColorSpace;
import android.os.Build;
import android.util.DisplayMetrics;
import android.util.Log;
i... | 36,300 | 38.935094 | 100 | java |
SeqTrans | SeqTrans-master/gumtree/FilterDefuse1.java | package collect;
import gumtreediff.actions.ActionGenerator;
import gumtreediff.actions.model.Action;
import gumtreediff.io.TreeIoUtils;
import gumtreediff.matchers.MappingStore;
import gumtreediff.matchers.Matcher;
import gumtreediff.matchers.Matchers;
import gumtreediff.tree.ITree;
import gumtreediff.tree.TreeContex... | 21,783 | 34.363636 | 113 | java |
SeqTrans | SeqTrans-master/gumtree/FilterDefuse2.java | package collect;
import gumtreediff.actions.ActionGenerator;
import gumtreediff.actions.model.Action;
import gumtreediff.io.TreeIoUtils;
import gumtreediff.matchers.MappingStore;
import gumtreediff.matchers.Matcher;
import gumtreediff.matchers.Matchers;
import gumtreediff.tree.ITree;
import gumtreediff.tree.TreeContex... | 21,783 | 34.363636 | 113 | java |
SeqTrans | SeqTrans-master/gumtree/example1.java | public class PublishedAddressPolicy{
private HashMap<Integer, Integer> portMapping = new HashMap<Integer, Integer>();
} | 120 | 39.333333 | 81 | java |
SeqTrans | SeqTrans-master/gumtree/example2.java | public class PublishedAddressPolicy{
private Map<Integer, Integer> portMapping = new HashMap<Integer, Integer>();
private Map<Integer, Integer> hostMapping = new HashMap<String, String>();
} | 192 | 47.25 | 77 | java |
SeqTrans | SeqTrans-master/gumtree/test.java | public class Test {
public void foo() {
if (!fields.isEmpty()) {
//impl
}
}
}
| 104 | 12.125 | 32 | java |
SeqTrans | SeqTrans-master/gumtree/test2.java | public class Test {
public void foo() {
if (iterator.hasNext()) {
//impl
}
}
}
| 105 | 12.25 | 33 | java |
SeqTrans | SeqTrans-master/gumtree/src/apted/costmodel/CostModel.java | /* MIT License
*
* Copyright (c) 2017 Mateusz Pawlik
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modi... | 2,375 | 33.941176 | 80 | java |
SeqTrans | SeqTrans-master/gumtree/src/apted/costmodel/PerEditOperationStringNodeDataCostModel.java | /* MIT License
*
* Copyright (c) 2017 Mateusz Pawlik
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modi... | 2,940 | 29.319588 | 95 | java |
SeqTrans | SeqTrans-master/gumtree/src/apted/costmodel/StringUnitCostModel.java | /* MIT License
*
* Copyright (c) 2017 Mateusz Pawlik
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modi... | 2,486 | 32.608108 | 91 | java |
SeqTrans | SeqTrans-master/gumtree/src/apted/distance/APTED.java | /* MIT License
*
* Copyright (c) 2017 Mateusz Pawlik
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modi... | 79,725 | 42.733406 | 222 | java |
SeqTrans | SeqTrans-master/gumtree/src/apted/distance/AllPossibleMappingsTED.java | /* MIT License
*
* Copyright (c) 2017 Mateusz Pawlik
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modi... | 11,261 | 32.026393 | 123 | java |
SeqTrans | SeqTrans-master/gumtree/src/apted/node/Node.java | /* MIT License
*
* Copyright (c) 2017 Mateusz Pawlik
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modi... | 3,932 | 28.571429 | 104 | java |
SeqTrans | SeqTrans-master/gumtree/src/apted/node/NodeIndexer.java | /* MIT License
*
* Copyright (c) 2017 Mateusz Pawlik
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modi... | 18,924 | 31.295222 | 107 | java |
SeqTrans | SeqTrans-master/gumtree/src/apted/node/StringNodeData.java | /* MIT License
*
* Copyright (c) 2017 Mateusz Pawlik
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modi... | 1,681 | 28.508772 | 80 | java |
SeqTrans | SeqTrans-master/gumtree/src/apted/parser/BracketStringInputParser.java | /* MIT License
*
* Copyright (c) 2017 Mateusz Pawlik, Nikolaus Augsten
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* ... | 2,500 | 37.476923 | 91 | java |
SeqTrans | SeqTrans-master/gumtree/src/apted/parser/InputParser.java | /* MIT License
*
* Copyright (c) 2017 Mateusz Pawlik
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modi... | 1,607 | 34.733333 | 80 | java |
SeqTrans | SeqTrans-master/gumtree/src/apted/util/APTEDtest.java | package apted.util;
import java.util.List;
import apted.costmodel.StringUnitCostModel;
import apted.distance.APTED;
import apted.node.Node;
import apted.node.StringNodeData;
import apted.parser.BracketStringInputParser;
public class APTEDtest {
public static void main (String args[]) throws Exception{
String src... | 1,112 | 34.903226 | 132 | java |
SeqTrans | SeqTrans-master/gumtree/src/apted/util/CommandLine.java | /* MIT License
*
* Copyright (c) 2017 Mateusz Pawlik
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modi... | 10,919 | 35.27907 | 149 | java |
SeqTrans | SeqTrans-master/gumtree/src/apted/util/FormatUtilities.java | /* MIT License
*
* Copyright (c) 2017 Nikolaus Augsten
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, mo... | 10,916 | 25.626829 | 106 | java |
SeqTrans | SeqTrans-master/gumtree/src/cost_matrix/Aggregate.java | package cost_matrix;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Set;
public class Aggregate {
public static void CreatSet(Map<Integer, Integer> arr1,Map<Integer, Integer> arr2){
// 测试union... | 2,738 | 27.831579 | 102 | java |
SeqTrans | SeqTrans-master/gumtree/src/cost_matrix/CopyFile.java | package cost_matrix;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.FileWriter;
import java.io.InputStream;
import java.io.PrintWriter;
public class CopyFile {
public CopyFile() {
}
/**
* 新建目录
* @param folderPath String 如 c:/fqf
... | 7,592 | 27.870722 | 118 | java |
SeqTrans | SeqTrans-master/gumtree/src/cost_matrix/Edge.java | package cost_matrix;
public class Edge {
private int Source;
private int Target;
private int weight;
public int getSource(){
return this.Source;
}
public void setSource(int Source){
this.Source=Source;
}
public int getTarget(){
return this.Target;
}
public void setTarget(int Target){
this.Target=T... | 446 | 12.96875 | 35 | java |
SeqTrans | SeqTrans-master/gumtree/src/cost_matrix/KuhnMunkres.java | package cost_matrix;
import java.util.Arrays;
public class KuhnMunkres {
private static int maxN;
private static int n;
private static int lenX;
private static int lenY;
private static double[][] weights;
private static boolean[] visitX;
private static boolean[] visitY;
private static double[] lx;... | 4,416 | 26.09816 | 76 | java |
SeqTrans | SeqTrans-master/gumtree/src/cost_matrix/Matrix.java | package cost_matrix;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import gumtreediff.gen.srcml.SrcmlCppTreeGenerator;
import gumtreediff.tree.ITree;
import gumtr... | 13,046 | 30.667476 | 117 | java |
SeqTrans | SeqTrans-master/gumtree/src/cost_matrix/Node.java | package cost_matrix;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;
public class Node {
private int Num;
private int typeNume;
private String Name;
private ArrayList<Node> Parent = new ArrayList<>();
private ArrayList<Node> Child = new ArrayList<>();
private Map<Integer, Double> i... | 1,282 | 16.337838 | 55 | java |
SeqTrans | SeqTrans-master/gumtree/src/cost_matrix/Normalization.java | package cost_matrix;
import java.io.BufferedReader;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
public class Normalization {
private static double[][] Smatrix;//所有文件的相似度矩阵
private static double Min;
private static double Max;
public static void getPointsList() throws IOExce... | 2,645 | 24.68932 | 95 | java |
SeqTrans | SeqTrans-master/gumtree/src/cost_matrix/Test.java | package cost_matrix;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map.Entry;
public class Test {
private static HashMap<Integ... | 5,427 | 25.096154 | 71 | java |
SeqTrans | SeqTrans-master/gumtree/src/gumtreediff/actions/ActionClusterFinder.java | /*
* This file is part of GumTree.
*
* GumTree is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* GumTree is distribute... | 4,867 | 31.026316 | 88 | java |
SeqTrans | SeqTrans-master/gumtree/src/gumtreediff/actions/ActionGenerator.java | /*
* This file is part of GumTree.
*
* GumTree is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* GumTree is distribute... | 8,722 | 32.293893 | 106 | java |
SeqTrans | SeqTrans-master/gumtree/src/gumtreediff/actions/ActionUtil.java | /*
* This file is part of GumTree.
*
* GumTree is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* GumTree is distribute... | 2,166 | 38.4 | 87 | java |
SeqTrans | SeqTrans-master/gumtree/src/gumtreediff/actions/LeavesClassifier.java | /*
* This file is part of GumTree.
*
* GumTree is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* GumTree is distribute... | 2,482 | 33.486111 | 111 | java |
SeqTrans | SeqTrans-master/gumtree/src/gumtreediff/actions/RootAndLeavesClassifier.java | /*
* This file is part of GumTree.
*
* GumTree is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* GumTree is distribute... | 2,658 | 33.089744 | 118 | java |
SeqTrans | SeqTrans-master/gumtree/src/gumtreediff/actions/RootsClassifier.java | /*
* This file is part of GumTree.
*
* GumTree is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* GumTree is distribute... | 2,110 | 33.606557 | 109 | java |
SeqTrans | SeqTrans-master/gumtree/src/gumtreediff/actions/TreeClassifier.java | /*
* This file is part of GumTree.
*
* GumTree is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* GumTree is distribute... | 3,025 | 26.761468 | 109 | java |
SeqTrans | SeqTrans-master/gumtree/src/gumtreediff/actions/model/Action.java | /*
* This file is part of GumTree.
*
* GumTree is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* GumTree is distribute... | 1,329 | 25.6 | 78 | java |
SeqTrans | SeqTrans-master/gumtree/src/gumtreediff/actions/model/Addition.java | /*
* This file is part of GumTree.
*
* GumTree is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* GumTree is distribute... | 1,624 | 27.508772 | 111 | java |
SeqTrans | SeqTrans-master/gumtree/src/gumtreediff/actions/model/Delete.java | /*
* This file is part of GumTree.
*
* GumTree is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* GumTree is distribute... | 1,333 | 26.791667 | 78 | java |
SeqTrans | SeqTrans-master/gumtree/src/gumtreediff/actions/model/Insert.java | /*
* This file is part of GumTree.
*
* GumTree is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* GumTree is distribute... | 1,103 | 28.837838 | 78 | java |
SeqTrans | SeqTrans-master/gumtree/src/gumtreediff/actions/model/Move.java | /*
* This file is part of GumTree.
*
* GumTree is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* GumTree is distribute... | 1,099 | 28.72973 | 78 | java |
SeqTrans | SeqTrans-master/gumtree/src/gumtreediff/actions/model/Update.java | /*
* This file is part of GumTree.
*
* GumTree is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* GumTree is distribute... | 1,559 | 27.363636 | 104 | java |
SeqTrans | SeqTrans-master/gumtree/src/gumtreediff/gen/Generators.java | /*
* This file is part of GumTree.
*
* GumTree is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* GumTree is distribute... | 2,846 | 34.5875 | 113 | java |
SeqTrans | SeqTrans-master/gumtree/src/gumtreediff/gen/Register.java | /*
* This file is part of GumTree.
*
* GumTree is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* GumTree is distribute... | 1,271 | 32.473684 | 78 | java |
SeqTrans | SeqTrans-master/gumtree/src/gumtreediff/gen/Registry.java | /*
* This file is part of GumTree.
*
* GumTree is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* GumTree is distribute... | 4,835 | 30.2 | 118 | java |
SeqTrans | SeqTrans-master/gumtree/src/gumtreediff/gen/Test.java | package gumtreediff.gen;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.util.List;
import gumtreediff.actions.ActionGenerator;
import gumtreediff.actions.model.Action;
import gumtreediff.gen.jdt.JdtTreeGenerator;
import gumtreediff.io.ActionsIoUt... | 2,270 | 35.629032 | 104 | java |
SeqTrans | SeqTrans-master/gumtree/src/gumtreediff/gen/TreeGenerator.java | /*
* This file is part of GumTree.
*
* GumTree is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* GumTree is distribute... | 2,159 | 32.75 | 102 | java |
SeqTrans | SeqTrans-master/gumtree/src/gumtreediff/gen/jdt/AbstractJdtTreeGenerator.java | /*
* This file is part of GumTree.
*
* GumTree is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* GumTree is distribute... | 2,752 | 36.202703 | 84 | java |
SeqTrans | SeqTrans-master/gumtree/src/gumtreediff/gen/jdt/AbstractJdtVisitor.java | /*
* This file is part of GumTree.
*
* GumTree is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* GumTree is distribute... | 2,214 | 28.144737 | 95 | java |
SeqTrans | SeqTrans-master/gumtree/src/gumtreediff/gen/jdt/JdtTreeGenerator.java | /*
* This file is part of GumTree.
*
* GumTree is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* GumTree is distribute... | 1,180 | 32.742857 | 85 | java |
SeqTrans | SeqTrans-master/gumtree/src/gumtreediff/gen/jdt/JdtVisitor.java | /*
* This file is part of GumTree.
*
* GumTree is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* GumTree is distribute... | 3,826 | 35.447619 | 100 | java |
SeqTrans | SeqTrans-master/gumtree/src/gumtreediff/gen/srcml/AbstractSrcmlTreeGenerator.java | /*
* This file is part of GumTree.
*
* GumTree is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* GumTree is distribute... | 11,458 | 37.069767 | 117 | java |
SeqTrans | SeqTrans-master/gumtree/src/gumtreediff/gen/srcml/SrcmlCTreeGenerator.java | /*
* This file is part of GumTree.
*
* GumTree is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* GumTree is distribute... | 1,018 | 30.84375 | 78 | java |
SeqTrans | SeqTrans-master/gumtree/src/gumtreediff/gen/srcml/SrcmlCppTreeGenerator.java | /*
* This file is part of GumTree.
*
* GumTree is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* GumTree is distribute... | 1,040 | 31.53125 | 78 | java |
SeqTrans | SeqTrans-master/gumtree/src/gumtreediff/gen/srcml/SrcmlCsTreeGenerator.java | /*
* This file is part of GumTree.
*
* GumTree is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* GumTree is distribute... | 1,019 | 30.875 | 78 | java |
SeqTrans | SeqTrans-master/gumtree/src/gumtreediff/gen/srcml/SrcmlJavaTreeGenerator.java | /*
* This file is part of GumTree.
*
* GumTree is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* GumTree is distribute... | 1,027 | 31.125 | 78 | java |
SeqTrans | SeqTrans-master/gumtree/src/gumtreediff/gen/srcml/TestSrcmlCppGenerator.java | /*
* This file is part of GumTree.
*
* GumTree is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* GumTree is distribute... | 1,871 | 33.666667 | 82 | java |
SeqTrans | SeqTrans-master/gumtree/src/gumtreediff/gen/srcml/TestSrcmlCsGenerator.java | /*
* This file is part of GumTree.
*
* GumTree is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* GumTree is distribute... | 1,466 | 30.212766 | 81 | java |
SeqTrans | SeqTrans-master/gumtree/src/gumtreediff/gen/srcml/TestSrcmlJavaGenerator.java | /*
* This file is part of GumTree.
*
* GumTree is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* GumTree is distribute... | 1,429 | 30.777778 | 81 | java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.