query
stringlengths
7
33.1k
document
stringlengths
7
335k
metadata
dict
negatives
listlengths
3
101
negative_scores
listlengths
3
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
$ANTLR end "rule__BoolOperation__ObjTableAssignment_14" $ANTLR start "rule__BoolOperation__PresAssignment_16" InternalBSQL2Java.g:3284:1: rule__BoolOperation__PresAssignment_16 : ( ruleBPredicate ) ;
public final void rule__BoolOperation__PresAssignment_16() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalBSQL2Java.g:3288:1: ( ( ruleBPredicate ) ) // InternalBSQL2Java.g:3289:2: ( ruleBPredicate ) { // InternalBSQL2Java.g:3289:2: ( ruleBPredicate ) // InternalBSQL2Java.g:3290:3: ruleBPredicate { before(grammarAccess.getBoolOperationAccess().getPresBPredicateParserRuleCall_16_0()); pushFollow(FOLLOW_2); ruleBPredicate(); state._fsp--; after(grammarAccess.getBoolOperationAccess().getPresBPredicateParserRuleCall_16_0()); } } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { restoreStackSize(stackSize); } return ; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final void rule__BoolOperation__PresAssignment_17_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalBSQL2Java.g:3303:1: ( ( ruleBPredicate ) )\n // InternalBSQL2Java.g:3304:2: ( ruleBPredicate )\n {\n ...
[ "0.8018415", "0.6901791", "0.6777233", "0.6714584", "0.59150094", "0.58987445", "0.58310235", "0.5827042", "0.57570577", "0.5755444", "0.5645847", "0.5610832", "0.55558723", "0.5546067", "0.5526595", "0.55159414", "0.54757994", "0.5442068", "0.54065347", "0.5356129", "0.53332...
0.83492094
0
$ANTLR end "rule__BoolOperation__PresAssignment_16" $ANTLR start "rule__BoolOperation__PresAssignment_17_1" InternalBSQL2Java.g:3299:1: rule__BoolOperation__PresAssignment_17_1 : ( ruleBPredicate ) ;
public final void rule__BoolOperation__PresAssignment_17_1() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalBSQL2Java.g:3303:1: ( ( ruleBPredicate ) ) // InternalBSQL2Java.g:3304:2: ( ruleBPredicate ) { // InternalBSQL2Java.g:3304:2: ( ruleBPredicate ) // InternalBSQL2Java.g:3305:3: ruleBPredicate { before(grammarAccess.getBoolOperationAccess().getPresBPredicateParserRuleCall_17_1_0()); pushFollow(FOLLOW_2); ruleBPredicate(); state._fsp--; after(grammarAccess.getBoolOperationAccess().getPresBPredicateParserRuleCall_17_1_0()); } } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { restoreStackSize(stackSize); } return ; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final void rule__BoolOperation__PresAssignment_16() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalBSQL2Java.g:3288:1: ( ( ruleBPredicate ) )\n // InternalBSQL2Java.g:3289:2: ( ruleBPredicate )\n {\n ...
[ "0.8748907", "0.73113537", "0.71192986", "0.6598201", "0.63245505", "0.62815756", "0.62002754", "0.6133647", "0.6083111", "0.6027491", "0.58055", "0.57511055", "0.5744241", "0.5695364", "0.569449", "0.5691848", "0.56845057", "0.56300807", "0.5599118", "0.55889475", "0.5541768...
0.8735999
1
$ANTLR end "rule__BoolOperation__PresAssignment_17_1" $ANTLR start "rule__VoidOperation__Op_nameAssignment_0" InternalBSQL2Java.g:3314:1: rule__VoidOperation__Op_nameAssignment_0 : ( RULE_ID ) ;
public final void rule__VoidOperation__Op_nameAssignment_0() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalBSQL2Java.g:3318:1: ( ( RULE_ID ) ) // InternalBSQL2Java.g:3319:2: ( RULE_ID ) { // InternalBSQL2Java.g:3319:2: ( RULE_ID ) // InternalBSQL2Java.g:3320:3: RULE_ID { before(grammarAccess.getVoidOperationAccess().getOp_nameIDTerminalRuleCall_0_0()); match(input,RULE_ID,FOLLOW_2); after(grammarAccess.getVoidOperationAccess().getOp_nameIDTerminalRuleCall_0_0()); } } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { restoreStackSize(stackSize); } return ; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final void rule__VoidOperation__Group__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalBSQL2Java.g:1989:1: ( ( ( rule__VoidOperation__Op_nameAssignment_0 ) ) )\n // InternalBSQL2Java.g:1990:1: ( ( rule__Voi...
[ "0.7407571", "0.6735195", "0.6281272", "0.56907064", "0.56762505", "0.5566764", "0.5495688", "0.5459796", "0.5391296", "0.528915", "0.5261317", "0.5249596", "0.5246447", "0.5222422", "0.5208177", "0.5190369", "0.5172013", "0.5160119", "0.5151857", "0.5146324", "0.51398087", ...
0.76059675
0
$ANTLR end "rule__VoidOperation__Op_nameAssignment_0" $ANTLR start "rule__VoidOperation__PListAssignment_2_0" InternalBSQL2Java.g:3329:1: rule__VoidOperation__PListAssignment_2_0 : ( RULE_ID ) ;
public final void rule__VoidOperation__PListAssignment_2_0() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalBSQL2Java.g:3333:1: ( ( RULE_ID ) ) // InternalBSQL2Java.g:3334:2: ( RULE_ID ) { // InternalBSQL2Java.g:3334:2: ( RULE_ID ) // InternalBSQL2Java.g:3335:3: RULE_ID { before(grammarAccess.getVoidOperationAccess().getPListIDTerminalRuleCall_2_0_0()); match(input,RULE_ID,FOLLOW_2); after(grammarAccess.getVoidOperationAccess().getPListIDTerminalRuleCall_2_0_0()); } } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { restoreStackSize(stackSize); } return ; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final void rule__VoidOperation__Group_2__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalBSQL2Java.g:2259:1: ( ( ( rule__VoidOperation__PListAssignment_2_0 ) ) )\n // InternalBSQL2Java.g:2260:1: ( ( rule__V...
[ "0.7403068", "0.7314453", "0.7299002", "0.7259658", "0.66871446", "0.60858256", "0.5918321", "0.5870844", "0.5749424", "0.5713296", "0.564242", "0.55980295", "0.5576075", "0.5550245", "0.5522347", "0.55047446", "0.54199165", "0.541682", "0.5399878", "0.5382073", "0.5381268", ...
0.7612996
0
$ANTLR end "rule__VoidOperation__PListAssignment_2_0" $ANTLR start "rule__VoidOperation__PListAssignment_2_1_1" InternalBSQL2Java.g:3344:1: rule__VoidOperation__PListAssignment_2_1_1 : ( RULE_ID ) ;
public final void rule__VoidOperation__PListAssignment_2_1_1() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalBSQL2Java.g:3348:1: ( ( RULE_ID ) ) // InternalBSQL2Java.g:3349:2: ( RULE_ID ) { // InternalBSQL2Java.g:3349:2: ( RULE_ID ) // InternalBSQL2Java.g:3350:3: RULE_ID { before(grammarAccess.getVoidOperationAccess().getPListIDTerminalRuleCall_2_1_1_0()); match(input,RULE_ID,FOLLOW_2); after(grammarAccess.getVoidOperationAccess().getPListIDTerminalRuleCall_2_1_1_0()); } } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { restoreStackSize(stackSize); } return ; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final void rule__VoidOperation__PListAssignment_2_0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalBSQL2Java.g:3333:1: ( ( RULE_ID ) )\n // InternalBSQL2Java.g:3334:2: ( RULE_ID )\n {\n // In...
[ "0.8246316", "0.7641839", "0.75407606", "0.6613419", "0.6572411", "0.64810145", "0.57942045", "0.571124", "0.55719775", "0.5542922", "0.5541018", "0.5508579", "0.549324", "0.54873693", "0.54777575", "0.54490274", "0.5433869", "0.54029095", "0.54000777", "0.53977394", "0.53952...
0.80851996
1
$ANTLR end "rule__VoidOperation__PListAssignment_2_1_1" $ANTLR start "rule__VoidOperation__ParamsAssignment_6_0" InternalBSQL2Java.g:3359:1: rule__VoidOperation__ParamsAssignment_6_0 : ( ruleBParameter ) ;
public final void rule__VoidOperation__ParamsAssignment_6_0() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalBSQL2Java.g:3363:1: ( ( ruleBParameter ) ) // InternalBSQL2Java.g:3364:2: ( ruleBParameter ) { // InternalBSQL2Java.g:3364:2: ( ruleBParameter ) // InternalBSQL2Java.g:3365:3: ruleBParameter { before(grammarAccess.getVoidOperationAccess().getParamsBParameterParserRuleCall_6_0_0()); pushFollow(FOLLOW_2); ruleBParameter(); state._fsp--; after(grammarAccess.getVoidOperationAccess().getParamsBParameterParserRuleCall_6_0_0()); } } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { restoreStackSize(stackSize); } return ; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final void rule__VoidOperation__ParamsAssignment_6_1_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalBSQL2Java.g:3378:1: ( ( ruleBParameter ) )\n // InternalBSQL2Java.g:3379:2: ( ruleBParameter )\n {\n...
[ "0.779875", "0.66483027", "0.6459121", "0.64060056", "0.6286319", "0.58783185", "0.5795744", "0.5767704", "0.5731547", "0.5719092", "0.5677926", "0.5660663", "0.562266", "0.5593624", "0.5517841", "0.5462824", "0.5459883", "0.5444132", "0.54365635", "0.5416919", "0.541234", ...
0.79193455
0
$ANTLR end "rule__VoidOperation__ParamsAssignment_6_0" $ANTLR start "rule__VoidOperation__ParamsAssignment_6_1_1" InternalBSQL2Java.g:3374:1: rule__VoidOperation__ParamsAssignment_6_1_1 : ( ruleBParameter ) ;
public final void rule__VoidOperation__ParamsAssignment_6_1_1() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalBSQL2Java.g:3378:1: ( ( ruleBParameter ) ) // InternalBSQL2Java.g:3379:2: ( ruleBParameter ) { // InternalBSQL2Java.g:3379:2: ( ruleBParameter ) // InternalBSQL2Java.g:3380:3: ruleBParameter { before(grammarAccess.getVoidOperationAccess().getParamsBParameterParserRuleCall_6_1_1_0()); pushFollow(FOLLOW_2); ruleBParameter(); state._fsp--; after(grammarAccess.getVoidOperationAccess().getParamsBParameterParserRuleCall_6_1_1_0()); } } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { restoreStackSize(stackSize); } return ; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final void rule__VoidOperation__ParamsAssignment_6_0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalBSQL2Java.g:3363:1: ( ( ruleBParameter ) )\n // InternalBSQL2Java.g:3364:2: ( ruleBParameter )\n {\n ...
[ "0.8197001", "0.6820347", "0.6620797", "0.6509969", "0.64274174", "0.5871919", "0.57314384", "0.5529944", "0.5483591", "0.53392434", "0.53178155", "0.53067434", "0.52861494", "0.52861494", "0.5147154", "0.5132122", "0.51117283", "0.5003964", "0.50014114", "0.5000982", "0.4997...
0.80980754
1
$ANTLR end "rule__VoidOperation__ParamsAssignment_6_1_1" $ANTLR start "rule__VoidOperation__SubsAssignment_8" InternalBSQL2Java.g:3389:1: rule__VoidOperation__SubsAssignment_8 : ( ruleBSubstitution ) ;
public final void rule__VoidOperation__SubsAssignment_8() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalBSQL2Java.g:3393:1: ( ( ruleBSubstitution ) ) // InternalBSQL2Java.g:3394:2: ( ruleBSubstitution ) { // InternalBSQL2Java.g:3394:2: ( ruleBSubstitution ) // InternalBSQL2Java.g:3395:3: ruleBSubstitution { before(grammarAccess.getVoidOperationAccess().getSubsBSubstitutionParserRuleCall_8_0()); pushFollow(FOLLOW_2); ruleBSubstitution(); state._fsp--; after(grammarAccess.getVoidOperationAccess().getSubsBSubstitutionParserRuleCall_8_0()); } } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { restoreStackSize(stackSize); } return ; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final void rule__VoidOperation__Group__8__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalBSQL2Java.g:2205:1: ( ( ( rule__VoidOperation__SubsAssignment_8 )* ) )\n // InternalBSQL2Java.g:2206:1: ( ( rule__VoidO...
[ "0.7201501", "0.6327", "0.6283954", "0.6275788", "0.6145153", "0.59053826", "0.55165267", "0.5401939", "0.53605694", "0.53386164", "0.528625", "0.52858746", "0.51647455", "0.51245236", "0.510945", "0.51079917", "0.50939035", "0.5086306", "0.5059378", "0.50026286", "0.49977624...
0.8032938
0
$ANTLR end "rule__VoidOperation__SubsAssignment_8" $ANTLR start "rule__BPredicate__PLeftAssignment_1_0" InternalBSQL2Java.g:3404:1: rule__BPredicate__PLeftAssignment_1_0 : ( ruleSQLCall ) ;
public final void rule__BPredicate__PLeftAssignment_1_0() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalBSQL2Java.g:3408:1: ( ( ruleSQLCall ) ) // InternalBSQL2Java.g:3409:2: ( ruleSQLCall ) { // InternalBSQL2Java.g:3409:2: ( ruleSQLCall ) // InternalBSQL2Java.g:3410:3: ruleSQLCall { before(grammarAccess.getBPredicateAccess().getPLeftSQLCallParserRuleCall_1_0_0()); pushFollow(FOLLOW_2); ruleSQLCall(); state._fsp--; after(grammarAccess.getBPredicateAccess().getPLeftSQLCallParserRuleCall_1_0_0()); } } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { restoreStackSize(stackSize); } return ; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final void rule__BPredicate__Group_1__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalBSQL2Java.g:2529:1: ( ( ( rule__BPredicate__PLeftAssignment_1_0 ) ) )\n // InternalBSQL2Java.g:2530:1: ( ( rule__BPredic...
[ "0.6752599", "0.6430689", "0.62796843", "0.6173811", "0.58073366", "0.5759202", "0.5694272", "0.56663036", "0.56569624", "0.56564975", "0.5608458", "0.5593295", "0.54884446", "0.54354244", "0.51858735", "0.51668435", "0.5162756", "0.51544446", "0.51458114", "0.5141021", "0.51...
0.8286665
0
$ANTLR end "rule__BPredicate__PLeftAssignment_1_0" $ANTLR start "rule__BPredicate__PRightAssignment_1_2" InternalBSQL2Java.g:3419:1: rule__BPredicate__PRightAssignment_1_2 : ( ruleBValue ) ;
public final void rule__BPredicate__PRightAssignment_1_2() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalBSQL2Java.g:3423:1: ( ( ruleBValue ) ) // InternalBSQL2Java.g:3424:2: ( ruleBValue ) { // InternalBSQL2Java.g:3424:2: ( ruleBValue ) // InternalBSQL2Java.g:3425:3: ruleBValue { before(grammarAccess.getBPredicateAccess().getPRightBValueParserRuleCall_1_2_0()); pushFollow(FOLLOW_2); ruleBValue(); state._fsp--; after(grammarAccess.getBPredicateAccess().getPRightBValueParserRuleCall_1_2_0()); } } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { restoreStackSize(stackSize); } return ; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final void rule__BSubstitution__RightAssignment_2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalBSQL2Java.g:3573:1: ( ( ruleBPredicate ) )\n // InternalBSQL2Java.g:3574:2: ( ruleBPredicate )\n {\n ...
[ "0.7488842", "0.7452598", "0.7330195", "0.7157916", "0.7100289", "0.6422171", "0.6353358", "0.628569", "0.6278037", "0.62433577", "0.6124328", "0.60397977", "0.5867849", "0.58576846", "0.5678764", "0.5666559", "0.5652579", "0.56251395", "0.5576421", "0.5528809", "0.55210906",...
0.8338058
0
$ANTLR end "rule__BPredicate__PRightAssignment_1_2" $ANTLR start "rule__SQLCall__SLeftAssignment_0" InternalBSQL2Java.g:3434:1: rule__SQLCall__SLeftAssignment_0 : ( RULE_ID ) ;
public final void rule__SQLCall__SLeftAssignment_0() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalBSQL2Java.g:3438:1: ( ( RULE_ID ) ) // InternalBSQL2Java.g:3439:2: ( RULE_ID ) { // InternalBSQL2Java.g:3439:2: ( RULE_ID ) // InternalBSQL2Java.g:3440:3: RULE_ID { before(grammarAccess.getSQLCallAccess().getSLeftIDTerminalRuleCall_0_0()); match(input,RULE_ID,FOLLOW_2); after(grammarAccess.getSQLCallAccess().getSLeftIDTerminalRuleCall_0_0()); } } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { restoreStackSize(stackSize); } return ; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final void rule__BPredicate__PLeftAssignment_1_0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalBSQL2Java.g:3408:1: ( ( ruleSQLCall ) )\n // InternalBSQL2Java.g:3409:2: ( ruleSQLCall )\n {\n ...
[ "0.77577764", "0.74690336", "0.7109543", "0.689908", "0.6486925", "0.64464325", "0.569828", "0.56782174", "0.56113267", "0.5563276", "0.5520896", "0.5514971", "0.5457063", "0.54352367", "0.543423", "0.53956205", "0.5381953", "0.5368781", "0.5361711", "0.53402317", "0.53322786...
0.8138516
0
$ANTLR end "rule__SQLCall__SLeftAssignment_0" $ANTLR start "rule__SQLCall__SRightAssignment_2" InternalBSQL2Java.g:3449:1: rule__SQLCall__SRightAssignment_2 : ( RULE_ID ) ;
public final void rule__SQLCall__SRightAssignment_2() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalBSQL2Java.g:3453:1: ( ( RULE_ID ) ) // InternalBSQL2Java.g:3454:2: ( RULE_ID ) { // InternalBSQL2Java.g:3454:2: ( RULE_ID ) // InternalBSQL2Java.g:3455:3: RULE_ID { before(grammarAccess.getSQLCallAccess().getSRightIDTerminalRuleCall_2_0()); match(input,RULE_ID,FOLLOW_2); after(grammarAccess.getSQLCallAccess().getSRightIDTerminalRuleCall_2_0()); } } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { restoreStackSize(stackSize); } return ; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final void rule__SQLCall__SLeftAssignment_0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalBSQL2Java.g:3438:1: ( ( RULE_ID ) )\n // InternalBSQL2Java.g:3439:2: ( RULE_ID )\n {\n // InternalBS...
[ "0.77608496", "0.74839586", "0.6415721", "0.63725024", "0.62516487", "0.6171974", "0.60778266", "0.6066592", "0.6019126", "0.5992521", "0.598785", "0.5984974", "0.5884928", "0.58653414", "0.585808", "0.58527607", "0.58386767", "0.5783946", "0.5739215", "0.5735353", "0.5700764...
0.85580707
0
$ANTLR end "rule__SQLCall__SRightAssignment_2" $ANTLR start "rule__TableInstance__Ti_nameAssignment_0" InternalBSQL2Java.g:3464:1: rule__TableInstance__Ti_nameAssignment_0 : ( RULE_ID ) ;
public final void rule__TableInstance__Ti_nameAssignment_0() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalBSQL2Java.g:3468:1: ( ( RULE_ID ) ) // InternalBSQL2Java.g:3469:2: ( RULE_ID ) { // InternalBSQL2Java.g:3469:2: ( RULE_ID ) // InternalBSQL2Java.g:3470:3: RULE_ID { before(grammarAccess.getTableInstanceAccess().getTi_nameIDTerminalRuleCall_0_0()); match(input,RULE_ID,FOLLOW_2); after(grammarAccess.getTableInstanceAccess().getTi_nameIDTerminalRuleCall_0_0()); } } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { restoreStackSize(stackSize); } return ; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final void rule__TIAssignment__Instance_nameAssignment_0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalBSQL2Java.g:3498:1: ( ( RULE_ID ) )\n // InternalBSQL2Java.g:3499:2: ( RULE_ID )\n {\n ...
[ "0.72551525", "0.70280504", "0.6888408", "0.61445534", "0.6125069", "0.6123332", "0.60762805", "0.6028877", "0.598634", "0.5978415", "0.5942448", "0.5934944", "0.59018517", "0.58974755", "0.5894405", "0.5868273", "0.5796017", "0.5786469", "0.5746405", "0.5728492", "0.5710543"...
0.7846138
0
$ANTLR end "rule__TableInstance__Ti_nameAssignment_0" $ANTLR start "rule__TableInstance__Ti_typeAssignment_2" InternalBSQL2Java.g:3479:1: rule__TableInstance__Ti_typeAssignment_2 : ( ruleTIAssignment ) ;
public final void rule__TableInstance__Ti_typeAssignment_2() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalBSQL2Java.g:3483:1: ( ( ruleTIAssignment ) ) // InternalBSQL2Java.g:3484:2: ( ruleTIAssignment ) { // InternalBSQL2Java.g:3484:2: ( ruleTIAssignment ) // InternalBSQL2Java.g:3485:3: ruleTIAssignment { before(grammarAccess.getTableInstanceAccess().getTi_typeTIAssignmentParserRuleCall_2_0()); pushFollow(FOLLOW_2); ruleTIAssignment(); state._fsp--; after(grammarAccess.getTableInstanceAccess().getTi_typeTIAssignmentParserRuleCall_2_0()); } } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { restoreStackSize(stackSize); } return ; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final void rule__TableInstance__Group__2__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalBSQL2Java.g:2744:1: ( ( ( rule__TableInstance__Ti_typeAssignment_2 ) ) )\n // InternalBSQL2Java.g:2745:1: ( ( rule__Tab...
[ "0.75827086", "0.6977126", "0.68980044", "0.6452539", "0.6393337", "0.6333172", "0.6333117", "0.6202665", "0.61062336", "0.6071793", "0.5976454", "0.5960311", "0.5876703", "0.58563423", "0.5839604", "0.5834205", "0.5827881", "0.5826248", "0.58136714", "0.580445", "0.57351166"...
0.79201645
0
$ANTLR end "rule__TableInstance__Ti_typeAssignment_2" $ANTLR start "rule__TIAssignment__Instance_nameAssignment_0" InternalBSQL2Java.g:3494:1: rule__TIAssignment__Instance_nameAssignment_0 : ( RULE_ID ) ;
public final void rule__TIAssignment__Instance_nameAssignment_0() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalBSQL2Java.g:3498:1: ( ( RULE_ID ) ) // InternalBSQL2Java.g:3499:2: ( RULE_ID ) { // InternalBSQL2Java.g:3499:2: ( RULE_ID ) // InternalBSQL2Java.g:3500:3: RULE_ID { before(grammarAccess.getTIAssignmentAccess().getInstance_nameIDTerminalRuleCall_0_0()); match(input,RULE_ID,FOLLOW_2); after(grammarAccess.getTIAssignmentAccess().getInstance_nameIDTerminalRuleCall_0_0()); } } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { restoreStackSize(stackSize); } return ; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final void rule__TableInstance__Ti_nameAssignment_0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalBSQL2Java.g:3468:1: ( ( RULE_ID ) )\n // InternalBSQL2Java.g:3469:2: ( RULE_ID )\n {\n // In...
[ "0.7226826", "0.72252846", "0.714968", "0.68618447", "0.66909665", "0.63998544", "0.6385888", "0.6368928", "0.61398846", "0.607106", "0.604745", "0.59768325", "0.5942254", "0.5934587", "0.5931766", "0.59047246", "0.58993274", "0.58641434", "0.58233875", "0.57661754", "0.57278...
0.73664093
0
$ANTLR end "rule__TIAssignment__Instance_nameAssignment_0" $ANTLR start "rule__TIAssignment__Instance_typeAssignment_2" InternalBSQL2Java.g:3509:1: rule__TIAssignment__Instance_typeAssignment_2 : ( RULE_ID ) ;
public final void rule__TIAssignment__Instance_typeAssignment_2() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalBSQL2Java.g:3513:1: ( ( RULE_ID ) ) // InternalBSQL2Java.g:3514:2: ( RULE_ID ) { // InternalBSQL2Java.g:3514:2: ( RULE_ID ) // InternalBSQL2Java.g:3515:3: RULE_ID { before(grammarAccess.getTIAssignmentAccess().getInstance_typeIDTerminalRuleCall_2_0()); match(input,RULE_ID,FOLLOW_2); after(grammarAccess.getTIAssignmentAccess().getInstance_typeIDTerminalRuleCall_2_0()); } } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { restoreStackSize(stackSize); } return ; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final void rule__TIAssignment__Group__2__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalBSQL2Java.g:2825:1: ( ( ( rule__TIAssignment__Instance_typeAssignment_2 ) ) )\n // InternalBSQL2Java.g:2826:1: ( ( rule_...
[ "0.74617606", "0.7230299", "0.7113044", "0.67843884", "0.66486734", "0.6220332", "0.61571234", "0.61196554", "0.6111168", "0.60969406", "0.6085339", "0.60632485", "0.6039073", "0.5997161", "0.5981679", "0.59759116", "0.597217", "0.58916926", "0.5875455", "0.5837774", "0.58301...
0.77878946
0
$ANTLR end "rule__TIAssignment__Instance_typeAssignment_2" $ANTLR start "rule__BParameter__P_nameAssignment_0" InternalBSQL2Java.g:3524:1: rule__BParameter__P_nameAssignment_0 : ( RULE_ID ) ;
public final void rule__BParameter__P_nameAssignment_0() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalBSQL2Java.g:3528:1: ( ( RULE_ID ) ) // InternalBSQL2Java.g:3529:2: ( RULE_ID ) { // InternalBSQL2Java.g:3529:2: ( RULE_ID ) // InternalBSQL2Java.g:3530:3: RULE_ID { before(grammarAccess.getBParameterAccess().getP_nameIDTerminalRuleCall_0_0()); match(input,RULE_ID,FOLLOW_2); after(grammarAccess.getBParameterAccess().getP_nameIDTerminalRuleCall_0_0()); } } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { restoreStackSize(stackSize); } return ; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final void rule__BParameter__Group__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalBSQL2Java.g:2853:1: ( ( ( rule__BParameter__P_nameAssignment_0 ) ) )\n // InternalBSQL2Java.g:2854:1: ( ( rule__BParameter...
[ "0.7423224", "0.67735624", "0.6598685", "0.6479124", "0.6424946", "0.6367702", "0.63299274", "0.6221847", "0.61461264", "0.59036535", "0.5886837", "0.5819511", "0.58030814", "0.56942594", "0.5677956", "0.56133586", "0.5600223", "0.5594882", "0.5578148", "0.55770653", "0.55621...
0.74029875
1
$ANTLR end "rule__BParameter__P_nameAssignment_0" $ANTLR start "rule__BParameter__TypeAssignment_2" InternalBSQL2Java.g:3539:1: rule__BParameter__TypeAssignment_2 : ( ruleBType ) ;
public final void rule__BParameter__TypeAssignment_2() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalBSQL2Java.g:3543:1: ( ( ruleBType ) ) // InternalBSQL2Java.g:3544:2: ( ruleBType ) { // InternalBSQL2Java.g:3544:2: ( ruleBType ) // InternalBSQL2Java.g:3545:3: ruleBType { before(grammarAccess.getBParameterAccess().getTypeBTypeParserRuleCall_2_0()); pushFollow(FOLLOW_2); ruleBType(); state._fsp--; after(grammarAccess.getBParameterAccess().getTypeBTypeParserRuleCall_2_0()); } } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { restoreStackSize(stackSize); } return ; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final void ruleBType() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalBSQL2Java.g:166:2: ( ( ( rule__BType__Type_nameAssignment ) ) )\n // InternalBSQL2Java.g:167:2: ( ( rule__BType__Type_nameAssignment ) )\n ...
[ "0.7923137", "0.7794712", "0.7182303", "0.70838875", "0.70470905", "0.6541719", "0.64709234", "0.6451496", "0.63428557", "0.62775785", "0.60942966", "0.5998329", "0.59936965", "0.59866214", "0.59713024", "0.59507775", "0.58860546", "0.5852609", "0.5829055", "0.5794376", "0.57...
0.8524698
0
$ANTLR end "rule__BParameter__TypeAssignment_2" $ANTLR start "rule__BSubstitution__LeftAssignment_0" InternalBSQL2Java.g:3554:1: rule__BSubstitution__LeftAssignment_0 : ( RULE_ID ) ;
public final void rule__BSubstitution__LeftAssignment_0() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalBSQL2Java.g:3558:1: ( ( RULE_ID ) ) // InternalBSQL2Java.g:3559:2: ( RULE_ID ) { // InternalBSQL2Java.g:3559:2: ( RULE_ID ) // InternalBSQL2Java.g:3560:3: RULE_ID { before(grammarAccess.getBSubstitutionAccess().getLeftIDTerminalRuleCall_0_0()); match(input,RULE_ID,FOLLOW_2); after(grammarAccess.getBSubstitutionAccess().getLeftIDTerminalRuleCall_0_0()); } } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { restoreStackSize(stackSize); } return ; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final void rule__BSubstitution__Group__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalBSQL2Java.g:2934:1: ( ( ( rule__BSubstitution__LeftAssignment_0 ) ) )\n // InternalBSQL2Java.g:2935:1: ( ( rule__BSubst...
[ "0.6976123", "0.6520073", "0.64521736", "0.6451473", "0.6327955", "0.59727764", "0.59042525", "0.5873514", "0.5844181", "0.57692534", "0.5691924", "0.5679642", "0.55943924", "0.5477265", "0.546428", "0.5457878", "0.53995305", "0.5319557", "0.5316505", "0.529267", "0.52864534"...
0.70361733
0
$ANTLR end "rule__BSubstitution__LeftAssignment_0" $ANTLR start "rule__BSubstitution__RightAssignment_2" InternalBSQL2Java.g:3569:1: rule__BSubstitution__RightAssignment_2 : ( ruleBPredicate ) ;
public final void rule__BSubstitution__RightAssignment_2() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalBSQL2Java.g:3573:1: ( ( ruleBPredicate ) ) // InternalBSQL2Java.g:3574:2: ( ruleBPredicate ) { // InternalBSQL2Java.g:3574:2: ( ruleBPredicate ) // InternalBSQL2Java.g:3575:3: ruleBPredicate { before(grammarAccess.getBSubstitutionAccess().getRightBPredicateParserRuleCall_2_0()); pushFollow(FOLLOW_2); ruleBPredicate(); state._fsp--; after(grammarAccess.getBSubstitutionAccess().getRightBPredicateParserRuleCall_2_0()); } } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { restoreStackSize(stackSize); } return ; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final void rule__BSubstitution__Group__2__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalBSQL2Java.g:2987:1: ( ( ( rule__BSubstitution__RightAssignment_2 ) ) )\n // InternalBSQL2Java.g:2988:1: ( ( rule__BSubs...
[ "0.73346865", "0.669052", "0.66881096", "0.63527393", "0.6314307", "0.6236573", "0.6188849", "0.6156461", "0.59856874", "0.59492713", "0.59367406", "0.5875627", "0.5828178", "0.56933314", "0.568413", "0.56785667", "0.56623286", "0.5661115", "0.56505805", "0.55979633", "0.5579...
0.8657754
0
the constructor instantiate a new library with a default item
public Library (){ this.inverntory = new List(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Library()\r\n\t{\r\n\t\titems = new ArrayList<Book>();\r\n\t}", "public LibraryBuilder() {\n\t\tthis.addToLibrary = new MyMusicLibrary();\n\t\tthis.addToArtiLibrary = new MyArtistLibrary();\n\t}", "public LibraryAdapterFactory() {\r\n\t}", "public AbstractItemFactory(){\n this.setDefault();\n ...
[ "0.7256885", "0.6877405", "0.6797975", "0.6750738", "0.6735465", "0.6679028", "0.6670183", "0.6669393", "0.66358143", "0.66358143", "0.66212976", "0.6545124", "0.65060514", "0.64644575", "0.64641196", "0.6461452", "0.6461452", "0.64593226", "0.64297503", "0.6422409", "0.64074...
0.65940166
11
methods This method is the setter method for the LibraryItem
public void addItem(LibraryItem item){ // use add method of list.class this.inverntory.add(item); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setItem (Object anObject)\r\n {\r\n // TODO: implement (?)\r\n }", "public Library()\r\n\t{\r\n\t\titems = new ArrayList<Book>();\r\n\t}", "public void setItem(Item item) {\n this.item = item;\n }", "protected abstract LibraryItem getItemFromFields();", "public Libr...
[ "0.622985", "0.61854297", "0.6003536", "0.60015863", "0.5983378", "0.5934932", "0.5860361", "0.5855081", "0.57800645", "0.5739662", "0.5739662", "0.5699449", "0.566322", "0.56035465", "0.5565109", "0.5565109", "0.556121", "0.55488646", "0.5532637", "0.5531561", "0.5523949", ...
0.5458316
25
This method deletes an item in the list. Successful deletion will return a statement (NOT mentioned in UML, still a useful extension)
public void deleteItem(LibraryItem item){ if(this.inverntory.empty()) throw new RuntimeException("Inventory is empty."); // as long as the list is not empty while(!this.inverntory.endpos()){ // check if current head of list is item you want deleted if(this.inverntory.elem() == item){ // if it is, then delete item and report deletion this.inverntory.delete(); System.out.println(item+" removed from inventory."); } // if it is not head of list, advance in list else{ this.inverntory.advance(); } // do so until you reach end of list/inventory } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void deleteItem() {\n\t\taPList.remove();\r\n\t}", "@Override\n\tpublic void deleteItem(Object toDelete) {}", "public void delete(MainItemOrdered mainItemOrdered);", "@Override\n public void deleteItem(P_CK t) {\n \n }", "@Override\n\tpublic Item delete() {\n\...
[ "0.77276903", "0.738193", "0.6982345", "0.6964563", "0.6963178", "0.69459856", "0.6918906", "0.67853016", "0.6780011", "0.6777209", "0.6744459", "0.67441237", "0.67396486", "0.6721503", "0.66971725", "0.6689469", "0.6635276", "0.662918", "0.66026896", "0.65581965", "0.6536127...
0.6305417
35
This method enables to search through all library items You provide a string with a descriptive string of the item All matching items will be returned in a list
public List search(String text){ if(this.inverntory.empty()) throw new RuntimeException("Inventory is empty."); List matchings = new List(); // as long as inventory is not empty while(!this.inverntory.empty()){ /* Note: * public boolean contains(CharSequence s) Returns true if and only if * this string contains the specified sequence of char values. * contains(CharSequence s):boolean expects a CharSequence s as parameter. * CharSequence is an interface implemented by String */ // check if entered string matches the description of the item if( ((LibraryItem) inverntory.elem()).getDescription().contains(text) ) { // add matchings to our list matchings.add(this.inverntory.elem()); } // if head of list is not target string, advance in list else { this.inverntory.advance(); } } // if you reach the end of the list, return the matchings return matchings; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<Product> search(String searchString);", "@Override\n public List<KBHandle> searchItems(KnowledgeBase aKB, String aQuery)\n {\n return disambiguate(aKB, null, ConceptFeatureValueType.ANY_OBJECT, aQuery, null, 0, null);\n }", "@Test\n public void searchCatalogItemsTest() throws ...
[ "0.64384913", "0.64152515", "0.635136", "0.63135135", "0.63088584", "0.610794", "0.60103446", "0.598498", "0.5929519", "0.5916257", "0.5914732", "0.58698994", "0.5843987", "0.58199036", "0.5817337", "0.5807995", "0.5783405", "0.5755461", "0.5743616", "0.5735735", "0.5724769",...
0.6821828
0
cac shell tao ham lay du lieu
public Object[][] getData(File file, String sheetName, int maxColumn ) throws IOException { Object data[][] = null; // tao ra input tu file FileInputStream ExcelFile = new FileInputStream(file); // tao 1 workbook moi xf = new XSSFWorkbook(ExcelFile); // lay ten sheet sheet = xf.getSheet(sheetName); // lay column //mang data = new Object[sheet.getLastRowNum()][maxColumn - 1]; for (int i = 1; i < sheet.getLastRowNum() + 1; i++) { // lap theo hang for (int j = 1; j < maxColumn; j++) { // lap theo cot cell = sheet.getRow(i).getCell(j); // lay du lieu int dataType = cell.getCellType(); // lay kieu du lieu if (dataType == 1) { cell.setCellType(Cell.CELL_TYPE_STRING); data[i - 1][j - 1] = cell.getStringCellValue(); } if (dataType == 0) { cell.setCellType(Cell.CELL_TYPE_NUMERIC); data[i - 1][j - 1] = (int) cell.getNumericCellValue(); } if (dataType == 4) { cell.setCellType(Cell.CELL_TYPE_BOOLEAN); data[i - 1][j - 1] = cell.getBooleanCellValue(); } if (dataType == 3) { cell.setCellType(Cell.CELL_TYPE_BLANK); data[i - 1][j - 1] = ""; } } } return data; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String createUnixShellCommand(SeqAnalysisLocal seqAnalysis);", "public static void main(String[] args) {\nsyso \n\t}", "public void runAtbash() {\n\n if (this.help != null) {\n if (this.function != null) {\n System.out.println(\"\\n\" + \"You have entered a command for A...
[ "0.59205824", "0.57208496", "0.5638643", "0.56369317", "0.5606242", "0.55674374", "0.5517313", "0.5510638", "0.5488449", "0.54402244", "0.5438234", "0.5437343", "0.5436806", "0.5419213", "0.53982246", "0.53868824", "0.53609216", "0.53562814", "0.533439", "0.53093386", "0.5286...
0.0
-1
tao ra input tu file
public void writeResult(File file, String sheetName, int row, int column, boolean result) throws FileNotFoundException, IOException { FileInputStream ExcelFile = new FileInputStream(file); // tao 1 workbook moi xf = new XSSFWorkbook(ExcelFile); // lay ten sheet sheet = xf.getSheet(sheetName); Row rowResult = sheet.getRow(row); Cell cell = rowResult.createCell(column); cell.setCellValue(result); try { // this Writes the workbook gfgcontribute FileOutputStream out = new FileOutputStream(file); xf.write(out); out.close(); } catch (Exception e) { e.printStackTrace(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\n ReadFile trainingFile = new ReadFile(\"input/treino.txt\");\n ReadFile testFile = new ReadFile(\"input/teste.txt\");\n\n // Guarda as series temporais do arquivo de treino em uma lista\n ArrayList<TimeSerie> training = new ArrayList<>();\n ...
[ "0.6302581", "0.5874872", "0.5862457", "0.58609545", "0.5815514", "0.577329", "0.5592132", "0.55565435", "0.5542369", "0.5533217", "0.55145246", "0.54815954", "0.5474262", "0.54615194", "0.5460068", "0.544414", "0.5442896", "0.54422355", "0.54300904", "0.5404768", "0.5390196"...
0.0
-1
these methods are an example that illustrates the implementation of WebClient. You should use the methods that you implement from the Gateway from the domain.
public Flux<Pet> findPetsAvailable() { return client.get().uri(urlFindByStatus).retrieve().bodyToFlux(Pet.class); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface WebClient {\n\n public Response doGet(String targetUrl, Map<String, String> params);\n\n public Response doPost(String targetUrl, Map<String, String> data);\n\n}", "@Test\n void callWithWebClient() {\n StepVerifier\n .create(newWebClient().get().uri(UriBuilder::build).retrieve()...
[ "0.7313898", "0.7064662", "0.6821234", "0.6615419", "0.6472749", "0.64667124", "0.63933975", "0.632715", "0.6323263", "0.6272378", "0.6252515", "0.61996746", "0.61772436", "0.60135305", "0.599501", "0.59667605", "0.5927483", "0.5920207", "0.5911011", "0.58499014", "0.579165",...
0.0
-1
TODO Autogenerated method stub
@Override public String getBizCode() { return UserFunctionType.NoReadAttentionCount; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
Waiting time measurement NEW, BLOCKED, and READY
public void Times() { if(status.getStatus_NUM() == 1 || status.getStatus_NUM() == 2 || status.getStatus_NUM() == 3) { //Waiting Time startWaitingTime = System.nanoTime(); if(status.getStatus_NUM() != 1 || status.getStatus_NUM() != 2 || status.getStatus_NUM() != 3) { endWaitingTime = System.nanoTime(); } totalWaitingTime += endWaitingTime - startWaitingTime; } //When it is running status else if(status.getStatus_NUM() == 0) { //Running Time startRunningTime = System.nanoTime(); //Add a process if(status.getStatus_NUM() != 0) { endRunningTime = System.nanoTime(); } totalRunningTime += endRunningTime - startRunningTime; } //When it is terminated else { System.out.println("Terminated"); System.out.println("Total Running Time : " + totalRunningTime); System.out.println("Total Waiting Time : " + totalWaitingTime); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void updateWaitingTime(){\n waitingTime = waitingTime - 1;\n }", "public static int getWatcherWaitingTime() {\r\n return watcherWaitingTime.getValue(); \r\n }", "int getWaitTime();", "protected int getWait() \t\t\t\t{\treturn wait;\t\t}", "public int getWaitedTime() {\n\t\...
[ "0.75014794", "0.71890336", "0.711607", "0.70023113", "0.6932274", "0.6838308", "0.6778246", "0.6765584", "0.6761849", "0.67293245", "0.6648763", "0.6622802", "0.6620104", "0.65455186", "0.6537563", "0.65166426", "0.649957", "0.64738494", "0.6466164", "0.6466164", "0.6461866"...
0.6560999
13
The Factory for the model. It provides a create method for each nonabstract class of the model.
public interface CommunicationsprogramsFactory extends EFactory { /** * The singleton instance of the factory. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ CommunicationsprogramsFactory eINSTANCE = es.udima.cesarlaso.tfm.communicationsprograms.impl.CommunicationsprogramsFactoryImpl.init(); /** * Returns a new object of class '<em>Program Event Event</em>'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return a new object of class '<em>Program Event Event</em>'. * @generated */ ProgramEventEvent createProgramEventEvent(); /** * Returns a new object of class '<em>Program Actuator Service</em>'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return a new object of class '<em>Program Actuator Service</em>'. * @generated */ ProgramActuatorService createProgramActuatorService(); /** * Returns a new object of class '<em>Remote Event</em>'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return a new object of class '<em>Remote Event</em>'. * @generated */ RemoteEvent createRemoteEvent(); /** * Returns a new object of class '<em>Remote Actuator</em>'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return a new object of class '<em>Remote Actuator</em>'. * @generated */ RemoteActuator createRemoteActuator(); /** * Returns a new object of class '<em>Remote Event Identifier</em>'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return a new object of class '<em>Remote Event Identifier</em>'. * @generated */ RemoteEventIdentifier createRemoteEventIdentifier(); /** * Returns a new object of class '<em>Remote Actuator Identifier</em>'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return a new object of class '<em>Remote Actuator Identifier</em>'. * @generated */ RemoteActuatorIdentifier createRemoteActuatorIdentifier(); /** * Returns the package supported by this factory. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return the package supported by this factory. * @generated */ CommunicationsprogramsPackage getCommunicationsprogramsPackage(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Model createModel();", "Model createModel();", "Model createModel();", "Model createModel();", "Model createModel();", "Model createModel();", "Model createModel();", "TestModelFactory getTestModelFactory();", "public UsermodelFactoryImpl() {\r\n\t\tsuper();\r\n\t}", "public SqliteModelFactoryImp...
[ "0.71565163", "0.71565163", "0.71565163", "0.71565163", "0.71565163", "0.71565163", "0.71565163", "0.70742077", "0.7051943", "0.6983852", "0.69748455", "0.6965496", "0.69568366", "0.69481784", "0.6860293", "0.6811446", "0.6807123", "0.6756206", "0.6694741", "0.6656823", "0.66...
0.0
-1
Returns a new object of class 'Program Event Event'.
ProgramEventEvent createProgramEventEvent();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Event createEvent();", "Event createEvent();", "BasicEvent createBasicEvent();", "EventUse createEventUse();", "public CEventProgram()\r\n {\r\n }", "public LogEvent newInstance()\n {\n return new LogEvent();\n }", "public Event() {}", "BasicEvents createBasicEvents();"...
[ "0.7652947", "0.7652947", "0.7130326", "0.6839932", "0.6813871", "0.6778771", "0.67411697", "0.6685104", "0.6615432", "0.6612665", "0.656055", "0.65510374", "0.6548896", "0.6463733", "0.6463733", "0.64430314", "0.6429939", "0.6427601", "0.6412261", "0.64093256", "0.6326233", ...
0.8355333
0
Returns a new object of class 'Program Actuator Service'.
ProgramActuatorService createProgramActuatorService();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Actuator createActuator();", "Service newService();", "DeviceActuator createDeviceActuator();", "ExternalActuator createExternalActuator();", "RemoteActuator createRemoteActuator();", "public SensorActuatorMachine() {\n this.agent = ExecutionComponentFeature.LOCAL.get();\n if (agent == null) {\n ...
[ "0.6898041", "0.68100613", "0.663926", "0.6450569", "0.63715935", "0.6182058", "0.61130834", "0.59454083", "0.59454083", "0.59454083", "0.59297633", "0.58857673", "0.5871908", "0.5848019", "0.5793345", "0.5789801", "0.5775303", "0.5774247", "0.5770337", "0.57292247", "0.57174...
0.8703832
0
Returns a new object of class 'Remote Event'.
RemoteEvent createRemoteEvent();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Event createEvent();", "Event createEvent();", "RemoteEventIdentifier createRemoteEventIdentifier();", "EventChannel create();", "private IEvent createEvent() throws RodinDBException {\n\t\tfinal IMachineRoot mch = createMachine(\"mch\");\n\t\treturn mch.createChild(IEvent.ELEMENT_TYPE, null, null);\n\t}",...
[ "0.6713657", "0.6713657", "0.6508201", "0.6378375", "0.62090963", "0.60833555", "0.60162556", "0.59893084", "0.5987245", "0.58501506", "0.5828125", "0.5762715", "0.5761921", "0.57378995", "0.57022727", "0.5692973", "0.5663261", "0.5649277", "0.5596646", "0.5551104", "0.554878...
0.856498
0
Returns a new object of class 'Remote Actuator'.
RemoteActuator createRemoteActuator();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Actuator createActuator();", "ExternalActuator createExternalActuator();", "DeviceActuator createDeviceActuator();", "public SensorActuatorMachine() {\n this.agent = ExecutionComponentFeature.LOCAL.get();\n if (agent == null) {\n throw new IllegalStateException(\"Must be called on agent thread.\")...
[ "0.75902104", "0.72943306", "0.7186047", "0.6721795", "0.6590647", "0.60441196", "0.527063", "0.52575237", "0.52397525", "0.523749", "0.5187964", "0.5173235", "0.51279455", "0.51173383", "0.51127553", "0.5086635", "0.5080863", "0.5059985", "0.5045985", "0.5031221", "0.4978235...
0.88889706
0
Returns a new object of class 'Remote Event Identifier'.
RemoteEventIdentifier createRemoteEventIdentifier();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "RemoteEvent createRemoteEvent();", "RemoteActuatorIdentifier createRemoteActuatorIdentifier();", "Event createEvent();", "Event createEvent();", "public String getEventID(){\n return eventID;\n }", "private IEvent createEvent() throws RodinDBException {\n\t\tfinal IMachineRoot mch = createMachi...
[ "0.7419093", "0.62671095", "0.60538095", "0.60538095", "0.59436774", "0.59028256", "0.5846823", "0.5787171", "0.57545763", "0.5742384", "0.5737808", "0.57161874", "0.57074517", "0.56862867", "0.56813735", "0.5585559", "0.5524324", "0.5462852", "0.54507864", "0.5433127", "0.54...
0.8587766
0
Returns a new object of class 'Remote Actuator Identifier'.
RemoteActuatorIdentifier createRemoteActuatorIdentifier();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "RemoteActuator createRemoteActuator();", "DeviceActuator createDeviceActuator();", "RemoteEventIdentifier createRemoteEventIdentifier();", "Actuator createActuator();", "ExternalActuator createExternalActuator();", "public String getInstanceIdentifier();", "I getIdentifier();", "public SocketRemoteId...
[ "0.72575843", "0.63817906", "0.63307047", "0.63204837", "0.6265953", "0.5805625", "0.5598138", "0.55865216", "0.5572366", "0.5556795", "0.5551303", "0.549237", "0.549237", "0.5482514", "0.5480702", "0.5474075", "0.5405358", "0.5405358", "0.5405358", "0.5405358", "0.5405358", ...
0.85985976
0
Returns the package supported by this factory.
CommunicationsprogramsPackage getCommunicationsprogramsPackage();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "PackageType getRequiredPackage();", "public PackageNode getPackage();", "java.lang.String getPackage();", "public String getPackageName();", "public String getPackageName() {\n return pkg;\n }", "String getPackageName();", "public DsByteString getPackage() {\n return m_strPackage;\n }", ...
[ "0.7031596", "0.6824025", "0.6818806", "0.6752645", "0.67181015", "0.6704875", "0.6698022", "0.6678774", "0.6635858", "0.6556546", "0.65183675", "0.6501405", "0.6496429", "0.6481852", "0.6376274", "0.63505894", "0.6338929", "0.63388515", "0.6327788", "0.6314242", "0.63126606"...
0.57273763
77
Back for exit App
@Override public void onBackPressed() { if (doubleBackToExitPressedOnce) { super.onBackPressed(); return; } this.doubleBackToExitPressedOnce = true; Toast.makeText(getApplicationContext(), "Tap again to exit",Toast.LENGTH_SHORT).show(); new Handler().postDelayed(new Runnable() { @Override public void run() { doubleBackToExitPressedOnce=false; } }, 2000); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void onBackPressed() {\n\t\texitApplication().onClick(null);\n\t\tsuper.onBackPressed();\n\t}", "public void Exit() {\r\n \tsuper.onBackPressed();\r\n }", "@Override\n public void onBackPressed() {\n confirmExit();\n }", "protected void goBack() {\r\n\t\tfinish();\r\n\t...
[ "0.8374229", "0.82646495", "0.8246128", "0.80518204", "0.7946112", "0.7946112", "0.79370725", "0.7930874", "0.7907806", "0.78855944", "0.78795964", "0.78557694", "0.7828119", "0.78043985", "0.77998537", "0.7766038", "0.7756506", "0.7756506", "0.77541023", "0.7747899", "0.7742...
0.0
-1
TODO : Make it a utility ?!
protected CharSequence renderPage(final Class<? extends Page> pageClass, PageParameters parameters) { final RenderPageRequestHandler handler = new RenderPageRequestHandler(new PageProvider( pageClass, parameters), RenderPageRequestHandler.RedirectPolicy.NEVER_REDIRECT); final PageRenderer pageRenderer = getApplication().getPageRendererProvider().get(handler); RequestCycle originalRequestCycle = getRequestCycle(); BufferedWebResponse tempResponse = new BufferedWebResponse(null); RequestCycleContext requestCycleContext = new RequestCycleContext(originalRequestCycle.getRequest(), tempResponse, getApplication().getRootRequestMapper(), getApplication().getExceptionMapperProvider().get()); RequestCycle tempRequestCycle = new RequestCycle(requestCycleContext); final Response oldResponse = originalRequestCycle.getResponse(); try { originalRequestCycle.setResponse(tempResponse); pageRenderer.respond(tempRequestCycle); } finally { originalRequestCycle.setResponse(oldResponse); } return tempResponse.getText(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Util() { }", "String dibujar();", "private void strin() {\n\n\t}", "private FormatUtilities() {}", "String processing();", "public interface CommonUtils {\n\tpublic static String getPrintStackTrace(Exception e){\n\t\t//StringWriter writes upon the string\n\t\tStringWriter sw = new StringWriter();...
[ "0.51577705", "0.50793207", "0.50467706", "0.4987641", "0.490394", "0.47719237", "0.4769141", "0.4769141", "0.47549304", "0.4728651", "0.46874556", "0.46717635", "0.46717635", "0.46590647", "0.46363977", "0.4628911", "0.4628911", "0.4628911", "0.4628911", "0.462853", "0.46082...
0.0
-1
com.blezede.compressor Time: 2019/3/27 11:21 Description:
public interface InputStreamProvider { InputStream open() throws IOException; String getPath(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void Compress() {\n\t\t\n\t}", "@Override\n\tpublic void Decompress() {\n\t\t\n\t}", "private StandardDeCompressors() {}", "private CompressionTools() {}", "private ZipCompressor(){}", "Decompress() {\r\n // this.destinationLocation = null ; //destinationLocation;\r\n ...
[ "0.69673014", "0.6869527", "0.6773041", "0.65315354", "0.65271854", "0.65107673", "0.6282121", "0.6133188", "0.6065542", "0.60562444", "0.6039521", "0.6009374", "0.59468746", "0.59253514", "0.58763665", "0.58698905", "0.5858971", "0.5786858", "0.57584196", "0.57069254", "0.55...
0.0
-1
Add a schema location attribute to the root node of the XML fragment
public void addSchemaLocation(String namespaceUri, String localPart, String prefix, String value) { // Cursor to traverse the XML fragment document XmlCursor cursor = this.missiveDocument.newCursor(); // Find the start node of the fragment document while (cursor.hasNextToken()) { // Check if we are at the beginning of the document if (cursor.isStart()) { // Move to the first token cursor.toNextToken(); // Insert schema location attribute cursor.insertAttributeWithValue(new QName(namespaceUri, localPart, prefix), value); // Exit the loop break; } else { // Move to next token cursor.toNextToken(); } } // Dispose cursor cursor.dispose(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setSchemaLocation(String schemaLocation) {\n\t\t\r\n\t}", "public String getSchemaLocation();", "public String getSchemaLocation() {\r\n return schemaLocation;\r\n }", "public String getSchemaLocation() {\r\n\t\treturn mSchemaLocation;\r\n\t}", "public String getSchemaLocation(String ...
[ "0.6381799", "0.6075383", "0.6011766", "0.59468985", "0.5883884", "0.5556746", "0.5556746", "0.5512658", "0.5444688", "0.5290607", "0.5286065", "0.5228954", "0.52091736", "0.5204474", "0.51165324", "0.50857985", "0.5052677", "0.50419307", "0.5031585", "0.4956352", "0.4934031"...
0.7032908
0
Build the missive envelope
@Override public void build() { // Create the missive this.createMissive(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory, net.wit.webservice.TerminalServiceXmlServiceStub.QqCharge param, boolean optimizeContent, javax.xml.namespace.QName methodQName)\n throws org.apache.axis2.AxisFault{\n\n ...
[ "0.59053373", "0.58177215", "0.5689266", "0.56824607", "0.5644711", "0.56068134", "0.56031233", "0.5589249", "0.558095", "0.5552434", "0.5525895", "0.5511553", "0.54762506", "0.54241526", "0.5409746", "0.53911805", "0.53888583", "0.53866506", "0.5363708", "0.53396106", "0.533...
0.57899135
2
Get the expiry of the message of the missive document
public Calendar getMessageExpiry() { // Check if the message expiry has been defined if (this.messageHeader.isSetMsgExpiry()) { return this.messageHeader.getMsgExpiry(); } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getExpiry();", "public Integer getExpiry() {\n return expiry;\n }", "String getExpiry();", "public int getExpiry()\n {\n return expiry;\n }", "String getSpecifiedExpiry();", "public long getExpiry() {\n return this.expiry;\n }", "long getExpiration();", "pu...
[ "0.7276713", "0.7105504", "0.7074713", "0.70211864", "0.7018479", "0.68878853", "0.6777324", "0.6599208", "0.65818805", "0.6570849", "0.64357036", "0.64306813", "0.63903105", "0.6358979", "0.63519734", "0.6323073", "0.63208693", "0.630087", "0.6290585", "0.62625784", "0.62488...
0.711927
1
Get the missive document message ID
public String getMessageId() { // Get the message ID return this.messageHeader.getMsgId(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getDocumentId();", "long getMessageId();", "long getMessageId();", "Object getMessageId();", "int getMessageId();", "long getMessageID();", "long getMessageID();", "public Object getMessageId()\n {\n return getUnderlyingId(true);\n }", "org.apache.xmlbeans.XmlLong xget...
[ "0.7248262", "0.7154172", "0.7154172", "0.7095382", "0.6994619", "0.69836473", "0.69836473", "0.69563925", "0.6852622", "0.6849645", "0.6774136", "0.67309827", "0.667886", "0.6674033", "0.6672146", "0.6671273", "0.6643225", "0.6631225", "0.6612989", "0.6590586", "0.6583939", ...
0.63906616
26
Get the missive document message version
public String getMessageVersion() { // Get the missive document message version return this.message.getVersion(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getMissiveVersion() {\n\n // Get the missive document version\n return this.missive.getVersion();\n }", "String getEmptyVersion();", "public FullVersion MprisVersion();", "java.lang.String getVersion();", "java.lang.String getVersion();", "java.lang.String getVersion();", ...
[ "0.77826995", "0.66625804", "0.6547011", "0.6476004", "0.6476004", "0.6476004", "0.6476004", "0.6476004", "0.6476004", "0.6476004", "0.6476004", "0.6435526", "0.6428847", "0.64244545", "0.63859445", "0.63859445", "0.63859445", "0.63859445", "0.6385091", "0.6368882", "0.630795...
0.8005574
0
Get the ID of the missive document
public String getMissiveId() { // Get the missive ID return this.sepamailMissive001.getMsvId(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getDocumentId();", "long getNoId();", "public Object getObjectId() {\n\t\treturn null;\n\t}", "public String getId() {\n\t\treturn docid;\n\t}", "public String getDocumentId() {\n return documentId;\n }", "public java.lang.String getDocumentId() {\n return documentId;\n }",...
[ "0.7740692", "0.7004028", "0.6813039", "0.6800833", "0.6717742", "0.6617809", "0.6617809", "0.65935045", "0.6591596", "0.65889466", "0.65701777", "0.6539359", "0.6539359", "0.6533737", "0.6528421", "0.65248203", "0.6505219", "0.6500712", "0.6471773", "0.64552623", "0.64097583...
0.0
-1
Get the missive document order
public BigInteger getMissiveOrder() { // Get the missive order return this.sepamailMissive001.getMsvOrd(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getOrder() {\n\t\treturn 0;\n\t}", "@Override\n\tpublic int getOrder() {\n\t\treturn Ordered.HIGHEST_PRECEDENCE + 10000;\n\t}", "@Override\r\n\tpublic int getOrder() {\n\t\treturn 0;\r\n\t}", "public Integer getOrder();", "public int getOrder();", "@Override\n public int getOrder() {\n ...
[ "0.67790633", "0.6765033", "0.6704919", "0.645823", "0.6429392", "0.6395742", "0.6284163", "0.62539417", "0.62442356", "0.62121373", "0.6211141", "0.61949205", "0.6125911", "0.6125911", "0.6106982", "0.60840434", "0.60552174", "0.60503227", "0.60212845", "0.60212845", "0.6020...
0.6048835
18
Get the missive document priority
public PriorityCode.Enum getMissivePriority() { // Get the missive document priority return this.sepamailMissive001.getMsvPri(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic int getPriority() throws NotesApiException {\n\t\treturn 0;\r\n\t}", "public int getPriority();", "public int getPriority();", "int getPriority();", "int getPriority();", "int getPriority();", "int getPriority();", "int getPriority();", "int getPriority();", "int getPriority...
[ "0.73621523", "0.7235964", "0.7235964", "0.71908784", "0.71908784", "0.71908784", "0.71908784", "0.71908784", "0.71908784", "0.71908784", "0.71908784", "0.71691483", "0.7085392", "0.7085392", "0.7085392", "0.702451", "0.69994223", "0.699404", "0.6971147", "0.6906268", "0.6882...
0.66962725
32
Get the missive document type
public MissiveType.Enum getMissiveType() { // Get the missive document type return this.sepamailMissive001.getMsvTyp(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getDocumentType();", "Diadoc.Api.Proto.Recognition.RecognitionProtos.RecognizedDocumentType getDocumentType();", "public String getDocumentType() {\n return this.documentType;\n }", "public String getDocumentType() {\n return documentType;\n }", "public java.lang.String ge...
[ "0.78648186", "0.7573468", "0.7300351", "0.7298878", "0.72574055", "0.72050333", "0.7196572", "0.7127343", "0.69948894", "0.6880464", "0.6851857", "0.68505335", "0.6838841", "0.68253994", "0.68253994", "0.6814914", "0.6659168", "0.6596719", "0.65940696", "0.65940696", "0.6564...
0.6334507
66
Get the missive document version
public String getMissiveVersion() { // Get the missive document version return this.missive.getVersion(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Long getVersion();", "public Version getVersion();", "String getEmptyVersion();", "long getVersion();", "long getVersion();", "long getVersion();", "long getVersion();", "public FullVersion MprisVersion();", "Version getVersion();", "Version getVersion();", "Version getVersion();", "Version g...
[ "0.70762", "0.7061196", "0.7059965", "0.704748", "0.704748", "0.704748", "0.704748", "0.70469815", "0.6990065", "0.6990065", "0.6990065", "0.6990065", "0.6960041", "0.6960041", "0.6960041", "0.6960041", "0.6960041", "0.6960041", "0.6960041", "0.6960041", "0.69405675", "0.69...
0.8216174
0
Get the recipient of the missive document
public ReceiverIdentifier getRecipient() { // Get the recipient of the missive document return this.missiveHeader.getRcv(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getRecipient()\n {\n return recipient;\n }", "public Object getRecipient() {\n\t\treturn this.recipient;\n\t}", "public Recipient getRecipient() {\n return recipient;\n }", "protected String getRecipient() {\n return parameterService.getParameterValueAsString(Award...
[ "0.7212188", "0.7139107", "0.71270746", "0.7125202", "0.70144516", "0.69702786", "0.66344625", "0.65727466", "0.65584356", "0.6495981", "0.64719856", "0.6416692", "0.6239767", "0.6183687", "0.6182196", "0.60188985", "0.5997376", "0.592145", "0.5837119", "0.58346665", "0.58088...
0.7357747
0
Get the schema location of a missive document
public String getSchemaLocation(String namespaceUri, String localPart) { String schemaLocation = null; // Cursor to traverse the XML fragment document XmlCursor cursor = this.missiveDocument.newCursor(); // Find the start node of the fragment document while (cursor.hasNextToken()) { // Check if we are at the beginning of the document if (cursor.isStart()) { // Get the value of the attribute schemaLocation = cursor.getAttributeText(new QName("http://www.w3.org/2001/XMLSchema-instance", "schemaLocation")); // Exit the loop break; } else { // Move to next token cursor.toNextToken(); } } // Dispose cursor cursor.dispose(); // Return the schema location value return schemaLocation; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getSchemaLocation();", "public String getSchemaLocation() {\r\n\t\treturn mSchemaLocation;\r\n\t}", "public String getSchemaLocation() {\r\n return schemaLocation;\r\n }", "private String getSchema(Document doc) {\n\t\tElement rootElement = doc.getRootElement();\n\t\treturn rootElemen...
[ "0.80704516", "0.7440069", "0.74351525", "0.69927037", "0.6595512", "0.6367348", "0.636065", "0.63554865", "0.6353828", "0.6353828", "0.6333258", "0.6305243", "0.6240731", "0.6223353", "0.6221188", "0.6191406", "0.61692923", "0.61394745", "0.61394745", "0.60942423", "0.608727...
0.6137109
19
Get the date and time at which the document was sent
public Calendar getSendDateTime() { // Get the date and time at which the missive document was sent return this.missiveHeader.getSndDtTm(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Date getSentAt() {\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss'Z'\");\n Date d = null;\n try {\n d = sdf.parse(creationDate);\n } catch (ParseException e) {\n e.printStackTrace();\n }\n return d;\n }", "public Dat...
[ "0.74454606", "0.697667", "0.6959467", "0.6958483", "0.6936774", "0.6936774", "0.6936774", "0.6870547", "0.6688194", "0.6675545", "0.666653", "0.6647949", "0.6593137", "0.65746", "0.6554932", "0.65370655", "0.6532051", "0.6530694", "0.65181017", "0.6515713", "0.65079594", "...
0.77368706
0
Get the sender of the missive document
public BICorIBAN getSender() { // Get the sender of the missive document return this.missiveHeader.getSnd(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getSender();", "java.lang.String getSender();", "java.lang.String getSender();", "java.lang.String getSender();", "java.lang.String getSender();", "java.lang.String getSender();", "public String getSender ()\r\n\t{\r\n\t\treturn sender;\r\n\t}", "public String getSender() {\n ...
[ "0.7076113", "0.7076113", "0.7076113", "0.7076113", "0.7076113", "0.7076113", "0.6967787", "0.6859964", "0.6843782", "0.68268347", "0.6812613", "0.677939", "0.6778937", "0.67511535", "0.6662073", "0.664041", "0.66315806", "0.65459335", "0.65182453", "0.6510219", "0.64962643",...
0.77159953
0
Get the XML object which represents the missive document
public XmlObject getMissiveXmlObject() { // Get the XML object which represents the missive document return this.missiveDocument; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Document getXML() {\n\t\treturn null;\n\t}", "public Document getAsXMLDOM () {\r\n\r\n //code description\r\n\r\n return document;\r\n\r\n }", "public static Document getNamespaceNOTAwareDocument(Document inputDocument) {\r\n return bytesToXml(doc2bytes(inputDocument), false);\r\n }", ...
[ "0.7270554", "0.67527646", "0.6388944", "0.62897605", "0.6289272", "0.6271154", "0.61892986", "0.61724454", "0.6148555", "0.6071739", "0.6060042", "0.60555625", "0.60522467", "0.60221016", "0.6007134", "0.5984992", "0.5982777", "0.59371144", "0.5935252", "0.5926249", "0.59185...
0.8270994
0
Remove the message expiry date and time from the message header
public void removeMessageExpiry() { // Remove the message expiry date and time this.messageHeader.unsetMsgExpiry(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setMessageExpiry(Calendar messageExpiry) {\n\n // Check if the message expiry date and time has been specified\n if (messageExpiry != null) {\n\n // Set the message expiry date and time\n this.messageHeader.setMsgExpiry(messageExpiry);\n\n } else {\n\n ...
[ "0.61396986", "0.60723555", "0.59497535", "0.59313655", "0.5907398", "0.58772236", "0.58234745", "0.5770396", "0.57482576", "0.56836575", "0.5655432", "0.5635981", "0.56129104", "0.5601529", "0.55925053", "0.55664986", "0.55296916", "0.55240464", "0.5509351", "0.54436463", "0...
0.80301213
0
Save content to output stream
public void save(OutputStream os) throws IOException { // Write string content to output stream os.write(this.toString().getBytes()); os.flush(); os.close(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void save(OutputStream os) throws IOException;", "void generateContent(OutputStream output) throws Exception;", "public void save(DataOutput stream)\n throws IOException\n {\n stream.write(getBytes());\n }", "private void writeContent(OutputStream os) throws Exception {...
[ "0.7062917", "0.69989836", "0.6779612", "0.6663251", "0.66136616", "0.650912", "0.646868", "0.64639395", "0.63673383", "0.6263287", "0.62219936", "0.6187033", "0.61617917", "0.615297", "0.61422056", "0.6140434", "0.61220855", "0.60982966", "0.6037643", "0.602977", "0.6024139"...
0.64367676
8
Set the expiry date and time of the message of the missive document
public void setMessageExpiry(Calendar messageExpiry) { // Check if the message expiry date and time has been specified if (messageExpiry != null) { // Set the message expiry date and time this.messageHeader.setMsgExpiry(messageExpiry); } else { // Remove the message expiry specification from the header this.messageHeader.unsetMsgExpiry(); } // Build the missive document this.build(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setExpiry(int expiry)\n {\n this.expiry = expiry;\n }", "@Override\n public void setExpiration( Date arg0)\n {\n \n }", "public void setDateExpiry( Timestamp tDateExpiry )\r\n {\r\n _tDateExpiry = tDateExpiry;\r\n }", "public void setExpiryTime(long expir...
[ "0.6958713", "0.6918337", "0.6779639", "0.66028345", "0.6594405", "0.6548091", "0.6542042", "0.6512043", "0.64805394", "0.6471492", "0.6444369", "0.6347938", "0.6340277", "0.62603134", "0.6249444", "0.62492347", "0.6244733", "0.62189794", "0.61809766", "0.6163758", "0.6157038...
0.6714511
3
Set the ID of the message of the missive document
public void setMessageId(String messageId) { // Set the ID of the message this.messageHeader.setMsgId(messageId); // Build the missive document this.build(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setMessageID(long messageID);", "public void setId (long id)\r\n {\r\n _id = id;\r\n }", "public void setId(long id) {\n\t\t_tempNoTiceShipMessage.setId(id);\n\t}", "public Builder setMsgId(long value) {\n\n msgId_ = value;\n onChanged();\n return this;\n }", "void xsetM...
[ "0.7215808", "0.66068137", "0.6544525", "0.65390676", "0.644767", "0.6418959", "0.6407926", "0.64042485", "0.64036745", "0.6392314", "0.63827586", "0.6380352", "0.63778883", "0.6377423", "0.63745576", "0.6351702", "0.6351702", "0.6335288", "0.63108855", "0.63048786", "0.63009...
0.63786376
12
Set the version of the message of the missive document
public void setMessageVersion(String version) { // Set the message version this.message.setVersion(version); // Build the missive document this.build(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setMissiveVersion(String version) {\n\n // Set the missive document version\n this.missive.setVersion(version);\n\n // Build the missive document\n this.build();\n }", "void setVersion(long version);", "void setVersion(String version);", "void setVersion(String vers...
[ "0.72551703", "0.68045694", "0.6663246", "0.6663246", "0.6583517", "0.653416", "0.6328434", "0.631265", "0.6276132", "0.6272137", "0.62544835", "0.6229992", "0.6213553", "0.6167296", "0.6161447", "0.6161447", "0.6153077", "0.61109173", "0.610051", "0.610051", "0.6096025", "...
0.78127646
0
Set the ID of the missive document
public void setMissiveId(String missiveId) { // Set the ID of the missive document this.sepamailMissive001.setMsvId(missiveId); // Build the missive document this.build(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setId (long id)\r\n {\r\n _id = id;\r\n }", "public void setId(long id) {\n id_ = id;\n }", "public void setId(long id);", "public void setId(long id);", "public void setId(long id);", "public void setId(long id);", "public void setId(long id) { this.id = id; }", "public ...
[ "0.7274504", "0.7189584", "0.7165599", "0.7165599", "0.7165599", "0.7165599", "0.7123835", "0.7123835", "0.7089725", "0.70192826", "0.701119", "0.6992754", "0.69889367", "0.69889367", "0.69749284", "0.6944714", "0.6941322", "0.6941322", "0.6939613", "0.6933235", "0.6933235", ...
0.0
-1
Set the order of the missive document
public void setMissiveOrder(BigInteger missiveOrder) { // Set the order of the missive this.sepamailMissive001.setMsvOrd(missiveOrder); // Build the missive document this.build(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setOrder(int order){\r\n\t\t\tthis.order = order;\r\n\t\t}", "public void setOrder(int order) {\n this.order = order;\n }", "public void setOrder(int order) {\n this.order = order;\n }", "public void setOrder(Integer order) {\n this.order = order;\n }", "public void setOrder(in...
[ "0.65621185", "0.6510118", "0.6510118", "0.6485811", "0.64682865", "0.6397134", "0.6348682", "0.6348682", "0.63323295", "0.6321978", "0.6231232", "0.6195299", "0.61815417", "0.61387104", "0.6028624", "0.60258514", "0.60255504", "0.6018268", "0.60182506", "0.6015613", "0.59370...
0.66358197
0
Set the priority of the missive document
public void setMissivePriority(PriorityCode.Enum priority) { // Set the priority of the missive document this.sepamailMissive001.setMsvPri(priority); // Build the missive document this.build(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void setPriority(int arg0) throws NotesApiException {\n\r\n\t}", "@Override\r\n\tpublic int setPriority(int priority) {\n\t\treturn 0;\r\n\t}", "void setPriority(int priority);", "void setPriority(int priority);", "public void setPriority(Priority priority);", "public void setPriori...
[ "0.74713135", "0.7152152", "0.713664", "0.713664", "0.70473313", "0.6799891", "0.676928", "0.67266005", "0.66384465", "0.66384465", "0.65570563", "0.6543867", "0.6539579", "0.6517441", "0.64751005", "0.64204955", "0.6419997", "0.63952166", "0.6371848", "0.6351095", "0.6344899...
0.6988766
5
Set the type of the missive document
public void setMissiveType(MissiveType.Enum type) { // Set the type of the missive document this.sepamailMissive001.setMsvTyp(type); // Build the missive document this.build(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setDocumentType (String DocumentType);", "public void setDocumentType(String documentType);", "public void setType(String type);", "public void setType(String type);", "public void setType(String type);", "public com.opentext.bn.converters.avro.entity.DocumentEvent.Builder setDocumentType(jav...
[ "0.7569385", "0.75081146", "0.6714754", "0.6714754", "0.6714754", "0.66927505", "0.66724384", "0.65804887", "0.65800214", "0.653742", "0.6509839", "0.6509839", "0.6462024", "0.6460633", "0.6411201", "0.63905376", "0.636277", "0.63573", "0.63288635", "0.63222396", "0.6321833",...
0.67156214
2
Set the version of the missive document
public void setMissiveVersion(String version) { // Set the missive document version this.missive.setVersion(version); // Build the missive document this.build(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setVersion(long version);", "void setVersion(String version);", "void setVersion(String version);", "public void setVersion(String version);", "@Override\r\n\tpublic void setVersion(int version) {\n\r\n\t}", "public void setVersion(final Long version);", "SchemaReference setVersion(String version)...
[ "0.7639097", "0.7357892", "0.7357892", "0.72589654", "0.7146616", "0.70271647", "0.69306874", "0.6869996", "0.6846645", "0.6804841", "0.67518485", "0.6736531", "0.672395", "0.67211604", "0.67019004", "0.6696045", "0.6696045", "0.66685", "0.66555613", "0.66431224", "0.66431224...
0.76789725
0
Set the recipient of the missive document
public void setRecipient(ReceiverIdentifier recipient) { // Set the recipient of the missive document this.missiveHeader.setRcv(recipient); // Build the missive document this.build(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void recipient(String recipient) {\n }", "public void setRecipient(String recipient)\n {\n this.recipient = recipient;\n }", "public void setRecipient(Object recipient) {\n\t\tthis.recipient = recipient;\n\t}", "public void setRecipient(String recipient){\n this.r...
[ "0.70345384", "0.6985898", "0.6845516", "0.6843902", "0.67190343", "0.64694303", "0.6369364", "0.63144916", "0.617629", "0.6048419", "0.59974813", "0.598187", "0.5948575", "0.59280765", "0.5912288", "0.5911535", "0.5881783", "0.5846073", "0.5805601", "0.5750044", "0.57378405"...
0.7362267
0
Set the date and time at which the missive document was sent
public void setSendDateTime(Calendar sendDateTime) { // Set the date and time at which the missive document was sent this.missiveHeader.setSndDtTm(sendDateTime); // Build the missive document this.build(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setDateDoc (Timestamp DateDoc);", "public void setDateDoc (Timestamp DateDoc);", "public void setDateDoc (Timestamp DateDoc);", "public void setSentTime(Date v) \n {\n \n if (!ObjectUtils.equals(this.sentTime, v))\n {\n this.sentTime = v;\n ...
[ "0.69877416", "0.69877416", "0.69877416", "0.69548225", "0.6627221", "0.6530978", "0.6488115", "0.6415682", "0.63580173", "0.63402814", "0.63097906", "0.6305226", "0.6305226", "0.6303737", "0.62738574", "0.6230298", "0.6222327", "0.6201031", "0.61960065", "0.61880434", "0.615...
0.6479931
7
Set the sender of the missive document
public void setSender(BICorIBAN sender) { // Set the sender of the missive document this.missiveHeader.setSnd(sender); // Build the missive this.build(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setSender(String sender){\n this.sender = sender;\n }", "public void setSender(String sender) {\n this.sender = sender;\n }", "public void setSender(String sender) {\n Sender = sender;\n }", "public void setSender( Term sender ) {\n this.sender = sender;\n ...
[ "0.7240499", "0.7218063", "0.71808285", "0.7099732", "0.6864682", "0.66397035", "0.63778883", "0.63287127", "0.63033575", "0.628238", "0.6257964", "0.62215656", "0.61882466", "0.6185589", "0.60939574", "0.6080421", "0.6080421", "0.6080421", "0.6080421", "0.6080421", "0.608042...
0.7823431
0
String representation of the XML document
@Override public String toString() { // Add schema location attribute this.addSchemaLocation("http://www.w3.org/2001/XMLSchema-instance", "schemaLocation", "xsi", "http://xsd.sepamail.eu/1206/ xsd/sepamail_missive.xsd "); // XML options instance XmlOptions options = new XmlOptions(); // Set the properties of the XML options options.setSavePrettyPrint(); options.setSaveSuggestedPrefixes(this.suggestedPrefixes); options.setUseCDataBookmarks(); try { // Build XML document using the constructed XML object SAXBuilder sxb = new SAXBuilder(); Document xmlDocument = sxb.build(new InputStreamReader(new ByteArrayInputStream(missiveDocument.xmlText(options).getBytes()), "UTF-8")); // Pretty print the XML document XMLOutputter xmlOutputter = new XMLOutputter(Format.getPrettyFormat()); ByteArrayOutputStream output = new ByteArrayOutputStream(); xmlOutputter.output(xmlDocument, output); // String with XML content return new String(output.toByteArray()); } catch ( JDOMException | IOException ex) { // TODO: error logging System.out.println(ex.getMessage()); } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String toString() {\n\t\tByteArrayOutputStream bos = new ByteArrayOutputStream();\n\n\t\tDocument document = XMLUtils.newDocument();\n\t\tdocument.appendChild(toXML(document));\n\t\tXMLUtils.write(bos, document);\n\n\t\treturn bos.toString();\n\t}", "public final String toString() {\n StringBuffer ...
[ "0.82744783", "0.81683934", "0.7612437", "0.7504333", "0.74202573", "0.74122006", "0.73342174", "0.7317531", "0.7285525", "0.7271571", "0.7213913", "0.7213913", "0.7213913", "0.7182998", "0.7182998", "0.71739167", "0.71506554", "0.70818603", "0.70724034", "0.7054743", "0.7054...
0.72637624
10
Check if the missive document is valid
@Override public boolean validate() throws SmogException { // List of validation messages ArrayList<XmlError> validationMessages = new ArrayList<>(); // Validate the missive document boolean isValid = this.missiveDocument.validate(new XmlOptions().setErrorListener(validationMessages)); // Check if the missive document is valid if (isValid) { return true; } else { // Validation message String validationMessage = ""; // Iterator for validation messages Iterator<XmlError> iterator = validationMessages.iterator(); // Build the complete error message while(iterator.hasNext()) { // Add validation message separtor if (!validationMessage.equals("")) { validationMessage += "\n"; } // Concatenate validation messages validationMessage += iterator.next().getMessage(); } throw new SmogException(validationMessage); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void validateDocument(Document doc) throws ConverterException;", "public boolean isValid() {\n //primary variables must have proper values to identify the Book with\n if (this.author == null || this.title == null || dop == 0) {\n return false;\n }\n return true;\n }", ...
[ "0.6810199", "0.6362691", "0.63417536", "0.62680006", "0.6220634", "0.61872697", "0.61872697", "0.61872697", "0.61796516", "0.61620414", "0.61620414", "0.61620414", "0.6142381", "0.61286336", "0.61286336", "0.61286336", "0.6084635", "0.6063911", "0.6063911", "0.6044068", "0.6...
0.69374806
0
Assemble the missive document using its components
protected void assembleDocument() { // Create the missive this.createMissive(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void buildDocument() {\n/* 220 */ setDocument(getDocumentLoader().getDocument(getClass()), \"text/html\", \"ISO-8859-1\");\n/* */ \n/* 222 */ syncAccessMethods();\n/* */ }", "public void buildDocument() {\n/* 248 */ setDocument(getDocumentLoader().getDocument(getClass()), \"text/...
[ "0.64154035", "0.63775486", "0.63766485", "0.6001162", "0.59627515", "0.5865334", "0.5865334", "0.584677", "0.5742612", "0.5687425", "0.56719166", "0.5653562", "0.5640868", "0.5635658", "0.5626483", "0.5625393", "0.5599489", "0.5572548", "0.55632037", "0.5529154", "0.5527413"...
0.8193076
0
This uses GATE and NLP to extract information for SemReg ontology.
public EntityAnnotator_V2(){ init(); //TODO modify reg_v2.xml to deal with paragraphs. at the moment, it only works if this file has only regulations. }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void GenSetAnnotation(List<String> symb) throws Exception {\t\t\n\t\tString module = \"GS_\"+((int)(Math.random()*10000));\n\t\tSystem.out.println(\"Your module name is: \"+module);\n\t\tString workspace = \"results/\";\n\n\t\tFile dossier = new File(workspace);\n\t\tif(!dossier.exists()){\n\t\t\tdossier.mk...
[ "0.5702146", "0.5622167", "0.56108695", "0.5485104", "0.53738564", "0.53432447", "0.52738744", "0.5238662", "0.5228124", "0.5218798", "0.5211893", "0.5191205", "0.5190802", "0.51768744", "0.51665044", "0.516232", "0.51501644", "0.5135403", "0.5128787", "0.51264405", "0.511721...
0.47531128
70
Initialisation process five processes which are commented below.
private void init() { initGate(); // 1. initialize Gate library loadAnnie(); // 2. load Annie plugin addPR(); // 3. initialise ANNIE setCorpus(); // 4. set corpus and extract with files. execute(); // 5. run the PR through the corpus in the ANNIE Out.prln("annotation completed ...."); MyWriter.write(corpus, outCorpusFile); Out.prln("*** ENTITY ANNOTATION COMPLETED *** "); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void startProcesses(double numProcessesRequired) {\r\n \t\tdouble numProcesses = pool.size() +\r\n \t\t\t\tpoolConfig.startupLimit - startupThrotle.availablePermits();\r\n \r\n \t\twhile (numProcesses < numProcessesRequired\r\n \t\t\t\t&& startupThrotle.availablePermits() > 0) {\r\n \t\t\tnumProcesses += 1...
[ "0.63814795", "0.6349063", "0.602063", "0.601375", "0.5996467", "0.5996467", "0.5996467", "0.5996467", "0.5996467", "0.59433913", "0.59189314", "0.59189314", "0.58333385", "0.5713571", "0.57011974", "0.5688397", "0.5637736", "0.56284076", "0.5608597", "0.5604149", "0.5597242"...
0.0
-1
Initialises the GATE library
private void initGate() { if (!Gate.isInitialised() && Gate.getGateHome() == null){ Print.prln("Initialising GATE..."); Gate.setGateHome(new File(Settings.GATE_HOME)); try { Gate.init(); } catch (GateException ex) { ex.printStackTrace(); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void init(graph g) {\n\t\tthis.GA = g;\n\t}", "public static Gng init() {\n return new Gng();\n }", "private void initGP() {\n log.info(\"Initializing GP\");\n geneticProgram.addPopulationObserver(this);\n geneticProgram.initialize();\n frontRunner = ge...
[ "0.66544807", "0.6609461", "0.6551953", "0.65402865", "0.620945", "0.6204086", "0.61031526", "0.60525626", "0.60326445", "0.60326445", "0.60326445", "0.60326445", "0.60326445", "0.60326445", "0.60326445", "0.60326445", "0.60326445", "0.60326445", "0.60326445", "0.60326445", "...
0.70251364
0
Initialise the ANNIE system. This is where we add all the required processing resources e.g. jape, gazetteer etc.
private void addPR(){ try { Print.prln("Initialising ANNIE..."); // create a serial analyser controller to run ANNIE with annieController = (SerialAnalyserController) Factory.createResource( "gate.creole.SerialAnalyserController", Factory.newFeatureMap(), Factory.newFeatureMap(), "ANNIE_" + Gate.genSym()); FeatureMap features = Factory.newFeatureMap(); // use default parameters // adding Annie PRs : i. document reset features.clear(); ProcessingResource documentReset = (ProcessingResource) Factory.createResource("gate.creole.annotdelete.AnnotationDeletePR", features); annieController.add(documentReset); // adding Annie PR : ii. english tokeniser features.clear(); ProcessingResource englishTokeniser = (ProcessingResource) Factory.createResource("gate.creole.tokeniser.DefaultTokeniser", features); annieController.add(englishTokeniser); // ading inhouse built PR: iii.. gazetteer features.clear(); features.put("listsURL", Converter.getURL(gazetteer)); ProcessingResource myAnnieGaz = (ProcessingResource) Factory.createResource("gate.creole.gazetteer.DefaultGazetteer", features); annieController.add(myAnnieGaz); // adding Annie PR : iv. fake sentence splitter features.clear(); ProcessingResource fakeSentenceSplitter = (ProcessingResource) Factory.createResource("gate.clone.ql.FakeSentenceSplitter", features); annieController.add(fakeSentenceSplitter); //. ading inhouse built PR: v. jape grammar 1 features.clear(); features.put("grammarURL", Converter.getURL(jape1)); ProcessingResource myJape1 = (ProcessingResource) Factory.createResource("gate.creole.Transducer", features); annieController.add(myJape1); // adding Annie PRs : vi.. regex sentence splitter features.clear(); ProcessingResource regexSentenceSplitter = (ProcessingResource) Factory.createResource("gate.creole.splitter.RegexSentenceSplitter", features); annieController.add(regexSentenceSplitter); // adding Annie PRs :vii. pos tagger features.clear(); ProcessingResource posTagger = (ProcessingResource) Factory.createResource("gate.creole.POSTagger", features); annieController.add(posTagger); // ading inhouse built PR: viii. jape grammar 2 features.clear(); features.put("grammarURL", Converter.getURL(jape2)); ProcessingResource myJape2 = (ProcessingResource) Factory.createResource("gate.creole.Transducer", features); annieController.add(myJape2); Print.prln("...PR loaded"); features.clear(); } catch (ResourceInstantiationException ex) { Out.prln(ex); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void init() {\n initGate(); // 1. initialize Gate library\n loadAnnie(); // 2. load Annie plugin\n addPR(); // 3. initialise ANNIE\n setCorpus(); // 4. set corpus and extract with files.\n execute(); // 5. run the PR through the corpus in the ANNIE\n Out.prln(\"annot...
[ "0.77176887", "0.64670473", "0.64668787", "0.6457831", "0.64452446", "0.6427589", "0.6410932", "0.6351274", "0.6299106", "0.62689984", "0.6249983", "0.62495345", "0.6212544", "0.6204637", "0.6193825", "0.61636484", "0.61465883", "0.6143194", "0.612524", "0.61135036", "0.61072...
0.64719385
1
addPR() sets the corpus adds the documents
private void setCorpus(){ URL u = Converter.getURL(docName); FeatureMap params = Factory.newFeatureMap(); params.put("sourceUrl", u); params.put("markupAware", true); params.put("preserveOriginalContent", false); params.put("collectRepositioningInfo", false); params.put("encoding","windows-1252"); Print.prln("Creating doc for " + u); Document doc = null; try { corpus = Factory.newCorpus(""); doc = (Document) Factory.createResource("gate.corpora.DocumentImpl", params); } catch (ResourceInstantiationException ex) { ex.printStackTrace(); } corpus.add(doc); annieController.setCorpus(corpus); params.clear(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void add(PhotonDoc doc);", "public abstract Iterable<String> addDocument(TextDocument doc) throws IOException;", "public void add(Paragraph p) throws DocumentException\n {\n rpt.add(p);\n }", "public static void main(String[] args) throws Exception \n\t{\n\t\tList<String> stopWords = new ArrayLis...
[ "0.6053896", "0.59614563", "0.59247047", "0.5613148", "0.5601458", "0.55627245", "0.55427116", "0.55352306", "0.55217344", "0.5521316", "0.5414541", "0.5389681", "0.5383895", "0.5340768", "0.5330426", "0.5324764", "0.5264942", "0.5240572", "0.52307975", "0.5229072", "0.522159...
0.67944425
0
Run ANNIE over the corpus
private void execute() { Print.pr("Running ANNIE..."); try { annieController.execute(); } catch (ExecutionException ex) { Out.prln(ex); } Print.prln("...ANNIE execution completed"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void init() {\n initGate(); // 1. initialize Gate library\n loadAnnie(); // 2. load Annie plugin\n addPR(); // 3. initialise ANNIE\n setCorpus(); // 4. set corpus and extract with files.\n execute(); // 5. run the PR through the corpus in the ANNIE\n Out.prln(\"annot...
[ "0.6022221", "0.58145714", "0.5573698", "0.55590564", "0.54983324", "0.5464618", "0.54241186", "0.5321989", "0.5267076", "0.52402073", "0.52378845", "0.514226", "0.5136932", "0.5090071", "0.50882345", "0.5077151", "0.50634784", "0.5052934", "0.50168306", "0.5016821", "0.50065...
0.6202162
0
Created by Lenovo on 2019/4/17.
public interface DailyV extends BaseView{ void onFail(String msg); void onSuccess(DailNewsBean dailNewsBean); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "private stendhal() {\n\t}", "private static void cajas() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "public void mo55254a() {\n }", "public void mo5...
[ "0.56733817", "0.56283367", "0.5433456", "0.5299478", "0.5275994", "0.52574986", "0.52574986", "0.52574986", "0.52574986", "0.52574986", "0.52574986", "0.52574986", "0.52517575", "0.52293235", "0.5215827", "0.5215827", "0.5212491", "0.51618654", "0.51424617", "0.514182", "0.5...
0.0
-1
needed to unpack EXPs correctly. every node is a leaf node unless otherwise stated.
protected AST_Node() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean isLeaf()\r\n\t\t{\r\n\t\t\treturn getLeftChild() == null && getRightChild() == null;\r\n\t\t}", "@Override\n\tpublic boolean IsLeaf() {\n\t\treturn true;\n\t}", "@Override\r\n\tpublic boolean isLeaf(Object node) {\r\n\t\r\n\t\treturn false;\r\n\t}", "abstract boolean isLeaf();", "private bo...
[ "0.56736434", "0.5580955", "0.5527046", "0.55133426", "0.5512919", "0.5470674", "0.54032713", "0.53936005", "0.5384767", "0.537433", "0.53447455", "0.5288299", "0.52759403", "0.5260407", "0.52485335", "0.52290523", "0.52249724", "0.52132636", "0.5202092", "0.5195092", "0.5192...
0.0
-1
/ The default message for an unknown AST node
public void PrintMe() { System.out.print("AST NODE UNKNOWN\n"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected R visitDefault(Message message) throws NebuloException {\n throw new UnsupportedMessageException(message.getClass().getName());\n }", "public NoSuitableNodeFoundException(String errorMessage) {\n\t\tsuper(errorMessage);\n\t}", "@Override\n public String visit(UnknownType n, Object arg) {\n ...
[ "0.61606574", "0.59513485", "0.5932944", "0.5893355", "0.58808196", "0.5871829", "0.5857221", "0.5820393", "0.5795704", "0.57641536", "0.5747321", "0.5738958", "0.57220936", "0.5716056", "0.5713506", "0.56920743", "0.5677899", "0.5659718", "0.5657756", "0.56230897", "0.560877...
0.7042141
0
=================== Image management API =========================
public ArrayList<Long> GetPicId (int nClassId) { ArrayList<Long> res = null; query.setclassid(nClassId); query.settype(MsgId.GET_PICID); query.setlist(null); query.setrettype(RetID.INVALID); try { scon.sendmsg(query); MessageObject result = (MessageObject) scon.getmsg(query); if (result.getrettype() == RetID.LONG_LIST) { res = result.getlist(); } } catch (IOException e) { HandleException(e, MsgId.GET_PICID); } return res; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private ImageUtils() {}", "public interface Image {\n public String getPath();\n\n public String getFormat();\n\n public String getWidth();\n\n public String getHeight();\n\n}", "public interface Image {\n /**\n * @return the image ID\n */\n String getId();\n\n /**\n * @return ...
[ "0.7065172", "0.70085937", "0.6988589", "0.6988502", "0.6988502", "0.69589835", "0.6878953", "0.68691885", "0.6858916", "0.6822963", "0.67657113", "0.6718163", "0.6647028", "0.6642816", "0.66414154", "0.65673184", "0.6516768", "0.6503093", "0.6500162", "0.64739186", "0.645755...
0.0
-1
scope: first level classification
public ArrayList<Domain> GetDomain() { ArrayList<Domain> res = null; query.settype(MsgId.GET_DOMAIN); query.setdomlist(null); query.setrettype(RetID.INVALID); try { scon.sendmsg(query); MessageObject result = (MessageObject) scon.getmsg(query); if (result.getrettype() == RetID.DOMAIN_LIST) { res = result.getdomlist(); } } catch (IOException e) { HandleException(e, MsgId.GET_DOMAIN); } return res; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static void EnterScope(){\r\n\t\tcurLevel++;\r\n\t\tScope scope = new Scope(curLevel);\r\n\t\t//scope.nextAdr = 3;\r\n\t\ttopScope.ant = scope;\r\n\t\tscope.sig = topScope; \r\n\t\ttopScope = scope;\r\n }", "String getScope();", "public abstract String\n openScope\n (\n boolean first, \n int level...
[ "0.57434285", "0.542366", "0.53477913", "0.53216547", "0.52401525", "0.52020884", "0.5155788", "0.5150815", "0.51300347", "0.51277393", "0.49663767", "0.49614003", "0.49334717", "0.49245226", "0.4917496", "0.48984763", "0.48787722", "0.48774374", "0.48768982", "0.48714072", "...
0.0
-1
================== Model tuning API ================================
public boolean SetRBFKernelParam(int nDomainId, double c, double g, int nMaxSamples) { boolean res = false; query.settype(MsgId.SET_RBFKP); query.setdomid(nDomainId); query.setc(c); query.setg(g); query.setmaxsample(nMaxSamples); query.setrettype(RetID.INVALID); try { scon.sendmsg(query); MessageObject result = (MessageObject) scon.getmsg(query); if (result.getrettype() == RetID.BOOL) { res = result.getboolval(); } } catch (IOException e) { HandleException(e, MsgId.SET_RBFKP); } return res; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void tuningInit() {\n\n }", "public void model() \n\t{\n\t\t\n\t\ttry \n\t\t{\n\t\t GRBEnv env = new GRBEnv();\n\t\t GRBModel model = new GRBModel(env, \"resources/students.lp\");\n\n\t\t model.optimize();\n\n\t\t int optimstatus = model.get(GRB.IntAttr.Status);\n\n\t...
[ "0.6928937", "0.65206164", "0.6391015", "0.6277245", "0.6265936", "0.6181883", "0.6133654", "0.60847545", "0.60295904", "0.59279156", "0.5920653", "0.5920168", "0.587573", "0.5844512", "0.5842715", "0.5825601", "0.5792207", "0.57831836", "0.5739799", "0.5721732", "0.56959593"...
0.0
-1
================== Recommendation API ==================================== return a list of picture ID (nNum pictures)
public ArrayList<ImgDisResEntry> SimilaritySearch(byte[] byteImg, int nNum, int domainId) { ArrayList<ImgDisResEntry> res = null; query.setbytes(byteImg); query.setintval(nNum); query.setlist(null); query.setdomid(domainId); query.settype(MsgId.SEARCH_SIM); query.setrettype(RetID.INVALID); try { scon.sendmsg(query); MessageObject result = (MessageObject) scon.getmsg(query); if (result.getrettype() == RetID.IMG_DIS_LIST) { res = result.imgDisList; } } catch (IOException e) { HandleException(e, MsgId.SEARCH_SIM); } return res; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ArrayList<Long> GetPicId (int nClassId)\r\n\t\t{\r\n\t\t\tArrayList<Long> res = null;\r\n\t\t\tquery.setclassid(nClassId);\r\n\t\t\tquery.settype(MsgId.GET_PICID);\r\n\t\t\tquery.setlist(null);\r\n\t\t\tquery.setrettype(RetID.INVALID);\r\n\t\t\t\r\n\t\t\ttry {\r\n\t\t\t scon.sendmsg(query);\r\n\t\t\t ...
[ "0.6769561", "0.6265706", "0.62623346", "0.62289184", "0.62059325", "0.6169733", "0.6139838", "0.61371475", "0.6007687", "0.5977025", "0.592849", "0.588917", "0.5875795", "0.58653444", "0.58624506", "0.58395153", "0.57971334", "0.5788498", "0.5775219", "0.5754504", "0.5754504...
0.0
-1
all function below returns true if api call success, false if api call failed (usually due to connection failure of image server) accuracy[0] is the accuracy of the specific model
public boolean getModelAccuracy(int serverIndex, int modleId, double[] accuracy) { query.settype(MsgId.GET_MODEL_ACCURACY); query.setdomid(modleId); query.setintval(serverIndex); query.setrettype(RetID.INVALID); try { scon.sendmsg(query); MessageObject result = (MessageObject) scon.getmsg(query); if (result.getrettype() == RetID.TIMEOUT) return false; accuracy[0] = result.modelAccuracy; } catch (IOException e) { HandleException(e, MsgId.GET_MODEL_ACCURACY); } return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private double findAccuracy(){\n double[] prediciton = this.learner.test(this.VS);\n ClassificationEvaluator CE = new ClassificationEvaluator(prediciton, this.VS);\n double tmp = CE.returnAccuracy(); //find accuracy\n return tmp;\n }", "public double computeAccuracy(){\n\n\t\t//cou...
[ "0.62213194", "0.6056607", "0.6039201", "0.5800459", "0.566341", "0.55930597", "0.5536158", "0.5534343", "0.55261105", "0.55157816", "0.546695", "0.54407096", "0.54106814", "0.5394881", "0.53925997", "0.5392428", "0.5352394", "0.5322162", "0.5318661", "0.5314121", "0.5308998"...
0.6146989
1
info[0] ==> true: training in progress, false: not in progress
public boolean getTrainingInfo(int serverIndex, int modleId, boolean[] info) { query.settype(MsgId.GET_MODEL_TRAININGINFO); query.setdomid(modleId); query.setintval(serverIndex); query.setrettype(RetID.INVALID); try { scon.sendmsg(query); MessageObject result = (MessageObject) scon.getmsg(query); if (result.getrettype() == RetID.TIMEOUT) return false; info[0] = result.trainingInProgress; } catch (IOException e) { HandleException(e, MsgId.GET_MODEL_TRAININGINFO); } return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean hasTrainIdx();", "public void train(SieveDocuments trainingInfo) {\r\n\t\t// no training\r\n\t}", "public void startTrainingMode() {\n\t\t\r\n\t}", "public boolean hasProgress();", "boolean hasProgress();", "boolean hasProgress();", "public TrainingStatus trainingStatus() {\n return this...
[ "0.6438539", "0.6425844", "0.62762624", "0.6149545", "0.6114155", "0.6114155", "0.6084814", "0.5932635", "0.5900136", "0.5894503", "0.5847384", "0.58234066", "0.58190286", "0.57793504", "0.57547516", "0.5750709", "0.5702078", "0.5700229", "0.5664271", "0.5604291", "0.558721",...
0.6531351
0
Paints the border for the specified component with the specified position and size.
public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) { if (!(g instanceof Graphics2D)) { return; } Graphics2D g2d = (Graphics2D) g; drawVLine(g2d, Side.LEFT, x + getMargin(Side.LEFT), y, height); drawVLine(g2d, Side.RIGHT, x + width - getMargin(Side.RIGHT) - getBorderWidth(Side.RIGHT), y, height); drawHLine(g2d, Side.TOP, x, y + getMargin(Side.TOP), width); drawHLine(g2d, Side.BOTTOM, x, y + height - getMargin(Side.BOTTOM) - getBorderWidth(Side.BOTTOM), width); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\tpublic void paintBorder(Component c, Graphics g, int x, int y, int width, int height) {\n\t\t\tsuper.paintBorder(c, g, x - 1, y, width + 5, height);\n\t\t}", "void setBorder(Color color, int thickness);", "@Override\n\t\tpublic void paintBorder(Component c, Graphics g, int x, int y, int width, i...
[ "0.6485774", "0.6480548", "0.6267838", "0.6185339", "0.60409623", "0.59991467", "0.5897683", "0.5826532", "0.58099943", "0.57982296", "0.56762946", "0.5645534", "0.5608294", "0.554034", "0.54862386", "0.54793847", "0.544689", "0.54426837", "0.5429151", "0.5425153", "0.5421285...
0.61276686
4
Reinitialize the insets parameter with this Border's current Insets.
public Insets getBorderInsets(Component c, Insets insets) { insets.set(calcInset(Side.TOP), calcInset(Side.LEFT), calcInset(Side.BOTTOM), calcInset(Side.RIGHT)); return insets; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void setInsets(Insets insets) {\n\t\tthis.insets = insets;\n\t}", "public Insets getInsets();", "public void setBorderInsets(int top, int left, int bottom, int right) {\r\n this.borderInsets = new Insets(top, left, bottom, right);\r\n }", "public Insets getInsets() {\n\t\t\tint k = ringOp...
[ "0.7242693", "0.6204948", "0.6176139", "0.60124743", "0.58501786", "0.5811011", "0.5798241", "0.57579386", "0.5604398", "0.5519503", "0.5487179", "0.546383", "0.54065025", "0.5375165", "0.53614247", "0.53564733", "0.53395927", "0.5295341", "0.52293813", "0.52230555", "0.51935...
0.53086686
17
function to create a list
public static Node createList(){ Scanner sc = new Scanner(System.in); System.out.println("Enter size of linked list:"); int n = sc.nextInt(); Node head = new Node(sc.nextInt()); Node ref = head; while(--n!=0) { head.next = new Node(sc.nextInt()); head = head.next; } return ref; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "ListType createListType();", "abstract void makeList();", "ListString createListString();", "StringList createStringList();", "private void createList(String[] toAdd) {\n FixData fixedList;\n for (int i = 0; i < toAdd.length; ++i) {\n fixedList = new FixData(toAdd[i]);\n ...
[ "0.770255", "0.7497887", "0.7265767", "0.7058229", "0.70367527", "0.70307255", "0.7030313", "0.70163924", "0.7002981", "0.68852437", "0.68627083", "0.68404454", "0.6743548", "0.67344767", "0.6710084", "0.66940373", "0.6601663", "0.65966237", "0.65850216", "0.65781146", "0.657...
0.0
-1
Creates new form FramePrincipal
public FramePrincipal() { initComponents(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public FramePrincipal() {\r\n initComponents();\r\n }", "public FramePrincipal() {\n initComponents();\n }", "public JFramePrincipal() {\n initComponents();\n controladorPrincipal = new ControladorPrincipal(this);\n }", "public frmPrincipal() {\n initComponents(); ...
[ "0.74138755", "0.7408142", "0.7119001", "0.696419", "0.69073427", "0.683845", "0.66981596", "0.66790414", "0.6609482", "0.6561049", "0.654663", "0.6452311", "0.64491767", "0.64204454", "0.6187215", "0.61343706", "0.61102057", "0.6088801", "0.606705", "0.60604197", "0.60579264...
0.74454695
0
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.
@SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { panels = new javax.swing.JPanel(); panelRegistro = new PanelRegistro(); panelBitacora = new PanelBitacora(); panelUsuarios = new PanelUsuarios(); panelSalida = new PanelSalida(); jMenuBar1 = new javax.swing.JMenuBar(); archivoMenu = new javax.swing.JMenu(); registrarMenu = new javax.swing.JMenuItem(); salidaMenu = new javax.swing.JMenuItem(); bitacoraMenu = new javax.swing.JMenuItem(); jSeparator1 = new javax.swing.JPopupMenu.Separator(); preferenciasMenu = new javax.swing.JMenuItem(); jSeparator2 = new javax.swing.JPopupMenu.Separator(); salirMenu = new javax.swing.JMenuItem(); setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); setTitle("CafeVisitor"); panels.setLayout(new java.awt.CardLayout()); panelRegistro.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "REGISTRO DE ENTRADA", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 0, 24))); // NOI18N panels.add(panelRegistro, "panelRegistro"); panelBitacora.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "BITACORA DE REGISTRO", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 0, 24))); // NOI18N panels.add(panelBitacora, "panelBitacora"); panelUsuarios.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "USUARIOS DEL SISTEMA", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 0, 24))); // NOI18N panels.add(panelUsuarios, "panelUsuarios"); panelSalida.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "REGISTRO DE SALIDA", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 0, 24))); // NOI18N panels.add(panelSalida, "panelSalida"); getContentPane().add(panels, java.awt.BorderLayout.CENTER); archivoMenu.setText("Archivo"); registrarMenu.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_F1, 0)); registrarMenu.setText("Registrar Entrada"); archivoMenu.add(registrarMenu); salidaMenu.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_F12, 0)); salidaMenu.setText("Registras Salida"); archivoMenu.add(salidaMenu); bitacoraMenu.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_F2, 0)); bitacoraMenu.setText("Bitacora"); archivoMenu.add(bitacoraMenu); archivoMenu.add(jSeparator1); preferenciasMenu.setText("Configuración"); archivoMenu.add(preferenciasMenu); archivoMenu.add(jSeparator2); salirMenu.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_F4, java.awt.event.InputEvent.ALT_MASK)); salirMenu.setText("Salir"); archivoMenu.add(salirMenu); jMenuBar1.add(archivoMenu); setJMenuBar(jMenuBar1); setSize(new java.awt.Dimension(766, 470)); setLocationRelativeTo(null); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Form() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public frmRectangulo() {\n initComponents();\n }", "public form() {\n ...
[ "0.7319545", "0.7290502", "0.7290502", "0.7290502", "0.72860676", "0.7248135", "0.72132677", "0.7208833", "0.7195503", "0.71899074", "0.71839535", "0.7159182", "0.71478266", "0.7092896", "0.7081379", "0.70575553", "0.6987028", "0.69771224", "0.69548094", "0.6954804", "0.69449...
0.0
-1
End of variables declaration//GENEND:variables
public javax.swing.JMenu getArchivoMenu() { return archivoMenu; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void lavar() {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}", "public void mo38117a() {\n }", "@Override\r\n\tpublic void initVariables() {\n\t\t\r\n\t}", "private void assignment() {\n\n\t\t\t}", "private void kk12() {\n\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\n pu...
[ "0.6359434", "0.6280371", "0.61868024", "0.6094568", "0.60925734", "0.6071678", "0.6052686", "0.60522056", "0.6003249", "0.59887564", "0.59705925", "0.59680873", "0.5967989", "0.5965816", "0.5962006", "0.5942372", "0.5909877", "0.5896588", "0.5891321", "0.5882983", "0.5881482...
0.0
-1
Bundle mArgs = getArguments(); String answer= mArgs.getString("answer");
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View view = inflater.inflate(R.layout.layout_answer_support, container, false); // getDialog().getWindow().setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT)); mAnswer = (TextView) view.findViewById(R.id.answer_textview); mOk = (Button) view.findViewById(R.id.answer_support_btn_ok); mOk.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { getDialog().dismiss(); } }); Bundle mArgs = getArguments(); String test = mArgs.getString("answer"); mAnswer.setText(test); return view; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getArguments();", "protected void readArguments(Bundle bundle) {\n\n }", "private void getExtrasFromCallingActivity() {\n extras = getIntent().getExtras();\n if (extras != null) {\n testIdString = extras.getString(\"TEST_ID_FOR_QUESTIONS\");\n } else {\n tes...
[ "0.66183734", "0.64396435", "0.61855936", "0.60479754", "0.5956327", "0.5908549", "0.5904158", "0.58558553", "0.585174", "0.58466834", "0.58418256", "0.58300185", "0.5812957", "0.58038867", "0.5779119", "0.57772243", "0.57527137", "0.57527137", "0.571748", "0.5706421", "0.567...
0.0
-1
metodo para modificar cliente modificarCliente(textNombre.getText(), Integer.parseInt(textFieldDNI.getText()), textDomicilio.getText(), Integer.parseInt(textTelefono.getText()));
@Override public void actionPerformed(ActionEvent e) { JOptionPane.showMessageDialog((Component)e.getSource(), "Cliente modificado"); textFieldDNI_CUIT.setText(""); textFieldDNI_CUIT.setEnabled(true); textNombre_razonSocial.setText(""); textNombre_razonSocial.setEnabled(false); textDomicilio.setText(""); textDomicilio.setEnabled(false); textTelefono.setText(""); textTelefono.setEnabled(false); btnBuscar.setEnabled(true); btnModificar.setEnabled(false); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void modi() { \n try {\n cvo.getId_cliente();\n cvo.setNombre_cliente(vista.txtNombre.getText());\n cvo.setApellido_cliente(vista.txtApellido.getText());\n cvo.setDireccion_cliente(vista.txtDireccion.getText());\n cvo.setCorreo_...
[ "0.7945256", "0.75037426", "0.73775345", "0.7366899", "0.72413075", "0.72109896", "0.72071916", "0.7176604", "0.7160065", "0.70525247", "0.7047642", "0.7019989", "0.69647044", "0.6928379", "0.69177216", "0.69067115", "0.6855191", "0.6835315", "0.6804542", "0.6763455", "0.6758...
0.6966712
12
Inflate the menu items for use in the action bar
@Override public boolean onCreateOptionsMenu(Menu menu) { MenuInflater inflater = getMenuInflater(); inflater.inflate(R.menu.act_bar_menu, menu); return super.onCreateOptionsMenu(menu); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.actions, menu);\n }", "public void initializeMenuItems() {\n\t\tuserMenuButton = new MenuButton();\n\t\tmenu1 = new MenuItem(bundle.getString(...
[ "0.66991645", "0.6673359", "0.6632681", "0.6606983", "0.66062343", "0.65972203", "0.65764797", "0.65662694", "0.655556", "0.655556", "0.65352", "0.653026", "0.6523824", "0.649541", "0.6492886", "0.6483986", "0.64605194", "0.6458586", "0.6455788", "0.6454844", "0.6453415", "...
0.63165814
44
Handle presses on the action bar items
@Override public boolean onOptionsItemSelected(MenuItem item) { switch (item.getItemId()) { case R.id.currnet_decoded_data: // Get current information decoded_data = decodeList(mACA.mActionList); int current_time, work_num, prepare_num, rest_num, custom_clock_num; current_time = work_num = prepare_num = rest_num = custom_clock_num = 0; // Get totalltime for (String s : decoded_data.get(time_index)) current_time = current_time + (Integer.valueOf(s)); String HMS_now = toHMSform(current_time).get(0) + ":" + toHMSform(current_time).get(1) + ":" + toHMSform(current_time).get(2); // Count action name number work_num = Collections.frequency(decoded_data.get(name_index), "Work"); prepare_num = Collections.frequency(decoded_data.get(name_index), "Prepare"); rest_num = Collections.frequency(decoded_data.get(name_index), "Rest"); custom_clock_num = decoded_data.get(name_index).size() - work_num - prepare_num - rest_num; // Launch note new AlertDialog.Builder(context) .setTitle("Current Setting") .setMessage("Totall time: " + HMS_now + "\n" + "Prepare:" + prepare_num + "\n" + "Work: " + work_num + "\n" + "Rest: " + prepare_num + "\n" + "Custom clock: " + custom_clock_num) .show(); return true; case R.id.save_action_list: saveCurrentList(); return true; case R.id.reset_timer: new AlertDialog.Builder(context) .setMessage("Do you want to recover to the latest saving?") .setPositiveButton("Yes", new DialogInterface.OnClickListener() { @Override public void onClick(DialogInterface dialog, int which) { action_list.clear(); action_list.addAll(original_list); mACA.notifyDataSetChanged(); } }) .setNegativeButton("No", new DialogInterface.OnClickListener() { @Override public void onClick(DialogInterface dialog, int which) { } }).show(); return true; default: return super.onOptionsItemSelected(item); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // Handle presses on the action bar items\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n case R.id.action_clear:\n ret...
[ "0.7173379", "0.69227743", "0.69227743", "0.69227743", "0.69227743", "0.6911944", "0.6884609", "0.6881586", "0.68243235", "0.68193024", "0.68051094", "0.6801348", "0.678705", "0.678705", "0.67608094", "0.67543995", "0.6754033", "0.674645", "0.67355984", "0.6727317", "0.672570...
0.0
-1
Handle the crash leaded by null reference
@Override public boolean onKeyDown(int keyCode, KeyEvent event) { if (mACA.mActionList == null && original_list != null) { return super.onKeyDown(keyCode, event);} else if (mACA.mActionList != null && original_list == null) { return super.onKeyDown(keyCode, event);} else if (mACA.mActionList == null && original_list == null) { return super.onKeyDown(keyCode, event);} // else if (!compareActionLists(mACA.mActionList, original_list)) { if (!compareActionLists(mACA.mActionList, original_list)) { // HOLD ON! goback if (keyCode == KeyEvent.KEYCODE_BACK && event.getRepeatCount() == 0) { new AlertDialog.Builder(context) .setTitle("Are you sure to leave?") .setMessage("You will lose the changed data") .setPositiveButton("Yes", new DialogInterface.OnClickListener() { @Override public void onClick(DialogInterface dialog, int which) { finish(); } }) .setNegativeButton("No", new DialogInterface.OnClickListener() { @Override public void onClick(DialogInterface dialog, int which) { } }).show(); } } return super.onKeyDown(keyCode, event); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void mo5385r() {\n throw null;\n }", "private static NullPointerException m147578b(Throwable th) {\n NullPointerException nullPointerException = new NullPointerException(\"Actually not, but can't pass out an exception otherwise...\");\n nullPointerException.initCause(th);\n ...
[ "0.6722116", "0.642918", "0.6299557", "0.6188225", "0.6161765", "0.61390656", "0.6130413", "0.6036213", "0.6002565", "0.59942317", "0.5960469", "0.59426093", "0.59374386", "0.5922878", "0.5921468", "0.59099865", "0.5898154", "0.58506095", "0.58406985", "0.58110744", "0.579563...
0.0
-1
/ InMemoryUserDetailsManager manager = new InMemoryUserDetailsManager(); UserDetails users = User .withUsername("sa") .password("123") .authorities("ADMIN") .build();
@Bean public UserDetailsManager userDetailsManager() { CustomUserDetailsManager detailsManager = new CustomUserDetailsManager(); detailsManager.createUser(new SecurityUser("sa", "123")); return detailsManager; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n @Bean\n protected UserDetailsService userDetailsService() {\n\n\n UserDetails user = User.builder()\n .username(\"cs\")\n .password( passwordEncoder.encode(\"cs\"))\n .roles(STUDENT.name())\n .build();\n\n UserDetails admin...
[ "0.8019245", "0.7729463", "0.72946215", "0.7242378", "0.70600915", "0.69520086", "0.6905035", "0.68236244", "0.6742321", "0.668142", "0.6654745", "0.6615015", "0.66031873", "0.6534817", "0.6498924", "0.6487417", "0.6450951", "0.64387417", "0.6433471", "0.64179444", "0.6403789...
0.7610034
2
Compute the type of the resulting component
public abstract Class<?> getVTLReturnTypeFor(Class<?> clazz);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Class<?> getComponentType();", "Class<?> getComponentType();", "type getType();", "String componentTypeName();", "abstract public Type getType();", "public int getType() {\n\tif (num_comp == 0)\n\t return(UNCLASSIFIED);\n\treturn(type[num_comp-1]);\n }", "protected abstract String getType(...
[ "0.6636215", "0.6514022", "0.64453566", "0.64386314", "0.6390141", "0.63360864", "0.6334608", "0.6329541", "0.6248268", "0.6248268", "0.6248268", "0.6248268", "0.6248268", "0.6248268", "0.6248268", "0.6248268", "0.6248268", "0.6248268", "0.6248268", "0.6248268", "0.6248268", ...
0.0
-1
TODO Autogenerated method stub
public static void main(String[] args) throws InterruptedException { System.setProperty("webdriver.chrome.driver", "./drivers/chromedriver.exe"); ChromeOptions options= new ChromeOptions(); options.addArguments("--disableNotifications"); ChromeDriver driver= new ChromeDriver(options); driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS); driver.manage().window().maximize(); driver.get("https://autoportal.com/"); driver.manage().deleteAllCookies(); //click on change and select chennai Thread.sleep(2000); WebElement location = driver.findElementByXPath("//div[@class='maincity-in field']"); location.click(); //Enter Chennai Thread.sleep(2000); WebDriverWait wait=new WebDriverWait(driver,15); WebElement chennai= driver.findElementById("ac_user_city"); wait.until(ExpectedConditions.visibilityOf(chennai)).click(); Thread.sleep(1000); chennai.sendKeys("Chennai"); Thread.sleep(2000); chennai.sendKeys(Keys.ARROW_DOWN,Keys.ENTER); //click on confirm city driver.findElementByXPath("//span[text()='Confirm City']").click(); Thread.sleep(2000); //Select car brand as Renault WebElement brand= driver.findElementByXPath("(//select[@data-placeholder='select'])[1]"); wait.until(ExpectedConditions.visibilityOf(brand)).click(); Select brandName= new Select(brand); brandName.selectByVisibleText("Renault"); //Select model as Arkana WebElement arkana= driver.findElementByXPath("//select[@name='model']"); wait.until(ExpectedConditions.visibilityOf(arkana)).click(); Select modelName= new Select(arkana); modelName.selectByVisibleText("Arkana"); //click on find cars driver.findElementByXPath("(//input[@type='submit'])[1]").click(); Thread.sleep(2000); //to print minimum and maximum price WebElement price= driver.findElementByXPath("//span[@class='WebRupee']"); System.out.println("Expected Miniumum Price is: "+price.getAttribute("data-gtm-item-price-min")); System.out.println("Expected Maxiumum Price is: "+price.getAttribute("data-gtm-item-price-max")); driver.quit(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1