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__Dataset__DataPathAssignment_1" $ANTLR start "rule__Dataset__SeparatorAssignment_2" InternalMLRegression.g:2583:1: rule__Dataset__SeparatorAssignment_2 : ( RULE_STRING ) ;
public final void rule__Dataset__SeparatorAssignment_2() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalMLRegression.g:2587:1: ( ( RULE_STRING ) ) // InternalMLRegression.g:2588:2: ( RULE_STRING ) { // InternalMLRegression.g:2588:2: ( RULE_STRING ) // InternalMLRegression.g:2589:3: RULE_STRING { before(grammarAccess.getDatasetAccess().getSeparatorSTRINGTerminalRuleCall_2_0()); match(input,RULE_STRING,FOLLOW_2); after(grammarAccess.getDatasetAccess().getSeparatorSTRINGTerminalRuleCall_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__Dataset__Group__2__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalMLRegression.g:1261:1: ( ( ( rule__Dataset__SeparatorAssignment_2 )? ) )\n // InternalMLRegression.g:1262:1: ( ( rule__Datase...
[ "0.77145636", "0.6134677", "0.6093808", "0.595027", "0.5526621", "0.5488371", "0.53582144", "0.5357532", "0.53214943", "0.5302568", "0.5262046", "0.5238364", "0.52321476", "0.5223646", "0.5203741", "0.5171463", "0.51693815", "0.50610757", "0.50425106", "0.5040722", "0.5016723...
0.84308916
0
$ANTLR end "rule__Dataset__SeparatorAssignment_2" $ANTLR start "rule__Variables__PredictivesAssignment_0" InternalMLRegression.g:2598:1: rule__Variables__PredictivesAssignment_0 : ( rulePredictiveVars ) ;
public final void rule__Variables__PredictivesAssignment_0() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalMLRegression.g:2602:1: ( ( rulePredictiveVars ) ) // InternalMLRegression.g:2603:2: ( rulePredictiveVars ) { // InternalMLRegression.g:2603:2: ( rulePredictiveVars ) // InternalMLRegression.g:2604:3: rulePredictiveVars { before(grammarAccess.getVariablesAccess().getPredictivesPredictiveVarsParserRuleCall_0_0()); pushFollow(FOLLOW_2); rulePredictiveVars(); state._fsp--; after(grammarAccess.getVariablesAccess().getPredictivesPredictiveVarsParserRuleCall_0_0()); } } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { restoreStackSize(stackSize); } return ; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final EObject ruleVariables() throws RecognitionException {\n EObject current = null;\n\n EObject lv_predictives_0_0 = null;\n\n EObject lv_targets_1_0 = null;\n\n\n\n \tenterRule();\n\n try {\n // InternalMLRegression.g:464:2: ( ( ( (lv_predictives_0_0= rulePre...
[ "0.71698856", "0.70444894", "0.6784453", "0.66799605", "0.6628032", "0.6590722", "0.6583944", "0.6512113", "0.647047", "0.6162998", "0.6143544", "0.6055326", "0.59433883", "0.5917956", "0.58358204", "0.5721556", "0.5718574", "0.5635399", "0.55847216", "0.5544303", "0.55319786...
0.7735586
0
$ANTLR end "rule__Variables__PredictivesAssignment_0" $ANTLR start "rule__Variables__TargetsAssignment_1" InternalMLRegression.g:2613:1: rule__Variables__TargetsAssignment_1 : ( ruleTargetVars ) ;
public final void rule__Variables__TargetsAssignment_1() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalMLRegression.g:2617:1: ( ( ruleTargetVars ) ) // InternalMLRegression.g:2618:2: ( ruleTargetVars ) { // InternalMLRegression.g:2618:2: ( ruleTargetVars ) // InternalMLRegression.g:2619:3: ruleTargetVars { before(grammarAccess.getVariablesAccess().getTargetsTargetVarsParserRuleCall_1_0()); pushFollow(FOLLOW_2); ruleTargetVars(); state._fsp--; after(grammarAccess.getVariablesAccess().getTargetsTargetVarsParserRuleCall_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__TargetVars__TargetVarAssignment_3_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalMLRegression.g:2677:1: ( ( RULE_STRING ) )\n // InternalMLRegression.g:2678:2: ( RULE_STRING )\n {\n ...
[ "0.71701443", "0.71698225", "0.70869154", "0.7076743", "0.7045967", "0.70436674", "0.69849014", "0.68716145", "0.68197596", "0.67641413", "0.6705769", "0.6694056", "0.66638553", "0.6582572", "0.64956766", "0.635505", "0.63415235", "0.6307461", "0.62851", "0.6274555", "0.61151...
0.837486
0
$ANTLR end "rule__Variables__TargetsAssignment_1" $ANTLR start "rule__PredictiveVars__PredVarAssignment_2" InternalMLRegression.g:2628:1: rule__PredictiveVars__PredVarAssignment_2 : ( RULE_STRING ) ;
public final void rule__PredictiveVars__PredVarAssignment_2() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalMLRegression.g:2632:1: ( ( RULE_STRING ) ) // InternalMLRegression.g:2633:2: ( RULE_STRING ) { // InternalMLRegression.g:2633:2: ( RULE_STRING ) // InternalMLRegression.g:2634:3: RULE_STRING { before(grammarAccess.getPredictiveVarsAccess().getPredVarSTRINGTerminalRuleCall_2_0()); match(input,RULE_STRING,FOLLOW_2); after(grammarAccess.getPredictiveVarsAccess().getPredVarSTRINGTerminalRuleCall_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__TargetVars__TargetVarAssignment_2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalMLRegression.g:2662:1: ( ( RULE_STRING ) )\n // InternalMLRegression.g:2663:2: ( RULE_STRING )\n {\n ...
[ "0.7618674", "0.74562484", "0.7122303", "0.7068846", "0.7021859", "0.66663516", "0.6610947", "0.6566879", "0.6466617", "0.6227841", "0.60673964", "0.5999112", "0.5936546", "0.5907443", "0.58151275", "0.57743764", "0.57306087", "0.57291913", "0.5658053", "0.5615906", "0.559417...
0.8210871
0
$ANTLR end "rule__PredictiveVars__PredVarAssignment_2" $ANTLR start "rule__PredictiveVars__PredVarAssignment_3_1" InternalMLRegression.g:2643:1: rule__PredictiveVars__PredVarAssignment_3_1 : ( RULE_STRING ) ;
public final void rule__PredictiveVars__PredVarAssignment_3_1() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalMLRegression.g:2647:1: ( ( RULE_STRING ) ) // InternalMLRegression.g:2648:2: ( RULE_STRING ) { // InternalMLRegression.g:2648:2: ( RULE_STRING ) // InternalMLRegression.g:2649:3: RULE_STRING { before(grammarAccess.getPredictiveVarsAccess().getPredVarSTRINGTerminalRuleCall_3_1_0()); match(input,RULE_STRING,FOLLOW_2); after(grammarAccess.getPredictiveVarsAccess().getPredVarSTRINGTerminalRuleCall_3_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__PredictiveVars__PredVarAssignment_2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalMLRegression.g:2632:1: ( ( RULE_STRING ) )\n // InternalMLRegression.g:2633:2: ( RULE_STRING )\n {\n ...
[ "0.78560936", "0.7059716", "0.6962885", "0.6752284", "0.668338", "0.6419293", "0.63506037", "0.6338185", "0.6096131", "0.5972403", "0.5830867", "0.5805289", "0.5759797", "0.57497084", "0.57314706", "0.5534087", "0.5495309", "0.5471486", "0.5442374", "0.5436801", "0.5349635", ...
0.8347365
0
$ANTLR end "rule__PredictiveVars__PredVarAssignment_3_1" $ANTLR start "rule__TargetVars__TargetVarAssignment_2" InternalMLRegression.g:2658:1: rule__TargetVars__TargetVarAssignment_2 : ( RULE_STRING ) ;
public final void rule__TargetVars__TargetVarAssignment_2() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalMLRegression.g:2662:1: ( ( RULE_STRING ) ) // InternalMLRegression.g:2663:2: ( RULE_STRING ) { // InternalMLRegression.g:2663:2: ( RULE_STRING ) // InternalMLRegression.g:2664:3: RULE_STRING { before(grammarAccess.getTargetVarsAccess().getTargetVarSTRINGTerminalRuleCall_2_0()); match(input,RULE_STRING,FOLLOW_2); after(grammarAccess.getTargetVarsAccess().getTargetVarSTRINGTerminalRuleCall_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__TargetVars__TargetVarAssignment_3_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalMLRegression.g:2677:1: ( ( RULE_STRING ) )\n // InternalMLRegression.g:2678:2: ( RULE_STRING )\n {\n ...
[ "0.7725613", "0.7646816", "0.7160755", "0.7081968", "0.68952906", "0.68880653", "0.6540631", "0.63534164", "0.63477343", "0.61921585", "0.61909527", "0.61813635", "0.6176521", "0.6055216", "0.60123616", "0.6012058", "0.59844226", "0.5983196", "0.59650743", "0.59579843", "0.57...
0.8313342
0
$ANTLR end "rule__TargetVars__TargetVarAssignment_2" $ANTLR start "rule__TargetVars__TargetVarAssignment_3_1" InternalMLRegression.g:2673:1: rule__TargetVars__TargetVarAssignment_3_1 : ( RULE_STRING ) ;
public final void rule__TargetVars__TargetVarAssignment_3_1() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalMLRegression.g:2677:1: ( ( RULE_STRING ) ) // InternalMLRegression.g:2678:2: ( RULE_STRING ) { // InternalMLRegression.g:2678:2: ( RULE_STRING ) // InternalMLRegression.g:2679:3: RULE_STRING { before(grammarAccess.getTargetVarsAccess().getTargetVarSTRINGTerminalRuleCall_3_1_0()); match(input,RULE_STRING,FOLLOW_2); after(grammarAccess.getTargetVarsAccess().getTargetVarSTRINGTerminalRuleCall_3_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__TargetVars__TargetVarAssignment_2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalMLRegression.g:2662:1: ( ( RULE_STRING ) )\n // InternalMLRegression.g:2663:2: ( RULE_STRING )\n {\n ...
[ "0.7869666", "0.73998237", "0.7046588", "0.6989152", "0.6838309", "0.6606279", "0.65633464", "0.6358458", "0.63492596", "0.62798214", "0.62676424", "0.62455684", "0.62019736", "0.6117195", "0.6096507", "0.5997823", "0.59761834", "0.5973573", "0.59701484", "0.59470534", "0.589...
0.8462511
0
$ANTLR end "rule__TargetVars__TargetVarAssignment_3_1" $ANTLR start "rule__Partition__TestAssignment_2" InternalMLRegression.g:2688:1: rule__Partition__TestAssignment_2 : ( ruleNumericValue ) ;
public final void rule__Partition__TestAssignment_2() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalMLRegression.g:2692:1: ( ( ruleNumericValue ) ) // InternalMLRegression.g:2693:2: ( ruleNumericValue ) { // InternalMLRegression.g:2693:2: ( ruleNumericValue ) // InternalMLRegression.g:2694:3: ruleNumericValue { before(grammarAccess.getPartitionAccess().getTestNumericValueParserRuleCall_2_0()); pushFollow(FOLLOW_2); ruleNumericValue(); state._fsp--; after(grammarAccess.getPartitionAccess().getTestNumericValueParserRuleCall_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__TargetVars__Group__2__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalMLRegression.g:1612:1: ( ( ( rule__TargetVars__TargetVarAssignment_2 ) ) )\n // InternalMLRegression.g:1613:1: ( ( rule__T...
[ "0.60139465", "0.594433", "0.589829", "0.5506967", "0.52682275", "0.52307534", "0.5221404", "0.51900923", "0.5178575", "0.5137783", "0.50625104", "0.5042027", "0.5026237", "0.5018097", "0.49967045", "0.4925172", "0.49205497", "0.49110526", "0.49107495", "0.49002677", "0.48938...
0.7839184
0
$ANTLR end "rule__Partition__TestAssignment_2" $ANTLR start "rule__CrossValidation__KAssignment_2" InternalMLRegression.g:2703:1: rule__CrossValidation__KAssignment_2 : ( RULE_INT ) ;
public final void rule__CrossValidation__KAssignment_2() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalMLRegression.g:2707:1: ( ( RULE_INT ) ) // InternalMLRegression.g:2708:2: ( RULE_INT ) { // InternalMLRegression.g:2708:2: ( RULE_INT ) // InternalMLRegression.g:2709:3: RULE_INT { before(grammarAccess.getCrossValidationAccess().getKINTTerminalRuleCall_2_0()); match(input,RULE_INT,FOLLOW_2); after(grammarAccess.getCrossValidationAccess().getKINTTerminalRuleCall_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__CrossValidation__Group__2__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalMLRegression.g:1909:1: ( ( ( rule__CrossValidation__KAssignment_2 ) ) )\n // InternalMLRegression.g:1910:1: ( ( rule_...
[ "0.75465345", "0.66908455", "0.6196038", "0.55050457", "0.5461676", "0.5401782", "0.5367131", "0.5182892", "0.5179862", "0.5149804", "0.51321477", "0.51056427", "0.5080486", "0.50551635", "0.50442153", "0.5039321", "0.50179964", "0.4983109", "0.49583077", "0.49398097", "0.491...
0.7961934
0
$ANTLR end "rule__CrossValidation__KAssignment_2" $ANTLR start "rule__Algo__AlgoAssignment_2" InternalMLRegression.g:2718:1: rule__Algo__AlgoAssignment_2 : ( ruleAlgoType ) ;
public final void rule__Algo__AlgoAssignment_2() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalMLRegression.g:2722:1: ( ( ruleAlgoType ) ) // InternalMLRegression.g:2723:2: ( ruleAlgoType ) { // InternalMLRegression.g:2723:2: ( ruleAlgoType ) // InternalMLRegression.g:2724:3: ruleAlgoType { before(grammarAccess.getAlgoAccess().getAlgoAlgoTypeParserRuleCall_2_0()); pushFollow(FOLLOW_2); ruleAlgoType(); state._fsp--; after(grammarAccess.getAlgoAccess().getAlgoAlgoTypeParserRuleCall_2_0()); } } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { restoreStackSize(stackSize); } return ; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final EObject ruleAlgo() throws RecognitionException {\n EObject current = null;\n\n Token otherlv_0=null;\n Token otherlv_1=null;\n Token otherlv_3=null;\n AntlrDatatypeRuleToken lv_algo_2_0 = null;\n\n\n\n \tenterRule();\n\n try {\n // InternalML...
[ "0.7071982", "0.68645835", "0.6803857", "0.6525341", "0.6159136", "0.6043651", "0.59420663", "0.5806712", "0.5748137", "0.5693039", "0.5440897", "0.54241896", "0.5418843", "0.5396842", "0.5314968", "0.5308661", "0.5281213", "0.52807623", "0.52567023", "0.524376", "0.52382565"...
0.8126774
0
$ANTLR end "rule__Algo__AlgoAssignment_2" $ANTLR start "rule__Calculate__CalculateTypeAssignment_2" InternalMLRegression.g:2733:1: rule__Calculate__CalculateTypeAssignment_2 : ( ruleCalculateType ) ;
public final void rule__Calculate__CalculateTypeAssignment_2() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalMLRegression.g:2737:1: ( ( ruleCalculateType ) ) // InternalMLRegression.g:2738:2: ( ruleCalculateType ) { // InternalMLRegression.g:2738:2: ( ruleCalculateType ) // InternalMLRegression.g:2739:3: ruleCalculateType { before(grammarAccess.getCalculateAccess().getCalculateTypeCalculateTypeParserRuleCall_2_0()); pushFollow(FOLLOW_2); ruleCalculateType(); state._fsp--; after(grammarAccess.getCalculateAccess().getCalculateTypeCalculateTypeParserRuleCall_2_0()); } } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { restoreStackSize(stackSize); } return ; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final EObject ruleCalculate() throws RecognitionException {\n EObject current = null;\n\n Token otherlv_0=null;\n Token otherlv_1=null;\n Token otherlv_3=null;\n AntlrDatatypeRuleToken lv_calculateType_2_0 = null;\n\n\n\n \tenterRule();\n\n try {\n ...
[ "0.70526373", "0.70197207", "0.669021", "0.65499806", "0.6336376", "0.62119484", "0.6037485", "0.5935267", "0.58999187", "0.58090764", "0.57304186", "0.5642776", "0.56422335", "0.5415527", "0.53899103", "0.5373552", "0.5370338", "0.533119", "0.5315887", "0.5304407", "0.52052"...
0.80216503
0
$ANTLR end "rule__Calculate__CalculateTypeAssignment_2" $ANTLR start "rule__Loop__IAssignment_2" InternalMLRegression.g:2748:1: rule__Loop__IAssignment_2 : ( RULE_INT ) ;
public final void rule__Loop__IAssignment_2() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalMLRegression.g:2752:1: ( ( RULE_INT ) ) // InternalMLRegression.g:2753:2: ( RULE_INT ) { // InternalMLRegression.g:2753:2: ( RULE_INT ) // InternalMLRegression.g:2754:3: RULE_INT { before(grammarAccess.getLoopAccess().getIINTTerminalRuleCall_2_0()); match(input,RULE_INT,FOLLOW_2); after(grammarAccess.getLoopAccess().getIINTTerminalRuleCall_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__Loop__Group__2__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalMLRegression.g:2233:1: ( ( ( rule__Loop__IAssignment_2 ) ) )\n // InternalMLRegression.g:2234:1: ( ( rule__Loop__IAssignment_2 )...
[ "0.72188264", "0.5952565", "0.5903801", "0.5719001", "0.5625054", "0.56206685", "0.5620641", "0.5575695", "0.54862744", "0.54754794", "0.5301352", "0.52507484", "0.52494526", "0.52293557", "0.52099717", "0.5201241", "0.51695025", "0.516339", "0.5161212", "0.51502895", "0.5139...
0.79769003
0
$ANTLR end "rule__Loop__IAssignment_2" $ANTLR start "rule__FLOAT__ValueAssignment_0" InternalMLRegression.g:2763:1: rule__FLOAT__ValueAssignment_0 : ( RULE_INT ) ;
public final void rule__FLOAT__ValueAssignment_0() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalMLRegression.g:2767:1: ( ( RULE_INT ) ) // InternalMLRegression.g:2768:2: ( RULE_INT ) { // InternalMLRegression.g:2768:2: ( RULE_INT ) // InternalMLRegression.g:2769:3: RULE_INT { before(grammarAccess.getFLOATAccess().getValueINTTerminalRuleCall_0_0()); match(input,RULE_INT,FOLLOW_2); after(grammarAccess.getFLOATAccess().getValueINTTerminalRuleCall_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__FLOAT__Group__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalMLRegression.g:2287:1: ( ( ( rule__FLOAT__ValueAssignment_0 ) ) )\n // InternalMLRegression.g:2288:1: ( ( rule__FLOAT__ValueAss...
[ "0.7097851", "0.6647558", "0.6622314", "0.6447854", "0.6287364", "0.59641993", "0.5922134", "0.5918612", "0.5869554", "0.5832531", "0.57563853", "0.5754197", "0.56570876", "0.5634467", "0.5629492", "0.5549659", "0.55138344", "0.54579216", "0.5457157", "0.5420947", "0.54013515...
0.8073937
0
$ANTLR end "rule__FLOAT__ValueAssignment_0" $ANTLR start "rule__FLOAT__DecimalAssignment_1_1" InternalMLRegression.g:2778:1: rule__FLOAT__DecimalAssignment_1_1 : ( RULE_INT ) ;
public final void rule__FLOAT__DecimalAssignment_1_1() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalMLRegression.g:2782:1: ( ( RULE_INT ) ) // InternalMLRegression.g:2783:2: ( RULE_INT ) { // InternalMLRegression.g:2783:2: ( RULE_INT ) // InternalMLRegression.g:2784:3: RULE_INT { before(grammarAccess.getFLOATAccess().getDecimalINTTerminalRuleCall_1_1_0()); match(input,RULE_INT,FOLLOW_2); after(grammarAccess.getFLOATAccess().getDecimalINTTerminalRuleCall_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__FLOAT__Group_1__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalMLRegression.g:2367:1: ( ( ( rule__FLOAT__DecimalAssignment_1_1 ) ) )\n // InternalMLRegression.g:2368:1: ( ( rule__FLOAT__De...
[ "0.66970086", "0.66700673", "0.6199146", "0.6079416", "0.6068308", "0.60156226", "0.59280753", "0.5866617", "0.58042204", "0.5762645", "0.56778204", "0.5558917", "0.553343", "0.54875886", "0.5482805", "0.53827965", "0.5344435", "0.5317585", "0.5270347", "0.52547604", "0.50664...
0.7337203
0
$ANTLR end "rule__FLOAT__DecimalAssignment_1_1" $ANTLR start "rule__PERCENT__FloatAssignment_0" InternalMLRegression.g:2793:1: rule__PERCENT__FloatAssignment_0 : ( ruleFLOAT ) ;
public final void rule__PERCENT__FloatAssignment_0() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalMLRegression.g:2797:1: ( ( ruleFLOAT ) ) // InternalMLRegression.g:2798:2: ( ruleFLOAT ) { // InternalMLRegression.g:2798:2: ( ruleFLOAT ) // InternalMLRegression.g:2799:3: ruleFLOAT { before(grammarAccess.getPERCENTAccess().getFloatFLOATParserRuleCall_0_0()); pushFollow(FOLLOW_2); ruleFLOAT(); state._fsp--; after(grammarAccess.getPERCENTAccess().getFloatFLOATParserRuleCall_0_0()); } } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { restoreStackSize(stackSize); } return ; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final EObject rulePERCENT() throws RecognitionException {\n EObject current = null;\n\n Token otherlv_1=null;\n EObject lv_float_0_0 = null;\n\n\n\n \tenterRule();\n\n try {\n // InternalMLRegression.g:1282:2: ( ( ( (lv_float_0_0= ruleFLOAT ) ) otherlv_1= '%' ) ...
[ "0.78189194", "0.70670676", "0.6977592", "0.6687782", "0.6340805", "0.624137", "0.6239787", "0.6143893", "0.6118436", "0.61091876", "0.60711116", "0.59465766", "0.59042525", "0.58294964", "0.58222085", "0.57745695", "0.5741318", "0.5642761", "0.5608324", "0.55626124", "0.5515...
0.81835634
0
======================== gets e sets ========================
public BairroService getBairroService() { return bairroService; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Collection<Edge> getEdges()\r\n\t{\r\n\t return eSet;\r\n\t}", "Map<String, OperationalSets> getSets();", "protected abstract Set method_1559();", "private static EventSetDescriptor[] getEdescriptor(){\n EventSetDescriptor[] eventSets = new EventSetDescriptor[0];//GEN-HEADEREND:Events\n ...
[ "0.6382933", "0.6272382", "0.62673706", "0.6232006", "0.62111586", "0.59914136", "0.59910244", "0.59866214", "0.59307986", "0.5825291", "0.5794581", "0.5793634", "0.57896984", "0.5784449", "0.57732195", "0.5759165", "0.571944", "0.5672139", "0.56576097", "0.5654754", "0.56312...
0.0
-1
ExerciseDB exerciseDB = new ExerciseDB();
public ExersiceList(List<String> exerciseList) { this.exersiceList = exerciseList; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public MoviesDatabase()\n {\n file = new FileOperation();\n menu = new Menu();\n validation = new Validation();\n }", "public SetupDatabase() {\n }", "@Override\n\tpublic void initDemoDB() {\n\t}", "public static ExerciseDatabaseHelper getInstance(Context context) {\n if (in...
[ "0.6622912", "0.65100396", "0.647943", "0.6473109", "0.64709854", "0.64599097", "0.6407697", "0.63734835", "0.6360053", "0.6267725", "0.6235516", "0.62100804", "0.6195963", "0.6175854", "0.61748165", "0.6174307", "0.61558187", "0.6085367", "0.60566413", "0.60558325", "0.59643...
0.0
-1
ExerciseDB exerciseDB = new ExerciseDB(); SQLiteDatabase db = exerciseDB.getReadableDatabase();
private void initList() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void leerDB(){\n sqlDB = bdHelper.getReadableDatabase();\n\n }", "public void onCreate(SQLiteDatabase db) {\n }", "@Override\n public void onCreate(SQLiteDatabase db) {\n\n }", "@Override\n public void onCreate(SQLiteDatabase db) {\n\n }", "@Override\n public void onCreat...
[ "0.77374136", "0.75898725", "0.757332", "0.757332", "0.757332", "0.7505274", "0.7505274", "0.7505274", "0.7505274", "0.7505274", "0.74712634", "0.74513733", "0.74513733", "0.7438801", "0.74337655", "0.74337655", "0.7411698", "0.737375", "0.737214", "0.737214", "0.737214", "...
0.0
-1
Because locks to token boundaries
@Override public List<Class<? extends ProjectInitializer>> getDependencies() { return asList(TokenLayerInitializer.class); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public RangeReadWriteLock(RangeToken token) {\n this.token = token;\n }", "@Override\n public void run() {\n\n try {\n token=null;\n token=getAccessGenToken(hand);\n } catch (Exception e) {\n e.printStackTrace();\n ...
[ "0.641061", "0.63728476", "0.6372345", "0.6368668", "0.6203911", "0.61196554", "0.6098069", "0.60799253", "0.5992586", "0.5923662", "0.59019643", "0.5865449", "0.5857252", "0.5842828", "0.58285576", "0.5821904", "0.581736", "0.5816594", "0.5816285", "0.5794074", "0.5774972", ...
0.0
-1
if you reached end of board add one
public void countSolutionsH(int c){ if(c == board.length){ counter ++; return;} for(int i = 0; i < board.length; i++){ // if free space add a queen if(board[i][c] == 0){ edit(i, c, true); //move to next column countSolutionsH(c + 1); // backtrack and try row underneath edit(i, c, false);}} }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void addNewBoard(int x, int y,\n\t\t\tArrayList<ArrayList<Integer>> board) {\n\t\tif (y < 0 || y > board.size() - 1) { //expanding up/down\n\t\t\tfor (int i = 0; i < boardSize; i++) {\n\t\t\t\tArrayList<Integer> z = new ArrayList<>();\n\t\t\t\tfor (int j = 0; j < board.get(0).size(); j++) {\n\t\t\t\t\tif (...
[ "0.70124996", "0.6790789", "0.655227", "0.65285563", "0.64367115", "0.6395663", "0.63795173", "0.63678235", "0.63216674", "0.6293181", "0.62874424", "0.62376404", "0.6229038", "0.6222812", "0.6204622", "0.61485106", "0.6147514", "0.6120711", "0.61200696", "0.61130494", "0.608...
0.0
-1
records queen position of previous column
public boolean solveH(int c){ if(c >= board.length){ // if all queens are on board return true return true;} // go through column for(int i = 0; i < board.length; i++){ // if can put queen do so if(board[i][c] == 0){ edit(i, c, true); // advance to next column if(solveH(c + 1)){ return true;} // if it doesn't work out go back and try underneath edit(i, c, false);}} // if all attempts don't work return false return false;}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public CellCoord previousColumn() {\n return new CellCoord(column - 1, row);\n }", "private void reMark(int row, int col){\n for(int i = 0; i < sizeOfBoard; ++i){\n int rowOfOtherCol = rowUsedByColNumber[i] - 1;\n if(rowOfOtherCol != -1){//Is there a queen in th...
[ "0.6261782", "0.6018326", "0.59119254", "0.5853846", "0.5833683", "0.57772887", "0.57654375", "0.576503", "0.5760599", "0.5738431", "0.56723046", "0.56605524", "0.56418127", "0.558598", "0.5584979", "0.5577662", "0.5558855", "0.5542389", "0.5542389", "0.5542389", "0.55394197"...
0.0
-1
Other service(s) Default constructor
public RequestPromotionPageAdminController() { super(RequestPromotionPageAdminController.class, MAIN_ENTITY_NAME ); log("PromotionPageAdminController created."); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Service(){\n\t\t\n\t}", "private Service() {}", "public ServiceCompte() {\n\t\tsuper();\n\t}", "private GeneralServicesImpl() {\r\n\t}", "public ServiceClient() {\n\t\tsuper();\n\t}", "private FournisseurArboTraficService() {\r\n\t\tsuper();\r\n\t}", "private ServiceFactory() {}", "private Ana...
[ "0.7902974", "0.7848053", "0.75470865", "0.7484743", "0.74149317", "0.73501086", "0.7279749", "0.7278338", "0.7252838", "0.72472155", "0.7234478", "0.7173643", "0.7102693", "0.7099835", "0.70732385", "0.70534176", "0.70385534", "0.7038413", "0.70240295", "0.70120966", "0.6992...
0.0
-1
This is on a background thread.
@Override public List<News> loadInBackground() { if (mUrl == null) { return null; } // Perform the network request, parse the response, and extract a list of articles. List<News> news = QueryUtils.fetchNewsData(mUrl); return news; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\t\t\tpublic void run() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void run() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\tprotected void run() {\n\t\t\t\r\n\t\t}", "@Override\n\t\t\tpublic void run() {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void run() {\n\t\t\t\t\n\t\t\t}", "@...
[ "0.7146591", "0.7146591", "0.7076784", "0.7026705", "0.7026705", "0.7006197", "0.6853169", "0.6853169", "0.6853169", "0.6853169", "0.6853169", "0.6853169", "0.6853169", "0.6853169", "0.6853169", "0.67978776", "0.6790232", "0.6790232", "0.6789194", "0.6789194", "0.6789194", ...
0.0
-1
Hide loading indicator because the data has been loaded
@Override public void onLoadFinished(Loader<List<News>> loader, List<News> news) { View loadingIndicator = findViewById(R.id.loading_indicator); loadingIndicator.setVisibility(View.GONE); mRecyclerView.setVisibility(View.VISIBLE); // Set empty state text to display "No news found." mEmptyStateTextView.setText(R.string.no_news); mAdapter = new NewsRecyclerAdapter(MainActivity.this, new ArrayList<News>()); // If there is a valid list of {@link News}s, then add them to the adapter's // data set. This will trigger the RecycleView to update. if (news != null && !news.isEmpty()) { mAdapter = new NewsRecyclerAdapter(MainActivity.this, news); mRecyclerView.setAdapter(mAdapter); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void hideLoading()\n {\n relLoadingPanel.setVisibility(View.GONE);\n ViewHelper.setViewGroupEnabled(scrMainContainer, true);\n }", "private void showLoading() {\n mRecycleView.setVisibility(View.INVISIBLE);\n /* Finally, show the loading indicator */\n mLoadingInd...
[ "0.7811368", "0.7792105", "0.7745711", "0.7680877", "0.7665593", "0.76342726", "0.7508345", "0.742704", "0.7419868", "0.72494", "0.7188237", "0.7112717", "0.7106117", "0.70980805", "0.7097986", "0.7097623", "0.70571107", "0.70479405", "0.70278245", "0.69912", "0.69730306", ...
0.0
-1
Loader reset, so we can renew out our existing data.
@Override public void onLoaderReset(Loader<List<News>> loader) { mAdapter = new NewsRecyclerAdapter(MainActivity.this, new ArrayList<News>()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void reset() {\n //mLoader.reset();\n start();\n }", "@Override public void onLoaderReset(Loader<Cursor> loader) {\n\t\t}", "@Override\r\n\tpublic void onLoaderReset(Loader<Cursor> mLoader) {\n\t\t\r\n\t}", "@Override\n\tpublic void onLoaderReset(Loader<Cursor> loader) {\n\n\t}", "@...
[ "0.82746863", "0.7884188", "0.78446484", "0.778993", "0.76910406", "0.75919074", "0.75457275", "0.75455487", "0.75455487", "0.7531302", "0.7530043", "0.7511243", "0.74679786", "0.7467696", "0.7435144", "0.7426542", "0.7426064", "0.7420614", "0.7416892", "0.7414873", "0.740128...
0.65701383
85
Assert clean test start.
@Test public void getUnitsWithTypeJoiningUser() { assertEquals(0, dao.getUnitsWithTypeJoiningUser().size()); // Create a peasant and two soldiers joining the user. RoosterDaoUtil.creditUnit(dao, GameConfig.PEASANT_ID, 1, null); RoosterDaoUtil.creditUnit(dao, SOLDIER_UNIT_TYPE_ID, 2, null); // Create unrelated units at buildings. RoosterDaoUtil.creditUnit(dao, GameConfig.PEASANT_ID, 3, wheatFieldId); RoosterDaoUtil.creditUnit(dao, SOLDIER_UNIT_TYPE_ID, 4, wheatFieldId); // Test code. List<UnitWithType> unitsWithType = cache.getUnitsWithTypeJoiningUser(); // Assert outcome assertNotNull(unitsWithType); assertEquals(3, unitsWithType.size()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void nothing() throws Exception {\n startCleaner();\n }", "@org.junit.Before\n public void setUp() {\n LOGGER.log(Level.INFO, \"Starting test\");\n emptyTestDirectory();\n }", "public static void start() {\n\t\t\n\t\ttestEmptyConstructors();\n\t\ttestConstructors();\n\n\...
[ "0.6739946", "0.6603781", "0.65335035", "0.6513511", "0.6481426", "0.64632446", "0.642396", "0.642396", "0.64094293", "0.6383116", "0.6379637", "0.62895083", "0.6285041", "0.6275049", "0.6269179", "0.6261315", "0.6256487", "0.6255696", "0.6248464", "0.62269646", "0.62132156",...
0.0
-1
Assert clean test start.
@Test public void hasInjuredUnitJoiningUser() { assertEquals(0, dao.getUnitsWithTypeJoiningUser().size()); assertFalse(cache.hasInjuredUnitJoiningUser()); // Create a peasant and two soldiers joining the user. RoosterDaoUtil.creditUnit(dao, GameConfig.PEASANT_ID, 1, null); RoosterDaoUtil.creditUnit(dao, SOLDIER_UNIT_TYPE_ID, 2, null); // Create unrelated units at buildings. RoosterDaoUtil.creditUnit(dao, GameConfig.PEASANT_ID, 3, wheatFieldId); RoosterDaoUtil.creditUnit(dao, SOLDIER_UNIT_TYPE_ID, 4, wheatFieldId); // Test code. resetDataCache(); assertFalse(cache.hasInjuredUnitJoiningUser()); // Injure a unit. List<UnitWithType> unitsWithType = dao.getUnitsWithTypeJoiningUser(); Unit unit = unitsWithType.get(0).getUnit(); unit.setHealth(1); dao.update(unit); // Test code. assertFalse(cache.hasInjuredUnitJoiningUser()); // Ensure cache is accessed. resetDataCache(); assertTrue(cache.hasInjuredUnitJoiningUser()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void nothing() throws Exception {\n startCleaner();\n }", "@org.junit.Before\n public void setUp() {\n LOGGER.log(Level.INFO, \"Starting test\");\n emptyTestDirectory();\n }", "public static void start() {\n\t\t\n\t\ttestEmptyConstructors();\n\t\ttestConstructors();\n\n\...
[ "0.6739946", "0.6603781", "0.65335035", "0.6513511", "0.6481426", "0.64632446", "0.642396", "0.642396", "0.64094293", "0.6383116", "0.6379637", "0.62895083", "0.6285041", "0.6275049", "0.6269179", "0.6261315", "0.6256487", "0.6255696", "0.6248464", "0.62269646", "0.62132156",...
0.0
-1
Builds a new representation containing the given pair of elements.
public PairRepresentation(DomainRepresentation left, DomainRepresentation right) { this.left = left; this.right = right; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public String toString() {\n return \"Pair[\" + first + \", \" + second + \"]\";\n }", "private void fromPairs(final Object[] pairs) throws IllegalArgumentException {\n if ((pairs.length & 1) != 0) {\n throw new IllegalArgumentException(\n Errors.format(Error...
[ "0.5812406", "0.5142871", "0.5137182", "0.49988252", "0.49629378", "0.49445462", "0.4901179", "0.48891184", "0.47978482", "0.4776462", "0.4680261", "0.4652679", "0.464722", "0.46434924", "0.46399674", "0.4639703", "0.46387562", "0.46353388", "0.46338332", "0.46330798", "0.462...
0.5051253
3
Mandatory empty constructor for the fragment manager to instantiate the fragment (e.g. upon screen orientation changes).
public ProductsFragment() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public FragmentMy() {\n }", "public RickAndMortyFragment() {\n }", "public MainActivityFragment() {\n }", "public MainActivityFragment() {\n }", "public RegisterFragment() {\n // Required empty public constructor\n }", "public VehicleFragment() {\r\n }", "public EmployeeFragmen...
[ "0.80322635", "0.76994544", "0.7677623", "0.7677623", "0.75392675", "0.75352746", "0.75328326", "0.75227636", "0.75081986", "0.74129254", "0.74070895", "0.7377018", "0.7376573", "0.7366966", "0.7327401", "0.730305", "0.730305", "0.7295183", "0.7287933", "0.7285428", "0.728210...
0.69677395
69
Sets the main component to be used for all android entity injections
public void component(AndroidInjector<App> newComponent) { newComponent.inject(this); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void creatingMainElements() {\n MainActivityComponent component = DaggerMainActivityComponent.builder()\n .mainActivityModule(new MainActivityModule())\n .applicationComponent(ThePhoneBookApplication.get(this).getThePhoneBookApplicationComponent())\n .bui...
[ "0.6685801", "0.6455818", "0.6244506", "0.62306446", "0.61786985", "0.6121154", "0.60979754", "0.60970384", "0.6078135", "0.60763407", "0.6072382", "0.602234", "0.60193026", "0.6007236", "0.5939238", "0.5937686", "0.59345204", "0.59133923", "0.5904748", "0.588888", "0.5887450...
0.59079355
18
TODO Autogenerated method stub
public static void main(String[] args) { PermuteString ps = new PermuteString("aaa"); ps.permute(); }
{ "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
TODO consider moving this outa here! TODO Consider having another thread checking the size of downloading mp4s,if the size hasn't increaed for 2030secods, download has stalled, which seems to happen sometimes if this is the case, we want to stop and restart the download
public HostGetter() throws IOException, ClassNotFoundException { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void run() {\n downloadInfo.state = STATE_DOWNLOADING;\n notifyStateChange(downloadInfo);\n\n //6.specific download, two kinds of education\n // re-download and resume downloads\n Request request;\n File file = new File(do...
[ "0.6487802", "0.6145662", "0.6113643", "0.6072548", "0.60402423", "0.5918441", "0.5914487", "0.5907935", "0.5906534", "0.5862519", "0.5861472", "0.58577716", "0.58423656", "0.57981277", "0.5793607", "0.57931125", "0.57856256", "0.57809687", "0.57505614", "0.57429326", "0.5733...
0.0
-1
model.addAttribute("files", storageService .loadAll() .map(path > MvcUriComponentsBuilder.fromMethodName(FileUploadController.class, "serveFile", path.getFileName() .toString()).build().toString()).collect(Collectors.toList())); return "uploadForm";
@GetMapping("user/uploadForm") public String listUploadedFiles(Model model) throws IOException { model.addAttribute("view", "/user/uploadForm"); return "base-layout"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@GetMapping(\"/getallfiles\")\n public String getListFiles(Model model) {\n model.addAttribute(\"files\",\n files.stream()\n .map(fileName -> MvcUriComponentsBuilder\n .fromMethodName(FileUploadController.class, \"getFile\", fileName).b...
[ "0.73225325", "0.6740216", "0.63754773", "0.6289755", "0.62882006", "0.6197194", "0.61149925", "0.60298264", "0.59542733", "0.59066075", "0.5875776", "0.58169705", "0.5816869", "0.5778235", "0.5745498", "0.5729165", "0.5672804", "0.5670045", "0.5666173", "0.56554604", "0.5651...
0.72931826
1
TODO: Warning this method won't work in the case the id fields are not set
@Override public boolean equals(Object object) { if (!(object instanceof LigneCommande)) { return false; } LigneCommande other = (LigneCommande) object; if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) { return false; } return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setId(Integer id) { this.id = id; }", "private Integer getId() { return this.id; }", "public void setId(int id){ this.id = id; }", "public void setId(Long id) {this.id = id;}", "public void setId(Long id) {this.id = id;}", "public void setID(String idIn) {this.id = idIn;}", "public void se...
[ "0.6896886", "0.6838461", "0.67056817", "0.66419715", "0.66419715", "0.6592331", "0.6579151", "0.6579151", "0.6574321", "0.6574321", "0.6574321", "0.6574321", "0.6574321", "0.6574321", "0.65624106", "0.65624106", "0.65441847", "0.65243006", "0.65154546", "0.6487427", "0.64778...
0.0
-1
Publish report on the MicroDocs server
public static CheckResponse publishProject(ServerConfiguration configuration, File microDocsReport, String projectName, String groupName, String version, boolean failOnProblems, String env) throws IOException { String report = loadReport(microDocsReport); String url = configuration.getUrl() + "/api/v1/projects/" + URLParamEncoder.encode(projectName); Logger.get().debug("PUT " + url); initObjectMapper(); HttpResponse<CheckResponse> response = null; try { HttpRequestWithBody request = Unirest.put(configuration.getUrl() + "/api/v1/projects/" + URLParamEncoder.encode(projectName)).queryString("failOnProblems", failOnProblems) .header("content-type", "application/json").header("accept", "application/json"); if (groupName != null && !groupName.trim().isEmpty()) { request = request.queryString("group", groupName); } if (version != null && !version.trim().isEmpty()) { request = request.queryString("version", version); } if (configuration.getUsername() != null && configuration.getPassword() != null) { request = request.basicAuth(configuration.getUsername(), configuration.getPassword()); } if (env != null && !env.trim().isEmpty()) { request = request.queryString("env", env); } response = request.body(report).asObject(CheckResponse.class); if (response.getStatus() != 200) { throw new IOException("Wrong response status " + response.getStatus() + ", expected 200"); } } catch (UnirestException e) { throw new IOException("Failed to send http request: POST " + url, e); } return response.getBody(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void CreateReport() {\n\t\tString fileName = new SimpleDateFormat(\"'Rest_Country_Report_'YYYYMMddHHmm'.html'\").format(new Date());\n\t\tString path = \"Report/\" + fileName;\n\t\treport = new ExtentReports(path);\n\t}", "public interface IReportPublisher\r\n{\r\n\r\n\t/**\r\n\t * \r\n\t * @param ...
[ "0.6126918", "0.5860011", "0.58597827", "0.58120227", "0.580548", "0.5722736", "0.5707662", "0.57024384", "0.56539774", "0.5638591", "0.56112164", "0.55937135", "0.5593359", "0.5559388", "0.55484426", "0.5545981", "0.55402505", "0.5484015", "0.547896", "0.54754317", "0.547013...
0.48512033
87
Check report at the MicroDocs server for problems
public static CheckResponse checkProject(ServerConfiguration configuration, File microDocsReport, String projectName, String env) throws IOException { String report = loadReport(microDocsReport); String url = configuration.getUrl() + "/api/v1/check"; Logger.get().debug("POST " + url); initObjectMapper(); HttpResponse<CheckResponse> response = null; try { HttpRequestWithBody request = Unirest.post(configuration.getUrl() + "/api/v1/check").queryString("project", projectName).header("content-type", "application/json") .header("accept", "application/json"); if (env != null && !env.trim().isEmpty()) { request = request.queryString("env", env); } response = request.body(report).asObject(CheckResponse.class); if (response.getStatus() != 200) { throw new IOException("Wrong response status " + response.getStatus() + ", expected 200"); } } catch (UnirestException e) { throw new IOException("Failed to send http request: POST " + url, e); } return response.getBody(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void know_doc_Report()\n {\n\t boolean knowedgepresent =knowdoc.size()>0;\n\t if(knowedgepresent)\n\t {\n\t\t // System.out.println(\"Knowledge document details report is PRESENT\");\n\t }\n\t else\n\t {\n\t\t System.out.println(\"Knowledge document details report is not present\");\n\t }\n }", ...
[ "0.6846207", "0.6074729", "0.59424615", "0.59301174", "0.5925684", "0.5788269", "0.5579193", "0.54812664", "0.5412117", "0.54024655", "0.5397187", "0.5392817", "0.5361849", "0.5356947", "0.53389573", "0.53372794", "0.5319662", "0.52747804", "0.524859", "0.5245888", "0.5231991...
0.0
-1
Load MicroDocs report as string
private static String loadReport(File microDocsReport) throws IOException { Logger.get().debug("Load " + microDocsReport.getAbsolutePath()); byte[] encoded = Files.readAllBytes(Paths.get(microDocsReport.toURI())); return new String(encoded); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getReport() {\n return reportDoc.toString();\n }", "protected String loadDocumentDetails()\r\n\t{\r\n\t\tsetC_Currency_ID (NO_CURRENCY);\r\n\t\tX_M_Production prod = (X_M_Production)getPO();\r\n\t\tsetDateDoc (prod.getMovementDate());\r\n\t\tsetDateAcct(prod.getMovementDate());\r\n\t\t//\...
[ "0.59444386", "0.5516932", "0.5439363", "0.54296285", "0.53984576", "0.5296626", "0.52669066", "0.51982176", "0.5173028", "0.51648366", "0.5160254", "0.51295316", "0.50610435", "0.49298838", "0.4919688", "0.49107754", "0.4900807", "0.49000397", "0.4898516", "0.4896776", "0.48...
0.79982495
0
Print check response to console
public static boolean printCheckResponse(CheckResponse response, File rootDir) { boolean hasProblems = !"ok".equalsIgnoreCase(response.getStatus()); int errorCount = 0; int warningCount = 0; int noticeCount = 0; if (response.getProblems() != null) { for (CheckProblem problem : response.getProblems()) { switch (problem.getLevel().toLowerCase()) { case "error": errorCount++; break; case "warning": warningCount++; break; case "notice": noticeCount++; break; } } } String message = "\n"; if (errorCount + warningCount + noticeCount > 0) { message += "Project contains problems: "; if (errorCount > 0) { message += errorCount + " error" + (errorCount > 1 ? "s" : "") + ","; } if (warningCount > 0) { message += warningCount + " warning" + (warningCount > 1 ? "s" : "") + ","; } if (noticeCount > 0) { message += noticeCount + " notice" + (noticeCount > 1 ? "s" : "") + ","; } if (message.endsWith(",")) { message = message.substring(0, message.length() - 1); } } else { message += "No problems found"; } if (hasProblems) { Logger.get().error(message); } else { Logger.get().debug(message); } if (response.getProblems() != null) { for (CheckProblem problem : response.getProblems()) { String msg = "\n"; String lineNumber = problem.getLineNumber() > 0 ? ":" + problem.getLineNumber() : ""; String sourceFile = new File(rootDir, "src/main/java/" + problem.getPath() + lineNumber).getPath(); msg += sourceFile + ": " + problem.getLevel() + ": " + problem.getMessage(); if (problem.getClient() != null) { msg += problem.getClient().getSourceLink(); } if (hasProblems) { Logger.get().error(msg); } else { Logger.get().debug(msg); } } } Logger.get().error(""); return !hasProblems; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void printCheck();", "public static void printResponse(String response)\n\t{\n\t\n\t}", "public void printStatus();", "@Test\n public void printResponse(){\n when().get(\"http:://34.223.219.142:1212/ords/hr/countries\")\n .body().prettyPrint();\n\n }", "@Test\n\tpublic void chec...
[ "0.69468784", "0.6297686", "0.6193645", "0.60033727", "0.59729344", "0.57019985", "0.56846774", "0.56309867", "0.56259966", "0.5608875", "0.5589118", "0.5568301", "0.55644685", "0.55338657", "0.55109113", "0.5510673", "0.5505259", "0.54965496", "0.54607004", "0.5410419", "0.5...
0.6119169
3
Gets a list of borrowed books of the current user, in a BookListItem format. Items are sorted by status and then by alphabetical order.
public List<BookListItem> getMyBorrowedBooksList() { return myBorrowedBookList; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<BorrowBook> borrowedBook(int uId) {\n\t\treturn null;\r\n\t}", "@GetMapping(value = \"/{username}/books\")\n public Iterable<Book> listBooksInLibrary(@PathVariable String username,\n @RequestParam(required = false) String author,\n ...
[ "0.7151811", "0.65260977", "0.6395917", "0.63924617", "0.6312575", "0.6290257", "0.6272115", "0.62119436", "0.6167929", "0.61361974", "0.60469335", "0.59528875", "0.5950906", "0.5927544", "0.5850268", "0.5849698", "0.58414966", "0.58400023", "0.58230287", "0.5815091", "0.5801...
0.6977583
1
Gets a list of owned books of the current user, in a BookListItem format Items are sorted by status and then by alphabetical order.
public List<BookListItem> getMyOwnedBooksList() { return myOwnedBookList; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<BorrowBook> borrowedBook(int uId) {\n\t\treturn null;\r\n\t}", "@GetMapping(value = \"/{username}/books\")\n public Iterable<Book> listBooksInLibrary(@PathVariable String username,\n @RequestParam(required = false) String author,\n ...
[ "0.65800095", "0.65671283", "0.6286559", "0.6132574", "0.6038061", "0.59288746", "0.5921263", "0.5896577", "0.5860749", "0.5808811", "0.5800167", "0.57784176", "0.5728368", "0.57021034", "0.568311", "0.56686217", "0.5663212", "0.5603168", "0.5544951", "0.55416274", "0.5524619...
0.7051295
0
Created by mac on 16/7/19.
public interface HttpContract { WelfareService welfareHttp(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "public final void mo51373a() {\n }", "@Override\n public void perish() {\n \n }", "private void kk12() {\n\n\t}", "public void mo6081a() {\n }", "private static void cajas() {\n\t\t\n\t}", "private void m50366E() {\n }", "@Override\n\tpublic ...
[ "0.58931434", "0.56610775", "0.5603612", "0.5577007", "0.55460817", "0.55208546", "0.55039537", "0.5453787", "0.543519", "0.54200685", "0.54137605", "0.54063594", "0.5405094", "0.53969055", "0.53875566", "0.53743595", "0.53743595", "0.53743595", "0.53743595", "0.53743595", "0...
0.0
-1
create object by default constructor
public static Object createObject(String className) { try { Class<?> aClass = Class.forName(className); return createObject(aClass); } catch (ClassNotFoundException e) { e.printStackTrace(); } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "defaultConstructor(){}", "void DefaultConstructor(){}", "public ObjectFactory() {\n\t}", "public ObjectFactory() {\r\n\t}", "private Instantiation(){}", "public ObjectFactory() {}", "public ObjectFactory() {}", "public ObjectFactory() {}", "private SingleObject()\r\n {\r\n }", "private Sing...
[ "0.8136516", "0.7908018", "0.7506667", "0.7502644", "0.74300134", "0.74137414", "0.74137414", "0.74137414", "0.73518497", "0.73303586", "0.72834843", "0.72510713", "0.72510713", "0.72510713", "0.72510713", "0.72510713", "0.72510713", "0.72510713", "0.72510713", "0.72510713", ...
0.0
-1
create object by default constructor
public static Object createObject(Class<?> clazz) { Class[] parameterTypes = new Class[]{}; Object[] initargs = new Object[]{}; return createObject(clazz, parameterTypes, initargs); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "defaultConstructor(){}", "void DefaultConstructor(){}", "public ObjectFactory() {\n\t}", "public ObjectFactory() {\r\n\t}", "private Instantiation(){}", "public ObjectFactory() {}", "public ObjectFactory() {}", "public ObjectFactory() {}", "private SingleObject()\r\n {\r\n }", "private Sing...
[ "0.8136516", "0.7908018", "0.7506667", "0.7502644", "0.74300134", "0.74137414", "0.74137414", "0.74137414", "0.73518497", "0.73303586", "0.72834843", "0.72510713", "0.72510713", "0.72510713", "0.72510713", "0.72510713", "0.72510713", "0.72510713", "0.72510713", "0.72510713", ...
0.0
-1
create object by one parameters constructor
public static Object createObject(Class<?> clazz, Class<?> parameterType, Object initarg) { Class[] parameterTypes = new Class[]{parameterType}; Object[] initargs = new Object[]{initarg}; return createObject(clazz, parameterTypes, initargs); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "T newInstance(Object... args);", "Reproducible newInstance();", "public CMObject newInstance();", "protected abstract void construct();", "public ProductoCreable newInstance(int codigo, String nombre){\r\n \r\n }", "Object create(Object source);", "public T newInstance();", "OBJECT createOB...
[ "0.7110037", "0.6843161", "0.683169", "0.6762074", "0.6727802", "0.6722907", "0.66940075", "0.6691385", "0.66243035", "0.66243035", "0.6591319", "0.6576637", "0.6565706", "0.655283", "0.6540278", "0.6520817", "0.6423153", "0.6394408", "0.6391315", "0.6350878", "0.63407224", ...
0.0
-1
create object by one parameters constructor
public static Object createObject(String className, Class<?> parameterType, Object initarg) { try { Class<?> aClass = Class.forName(className); return createObject(aClass, parameterType, initarg); } catch (ClassNotFoundException e) { e.printStackTrace(); } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "T newInstance(Object... args);", "Reproducible newInstance();", "public CMObject newInstance();", "protected abstract void construct();", "public ProductoCreable newInstance(int codigo, String nombre){\r\n \r\n }", "Object create(Object source);", "public T newInstance();", "OBJECT createOB...
[ "0.7110037", "0.6843161", "0.683169", "0.6762074", "0.6727802", "0.6722907", "0.66940075", "0.6691385", "0.66243035", "0.66243035", "0.6591319", "0.6576637", "0.6565706", "0.655283", "0.6540278", "0.6520817", "0.6423153", "0.6394408", "0.6391315", "0.6350878", "0.63407224", ...
0.0
-1
create object by multiple parameters constructor
public static Object createObject(Class<?> clazz, Class<?>[] parameterTypes, Object[] initargs) { try { Constructor<?> declaredConstructor = clazz.getDeclaredConstructor(parameterTypes); declaredConstructor.setAccessible(true); return declaredConstructor.newInstance(initargs); } catch (NoSuchMethodException e) { e.printStackTrace(); } catch (IllegalAccessException e) { e.printStackTrace(); } catch (InstantiationException e) { e.printStackTrace(); } catch (InvocationTargetException e) { e.printStackTrace(); } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "T newInstance(Object... args);", "HxMethod createConstructor(final String... parameterTypes);", "HxMethod createConstructor(final HxType... parameterTypes);", "private Builder(Class<T> clazz, Object... objects) {\n try {\n Stream<Constructor<?>> constructors = Stream.of(clazz.getDeclaredCon...
[ "0.7066765", "0.69622904", "0.6611714", "0.6592325", "0.6527637", "0.64673996", "0.6402258", "0.63909435", "0.6382656", "0.6282983", "0.62759095", "0.6271012", "0.62456053", "0.6242335", "0.62337697", "0.6225078", "0.61673576", "0.6131773", "0.6110082", "0.6095898", "0.608670...
0.5997489
27
create object by multiple parameters constructor
public static Object createObject(String className, Class<?>[] parameterTypes, Object[] initargs) { try { Class<?> aClass = Class.forName(className); return createObject(aClass, parameterTypes, initargs); } catch (ClassNotFoundException e) { e.printStackTrace(); } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "T newInstance(Object... args);", "HxMethod createConstructor(final String... parameterTypes);", "HxMethod createConstructor(final HxType... parameterTypes);", "private Builder(Class<T> clazz, Object... objects) {\n try {\n Stream<Constructor<?>> constructors = Stream.of(clazz.getDeclaredCon...
[ "0.7066765", "0.69622904", "0.6611714", "0.6592325", "0.6527637", "0.64673996", "0.6402258", "0.63909435", "0.6382656", "0.6282983", "0.62759095", "0.6271012", "0.62456053", "0.6242335", "0.62337697", "0.6225078", "0.61673576", "0.6131773", "0.6110082", "0.6095898", "0.608670...
0.59635437
30
get static field object
public static Object getStaticFieldObject(String className, String filedName) { return getFieldObject(className, null, filedName); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static Field getInstance() {\n if (_instance == null) {\n _instance = new Field();\n }\n\n return _instance;\n }", "public static Object getStaticFieldObject(Class clazz, String filedName) {\n return getFieldObject(clazz, null, filedName);\n }", "Object getOb...
[ "0.72055095", "0.71231544", "0.69482124", "0.6866984", "0.67259884", "0.66759586", "0.6505542", "0.64475393", "0.63159454", "0.63159454", "0.63131845", "0.62661207", "0.62197065", "0.6195339", "0.61270607", "0.61239207", "0.6081509", "0.6078484", "0.6051846", "0.5990059", "0....
0.6876939
3
get static field object
public static Object getStaticFieldObject(Class clazz, String filedName) { return getFieldObject(clazz, null, filedName); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static Field getInstance() {\n if (_instance == null) {\n _instance = new Field();\n }\n\n return _instance;\n }", "Object getObjectField();", "public static Object getStaticFieldObject(String className, String filedName) {\n return getFieldObject(className, nul...
[ "0.72055095", "0.69482124", "0.6876939", "0.6866984", "0.67259884", "0.66759586", "0.6505542", "0.64475393", "0.63159454", "0.63159454", "0.63131845", "0.62661207", "0.62197065", "0.6195339", "0.61270607", "0.61239207", "0.6081509", "0.6078484", "0.6051846", "0.5990059", "0.5...
0.71231544
1
set static field object
public static void setStaticFieldObject(String classname, String filedName, Object filedVaule) { setFieldObject(classname, null, filedName, filedVaule); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void setStaticFieldObject(Class clazz, String filedName, Object filedVaule) {\n setFieldObject(clazz, null, filedName, filedVaule);\n }", "public void setStatic() {\r\n\t\tthis.isStatic = true;\r\n\t}", "private <T> void setField(Field field, Object object, T fieldInstance) {\n t...
[ "0.67770976", "0.65559906", "0.6515741", "0.6062065", "0.59346116", "0.58411634", "0.5840441", "0.58007187", "0.578879", "0.57658756", "0.5721761", "0.5707071", "0.569923", "0.5694337", "0.5667221", "0.56172836", "0.55921763", "0.5591376", "0.55846447", "0.5577712", "0.557434...
0.6783079
0
set static field object
public static void setStaticFieldObject(Class clazz, String filedName, Object filedVaule) { setFieldObject(clazz, null, filedName, filedVaule); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void setStaticFieldObject(String classname, String filedName, Object filedVaule) {\n setFieldObject(classname, null, filedName, filedVaule);\n }", "public void setStatic() {\r\n\t\tthis.isStatic = true;\r\n\t}", "private <T> void setField(Field field, Object object, T fieldInstance) {\n...
[ "0.6783079", "0.65559906", "0.6515741", "0.6062065", "0.59346116", "0.58411634", "0.5840441", "0.58007187", "0.578879", "0.57658756", "0.5721761", "0.5707071", "0.569923", "0.5694337", "0.5667221", "0.56172836", "0.55921763", "0.5591376", "0.55846447", "0.5577712", "0.5574344...
0.67770976
1
/ A B C A D E G A D F H A BD C E F GH
static void printRootToLeaf(Tree<Character> root, LinkedList<Character> list) { if (root == null) { System.out.println(""); return; } if (root.left == null && root.right == null) { for(Character c: list) System.out.print(c); System.out.println(root.value); return; } list.add(root.value); if (root.left != null) { printRootToLeaf(root.left, list); } if (root.right != null) { printRootToLeaf(root.right, list); } list.removeLast(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tString xStringA = scan.next() + \"111111\";\n\t\tchar[] xCharA = xStringA.toCharArray();\n\t\tString[] xAlpha = new String[26];\n\t\txAlpha[0]=\"a\";\n\t\txAlpha[1]=\"B\";\n\t\txAlpha[2]=\"C\";\n\t\txAlpha[3]=\"D\";\n\t\txAlp...
[ "0.5958107", "0.5910041", "0.5837929", "0.5830677", "0.57683444", "0.5732405", "0.57138926", "0.5712954", "0.56855416", "0.5664665", "0.56630826", "0.56555694", "0.5645264", "0.5603028", "0.55965793", "0.5584338", "0.55499494", "0.5538818", "0.553183", "0.5528712", "0.5524844...
0.0
-1
setup file and stream
public static void main (String[] args) throws IOException { File inFile = new File("/Users/kbye10/Documents/CS 250 test files/sample1.data"); FileInputStream inStream = new FileInputStream(inFile); //set up an array to read data in int fileSize = (int)inFile.length(); byte[] byteArray = new byte[fileSize]; //read data in and display them inStream.read(byteArray); for (int i = 0; i < fileSize; i++) { System.out.println(byteArray[i]); } inStream.close(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void init()\r\n {\n readFile(inputFile);\r\n writeInfoFile();\r\n }", "void init() throws IOException {\n\t\tif (this.type==FILE){\n\t\t\tstream.init(new FileInputStream(name));\n\t\t}\n\t\telse{\n\t\t\tURL url = new URL(name);\n\t\t\tstream.init((url.openStream()));\n\t\t}\n\t}", "p...
[ "0.69274837", "0.68754923", "0.6693016", "0.6588723", "0.6300381", "0.62351197", "0.62116385", "0.6058642", "0.6056572", "0.60332036", "0.5966571", "0.5947361", "0.59260565", "0.59174657", "0.5895096", "0.589394", "0.58806825", "0.58692974", "0.5849725", "0.584434", "0.578387...
0.0
-1
This is the constructor for HFGUI
public HFGUI() { initComponents(); HF = new HELPFit(); // This two line will display the window on the center of the screen Dimension dim = Toolkit.getDefaultToolkit().getScreenSize(); this.setLocation(dim.width/2-this.getSize().width/2, dim.height/2-this.getSize().height/2); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Husdjurshotell(){}", "public Hazmat() {\n }", "public HSIImage()\r\n {\r\n }", "public HealthUI() {\n init();\n }", "private ChessPieceGUIFactory() {\r\n\r\n\t}", "public Humano() {\n\t\t\n\t\t// TODO Auto-generated constructor stub\n\t}", "private UI()\n {\n this(null,...
[ "0.69001323", "0.6753322", "0.6736498", "0.6722033", "0.6586425", "0.6438899", "0.6369911", "0.6299743", "0.6283529", "0.6248939", "0.62405735", "0.6228745", "0.62220913", "0.6214444", "0.6208375", "0.6201746", "0.61812645", "0.6173744", "0.6151628", "0.6133499", "0.61248416"...
0.6270413
9
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() { jPanel5 = new javax.swing.JPanel(); jLabel4 = new javax.swing.JLabel(); jLabel5 = new javax.swing.JLabel(); userNameTF1 = new javax.swing.JTextField(); passwordTF1 = new javax.swing.JTextField(); jButton2 = new javax.swing.JButton(); jSeparator2 = new javax.swing.JSeparator(); jPanel6 = new javax.swing.JPanel(); jLabel6 = new javax.swing.JLabel(); jLabel7 = new javax.swing.JLabel(); userNameTF2 = new javax.swing.JTextField(); passwordTF2 = new javax.swing.JTextField(); jButton3 = new javax.swing.JButton(); jSeparator3 = new javax.swing.JSeparator(); jSeparator5 = new javax.swing.JSeparator(); jSeparator6 = new javax.swing.JSeparator(); jPanel1 = new javax.swing.JPanel(); HELPFitLabel = new javax.swing.JLabel(); jPanel2 = new javax.swing.JPanel(); saveLbl = new javax.swing.JLabel(); uploadLbl = new javax.swing.JLabel(); minimizeBtn = new javax.swing.JLabel(); closeBtn = new javax.swing.JLabel(); frameDrag = new javax.swing.JLabel(); jPanel4 = new javax.swing.JPanel(); jLabel2 = new javax.swing.JLabel(); jLabel3 = new javax.swing.JLabel(); userNameTF = new javax.swing.JTextField(); logInBtn = new javax.swing.JButton(); jSeparator1 = new javax.swing.JSeparator(); jSeparator4 = new javax.swing.JSeparator(); signUpLbl = new javax.swing.JLabel(); passwordTF = new javax.swing.JPasswordField(); jPanel5.setBackground(new java.awt.Color(33, 45, 68)); jLabel4.setForeground(new java.awt.Color(236, 240, 241)); jLabel4.setText("User Name: "); jLabel5.setForeground(new java.awt.Color(236, 240, 241)); jLabel5.setText("Password: "); userNameTF1.setBackground(new java.awt.Color(93, 97, 125)); userNameTF1.setBorder(null); passwordTF1.setBackground(new java.awt.Color(93, 97, 125)); passwordTF1.setBorder(null); jButton2.setText("Login"); jButton2.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton2ActionPerformed(evt); } }); javax.swing.GroupLayout jPanel5Layout = new javax.swing.GroupLayout(jPanel5); jPanel5.setLayout(jPanel5Layout); jPanel5Layout.setHorizontalGroup( jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel5Layout.createSequentialGroup() .addGap(266, 266, 266) .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(jLabel4) .addComponent(userNameTF1) .addComponent(jLabel5) .addComponent(passwordTF1, javax.swing.GroupLayout.DEFAULT_SIZE, 277, Short.MAX_VALUE) .addGroup(jPanel5Layout.createSequentialGroup() .addGap(57, 57, 57) .addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE, 143, javax.swing.GroupLayout.PREFERRED_SIZE)) .addComponent(jSeparator2)) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) ); jPanel5Layout.setVerticalGroup( jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel5Layout.createSequentialGroup() .addGap(21, 21, 21) .addComponent(jLabel4) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(userNameTF1, javax.swing.GroupLayout.PREFERRED_SIZE, 38, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jSeparator2, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(35, 35, 35) .addComponent(jLabel5) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(passwordTF1, javax.swing.GroupLayout.PREFERRED_SIZE, 38, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(64, 64, 64) .addComponent(jButton2) .addContainerGap(28, Short.MAX_VALUE)) ); jPanel6.setBackground(new java.awt.Color(33, 45, 68)); jLabel6.setForeground(new java.awt.Color(236, 240, 241)); jLabel6.setText("User Name: "); jLabel7.setForeground(new java.awt.Color(236, 240, 241)); jLabel7.setText("Password: "); userNameTF2.setBackground(new java.awt.Color(93, 97, 125)); userNameTF2.setBorder(null); passwordTF2.setBackground(new java.awt.Color(93, 97, 125)); passwordTF2.setBorder(null); jButton3.setText("Login"); jButton3.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton3ActionPerformed(evt); } }); javax.swing.GroupLayout jPanel6Layout = new javax.swing.GroupLayout(jPanel6); jPanel6.setLayout(jPanel6Layout); jPanel6Layout.setHorizontalGroup( jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel6Layout.createSequentialGroup() .addGap(266, 266, 266) .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(jLabel6) .addComponent(userNameTF2) .addComponent(jLabel7) .addComponent(passwordTF2, javax.swing.GroupLayout.DEFAULT_SIZE, 277, Short.MAX_VALUE) .addGroup(jPanel6Layout.createSequentialGroup() .addGap(57, 57, 57) .addComponent(jButton3, javax.swing.GroupLayout.PREFERRED_SIZE, 143, javax.swing.GroupLayout.PREFERRED_SIZE)) .addComponent(jSeparator3)) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) ); jPanel6Layout.setVerticalGroup( jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel6Layout.createSequentialGroup() .addGap(21, 21, 21) .addComponent(jLabel6) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(userNameTF2, javax.swing.GroupLayout.PREFERRED_SIZE, 38, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jSeparator3, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(35, 35, 35) .addComponent(jLabel7) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(passwordTF2, javax.swing.GroupLayout.PREFERRED_SIZE, 38, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(64, 64, 64) .addComponent(jButton3) .addContainerGap(28, Short.MAX_VALUE)) ); setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); setUndecorated(true); jPanel1.setBackground(new java.awt.Color(33, 45, 68)); jPanel1.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout()); HELPFitLabel.setFont(new java.awt.Font("Nirmala UI Semilight", 1, 48)); // NOI18N HELPFitLabel.setForeground(new java.awt.Color(236, 240, 241)); HELPFitLabel.setText("HELP Fit"); jPanel1.add(HELPFitLabel, new org.netbeans.lib.awtextra.AbsoluteConstraints(102, 79, -1, -1)); jPanel2.setBackground(new java.awt.Color(33, 45, 68)); jPanel2.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout()); saveLbl.setIcon(new javax.swing.ImageIcon(getClass().getResource("/fitnessApp/img/Save_24px.png"))); // NOI18N saveLbl.setToolTipText("Load Data"); saveLbl.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { saveLblMouseClicked(evt); } }); jPanel2.add(saveLbl, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 10, -1, -1)); uploadLbl.setIcon(new javax.swing.ImageIcon(getClass().getResource("/fitnessApp/img/Upload_24px.png"))); // NOI18N uploadLbl.setToolTipText("Save Data"); uploadLbl.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { uploadLblMouseClicked(evt); } }); jPanel2.add(uploadLbl, new org.netbeans.lib.awtextra.AbsoluteConstraints(40, 10, -1, -1)); minimizeBtn.setIcon(new javax.swing.ImageIcon(getClass().getResource("/fitnessApp/img/Minus_24px.png"))); // NOI18N minimizeBtn.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { minimizeBtnMouseClicked(evt); } }); jPanel2.add(minimizeBtn, new org.netbeans.lib.awtextra.AbsoluteConstraints(350, 10, -1, -1)); closeBtn.setIcon(new javax.swing.ImageIcon(getClass().getResource("/fitnessApp/img/Delete_24px.png"))); // NOI18N closeBtn.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { closeBtnMouseClicked(evt); } }); jPanel2.add(closeBtn, new org.netbeans.lib.awtextra.AbsoluteConstraints(380, 10, -1, -1)); frameDrag.addMouseMotionListener(new java.awt.event.MouseMotionAdapter() { public void mouseDragged(java.awt.event.MouseEvent evt) { frameDragMouseDragged(evt); } }); frameDrag.addMouseListener(new java.awt.event.MouseAdapter() { public void mousePressed(java.awt.event.MouseEvent evt) { frameDragMousePressed(evt); } }); jPanel2.add(frameDrag, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 410, 40)); jPanel1.add(jPanel2, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, -1, 44)); jPanel4.setBackground(new java.awt.Color(33, 45, 68)); jPanel4.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout()); jLabel2.setFont(new java.awt.Font("Tahoma", 0, 18)); // NOI18N jLabel2.setForeground(new java.awt.Color(236, 240, 241)); jLabel2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/fitnessApp/img/User_24px.png"))); // NOI18N jPanel4.add(jLabel2, new org.netbeans.lib.awtextra.AbsoluteConstraints(50, 74, -1, 30)); jLabel3.setFont(new java.awt.Font("Tahoma", 0, 18)); // NOI18N jLabel3.setForeground(new java.awt.Color(236, 240, 241)); jLabel3.setIcon(new javax.swing.ImageIcon(getClass().getResource("/fitnessApp/img/Password_24px.png"))); // NOI18N jPanel4.add(jLabel3, new org.netbeans.lib.awtextra.AbsoluteConstraints(50, 154, -1, 30)); userNameTF.setBackground(new java.awt.Color(33, 45, 68)); userNameTF.setFont(new java.awt.Font("Tahoma", 0, 18)); // NOI18N userNameTF.setForeground(new java.awt.Color(255, 255, 255)); userNameTF.setBorder(null); userNameTF.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { userNameTFActionPerformed(evt); } }); jPanel4.add(userNameTF, new org.netbeans.lib.awtextra.AbsoluteConstraints(84, 70, 280, 37)); logInBtn.setBackground(new java.awt.Color(83, 197, 185)); logInBtn.setFont(new java.awt.Font("Ubuntu Mono", 0, 14)); // NOI18N logInBtn.setText("Log In"); logInBtn.setBorder(null); logInBtn.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { logInBtnActionPerformed(evt); } }); jPanel4.add(logInBtn, new org.netbeans.lib.awtextra.AbsoluteConstraints(47, 248, 309, 44)); jPanel4.add(jSeparator1, new org.netbeans.lib.awtextra.AbsoluteConstraints(47, 111, 314, 10)); jPanel4.add(jSeparator4, new org.netbeans.lib.awtextra.AbsoluteConstraints(50, 190, 313, 10)); signUpLbl.setForeground(new java.awt.Color(255, 255, 255)); signUpLbl.setText("Sign Up for free account!"); signUpLbl.setToolTipText("Click to sign up!"); signUpLbl.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR)); signUpLbl.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { signUpLblMouseClicked(evt); } }); jPanel4.add(signUpLbl, new org.netbeans.lib.awtextra.AbsoluteConstraints(139, 298, -1, -1)); passwordTF.setBackground(new java.awt.Color(33, 45, 68)); passwordTF.setForeground(new java.awt.Color(255, 255, 255)); passwordTF.setBorder(null); jPanel4.add(passwordTF, new org.netbeans.lib.awtextra.AbsoluteConstraints(80, 160, 280, 30)); jPanel1.add(jPanel4, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 149, 410, 370)); javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); getContentPane().setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup() .addGap(0, 0, Short.MAX_VALUE) .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(0, 0, 0)) ); layout.setVerticalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) ); pack(); }
{ "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.73206544", "0.7291311", "0.7291311", "0.7291311", "0.7286492", "0.7249181", "0.7213362", "0.72085494", "0.71965617", "0.7190475", "0.7184897", "0.7159234", "0.71483016", "0.7094075", "0.7081491", "0.70579433", "0.6987627", "0.69776064", "0.69552463", "0.69549114", "0.69453...
0.0
-1
GENLAST:event_jButton3ActionPerformed This function will save the HELPFit controller when the save label is clicked
private void saveLblMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_saveLblMouseClicked FileHandling.saveToFile(this, HF); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void jButton_SaveActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton_SaveActionPerformed\n // TODO add your handling code here:\n saveToFile();\n //new FittingCriteria(this.digPopGUIInformation, this.currentMarkovChainId).setVisible(true);\n new StepThree(...
[ "0.70853966", "0.7083465", "0.69135785", "0.68917555", "0.68863046", "0.67930615", "0.6772786", "0.6698217", "0.66949195", "0.6573217", "0.65270835", "0.65040773", "0.6477437", "0.6471442", "0.6466068", "0.64473563", "0.6426764", "0.6411199", "0.6403949", "0.6398982", "0.6389...
0.66721433
9
GENLAST:event_saveLblMouseClicked This function will allow the user to choose a file to load when the user click on the upload label
private void uploadLblMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_uploadLblMouseClicked if (HF != null) { int n = JOptionPane.showConfirmDialog(this, "Would you like to save your changes first", "Warning", JOptionPane.YES_NO_CANCEL_OPTION); if (n == JOptionPane.YES_OPTION) { FileHandling.saveToFile(this, HF); } } HF = (HELPFit) FileHandling.readFromFile(this); HF.updateSequences(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void saveLblMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_saveLblMouseClicked\n FileHandling.saveToFile(this, HF);\n }", "void selectFile(){\n JLabel lblFileName = new JLabel();\n fc.setCurrentDirectory(new java.io.File(\"saved\" + File.separator));\n fc.se...
[ "0.7667868", "0.7068082", "0.7065335", "0.70434374", "0.6885779", "0.6814858", "0.6768562", "0.6746713", "0.67412925", "0.6696827", "0.66289264", "0.6624671", "0.6614909", "0.65418935", "0.6540668", "0.6537481", "0.64917827", "0.6491714", "0.6490893", "0.64896613", "0.6478477...
0.797026
0
GENLAST:event_uploadLblMouseClicked This function will create a new user when the sign up label is clicked
private void signUpLblMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_signUpLblMouseClicked String[] options = { "Trainer", "Member" }; userNameTF.setText(""); passwordTF.setText(""); int opt = JOptionPane.showOptionDialog(this, "What would you wish to sign up as? ", "Trainer or Member?", JOptionPane.DEFAULT_OPTION, JOptionPane.QUESTION_MESSAGE, null, options, options[1]); this.setVisible(false); if(opt == 0){ SignUpDialogTrainer tDialog = new SignUpDialogTrainer(this, true); tDialog.setVisible(true); } else if(opt == 1){ SignUpDialogMember mDialog = new SignUpDialogMember(this, true); mDialog.setVisible(true); } this.setVisible(true); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void onSignUpClick() {\n\t\tString uid = regview.getUsername();\n\t\tString pw = regview.getPassword();\n\t\tString na = regview.getName();\n\t\tString em = regview.getEmail();\n\t\tString text = \"\";\n\t\tif(uid.equals(\"\") || pw.equals(\"\") || na.equals(\"\")|| em.equals(\"\")){\n\t\t\ttext = \"Please ...
[ "0.7020019", "0.6749479", "0.6522036", "0.64816856", "0.6443338", "0.6343812", "0.6295376", "0.6281412", "0.62605476", "0.62417144", "0.6237015", "0.6224201", "0.6203378", "0.619947", "0.61934656", "0.61439055", "0.612265", "0.6120373", "0.6119015", "0.60968816", "0.60559505"...
0.6685221
2
GENLAST:event_signUpLblMouseClicked This function will pass the user into the main menu frame if the username and password that is entered is matched when the sign in button is clicked
private void logInBtnActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_logInBtnActionPerformed User theUser = null; String[] options = {"OK"}; String userName = userNameTF.getText(); String password = passwordTF.getText(); theUser = HF.findUser(userName); if (userNameTF.getText().equals("") || passwordTF.getText().equals("")){ JOptionPane.showOptionDialog(this, "Please fill in your username " + "and password!", "", JOptionPane.ERROR_MESSAGE, JOptionPane.INFORMATION_MESSAGE, null, options, options[0] ); } else if (theUser == null) { JOptionPane.showOptionDialog(this, "No such username!", "", JOptionPane.ERROR_MESSAGE, JOptionPane.INFORMATION_MESSAGE, null, options, options[0] ); } else if (!theUser.getPassword().equals(password)) { JOptionPane.showOptionDialog(this, "Invalid password!", "", JOptionPane.ERROR_MESSAGE, JOptionPane.INFORMATION_MESSAGE, null, options, options[0] ); } else { if (theUser instanceof Trainer){ TrainerMenu tm = new TrainerMenu(this, (Trainer)theUser); tm.setVisible(true); this.setVisible(false); } else if (theUser instanceof Member){ MemberMenu mm = new MemberMenu(this, (Member)theUser); mm.setVisible(true); this.setVisible(false); } userNameTF.setText(""); passwordTF.setText(""); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void signUpLblMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_signUpLblMouseClicked\n String[] options = {\n \"Trainer\", \"Member\"\n };\n userNameTF.setText(\"\");\n passwordTF.setText(\"\");\n int opt = JOptionPane.showOptionDialog(this,\n ...
[ "0.7232221", "0.69999987", "0.69970644", "0.6931367", "0.6903687", "0.68381673", "0.6807327", "0.67229927", "0.6705214", "0.66582644", "0.66182303", "0.6584949", "0.6531779", "0.65290374", "0.6518892", "0.6518653", "0.6515557", "0.6509795", "0.6506445", "0.65046203", "0.64976...
0.7514365
0
GENLAST:event_logInBtnActionPerformed This function will exit the program when the close label is clicked
private void closeBtnMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_closeBtnMouseClicked System.exit(0); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void formDashboardMainButtonLogoutActionPerformed(java.awt.event.ActionEvent evt) {\n try {\n int action = JOptionPane.showConfirmDialog(null,\n Constanta.Messages.MESSAGE_CONFIRM_LOGOUT,\n Constanta.Messages.BANNER_CONFIRM,\n JOpti...
[ "0.73812103", "0.7150976", "0.7107635", "0.7019407", "0.6977268", "0.696473", "0.69620895", "0.6953349", "0.6941934", "0.692223", "0.6855651", "0.68448526", "0.6797004", "0.6794821", "0.67664725", "0.6766236", "0.6763168", "0.6751648", "0.67419297", "0.6727339", "0.6725199", ...
0.67415965
19
GENLAST:event_closeBtnMouseClicked This function will minimize the window when the minimize label is clicked
private void minimizeBtnMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_minimizeBtnMouseClicked this.setState(JFrame.ICONIFIED); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void jb_minimizeActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jb_minimizeActionPerformed\n this.setState(MainFrame.ICONIFIED);\n }", "private void jb_MinimizeActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jb_MinimizeActionPerformed\n this.setState...
[ "0.7502419", "0.7065271", "0.6947358", "0.68999493", "0.67174363", "0.65461874", "0.6492544", "0.64595896", "0.64562404", "0.6455433", "0.64491916", "0.64416933", "0.6390728", "0.6359375", "0.63375056", "0.6302279", "0.6281112", "0.6279938", "0.6266406", "0.62662464", "0.6260...
0.7899862
0
GENLAST:event_minimizeBtnMouseClicked This function will allow the user to drag the dragFrame when the user dragging the frame
private void frameDragMouseDragged(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_frameDragMouseDragged int x = evt.getXOnScreen(); int y = evt.getYOnScreen(); this.setLocation(x - xMouse, y - yMouse); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void minimizeBtnMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_minimizeBtnMouseClicked\n this.setState(JFrame.ICONIFIED);\n }", "private void moveablePane(){\n dragPane.setOnMousePressed(pressEvent -> dragPane.setOnMouseDragged(dragEvent -> {\n Stage stage = (S...
[ "0.6959992", "0.67584187", "0.67030746", "0.6688563", "0.640738", "0.62300414", "0.61796576", "0.6173199", "0.60983413", "0.59596527", "0.5940293", "0.59394455", "0.5869051", "0.5819794", "0.57554364", "0.57535213", "0.57534546", "0.57525253", "0.57480705", "0.57433313", "0.5...
0.62375313
5
GENLAST:event_frameDragMouseDragged This function will get the location of the mouse when the user click on the dragFrame
private void frameDragMousePressed(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_frameDragMousePressed xMouse = evt.getX(); yMouse = evt.getY(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void frameDragMouseDragged(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_frameDragMouseDragged\n int x = evt.getXOnScreen();\n int y = evt.getYOnScreen();\n \n this.setLocation(x - xMouse, y - yMouse);\n }", "public void mouseDragged(MouseEvent e) {\n mouseX ...
[ "0.7413575", "0.6973434", "0.6911846", "0.6830274", "0.6813996", "0.6811594", "0.68039095", "0.6796008", "0.6791747", "0.6774061", "0.67737067", "0.67494774", "0.6706156", "0.66906124", "0.6646271", "0.66403705", "0.66220725", "0.6607143", "0.6598947", "0.65338707", "0.653387...
0.80749726
0
GENLAST:event_userNameTFActionPerformed This function will is used to get the HF controller
public HELPFit getHF(){ return HF; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public java.lang.String getControllername() {\n\treturn controllername;\n}", "public String getMHFName () {\n \n return \"MHF_\" + this.username;\n }", "@Override\n\t\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\t\tuserName = (String) JOptionPane.showInputDialog(fr...
[ "0.5720372", "0.5649361", "0.5611431", "0.53600043", "0.5344664", "0.51955247", "0.515839", "0.51543987", "0.5134407", "0.5114172", "0.51015395", "0.50673985", "0.50424314", "0.49914846", "0.49705842", "0.4968032", "0.49387088", "0.49352604", "0.4906208", "0.48905212", "0.488...
0.48939306
19
This is the main function that will be run when the program is executed.
public static void main(String args[]) { /* Set the Nimbus look and feel */ //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) "> /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel. * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html */ try { for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) { if ("Nimbus".equals(info.getName())) { javax.swing.UIManager.setLookAndFeel(info.getClassName()); break; } } } catch (ClassNotFoundException ex) { java.util.logging.Logger.getLogger(HFGUI.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); } catch (InstantiationException ex) { java.util.logging.Logger.getLogger(HFGUI.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); } catch (IllegalAccessException ex) { java.util.logging.Logger.getLogger(HFGUI.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); } catch (javax.swing.UnsupportedLookAndFeelException ex) { java.util.logging.Logger.getLogger(HFGUI.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); } //</editor-fold> /* Create and display the form */ java.awt.EventQueue.invokeLater(new Runnable() { public void run() { new HFGUI().setVisible(true); } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main()\n\t{\n\t}", "public static void main() {\n \n }", "public static void main() {\n }", "public static void main(){\n\t}", "public void main(){\n }", "public static void main (String []args){\n }", "public static void main(String []args){\n\n }", "public s...
[ "0.86504996", "0.86435306", "0.8487305", "0.847491", "0.8064853", "0.8044531", "0.79089797", "0.7884215", "0.784589", "0.78439057", "0.78439057", "0.7821701", "0.7816558", "0.78115565", "0.78115565", "0.78016174", "0.78016174", "0.779274", "0.7772909", "0.774755", "0.7740234"...
0.0
-1
Add a switch to the database.
public boolean addSwitch(SwitchData sw, Collection<PortData> portDataEntries) { log.debug("Adding switch {}", sw); ArrayList<WriteOp> groupOp = new ArrayList<>(); KVSwitch rcSwitch = new KVSwitch(sw.getDpid()); rcSwitch.setStatus(KVSwitch.STATUS.ACTIVE); IKVClient client = DataStoreClient.getClient(); // XXX Is ForceCreating Switch on DB OK here? // If ForceCreating, who ever is calling this method needs // to assure that DPID is unique cluster-wide, etc. groupOp.add(rcSwitch.forceCreateOp(client)); for (PortData portData : portDataEntries) { KVPort rcPort = new KVPort(sw.getDpid(), portData.getPortNumber()); rcPort.setStatus(KVPort.STATUS.ACTIVE); groupOp.add(rcPort.forceCreateOp(client)); } boolean failed = KVObject.multiWrite(groupOp); if (failed) { log.error("Adding Switch {} and its ports failed.", sw.getDpid()); for (WriteOp op : groupOp) { log.debug("Operation:{} for {} - Result:{}", op.getOperation(), op.getObject(), op.getStatus()); // If we changed the operation from ForceCreate to // Conditional operation (Create/Update) then we should retry here. } } return !failed; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addSwitch(ModelSwitch s) {\r\n\t\tswitches.add(s);\r\n\t}", "public void add_switch(String symbol, SLR1_automat.State state) throws Exception;", "@Override\n\tpublic void addedSwitch(IOFSwitch sw) \n\t{\n\n\t}", "void addWay(Way w) {\n ways.put(w.id, w);\n }", "private void addSeatToD...
[ "0.6875865", "0.5953554", "0.5953115", "0.5834511", "0.5382228", "0.53160787", "0.5267795", "0.5207601", "0.51392245", "0.51392245", "0.5111619", "0.50932467", "0.50807124", "0.50022227", "0.49762166", "0.49608308", "0.49441096", "0.4931249", "0.49304795", "0.49029487", "0.49...
0.59204507
3
Update a switch as inactive in the database.
public boolean deactivateSwitch(SwitchData sw, Collection<PortData> portDataEntries) { log.debug("Deactivating switch {}", sw); KVSwitch rcSwitch = new KVSwitch(sw.getDpid()); IKVClient client = DataStoreClient.getClient(); List<WriteOp> groupOp = new ArrayList<>(); rcSwitch.setStatus(KVSwitch.STATUS.INACTIVE); groupOp.add(rcSwitch.forceCreateOp(client)); for (PortData portData : portDataEntries) { KVPort rcPort = new KVPort(sw.getDpid(), portData.getPortNumber()); rcPort.setStatus(KVPort.STATUS.INACTIVE); groupOp.add(rcPort.forceCreateOp(client)); } boolean failed = KVObject.multiWrite(groupOp); return !failed; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void setInactive() {\r\n\t\tactive = false;\r\n\t}", "public void setInactive() {\n\t\tactive = false;\n\t}", "public final void setInactive(java.lang.Boolean inactive)\r\n\t{\r\n\t\tsetInactive(getContext(), inactive);\r\n\t}", "void setInactive(boolean aInactive) {\n/* 4829 */ this.inactive =...
[ "0.6492867", "0.63135403", "0.6162317", "0.58157265", "0.57110524", "0.5690543", "0.56293756", "0.557128", "0.55696774", "0.5520279", "0.5518723", "0.5492863", "0.54269946", "0.54166704", "0.5384558", "0.5350669", "0.5345114", "0.5345114", "0.5345114", "0.53386205", "0.532690...
0.50617594
69
Add a port to the database.
public boolean addPort(PortData port) { log.debug("Adding port {}", port); KVPort rcPort = new KVPort(port.getDpid(), port.getPortNumber()); rcPort.setStatus(KVPort.STATUS.ACTIVE); rcPort.forceCreate(); // TODO add description into KVPort //rcPort.setDescription(port.getDescription()); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setDatabasePort(Integer databasePort) {\n this.databasePort = databasePort;\n }", "public T withPort(final int port) {\n with(Dbms.class, d -> d.mutator().setPort(port));\n return self();\n }", "public void addPortNumber() throws JNCException {\n setLeafValue(Epc.N...
[ "0.66660535", "0.6513884", "0.6403386", "0.6402862", "0.6338482", "0.6315792", "0.62641764", "0.62078714", "0.61610365", "0.6132179", "0.6132179", "0.599544", "0.59840417", "0.5953615", "0.5947357", "0.5944805", "0.5935739", "0.5926231", "0.5926231", "0.5926231", "0.5926231",...
0.6179682
8
Update a port as inactive in the database.
public boolean deactivatePort(PortData port) { log.debug("Deactivating port {}", port); KVPort rcPort = new KVPort(port.getDpid(), port.getPortNumber()); rcPort.setStatus(STATUS.INACTIVE); rcPort.forceCreate(); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void disablePort() {\r\n\r\n\t\tif (port != null) {\r\n\t\t\tport.disablePort();\r\n\t\t\tactive = false;\r\n\t\t\tport = null;\r\n\t\t}\r\n\r\n\t}", "protected void setInactive() {\r\n\t\tactive = false;\r\n\t}", "public void setInactive() {\n\t\tactive = false;\n\t}", "public final void setInactive(...
[ "0.6087686", "0.5995192", "0.58799464", "0.5728837", "0.5619249", "0.5450809", "0.5386699", "0.53815186", "0.53351384", "0.53351384", "0.5301691", "0.5269663", "0.52165943", "0.52165943", "0.5216438", "0.52123284", "0.51983416", "0.5183166", "0.51747906", "0.5157236", "0.5157...
0.6412453
0
Add a link to the database.
public boolean addLink(LinkData link) { log.debug("Adding link {}", link); KVLink rcLink = new KVLink(link.getSrc().getDpid(), link.getSrc().getPortNumber(), link.getDst().getDpid(), link.getDst().getPortNumber()); // XXX This method is called only by discovery, // which means what we are trying to write currently is the truth // so we can force write here // // TODO: We need to check for errors rcLink.setStatus(KVLink.STATUS.ACTIVE); rcLink.forceCreate(); return true; // Success }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Link add(Link link);", "public void addlink(TparselinksEntity newlink);", "boolean insertLink(Link link);", "@Override\n\tpublic int addLink(Link link) {\n\t\treturn 0;\n\t}", "public void AddLink() {\n snake.add(tail + 1, new Pair(snake.get(tail).GetFirst(), snake.get(tail).GetSecond())); //...
[ "0.7140549", "0.6991282", "0.66674685", "0.6664942", "0.66347337", "0.6613627", "0.64935046", "0.6449619", "0.63956", "0.631136", "0.6299583", "0.61026144", "0.6096856", "0.6071986", "0.6060856", "0.6060856", "0.6060856", "0.60431564", "0.5972875", "0.5958504", "0.59504426", ...
0.6342828
9
Add a device to the database.
public boolean addHost(HostData device) { log.debug("Adding host into DB. mac {}", device.getMac()); KVDevice rcDevice = new KVDevice(device.getMac().toBytes()); for (SwitchPort sp : device.getAttachmentPoints()) { byte[] portId = KVPort.getPortID(sp.getDpid(), sp.getPortNumber()); rcDevice.addPortId(portId); } rcDevice.forceCreate(); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract void addDevice(Context context, NADevice device);", "public void addDevice()\r\n\t\t{\n\t\t\t\r\n\t\t\tSystem.out.println(\" Enter Device Name \");\r\n\t\t\tString devName = sc.nextLine();\r\n\t\t\t\r\n\t\t\tSystem.out.println(\"Enter cost of the device \");\r\n\t\t\tint devCost = Integer.parseIn...
[ "0.7007526", "0.6973887", "0.6950635", "0.6876648", "0.6806374", "0.6746809", "0.6637509", "0.65922034", "0.6525852", "0.6491386", "0.6409738", "0.6409738", "0.6146357", "0.6134286", "0.6068316", "0.60134256", "0.6010534", "0.5977", "0.5962453", "0.5931269", "0.59302187", "...
0.5592655
34
Remove a device from the database.
public boolean removeHost(HostData device) { log.debug("Removing host into DB. mac {}", device.getMac()); KVDevice rcDevice = new KVDevice(device.getMac().toBytes()); rcDevice.forceDelete(); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract void removeDevice(Context context, NADevice device);", "void removeDevice(String device) {\n availableDevices.remove(device);\n resetSelectedDevice();\n }", "void removeDevice(int networkAddress);", "int deleteByPrimaryKey(String deviceNo);", "public int removeCustomDevice(...
[ "0.7034846", "0.67180705", "0.66307235", "0.66039914", "0.6599183", "0.65817153", "0.65353197", "0.6408606", "0.6370969", "0.6347897", "0.63333017", "0.6325911", "0.6167303", "0.61259645", "0.60560936", "0.60428345", "0.6029116", "0.6017443", "0.59977853", "0.59687626", "0.59...
0.58727056
24
Iterates through sentences and induces new categories from local contexts
public GrammarInductionFromTags(Model<Grammar> model, InductionCharts<Grammar> shared_charts, Grammar global_grammar, List<POS> tags) { super(model, shared_charts, new ArrayList<>()); this.grammar = global_grammar; tagsToInduce = new HashSet<>(tags); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void makeContexts() {\n \n // make map of ContextTreeNode objects for all taxonomic contexts, indexed by root node name\n HashMap<String, ContextTreeNode> contextNodesByRootName = new HashMap<String, ContextTreeNode>();\n for (ContextDescription cd : ContextDescription.values...
[ "0.6058993", "0.58057916", "0.5670614", "0.5507719", "0.54351395", "0.5403034", "0.53685874", "0.53666323", "0.53522044", "0.5343786", "0.5258184", "0.5202623", "0.516556", "0.51481277", "0.5143978", "0.51219785", "0.5106863", "0.5067479", "0.5054289", "0.5051124", "0.4997143...
0.0
-1
Build all contexts. These are triples in the case of the intermediate COLON
@Override public void map(InductionChart chart) throws Exception { try { Sentence sent = chart.sentence; for (int i = 0; i < sent.length_noP() - 1; i++) { POS curT = sent.getNP(i).tag(); POS nextT = sent.getNP(i + 1).tag(); if (!Tagset.CONJ(nextT) && (!Tagset.CONJ(curT) || i == 0)) { if (tagsToInduce.contains(curT)) { if (!grammar.LexCats.containsKey(nextT)) System.err.println(nextT); grammar.LexCats.get(nextT).keySet().stream().filter(R -> !useCFG(R)).forEach(R -> induceRight(curT, R)); } if (tagsToInduce.contains(nextT)) { grammar.LexCats.get(curT).keySet().stream().filter(L -> !useCFG(L) || Tagset.CONJ(nextT)).forEach(L -> induceLeft(L, nextT)); } } } } catch (Exception e) { System.err.println("Failed to Induce " + chart.sentence.asTags()); throw e; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void makeContexts() {\n \n // make map of ContextTreeNode objects for all taxonomic contexts, indexed by root node name\n HashMap<String, ContextTreeNode> contextNodesByRootName = new HashMap<String, ContextTreeNode>();\n for (ContextDescription cd : ContextDescription.values...
[ "0.6384092", "0.5685744", "0.5488981", "0.52293223", "0.5195249", "0.5166216", "0.5137657", "0.5080811", "0.50551516", "0.49335054", "0.49266794", "0.4855281", "0.48302445", "0.4796251", "0.47867316", "0.47832206", "0.47637945", "0.47270024", "0.4688786", "0.46763608", "0.467...
0.0
-1
private Calendar maturityDate = Calendar.getInstance(); termOfCD int and maturityDate dateinfo object private int termOfCD; private DateInfo maturityDate; no args constructor
public CDAccount() { //termOfCD = 0; //maturityDate = new DateInfo(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Entry(Calendar date){\n this.date = date; \n }", "public DateInfo getDate() {\r\n\t\treturn new DateInfo(super.getDate());\r\n\t\t//return new DateInfo(maturityDate);\r\n\t}", "public CD (double principal, double interest, int maturity, String compMode)\n {\n // initialize instance...
[ "0.6495507", "0.63362515", "0.6149718", "0.6103264", "0.60992587", "0.60747653", "0.6036053", "0.6012597", "0.6008154", "0.59597087", "0.5938702", "0.5933094", "0.5919712", "0.59169036", "0.58984107", "0.58931464", "0.58790743", "0.5860547", "0.5856832", "0.5852076", "0.58452...
0.63771135
1
sets date info to maturityDate
public void setDate(DateInfo dates) { super.setDate(dates); //maturityDate = new DateInfo(dates); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void SetDate(Date date);", "public void setDate(Date date) {\n\t\n\t\tthis.date = date;\n\t\n\t}", "private void initializeDate() {\n\t\tfinal Calendar c = Calendar.getInstance();\n\t\tmYear = c.get(Calendar.YEAR);\n\t\tmMonth = c.get(Calendar.MONTH);\n\t\tmDay = c.get(Calendar.DAY_OF_MONTH);\n\t\t\n\t\...
[ "0.69605696", "0.68471915", "0.68378204", "0.67927194", "0.67927194", "0.67927194", "0.6770648", "0.6768476", "0.673802", "0.6726382", "0.6726382", "0.6726382", "0.6726382", "0.6726382", "0.6726382", "0.6726382", "0.6726382", "0.6726382", "0.6721683", "0.6699518", "0.6699518"...
0.7703632
0
returns copy of maturityDate
public DateInfo getDate() { return new DateInfo(super.getDate()); //return new DateInfo(maturityDate); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public org.drip.analytics.date.JulianDate maturity()\n\t{\n\t\ttry {\n\t\t\treturn new org.drip.analytics.date.JulianDate (_lsPeriod.get (_lsPeriod.size() - 1).endDate());\n\t\t} catch (java.lang.Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\treturn null;\n\t}", "public int finalMaturityDate()\n\t{\n\t...
[ "0.7066543", "0.6934471", "0.62971616", "0.6142163", "0.59976757", "0.5987146", "0.59074146", "0.58945245", "0.58899075", "0.5867103", "0.58615303", "0.58462006", "0.58296937", "0.5820914", "0.58051425", "0.57976425", "0.57976425", "0.57976425", "0.57884943", "0.5781702", "0....
0.6371179
2
over rides toString() addding the matureDate
public String toString() { String str; str = (super.toString() + matureToString()); return str; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String matureToString() {\r\n\t\tDateInfo maturityDate = new DateInfo(super.getDate());\r\n\t\tint termOfCD= maturityDate.getMatureLength();\r\n\t\tSystem.out.println(\"The super mature date is\"+ super.getDate()+\" The copy mature date is \"+termOfCD);\r\n\t\tString str;\r\n\t\tint yeer, mnth, dey;\r\n\t\t...
[ "0.8434929", "0.6769962", "0.6620001", "0.6526006", "0.63930714", "0.63249505", "0.63171446", "0.6313504", "0.6282309", "0.627533", "0.6267883", "0.6236975", "0.62200046", "0.62162614", "0.6186663", "0.6135357", "0.6131671", "0.6121447", "0.6121237", "0.610713", "0.6100476", ...
0.69024664
1
checks to see if the transaction is withi 15 days
private int check15Days(DateInfo date) { // creates cd calender stores date stored in CD int totalCD, cdMonth, cdDay, cdYear; DateInfo maturityDate = new DateInfo(super.getDate()); int totalTrans, tMonth, tDay, tYear; int mature= maturityDate.getMatureLength(); Calendar cD = Calendar.getInstance(); cD.clear(); cD.set(Calendar.MONTH, maturityDate.getMonth()); cD.set(Calendar.YEAR, maturityDate.getYear()); cD.set(Calendar.DATE, maturityDate.getDay()); // adds the term to compare the dates cD.add(Calendar.MONTH, +mature); cdMonth = 30 * cD.get(Calendar.MONTH); cdDay = cD.get(Calendar.DATE); cdYear = 365 * cD.get(Calendar.YEAR); totalCD = cdMonth + cdDay + cdYear; tMonth = 30 * date.getMonth(); tDay = date.getDay(); tYear = 365 * date.getYear(); totalTrans = tMonth + tDay + tYear; return (totalTrans - totalCD); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isValid_ToBuyTicket() {\n if (this.tktSold < this.museum.getMaxVisit() && isNowTime_in_period()) {\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n }", "boolean hasTransactionDateTime();", "public static boolean has15() {\n return get...
[ "0.6473437", "0.6414877", "0.6358634", "0.62657213", "0.60183173", "0.6008037", "0.59968275", "0.5960089", "0.58557826", "0.58429575", "0.5776926", "0.5757738", "0.5754485", "0.573552", "0.5725238", "0.5714999", "0.566825", "0.5659541", "0.5641668", "0.5527223", "0.551427", ...
0.6993705
0
CHECK CD METHOD CHECK IF THE CD ACCOUNT IS VALID
public int checkCD(DateInfo date) { DateInfo maturityDate = new DateInfo(super.getDate()); int mature= maturityDate.getMatureLength(); // CREATES CALENDAR CLASS AND SETS DATE // STORED IN date for trasaction Calendar trans = Calendar.getInstance(); trans.clear(); trans.set(Calendar.MONTH, date.getMonth()); trans.set(Calendar.YEAR, date.getYear()); trans.set(Calendar.DATE, date.getDay()); // gets the date of the CD account to compare Calendar cD = Calendar.getInstance(); cD.clear(); cD.set(Calendar.MONTH, maturityDate.getMonth()); cD.set(Calendar.YEAR, maturityDate.getYear()); cD.set(Calendar.DATE, maturityDate.getDay()); /* * //CREATES A CALENDAR CLASS WITH TODAYS DAY Calendar today = * Calendar.getInstance(); today.clear(); today.set(Calendar.YEAR, 2019); * today.set(Calendar.MONTH, Calendar.MARCH); today.set(Calendar.DATE, 20); */ // ADDS TO THE MONTH OF CD THE LENGTH OF MATURITY cD.add(Calendar.MONTH, +mature); // CHECKS TO SEE IF THE CD AGED TO TODAYS DATE TO PERFORM OPERATIONS // if CD matured DATE IS BEFORE today or after RETURN -1 if (trans.after(cD) || trans.equals(cD)) { return 1; // else if the mature date is after today RETURN -1 // false } else return -1; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void checkCreditCard() throws BusinessException;", "@Override\n\tpublic String checkAccount(int idc) {\n\t\treturn null;\n\t}", "public abstract boolean isValid(DMYcount DMYcount);", "boolean CanBuyDevCard();", "private boolean validateCard() {\n Card card = new Card(\n editTex...
[ "0.66528827", "0.6297277", "0.6240438", "0.6235758", "0.6073759", "0.6062494", "0.59549373", "0.59014213", "0.58710444", "0.5811058", "0.5792655", "0.57842356", "0.5773381", "0.57448053", "0.57286805", "0.5689183", "0.56819975", "0.567808", "0.56616503", "0.56506014", "0.5633...
0.57531977
13
returns the date cd matures based on string passed
public String matureToString() { DateInfo maturityDate = new DateInfo(super.getDate()); int termOfCD= maturityDate.getMatureLength(); System.out.println("The super mature date is"+ super.getDate()+" The copy mature date is "+termOfCD); String str; int yeer, mnth, dey; // creates a calendar to hold mature date Calendar matureDate = Calendar.getInstance(); matureDate.clear(); // sets the date of current Cd matureDate.set(Calendar.MONTH, maturityDate.getMonth()); matureDate.set(Calendar.YEAR, maturityDate.getYear()); matureDate.set(Calendar.DATE, maturityDate.getDay()); // passes year month and day to variables yeer = matureDate.get(Calendar.YEAR); mnth = matureDate.get(Calendar.MONTH); dey = matureDate.get(Calendar.DATE); // creates date info DateInfo mature = new DateInfo(yeer, mnth, dey); // if the month in mature == 0 if (mature.getMonth() == 0) // set the month to 1 mature.setMonth(1); // mature to string str = ("Updated On: " + mature); // ADDS TO THE MONTH OF matureDate THE LENGTH OF MATURITY matureDate.add(Calendar.MONTH, +termOfCD); // passes updated year month and day to variables int myeer = matureDate.get(Calendar.YEAR); int mmnth = matureDate.get(Calendar.MONTH); int mdey = matureDate.get(Calendar.DATE); // update mature dateInfo with new info mature = new DateInfo(myeer, mmnth, mdey); // if the month == 0 set the month to 1 if (mature.getMonth() == 0) mature.setMonth(1); // str = str +("\tMatures On: "+mature+"\t Term Of CD: "+ termOfCD+"\n"); // adds the mature date to str str = str + String.format("%nMatures On: %s %n%s %s %n", mature, "Term Of CD: ", termOfCD); // return str return str; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private int caBeDate(String str){\n if(!isNumber(str)){\n return 0;\n }if(str.length()<2){\n return 0;\n }if(str.length()==2){\n return 1;\n }if(str.length() == 3){\n return 2;\n }if(str.length() == 4){\n return 3;\n }...
[ "0.659232", "0.61417186", "0.60475653", "0.60475653", "0.60404915", "0.59311783", "0.59113497", "0.5872821", "0.5804637", "0.58032775", "0.5801499", "0.5761063", "0.5760763", "0.57257164", "0.5697399", "0.5675267", "0.5640793", "0.5632365", "0.5606351", "0.55892605", "0.55855...
0.0
-1
Code to be executed when an ad finishes loading.
@Override public void onAdLoaded() { Log.i("Ads", "onAdLoaded"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onAdLoaded() {\n }", "@Override\n public void onAdLoaded() {\n }", "@Override\n public void onAdLoaded() {\n }", "@Override\n public void onAdLoaded() {\n }", "@Override\n public void onAdLoad...
[ "0.7789979", "0.77040535", "0.77040535", "0.77040535", "0.77040535", "0.77040535", "0.77040535", "0.77040535", "0.77040535", "0.7635577", "0.75133973", "0.7487026", "0.74336785", "0.74324477", "0.7277686", "0.7277686", "0.72366756", "0.7206695", "0.71797544", "0.71297187", "0...
0.72283375
17
Code to be executed when an ad request fails.
@Override public void onAdFailedToLoad(int errorCode) { Log.i("Ads", "onAdFailedToLoad"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onAdError(BannerAd ad, String error) {\n Log.d(TAG, \"Something went wrong with the request: \" + error);\n }", "@Override\n\tpublic void onAdError(String arg0) {\n\t\t\n\t}", "@Override\n\tpublic void onAdFailed(String arg0) ...
[ "0.7860469", "0.776646", "0.7336795", "0.71065897", "0.710294", "0.710294", "0.710294", "0.710294", "0.710294", "0.710294", "0.710294", "0.710294", "0.710294", "0.710294", "0.710294", "0.7080937", "0.7080937", "0.70792836", "0.70694214", "0.7066696", "0.7062845", "0.7009126...
0.6971595
24
Code to be executed when an ad opens an overlay that covers the screen.
@Override public void onAdOpened() { Log.i("Ads", "onAdOpened"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onOpened(AdColonyInterstitial ad) {\n notifyShown();\n notifyStarted();\n }", "@Override\n public void onAdOpened() {\n }", "@Override\n public void onAdOpened() {\n }", "@Override\n pub...
[ "0.6722924", "0.6545721", "0.6539286", "0.6539286", "0.6539286", "0.6539286", "0.6539286", "0.6539286", "0.6539286", "0.6539286", "0.6539286", "0.6539286", "0.6539286", "0.6539286", "0.6486735", "0.6486472", "0.6486472", "0.6486472", "0.6478817", "0.6472578", "0.63942564", ...
0.61668044
24
Code to be executed when the user has left the app.
@Override public void onAdLeftApplication() { Log.i("Ads", "onAdLeftApplication"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void onLeaveApplication(Ad arg0) {\n\t\t\r\n\t}", "public void onLeave()\n\t{\n\t}", "private void userDidLeave() {\n DeviceSingleton deviceSingleton = DeviceSingleton.getInstance();\n deviceSingleton.setImInARoom(false);\n deviceSingleton.setJoinedChat(false);\n\n ...
[ "0.74342304", "0.7096355", "0.6900877", "0.6877666", "0.67685103", "0.6690852", "0.6677258", "0.6610862", "0.6583283", "0.6583283", "0.6583283", "0.6583283", "0.6583283", "0.6583283", "0.6583283", "0.6583283", "0.6583283", "0.6583283", "0.6583283", "0.6583283", "0.6583283", ...
0.6084397
51
Code to be executed when when the user is about to return to the app after tapping on an ad.
@Override public void onAdClosed() { Log.i("Ads", "onAdClosed"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onAdLeftApplication(BannerAd ad) {\n Log.d(TAG, \"User directed out of app by banner\");\n }", "@Override\n public void onAdLeftApplication() {\n }", "@Override\n public voi...
[ "0.7225871", "0.6656124", "0.6654668", "0.6654668", "0.6654668", "0.66465825", "0.66465825", "0.66465825", "0.66465825", "0.66465825", "0.66465825", "0.66465825", "0.66465825", "0.66465825", "0.66465825", "0.66465825", "0.66465825", "0.66465825", "0.66465825", "0.66465825", "...
0.64644897
43
Inflate the layout for this fragment
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View view = inflater.inflate(R.layout.fragment_confirm, container, false); unbinder = ButterKnife.bind(this, view); Realm.init(Objects.requireNonNull(getContext())); realm = Realm.getDefaultInstance(); showData(); return view; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_main_allinfo, container, false);\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup...
[ "0.6739604", "0.67235583", "0.6721706", "0.6698254", "0.6691869", "0.6687986", "0.66869223", "0.6684548", "0.66766286", "0.6674615", "0.66654444", "0.66654384", "0.6664403", "0.66596216", "0.6653321", "0.6647136", "0.66423255", "0.66388357", "0.6637491", "0.6634193", "0.66251...
0.0
-1
Note: here you can choose running examples with JPQL or Criteria
private static QueryExamples createExamples(EntityManager entityManager) { return new JpqlExamples(entityManager); //return new CriteriaExamples(entityManager); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "List<Basicinfo> selectByExample(BasicinfoCriteria example);", "@Test\n\tpublic void testQuery1() {\n\t}", "List<TestEntity> selectByExample(TestEntityExample example);", "@Test\n public void testQuery() throws Exception {\n StatefulKnowledgeSession session = getKbase().newStatefulKnowledgeSession()...
[ "0.6522248", "0.64724106", "0.6464822", "0.64463246", "0.63829315", "0.63309264", "0.63187605", "0.6300244", "0.62652296", "0.62509686", "0.622703", "0.622703", "0.622703", "0.622703", "0.6177133", "0.61593187", "0.6152812", "0.61390316", "0.6132246", "0.61314714", "0.6115666...
0.5917183
51
INTERNAL Add the passed node value to the collection of object for this node
public void addNodeToTheObjects(Node theNode) { getTheObjects().add(theNode); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void add(Object value) {\n\n\t}", "protected void addChild(DataNode value) {\n m_values.add(value);\n if (isCollection()) {\n \n // make this a complex collection if the added child is something more than a simple value\n if (value.getSche...
[ "0.65566814", "0.64619994", "0.6310099", "0.62855977", "0.6269309", "0.6263665", "0.6184445", "0.6133916", "0.6086344", "0.6061639", "0.60132205", "0.60000765", "0.59617025", "0.58549845", "0.5840642", "0.5814064", "0.57950926", "0.5778874", "0.5766071", "0.5750255", "0.57410...
0.559654
36
INTERNAL Validate the current node and calculates its type.
public void validate(ParseTreeContext context) { Object leftType = null; TypeHelper typeHelper = context.getTypeHelper(); if (left != null) { left.validate(context); // check to see if the argument is a parameter if (isListParameterOrSubquery && !getTheObjects().isEmpty() && ((Node)getTheObjects().get(0)).isParameterNode()){ leftType = Collection.class; } else { leftType = left.getType(); } } for (Iterator i = getTheObjects().iterator(); i.hasNext();) { Node node = (Node)i.next(); node.validate(context); node.validateParameter(context, leftType); Object nodeType = node.getType(); if ((leftType != null) && !typeHelper.isAssignableFrom(leftType, nodeType)) throw JPQLException.invalidExpressionArgument( context.getQueryInfo(), node.getLine(), node.getColumn(), "IN", node.getAsString(), typeHelper.getTypeName(leftType)); } setType(typeHelper.getBooleanType()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void checkTypes() {\n this.root.accept(this);\n }", "public void visit(BaseNode node) {\n String type = node.getTypeName();\n if (!nodeToSearch.contains(type))\n return;\n\n if (subRule.equals(\"wsdl\") || subRule.equals(\"xsd\")) {...
[ "0.660614", "0.62466156", "0.6243061", "0.6043111", "0.5823979", "0.5749471", "0.57125837", "0.57110995", "0.5697855", "0.5691437", "0.56799746", "0.56113267", "0.5599842", "0.5572402", "0.5510782", "0.5494626", "0.5477777", "0.5458255", "0.54480773", "0.5441502", "0.5430407"...
0.50044584
93
INTERNAL Return the EclipseLink expression for this node
public Expression generateExpression(GenerationContext context) { Expression whereClause = getLeft().generateExpression(context); List arguments = getTheObjects(); Node firstArg = (Node)arguments.get(0); if (firstArg.isSubqueryNode()) { SubqueryNode subqueryNode = (SubqueryNode)firstArg; ReportQuery reportQuery = subqueryNode.getReportQuery(context); if (notIndicated()) { whereClause = whereClause.notIn(reportQuery); } else { whereClause = whereClause.in(reportQuery); } } else if (isListParameterOrSubquery && firstArg.isParameterNode()) { if (notIndicated()) { whereClause = whereClause.notIn(firstArg.generateExpression(context)); } else { whereClause = whereClause.in(firstArg.generateExpression(context)); } } else { Vector inArguments = new Vector(arguments.size()); for (Iterator iter = arguments.iterator(); iter.hasNext();) { Node nextNode = (Node)iter.next(); inArguments.add(nextNode.generateExpression(context)); } if (inArguments.size() > 0) { if (notIndicated()) { whereClause = whereClause.notIn(inArguments); } else { whereClause = whereClause.in(inArguments); } } } return whereClause; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Expression getExpression();", "Expression getExpression();", "Expression getExpression();", "Expression getExpression();", "public Node getExpression() {\r\n return expression;\r\n }", "XExpression getExpression();", "DExpression getExpression();", "public abstract XPathExpression getExpres...
[ "0.767933", "0.767933", "0.767933", "0.767933", "0.7544642", "0.7533214", "0.7509575", "0.74812746", "0.7298399", "0.7274792", "0.7227996", "0.7227996", "0.7171461", "0.7167199", "0.71622044", "0.7152073", "0.7115944", "0.71079457", "0.70681345", "0.705928", "0.7051893", "0...
0.0
-1
INTERNAL Return the collection of the objects used as parameters for this node
public List getTheObjects() { if (theObjects == null) { setTheObjects(new Vector()); } return theObjects; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Collection<ParameterClass> getAllParameters()\n\t{\n\t\tif( this.parent == null )\n\t\t{\n\t\t\treturn this.getDeclaredParameters();\n\t\t}\n\t\telse\n\t\t{\n\t\t\tCollection<ParameterClass> inherited = new HashSet<>( this.parameters.values() );\n\t\t\t\n\t\t\t// loop through each parent and get their param...
[ "0.62355596", "0.62319934", "0.6108329", "0.60903585", "0.6085004", "0.60598373", "0.60595644", "0.6026363", "0.6014006", "0.5927147", "0.59187967", "0.590577", "0.58931017", "0.5886683", "0.58834577", "0.5879717", "0.58734316", "0.5867526", "0.58385676", "0.5836898", "0.5819...
0.5837527
19
INTERNAL: This method is called to indicate that the inNode has a single argument. This will be either a subquery or a single parameter that contains the list of items to test
public void setIsListParameterOrSubquery(boolean isListParameterOrSubquery){ this.isListParameterOrSubquery = isListParameterOrSubquery; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void visit(InExpression arg0) {\n\t\t\n\t}", "@Override\n\tpublic void visit(InExpression arg0) {\n\n\t}", "@Override\n public boolean visit(SQLInListExpr expr) {\n expr.getExpr().setParent(expr);\n return true;\n }", "protected boolean hasArgument(Node node, int idx)\...
[ "0.5997062", "0.59800315", "0.57423156", "0.56876415", "0.5613851", "0.5565766", "0.5558962", "0.5344889", "0.5340507", "0.5322254", "0.53195906", "0.53018796", "0.5292566", "0.52893984", "0.525477", "0.5239891", "0.5220759", "0.5220709", "0.52092654", "0.51287913", "0.51057"...
0.0
-1
INTERNAL Set this node's object collection to the passed value
public void setTheObjects(List newTheObjects) { theObjects = newTheObjects; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setCollection(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n collection_ = value;\n }", "@SuppressWarnings(\"unchecked\")\n public void setValue(Object value) {\n if (element != null) {\n element.setV...
[ "0.63130385", "0.6259486", "0.6161304", "0.61162436", "0.6072647", "0.6070624", "0.60619575", "0.6051415", "0.5985911", "0.5966198", "0.59547305", "0.59546983", "0.5934063", "0.59073853", "0.59002167", "0.5868573", "0.5852451", "0.5821194", "0.58167833", "0.58104575", "0.5810...
0.0
-1
INTERNAL Indicate if a NOT was found in the WHERE clause. Examples: ...WHERE ... NOT IN(...)
public void indicateNot() { notIndicated = true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean not_query(DiagnosticChain diagnostics, Map<Object, Object> context);", "public void setNotIn(boolean notIn) {\n this.notIn = notIn;\n }", "public boolean isNotIn() {\n return notIn;\n }", "@Test\n public void testNotIsNullCriteria() throws Exception {\n String sql = \"Se...
[ "0.6403716", "0.5737084", "0.56444865", "0.56100196", "0.56099296", "0.5528945", "0.54885346", "0.5349607", "0.5317189", "0.53101844", "0.53026253", "0.5245008", "0.51991045", "0.5193947", "0.5190156", "0.5142905", "0.5135106", "0.51332086", "0.5119356", "0.5118369", "0.51075...
0.47546676
65
`status: Not Mapped` coredatatypereference: BIAN::DataTypesLibrary::CoreDataTypes::UNCEFACT::Text generalinfo: Describes documents that need to be available and evaluated
public String getPartyLifecycleRequiredDocumentation() { return partyLifecycleRequiredDocumentation; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic String getDocumentInfo() {\n\t\treturn null;\r\n\t}", "public void ach_doc_type_txt_test () {\n\t\t\n\t}", "org.hl7.fhir.String getDocumentation();", "public String getDocinfo() {\n return docinfo;\n }", "protected String loadDocumentDetails()\r\n\t{\r\n\t\tsetC_Currency_ID ...
[ "0.6725184", "0.60748404", "0.6057266", "0.60360146", "0.5971652", "0.5922927", "0.5885152", "0.58063924", "0.57963175", "0.5756747", "0.5756747", "0.5756747", "0.5748762", "0.57339376", "0.5705365", "0.56864005", "0.568277", "0.5652371", "0.56257117", "0.5619847", "0.5552988...
0.0
-1
`status: Not Mapped` coredatatypereference: BIAN::DataTypesLibrary::CoreDataTypes::UNCEFACT::Text generalinfo: Describes and records timing required and actual for obtaining and evaluating documents
public String getPartyLifecycleDocumentSchedule() { return partyLifecycleDocumentSchedule; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected String loadDocumentDetails()\r\n\t{\r\n\t\tsetC_Currency_ID (NO_CURRENCY);\r\n\t\tX_M_Production prod = (X_M_Production)getPO();\r\n\t\tsetDateDoc (prod.getMovementDate());\r\n\t\tsetDateAcct(prod.getMovementDate());\r\n\t\t//\tContained Objects\r\n\t\tp_lines = loadLines(prod);\r\n\t\tif (log.isLoggable...
[ "0.56153274", "0.5552366", "0.5546613", "0.54499286", "0.53247577", "0.53247577", "0.5207651", "0.51644665", "0.51629025", "0.5128874", "0.51203537", "0.5118796", "0.5103514", "0.50628936", "0.5051904", "0.5019555", "0.5019555", "0.5019555", "0.5010715", "0.49875563", "0.4986...
0.0
-1
`status: Not Mapped` coredatatypereference: BIAN::DataTypesLibrary::CoreDataTypes::ISO20022andUNCEFACT::Identifier generalinfo: Reference to specific documents used in the lifecycle check
public String getDocumentDirectoryEntryInstanceReference() { return documentDirectoryEntryInstanceReference; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic String getDocumentInfo() {\n\t\treturn null;\r\n\t}", "public void convert() throws Exception\r\n\t{\n\t\tString query = \"SELECT r_object_id FROM m_mrcs_efs_central_document WHERE r_current_state = 4 OR r_current_state = 6\"; \r\n\t\t\r\n\t\tIDfSession session = null;\r\n\t\tIDfSessionMan...
[ "0.55821556", "0.539694", "0.519914", "0.5165859", "0.5159563", "0.5159563", "0.5159563", "0.5156777", "0.51213706", "0.51072633", "0.50967664", "0.5082285", "0.5063514", "0.5041257", "0.5039356", "0.50287724", "0.4986424", "0.49424464", "0.4909098", "0.49035177", "0.49004033...
0.0
-1
PLEASE NOTE, the path is specified for my operating system with my settings.
public List<User> getUsers() { try (ObjectInputStream inputStream = new ObjectInputStream(new FileInputStream(PATH))) { return (List<User>) inputStream.readObject(); } catch (Exception e) { System.out.println("Ошибка при чтений файла или файла не существует! get user"); } return new ArrayList<>(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setSystemPath(String path) {\r\n\t\ttry {\r\n\t\t\tPaths.get(path);\r\n\t\t} catch (InvalidPathException e) {\r\n\t\t\tSystem.out.println(e.getMessage());\r\n\t\t}\r\n\t\tthis.settings.setProperty(\"systemPath\", path);\r\n\t\tthis.saveChanges();\r\n\t}", "private void initPath() {\n this.IniF...
[ "0.6231967", "0.62107164", "0.5936442", "0.58864766", "0.58242834", "0.57798684", "0.57741654", "0.5746577", "0.5746577", "0.5746577", "0.5738231", "0.5682366", "0.5680012", "0.5678669", "0.56784034", "0.56670314", "0.5659937", "0.5653376", "0.5651509", "0.5651102", "0.565092...
0.0
-1
/ Alice and Bob share a secret session key that will be used for AES in GCM.
public static void main(String[] args) throws Exception { final Key key = KeyGenerator.getInstance("").generateKey(); final Environment env = new Environment(); env.add(new Agent("alice") { @Override public void task() throws Exception { final String text = "I hope you get this message intact and in secret. Kisses, Alice."; final byte[] pt = text.getBytes(StandardCharsets.UTF_8); send("bob", pt); } }); env.add(new Agent("bob") { @Override public void task() throws Exception { } }); env.connect("alice", "bob"); env.start(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tprotected SessionKey generateSessionKey() {\n\n\t\tSessionKey sk = new SessionKey();\n\t\t\n\t\tSecureRandom random = null;\n\t\ttry {\n\t\t\trandom = SecureRandom.getInstance(\"SHA1PRNG\");\n\t\t} catch (NoSuchAlgorithmException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace(...
[ "0.67972976", "0.6767725", "0.65407926", "0.6511688", "0.6330454", "0.6176724", "0.6070311", "0.5926815", "0.59223056", "0.5909114", "0.5880134", "0.5856333", "0.58500534", "0.5842641", "0.58141375", "0.57226765", "0.570247", "0.56255794", "0.5619114", "0.5608011", "0.5596027...
0.0
-1