rand_index int64 0 187k | user stringlengths 2 35 | project stringlengths 1 63 | created_in_file stringlengths 3 285 | last_appeared_in_file stringlengths 3 288 | created_in_line int64 1 98k | last_appeared_in_line int64 1 98k | created_in_commit stringlengths 40 40 | deleted_in_commit stringlengths 40 40 | created_at_date stringdate 1970-01-16 08:35:19 2024-05-04 00:01:52 | deleted_at_date stringdate 1997-06-13 04:32:13 2024-05-06 12:14:27 | content stringlengths 11 1.91k | deleted_in_lines stringlengths 3 65 ⌀ | created_in_lines stringlengths 3 65 ⌀ | updated_in_commits stringlengths 44 572 ⌀ | last_content stringlengths 11 623 | SATD_comment stringlengths 9 622 | containing_method_applied_approach stringclasses 3
values | containing_method_before_repayment stringlengths 41 13.7k | containing_method_after_repayment stringlengths 15 13.8k | method_is_updated bool 1
class | SATD_count_before_repayment int64 1 1 | SATD_count_after_repayment int64 0 0 | method_tokens_before_repayment int64 10 1.02k | method_tokens_after_repayment int64 4 1.02k | is_repayment_llama3 stringclasses 1
value | deletion_commit_url stringlengths 68 134 | split stringclasses 3
values |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0 | researchstudio-sat | webofneeds | webofneeds/won-owner/src/main/java/won/owner/protocol/impl/OwnerProtocolNeedServiceClient.java | webofneeds/won-owner/src/main/java/won/owner/protocol/impl/OwnerProtocolNeedServiceClient.java | 265 | 265 | 318b564c16759a396e54592bf3aab81d44ed4093 | 3b1a7502501f3bd9dbc25d07dc595f26388c3456 | 2013-04-15 16:45:46+00:00 | 2013-04-16 13:43:54+00:00 | //TODO: Convert readConnectionContent(connectionURI) | null | null | null | //TODO: Convert readConnectionContent(connectionURI) | TODO: Convert readConnectionContent(connectionURI) | AST_FALLBACK | public Connection readConnection(URI connectionURI) throws NoSuchConnectionException {
logger.debug(MessageFormat.format("need-facing: READ_CONNECTION called for connection {0}", connectionURI));
//TODO: Convert readConnectionContent(connectionURI)
return null;
} | public Connection readConnection(URI connectionURI) throws NoSuchConnectionException {
logger.debug(MessageFormat.format("need-facing: READ_CONNECTION called for connection {0}", connectionURI));
return ConnectionModelMapper.instance.fromModel(readConnectionContent(connectionURI));
} | true | 1 | 0 | 49 | 50 | yes | www.github.com/researchstudio-sat/webofneeds/commit/3b1a7502501f3bd9dbc25d07dc595f26388c3456 | train |
3 | cmu-phil | tetrad | src/main/java/edu/pitt/csb/mgm/MixedUtils.java | tetrad-lib/src/main/java/edu/pitt/csb/mgm/MixedUtils.java | 306 | 306 | 06727348f2a9b352b7a6f078f95b63465c7febd3 | 5a1d8700cd621cf14f88066cd9100b349f25a676 | 2015-10-27 18:39:36+00:00 | 2015-12-20 22:44:38+00:00 | //TODO check case when dist = 1 category (i.e. constant) | null | null | null | //TODO check case when dist = 1 category (i.e. constant) | TODO check case when dist = 1 category (i.e. constant) | AST_FALLBACK | public static GeneralizedSemPm GaussianCategoricalPm(Graph trueGraph, String paramTemplate) throws IllegalStateException{
Map<String, Integer> nodeDists = getNodeDists(trueGraph);
GeneralizedSemPm semPm = new GeneralizedSemPm(trueGraph);
try {
List<Node> variableNodes = semPm.g... | public static GeneralizedSemPm GaussianCategoricalPm(Graph trueGraph, String paramTemplate) throws IllegalStateException{
Map<String, Integer> nodeDists = getNodeDists(trueGraph);
GeneralizedSemPm semPm = new GeneralizedSemPm(trueGraph);
try {
List<Node> variableNodes = semPm.g... | true | 1 | 0 | 912 | 938 | yes | www.github.com/cmu-phil/tetrad/commit/5a1d8700cd621cf14f88066cd9100b349f25a676 | train |
4 | apache | flink | flink-addons/flink-streaming/src/main/java/eu/stratosphere/streaming/api/streamrecord/StreamRecord.java | flink-addons/flink-streaming/src/main/java/eu/stratosphere/streaming/api/streamrecord/StreamRecord.java | 148 | 159 | 3b5ec860ae107d92679b8f68e308ac577c3f9617 | 299b2e983ca57a48054afad4dfb90202c09fabac | 2014-08-18 13:56:50+00:00 | 2014-08-18 13:56:52+00:00 | // TODO: consider sequential ids | null | null | null | // TODO: consider sequential ids | TODO: consider sequential ids | AST_FALLBACK | // TODO: consider sequential ids
public StreamRecord setId(String channelID) {
UUID uuid = UUID.randomUUID();
uid.setValue(channelID + "-" + uuid.toString());
return this;
} | public StreamRecord setId(int channelID) {
uid = new UID(channelID);
return this;
} | true | 1 | 0 | 45 | 20 | yes | www.github.com/apache/flink/commit/299b2e983ca57a48054afad4dfb90202c09fabac | train |
8 | icyphy | ptii | ptolemy/domains/sr/kernel/SRDirector.java | ptolemy/domains/sr/kernel/SRDirector.java | 546 | 546 | e365b8baa6d6939cd8ddb4f10a682686a5f194bf | 5bf8a943a2f786029a492ca67d07bdcca49c852a | 2001-04-11 21:10:19+00:00 | 2001-04-11 22:31:30+00:00 | //return (nonStrictAttribute != null); FIXME | null | null | null | //return (nonStrictAttribute != null); FIXME | return (nonStrictAttribute != null); FIXME | AST_FALLBACK | private boolean _isNonStrict(Actor actor) {
//Attribute nonStrictAttribute =
// ((NamedObj) actor).getAttribute(NON_STRICT_ATTRIBUTE_NAME);
//return (nonStrictAttribute != null); FIXME
return (actor instanceof NonStrictActor);
} | private boolean _isNonStrict(Actor actor) {
Attribute nonStrictAttribute =
((NamedObj) actor).getAttribute(NON_STRICT_ATTRIBUTE_NAME);
return (nonStrictAttribute != null);
} | true | 1 | 0 | 46 | 32 | yes | www.github.com/icyphy/ptii/commit/5bf8a943a2f786029a492ca67d07bdcca49c852a | train |
11 | objectify | objectify | src/com/googlecode/objectify/impl/TypeUtils.java | src/com/googlecode/objectify/impl/TypeUtils.java | 348 | 386 | 862257036d83d10760874102b3d675f654dab22d | fe9d19077c398665926a637ccf61888b7a5b81d9 | 2010-03-05 03:47:26+00:00 | 2010-10-21 17:39:54+00:00 | // TODO: delete this code in a subsequent version | null | null | null | // TODO: delete this code in a subsequent version | TODO: delete this code in a subsequent version | AST_FALLBACK | private static void getPersistentFields(Class<?> clazz, List<FieldMetadata> goodFields, boolean embedded)
{
if (clazz == null || clazz == Object.class)
return;
getPersistentFields(clazz.getSuperclass(), goodFields, embedded);
for (Field field: clazz.getDeclaredFields())
{
if (TypeUtils.isSaveable(field) &&
... | private static void getPersistentFields(Class<?> clazz, List<FieldMetadata> goodFields, boolean embedded)
{
if (clazz == null || clazz == Object.class)
return;
getPersistentFields(clazz.getSuperclass(), goodFields, embedded);
for (Field field: clazz.getDeclaredFields())
{
if (TypeUtils.isSaveable(field) &&
... | true | 1 | 0 | 440 | 340 | yes | www.github.com/objectify/objectify/commit/fe9d19077c398665926a637ccf61888b7a5b81d9 | train |
13 | alkacon | opencms-core | src-modules/org/opencms/ade/containerpage/CmsContainerpageActionElement.java | src-modules/org/opencms/ade/containerpage/CmsContainerpageActionElement.java | 94 | 94 | 24a9624ca853cfc818b89b20a9787f5b8487464c | e787bfc3a7f754552befea05e7082478100bd646 | 2011-06-17 16:31:28+00:00 | 2011-06-17 16:31:45+00:00 | // this is a hack to avoid quirky toolbar insertion | null | null | null | // this is a hack to avoid quirky toolbar insertion | this is a hack to avoid quirky toolbar insertion | AST_FALLBACK | public String exportAll() throws Exception {
StringBuffer sb = new StringBuffer();
if ((getCntPageData() != null) && getCntPageData().isToolbarVisible()) {
// this is a hack to avoid quirky toolbar insertion
sb.append("document.body.style.marginTop=\"36px\";\ndocument.body.style.overflowY=\"scr... | public String exportAll() throws Exception {
StringBuffer sb = new StringBuffer();
sb.append(super.export());
sb.append(new CmsPublishActionElement(null, getRequest(), null).export());
sb.append(new CmsGalleryActionElement(null, getRequest(), null).exportForContainerpage());
sb.append(export());
... | true | 1 | 0 | 160 | 86 | yes | www.github.com/alkacon/opencms-core/commit/e787bfc3a7f754552befea05e7082478100bd646 | train |
15 | eclipse-rap | org.eclipse.rap | bundles/org.eclipse.rap.rwt/src/org/eclipse/rwt/internal/lifecycle/UICallBackManager.java | bundles/org.eclipse.rap.rwt/src/org/eclipse/rwt/internal/lifecycle/UICallBackManager.java | 117 | 113 | eabb2e86750d05e6b34b576e2cbd9dab8b85d5a0 | 0e5245bdddaea80f0f958cdff6a9a4eb87a1d099 | 2008-03-04 08:04:19+00:00 | 2009-04-20 21:40:54+00:00 | // TODO [fappel]: the synchronized block should synchronize on runnables | null | null | null | // TODO [fappel]: the synchronized block should synchronize on runnables | TODO [fappel]: the synchronized block should synchronize on runnables | AST_FALLBACK | public void addSync( final Display display, final Runnable runnable ) {
// TODO [fappel]: the synchronized block should synchronize on runnables
// not runnable, but by doing so the application may run
// into a deadlock. This is because the SyncRunnable blocks
// th... | public void addSync( final Display display, final Runnable runnable ) {
if( Thread.currentThread() == display.getThread() ) {
runnable.run();
} else {
SyncRunnable syncRunnable = new SyncRunnable( runnable );
synchronized( runnablesLock ) {
runnables.add( syncRunnable );
}
sendUICallBack()... | true | 1 | 0 | 121 | 72 | yes | www.github.com/eclipse-rap/org.eclipse.rap/commit/0e5245bdddaea80f0f958cdff6a9a4eb87a1d099 | train |
16 | opendaylight | netvirt | vpnmanager/impl/src/main/java/org/opendaylight/netvirt/vpnmanager/iplearn/AlivenessMonitorUtils.java | vpnmanager/impl/src/main/java/org/opendaylight/netvirt/vpnmanager/iplearn/AlivenessMonitorUtils.java | 155 | 155 | c7edf9debcc53af6fe7f5158fa8c987f19ea26af | b0629e6121f1332cbf42ad0f80c89ceeb33da371 | 2018-07-23 01:06:23+00:00 | 2018-07-23 14:55:08+00:00 | // TODO: handle IPv6 case | null | null | null | // TODO: handle IPv6 case | TODO: handle IPv6 case | AST_FALLBACK | private Optional<Long> allocateIpMonitorProfile(IpAddress targetIp) {
Optional<Long> profileIdOptional = Optional.absent();
if (targetIp.getIpv4Address() != null) {
profileIdOptional = allocateProfile(ArpConstants.FAILURE_THRESHOLD,
ArpConstants.ARP_CACHE_TIMEOUT_MILLIS, ArpConstants.MON... | private Optional<Long> allocateIpMonitorProfile(IpAddress targetIp) {
Optional<Long> profileIdOptional = Optional.absent();
if (targetIp.getIpv4Address() != null) {
profileIdOptional = allocateArpMonitorProfile();
} else if (targetIp.getIpv6Address() != null) {
profileIdOptional = allocateIp... | true | 1 | 0 | 106 | 66 | yes | www.github.com/opendaylight/netvirt/commit/b0629e6121f1332cbf42ad0f80c89ceeb33da371 | train |
22 | franzinc | agraph-java-client | src/com/franz/agraph/jena/AGInfGraph.java | src/com/franz/agraph/jena/AGInfGraph.java | 102 | 102 | 05f1629dcc3303cc2e18765c0ce08337b8b99c19 | 3580ee15ac8ddb5c935642314525162de55b5592 | 2009-12-10 19:44:00+00:00 | 2010-01-06 21:28:31+00:00 | // TODO Auto-generated method stub | null | null | null | // TODO Auto-generated method stub | TODO Auto-generated method stub | AST_FALLBACK | public ValidityReport validate() {
// TODO Auto-generated method stub
return null;
} | public ValidityReport validate() {
throw new UnsupportedOperationException(AGUnsupportedOperation.message);
} | true | 1 | 0 | 18 | 16 | yes | www.github.com/franzinc/agraph-java-client/commit/3580ee15ac8ddb5c935642314525162de55b5592 | train |
23 | haxefoundation | intellij-haxe | src/com/intellij/plugins/haxe/ide/hierarchy/call/HaxeCallHierarchyBrowser.java | src/com/intellij/plugins/haxe/ide/hierarchy/call/HaxeCallHierarchyBrowser.java | 45 | 45 | fe94c2aea1c59fdadb264d78464183e4a963f0f1 | 91cf96dffafeb8f66e03afd17960cc8873c5a574 | 2015-01-08 18:31:42+00:00 | 2015-01-13 09:22:25+00:00 | // TODO: EMB -- Make a haxe version of CalleedMethodsTreeStructure | null | null | null | // TODO: EMB -- Make a haxe version of CalleedMethodsTreeStructure | TODO: EMB -- Make a haxe version of CalleedMethodsTreeStructure | AST_FALLBACK | protected HierarchyTreeStructure createHierarchyTreeStructure(@NotNull final String typeName, @NotNull final PsiElement psiElement) {
if (CALLER_TYPE.equals(typeName)) {
return new HaxeCallerMethodsTreeStructure(myProject, (PsiMethod)psiElement, getCurrentScopeType());
}
else if (CALLEE_TYPE.equals(... | protected HierarchyTreeStructure createHierarchyTreeStructure(@NotNull final String typeName, @NotNull final PsiElement psiElement) {
if (CALLER_TYPE.equals(typeName)) {
return new HaxeCallerMethodsTreeStructure(myProject, (PsiMethod)psiElement, getCurrentScopeType());
}
else if (CALLEE_TYPE.equals(typeName))... | true | 1 | 0 | 105 | 92 | yes | www.github.com/haxefoundation/intellij-haxe/commit/91cf96dffafeb8f66e03afd17960cc8873c5a574 | train |
25 | crdroidandroid | android_packages_apps_settings | tests/robotests/src/com/android/settings/fuelgauge/batteryusage/BatteryChartPreferenceControllerV2Test.java | tests/robotests/src/com/android/settings/fuelgauge/batteryusage/BatteryChartPreferenceControllerV2Test.java | 171 | 171 | cec6ba54902bbebba9fffaf048d4c812a03d2ac0 | 8bc6fcb92d35d85fc640f57bc11bcff08f80fdc1 | 2022-07-30 23:31:08+00:00 | 2022-08-04 01:30:56+00:00 | // TODO: Removes the following line after loading mBatteryIndexedMap is supported. | null | null | null | // TODO: Removes the following line after loading mBatteryIndexedMap is supported. | TODO: Removes the following line after loading mBatteryIndexedMap is supported. | AST_FALLBACK | public void setBatteryChartViewModel_6Hours() {
// TODO: Removes the following line after loading mBatteryIndexedMap is supported.
mBatteryChartPreferenceController.mBatteryIndexedMap = new HashMap<>();
mBatteryChartPreferenceController.setBatteryHistoryMap(createBatteryHistoryMap(6));
verify(mDailyCh... | public void setBatteryChartViewModel_6Hours() {
mBatteryChartPreferenceController.setBatteryHistoryMap(createBatteryHistoryMap(6));
verify(mDailyChartView, atLeastOnce()).setVisibility(View.GONE);
verify(mHourlyChartView, atLeastOnce()).setVisibility(View.VISIBLE);
verify(mHourlyChartView).setViewModel... | true | 1 | 0 | 119 | 102 | yes | www.github.com/crdroidandroid/android_packages_apps_settings/commit/8bc6fcb92d35d85fc640f57bc11bcff08f80fdc1 | train |
29 | treasure-data | digdag | digdag-server/src/main/java/io/digdag/server/rs/ProjectResource.java | digdag-server/src/main/java/io/digdag/server/rs/ProjectResource.java | 259 | 322 | fa820c24f095a7d0571a8065c73e848b15fde5af | be5db53df308f6c177e94ecc3ddfef8ede5deca3 | 2016-04-20 02:17:48+00:00 | 2016-06-24 23:11:33+00:00 | // TODO throw this exception before reading all data in memory | null | null | null | // TODO throw this exception before reading all data in memory | TODO throw this exception before reading all data in memory | AST_FALLBACK | public RestProject putProject(@QueryParam("project") String name, @QueryParam("revision") String revision,
InputStream body)
throws IOException, ResourceConflictException, ResourceNotFoundException
{
Preconditions.checkArgument(name != null, "project= is required");
Preconditions.checkArgument(revis... | public RestProject putProject(@QueryParam("project") String name, @QueryParam("revision") String revision,
InputStream body, @HeaderParam("Content-Length") long contentLength)
throws IOException, ResourceConflictException, ResourceNotFoundException
{
Preconditions.checkArgument(name != null, "project= i... | true | 1 | 0 | 428 | 655 | yes | www.github.com/treasure-data/digdag/commit/be5db53df308f6c177e94ecc3ddfef8ede5deca3 | train |
30 | elexis | elexis-3-core | bundles/ch.elexis.core.model/src/ch/elexis/core/model/Encounter.java | bundles/ch.elexis.core.model/src/ch/elexis/core/model/Encounter.java | 38 | 38 | ccde2ae45365ec82661fbd4f0f2d49506fee8fa7 | fde0370211b145d4cd785d6d1fd5d69ddd175bc2 | 2021-04-21 12:09:44+00:00 | 2021-04-21 12:48:48+00:00 | // TODO looses information | null | null | null | // TODO looses information | TODO looses information | AST_FALLBACK | public void setTimeStamp(LocalDateTime value){
// TODO looses information
getEntityMarkDirty().setDatum(value.toLocalDate());
} | public void setTimeStamp(LocalDateTime value){
Behandlung entity = getEntityMarkDirty();
entity.setDatum(value.toLocalDate());
entity.setTime(timeFormatter.format(value));
} | true | 1 | 0 | 27 | 39 | yes | www.github.com/elexis/elexis-3-core/commit/fde0370211b145d4cd785d6d1fd5d69ddd175bc2 | train |
33 | freenet | plugin-weboftrust | src/plugins/WebOfTrust/WebOfTrust.java | src/plugins/WebOfTrust/WebOfTrust.java | 1,066 | 1,066 | 941515d733419cd71d81605adcdc298a7cd36859 | 90062d081f7169967705064f60cff4a61e16cea9 | 2010-10-23 16:30:07+00:00 | 2010-10-30 18:24:43+00:00 | // FIXME: Get rid of the synchronization & check whether the callers do it | null | null | null | // FIXME: Get rid of the synchronization & check whether the callers do it | FIXME: Get rid of the synchronization & check whether the callers do it | AST_FALLBACK | // FIXME: Get rid of the synchronization & check whether the callers do it
public synchronized ObjectSet<Identity> getAllNonOwnIdentities() {
final Query q = mDB.query();
q.constrain(Identity.class);
q.constrain(OwnIdentity.class).not();
return new Persistent.InitializingObjectSet<Identity>(this, q);
} | public ObjectSet<Identity> getAllNonOwnIdentities() {
final Query q = mDB.query();
q.constrain(Identity.class);
q.constrain(OwnIdentity.class).not();
return new Persistent.InitializingObjectSet<Identity>(this, q);
} | true | 1 | 0 | 73 | 56 | yes | www.github.com/freenet/plugin-weboftrust/commit/90062d081f7169967705064f60cff4a61e16cea9 | train |
37 | weaponmechanics | mechanicsmain | WeaponMechanics/src/main/java/me/deecaad/weaponmechanics/WeaponMechanics.java | WeaponMechanics/src/main/java/me/deecaad/weaponmechanics/WeaponMechanics.java | 207 | 211 | a632b2dfbfa4d51dafc866f5812833adc49d588e | 2ed786174b385ee6606431ecd8cf43d0d735458b | 2022-02-08 18:23:58+00:00 | 2022-10-08 00:44:41+00:00 | // TODO bad programmars comment out broken code | null | null | null | // TODO bad programmars comment out broken code | TODO bad programmars comment out broken code | AST_FALLBACK | void writeFiles() {
debug.debug("Writing files and filling basic configuration");
// Create files
if (!getDataFolder().exists() || getDataFolder().listFiles() == null || getDataFolder().listFiles().length == 0) {
debug.info("Copying files from jar (This process may take up to 30 seconds during the ... | void writeFiles() {
debug.debug("Writing files and filling basic configuration");
// Create files
if (!getDataFolder().exists() || getDataFolder().listFiles() == null || getDataFolder().listFiles().length == 0) {
debug.info("Copying files from jar (This process may take up to 30 seconds during the ... | true | 1 | 0 | 470 | 462 | yes | www.github.com/weaponmechanics/mechanicsmain/commit/2ed786174b385ee6606431ecd8cf43d0d735458b | train |
40 | strimzi | strimzi-kafka-operator | cluster-controller/src/main/java/io/strimzi/controller/cluster/resources/TopicController.java | cluster-controller/src/main/java/io/strimzi/controller/cluster/resources/TopicController.java | 79 | 91 | 5fee735b3297afdaec92d5599afed613a131c35e | 8f1f0a7b52c47554a8325ba698ac7fe964727ed8 | 2018-02-26 19:29:53+00:00 | 2018-02-26 19:29:53+00:00 | // TODO : exposing the KafkaCluster.NAME_SUFFIX as public | null | null | null | // TODO : exposing the KafkaCluster.NAME_SUFFIX as public | TODO : exposing the KafkaCluster.NAME_SUFFIX as public | AST_FALLBACK | protected static String defaultBootstrapServers(String cluster) {
// TODO : exposing the KafkaCluster.NAME_SUFFIX as public
return cluster + "-kafka" + ":" + DEFAULT_BOOTSTRAP_SERVERS_PORT;
} | protected static String defaultBootstrapServers(String cluster) {
return cluster + KafkaCluster.NAME_SUFFIX + ":" + DEFAULT_BOOTSTRAP_SERVERS_PORT;
} | true | 1 | 0 | 35 | 23 | yes | www.github.com/strimzi/strimzi-kafka-operator/commit/8f1f0a7b52c47554a8325ba698ac7fe964727ed8 | train |
41 | arianne | stendhal | src/games/stendhal/tools/updateprop/UpdatePropUpdater.java | src/games/stendhal/tools/updateprop/UpdatePropUpdater.java | 101 | 111 | d1416e092e362ddb74723013a9b054a5d62431d6 | 0b1cbd58e29a775ed4c40bd0af48acfce0be8876 | 2010-07-31 12:41:35+00:00 | 2011-07-06 21:17:56+00:00 | // TODO: generate automatically instead of hardcoding it.
// TODO: generate automatically instead of hard coding it. | [113] | [113] | ['fdb79204c6d1a74243e7f59440398873a0b9c11a'] | // TODO: generate automatically instead of hard coding it. | TODO: generate automatically instead of hard coding it. | AST_FALLBACK | private void updateUpdateFileList() {
// TODO: generate automatically instead of hard coding it.
prop.put("update-file-list." + oldVersion, NON_STENDHAL_FILES + ",stendhal" + legacy + "-data-diff-" + oldVersion + "-" + newVersion + ".jar,stendhal" + legacy + "-diff-" + oldVersion + "-" + newVersion + ".jar");
} | private void updateUpdateFileList() {
StringBuilder updateList = new StringBuilder();
for (String file : files) {
if (updateList.length() > 0) {
updateList.append(",");
}
if (file.indexOf("diff") > -1) {
updateList.append(file);
}
}
prop.put("update-file-list." + oldVersion, updateList);
} | true | 1 | 0 | 88 | 86 | yes | www.github.com/arianne/stendhal/commit/0b1cbd58e29a775ed4c40bd0af48acfce0be8876 | train |
42 | consulo | consulo | xml/impl/src/com/intellij/codeInsight/template/emmet/filters/BemEmmetFilter.java | xml/impl/src/com/intellij/codeInsight/template/emmet/filters/BemEmmetFilter.java | 88 | 97 | 0142adcea6a9bb9b1416bc7a4c62689770256270 | aed278601b70d69ede1c88a5159f52e8fbe9eb5d | 2013-02-06 16:29:00+00:00 | 2013-02-25 16:47:59+00:00 | return false; //todo: add setting for enabling this filter by default | null | null | null | return false; //todo: add setting for enabling this filter by default | todo: add setting for enabling this filter by default | AST_FALLBACK | public boolean isAppliedByDefault(@NotNull PsiElement context) {
return false; //todo: add setting for enabling this filter by default
} | public boolean isAppliedByDefault(@NotNull PsiElement context) {
return EmmetOptions.getInstance().isBemFilterEnabledByDefault();
} | true | 1 | 0 | 26 | 22 | yes | www.github.com/consulo/consulo/commit/aed278601b70d69ede1c88a5159f52e8fbe9eb5d | train |
45 | eclipse-jdt | eclipse.jdt.core | org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/Parser.java | org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/Parser.java | 4,720 | 4,720 | 2b9c38e02e691c732245c8c88a350fc2b254f51d | 6667f48fb414bf631c6788d57b69b16addac46f0 | 2003-02-25 13:30:58+00:00 | 2003-04-08 14:22:41+00:00 | return new FieldDeclaration(null, name, sourceStart, sourceEnd); // TODO: (olivier) why don't we persist the initialization expression? | null | null | null | return new FieldDeclaration(null, name, sourceStart, sourceEnd); // TODO: (olivier) why don't we persist the initialization expression? | TODO: (olivier) why don't we persist the initialization expression? | AST_FALLBACK | protected FieldDeclaration createFieldDeclaration(Expression initialization, char[] name, int sourceStart, int sourceEnd) {
return new FieldDeclaration(null, name, sourceStart, sourceEnd); // TODO: (olivier) why don't we persist the initialization expression?
} | protected FieldDeclaration createFieldDeclaration(Expression initialization, char[] name, int sourceStart, int sourceEnd) {
return new FieldDeclaration(initialization, name, sourceStart, sourceEnd);
} | true | 1 | 0 | 50 | 33 | yes | www.github.com/eclipse-jdt/eclipse.jdt.core/commit/6667f48fb414bf631c6788d57b69b16addac46f0 | train |
47 | apache | tomcat | java/org/apache/tomcat/util/net/AprEndpoint.java | java/org/apache/tomcat/util/net/AprEndpoint.java | 2,910 | 2,809 | bdbbac068bb3b3c985d755c1ec72fa8265bec327 | 7d73f7fec46e422befb90cc504df0e9f0571cfaa | 2015-04-16 13:37:05+00:00 | 2016-02-03 10:23:33+00:00 | // TODO Auto-generated method stub | null | null | null | // TODO Auto-generated method stub | TODO Auto-generated method stub | AST_FALLBACK | public <A> CompletionState read(ByteBuffer[] dsts, int offset,
int length, boolean block, long timeout, TimeUnit unit,
A attachment, CompletionCheck check,
CompletionHandler<Long, ? super A> handler) {
// TODO Auto-generated method stub
throw new UnsupportedOperationException();
} | public int read(boolean block, byte[] b, int off, int len)
throws IOException {
socketBufferHandler.configureReadBufferForRead();
ByteBuffer readBuffer = socketBufferHandler.getReadBuffer();
int remaining = readBuffer.remaining();
// Is there enough data in the read buffer to satisfy this requ... | true | 1 | 0 | 59 | 284 | yes | www.github.com/apache/tomcat/commit/7d73f7fec46e422befb90cc504df0e9f0571cfaa | train |
49 | elastic | elasticsearch | x-pack/plugin/transform/src/main/java/org/elasticsearch/xpack/transform/transforms/TransformPersistentTasksExecutor.java | x-pack/plugin/transform/src/main/java/org/elasticsearch/xpack/transform/transforms/TransformPersistentTasksExecutor.java | 114 | 114 | 563d906a78d51f00bfb7589631070c4decb4f5c3 | 6c86b604102e8d9d9076f56d4ce546053c11feee | 2020-03-02 08:01:18+00:00 | 2020-03-03 07:39:00+00:00 | if (node.getVersion().onOrAfter(Version.V_8_0_0)) { // todo: V_7_7_0, remove from 8.0 | null | null | null | if (node.getVersion().onOrAfter(Version.V_8_0_0)) { // todo: V_7_7_0, remove from 8.0 | todo: V_7_7_0, remove from 8.0 | AST_FALLBACK | public PersistentTasksCustomMetaData.Assignment getAssignment(TransformTaskParams params, ClusterState clusterState) {
List<String> unavailableIndices = verifyIndicesPrimaryShardsAreActive(clusterState, resolver);
if (unavailableIndices.size() != 0) {
String reason = "Not starting transform ["
... | public PersistentTasksCustomMetaData.Assignment getAssignment(TransformTaskParams params, ClusterState clusterState) {
List<String> unavailableIndices = verifyIndicesPrimaryShardsAreActive(clusterState, resolver);
if (unavailableIndices.size() != 0) {
String reason = "Not starting transform ["
... | true | 1 | 0 | 344 | 282 | yes | www.github.com/elastic/elasticsearch/commit/6c86b604102e8d9d9076f56d4ce546053c11feee | train |
51 | geysermc | geyserdiscordbot | src/main/java/org/geysermc/discordbot/listeners/SwearHandler.java | src/main/java/org/geysermc/discordbot/listeners/SwearHandler.java | 63 | 87 | 6df5f5b86f592c2db3fdbf29669a6927c4bb49bd | efccd336f09804a505f87134d8d348ae2fdf1256 | 2021-01-20 23:43:36+00:00 | 2021-06-12 00:31:36+00:00 | // TODO: Handle error
// TODO: Handle error | [85] | [87] | ['93b5dea2db5a34cb3f0c3dc3551ebcb30f10d988'] | // TODO: Handle error | TODO: Handle error | AST_FALLBACK | public static void loadFilters() {
int fileCount = 0;
try {
for (String fileName : BotHelpers.getResourceListing(SwearHandler.class, "filters/")) {
if (fileName.endsWith(".wlist")) {
fileCount++;
// Load the lines
String[] lines = new String(Bo... | public static void loadFilters() {
int fileCount = 0;
try {
for (String fileName : BotHelpers.getResourceListing(SwearHandler.class, "filters/")) {
if (fileName.endsWith(".wlist")) {
fileCount++;
// Load the lines
String[] lines = new String(Bo... | true | 1 | 0 | 230 | 234 | yes | www.github.com/geysermc/geyserdiscordbot/commit/efccd336f09804a505f87134d8d348ae2fdf1256 | train |
54 | apache | cassandra | contrib/pig/src/java/org/apache/cassandra/hadoop/pig/CassandraStorage.java | contrib/pig/src/java/org/apache/cassandra/hadoop/pig/CassandraStorage.java | 318 | 318 | 6faff79d0868ffdbc8f88ff853044eacf86ec5f7 | 845af1ca3ce21fb543daba5434751cb63fd5a18d | 2011-10-03 17:10:10+00:00 | 2011-10-19 13:35:57+00:00 | keyFieldSchema.setType(DataType.CHARARRAY); //TODO: get key type | null | null | null | keyFieldSchema.setType(DataType.CHARARRAY); //TODO: get key type | TODO: get key type | AST_FALLBACK | public ResourceSchema getSchema(String location, Job job) throws IOException
{
setLocation(location, job);
CfDef cfDef = getCfDef(loadSignature);
if (cfDef.column_type.equals("Super"))
return null;
// top-level schema, no type
ResourceSchema schema = new ResourceSchema();
// add key
... | public ResourceSchema getSchema(String location, Job job) throws IOException
{
setLocation(location, job);
CfDef cfDef = getCfDef(loadSignature);
if (cfDef.column_type.equals("Super"))
return null;
// top-level schema, no type
ResourceSchema schema = new ResourceSchema();
// get defaul... | true | 1 | 0 | 504 | 510 | yes | www.github.com/apache/cassandra/commit/845af1ca3ce21fb543daba5434751cb63fd5a18d | train |
59 | cryostatio | cryostat | src/main/java/io/cryostat/recordings/JvmIdHelper.java | src/main/java/io/cryostat/recordings/JvmIdHelper.java | 165 | 219 | cf69bbd91215b96e7f980e596069225791e1efe6 | b48b48498687dcedb26860e7127c0ca0c42ae3fc | 2022-10-20 19:47:47+00:00 | 2023-01-11 20:36:53+00:00 | // FIXME: refactor structure to remove file-uploads (v1 RecordingsPostBodyHandler) | null | null | null | // FIXME: refactor structure to remove file-uploads (v1 RecordingsPostBodyHandler) | FIXME: refactor structure to remove file-uploads (v1 RecordingsPostBodyHandler) | AST_FALLBACK | // FIXME: refactor structure to remove file-uploads (v1 RecordingsPostBodyHandler)
public boolean isSpecialDirectory(String directoryName) {
return directoryName.equals(RecordingArchiveHelper.UPLOADED_RECORDINGS_SUBDIRECTORY)
|| directoryName.equals("file-uploads")
|| directoryName.equals(Re... | public boolean isSpecialDirectory(String directoryName) {
return directoryName.equals(RecordingArchiveHelper.UPLOADED_RECORDINGS_SUBDIRECTORY)
|| directoryName.equals(RecordingArchiveHelper.TEMP_UPLOADS_SUBDIRECTORY)
|| directoryName.equals(RecordingArchiveHelper.LOST_RECORDINGS_SUBDIRECTORY... | true | 1 | 0 | 56 | 39 | yes | www.github.com/cryostatio/cryostat/commit/b48b48498687dcedb26860e7127c0ca0c42ae3fc | train |
65 | evolveum | midpoint | infra/schema/src/main/java/com/evolveum/midpoint/schema/util/ResourceTypeUtil.java | infra/schema/src/main/java/com/evolveum/midpoint/schema/util/ResourceTypeUtil.java | 217 | 212 | 04b21012678f75c1132da2b421b3c907b14ea967 | f8708def3c14658a0d0b218251b35e16b74b2aa6 | 2022-05-13 06:56:33+00:00 | 2022-10-12 13:38:29+00:00 | // FIXME why is typeDefinition bean unused? | null | null | null | // FIXME why is typeDefinition bean unused? | FIXME why is typeDefinition bean unused? | AST_FALLBACK | // FIXME why is typeDefinition bean unused?
public static boolean isActivationLockoutStatusCapabilityEnabled(
ResourceType resource, ResourceObjectTypeDefinitionType typeDefinitionBean) {
ActivationLockoutStatusCapabilityType lockoutCap = getEffectiveActivationLockoutStatusCapability(resource);
return i... | public static boolean isActivationLockoutStatusCapabilityEnabled(
ResourceType resource, ResourceObjectTypeDefinitionType typeDefinitionBean) {
ActivationLockoutStatusCapabilityType lockoutCap = getEffectiveActivationLockoutStatusCapability(resource, typeDefinitionBean);
return isEnabled(lockoutCap);
} | true | 1 | 0 | 36 | 29 | yes | www.github.com/evolveum/midpoint/commit/f8708def3c14658a0d0b218251b35e16b74b2aa6 | train |
66 | i2pplus | i2pplus | apps/susimail/src/src/i2p/susi/webmail/WebMail.java | apps/susimail/src/src/i2p/susi/webmail/WebMail.java | 2,679 | 3,118 | 012fb4cacf696a4dfe498f747dacda940631e360 | fa0ab5f6df26a9cf51e2ea619cdfdd4caaa537fc | 2018-02-12 14:26:19+00:00 | 2020-03-06 06:26:43+00:00 | // TODO make it pretty | null | null | null | // TODO make it pretty | TODO make it pretty | AST_FALLBACK | private static void showLoading(PrintWriter out, SessionObject sessionObject, RequestWrapper request) {
// TODO make it pretty
out.println("<p><b>");
out.println(_t("Loading emails, please wait..."));
out.println("</b><p><b>");
out.println(_t("Refresh the page for updates"));
out.println("</b>");
}
| private static void showLoading(PrintWriter out, SessionObject sessionObject, RequestWrapper request) {
out.println("<p id=\"loading\"><span id=\"loadbar\"><b>");
out.println(_t("Loading messages, please wait..."));
out.println("</b></span>");
// no need for this, meta refresh has it covered
//out.println(_t(... | true | 1 | 0 | 101 | 130 | yes | www.github.com/i2pplus/i2pplus/commit/fa0ab5f6df26a9cf51e2ea619cdfdd4caaa537fc | train |
67 | openmrs | openmrs-module-fhir2 | omod/src/test/java/org/openmrs/module/fhir2/providers/DiagnosticReportFhirResourceProviderWebTest.java | omod/src/test/java/org/openmrs/module/fhir2/providers/DiagnosticReportFhirResourceProviderWebTest.java | 110 | 110 | 8e9fca8972b7e976a208478cc6de3d94ebde025c | 42feea595eacd88c0fbf51ccf4b58d79371565d4 | 2020-02-12 18:56:42+00:00 | 2020-03-04 18:31:36+00:00 | // TODO: Fix so status is 400, not 200. | null | null | null | // TODO: Fix so status is 400, not 200. | TODO: Fix so status is 400, not 200. | AST_FALLBACK | public void updateDiagnosticReport_shouldErrorForNoId() throws Exception {
DiagnosticReport diagnosticReport = new DiagnosticReport();
diagnosticReport.setId(DIAGNOSTIC_REPORT_UUID);
MockHttpServletResponse response = put("/DiagnosticReport/").accept(FhirMediaTypes.JSON).go();
// TODO: Fix so status is 400, not 2... | public void updateDiagnosticReport_shouldErrorForNoId() throws Exception {
String jsonDiagnosticReport;
try (InputStream is = this.getClass().getClassLoader().getResourceAsStream(JSON_DIAGNOSTIC_REPORT_NO_ID_PATH)) {
jsonDiagnosticReport = IOUtils.toString(is);
}
MockHttpServletResponse response = put("/Diagnost... | true | 1 | 0 | 69 | 105 | yes | www.github.com/openmrs/openmrs-module-fhir2/commit/42feea595eacd88c0fbf51ccf4b58d79371565d4 | train |
70 | bazelbuild | bazel | src/main/java/com/google/devtools/build/lib/bazel/bzlmod/BazelModuleResolutionFunction.java | src/main/java/com/google/devtools/build/lib/bazel/bzlmod/BazelModuleResolutionFunction.java | 82 | 82 | a66830628420887ecd6542e1362210acb46f860d | fe5bb70ca8b1832cda35bc65462c0af6ba13ac7c | 2022-09-20 17:16:10+00:00 | 2022-09-29 14:01:06+00:00 | // TODO(salmasamy) add flag to ignore version compatability check | null | null | null | // TODO(salmasamy) add flag to ignore version compatability check | TODO(salmasamy) add flag to ignore version compatability check | AST_FALLBACK | public SkyValue compute(SkyKey skyKey, Environment env)
throws SkyFunctionException, InterruptedException {
RootModuleFileValue root =
(RootModuleFileValue) env.getValue(ModuleFileValue.KEY_FOR_ROOT_MODULE);
if (root == null) {
return null;
}
ImmutableMap<ModuleKey, Module> initialDepGraph = Disco... | public SkyValue compute(SkyKey skyKey, Environment env)
throws SkyFunctionException, InterruptedException {
RootModuleFileValue root =
(RootModuleFileValue) env.getValue(ModuleFileValue.KEY_FOR_ROOT_MODULE);
if (root == null) {
return null;
}
ImmutableMap<ModuleKey, Module> initialDepGraph = Disco... | true | 1 | 0 | 215 | 220 | yes | www.github.com/bazelbuild/bazel/commit/fe5bb70ca8b1832cda35bc65462c0af6ba13ac7c | train |
72 | jooq | jooq | jOOQ/src/main/java/org/jooq/impl/FilteredMeta.java | jOOQ/src/main/java/org/jooq/impl/FilteredMeta.java | 283 | 283 | 7e5aecc43ec7ce9d8c3b3bdab35875c41ba87fb3 | 6887e4714cc03b59f4a5ea846877337d10dbee2e | 2020-06-11 15:43:41+00:00 | 2020-06-12 08:39:27+00:00 | // TODO create a FilteredTable and filter out primary key and indexes | null | null | null | // TODO create a FilteredTable and filter out primary key and indexes | TODO create a FilteredTable and filter out primary key and indexes | AST_FALLBACK | public final List<Table<?>> getTables() {
if (tables == null) {
tables = new ArrayList<>();
for (Table<?> t : delegate.getTables())
if (tableFilter == null || tableFilter.test(t))
// TODO create a FilteredTable and filter out primary key and indexes
table... | public final List<Table<?>> getTables() {
if (tables == null) {
tables = new ArrayList<>();
for (Table<?> t : delegate.getTables())
if (tableFilter == null || tableFilter.test(t))
tables.add(new FilteredTable<>(this, t));
}
return Collections.unmodifiableList(ta... | true | 1 | 0 | 89 | 84 | yes | www.github.com/jooq/jooq/commit/6887e4714cc03b59f4a5ea846877337d10dbee2e | train |
74 | perception-solutions | opencamera-sensors | src/net/sourceforge/opencamera/CameraController2.java | src/net/sourceforge/opencamera/CameraController2.java | 362 | 904 | c73bfc3a1e7da6d960097da84eef7df001cc3d41 | 11622a64320b1b45a88f5faef15f45ca4d597456 | 2014-12-22 22:21:01+00:00 | 2015-01-24 20:30:52+00:00 | // TODO Auto-generated method stub | null | null | null | // TODO Auto-generated method stub | TODO Auto-generated method stub | AST_FALLBACK | public boolean startFaceDetection() {
// TODO Auto-generated method stub
return false;
}
| public boolean startFaceDetection() {
if( previewBuilder.get(CaptureRequest.STATISTICS_FACE_DETECT_MODE) == CaptureRequest.STATISTICS_FACE_DETECT_MODE_SIMPLE ) {
return false;
}
previewBuilder.set(CaptureRequest.STATISTICS_FACE_DETECT_MODE, CaptureRequest.STATISTICS_FACE_DETECT_MODE_SIMPLE);
... | true | 1 | 0 | 18 | 48 | yes | www.github.com/perception-solutions/opencamera-sensors/commit/11622a64320b1b45a88f5faef15f45ca4d597456 | train |
75 | unity-idm | unity | persistence/src/main/java/pl/edu/icm/unity/db/json/IdentityTypeSerializer.java | persistence/src/main/java/pl/edu/icm/unity/db/json/IdentityTypeSerializer.java | 68 | 68 | 1c3359e694fe29f4ac1d03829577e59463c911cf | b6fdb107447e94d775a15f36689f5b4cdfe88a03 | 2013-02-20 16:51:02+00:00 | 2013-04-17 08:26:47+00:00 | //TODO checking if attribtues exist | null | null | null | //TODO checking if attribtues exist | TODO checking if attribtues exist | AST_FALLBACK | public void fromJson(byte[] json, IdentityType target)
{
if (json == null)
return;
ObjectNode main;
try
{
main = mapper.readValue(json, ObjectNode.class);
} catch (Exception e)
{
throw new InternalException("Can't perform JSON deserialization", e);
}
target.setDescription(main.get("descripti... | public void fromJson(byte[] json, IdentityType target)
{
if (json == null)
return;
ObjectNode main;
try
{
main = mapper.readValue(json, ObjectNode.class);
} catch (Exception e)
{
throw new InternalException("Can't perform JSON deserialization", e);
}
target.setDescription(main.get("description").asText()... | true | 1 | 0 | 157 | 136 | yes | www.github.com/unity-idm/unity/commit/b6fdb107447e94d775a15f36689f5b4cdfe88a03 | train |
79 | apache | hadoop | hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/AdminService.java | hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/AdminService.java | 251 | 218 | c58ae266e9fa336ef5b515f540c8ce8bb2f76df8 | c3cc855d27470edca7ca0bdc0aa8907b544b636e | 2013-12-02 22:18:44+00:00 | 2014-01-07 01:56:11+00:00 | // TODO (YARN-1177): When automatic failover is enabled, | null | null | null | // TODO (YARN-1177): When automatic failover is enabled, | TODO (YARN-1177): When automatic failover is enabled, | AST_FALLBACK | public synchronized void transitionToStandby(
HAServiceProtocol.StateChangeRequestInfo reqInfo) throws IOException {
UserGroupInformation user = checkAccess("transitionToStandby");
// TODO (YARN-1177): When automatic failover is enabled,
// check if transition should be allowed for this request
try {
rm... | public synchronized void transitionToStandby(
HAServiceProtocol.StateChangeRequestInfo reqInfo) throws IOException {
UserGroupInformation user = checkAccess("transitionToStandby");
checkHaStateChange(reqInfo);
try {
rm.transitionToStandby(true);
RMAuditLogger.logSuccess(user.getShortUserName(),
... | true | 1 | 0 | 134 | 113 | yes | www.github.com/apache/hadoop/commit/c3cc855d27470edca7ca0bdc0aa8907b544b636e | train |
81 | synbiodex | libsbolj | core2/src/main/java/org/sbolstandard/core2/SBOLReader.java | core2/src/main/java/org/sbolstandard/core2/SBOLReader.java | 2,484 | 2,484 | 73556123f33ffc313f4bf5a822c89b701985f640 | fbed388a75f7837f0b8a69feff627e4cd669f813 | 2015-09-16 06:13:50+00:00 | 2015-09-16 15:34:04+00:00 | //TODO: to fix | null | null | null | //TODO: to fix | TODO: to fix | AST_FALLBACK | private static Sequence parseSequences(SBOLDocument SBOLDoc, TopLevelDocument<QName> topLevel)
{
String displayId = URIcompliance.extractDisplayId(topLevel.getIdentity());
String name = null;
String description = null;
URI persistentIdentity = URI.create(URIcompliance.extractPersistentId(topLevel.getI... | private static Sequence parseSequences(SBOLDocument SBOLDoc, TopLevelDocument<QName> topLevel)
{
String displayId = URIcompliance.extractDisplayId(topLevel.getIdentity());
String name = null;
String description = null;
URI persistentIdentity = URI.create(URIcompliance.extractPersistentId(topLevel.getI... | true | 1 | 0 | 691 | 688 | yes | www.github.com/synbiodex/libsbolj/commit/fbed388a75f7837f0b8a69feff627e4cd669f813 | train |
82 | broadleafcommerce | broadleafcommerce | BroadleafCommerce/src-framework/org/broadleafcommerce/payment/secure/service/SecurePaymentInfoServiceImpl.java | BroadleafCommerce/src-framework/org/broadleafcommerce/payment/secure/service/SecurePaymentInfoServiceImpl.java | 34 | 34 | cd06ad1dc77a7223e8f8c86344c0e8a5a08c36e3 | 9aa43eee7152e474d67d7563e332e2b8833e9783 | 2009-04-16 15:46:03+00:00 | 2009-04-16 21:07:39+00:00 | // TODO Auto-generated method stub | null | null | null | // TODO Auto-generated method stub | TODO Auto-generated method stub | AST_FALLBACK | public CreditCardPaymentInfo findCreditCardInfo(String referenceNumber) {
// TODO Auto-generated method stub
return null;
} | public CreditCardPaymentInfo findCreditCardInfo(String referenceNumber) {
return securePaymentInfoDao.findCreditCardInfo(referenceNumber);
} | true | 1 | 0 | 20 | 17 | yes | www.github.com/broadleafcommerce/broadleafcommerce/commit/9aa43eee7152e474d67d7563e332e2b8833e9783 | train |
83 | eclipse-ee4j | eclipselink | jpa/plugins/javax.persistence/src/javax/persistence/Persistence.java | jpa/plugins/javax.persistence/src/javax/persistence/Persistence.java | 95 | 90 | 8d6c371782e8edbb71114a493ef10b4683c18f12 | e8a472ee2ef753183a178dce7d3456422259a93c | 2009-04-17 19:29:54+00:00 | 2009-07-08 19:36:58+00:00 | // TODO - Implement Util | null | null | null | // TODO - Implement Util | TODO - Implement Util | AST_FALLBACK | public static PersistenceUtil getPersistenceUtil() {
// TODO - Implement Util
throw new RuntimeException("JPA 2.0 Feature Not yet Implemented");
// return new PersistenceUtilImpl();
} | public static PersistenceUtil getPersistenceUtil() {
return new PersistenceUtilImpl();
} | true | 1 | 0 | 38 | 14 | yes | www.github.com/eclipse-ee4j/eclipselink/commit/e8a472ee2ef753183a178dce7d3456422259a93c | train |
84 | sonarsource | sonar-java | java-frontend/src/main/java/org/sonar/java/se/ExplodedGraphWalker.java | java-frontend/src/main/java/org/sonar/java/se/ExplodedGraphWalker.java | 483 | 489 | caf27ec1c18364906a32196a1f694237612e2114 | cd831305a81ad07bbe549bd67e3941c7631558b8 | 2016-10-24 09:27:05+00:00 | 2016-10-24 09:27:05+00:00 | // (FIXME) nothing done of the invoked behavior | null | null | null | // (FIXME) nothing done of the invoked behavior | (FIXME) nothing done of the invoked behavior | AST_FALLBACK | private void executeMethodInvocation(MethodInvocationTree mit) {
setSymbolicValueOnFields(mit);
// unstack arguments and method identifier
ProgramState.Pop unstack = programState.unstackValue(mit.arguments().size() + 1);
programState = unstack.state;
logState(mit);
// get method behavior for method with kn... | private void executeMethodInvocation(MethodInvocationTree mit) {
setSymbolicValueOnFields(mit);
// unstack arguments and method identifier
ProgramState.Pop unstack = programState.unstackValue(mit.arguments().size() + 1);
logState(mit);
programState = unstack.state;
// Enqueue exceptional paths
node.progr... | true | 1 | 0 | 232 | 389 | yes | www.github.com/sonarsource/sonar-java/commit/cd831305a81ad07bbe549bd67e3941c7631558b8 | train |
86 | apache | incubator-pinot | pinot-core/src/main/java/org/apache/pinot/core/query/reduce/GroupByDataTableReducer.java | pinot-core/src/main/java/org/apache/pinot/core/query/reduce/GroupByDataTableReducer.java | 194 | 335 | 5c02b14c5a1188ca0e72e3b636231dcb5ff831d1 | e84a3afe7212196f639fb3b4023e6799a1c2de28 | 2019-11-26 16:49:32+00:00 | 2020-04-08 03:39:18+00:00 | // FIXME: support BYTES in DataTable instead of converting to string | null | null | null | // FIXME: support BYTES in DataTable instead of converting to string | FIXME: support BYTES in DataTable instead of converting to string | AST_FALLBACK | private IndexedTable getIndexedTable(DataSchema dataSchema, Collection<DataTable> dataTables) {
int indexedTableCapacity = GroupByUtils.getTableCapacity(_groupBy, _orderBy);
IndexedTable indexedTable =
new ConcurrentIndexedTable(dataSchema, _aggregationInfos, _orderBy, indexedTableCapacity);
for (DataTabl... | private IndexedTable getIndexedTable(DataSchema dataSchema, Collection<DataTable> dataTables) {
int indexedTableCapacity = GroupByUtils.getTableCapacity(_groupBy, _orderBy);
IndexedTable indexedTable =
new ConcurrentIndexedTable(dataSchema, _aggregationInfos, _orderBy, indexedTableCapacity);
for (DataTabl... | true | 1 | 0 | 316 | 313 | yes | www.github.com/apache/incubator-pinot/commit/e84a3afe7212196f639fb3b4023e6799a1c2de28 | train |
87 | google | guava | guava/src/com/google/common/primitives/Doubles.java | guava/src/com/google/common/primitives/Doubles.java | 285 | 285 | 75fda2a9fea9e3415c661e8688332c24ffddc940 | 82f5fb1d81269201546b02b093a568830a60e0c3 | 2013-12-18 19:44:53+00:00 | 2013-12-30 19:29:03+00:00 | // TODO(kevinb): remove null boilerplate (convert() will do it | null | null | null | // TODO(kevinb): remove null boilerplate (convert() will do it | TODO(kevinb): remove null boilerplate (convert() will do it | AST_FALLBACK | protected String doBackward(Double value) {
// TODO(kevinb): remove null boilerplate (convert() will do it
// automatically)
return value == null ? null : value.toString();
} | protected String doBackward(Double value) {
return value.toString();
} | true | 1 | 0 | 44 | 16 | yes | www.github.com/google/guava/commit/82f5fb1d81269201546b02b093a568830a60e0c3 | train |
88 | wangrenlei | localization_ambari | ambari-server/src/main/java/org/apache/ambari/server/topology/TopologyManager.java | ambari-server/src/main/java/org/apache/ambari/server/topology/TopologyManager.java | 556 | 556 | 43ae930b0188f22913dcc67ec5c8ea168ff4deae | 807b3c2df7a9a9fe1d728e75cf80c130848d4756 | 2015-04-29 00:45:13+00:00 | 2015-05-07 05:17:10+00:00 | //todo: for now if an exception occurs, log error and return true which will result in topology update | null | null | null | //todo: for now if an exception occurs, log error and return true which will result in topology update | todo: for now if an exception occurs, log error and return true which will result in topology update | AST_FALLBACK | private boolean areConfigsResolved() {
boolean configTopologyResolved = true;
Collection<String> requiredHostGroups;
try {
requiredHostGroups = configRequest.getRequiredHostGroups();
} catch (RuntimeException e) {
//todo: for now if an exception occurs, log error and return true which will result in top... | private boolean areConfigsResolved(Collection<String> requiredHostGroups) {
boolean configTopologyResolved = true;
synchronized (outstandingRequests) {
for (LogicalRequest outstandingRequest : outstandingRequests) {
if (! outstandingRequest.areGroupsResolved(requiredHostGroups)) {
configTopologyRe... | true | 1 | 0 | 131 | 53 | yes | www.github.com/wangrenlei/localization_ambari/commit/807b3c2df7a9a9fe1d728e75cf80c130848d4756 | train |
90 | apache | groovy | src/test/AllCodehausJavaTestsSuite.java | src/test/AllCodehausJavaTestsSuite.java | 29 | 29 | d2c69898be023b7109d9cafdbb4b0f40280f707d | f4fe04f78ac18f43e51c7565703bf986cf0aee43 | 2006-01-08 17:45:10+00:00 | 2006-01-11 22:11:28+00:00 | // suite.addTestSuite(SourcePrinterTest.class); // todo: re-enable as soon as it works on the build server | null | null | null | // suite.addTestSuite(SourcePrinterTest.class); // todo: re-enable as soon as it works on the build server | todo: re-enable as soon as it works on the build server | AST_FALLBACK | public static Test suite() {
TestSuite suite = new TestSuite();
suite.addTestSuite(GroovySourceASTTest.class);
suite.addTestSuite(SourceBufferTest.class);
// suite.addTestSuite(SourcePrinterTest.class); // todo: re-enable as soon as it works on the build server
suite.addTestSuite(ClassNodeTest.clas... | public static Test suite() {
TestSuite suite = new TestSuite();
suite.addTestSuite(GroovySourceASTTest.class);
suite.addTestSuite(SourceBufferTest.class);
suite.addTestSuite(SourcePrinterTest.class);
suite.addTestSuite(ClassNodeTest.class);
suite.addTestSuite(ModuleNodeTest.class);
suite.a... | true | 1 | 0 | 440 | 422 | yes | www.github.com/apache/groovy/commit/f4fe04f78ac18f43e51c7565703bf986cf0aee43 | train |
91 | real-logic | aeron | aeron-mediadriver/src/test/java/uk/co/real_logic/aeron/mediadriver/UnicastReceiverTest.java | aeron-mediadriver/src/test/java/uk/co/real_logic/aeron/mediadriver/UnicastReceiverTest.java | 116 | 110 | 6da224c70182c83bb262b884bbc79464daca6d35 | a5ff92523ce0124024beb7ea7aa4165091a029ed | 2014-04-09 23:21:10+00:00 | 2014-04-14 15:01:56+00:00 | // TODO: check control buffer to consumer to see if error is there. | null | null | null | // TODO: check control buffer to consumer to see if error is there. | TODO: check control buffer to consumer to see if error is there. | AST_FALLBACK | public void shouldSendErrorForInvalidUri() throws Exception
{
writeReceiverMessage(ControlProtocolEvents.ADD_RECEIVER, INVALID_URI, ONE_CHANNEL);
mediaDriverAdminThread.process();
// TODO: check control buffer to consumer to see if error is there.
final RingBuffer toApi = buffers.mappedToApi();
as... | public void shouldSendErrorForInvalidUri() throws Exception
{
writeReceiverMessage(ControlProtocolEvents.ADD_RECEIVER, INVALID_URI, ONE_CHANNEL);
processThreads(5);
final RingBuffer toApi = buffers.toApi();
assertEventRead(toApi, (eventTypeId, buffer, index, length) ->
{
assertThat(eventTy... | true | 1 | 0 | 71 | 142 | yes | www.github.com/real-logic/aeron/commit/a5ff92523ce0124024beb7ea7aa4165091a029ed | train |
94 | apache | axis-axis2-java-core | modules/saaj/src/org/apache/axis2/saaj/SOAPPartImpl.java | modules/saaj/src/org/apache/axis2/saaj/SOAPPartImpl.java | 1,196 | 1,362 | 2212bf782173f8400c80e0158e90201a5ea78dd6 | 1255185a925809f36bf0b7172558978f10525832 | 2006-01-21 02:37:14+00:00 | 2007-03-29 13:43:51+00:00 | // TODO TODO
// TODO - Fixme. | [1199] | [1199] | ['3792ca31fd2b53afd285f132e0dc43bc7a28d29f'] | // TODO - Fixme. | TODO - Fixme. | AST_FALLBACK | public boolean isSameNode(Node arg0) {
// TODO - Fixme.
throw new UnsupportedOperationException("TODO");
} | public boolean isSameNode(Node other) {
return document.isSameNode(other);
} | true | 1 | 0 | 24 | 17 | yes | www.github.com/apache/axis-axis2-java-core/commit/1255185a925809f36bf0b7172558978f10525832 | train |
97 | ruleant | getback_gps | src/org/ruleant/ariadne/AriadneLocation.java | src/java/com/github/ruleant/getback_gps/lib/AriadneLocation.java | 75 | 83 | c16a7e415b78dbff7421ce9653aef486415193fb | 0cab639850cdca2e9801e552156b795a92fb2a0a | 2013-05-26 15:16:35+00:00 | 2014-03-08 20:13:30+00:00 | // TODO use elapsedRealtimeNanos when using API 17 or higher | null | null | null | // TODO use elapsedRealtimeNanos when using API 17 or higher | TODO use elapsedRealtimeNanos when using API 17 or higher | AST_FALLBACK | public boolean isRecent() {
// TODO use elapsedRealtimeNanos when using API 17 or higher
// if ((SystemClock.elapsedRealtimeNanos()
// - getElapsedRealtimeNanos()) < 300000000) {
return (SystemClock.elapsedRealtime() - getTime()) < LOC_EXPIRE;
}
/**
* Returns a formatte... | public boolean isRecent() {
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.JELLY_BEAN_MR1) {
return Tools.isTimestampRecent(getTime(), LOC_EXPIRE);
} else {
// use getElapsedRealtimeNanos when using API 17 or higher
return Tools.isTimestampNanoRecent(getElapsedRealtimeNanos(),
... | true | 1 | 0 | 623 | 64 | yes | www.github.com/ruleant/getback_gps/commit/0cab639850cdca2e9801e552156b795a92fb2a0a | train |
100 | timolson | cointrader | src/main/java/com/cryptocoinpartners/schema/Security.java | src/main/java/com/cryptocoinpartners/schema/Security.java | 16 | 16 | 078c42af70557ea4b320197a4a3a3daf5e3d1e73 | cbe9e239426728648c591dafbe914ab3f374adc0 | 2014-03-14 06:31:48+00:00 | 2014-03-14 11:10:29+00:00 | // todo hibernate query | null | null | null | // todo hibernate query | todo hibernate query | AST_FALLBACK | public static Set<Security> forMarket(Market market) {
// todo hibernate query
return null;
} | public static Collection<Security> forMarket(Market market) {
TypedQuery<Security> query = PersistUtil.getEntityManager()
.createQuery("select s from Security s where market=?1", Security.class);
query.setParameter(1,market);
List<Security> resultList = query.getR... | true | 1 | 0 | 21 | 69 | yes | www.github.com/timolson/cointrader/commit/cbe9e239426728648c591dafbe914ab3f374adc0 | train |
102 | orcid | orcid-source | orcid-core/src/main/java/org/orcid/core/version/impl/OrcidMessageVersionConverterImplV1_0_19ToV1_0_20.java | orcid-core/src/main/java/org/orcid/core/version/impl/OrcidMessageVersionConverterImplV1_0_19ToV1_0_20.java | 54 | 54 | 62cfa019cdf1cb069c46b035e0791513ef13131a | 7e2748c950015c65e67c107d062de2d5d312c45f | 2013-09-30 18:36:13+00:00 | 2013-10-07 21:52:14+00:00 | //TODO: Remove this from here. | null | null | null | //TODO: Remove this from here. | TODO: Remove this from here. | AST_FALLBACK | public OrcidMessage downgradeMessage(OrcidMessage orcidMessage) {
if (orcidMessage == null) {
return null;
}
orcidMessage.setMessageVersion(FROM_VERSION);
//TODO: Remove this from here.
//This process should be done when downgrading a message from version 19 to version 18, howeve... | public OrcidMessage downgradeMessage(OrcidMessage orcidMessage) {
if (orcidMessage == null) {
return null;
}
orcidMessage.setMessageVersion(FROM_VERSION);
return orcidMessage;
}
| true | 1 | 0 | 164 | 31 | yes | www.github.com/orcid/orcid-source/commit/7e2748c950015c65e67c107d062de2d5d312c45f | train |
107 | openl-tablets | openl-tablets | WSFrontend/org.openl.rules.ruleservice.deployer/src/org/openl/rules/ruleservice/deployer/RulesDeployerService.java | WSFrontend/org.openl.rules.ruleservice.deployer/src/org/openl/rules/ruleservice/deployer/RulesDeployerService.java | 219 | 219 | 72f25b2fcfdbf691849f0d0fa7d868723edfd946 | bb259017ae8fe005060e6175472b5e80d9389aed | 2020-12-22 15:49:54+00:00 | 2021-01-28 20:13:18+00:00 | //FIXME delete it after removing of {ruleservice.datasource.filesystem.supportDeployments} property | null | null | null | //FIXME delete it after removing of {ruleservice.datasource.filesystem.supportDeployments} property | FIXME delete it after removing of {ruleservice.datasource.filesystem.supportDeployments} property | AST_FALLBACK | private void deployInternal(String originalName, InputStream in, boolean ignoreIfExists) throws IOException,
RulesDeployInputException {
ByteArrayOutputStream baos = new ByteArrayOutputStream();
IOUtils.copy... | private void deployInternal(String originalName, InputStream in, boolean ignoreIfExists) throws IOException,
RulesDeployInputException {
ByteArrayOutputStream baos = new ByteArrayOutputStream();
IOUtils.copy... | true | 1 | 0 | 584 | 442 | yes | www.github.com/openl-tablets/openl-tablets/commit/bb259017ae8fe005060e6175472b5e80d9389aed | train |
109 | konsoletyper | teavm | core/src/main/java/org/teavm/model/analysis/NullnessInformationBuilder.java | core/src/main/java/org/teavm/model/analysis/NullnessInformationBuilder.java | 176 | 164 | 231dcbaf36c3cb2c9a8e009db59b2dc94a1f0f60 | 9dc4b47253559beff8a418f0a7ffeaf5a16a3ce1 | 2016-12-04 19:30:35+00:00 | 2016-12-26 21:28:37+00:00 | // TODO: handle SCCs | null | null | null | // TODO: handle SCCs | TODO: handle SCCs | AST_FALLBACK | private void buildAssignmentGraph() {
GraphBuilder builder = new GraphBuilder();
for (BasicBlock block : program.getBasicBlocks()) {
for (Phi phi : block.getPhis()) {
for (Incoming incoming : phi.getIncomings()) {
builder.addEdge(incoming.getSource().getIndex(), phi.getReceiv... | private void buildAssignmentGraph() {
GraphBuilder builder = new GraphBuilder(program.variableCount());
for (BasicBlock block : program.getBasicBlocks()) {
for (Phi phi : block.getPhis()) {
for (Incoming incoming : phi.getIncomings()) {
builder.addEdge(incoming.getSource().g... | true | 1 | 0 | 272 | 380 | yes | www.github.com/konsoletyper/teavm/commit/9dc4b47253559beff8a418f0a7ffeaf5a16a3ce1 | train |
110 | netty | netty | src/main/java/org/jboss/netty/handler/codec/frame/DelimiterBasedFrameDecoder.java | src/main/java/org/jboss/netty/handler/codec/frame/DelimiterBasedFrameDecoder.java | 172 | 172 | bae46eca4917466cda8ae6eec68d7bfc4da48f75 | 193acdb36cd3da9bfc62dd69c4208dff3f0a2b1b | 2010-06-24 01:45:32+00:00 | 2011-11-10 07:30:39+00:00 | // TODO Let user choose when the exception should be raised - early or late? | null | null | null | // TODO Let user choose when the exception should be raised - early or late? | TODO Let user choose when the exception should be raised - early or late? | AST_FALLBACK | protected Object decode(
ChannelHandlerContext ctx, Channel channel, ChannelBuffer buffer) throws Exception {
// Try all delimiters and choose the delimiter which yields the shortest frame.
int minFrameLength = Integer.MAX_VALUE;
ChannelBuffer minDelim = null;
for (ChannelBuffer delim: delimiter... | protected Object decode(
ChannelHandlerContext ctx, Channel channel, ChannelBuffer buffer) throws Exception {
// Try all delimiters and choose the delimiter which yields the shortest frame.
int minFrameLength = Integer.MAX_VALUE;
ChannelBuffer minDelim = null;
for (ChannelBuffer delim: delimiter... | true | 1 | 0 | 375 | 360 | yes | www.github.com/netty/netty/commit/193acdb36cd3da9bfc62dd69c4208dff3f0a2b1b | train |
111 | google | closure-compiler | src/com/google/javascript/rhino/HamtPMap.java | src/com/google/javascript/rhino/HamtPMap.java | 157 | 157 | 8d7b6ff8ad954672fb37ee35831a42c3294361fb | a33584999abf8e9ad4162eec018ae5fb23f02b44 | 2018-05-15 20:58:19+00:00 | 2018-05-25 21:11:31+00:00 | // TODO(sdh): Java8: return () -> new Iter<>(this, map -> map.value); | null | null | null | // TODO(sdh): Java8: return () -> new Iter<>(this, map -> map.value); | TODO(sdh): Java8: return () -> new Iter<>(this, map -> map.value); | AST_FALLBACK | public Iterable<V> values() {
if (isEmpty()) {
return Collections.<V>emptyList();
}
// TODO(sdh): Java8: return () -> new Iter<>(this, map -> map.value);
return new Iterable<V>() {
@Override
public Iterator<V> iterator() {
return new Iter<K, V, V>(
HamtPMap.this,
new Functi... | public Iterable<V> values() {
if (isEmpty()) {
return Collections.<V>emptyList();
}
return () -> new Iter<>(this, map -> map.value);
} | true | 1 | 0 | 134 | 48 | yes | www.github.com/google/closure-compiler/commit/a33584999abf8e9ad4162eec018ae5fb23f02b44 | train |
112 | rhomobile | rhostudio | rhogen-wizard/src/rhogenwizard/OSHelper.java | rhogen-wizard/src/rhogenwizard/OSHelper.java | 148 | 148 | 6eb67a8447b2669eba1a944f521893728d6a10a2 | 5f24333904293ca63fba1b40f88562c5ebdde787 | 2012-05-10 16:15:36+00:00 | 2012-05-19 18:15:27+00:00 | // TODO: remove when bug will be fixed on XP | null | null | null | // TODO: remove when bug will be fixed on XP | TODO: remove when bug will be fixed on XP | AST_FALLBACK | private static String getProcessesListing() throws InterruptedException
{
// TODO: remove when bug will be fixed on XP
if (OSValidator.isWindows())
{
return "";
}
String cl =
(OSValidator.isWindows()) ? "wmic path win32_process get Commandline,Processid"
: "ps... | private static String getProcessesListing() throws InterruptedException
{
String cl =
(OSValidator.isWindows()) ? "wmic path win32_process get Commandline,Processid"
: "ps ax";
List<String> cmdLine = Arrays.asList(cl.split(" "));
SysCommandExecutor executor = new SysCommandE... | true | 1 | 0 | 138 | 112 | yes | www.github.com/rhomobile/rhostudio/commit/5f24333904293ca63fba1b40f88562c5ebdde787 | train |
114 | vaadin | framework | src/com/itmill/toolkit/terminal/gwt/client/ui/IProgressIndicator.java | src/com/itmill/toolkit/terminal/gwt/client/ui/IProgressIndicator.java | 34 | 43 | 749b99fd463276848ecbbfbbe68c850f9e313beb | e0b4e858cda1d397c570a1b24901655040f413a2 | 2007-09-27 08:43:27+00:00 | 2007-12-19 07:17:19+00:00 | // TODO put up some image or something
// TODO put up some image or something
// TODO put up some different image or something. For now, it | [37, 43] | [39, 43] | ['f2e3722df9676436680afc0f1991e91e1696fb99', '1d3c34ea749e0a585ef364ab159a82da84925d0c'] | // TODO put up some different image or something. For now, it | TODO put up some different image or something. For now, it | AST_FALLBACK | public void updateFromUIDL(UIDL uidl, ApplicationConnection client) {
if (client.updateComponent(this, uidl, true)) {
return;
}
poller.cancel();
this.client = client;
if (client.updateComponent(this, uidl, true)) {
return;
}
final boolean indeterminate = uidl.getBooleanAttri... | public void updateFromUIDL(UIDL uidl, ApplicationConnection client) {
if (client.updateComponent(this, uidl, true)) {
return;
}
poller.cancel();
this.client = client;
if (client.updateComponent(this, uidl, true)) {
return;
}
indeterminate = uidl.getBooleanAttribute("indeter... | true | 1 | 0 | 199 | 163 | yes | www.github.com/vaadin/framework/commit/e0b4e858cda1d397c570a1b24901655040f413a2 | train |
118 | ftsrg | theta | hu.bme.mit.inf.ttmc.constraint/src/hu/bme/mit/inf/ttmc/constraint/factory/impl/ExprFactoryImpl.java | hu.bme.mit.inf.ttmc.constraint/src/hu/bme/mit/inf/ttmc/constraint/factory/impl/ExprFactoryImpl.java | 78 | 78 | 47a7c0cca7f2c3c0eb2c6db3e017d8298f68c77c | 35c13a588f881a56a0e5583af8af3d7cfb1bfe27 | 2016-02-27 09:15:36+00:00 | 2016-04-06 15:25:16+00:00 | // TODO Auto-generated method stub | null | null | null | // TODO Auto-generated method stub | TODO Auto-generated method stub | AST_FALLBACK | public RatLitExpr Rat(long num, long denom) {
// TODO Auto-generated method stub
throw new UnsupportedOperationException("TODO: auto-generated method stub");
} | public RatLitExpr Rat(final long num, final long denom) {
checkArgument(denom != 0);
return new RatLitExprImpl(manager, num, denom);
}
| true | 1 | 0 | 35 | 33 | yes | www.github.com/ftsrg/theta/commit/35c13a588f881a56a0e5583af8af3d7cfb1bfe27 | train |
119 | ovirt | ovirt-engine | backend/manager/modules/restapi/jaxrs/src/main/java/org/ovirt/engine/api/restapi/resource/BackendApiResource.java | backend/manager/modules/restapi/jaxrs/src/main/java/org/ovirt/engine/api/restapi/resource/BackendApiResource.java | 654 | 639 | e4dbba93c224eff102348ae4d6742fad46d0302f | a7e2fdd17fa33c4b52367e2c2a6d274e99d4b2d0 | 2016-09-01 08:01:10+00:00 | 2016-10-31 10:33:54+00:00 | // TODO: Implement this. | null | null | null | // TODO: Implement this. | TODO: Implement this. | AST_FALLBACK | public ImageTransfersResource getImageTransfersResource() {
// TODO: Implement this.
return null;
} | public ImageTransfersResource getImageTransfersResource() {
return inject(new BackendImageTransfersResource());
} | true | 1 | 0 | 17 | 16 | yes | www.github.com/ovirt/ovirt-engine/commit/a7e2fdd17fa33c4b52367e2c2a6d274e99d4b2d0 | train |
122 | lothrazar | cyclic | src/main/java/com/lothrazar/cyclic/block/miner/TileMiner.java | src/main/java/com/lothrazar/cyclic/block/miner/TileMiner.java | 154 | 155 | eee4173dd143f9e6e78ab6c3c4850c983dc244fa | fedefb6cdba048ceb3b33889a678d1e019bd81ba | 2020-08-31 05:54:47+00:00 | 2020-09-03 02:45:17+00:00 | // TODO Auto-generated method stub | null | null | null | // TODO Auto-generated method stub | TODO Auto-generated method stub | AST_FALLBACK | private boolean isTargetValid() {
// TODO Auto-generated method stub
return true;
} | private boolean isTargetValid() {
return targetPos != null && !world.isAirBlock(targetPos)
&& world.getBlockState(targetPos).hardness >= 0;
} | true | 1 | 0 | 18 | 35 | yes | www.github.com/lothrazar/cyclic/commit/fedefb6cdba048ceb3b33889a678d1e019bd81ba | train |
125 | icyphy | ptii | ptolemy/plot/PlotFrame.java | ptolemy/plot/PlotFrame.java | 522 | 302 | 8cbee780ba1162371db5dff51c92482490659a5c | 885c67b726188b72e1ea6b7dd8b82732b867d158 | 1999-10-18 23:33:17+00:00 | 2002-06-20 15:36:07+00:00 | // FIXME: Can't seem to suggest a filename... Following fails | null | null | null | // FIXME: Can't seem to suggest a filename... Following fails | FIXME: Can't seem to suggest a filename... Following fails | AST_FALLBACK | protected void _export() {
JFileChooser fileDialog = new JFileChooser();
fileDialog.setDialogTitle("Export EPS to...");
if (_directory != null) {
fileDialog.setCurrentDirectory(_directory);
} else {
// The default on Windows is to open at user.home, which is
// typically an absur... | protected void _export() {
JFileChooser fileDialog = new JFileChooser();
fileDialog.addChoosableFileFilter(new EPSFileFilter());
fileDialog.setDialogTitle("Export EPS to...");
if (_directory != null) {
fileDialog.setCurrentDirectory(_directory);
} else {
// The default on Windows is ... | true | 1 | 0 | 241 | 238 | yes | www.github.com/icyphy/ptii/commit/885c67b726188b72e1ea6b7dd8b82732b867d158 | train |
129 | google | closure-compiler | test/com/google/javascript/jscomp/TypedScopeCreatorTest.java | test/com/google/javascript/jscomp/TypedScopeCreatorTest.java | 2,654 | 2,673 | a8ce1d648654bda99b922e9557386a64eeb6265b | c764a91a595b021761b4f2d5083550d6ef2d440a | 2019-11-20 01:13:33+00:00 | 2020-01-29 22:20:11+00:00 | // TODO(b/144327372): this should be equal to bar | null | null | null | // TODO(b/144327372): this should be equal to bar | TODO(b/144327372): this should be equal to bar | AST_FALLBACK | public void testClassDeclarationWithExtendsFromNamespaceAndJSDoc() {
testSame(
lines(
"const ns = {};", //
"/** @template T */",
"ns.Bar = class {};",
"const nsAliased = ns;",
"",
"/** @extends {nsAliased.Bar<number>} */",
"class Foo extends ... | public void testClassDeclarationWithExtendsFromNamespaceAndJSDoc() {
testSame(
lines(
"const ns = {};", //
"/** @template T */",
"ns.Bar = class {};",
"const nsAliased = ns;",
"",
"/** @extends {nsAliased.Bar<number>} */",
"class Foo extends ... | true | 1 | 0 | 213 | 180 | yes | www.github.com/google/closure-compiler/commit/c764a91a595b021761b4f2d5083550d6ef2d440a | train |
133 | apache | tomcat | java/org/apache/tomcat/util/net/AprEndpoint.java | java/org/apache/tomcat/util/net/AprEndpoint.java | 1,931 | 1,931 | 6087a7838d7153210d1528eb13124a1e500f27c9 | 2b865e145825e4399d7bd4d64b73a5c46bcba0eb | 2015-03-11 21:06:53+00:00 | 2015-03-11 21:35:39+00:00 | // TODO Need to actually implement merging of the descriptors here. | null | null | null | // TODO Need to actually implement merging of the descriptors here. | TODO Need to actually implement merging of the descriptors here. | AST_FALLBACK | private int mergeDescriptors(long[] desc, int startCount) {
if (OS.IS_BSD || OS.IS_MACOSX) {
// TODO Need to actually implement merging of the descriptors here.
// I'm currently thinking quicksort followed by running
// through the sorted list to merge the events.
return st... | private int mergeDescriptors(long[] desc, int startCount) {
if (OS.IS_BSD || OS.IS_MACOSX) {
/*
* Notes: Only the first startCount * 2 elements of the array
* are populated.
* The array is event, socket, event, socket etc.
*/
HashMap<Long,Long> merge... | true | 1 | 0 | 107 | 257 | yes | www.github.com/apache/tomcat/commit/2b865e145825e4399d7bd4d64b73a5c46bcba0eb | train |
134 | apache | fluo | src/main/java/org/apache/accumulo/accismus/impl/OracleClient.java | src/main/java/org/apache/accumulo/accismus/impl/OracleClient.java | 89 | 89 | 9ea00c8539b0a4bf2aa652ba8291a6988068255e | 8c0312de281892d260d7afc4afd4b92201e61248 | 2013-07-02 16:59:36+00:00 | 2013-07-03 01:18:28+00:00 | // TODO need a better key | null | null | null | // TODO need a better key | TODO need a better key | AST_FALLBACK | public static synchronized OracleClient getInstance(Configuration config) {
// TODO need a better key
String key = config.getZookeeperRoot() + ":" + config.getAccumuloInstance() + ":" + config.getTable();
OracleClient client = clients.get(key);
if (client == null) {
client = new OracleClient(config);
... | public static synchronized OracleClient getInstance(Configuration config) {
// this key differintiates between different instances of Accumulo and Accismus
String key = config.getAccismusInstanceID();
OracleClient client = clients.get(key);
if (client == null) {
try {
client = new OracleClient(confi... | true | 1 | 0 | 86 | 88 | yes | www.github.com/apache/fluo/commit/8c0312de281892d260d7afc4afd4b92201e61248 | train |
135 | storymaker | storymaker | app/src/info/guardianproject/mrapp/model/Project.java | app/src/info/guardianproject/mrapp/model/Project.java | 80 | 92 | ef845dd52a0b7c327e9c1b04a3cb9ce7ecd2a2dd | dcf721b1cd9c74515d95ade9f06912248139fd5c | 2012-11-09 04:34:16+00:00 | 2012-12-04 03:42:31+00:00 | // FIXME be smart about insert vs update | null | null | null | // FIXME be smart about insert vs update | FIXME be smart about insert vs update | AST_FALLBACK | public void save() {
// FIXME be smart about insert vs update
ContentValues values = new ContentValues();
values.put(StoryMakerDB.Schema.Projects.COL_TITLE, title);
values.put(StoryMakerDB.Schema.Projects.COL_THUMBNAIL_PATH,
thumbnailPath);
values.put(StoryMakerDB.Schema.Projects.COL_STO... | public void save() {
Cursor cursor = getAsCursor(context, id);
if (cursor.getCount() == 0) {
insert();
} else {
update();
}
} | true | 1 | 0 | 113 | 41 | yes | www.github.com/storymaker/storymaker/commit/dcf721b1cd9c74515d95ade9f06912248139fd5c | train |
136 | icyphy | ptii | ptolemy/actor/TypedCompositeActor.java | ptolemy/actor/TypedCompositeActor.java | 667 | 667 | ba8f0dc6a50cc8ef50988a8ddd2d46767482be94 | 2aabe169cb43f9b279e8817fbdc3ee9e485de8c0 | 2012-07-22 18:39:04+00:00 | 2012-07-22 18:45:31+00:00 | continue; // FIXME: refactor this | null | null | null | continue; // FIXME: refactor this | FIXME: refactor this | AST_FALLBACK | protected List<Inequality> _destinationTypeConstraints(TypedIOPort source) {
Iterator<IOPort> destinationPorts;
List<Inequality> result = new LinkedList<Inequality>();
boolean srcUndeclared = source.getTypeTerm().isSettable();
// NOTE: Do not only check whether the port is an input,
// because it ... | protected List<Inequality> _destinationTypeConstraints(TypedIOPort source) {
Iterator<IOPort> destinationPorts;
List<Inequality> result = new LinkedList<Inequality>();
boolean srcUndeclared = source.getTypeTerm().isSettable();
// NOTE: Do not only check whether the port is an input,
// because it ... | true | 1 | 0 | 416 | 397 | yes | www.github.com/icyphy/ptii/commit/2aabe169cb43f9b279e8817fbdc3ee9e485de8c0 | train |
YAML Metadata Warning:empty or missing yaml metadata in repo card
Check out the documentation for more information.
SATD Repayment Context Dataset
Extends the SATD Repayment replication package (Python: 58,722 rows,
Java: 97,347 rows) with per-SATD repository context, all anchored at
parent(deleted_in_commit) (the commit right before the fix), so no information
from the repayment itself leaks into the context. Total package size: ~1.56 GB.
Contents
data/
python_final.parquet -- main SATD table (Python), 58,722 rows, 130 MB
java_final.parquet -- main SATD table (Java), 97,347 rows, 114 MB
python_context.jsonl.gz -- 1 JSON object/line, aligned by row_index, 310 MB
java_context.jsonl.gz -- 1 JSON object/line, aligned by row_index, 1045 MB
code/
*.py, *.sh -- extraction pipeline (clone, snapshot, extractors, driver)
Join *_context.jsonl.gz to *_final.parquet on row_index == the parquet row's
positional index (0-based, matches df.reset_index().index).
Main table statistics
| Python | Java | |
|---|---|---|
| Rows | 58,722 | 97,347 |
| train / test / dev | 50,075 / 5,745 / 2,902 | 83,211 / 9,013 / 5,123 |
| Unique repos | 7,219 | 5,181 |
| Avg SATD/repo | 8.1 | 18.8 |
| Method tokens before (mean / median) | 238 / 180 | 175 / 112 |
| Method tokens after (mean / median) | 236 / 175 | 183 / 119 |
containing_method_applied_approach |
WITH_AST: 50,886 (86.7%), WITHOUT_AST: 7,836 (13.3%) | AST_FALLBACK: 97,347 (100.0%) |
created_at_date range |
1970-01-16 to 2024-03-09 | 1997-06-03 to 2024-05-04 |
deleted_at_date range |
1999-01-15 to 2024-03-15 | 1997-06-13 to 2024-05-06 |
Top 5 repos by SATD count
| Python | Java |
|---|---|
| facebook/Ax (837) | col-e/r8 (694) |
| mozillazg/pypy (503) | aokp/frameworks_base (685) |
| Checkmk/checkmk (480) | ultimate-pa/ultimate (657) |
| openstack/nova (439) | evolveum/midpoint (564) |
| getsentry/sentry (367) | bazelbuild/bazel (498) |
Note: a handful of created_at_date/deleted_at_date values fall in 1970/1997,
inherited as-is from the upstream replication package's git metadata (likely
corrupted author-date fields in the source repos, not introduced by this pipeline).
Context extraction status
Python (58,722 rows):
| Status | Count | % |
|---|---|---|
ok |
56,632 | 96.4% |
clone_failed |
1,581 | 2.7% |
file_not_found_at_snapshot |
468 | 0.8% |
commit_not_found |
41 | 0.1% |
Java (97,347 rows):
| Status | Count | % |
|---|---|---|
ok |
83,177 | 85.4% |
clone_failed |
13,246 | 13.6% |
file_not_found_at_snapshot |
847 | 0.9% |
commit_not_found |
77 | 0.1% |
clone_failed = source repo deleted/renamed/made private since the original
SATD Tracker crawl; commit_not_found = the pre-repayment commit isn't
reachable in the cloned history; pending = extraction still running when
this package was built.
Context field coverage (within status: "ok" rows)
Python (56,632 ok rows):
| Field | Rows with data | % |
|---|---|---|
local_code_window |
56,632 | 100.0% |
commit_history |
56,632 | 100.0% |
directory_tree_size |
56,632 | 100.0% |
imports_used |
56,349 | 99.5% |
documentation_files |
52,820 | 93.3% |
callees |
50,854 | 89.8% |
dependency_manifests |
49,851 | 88.0% |
class_hierarchy |
46,224 | 81.6% |
prior_fix_commits |
40,226 | 71.0% |
related_test_files |
31,209 | 55.1% |
ci_workflow_files |
30,962 | 54.7% |
coding_convention_findings |
19,678 | 34.7% |
callers |
18,498 | 32.7% |
related_issues |
0 | 0.0% |
Java (83,177 ok rows):
| Field | Rows with data | % |
|---|---|---|
local_code_window |
83,177 | 100.0% |
class_hierarchy |
83,177 | 100.0% |
commit_history |
83,177 | 100.0% |
directory_tree_size |
83,177 | 100.0% |
imports_used |
82,675 | 99.4% |
dependency_manifests |
62,653 | 75.3% |
documentation_files |
61,544 | 74.0% |
callees |
60,138 | 72.3% |
prior_fix_commits |
43,152 | 51.9% |
ci_workflow_files |
24,873 | 29.9% |
callers |
22,854 | 27.5% |
related_test_files |
21,176 | 25.5% |
related_issues |
0 | 0.0% |
coding_convention_findings |
0 | 0.0% |
Coverage gaps are expected, not bugs: related_issues requires a GITHUB_TOKEN
(unset for this run, always null); ci_workflow_files/related_test_files/
dependency_manifests/documentation_files are only populated if the repo
actually has a matching file at that snapshot; callers is low because it only
matches same-file call sites (a heuristic, not a full cross-module call graph).
Context fields (per row)
| Field | Description |
|---|---|
status |
ok, clone_failed, commit_not_found, file_not_found_at_snapshot, or pending |
snapshot_commit |
the anchor commit (parent(deleted_in_commit)) everything below is read at |
local_code_window |
+-10 lines of code around the SATD |
class_hierarchy |
classes/interfaces declared in the file, with bases |
enclosing_function / callers / callees |
function containing the SATD and its direct call relationships (same-file heuristic) |
imports_used |
modules imported by the file |
directory_tree_size |
file count in the repo at that snapshot |
dependency_manifests |
contents of requirements.txt/pom.xml/etc. found in the repo |
documentation_files |
README/ADR/OpenAPI files found (truncated to 2000 chars) |
ci_workflow_files |
CI config files found (GitHub Actions/Travis/Jenkins/CircleCI) |
related_test_files |
candidate test file paths (naming-convention match) |
commit_history / prior_fix_commits |
git log up to the snapshot, and the subset whose message mentions fix/bug |
related_issues |
GitHub issues before the SATD was resolved -- null unless a GITHUB_TOKEN was configured during extraction |
coding_convention_findings |
pyflakes findings (Python only) |
parse_backend |
ast (Python 3) or parso (Python-2-syntax fallback for historical files); Java always uses javalang |
Known limitations
related_issuesrequires aGITHUB_TOKEN(not configured for this run) -- alwaysnull.callers/calleesare same-file heuristics (directName(...)/obj.attr(...)calls), not a full cross-module call graph -- a function called only from another file won't show up as a caller.- No build/compile/test-execution was performed anywhere in this pipeline --
everything is static analysis or plain
gitreads, so no third-party code was ever executed. - Python files with Python-2-only syntax (print statement,
except X, e:, octal literals) are parsed via aparso(0.7.1, last release bundling the 2.7 grammar) fallback whenastfails;parse_backendmarks which path was used for each row.
Provenance
Derived from the SATD Repayment replication package
(ReplicationPackage-SATD-Repayment-Datasets), df3_train + df3_test + df3_dev
per language, filtered to is_repayment_llama3 == "yes". Context was extracted by
cloning each repo (partial clone, --filter=blob:none) and reading file/tree/log
state at parent(deleted_in_commit) via git show/git ls-tree/git log --
no build step, no test execution, no code from the target repos was ever run.
- Downloads last month
- 54