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/gumtree/src/gumtreediff/io/ActionsIoUtils.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... | 13,835 | 31.176744 | 105 | java |
SeqTrans | SeqTrans-master/gumtree/src/gumtreediff/io/DetailedDotFormatter.java | package gumtreediff.io;
import java.io.Writer;
import java.util.HashMap;
import java.util.List;
import gumtreediff.actions.model.Action;
import gumtreediff.actions.model.Delete;
import gumtreediff.actions.model.Insert;
import gumtreediff.actions.model.Move;
import gumtreediff.actions.model.Update;
import gumtreediff.... | 5,887 | 39.606897 | 92 | java |
SeqTrans | SeqTrans-master/gumtree/src/gumtreediff/io/DirectoryComparator.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... | 5,639 | 29.819672 | 99 | java |
SeqTrans | SeqTrans-master/gumtree/src/gumtreediff/io/Indentation.java | /*
* Copyright (c) 2006, John Kristian
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above copyright
* notice, this l... | 2,733 | 38.057143 | 80 | java |
SeqTrans | SeqTrans-master/gumtree/src/gumtreediff/io/IndentingXMLStreamWriter.java | /*
* Copyright (c) 2006, John Kristian
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above copyright
* notice, this l... | 11,929 | 31.595628 | 100 | java |
SeqTrans | SeqTrans-master/gumtree/src/gumtreediff/io/LineReader.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,868 | 28.666667 | 78 | java |
SeqTrans | SeqTrans-master/gumtree/src/gumtreediff/io/MatrixDebugger.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,563 | 29.076923 | 78 | java |
SeqTrans | SeqTrans-master/gumtree/src/gumtreediff/io/StreamWriterDelegate.java | /*
* Copyright (c) 2006, John Kristian
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above copyright
* notice, this l... | 7,023 | 31.220183 | 100 | java |
SeqTrans | SeqTrans-master/gumtree/src/gumtreediff/io/TreeIoUtils.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... | 30,900 | 34.848028 | 120 | java |
SeqTrans | SeqTrans-master/gumtree/src/gumtreediff/matchers/CompositeMatcher.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,273 | 29.333333 | 91 | java |
SeqTrans | SeqTrans-master/gumtree/src/gumtreediff/matchers/CompositeMatchers.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,655 | 38.311828 | 95 | java |
SeqTrans | SeqTrans-master/gumtree/src/gumtreediff/matchers/Mapping.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,038 | 30.484848 | 78 | java |
SeqTrans | SeqTrans-master/gumtree/src/gumtreediff/matchers/MappingStore.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,943 | 25.829932 | 99 | java |
SeqTrans | SeqTrans-master/gumtree/src/gumtreediff/matchers/Matcher.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,800 | 30.941176 | 104 | java |
SeqTrans | SeqTrans-master/gumtree/src/gumtreediff/matchers/Matchers.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,822 | 35.662338 | 117 | java |
SeqTrans | SeqTrans-master/gumtree/src/gumtreediff/matchers/MultiMappingStore.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,024 | 26.752294 | 98 | java |
SeqTrans | SeqTrans-master/gumtree/src/gumtreediff/matchers/OptimizedVersions.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... | 5,550 | 42.031008 | 87 | java |
SeqTrans | SeqTrans-master/gumtree/src/gumtreediff/matchers/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,321 | 30.47619 | 78 | java |
SeqTrans | SeqTrans-master/gumtree/src/gumtreediff/matchers/heuristic/LcsMatcher.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,701 | 31.113208 | 78 | java |
SeqTrans | SeqTrans-master/gumtree/src/gumtreediff/matchers/heuristic/XyBottomUpMatcher.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,300 | 35.760684 | 109 | java |
SeqTrans | SeqTrans-master/gumtree/src/gumtreediff/matchers/heuristic/cd/ChangeDistillerBottomUpMatcher.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,713 | 38.333333 | 118 | java |
SeqTrans | SeqTrans-master/gumtree/src/gumtreediff/matchers/heuristic/cd/ChangeDistillerLeavesMatcher.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,667 | 35.68 | 113 | java |
SeqTrans | SeqTrans-master/gumtree/src/gumtreediff/matchers/heuristic/cd/ChangeDistillerParallelLeavesMatcher.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... | 7,034 | 35.640625 | 113 | java |
SeqTrans | SeqTrans-master/gumtree/src/gumtreediff/matchers/heuristic/gt/AbstractBottomUpMatcher.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... | 7,172 | 36.952381 | 108 | java |
SeqTrans | SeqTrans-master/gumtree/src/gumtreediff/matchers/heuristic/gt/AbstractMappingComparator.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,809 | 35.973684 | 111 | java |
SeqTrans | SeqTrans-master/gumtree/src/gumtreediff/matchers/heuristic/gt/AbstractSubtreeMatcher.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... | 7,787 | 34.889401 | 118 | java |
SeqTrans | SeqTrans-master/gumtree/src/gumtreediff/matchers/heuristic/gt/CliqueSubtreeMatcher.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... | 6,554 | 36.244318 | 113 | java |
SeqTrans | SeqTrans-master/gumtree/src/gumtreediff/matchers/heuristic/gt/CompleteBottomUpMatcher.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,883 | 36.454545 | 109 | java |
SeqTrans | SeqTrans-master/gumtree/src/gumtreediff/matchers/heuristic/gt/FirstMatchBottomUpMatcher.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,689 | 37.428571 | 119 | java |
SeqTrans | SeqTrans-master/gumtree/src/gumtreediff/matchers/heuristic/gt/GreedyBottomUpMatcher.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,728 | 34.855769 | 109 | java |
SeqTrans | SeqTrans-master/gumtree/src/gumtreediff/matchers/heuristic/gt/GreedySubtreeMatcher.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,151 | 37.439024 | 114 | java |
SeqTrans | SeqTrans-master/gumtree/src/gumtreediff/matchers/heuristic/gt/HungarianSubtreeMatcher.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,002 | 36.764151 | 101 | java |
SeqTrans | SeqTrans-master/gumtree/src/gumtreediff/matchers/heuristic/gt/ParentsMappingComparator.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,036 | 38.941176 | 118 | java |
SeqTrans | SeqTrans-master/gumtree/src/gumtreediff/matchers/heuristic/gt/SiblingsMappingComparator.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,675 | 35.657534 | 118 | java |
SeqTrans | SeqTrans-master/gumtree/src/gumtreediff/matchers/optimal/rted/InfoTree.java | // Copyright (C) 2012 Mateusz Pawlik and Nikolaus Augsten
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any... | 14,981 | 32.972789 | 136 | java |
SeqTrans | SeqTrans-master/gumtree/src/gumtreediff/matchers/optimal/rted/LabelDictionary.java | // Copyright (C) 2012 Mateusz Pawlik and Nikolaus Augsten
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any... | 2,887 | 31.088889 | 113 | java |
SeqTrans | SeqTrans-master/gumtree/src/gumtreediff/matchers/optimal/rted/RtedAlgorithm.java | // Copyright (C) 2012 Mateusz Pawlik and Nikolaus Augsten
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any... | 37,783 | 30.939138 | 131 | java |
SeqTrans | SeqTrans-master/gumtree/src/gumtreediff/matchers/optimal/rted/RtedMatcher.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,882 | 32.625 | 78 | java |
SeqTrans | SeqTrans-master/gumtree/src/gumtreediff/matchers/optimal/zs/ZsMatcher.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,700 | 33.121569 | 98 | java |
SeqTrans | SeqTrans-master/gumtree/src/gumtreediff/matchers/optimizations/CrossMoveMatcherThetaF.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... | 7,482 | 43.017647 | 100 | java |
SeqTrans | SeqTrans-master/gumtree/src/gumtreediff/matchers/optimizations/IdenticalSubtreeMatcherThetaA.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... | 5,340 | 34.606667 | 91 | java |
SeqTrans | SeqTrans-master/gumtree/src/gumtreediff/matchers/optimizations/InnerNodesMatcherThetaD.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... | 6,070 | 36.245399 | 99 | java |
SeqTrans | SeqTrans-master/gumtree/src/gumtreediff/matchers/optimizations/LcsOptMatcherThetaB.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... | 7,208 | 34.165854 | 146 | java |
SeqTrans | SeqTrans-master/gumtree/src/gumtreediff/matchers/optimizations/LeafMoveMatcherThetaE.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,385 | 39.233216 | 99 | java |
SeqTrans | SeqTrans-master/gumtree/src/gumtreediff/matchers/optimizations/UnmappedLeavesMatcherThetaC.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... | 12,279 | 47.346457 | 98 | java |
SeqTrans | SeqTrans-master/gumtree/src/gumtreediff/tree/AbstractTree.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... | 10,686 | 22.591611 | 104 | java |
SeqTrans | SeqTrans-master/gumtree/src/gumtreediff/tree/AssociationMap.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,654 | 31.378049 | 118 | java |
SeqTrans | SeqTrans-master/gumtree/src/gumtreediff/tree/ITree.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... | 6,316 | 22.92803 | 95 | java |
SeqTrans | SeqTrans-master/gumtree/src/gumtreediff/tree/IterableEnumeration.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,691 | 31.538462 | 78 | java |
SeqTrans | SeqTrans-master/gumtree/src/gumtreediff/tree/Tree.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... | 5,694 | 22.533058 | 82 | java |
SeqTrans | SeqTrans-master/gumtree/src/gumtreediff/tree/TreeContext.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... | 9,661 | 30.067524 | 116 | java |
SeqTrans | SeqTrans-master/gumtree/src/gumtreediff/tree/TreeMap.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,598 | 25.65 | 78 | java |
SeqTrans | SeqTrans-master/gumtree/src/gumtreediff/tree/TreeUtils.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... | 9,971 | 29.588957 | 89 | java |
SeqTrans | SeqTrans-master/gumtree/src/gumtreediff/tree/hash/HashGenerator.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... | 956 | 30.9 | 78 | java |
SeqTrans | SeqTrans-master/gumtree/src/gumtreediff/tree/hash/HashUtils.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,313 | 29.447368 | 114 | java |
SeqTrans | SeqTrans-master/gumtree/src/gumtreediff/tree/hash/RollingHashGenerator.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,896 | 27.97 | 93 | java |
SeqTrans | SeqTrans-master/gumtree/src/gumtreediff/tree/hash/StaticHashGenerator.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,536 | 27.462963 | 78 | java |
SeqTrans | SeqTrans-master/gumtree/src/gumtreediff/utils/HungarianAlgorithm.java | /* Copyright (c) 2012 Kevin L. Stern
*
* 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, modify, merge, publish... | 12,833 | 38.733746 | 86 | java |
SeqTrans | SeqTrans-master/gumtree/src/gumtreediff/utils/Pair.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,737 | 24.940299 | 80 | java |
SeqTrans | SeqTrans-master/gumtree/src/gumtreediff/utils/StringAlgorithms.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,373 | 33.440945 | 91 | java |
SeqTrans | SeqTrans-master/gumtree/src/main/MainProcess.java | package main;
import java.util.ArrayList;
import split.Split;
import structure.Migration;
public class MainProcess {
public static void main (String args[]) throws Exception{
Split sp = new Split();
String path = "migrations";
ArrayList<Migration> migrats = new ArrayList<>();
migrats = sp.readMigration(pat... | 453 | 18.73913 | 58 | java |
SeqTrans | SeqTrans-master/gumtree/src/nodecluster/ActionFormatter.java | package nodecluster;
import gumtreediff.tree.ITree;
public interface ActionFormatter {
void startOutput() throws Exception;
void endOutput() throws Exception;
void startMatches() throws Exception;
void match(ITree srcNode, ITree destNode) throws Exception;
void endMatches... | 776 | 24.064516 | 80 | java |
SeqTrans | SeqTrans-master/gumtree/src/nodecluster/Cluster.java | package nodecluster;
import java.io.File;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import gumtreediff.actions.model.Action;
import gumtreediff.actions.model.Delete;
import gumtreediff.actions.model.Insert;
import gumtreediff.action... | 14,997 | 31.393089 | 90 | java |
SeqTrans | SeqTrans-master/gumtree/src/split/PruneTuple.java | package split;
import gumtreediff.tree.ITree;
public class PruneTuple {
public final ITree par;
public final ITree child;
public final int position;
public PruneTuple(ITree par, ITree child, int pos) {
this.par = par;
this.child = child;
this.position = pos;
}
@Override
public String toString(){
... | 531 | 14.647059 | 66 | java |
SeqTrans | SeqTrans-master/gumtree/src/split/Pruning.java | package split;
import java.io.File;
import java.util.ArrayList;
import java.util.List;
import gumtreediff.gen.srcml.SrcmlCppTreeGenerator;
import gumtreediff.matchers.MappingStore;
import gumtreediff.matchers.Matcher;
import gumtreediff.matchers.Matchers;
import gumtreediff.tree.ITree;
import gumtreediff.tree.TreeCon... | 7,799 | 29.350195 | 97 | java |
SeqTrans | SeqTrans-master/gumtree/src/split/Split.java | package split;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileWriter;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import java.util.Stack;
import gumtreediff.actions.model.Action;
import gumtreediff.gen.srcml.Sr... | 27,780 | 33.339926 | 136 | java |
SeqTrans | SeqTrans-master/gumtree/src/split/Statistic.java | package split;
import java.io.File;
import java.util.ArrayList;
import java.util.List;
import gumtreediff.tree.ITree;
import gumtreediff.tree.TreeContext;
import structure.Migration;
import utils.Utils;
public class Statistic {
public static void main (String args[]) throws Exception{
String path = "migrations";... | 2,689 | 26.731959 | 89 | java |
SeqTrans | SeqTrans-master/gumtree/src/structure/Boundary.java | package structure;
import gumtreediff.tree.ITree;
public class Boundary {
private ITree root;
private int beginLine;
private int lastLine;
private int beginCol;
private int lastCol;
public Boundary(ITree root, int beginLine, int lastLine, int beginCol, int lastCol) {
this.root = root;
this.beginLine = beg... | 1,039 | 15.25 | 86 | java |
SeqTrans | SeqTrans-master/gumtree/src/structure/ChangeTuple.java | package structure;
public class ChangeTuple {
private String src;
private String dst;
public ChangeTuple() {
}
public ChangeTuple(String src, String dst) {
this.src = src;
this.dst = dst;
}
public String getSrc() {
return src;
}
public String getDst() {
return dst;
}
public void setSrc(String... | 500 | 11.525 | 45 | java |
SeqTrans | SeqTrans-master/gumtree/src/structure/DTree.java | package structure;
import java.util.List;
import java.util.Stack;
import gumtreediff.tree.ITree;
import gumtreediff.tree.TreeContext;
public class DTree {
private ITree root;
private List<ITree> leaves;
private TreeContext treeContext;
private Stack<String> trace;
public DTree(ITree root, List<ITree> leaves, ... | 792 | 16.622222 | 93 | java |
SeqTrans | SeqTrans-master/gumtree/src/structure/Definition.java | package structure;
import java.util.List;
import gumtreediff.tree.ITree;
import gumtreediff.tree.TreeContext;
public class Definition {
private int defLabelID;
private ITree root;
private String type;
private String varName;
private ITree block;
private List<ITree> parBlocks;
private List<ITree> parList;
pr... | 1,294 | 17.768116 | 50 | java |
SeqTrans | SeqTrans-master/gumtree/src/structure/Edge.java | package structure;
public class Edge {
public int source;//source
private int target;//target
private int weight;//weight of this edge
public Edge(int source, int target) {
this.source = source;
this.target = target;
}
public int getSource(){
return source;
}
public int getTarget(){
return target;
}... | 663 | 15.195122 | 57 | java |
SeqTrans | SeqTrans-master/gumtree/src/structure/Migration.java | package structure;
import gumtreediff.matchers.MappingStore;
import gumtreediff.tree.TreeContext;
public class Migration {
private TreeContext srcT;
private TreeContext dstT;
private MappingStore mappings;
private String repoName;
private String miName_src;
private String miName_dst;
private String srcHash;
... | 1,329 | 16.733333 | 100 | java |
SeqTrans | SeqTrans-master/gumtree/src/structure/SubTree.java | package structure;
import java.util.ArrayList;
import java.util.List;
import gumtreediff.tree.ITree;
import gumtreediff.tree.TreeContext;
public class SubTree {
private ITree root;
private TreeContext tc;
private int stNum;
private String miName;
private ArrayList<ITree> parBlocks;
private List<ITree> pars;//... | 957 | 15.517241 | 74 | java |
SeqTrans | SeqTrans-master/gumtree/src/structure/Transform.java | package structure;
import java.util.ArrayList;
import java.util.HashMap;
import gumtreediff.actions.model.Action;
import gumtreediff.tree.ITree;
import gumtreediff.tree.TreeContext;
public class Transform {
private SubTree sTree;
private SubTree dTree;
private HashMap<Integer, Integer> subMap;
private HashMap<S... | 1,215 | 16.371429 | 72 | java |
SeqTrans | SeqTrans-master/gumtree/src/test/DefuseTest.java | package test;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileWriter;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.HashSet;
import java.util.LinkedList;
import java.util.List;
import gumtreediff.actions.model.Action;
import gumtreediff.gen.srcml.SrcmlJavaTreeGenerator;... | 10,509 | 32.578275 | 111 | java |
SeqTrans | SeqTrans-master/gumtree/src/test/DuplicateTest.java | package test;
import java.io.File;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import gumtreediff.actions.ActionGenerator;
import gumtreediff.actions.model.Action;
import gumtreediff.gen.srcml.SrcmlCppTreeGenerator;
import gumtreediff.matchers.Mapping;
import gumtreediff.matchers.Mapp... | 2,488 | 33.569444 | 99 | java |
SeqTrans | SeqTrans-master/gumtree/src/test/FindBugTest.java | package test;
public class FindBugTest {
private static String string;
public static void main(String[] args) {
string = null;
if(string.equals("0")) {
System.out.println(string);
}
}
}
| 201 | 13.428571 | 41 | java |
SeqTrans | SeqTrans-master/gumtree/src/test/LocateSrc.java | package test;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import gumtreediff.actions.model.Action;
import gumtreediff.matchers.MappingStore;
import gumtreediff.matchers.Matcher;
import gumtreediff.matcher... | 12,132 | 33.46875 | 207 | java |
SeqTrans | SeqTrans-master/gumtree/src/test/RandomTest.java | package test;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileWriter;
import java.util.ArrayList;
import split.Split;
import structure.Migration;
import structure.SubTree;
import structure.Transform;
import utils.Output;
public class RandomTest {
public static void main (String args[]) throw... | 2,599 | 26.083333 | 131 | java |
SeqTrans | SeqTrans-master/gumtree/src/test/SubtreeTest.java | package test;
import java.io.File;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import gumtreediff.gen.srcml.SrcmlCppTreeGenerator;
import gumtreediff.gen.srcml.SrcmlJavaTreeGenerator;
import gumtreediff.matchers.MappingStore;
import gumtreediff.matchers.Matcher;
import gumtreediff.matc... | 5,403 | 33.864516 | 97 | java |
SeqTrans | SeqTrans-master/gumtree/src/test/Test.java | package test;
import java.io.File;
import java.util.List;
import gumtreediff.gen.srcml.SrcmlCppTreeGenerator;
import gumtreediff.matchers.MappingStore;
import gumtreediff.matchers.Matcher;
import gumtreediff.matchers.Matchers;
import gumtreediff.tree.ITree;
import gumtreediff.tree.TreeContext;
public class Test {
... | 1,733 | 27.42623 | 84 | java |
SeqTrans | SeqTrans-master/gumtree/src/test/TestGeneration.java | package test;
import gumtreediff.actions.ActionGenerator;
import gumtreediff.actions.model.Action;
import gumtreediff.gen.srcml.SrcmlJavaTreeGenerator;
import gumtreediff.io.ActionsIoUtils;
import gumtreediff.io.TreeIoUtils;
import gumtreediff.matchers.Mapping;
import gumtreediff.matchers.MappingStore;
import gumtreed... | 5,823 | 39.165517 | 100 | java |
SeqTrans | SeqTrans-master/gumtree/src/test/TestJdtCore.java | package test;
import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
import org.eclipse.jdt.core.dom.AST;
import org.eclipse.jdt.core.dom.ASTParser;
import org.eclipse.jdt.core.dom.CompilationUnit;
public class TestJdtCore {
public static void main(String args[]) throws Exception{
... | 1,250 | 28.785714 | 96 | java |
SeqTrans | SeqTrans-master/gumtree/src/test/TestJdtGeneration.java | package test;
import gumtreediff.actions.ActionGenerator;
import gumtreediff.actions.model.Action;
import gumtreediff.gen.srcml.SrcmlJavaTreeGenerator;
import gumtreediff.io.ActionsIoUtils;
import gumtreediff.io.TreeIoUtils;
import gumtreediff.matchers.Mapping;
import gumtreediff.matchers.MappingStore;
import gumtreed... | 4,405 | 38.693694 | 100 | java |
SeqTrans | SeqTrans-master/gumtree/src/test/TestPrediction.java | package test;
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 TestPrediction {
public static void main(String args[]) throws Exception{
ArrayList<String> preds = new ArrayList<>();
A... | 1,173 | 25.681818 | 84 | java |
SeqTrans | SeqTrans-master/gumtree/src/test/test1.java | package test;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.List;
import java.util.Map;
import java.util.TreeMap;
public class test1 {
public static void main(String args[]) throws Exception{
Map<String, Integer> map = new TreeMap<>();
map.put("a",... | 973 | 25.324324 | 97 | java |
SeqTrans | SeqTrans-master/gumtree/src/utils/Defuse.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;
import java.util.Collections;
import java.util.HashMap;
import java.util.HashSet;
import java.util.LinkedList;
import java.util.List;
impor... | 28,075 | 29.852747 | 173 | java |
SeqTrans | SeqTrans-master/gumtree/src/utils/DelComment.java | package utils;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
/**
* 删除Java代码中的注释
*
* @author Alive
* @build 2010-12-23
*/
public class DelComme... | 4,780 | 30.873333 | 152 | java |
SeqTrans | SeqTrans-master/gumtree/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;
public class FileOperation {
public void copyFile(File sourcefile,File targetFile) throws IOException{
if(!tar... | 2,887 | 28.469388 | 105 | java |
SeqTrans | SeqTrans-master/gumtree/src/utils/FilterFiles.java | package utils;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.IOException;
import java.util.ArrayList;
public class FilterFiles {
public static void main (String args[]) throws Exception{
String dirPath1 = "tmp\\ROS1_src\\";
String dirPath2 = "tmp\\ROS2_src\\";
S... | 2,614 | 27.736264 | 78 | java |
SeqTrans | SeqTrans-master/gumtree/src/utils/Levenshtein.java | package utils;
public class Levenshtein {
/**
* 比较两个字符串的相识度
* 核心算法:用一个二维数组记录每个字符串是否相同,如果相同记为0,不相同记为1,每行每列相同个数累加
* 则数组最后一个数为不相同的总数,从而判断这两个字符的相识度
*
* @param str
* @param target
* @return
*/
public static void main(String[] args) {
String a= "1000";
String b = "rmw_qos_profile_... | 2,062 | 25.113924 | 88 | java |
SeqTrans | SeqTrans-master/gumtree/src/utils/Output.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;
import java.util.HashMap;
import java.util.List;
import java.util.regex.Pattern;
import gumtreediff.gen.srcml.SrcmlCppTreeGenerator;
impor... | 22,996 | 30.895978 | 110 | java |
SeqTrans | SeqTrans-master/gumtree/src/utils/Printing.java | package utils;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import gumtreediff.gen.srcml.SrcmlCppTreeGenerator;
import gumtreediff.matchers.Mapping;
import g... | 5,850 | 28.852041 | 103 | java |
SeqTrans | SeqTrans-master/gumtree/src/utils/Similarity.java | package utils;
import java.util.ArrayList;
import java.util.List;
import apted.costmodel.StringUnitCostModel;
import apted.distance.APTED;
import apted.node.Node;
import apted.node.StringNodeData;
import apted.parser.BracketStringInputParser;
import gumtreediff.tree.ITree;
import gumtreediff.tree.TreeContext;
import ... | 3,639 | 33.018692 | 92 | java |
SeqTrans | SeqTrans-master/gumtree/src/utils/Utils.java | package utils;
import java.io.File;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.LinkedList;
import java.util.List;
import gumtreediff.actions.ActionGenerator;
import gumtreediff.actions.model.Action;
import gumtreediff.actions.model.Delete;
import gumtreediff.a... | 27,109 | 31.235434 | 173 | java |
piggymetrics | piggymetrics-master/account-service/src/main/java/com/piggymetrics/account/AccountApplication.java | package com.piggymetrics.account;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.spri... | 870 | 35.291667 | 102 | java |
piggymetrics | piggymetrics-master/account-service/src/main/java/com/piggymetrics/account/client/AuthServiceClient.java | package com.piggymetrics.account.client;
import com.piggymetrics.account.domain.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
@FeignCl... | 536 | 32.5625 | 117 | java |
piggymetrics | piggymetrics-master/account-service/src/main/java/com/piggymetrics/account/client/StatisticsServiceClient.java | package com.piggymetrics.account.client;
import com.piggymetrics.account.domain.Account;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import ... | 737 | 42.411765 | 131 | java |
piggymetrics | piggymetrics-master/account-service/src/main/java/com/piggymetrics/account/client/StatisticsServiceClientFallback.java | package com.piggymetrics.account.client;
import com.piggymetrics.account.domain.Account;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;
/**
* @author cdov
*/
@Component
public class StatisticsServiceClientFallback implements StatisticsServiceClient {
pr... | 598 | 30.526316 | 104 | java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.