Datasets:

Modalities:
Text
Formats:
json
ArXiv:
Libraries:
Datasets
pandas
License:
Dataset Viewer
Auto-converted to Parquet Duplicate
code
stringlengths
20
663
nl
stringlengths
68
7.19k
boolean function ( ) { return isParsed ; }
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...
File function ( ) { return libraryFile ; }
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...
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 ...
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
byte [ ] function ( Class < ? > arg0 , Configuration arg1 ) { return AuthenticationTokenSerializer . serialize ( org . apache . accumulo . core . client . mapreduce . lib . impl . ConfiguratorBase . getAuthenticationToken ( arg0 , arg1 ) ) ; }
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 ...
void function ( Binder arg0 ) { EventBus loc0 = new EventBus ( ) ; AmbariEventPublisher loc1 = new AmbariEventPublisher ( ) ; replaceEventBus ( AmbariEventPublisher . class , loc1 , loc0 ) ; arg0 . bind ( AmbariEventPublisher . class ) . toInstance ( loc1 ) ; }
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
boolean function ( ) { return false ; }
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...
String function ( ) { return clientId ; }
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...
int function ( ) { return score ; }
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...
String function ( ) { return this . caseId ; }
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...
void function ( Element arg0 , Formula arg1 ) { arg0 . addElement ( "srini_string" ) . setText ( arg1 . getText ( ) ) ; }
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...
String function ( ) { return bodyId ; }
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...
int function ( byte [ ] arg0 , int arg1 , int arg2 , int arg3 ) { return hash ( ByteBuffer . wrap ( arg0 , arg1 , arg2 ) , arg3 ) ; }
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
void function ( ) { sInstance = null ; sApplicationContext = null ; }
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...
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...
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 ...
PasteAction function ( EClass arg0 ) { return PasteAction . ADD ; }
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...
File function ( ) { File loc0 = new File ( plugin . getDataFolder ( ) + "srini_string" ) ; return loc0 ; }
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
int function ( byte [ ] arg0 ) { return getCharLength ( arg0 , 0 , arg0 . length ) ; }
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...
boolean function ( ) { return false ; }
has this upstream finished or `` completed '' / `` failed '' ? concode_field_sep PlaceHolder placeHolder concode_field_sep boolean isStarted
boolean function ( State arg0 ) { EList < Expression > loc0 = getFirstExitActions ( arg0 ) ; if ( loc0 != null && ! loc0 . isEmpty ( ) ) { return true ; } return false ; }
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...
List < Subject > function ( ) { if ( contactSubjects == null ) { contactSubjects = new ArrayList < Subject > ( ) ; } return this . contactSubjects ; }
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 ...
float function ( int arg0 , int arg1 ) { int loc0 = arg0 - cx ; int loc1 = arg1 - cy ; return getSquaredDistance ( loc0 , loc1 ) ; }
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...
void function ( ) { PersistenceBrokerFactoryFactory . instance ( ) . releaseAllInstances ( ) ; }
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...
ProteinType . AlternativeName function ( ) { return new ProteinType . AlternativeName ( ) ; }
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...
boolean function ( ) { return globalAdminRole ; }
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...
ResourceId function ( ) { return _id ; }
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...
void function ( ) { store . removeLink ( this . id , rolePrintBeforeId , store . getInstance ( this . id , rolePrintBeforeId ) ) ; }
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 ( final String arg0 ) { this . version = arg0 ; }
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 ( ) { 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 ( ) ) ; }
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...
GetItemResult function ( java . util . Map < String , AttributeValue > arg0 ) { setItem ( arg0 ) ; return this ; }
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...
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 ) ; } }
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
boolean function ( Object arg0 ) { return this == arg0 || ( arg0 instanceof SavedSearch && hashCode ( ) == arg0 . hashCode ( ) ) ; }
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...
void function ( String arg0 ) { this . firstName = arg0 ; }
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 ( long arg0 ) { _workflowInstanceLink . setGroupId ( arg0 ) ; }
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...
boolean function ( Object arg0 ) { return ( arg0 != null ) && ( arg0 instanceof Identifier ) && ( ( Identifier ) arg0 ) . name . equals ( name ) ; }
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> ...
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 ( ) ; }
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...
void function ( Signal arg0 ) { LOG . error ( "srini_string" + arg0 . getNumber ( ) + "srini_string" + arg0 . getName ( ) ) ; prevHandler . handle ( arg0 ) ; }
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 ( DialLayerChangeListener arg0 ) { this . listenerList . remove ( DialLayerChangeListener . class , arg0 ) ; }
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...
long function ( ) { long loc0 = file . length ( ) ; return header . length + loc0 ; }
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...
void function ( ) { registerGlobalErrorCallback ( ) ; }
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...
String function ( String arg0 ) { return replaceInjectedValuesWithPlaceholders ( arg0 ) ; }
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...
void function ( final PageRepository arg0 ) { this . pageRepository = arg0 ; }
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 ...
String function ( String arg0 , String arg1 , String arg2 ) { ReportsService . getInstance ( ) . recordClientError ( arg0 , arg1 , arg2 ) ; return Constants . EMPTY_STRING ; }
registers error reported by client . concode_field_sep PlaceHolder placeHolder concode_field_sep String feedbackMessage
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...
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...
ProtocolConnectionManager function ( final Connection arg0 , final ConnectionOpenHandler arg1 ) { return create ( new EstablishedConnection ( arg0 , arg1 ) ) ; }
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...
String function ( ) { if ( inNetUsedDed == null || inNetUsedDed . equals ( "srini_string" ) ) { return "srini_string" ; } return inNetUsedDed ; }
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 ...
List < String > function ( ) { if ( bundleUrls == null ) { bundleUrls = new ArrayList < String > ( ) ; } return this . bundleUrls ; }
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 ,...
void function ( long arg0 ) { _asset . setPrimaryKey ( arg0 ) ; }
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...
long function ( ) { next_cs_id ++ ; return next_cs_id ; }
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...
void function ( String arg0 ) { getValueBinding ( getJsfEl ( arg0 ) ) . setValue ( FacesContext . getCurrentInstance ( ) , null ) ; }
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 ( final Map arg0 , final HttpServletResponse arg1 ) { arg1 . setStatus ( HttpServletResponse . SC_BAD_REQUEST ) ; arg0 . put ( "srini_string" , HttpServletResponse . SC_BAD_REQUEST ) ; render ( arg0 , arg1 ) ; }
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 ( ) { new CallableBackgroundInitializer < Object > ( null ) ; }
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
int function ( ) { return m_DisplayType ; }
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...
void function ( ) { assertTrue ( "srini_string" , incorrectRoleResult . contains ( INIT_METHOD_NOT_PASS ) ) ; }
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...
ChannelBuilder function ( ChannelTypeUID arg0 ) { this . channelTypeUID = arg0 ; return this ; }
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...
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 ; }
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...
void function ( com . intellij . tasks . mantis . model . ObjectRef arg0 ) { this . field = arg0 ; }
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...
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 ) ; }
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_...
void function ( ) { checkOsUser ( ) ; checkUmask ( ) ; }
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 ( ) { if ( this . readThread != null ) { this . readThread . interrupt ( ) ; } }
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...
long function ( ) { if ( running ) { return System . currentTimeMillis ( ) - startTime ; } else { return 0 ; } }
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...
String function ( ) { return message ; }
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 ...
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 -- ; }
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 ( String arg0 ) { this . savedSearch = arg0 ; }
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...
TypeCode function ( ) { return OrbRestricted . Singleton . create_struct_tc ( id ( ) , "srini_string" , new StructMember [ 0 ] ) ; }
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
boolean function ( QName arg0 , QName arg1 ) { return ( ( ( null == arg0 ) && ( null == arg1 ) ) || ( ( null != arg0 ) && ( null != arg1 ) && arg0 . equals ( arg1 ) ) ) ; }
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...
ThreadFactory function ( ) { return factory ; }
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
int function ( ) { return min_group_len ; }
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
void function ( boolean arg0 , String arg1 ) { if ( ! arg0 ) { throw new AssertionException ( arg1 ) ; } }
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 ( String arg0 ) { this . userId = arg0 ; }
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
java . lang . String function ( ) { return _ddmTemplateVersionService . getOSGiServiceIdentifier ( ) ; }
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...
String [ ] function ( ) { return new String [ 0 ] ; }
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...
boolean function ( String arg0 ) { Iterator loc0 = presentationMap . values ( ) . iterator ( ) ; while ( loc0 . hasNext ( ) ) { if ( ( ( Presentation ) loc0 . next ( ) ) . getPassword ( ) . equals ( arg0 ) ) { return true ; } } return false ; }
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_...
void function ( ArvosPoiObject arg0 ) { arg0 . mIsActive = true ; requestStart ( arg0 ) ; }
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 ( AdUnitTargetWindow arg0 ) { this . targetWindow = arg0 ; }
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...
int function ( ) { return label ; }
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_...
Byte function ( ) { return first ; }
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 ...
boolean function ( Class < ? > arg0 ) { return true ; }
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 ( Info arg0 ) { return klass . equals ( arg0 . klass ) ; }
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...
void function ( ASTNode arg0 , ASTNode arg1 , ASTNode arg2 , StructuralPropertyDescriptor arg3 ) { }
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...
String function ( ) { return this . format ; }
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...
boolean function ( ) { return pos < srcEnd ; }
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 ...
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 ...
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
void function ( BundleContext arg0 ) { context = arg0 ; logger . debug ( "srini_string" ) ; try { StdSchedulerFactory . getDefaultScheduler ( ) . start ( ) ; } catch ( SchedulerException loc0 ) { logger . error ( "srini_string" , loc0 ) ; } }
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
String function ( ) { return this . pkg . getName ( ) ; }
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...
long function ( ) { return stopValue ; }
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
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 ( ) ; }
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...
boolean function ( EList < Transition > arg0 ) { if ( arg0 . isEmpty ( ) ) return false ; for ( Transition loc0 : arg0 ) { if ( ! hasAtLeastOneAction ( loc0 ) ) { return false ; } } return true ; }
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...
void function ( MessageSender arg0 ) { this . messageSender = arg0 ; }
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 ( long arg0 ) { _auditSendMails . setGroupId ( arg0 ) ; }
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...
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 ) ; }
create a server that registers the declaredservlet instance . concode_field_sep PlaceHolder placeHolder concode_field_sep placeholderType placeHolder
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 ; }
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...
String function ( ) { return mPackage ; }
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...
PasswordEncryptor function ( ) { return this . passwordEncryptor ; }
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...
int function ( ) { return this . buffer . length ; }
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...
void function ( ) { jtsPeer = null ; if ( parent != null ) parent . invalidateCachedJTSPeer ( ) ; }
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 ( boolean arg0 , boolean arg1 ) { this . doLeft = arg0 ; this . doRight = arg1 ; }
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 ( ) { }
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...
Map < String , Set < String >> function ( ) { return noTileChecksums ; }
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...
void function ( ) { assertEquals ( transform . getSourceDimensions ( ) , 2 ) ; }
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...
String function ( ) { return name ; }
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
End of preview. Expand in Data Studio

