Dataset Viewer
Auto-converted to Parquet Duplicate
id
int32
0
100k
nl
stringlengths
68
7.19k
code
stringlengths
20
663
0
check if details are parsed . concode_field_sep Container parent concode_elem_sep boolean isParsed concode_elem_sep long offset concode_elem_sep long contentStartPosition concode_elem_sep ByteBuffer deadBytes concode_elem_sep boolean isRead concode_elem_sep long memMapSize concode_elem_sep Logger LOG concode_elem_sep b...
boolean function ( ) { return isParsed ; }
1
answer the library file defining the library containing the compilation unit to be indexed or null if the library is not on disk concode_field_sep IndexStore indexStore concode_elem_sep IndexPerformanceRecorder performanceRecorder concode_elem_sep DartUnit unit concode_elem_sep CompilationUnit compilationUnit concode_e...
File function ( ) { return libraryFile ; }
2
this method deletes index files of the @linkplain indexcommit for the specified generation number . concode_field_sep Logger log concode_field_sep void deleteNonSnapshotIndexFiles concode_elem_sep Map<String,Integer> buildRefCounts
void function ( Directory arg0 , Collection < SnapshotMetaData > arg1 , long arg2 ) { List < IndexCommit > loc0 = DirectoryReader . listCommits ( arg0 ) ; Map < String , Integer > loc1 = buildRefCounts ( arg1 , loc0 ) ; for ( IndexCommit loc2 : loc0 ) { if ( loc2 . getGeneration ( ) == arg2 ) { deleteIndexFiles ( arg0 ...
3
do n't use this . no , really , do n't use this . you already have an authenticationtoken with org.apache.accumulo.core.client.mapreduce.lib.impl.configuratorbase #getauthenticationtoken class , configuration . you do n't need to construct it yourself . gets the password from the configuration . warning : the password ...
byte [ ] function ( Class < ? > arg0 , Configuration arg1 ) { return AuthenticationTokenSerializer . serialize ( org . apache . accumulo . core . client . mapreduce . lib . impl . ConfiguratorBase . getAuthenticationToken ( arg0 , arg1 ) ) ; }
4
force the eventbus from ambarieventpublisher to be serialand synchronous . concode_field_sep PlaceHolder placeHolder concode_field_sep void registerAlertListeners concode_elem_sep EventBus synchronizeAlertEventPublisher concode_elem_sep void replaceEventBus concode_elem_sep void registerAmbariListeners
void function ( Binder arg0 ) { EventBus loc0 = new EventBus ( ) ; AmbariEventPublisher loc1 = new AmbariEventPublisher ( ) ; replaceEventBus ( AmbariEventPublisher . class , loc1 , loc0 ) ; arg0 . bind ( AmbariEventPublisher . class ) . toInstance ( loc1 ) ; }
5
todo summary sentence for isform ... concode_field_sep String name concode_elem_sep URI ns concode_elem_sep int max concode_elem_sep int min concode_elem_sep Type type concode_elem_sep String id concode_elem_sep boolean _abstract concode_elem_sep Element sub concode_elem_sep boolean nillable concode_field_sep int getBl...
boolean function ( ) { return false ; }
6
returns the id used by the client to authenticate itself when authentication is enabled . concode_field_sep TransportResponseHandler handler concode_elem_sep Logger logger concode_elem_sep String clientId concode_elem_sep Channel channel concode_field_sep byte[] sendRpcSync concode_elem_sep SocketAddress getSocketAddre...
String function ( ) { return clientId ; }
7
get the score . concode_field_sep int score concode_elem_sep Id3Tag id3Tag concode_elem_sep Comparator<SuggestionItem> comparator concode_elem_sep boolean isSelected concode_field_sep String getTrack concode_elem_sep int compare concode_elem_sep String getTitle concode_elem_sep String getYear concode_elem_sep String ge...
int function ( ) { return score ; }
8
the aws support case id requested or returned in the call . the case id is an alphanumeric string formatted as shown in this example : case-12345678910-2013-c4c1d2bf33c5cf47 concode_field_sep String caseId concode_field_sep void setCaseId concode_elem_sep int hashCode concode_elem_sep CreateCaseResult withCaseId concod...
String function ( ) { return this . caseId ; }
9
adds formula element . concode_field_sep PlaceHolder placeHolder concode_field_sep Element addNativelyGeneratedId concode_elem_sep Element addColumn concode_elem_sep Element addColumn concode_elem_sep void addColumn concode_elem_sep void addColumns concode_elem_sep String getModifiedFlagPropertyName concode_elem_sep El...
void function ( Element arg0 , Formula arg1 ) { arg0 . addElement ( "srini_string" ) . setText ( arg1 . getText ( ) ) ; }
10
gets the body id . used for message submission concode_field_sep String titleId concode_elem_sep String inReplyTo concode_elem_sep Date timeSent concode_elem_sep String appUrl concode_elem_sep String body concode_elem_sep String title concode_elem_sep Type type concode_elem_sep String senderId concode_elem_sep List<Url...
String function ( ) { return bodyId ; }
11
hashes bytes in part of an array . concode_field_sep PlaceHolder placeHolder concode_field_sep long hash64A concode_elem_sep long hash64A concode_elem_sep long hash64A
int function ( byte [ ] arg0 , int arg1 , int arg2 , int arg3 ) { return hash ( ByteBuffer . wrap ( arg0 , arg1 , arg2 ) , arg3 ) ; }
12
call this method in the application.onterminate method concode_field_sep Context sApplicationContext concode_elem_sep CommonConfiguration sInstance concode_field_sep String getServer concode_elem_sep String getServer concode_elem_sep OAuthConsumer getOAuthConsumer concode_elem_sep OAuthConsumer getOAuthConsumer concode...
void function ( ) { sInstance = null ; sApplicationContext = null ; }
13
finds component with the given id concode_field_sep Properties buildProperties concode_field_sep String getRequestParameter concode_elem_sep ServletContext getServletContext concode_elem_sep Object getManagedBean concode_elem_sep String getActionAttribute concode_elem_sep String getBuildAttribute concode_elem_sep void ...
UIComponent function ( UIComponent arg0 , String arg1 ) { if ( arg1 . equals ( arg0 . getId ( ) ) ) { return arg0 ; } Iterator < UIComponent > loc0 = arg0 . getFacetsAndChildren ( ) ; while ( loc0 . hasNext ( ) ) { UIComponent loc1 = findComponent ( loc0 . next ( ) , arg1 ) ; if ( loc1 != null ) { return loc1 ; } } ret...
14
by default , there are no collisions in pasting . concode_field_sep Map nameFeatureMap concode_elem_sep Object NULL_TOKEN concode_field_sep boolean shouldOverrideCopyOperation concode_elem_sep void setName concode_elem_sep boolean canContain concode_elem_sep XMLResource getResource concode_elem_sep String getName conco...
PasteAction function ( EClass arg0 ) { return PasteAction . ADD ; }
15
returns base directory for config concode_field_sep Plugin plugin concode_elem_sep FileConfiguration config concode_field_sep File getFilename concode_elem_sep FileConfiguration loadConfig concode_elem_sep void write concode_elem_sep FileConfiguration getConfig concode_elem_sep void saveConfig
File function ( ) { File loc0 = new File ( plugin . getDataFolder ( ) + "srini_string" ) ; return loc0 ; }
16
returns the number of characters represented by the given utf string . concode_field_sep String EMPTY_STRING concode_elem_sep byte[] EMPTY_BYTES concode_field_sep int getByteLength concode_elem_sep int getByteLength concode_elem_sep void charsToBytes concode_elem_sep int bytesToChars concode_elem_sep byte[] stringToByt...
int function ( byte [ ] arg0 ) { return getCharLength ( arg0 , 0 , arg0 . length ) ; }
17
has this upstream finished or `` completed '' / `` failed '' ? concode_field_sep PlaceHolder placeHolder concode_field_sep boolean isStarted
boolean function ( ) { return false ; }
18
checks if the specified state has at least one exit action . concode_field_sep PlaceHolder placeHolder concode_field_sep boolean hasEntryAction concode_elem_sep boolean containsOnlyEventsOfType concode_elem_sep boolean oneIncomingTransitionEntersCompositeWithEntryActions concode_elem_sep boolean hasAtLeastOneAction con...
boolean function ( State arg0 ) { EList < Expression > loc0 = getFirstExitActions ( arg0 ) ; if ( loc0 != null && ! loc0 . isEmpty ( ) ) { return true ; } return false ; }
19
gets the value of the contactsubjects property . this accessor method returns a reference to the live list , not a snapshot . therefore any modification you make to the returned list will be present inside the jaxb object . this is why there is not a set method for the contactsubjects property . for example , to add a ...
List < Subject > function ( ) { if ( contactSubjects == null ) { contactSubjects = new ArrayList < Subject > ( ) ; } return this . contactSubjects ; }
20
gets the distance of map coordinates to the center . concode_field_sep short cx concode_elem_sep short cy concode_elem_sep long serialVersionUID concode_elem_sep float radius concode_elem_sep float Y_SCALE concode_field_sep float getDistance concode_elem_sep ShortPoint2D getCenter concode_elem_sep float getSquaredDista...
float function ( int arg0 , int arg1 ) { int loc0 = arg0 - cx ; int loc1 = arg1 - cy ; return getSquaredDistance ( loc0 , loc1 ) ; }
21
releases all broker instances pooled by this factory if any . note that the broker are closed prior to releasing them . concode_field_sep PlaceHolder placeHolder concode_field_sep PersistenceBroker defaultPersistenceBroker concode_elem_sep Configurator getConfigurator concode_elem_sep PBKey getDefaultKey concode_elem_s...
void function ( ) { PersistenceBrokerFactoryFactory . instance ( ) . releaseAllInstances ( ) ; }
22
create an instance of proteintype.alternativename concode_field_sep QName _Copyright_QNAME concode_field_sep SourceType createSourceType concode_elem_sep EvidencedStringType createEvidencedStringType concode_elem_sep PersonType createPersonType concode_elem_sep IsoformType.Note createIsoformTypeNote concode_elem_sep Pr...
ProteinType . AlternativeName function ( ) { return new ProteinType . AlternativeName ( ) ; }
23
get if has global admin role . concode_field_sep int staticDefaultMaxRow concode_elem_sep Map<SqlFunction,String> sqlFunctions concode_elem_sep int blockSize concode_elem_sep int startFrom concode_elem_sep boolean onlyIdentifier concode_elem_sep Map<AdditionalInformationType,String> additionalInformation concode_elem_s...
boolean function ( ) { return globalAdminRole ; }
24
get the resource id concode_field_sep UserConfig _userConfig concode_elem_sep IdealState _idealState concode_elem_sep SchedulerTaskConfig _schedulerTaskConfig concode_elem_sep ProvisionerConfig _provisionerConfig concode_elem_sep RebalancerConfig _rebalancerConfig concode_elem_sep ResourceId _id concode_elem_sep Builde...
ResourceId function ( ) { return _id ; }
25
removes the link from this instance through role `` print before '' . concode_field_sep GUID roleTypeId concode_elem_sep GUID typeId concode_elem_sep PDStore store concode_elem_sep GUID id concode_elem_sep GUID rolePrintAfterId concode_elem_sep GUID rolePrintBeforeId concode_field_sep void setName concode_elem_sep PDSt...
void function ( ) { store . removeLink ( this . id , rolePrintBeforeId , store . getInstance ( this . id , rolePrintBeforeId ) ) ; }
26
sets the value of the version property . concode_field_sep List<Extension> extensions concode_elem_sep List<Block> contents concode_elem_sep String name concode_elem_sep String source concode_elem_sep String id concode_elem_sep String href concode_elem_sep String label concode_elem_sep QName type concode_elem_sep Strin...
void function ( final String arg0 ) { this . version = arg0 ; }
27
test method for org.kie.base.evaluators.timeintervalparser #parse java.lang.string . concode_field_sep PlaceHolder placeHolder concode_field_sep void testParse2 concode_elem_sep void testParse4 concode_elem_sep void testParse3 concode_elem_sep void testParse6 concode_elem_sep void testParse5 concode_elem_sep void testP...
void function ( ) { String loc0 = "srini_string" ; long loc1 = - 15957 ; long loc2 = 3500000 ; Long [ ] loc3 = new TimeIntervalParser ( ) . parse ( loc0 ) ; assertEquals ( 2 , loc3 . length ) ; assertEquals ( loc1 , loc3 [ 0 ] . longValue ( ) ) ; assertEquals ( loc2 , loc3 [ 1 ] . longValue ( ) ) ; }
28
a map of attribute names to attributevalue objects , as specified by attributestoget . concode_field_sep java.util.Map<String,AttributeValue> item concode_elem_sep ConsumedCapacity consumedCapacity concode_field_sep GetItemResult clearItemEntries concode_elem_sep int hashCode concode_elem_sep boolean equals concode_ele...
GetItemResult function ( java . util . Map < String , AttributeValue > arg0 ) { setItem ( arg0 ) ; return this ; }
29
calls casexxx for each class of the model until one returns a non null result ; it yields that result . concode_field_sep NoreflectioncompanyPackage modelPackage concode_field_sep T caseCompany concode_elem_sep T caseEmployee concode_elem_sep T defaultCase
T function ( EClass arg0 , EObject arg1 ) { if ( arg0 . eContainer ( ) == modelPackage ) { return doSwitch ( arg0 . getClassifierID ( ) , arg1 ) ; } else { List < EClass > loc0 = arg0 . getESuperTypes ( ) ; return loc0 . isEmpty ( ) ? defaultCase ( arg1 ) : doSwitch ( loc0 . get ( 0 ) , arg1 ) ; } }
30
equals implementation using a business key . concode_field_sep byte[] formContent concode_elem_sep String name concode_elem_sep long serialVersionUID concode_elem_sep Integer id concode_elem_sep Logger log concode_elem_sep String formClassname concode_elem_sep Account account concode_elem_sep IdentifiableHashBuilder id...
boolean function ( Object arg0 ) { return this == arg0 || ( arg0 instanceof SavedSearch && hashCode ( ) == arg0 . hashCode ( ) ) ; }
31
sets firstname . concode_field_sep String firstName concode_elem_sep String lastName concode_elem_sep Date hireDate concode_elem_sep String phoneNumber concode_elem_sep int departmentId concode_elem_sep long serialVersionUID concode_elem_sep int id concode_elem_sep Integer managerId concode_elem_sep String job concode_...
void function ( String arg0 ) { this . firstName = arg0 ; }
32
sets the group id of this workflow instance link . concode_field_sep WorkflowInstanceLink _workflowInstanceLink concode_field_sep long getClassNameId concode_elem_sep void setExpandoBridgeAttributes concode_elem_sep void setExpandoBridgeAttributes concode_elem_sep void setExpandoBridgeAttributes concode_elem_sep boolea...
void function ( long arg0 ) { _workflowInstanceLink . setGroupId ( arg0 ) ; }
33
two identifiers are equal if and only if their fully-qualified names are the same . concode_field_sep Pattern inDepLine concode_elem_sep Set<Identifier> outgoingDependencies concode_elem_sep boolean VERBOSE concode_elem_sep Pattern memberLine concode_elem_sep Pattern bothDepLine concode_elem_sep Map<String,Identifier> ...
boolean function ( Object arg0 ) { return ( arg0 != null ) && ( arg0 instanceof Identifier ) && ( ( Identifier ) arg0 ) . name . equals ( name ) ; }
34
get the latest generated jar file with dependencies . concode_field_sep File REFERENCE_DIR concode_elem_sep File SRC_DIR concode_elem_sep TemporaryFolder temporaryFolder concode_elem_sep int dirIndex concode_field_sep boolean compareTxtFiles concode_elem_sep void commandLineMultipleFilesWithMinusO concode_elem_sep void...
String function ( ) { File loc0 = new File ( "srini_string" ) ; TreeSet < String > loc1 = new TreeSet < String > ( ) ; for ( File loc2 : loc0 . listFiles ( ) ) { String loc3 = loc2 . getName ( ) ; if ( loc3 . matches ( "srini_string" ) ) loc1 . add ( loc3 ) ; } return "srini_string" + loc1 . last ( ) ; }
35
handle an incoming signal . concode_field_sep boolean registered concode_elem_sep LogAdapter LOG concode_elem_sep SignalHandler prevHandler concode_field_sep void register concode_elem_sep void register
void function ( Signal arg0 ) { LOG . error ( "srini_string" + arg0 . getNumber ( ) + "srini_string" + arg0 . getName ( ) ) ; prevHandler . handle ( arg0 ) ; }
36
deregisters an object for notification of changes to the dial layer . concode_field_sep boolean visible concode_elem_sep EventListenerList listenerList concode_field_sep void setVisible concode_elem_sep int hashCode concode_elem_sep boolean equals concode_elem_sep void notifyListeners concode_elem_sep Object clone conc...
void function ( DialLayerChangeListener arg0 ) { this . listenerList . remove ( DialLayerChangeListener . class , arg0 ) ; }
37
gets the total length . concode_field_sep String boundary concode_elem_sep int bytesWritten concode_elem_sep char[] MULTIPART_CHARS concode_elem_sep ByteArrayOutputStream out concode_elem_sep List<FilePart> fileParts concode_elem_sep String TAG concode_elem_sep byte[] TRANSFER_ENCODING_BINARY concode_elem_sep AbHttpRes...
long function ( ) { long loc0 = file . length ( ) ; return header . length + loc0 ; }
38
method called in the presenter lifecycle . invoked when the component containing the presenter is initialized . concode_field_sep T view concode_elem_sep boolean shouldRegisterGlobalErrorCallbacks concode_elem_sep UseCaseHandler useCaseHandler concode_elem_sep List<UseCaseCall> useCaseCalls concode_elem_sep List<OnErro...
void function ( ) { registerGlobalErrorCallback ( ) ; }
39
processes the emailcontent string for regeneration of expected email content.pre-condition : emailcontent has previously been processed with the #processemailforcomparison function . concode_field_sep String REGEX_ENCRYPTED_REGKEY concode_field_sep String replaceInjectedValuesWithPlaceholders concode_elem_sep boolean t...
String function ( String arg0 ) { return replaceInjectedValuesWithPlaceholders ( arg0 ) ; }
40
set the page repository with the specified page repository . concode_field_sep CommentRepository commentRepository concode_elem_sep PageRepository pageRepository concode_elem_sep UserQueryService userQueryService concode_elem_sep ArticleRepository articleRepository concode_elem_sep Logger LOGGER concode_field_sep void ...
void function ( final PageRepository arg0 ) { this . pageRepository = arg0 ; }
41
registers error reported by client . concode_field_sep PlaceHolder placeHolder concode_field_sep String feedbackMessage
String function ( String arg0 , String arg1 , String arg2 ) { ReportsService . getInstance ( ) . recordClientError ( arg0 , arg1 , arg2 ) ; return Constants . EMPTY_STRING ; }
42
begins a new subpath by moving the current point to coordinates x , y . concode_field_sep List<Subpath> subpaths concode_elem_sep String START_PATH_ERR_MSG concode_elem_sep Point currentPoint concode_field_sep Point getCurrentPoint concode_elem_sep void curveTo concode_elem_sep void curveTo concode_elem_sep boolean isE...
void function ( float arg0 , float arg1 ) { currentPoint = new Point ( arg0 , arg1 ) ; Subpath loc0 = subpaths . size ( ) > 0 ? subpaths . get ( subpaths . size ( ) - 1 ) : null ; if ( loc0 != null && loc0 . isSinglePointOpen ( ) ) { loc0 . setStartPoint ( currentPoint ) ; } else { subpaths . add ( new Subpath ( curren...
43
create a new connection manager , based on an existing connection . concode_field_sep ConnectTask next concode_elem_sep ConnectionOpenHandler openHandler concode_elem_sep ConnectTask DISCONNECTED concode_elem_sep ProtocolConnectionConfiguration configuration concode_elem_sep Connection connection concode_elem_sep Conne...
ProtocolConnectionManager function ( final Connection arg0 , final ConnectionOpenHandler arg1 ) { return create ( new EstablishedConnection ( arg0 , arg1 ) ) ; }
44
method getinnetusedded . concode_field_sep String outNetUsedDed concode_elem_sep String outNetMaxCoi concode_elem_sep String inNetMaxCoi concode_elem_sep String inNetUsedCopay concode_elem_sep String relCdInd concode_elem_sep String outNetMaxDed concode_elem_sep String inNetMaxDed concode_elem_sep String outNetUsedCoi ...
String function ( ) { if ( inNetUsedDed == null || inNetUsedDed . equals ( "srini_string" ) ) { return "srini_string" ; } return inNetUsedDed ; }
45
gets the value of the bundleurls property . this accessor method returns a reference to the live list , not a snapshot . therefore any modification you make to the returned list will be present inside the jaxb object . this is why there is not a set method for the bundleurls property . for example , to add a new item ,...
List < String > function ( ) { if ( bundleUrls == null ) { bundleUrls = new ArrayList < String > ( ) ; } return this . bundleUrls ; }
46
sets the primary key of this asset . concode_field_sep Asset _asset concode_field_sep void setExpandoBridgeAttributes concode_elem_sep void setExpandoBridgeAttributes concode_elem_sep void setExpandoBridgeAttributes concode_elem_sep boolean isEscapedModel concode_elem_sep boolean isCachedModel concode_elem_sep int comp...
void function ( long arg0 ) { _asset . setPrimaryKey ( arg0 ) ; }
47
retrieves the next compiled statement identifier in the sequence . concode_field_sep Database database concode_elem_sep IntKeyHashMap schemaMap concode_elem_sep LongKeyHashMap csidMap concode_elem_sep long next_cs_id concode_field_sep Statement compile concode_elem_sep void reset concode_elem_sep Statement recompileSta...
long function ( ) { next_cs_id ++ ; return next_cs_id ; }
48
remove the managed bean based on the bean name . concode_field_sep PlaceHolder placeHolder concode_field_sep String getRequestParameter concode_elem_sep Application getApplication concode_elem_sep ValueBinding getValueBinding concode_elem_sep Object getElValue concode_elem_sep void addInfoMessage concode_elem_sep void ...
void function ( String arg0 ) { getValueBinding ( getJsfEl ( arg0 ) ) . setValue ( FacesContext . getCurrentInstance ( ) , null ) ; }
49
render exceptions . sets the response status accordingly to note bad requests . concode_field_sep PlaceHolder placeHolder concode_field_sep void render concode_elem_sep void render
void function ( final Map arg0 , final HttpServletResponse arg1 ) { arg1 . setStatus ( HttpServletResponse . SC_BAD_REQUEST ) ; arg0 . put ( "srini_string" , HttpServletResponse . SC_BAD_REQUEST ) ; render ( arg0 , arg1 ) ; }
50
tries to create an instance without a callable . this should cause an exception . concode_field_sep int callCount concode_elem_sep Integer RESULT concode_field_sep Integer call concode_elem_sep void testInitExecutorNullCallable concode_elem_sep void testInitExecutor concode_elem_sep void testInitialize
void function ( ) { new CallableBackgroundInitializer < Object > ( null ) ; }
51
display type concode_field_sep boolean m_isVisible concode_elem_sep int m_DisplayType concode_elem_sep boolean m_readOnly concode_elem_sep String m_keyPairColSQL concode_elem_sep Class<?> m_colClass concode_elem_sep boolean m_colorColumn concode_elem_sep String m_colHeader concode_elem_sep String m_colSQL concode_field...
int function ( ) { return m_DisplayType ; }
52
check whether servlet which uses runas with different role than in needed for secured ejb invocation can not correctly invoked that ejb method in httpservlet.init method . concode_field_sep String DEPLOYMENT concode_elem_sep String incorrectRoleResult concode_elem_sep File CORRECT_ROLE_AND_UNDEPLOY concode_elem_sep Str...
void function ( ) { assertTrue ( "srini_string" , incorrectRoleResult . contains ( INIT_METHOD_NOT_PASS ) ) ; }
53
appends the channel type to the channel to build concode_field_sep ChannelTypeUID channelTypeUID concode_elem_sep Configuration configuration concode_elem_sep ChannelKind kind concode_elem_sep ChannelUID channelUID concode_elem_sep String description concode_elem_sep String acceptedItemType concode_elem_sep String labe...
ChannelBuilder function ( ChannelTypeUID arg0 ) { this . channelTypeUID = arg0 ; return this ; }
54
after user has selected description can aquire format based on description . concode_field_sep Logger LOGGER concode_elem_sep Format[] formats concode_field_sep Format acquireFormat concode_elem_sep Format aquireFactoryByType concode_elem_sep ParameterValue find concode_elem_sep ParameterValue find concode_elem_sep Lis...
Format function ( String arg0 ) { Format [ ] loc0 = GridFormatFinder . getFormatArray ( ) ; Format loc1 = null ; final int loc2 = loc0 . loc2 ; for ( int loc3 = 0 ; loc3 < loc2 ; loc3 ++ ) { loc1 = loc0 [ loc3 ] ; if ( loc1 . getDescription ( ) . equals ( arg0 ) ) { return loc1 ; } } return null ; }
55
sets the field value for this customfieldvalueforissuedata . concode_field_sep com.intellij.tasks.mantis.model.ObjectRef field concode_elem_sep java.lang.Object __equalsCalc concode_elem_sep boolean __hashCodeCalc concode_elem_sep java.lang.String value concode_elem_sep org.apache.axis.description.TypeDesc typeDesc con...
void function ( com . intellij . tasks . mantis . model . ObjectRef arg0 ) { this . field = arg0 ; }
56
get an integer for the date in form yyyymmdd where the months go from 1 to 12 unlike calendar where they go from 0 to 11 concode_field_sep boolean gmtConvertion concode_elem_sep Date NA_TIME concode_elem_sep Calendar zeroCalendarInstance concode_elem_sep long ONE_HOUR concode_elem_sep Date maxDateInstance concode_elem_...
int function ( long arg0 ) { GregorianCalendar loc0 = DateTime . calendarInstance ( ) ; loc0 . setTimeInMillis ( arg0 ) ; return loc0 . get ( Calendar . YEAR ) * 10000 + ( 1 + loc0 . get ( Calendar . MONTH ) ) * 100 + loc0 . get ( Calendar . DAY_OF_MONTH ) ; }
57
execute the security checks . each check should be in a separate method . concode_field_sep Integer minimumUmask concode_elem_sep String UMASK_FORMAT concode_elem_sep Log log concode_elem_sep StringManager sm concode_elem_sep Set<String> checkedOsUsers concode_elem_sep String UMASK_PROPERTY_NAME concode_field_sep Strin...
void function ( ) { checkOsUser ( ) ; checkUmask ( ) ; }
58
interrupts the reading and writing threads concode_field_sep ProtocolWrapper tcpWrapper concode_elem_sep int UDP_BUFFER_SIZE concode_elem_sep int TCP_BUFFER_SIZE concode_elem_sep Socket legacySocket concode_elem_sep boolean terminating concode_elem_sep long ping concode_elem_sep SocketChannel tcpChannel concode_elem_se...
void function ( ) { if ( this . readThread != null ) { this . readThread . interrupt ( ) ; } }
59
retrieves the accumulated time this object has spent running since it was last started . concode_field_sep boolean running concode_elem_sep long total concode_elem_sep long startTime concode_elem_sep long lastStart concode_field_sep void zero concode_elem_sep void stop concode_elem_sep String currentElapsedTimeToMessag...
long function ( ) { if ( running ) { return System . currentTimeMillis ( ) - startTime ; } else { return 0 ; } }
60
gets the message body . concode_field_sep String subject concode_elem_sep String fromAddress concode_elem_sep String message concode_elem_sep String toAddress concode_field_sep String getToAddress concode_elem_sep String getSubject concode_elem_sep String getFromAddress concode_elem_sep String getText concode_elem_sep ...
String function ( ) { return message ; }
61
unlink a node from a linked list and link into the reclaimed list . concode_field_sep int[] hashTable concode_elem_sep boolean fixedSize concode_elem_sep int newNodePointer concode_elem_sep int elementCount concode_elem_sep int[] linkTable concode_elem_sep int reclaimedNodePointer concode_field_sep void resetTables con...
void function ( int arg0 , int arg1 , int arg2 ) { if ( arg1 == - 1 ) { hashTable [ arg0 ] = linkTable [ arg2 ] ; } else { linkTable [ arg1 ] = linkTable [ arg2 ] ; } linkTable [ arg2 ] = reclaimedNodePointer ; reclaimedNodePointer = arg2 ; elementCount -- ; }
62
the name of the query saved in splunk to run concode_field_sep String earliestTime concode_elem_sep boolean useSunHttpsHandler concode_elem_sep String source concode_elem_sep int port concode_elem_sep String savedSearch concode_elem_sep String password concode_elem_sep String search concode_elem_sep Boolean streaming c...
void function ( String arg0 ) { this . savedSearch = arg0 ; }
63
create the type code for this exception . concode_field_sep String _id concode_field_sep AlreadyBound extract concode_elem_sep AlreadyBound read concode_elem_sep void insert concode_elem_sep String id concode_elem_sep void write
TypeCode function ( ) { return OrbRestricted . Singleton . create_struct_tc ( id ( ) , "srini_string" , new StructMember [ 0 ] ) ; }
64
tell if two modes match according to the rules of xslt . concode_field_sep String m_targetString concode_elem_sep TemplateSubPatternAssociation m_next concode_elem_sep long serialVersionUID concode_elem_sep String m_pattern concode_elem_sep ElemTemplate m_template concode_elem_sep StepPattern m_stepPattern concode_elem...
boolean function ( QName arg0 , QName arg1 ) { return ( ( ( null == arg0 ) && ( null == arg1 ) ) || ( ( null != arg0 ) && ( null != arg1 ) && arg0 . equals ( arg1 ) ) ) ; }
65
retrieves the factory implementation that this factory is using to produce threads . concode_field_sep ThreadFactory factory concode_field_sep Thread newThread concode_elem_sep ThreadFactory setImpl
ThreadFactory function ( ) { return factory ; }
66
get the minimum group length . concode_field_sep int MIN_ALLOWED concode_elem_sep int MAX_ALLOWED concode_elem_sep int min_group_len concode_elem_sep int max_group_len concode_elem_sep int pref_group_len concode_field_sep int getPref_group_len concode_elem_sep int getMax_group_len
int function ( ) { return min_group_len ; }
67
asserts the given condition , throwing an assertionexception if the condition does n'thold . concode_field_sep PlaceHolder placeHolder concode_field_sep void assertUnreachable concode_elem_sep T assertNotNull
void function ( boolean arg0 , String arg1 ) { if ( ! arg0 ) { throw new AssertionException ( arg1 ) ; } }
68
sets the user id in the token . concode_field_sep String sessionToken concode_elem_sep String userId concode_field_sep void setSessionToken concode_elem_sep Boolean hasSessionToken concode_elem_sep String getSessionToken concode_elem_sep String getUserId
void function ( String arg0 ) { this . userId = arg0 ; }
69
returns the osgi service identifier . concode_field_sep DDMTemplateVersionService _ddmTemplateVersionService concode_field_sep void setWrappedService concode_elem_sep int getTemplateVersionsCount concode_elem_sep com.liferay.dynamic.data.mapping.model.DDMTemplateVersion getLatestTemplateVersion concode_elem_sep java.ut...
java . lang . String function ( ) { return _ddmTemplateVersionService . getOSGiServiceIdentifier ( ) ; }
70
gets the current option settings for the optionhandler . concode_field_sep long serialVersionUID concode_field_sep Enumeration<Option> listOptions concode_elem_sep boolean hasMoreElements concode_elem_sep void runTokenizer concode_elem_sep void setOptions concode_elem_sep String globalInfo concode_elem_sep void tokeniz...
String [ ] function ( ) { return new String [ 0 ] ; }
71
method to determine if a password is already attached to an existing presentation concode_field_sep int SLIDE_PRELOAD_COUNT concode_elem_sep Vector sessionList concode_elem_sep String CHAT_LOG_EXTENSION concode_elem_sep Log log concode_elem_sep PresentationManager singleton concode_elem_sep Map presentationMap concode_...
boolean function ( String arg0 ) { Iterator loc0 = presentationMap . values ( ) . iterator ( ) ; while ( loc0 . hasNext ( ) ) { if ( ( ( Presentation ) loc0 . next ( ) ) . getPassword ( ) . equals ( arg0 ) ) { return true ; } } return false ; }
72
handles activation of a poi object . concode_field_sep ArvosAugment mParent concode_elem_sep List<ArvosPoiObject> mPoiObjects concode_elem_sep String mDeveloperKey concode_elem_sep List<ArvosPoiObject> mObjectsToStart concode_elem_sep long mAnimationDuration concode_elem_sep Float mLongitude concode_elem_sep List<Arvos...
void function ( ArvosPoiObject arg0 ) { arg0 . mIsActive = true ; requestStart ( arg0 ) ; }
73
sets the value of the targetwindow property . concode_field_sep String distributorName concode_elem_sep Long contentProviderAdUnitId concode_elem_sep String name concode_elem_sep Long id concode_elem_sep TargetPlatform targetPlatform concode_elem_sep List<AdUnitSize> adUnitSizes concode_elem_sep SharedAdUnitStatus stat...
void function ( AdUnitTargetWindow arg0 ) { this . targetWindow = arg0 ; }
74
size of the photo . concode_field_sep long serialVersionUID concode_elem_sep int MEDIUM_640 concode_elem_sep int LARGE_1600 concode_elem_sep int SMALL_320 concode_elem_sep int LARGE_2048 concode_elem_sep int ORIGINAL concode_elem_sep int MOBILE_MP4 concode_elem_sep int label concode_elem_sep String source concode_elem_...
int function ( ) { return label ; }
75
get first concode_field_sep long serialVersionUID concode_elem_sep PrintWriter logwriter concode_elem_sep Logger log concode_elem_sep Byte first concode_elem_sep ResourceAdapter ra concode_elem_sep Short second concode_field_sep void setSecond concode_elem_sep ManagedConnection createManagedConnection concode_elem_sep ...
Byte function ( ) { return first ; }
76
subclasses can override this for greater filtering and performance . concode_field_sep int evaluations concode_elem_sep String methodName concode_elem_sep Class<?> clazz concode_field_sep MethodMatcher getMethodMatcher concode_elem_sep int hashCode concode_elem_sep boolean equals concode_elem_sep ClassFilter getClassFi...
boolean function ( Class < ? > arg0 ) { return true ; }
77
return true if this info object matches the given object . concode_field_sep Class<?> klass concode_field_sep Control getControl concode_elem_sep Control[] getControls concode_elem_sep boolean isOpen concode_elem_sep Info getLineInfo concode_elem_sep String toString concode_elem_sep void removeLineListener concode_elem...
boolean function ( Info arg0 ) { return klass . equals ( arg0 . klass ) ; }
78
reports that the given node is about to have a child replaced . the first half of an event pair . the default implementation does nothing . concode_field_sep PlaceHolder placeHolder concode_field_sep void preRemoveChildEvent concode_elem_sep void postValueChangeEvent concode_elem_sep void postAddChildEvent concode_elem...
void function ( ASTNode arg0 , ASTNode arg1 , ASTNode arg2 , StructuralPropertyDescriptor arg3 ) { }
79
the format of the disk image being imported . valid values : raw | vhd | vmdk | ova concode_field_sep String snapshotId concode_elem_sep String format concode_elem_sep String description concode_elem_sep String deviceName concode_elem_sep String url concode_elem_sep UserBucket userBucket concode_field_sep UserBucket ge...
String function ( ) { return this . format ; }
80
returns whether there are any characters left to be read . concode_field_sep int charStart concode_elem_sep ByteList src concode_elem_sep int pos concode_elem_sep int srcEnd concode_elem_sep int quoteStart concode_elem_sep ThreadContext context concode_elem_sep ByteList out concode_field_sep char next concode_elem_sep ...
boolean function ( ) { return pos < srcEnd ; }
81
returns the minimum value in an array . concode_field_sep PlaceHolder placeHolder concode_field_sep double max concode_elem_sep float max concode_elem_sep double max concode_elem_sep double max concode_elem_sep float max concode_elem_sep float max
double function ( final double ... arg0 ) { if ( arg0 == null ) { throw new IllegalArgumentException ( "srini_string" ) ; } Validate . isTrue ( arg0 . length != 0 , "srini_string" ) ; double loc0 = arg0 [ 0 ] ; for ( int loc1 = 1 ; loc1 < arg0 . length ; loc1 ++ ) { loc0 = loc0 ( arg0 [ loc1 ] , loc0 ) ; } return loc0 ...
82
called whenever the osgi framework starts our bundle concode_field_sep BundleContext context concode_elem_sep Logger logger concode_field_sep void stop concode_elem_sep BundleContext getContext
void function ( BundleContext arg0 ) { context = arg0 ; logger . debug ( "srini_string" ) ; try { StdSchedulerFactory . getDefaultScheduler ( ) . start ( ) ; } catch ( SchedulerException loc0 ) { logger . error ( "srini_string" , loc0 ) ; } }
83
get the name of this rule execution set . concode_field_sep long serialVersionUID concode_elem_sep ObjectFilter objectFilter concode_elem_sep String description concode_elem_sep InternalKnowledgePackage pkg concode_elem_sep Map properties concode_elem_sep String defaultObjectFilterClassName concode_elem_sep InternalKno...
String function ( ) { return this . pkg . getName ( ) ; }
84
gets the stop value . concode_field_sep double rate concode_elem_sep Format format concode_elem_sep long startValue concode_elem_sep long stopValue concode_field_sep long getStartValue concode_elem_sep double getRate concode_elem_sep Format getFormat
long function ( ) { return stopValue ; }
85
get the jaxb unmarshaller for a selected set of package names concode_field_sep HashMap<String,JAXBContext> jaxbContextHash concode_elem_sep PicketLinkLogger logger concode_elem_sep String W3C_XML_SCHEMA_NS_URI concode_field_sep Unmarshaller getValidatingUnmarshaller concode_elem_sep Unmarshaller getValidatingUnmarshal...
Unmarshaller function ( String ... arg0 ) { if ( arg0 == null ) throw logger . nullArgumentError ( "srini_string" ) ; int loc0 = arg0 . length ; if ( loc0 == 0 ) return getUnmarshaller ( arg0 [ 0 ] ) ; JAXBContext loc1 = getJAXBContext ( arg0 ) ; return loc1 . createUnmarshaller ( ) ; }
86
checks if all given transitions have at least one action . returns false for empty lists . concode_field_sep PlaceHolder placeHolder concode_field_sep boolean hasEntryAction concode_elem_sep boolean containsOnlyEventsOfType concode_elem_sep boolean oneIncomingTransitionEntersCompositeWithEntryActions concode_elem_sep b...
boolean function ( EList < Transition > arg0 ) { if ( arg0 . isEmpty ( ) ) return false ; for ( Transition loc0 : arg0 ) { if ( ! hasAtLeastOneAction ( loc0 ) ) { return false ; } } return true ; }
87
set the message sender . concode_field_sep TemplateDAO templateDAO concode_elem_sep Log log concode_elem_sep MessageSender messageSender concode_elem_sep MessagePreparator messagePreparator concode_field_sep void setTemplateDAO concode_elem_sep List getAllTemplates concode_elem_sep Template getTemplate concode_elem_sep...
void function ( MessageSender arg0 ) { this . messageSender = arg0 ; }
88
sets the group id of this audit send mails . concode_field_sep AuditSendMails _auditSendMails concode_field_sep void setExpandoBridgeAttributes concode_elem_sep boolean isEscapedModel concode_elem_sep boolean isCachedModel concode_elem_sep com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge concode_elem_se...
void function ( long arg0 ) { _auditSendMails . setGroupId ( arg0 ) ; }
89
create a server that registers the declaredservlet instance . concode_field_sep PlaceHolder placeHolder concode_field_sep placeholderType placeHolder
Server function ( URI arg0 , Servlet arg1 , Map < String , String > arg2 , Map < String , String > arg3 ) { if ( arg1 == null ) { throw new IllegalArgumentException ( "srini_string" ) ; } return create ( arg0 , null , arg1 , arg2 , arg3 ) ; }
90
adds an element to this multiset concode_field_sep Map<Object,Integer> m_map concode_field_sep Object getAnyElement concode_elem_sep boolean add concode_elem_sep boolean containsAll concode_elem_sep void clear concode_elem_sep boolean isEmpty concode_elem_sep boolean remove concode_elem_sep boolean contains concode_ele...
Multiset function ( Object arg0 ) { if ( ! m_map . containsKey ( arg0 ) ) { m_map . put ( arg0 , 1 ) ; } else { int loc0 = m_map . get ( arg0 ) ; m_map . put ( arg0 , loc0 + 1 ) ; } return this ; }
91
return the package name of this component . concode_field_sep String mPackage concode_elem_sep String mClass concode_elem_sep Parcelable.Creator<ComponentName> CREATOR concode_field_sep String flattenToString concode_elem_sep String getShortClassName concode_elem_sep ComponentName[] newArray concode_elem_sep ComponentN...
String function ( ) { return mPackage ; }
92
retrieve the password encryptor used by user managers created by this factory concode_field_sep Logger LOG concode_elem_sep PasswordEncryptor passwordEncryptor concode_elem_sep File userDataFile concode_elem_sep String smscHome concode_elem_sep String adminName concode_elem_sep URL userDataURL concode_field_sep void se...
PasswordEncryptor function ( ) { return this . passwordEncryptor ; }
93
returns the current capacity . the capacity is the amount of storage available for newly appended bytes , beyond which an allocation will occur . concode_field_sep int len concode_elem_sep byte[] buffer concode_elem_sep long serialVersionUID concode_field_sep int byteAt concode_elem_sep void expand concode_elem_sep voi...
int function ( ) { return this . buffer . length ; }
94
this method must be called by subclasses whenever the user makes a change to the geometry so that the cached jts object can be recreated . concode_field_sep JTSGeometry parent concode_elem_sep com.vividsolutions.jts.geom.Geometry jtsPeer concode_field_sep com.vividsolutions.jts.geom.Geometry getJTSGeometry concode_elem...
void function ( ) { jtsPeer = null ; if ( parent != null ) parent . invalidateCachedJTSPeer ( ) ; }
95
set the sides on which to generate offset points . concode_field_sep boolean doRight concode_elem_sep Geometry g concode_elem_sep boolean doLeft concode_field_sep void computeOffsetPoints concode_elem_sep void extractPoints concode_elem_sep List getPoints
void function ( boolean arg0 , boolean arg1 ) { this . doLeft = arg0 ; this . doRight = arg1 ; }
96
erase from top of screen to cursor . concode_field_sep int SavedY concode_elem_sep int SavedX concode_elem_sep int col concode_elem_sep int row concode_elem_sep int MAXCOL concode_elem_sep int PromptLine concode_field_sep void setUnderline concode_elem_sep void beep concode_elem_sep void eraseDown concode_elem_sep void...
void function ( ) { }
97
checkusm for empty tiles for servers delivering such tile types concode_field_sep Map<String,Set<String>> noTileHeaders concode_elem_sep Map<String,Set<String>> noTileChecksums concode_elem_sep int maxZoom concode_elem_sep String name concode_elem_sep int minZoom concode_elem_sep String id concode_elem_sep int tileSize...
Map < String , Set < String >> function ( ) { return noTileChecksums ; }
98
test method for org.geotools.referencing.operation.transform.nadcontransform #getsourcedimensions . concode_field_sep double TOLERANCE concode_elem_sep NADCONTransform transform concode_elem_sep double[] TEST_POINT_DST concode_elem_sep String STPAUL_LAS concode_elem_sep double[] TEST_POINT_SRC concode_elem_sep String S...
void function ( ) { assertEquals ( transform . getSourceDimensions ( ) , 2 ) ; }
99
returns the mail exchanger an e-mail address in the format admin.example.com , which represents [email protected] . concode_field_sep String name concode_elem_sep int priority concode_field_sep int priority
String function ( ) { return name ; }
End of preview. Expand in Data Studio

Dataset Card for "code_x_glue_tc_text_to_code"

Dataset Summary

CodeXGLUE text-to-code dataset, available at https://github.com/microsoft/CodeXGLUE/tree/main/Text-Code/text-to-code

The dataset we use is crawled and filtered from Microsoft Documentation, whose document located at https://github.com/MicrosoftDocs/.

Supported Tasks and Leaderboards

  • machine-translation: The dataset can be used to train a model for generating Java code from an English natural language description.

Languages

  • Java programming language

Dataset Structure

Data Instances

An example of 'train' looks as follows.

{
    "code": "boolean function ( ) { return isParsed ; }", 
    "id": 0, 
    "nl": "check if details are parsed . concode_field_sep Container parent concode_elem_sep boolean isParsed concode_elem_sep long offset concode_elem_sep long contentStartPosition concode_elem_sep ByteBuffer deadBytes concode_elem_sep boolean isRead concode_elem_sep long memMapSize concode_elem_sep Logger LOG concode_elem_sep byte[] userType concode_elem_sep String type concode_elem_sep ByteBuffer content concode_elem_sep FileChannel fileChannel concode_field_sep Container getParent concode_elem_sep byte[] getUserType concode_elem_sep void readContent concode_elem_sep long getOffset concode_elem_sep long getContentSize concode_elem_sep void getContent concode_elem_sep void setDeadBytes concode_elem_sep void parse concode_elem_sep void getHeader concode_elem_sep long getSize concode_elem_sep void parseDetails concode_elem_sep String getType concode_elem_sep void _parseDetails concode_elem_sep String getPath concode_elem_sep boolean verify concode_elem_sep void setParent concode_elem_sep void getBox concode_elem_sep boolean isSmallBox"
}

Data Fields

In the following each data field in go is explained for each config. The data fields are the same among all splits.

default

field name type description
id int32 Index of the sample
nl string The natural language description of the task
code string The programming source code for the task

Data Splits

name train validation test
default 100000 2000 2000

Dataset Creation

Curation Rationale

[More Information Needed]

Source Data

Initial Data Collection and Normalization

[More Information Needed]

Who are the source language producers?

[More Information Needed]

Annotations

Annotation process

[More Information Needed]

Who are the annotators?

[More Information Needed]

Personal and Sensitive Information

[More Information Needed]

Considerations for Using the Data

Social Impact of Dataset

[More Information Needed]

Discussion of Biases

[More Information Needed]

Other Known Limitations

[More Information Needed]

Additional Information

Dataset Curators

https://github.com/microsoft, https://github.com/madlag

Licensing Information

Computational Use of Data Agreement (C-UDA) License.

Citation Information

@article{iyer2018mapping,
  title={Mapping language to code in programmatic context},
  author={Iyer, Srinivasan and Konstas, Ioannis and Cheung, Alvin and Zettlemoyer, Luke},
  journal={arXiv preprint arXiv:1808.09588},
  year={2018}
}

Contributions

Thanks to @madlag (and partly also @ncoop57) for adding this dataset.

Downloads last month
879

Models trained or fine-tuned on google/code_x_glue_tc_text_to_code

Paper for google/code_x_glue_tc_text_to_code