comment_sentence_id
int64 1
5.52k
| class
stringlengths 9
50
| comment_sentence
stringlengths 1
1.32k
| partition
int64 0
1
| instance_type
int64 0
1
| category
stringclasses 1
value | label
int64 0
1
| combo
stringlengths 15
1.35k
| __index_level_0__
int64 7.6k
16.5k
|
---|---|---|---|---|---|---|---|---|
1 | Abfss.java | azure blob file system implementation of abstractfilesystem. | 0 | 0 | Pointer | 0 | azure blob file system implementation of abstractfilesystem. | Abfss.java | 7,598 |
2 | Abfss.java | this impl delegates to the old filesystem | 1 | 0 | Pointer | 0 | this impl delegates to the old filesystem | Abfss.java | 7,599 |
1,028 | TestConnCache.java | this class tests the client connection caching in a single node | 0 | 0 | Pointer | 0 | this class tests the client connection caching in a single node | TestConnCache.java | 7,600 |
5 | AbstractContractGetFileStatusTest.java | test getfilestatus and related listing operations. | 1 | 0 | Pointer | 0 | test getfilestatus and related listing operations. | AbstractContractGetFileStatusTest.java | 7,601 |
6 | AbstractContractGetFileStatusTest.java | the tree parameters. | 0 | 0 | Pointer | 0 | the tree parameters. | AbstractContractGetFileStatusTest.java | 7,602 |
7 | AbstractContractGetFileStatusTest.java | kept small to avoid killing object store test runs too much. | 1 | 0 | Pointer | 0 | kept small to avoid killing object store test runs too much. | AbstractContractGetFileStatusTest.java | 7,603 |
8 | AbstractContractGetFileStatusTest.java | accept everything. | 0 | 0 | Pointer | 0 | accept everything. | AbstractContractGetFileStatusTest.java | 7,604 |
1,032 | TestCustomOauthTokenProvider.java | test custom oauth token providers. | 1 | 0 | Pointer | 0 | test custom oauth token providers. | TestCustomOauthTokenProvider.java | 7,605 |
9 | AbstractContractGetFileStatusTest.java | the tree parameters. | 0 | 0 | Pointer | 0 | the tree parameters. | AbstractContractGetFileStatusTest.java | 7,606 |
10 | AbstractContractGetFileStatusTest.java | kept small to avoid killing object store test runs too much. | 1 | 0 | Pointer | 0 | kept small to avoid killing object store test runs too much. | AbstractContractGetFileStatusTest.java | 7,607 |
11 | AbstractContractGetFileStatusTest.java | accept nothing. | 0 | 0 | Pointer | 0 | accept nothing. | AbstractContractGetFileStatusTest.java | 7,608 |
1,035 | TestCustomOauthTokenProvider.java | instead this just checks that the creation works and that everything | 1 | 0 | Pointer | 0 | instead this just checks that the creation works and that everything | TestCustomOauthTokenProvider.java | 7,609 |
12 | AbstractContractGetFileStatusTest.java | the tree parameters. | 0 | 0 | Pointer | 0 | the tree parameters. | AbstractContractGetFileStatusTest.java | 7,610 |
1,036 | TestCustomOauthTokenProvider.java | is propagated. | 1 | 0 | Pointer | 0 | is propagated. | TestCustomOauthTokenProvider.java | 7,611 |
13 | AbstractContractGetFileStatusTest.java | kept small to avoid killing object store test runs too much. | 0 | 0 | Pointer | 0 | kept small to avoid killing object store test runs too much. | AbstractContractGetFileStatusTest.java | 7,612 |
14 | AbstractContractGetFileStatusTest.java | path filter which only expects paths whose final name element | 1 | 0 | Pointer | 0 | path filter which only expects paths whose final name element | AbstractContractGetFileStatusTest.java | 7,613 |
15 | AbstractContractGetFileStatusTest.java | equals the @code match field. | 0 | 0 | Pointer | 0 | equals the @code match field. | AbstractContractGetFileStatusTest.java | 7,614 |
16 | AbstractContractGetFileStatusTest.java | the tree parameters. | 1 | 0 | Pointer | 0 | the tree parameters. | AbstractContractGetFileStatusTest.java | 7,615 |
17 | AbstractContractGetFileStatusTest.java | kept small to avoid killing object store test runs too much. | 0 | 0 | Pointer | 0 | kept small to avoid killing object store test runs too much. | AbstractContractGetFileStatusTest.java | 7,616 |
18 | AbstractContractGetFileStatusTest.java | a filesystem filter which exposes the protected method | 1 | 0 | Pointer | 0 | a filesystem filter which exposes the protected method | AbstractContractGetFileStatusTest.java | 7,617 |
1,042 | TestDataDrivenDBInputFormat.java | test aspects of datadrivendbinputformat | 0 | 0 | Pointer | 0 | test aspects of datadrivendbinputformat | TestDataDrivenDBInputFormat.java | 7,618 |
19 | AbstractContractGetFileStatusTest.java | @link #listlocatedstatus path, pathfilter . | 1 | 0 | Pointer | 0 | @link #listlocatedstatus path, pathfilter . | AbstractContractGetFileStatusTest.java | 7,619 |
531 | FsConstants.java | filesystem related constants. | 0 | 0 | Pointer | 0 | filesystem related constants. | FsConstants.java | 7,620 |
1,047 | TestEditLogFileOutputStream.java | test the editlogfileoutputstream | 1 | 0 | Pointer | 0 | test the editlogfileoutputstream | TestEditLogFileOutputStream.java | 7,621 |
537 | GetNamespaceInfoResponse.java | api response for listing hdfs namespaces present in the state store. | 0 | 0 | Pointer | 0 | api response for listing hdfs namespaces present in the state store. | GetNamespaceInfoResponse.java | 7,622 |
1,052 | TestFileSizeCountTask.java | unit test for file size count task. | 1 | 0 | Pointer | 0 | unit test for file size count task. | TestFileSizeCountTask.java | 7,623 |
1,054 | TestHandler.java | tests handler interface. | 0 | 0 | Pointer | 0 | tests handler interface. | TestHandler.java | 7,624 |
1,056 | TestHDFSServerPorts.java | this test checks correctness of port usage by hdfs components | 1 | 0 | Pointer | 0 | this test checks correctness of port usage by hdfs components | TestHDFSServerPorts.java | 7,625 |
1,057 | TestHDFSServerPorts.java | namenode, datanode, secondarynamenode and backupnode. | 0 | 0 | Pointer | 0 | namenode, datanode, secondarynamenode and backupnode. | TestHDFSServerPorts.java | 7,626 |
1,058 | TestHDFSServerPorts.java | the correct behavior is br when a specific port is provided the server must either start on that port or fail by throwing @link java^net.bindexception . | 1 | 0 | Pointer | 0 | the correct behavior is br when a specific port is provided the server must either start on that port or fail by throwing @link java^net.bindexception . | TestHDFSServerPorts.java | 7,627 |
1,059 | TestHDFSServerPorts.java | br | 0 | 0 | Pointer | 0 | br | TestHDFSServerPorts.java | 7,628 |
1,060 | TestHDFSServerPorts.java | if the port 0 ephemeral then the server should choose a free port and start on it. | 1 | 0 | Pointer | 0 | if the port 0 ephemeral then the server should choose a free port and start on it. | TestHDFSServerPorts.java | 7,629 |
554 | HadoopIllegalArgumentException.java | indicates that a method has been passed illegal or invalid argument. | 0 | 0 | Pointer | 0 | indicates that a method has been passed illegal or invalid argument. | HadoopIllegalArgumentException.java | 7,630 |
44 | AbstractS3ACommitterFactory.java | dynamically create the output committer based on subclass type and settings. | 1 | 0 | Pointer | 0 | dynamically create the output committer based on subclass type and settings. | AbstractS3ACommitterFactory.java | 7,631 |
1,069 | TestMetricsVisitor.java | test the metric visitor interface | 0 | 0 | Pointer | 0 | test the metric visitor interface | TestMetricsVisitor.java | 7,632 |
1,071 | TestNativeAzureFileSystemUploadLogic.java | tests for the upload, buffering and flush logic in wasb. | 1 | 0 | Pointer | 0 | tests for the upload, buffering and flush logic in wasb. | TestNativeAzureFileSystemUploadLogic.java | 7,633 |
560 | HashResolver.java | order the destinations based on consistent hashing. | 0 | 0 | Pointer | 0 | order the destinations based on consistent hashing. | HashResolver.java | 7,634 |
1,072 | TestNativeAzureFileSystemUploadLogic.java | just an arbitrary number so that the values i write have a predictable | 1 | 0 | Pointer | 0 | just an arbitrary number so that the values i write have a predictable | TestNativeAzureFileSystemUploadLogic.java | 7,635 |
1,073 | TestNativeAzureFileSystemUploadLogic.java | various scenarios to test in how often we flush data while uploading. | 0 | 0 | Pointer | 0 | various scenarios to test in how often we flush data while uploading. | TestNativeAzureFileSystemUploadLogic.java | 7,636 |
562 | HttpHeaderConfigurations.java | responsible to keep all abfs http headers here. | 1 | 0 | Pointer | 0 | responsible to keep all abfs http headers here. | HttpHeaderConfigurations.java | 7,637 |
564 | IDataLoader.java | an idataloader loads data on demand | 0 | 0 | Pointer | 0 | an idataloader loads data on demand | IDataLoader.java | 7,638 |
53 | ApplicationConstants.java | the type of launch for the container. | 1 | 0 | Pointer | 0 | the type of launch for the container. | ApplicationConstants.java | 7,639 |
1,077 | TestOmMultipartKeyInfoCodec.java | this class tests ommultipartkeyinfocodec. | 0 | 0 | Pointer | 0 | this class tests ommultipartkeyinfocodec. | TestOmMultipartKeyInfoCodec.java | 7,640 |
54 | ApplicationConstants.java | environment for applications. | 1 | 0 | Pointer | 0 | environment for applications. | ApplicationConstants.java | 7,641 |
566 | InconsistentS3ClientFactory.java | s3 client factory used for testing with eventual consistency fault injection. | 0 | 0 | Pointer | 0 | s3 client factory used for testing with eventual consistency fault injection. | InconsistentS3ClientFactory.java | 7,642 |
567 | InconsistentS3ClientFactory.java | this client is for testing i only i it is in the production | 1 | 0 | Pointer | 0 | this client is for testing i only i it is in the production | InconsistentS3ClientFactory.java | 7,643 |
1,079 | TestOMVolumeRequest.java | base test class for volume request. | 0 | 0 | Pointer | 0 | base test class for volume request. | TestOMVolumeRequest.java | 7,644 |
568 | InconsistentS3ClientFactory.java | @code hadoop aws module to enable integration tests to use this | 1 | 0 | Pointer | 0 | @code hadoop aws module to enable integration tests to use this | InconsistentS3ClientFactory.java | 7,645 |
569 | InconsistentS3ClientFactory.java | just by editing the hadoop configuration used to bring up the client. | 0 | 0 | Pointer | 0 | just by editing the hadoop configuration used to bring up the client. | InconsistentS3ClientFactory.java | 7,646 |
61 | ApplicationStateData.java | contains all the state data that needs to be stored persistently for an application | 1 | 0 | Pointer | 0 | contains all the state data that needs to be stored persistently for an application | ApplicationStateData.java | 7,647 |
1,085 | TestProtoBufRpc.java | test for testing protocol buffer based rpc mechanism. | 0 | 0 | Pointer | 0 | test for testing protocol buffer based rpc mechanism. | TestProtoBufRpc.java | 7,648 |
574 | InfoKeyHandler.java | executes info object. | 1 | 0 | Pointer | 0 | executes info object. | InfoKeyHandler.java | 7,649 |
1,086 | TestProtoBufRpc.java | this test depends on test^proto definition of types in src test proto | 0 | 0 | Pointer | 0 | this test depends on test^proto definition of types in src test proto | TestProtoBufRpc.java | 7,650 |
1,087 | TestProtoBufRpc.java | and protobuf service definition from src test test rpc service^proto | 1 | 0 | Pointer | 0 | and protobuf service definition from src test test rpc service^proto | TestProtoBufRpc.java | 7,651 |
66 | AutoInputFormat.java | it can currently handle text and sequence files. | 0 | 0 | Pointer | 0 | it can currently handle text and sequence files. | AutoInputFormat.java | 7,652 |
579 | ITestAbfsReadWriteAndSeek.java | test read, write and seek. | 1 | 0 | Pointer | 0 | test read, write and seek. | ITestAbfsReadWriteAndSeek.java | 7,653 |
1,091 | TestRDBStore.java | rdbstore tests. | 0 | 0 | Pointer | 0 | rdbstore tests. | TestRDBStore.java | 7,654 |
1,093 | TestRegistrySecurityHelper.java | test for registry security operations | 1 | 0 | Pointer | 0 | test for registry security operations | TestRegistrySecurityHelper.java | 7,655 |
70 | BalancingPolicy.java | balancing policy. | 0 | 0 | Pointer | 0 | balancing policy. | BalancingPolicy.java | 7,656 |
584 | ITestAzureNativeContractSeek.java | contract test. | 1 | 0 | Pointer | 0 | contract test. | ITestAzureNativeContractSeek.java | 7,657 |
74 | BalancingPolicy.java | cluster is balanced if each node is balanced. | 0 | 0 | Pointer | 0 | cluster is balanced if each node is balanced. | BalancingPolicy.java | 7,658 |
75 | BalancingPolicy.java | cluster is balanced if each pool in each node is balanced. | 1 | 0 | Pointer | 0 | cluster is balanced if each pool in each node is balanced. | BalancingPolicy.java | 7,659 |
1,099 | TestRouterWebServiceUtil.java | test class to validate routerwebserviceutil methods. | 0 | 0 | Pointer | 0 | test class to validate routerwebserviceutil methods. | TestRouterWebServiceUtil.java | 7,660 |
588 | ITestCommitOperations.java | this is done with an inconsistent client. | 1 | 0 | Pointer | 0 | this is done with an inconsistent client. | ITestCommitOperations.java | 7,661 |
591 | ITestListPerformance.java | test list performance. | 0 | 0 | Pointer | 0 | test list performance. | ITestListPerformance.java | 7,662 |
1,104 | TestSaveNamespace.java | test various failure scenarios during savenamespace operation. | 1 | 0 | Pointer | 0 | test various failure scenarios during savenamespace operation. | TestSaveNamespace.java | 7,663 |
81 | BaseRouterWebServicesTest.java | base class for all the routerrmadminservice test cases. | 0 | 0 | Pointer | 0 | base class for all the routerrmadminservice test cases. | BaseRouterWebServicesTest.java | 7,664 |
593 | ITestS3Select.java | test the s3 select feature with some basic sql commands. | 1 | 0 | Pointer | 0 | test the s3 select feature with some basic sql commands. | ITestS3Select.java | 7,665 |
1,105 | TestSaveNamespace.java | cases covered | 0 | 0 | Pointer | 0 | cases covered | TestSaveNamespace.java | 7,666 |
594 | ITestS3Select.java | executed if the destination store declares its support for the feature. | 1 | 0 | Pointer | 0 | executed if the destination store declares its support for the feature. | ITestS3Select.java | 7,667 |
1,106 | TestSaveNamespace.java | ol | 0 | 0 | Pointer | 0 | ol | TestSaveNamespace.java | 7,668 |
1,107 | TestSaveNamespace.java | li recover from failure while saving into the second storage directory li | 1 | 0 | Pointer | 0 | li recover from failure while saving into the second storage directory li | TestSaveNamespace.java | 7,669 |
1,108 | TestSaveNamespace.java | li recover from failure while moving current into lastcheckpoint^tmp li | 0 | 0 | Pointer | 0 | li recover from failure while moving current into lastcheckpoint^tmp li | TestSaveNamespace.java | 7,670 |
1,109 | TestSaveNamespace.java | li recover from failure while moving lastcheckpoint^tmp into | 1 | 0 | Pointer | 0 | li recover from failure while moving lastcheckpoint^tmp into | TestSaveNamespace.java | 7,671 |
86 | BatchedRequests.java | a grouping of scheduling requests which are sent to the placementalgorithm | 0 | 0 | Pointer | 0 | a grouping of scheduling requests which are sent to the placementalgorithm | BatchedRequests.java | 7,672 |
1,110 | TestSaveNamespace.java | previous^checkpoint li | 1 | 0 | Pointer | 0 | previous^checkpoint li | TestSaveNamespace.java | 7,673 |
87 | BatchedRequests.java | to place as a batch. | 0 | 0 | Pointer | 0 | to place as a batch. | BatchedRequests.java | 7,674 |
1,111 | TestSaveNamespace.java | li recover from failure while rolling edits file li | 1 | 0 | Pointer | 0 | li recover from failure while rolling edits file li | TestSaveNamespace.java | 7,675 |
88 | BatchedRequests.java | the placement algorithm tends to give more optimal | 0 | 0 | Pointer | 0 | the placement algorithm tends to give more optimal | BatchedRequests.java | 7,676 |
600 | KerberosDelegationTokenAuthenticator.java | the code kerberosdelegationtokenauthenticator code provides support for | 1 | 0 | Pointer | 0 | the code kerberosdelegationtokenauthenticator code provides support for | KerberosDelegationTokenAuthenticator.java | 7,677 |
1,112 | TestSaveNamespace.java | ol | 0 | 0 | Pointer | 0 | ol | TestSaveNamespace.java | 7,678 |
89 | BatchedRequests.java | placements if more requests are batched together. | 1 | 0 | Pointer | 0 | placements if more requests are batched together. | BatchedRequests.java | 7,679 |
601 | KerberosDelegationTokenAuthenticator.java | kerberos spnego authentication mechanism and support for hadoop delegation | 0 | 0 | Pointer | 0 | kerberos spnego authentication mechanism and support for hadoop delegation | KerberosDelegationTokenAuthenticator.java | 7,680 |
90 | BatchedRequests.java | placementalgorithmoutput attempt the number of times the requests in this | 1 | 0 | Pointer | 0 | placementalgorithmoutput attempt the number of times the requests in this | BatchedRequests.java | 7,681 |
602 | KerberosDelegationTokenAuthenticator.java | token operations. | 0 | 0 | Pointer | 0 | token operations. | KerberosDelegationTokenAuthenticator.java | 7,682 |
91 | BatchedRequests.java | iterator type. | 1 | 0 | Pointer | 0 | iterator type. | BatchedRequests.java | 7,683 |
98 | BlockPlacementStatusWithNodeGroup.java | an implementation of @see blockplacementstatus for | 0 | 0 | Pointer | 0 | an implementation of @see blockplacementstatus for | BlockPlacementStatusWithNodeGroup.java | 7,684 |
1,122 | TestSCMDatanodeHeartbeatDispatcher.java | this class tests the behavior of scmdatanodeheartbeatdispatcher. | 1 | 0 | Pointer | 0 | this class tests the behavior of scmdatanodeheartbeatdispatcher. | TestSCMDatanodeHeartbeatDispatcher.java | 7,685 |
1,124 | TestSequenceFile.java | support for flat files of binary key value pairs. | 0 | 0 | Pointer | 0 | support for flat files of binary key value pairs. | TestSequenceFile.java | 7,686 |
103 | BlocksMap.java | this class maintains the map from a block to its metadata. | 1 | 0 | Pointer | 0 | this class maintains the map from a block to its metadata. | BlocksMap.java | 7,687 |
1,127 | TestSeveralNameNodes.java | test that we can start several and run with namenodes on the same minicluster | 0 | 0 | Pointer | 0 | test that we can start several and run with namenodes on the same minicluster | TestSeveralNameNodes.java | 7,688 |
104 | BlocksMap.java | block s metadata currently includes blockcollection it belongs to and | 1 | 0 | Pointer | 0 | block s metadata currently includes blockcollection it belongs to and | BlocksMap.java | 7,689 |
616 | LocatedFileStatus.java | this class defines a filestatus that includes a file s block locations. | 0 | 0 | Pointer | 0 | this class defines a filestatus that includes a file s block locations. | LocatedFileStatus.java | 7,690 |
105 | BlocksMap.java | the datanodes that store the block. | 1 | 0 | Pointer | 0 | the datanodes that store the block. | BlocksMap.java | 7,691 |
1,130 | TestSwiftFileSystemContract.java | this is the full filesystem contract test which requires the | 0 | 0 | Pointer | 0 | this is the full filesystem contract test which requires the | TestSwiftFileSystemContract.java | 7,692 |
619 | LoggedTask.java | it knows about the pssibly empty sequence of attempts, its i o footprint, | 1 | 0 | Pointer | 0 | it knows about the pssibly empty sequence of attempts, its i o footprint, | LoggedTask.java | 7,693 |
1,131 | TestSwiftFileSystemContract.java | default config set up to point to a filesystem. | 0 | 0 | Pointer | 0 | default config set up to point to a filesystem. | TestSwiftFileSystemContract.java | 7,694 |
620 | LoggedTask.java | and its runtime. | 1 | 0 | Pointer | 0 | and its runtime. | LoggedTask.java | 7,695 |
1,132 | TestSwiftFileSystemContract.java | some of the tests override the base class tests these | 0 | 0 | Pointer | 0 | some of the tests override the base class tests these | TestSwiftFileSystemContract.java | 7,696 |
109 | BlockUtils.java | utils functions to help block functions. | 1 | 0 | Pointer | 0 | utils functions to help block functions. | BlockUtils.java | 7,697 |
End of preview. Expand
in Dataset Viewer.
Dataset Card for "nlbse_ccc"
A dataset object for the NLBSE'23 Code Comment Classification competition. Please refer to the original Github repo for more details.
Category distribution in the training and test sets
The table below shows the distribution of positive/negative sentences for each category in the training and testing sets.
Language | Category | Training | Training | Testing | Testing | Total |
---|---|---|---|---|---|---|
Positive | Negative | Positive | Negative | |||
Java | Expand | 505 | 1426 | 127 | 360 | 2418 |
Java | Ownership | 90 | 1839 | 25 | 464 | 2418 |
Java | Deprecation | 100 | 1831 | 27 | 460 | 2418 |
Java | Rational | 223 | 1707 | 57 | 431 | 2418 |
Java | Summary | 328 | 1600 | 87 | 403 | 2418 |
Java | Pointer | 289 | 1640 | 75 | 414 | 2418 |
Java | Usage | 728 | 1203 | 184 | 303 | 2418 |
Positive | Negative | Positive | Negative | |||
Pharo | Responsibilities | 267 | 1139 | 69 | 290 | 1765 |
Pharo | Keymessages | 242 | 1165 | 63 | 295 | 1765 |
Pharo | Keyimplementationpoints | 184 | 1222 | 48 | 311 | 1765 |
Pharo | Collaborators | 99 | 1307 | 28 | 331 | 1765 |
Pharo | Example | 596 | 812 | 152 | 205 | 1765 |
Pharo | Classreferences | 60 | 1348 | 17 | 340 | 1765 |
Pharo | Intent | 173 | 1236 | 45 | 311 | 1765 |
Positive | Negative | Positive | Negative | |||
Python | Expand | 402 | 1637 | 102 | 414 | 2555 |
Python | Parameters | 633 | 1404 | 161 | 357 | 2555 |
Python | Summary | 361 | 1678 | 93 | 423 | 2555 |
Python | Developmentnotes | 247 | 1792 | 65 | 451 | 2555 |
Python | Usage | 637 | 1401 | 163 | 354 | 2555 |
Code
The following code snippet was used to create the dataset:
# !git clone https://github.com/nlbse2023/code-comment-classification.git
from datasets import DatasetDict
langs = ['java', 'python', 'pharo']
lan_cats = []
dataset_dict = DatasetDict()
for lan in langs: # for each language
df = pd.read_csv(f'./code-comment-classification/{lan}/input/{lan}.csv')
df['label'] = df.instance_type
df['combo'] = df[['comment_sentence', 'class']].agg(' | '.join, axis=1)
print(df.columns)
cats = list(map(lambda x: lan + '_' + x, list(set(df.category))))
lan_cats = lan_cats + cats
for cat in list(set(df.category)): # for each category
filtered = df[df.category == cat]
dataset_dict[f'{lan}_{cat}'] = Dataset.from_pandas(filtered)
dataset_dict.push_to_hub("AISE-TUDelft/nlbse_ccc", token='hf_********************')
- Downloads last month
- 4