Dataset is imported from CodeXGLUE and pre-processed using their script.

Where to find in Semeru:

The dataset can be found at /nfs/semeru/semeru_datasets/code_xglue/text-to-code/concode in Semeru

CodeXGLUE -- Text2Code Generation

Here are the dataset and pipeline for text-to-code generation task.

Task Definition

Generate source code of class member functions in Java, given natural language description and class environment. Class environment is the programmatic context provided by the rest of the class, including other member variables and member functions in class. Models are evaluated by exact match and BLEU.

It's a challenging task because the desired code can vary greatly depending on the functionality the class provides. Models must (a) have a deep understanding of NL description and map the NL to environment variables, library API calls and user-defined methods in the class, and (b) decide on the structure of the resulting code.

Dataset

Concode dataset

We use concode dataset which is a widely used code generation dataset from Iyer's EMNLP 2018 paper Mapping Language to Code in Programmatic Context.

We have downloaded his published dataset and followed his preprocessed script. You can find the preprocessed data in dataset/concode directory.

Data statistics of concode dataset are shown in the below table:

#Examples
Train 100,000
Dev 2,000
Test 2,000

Data Format

Code corpus are saved in json lines format files. one line is a json object:

{
  "nl": "Increment this vector in this place. con_elem_sep double[] vecElement con_elem_sep double[] weights con_func_sep void add(double)",
  "code": "public void inc ( ) { this . add ( 1 ) ; }"
}

nl combines natural language description and class environment. Elements in class environment are seperated by special tokens like con_elem_sep and con_func_sep.

Reference

@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}
}
Downloads last month
550

Paper for semeru/Text-Code-concode-Java