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__SaveCSV__OpenAssignment_2" $ANTLR start "rule__SaveCSV__FileAssignment_3" InternalCsv.g:3863:1: rule__SaveCSV__FileAssignment_3 : ( RULE_STRING ) ;
public final void rule__SaveCSV__FileAssignment_3() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalCsv.g:3867:1: ( ( RULE_STRING ) ) // InternalCsv.g:3868:2: ( RULE_STRING ) { // InternalCsv.g:3868:2: ( RULE_ST...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final void rule__OpenCSV__FileAssignment_3() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalCsv.g:3742:1: ( ( RULE_STRING ) )\n // InternalCsv.g:3743:2: ( RULE_STRING )\n {\n // InternalCsv.g:3...
[ "0.80392665", "0.75874275", "0.6842651", "0.6000523", "0.5669306", "0.5345008", "0.53365153", "0.5243907", "0.51438487", "0.51330763", "0.50180984", "0.4961114", "0.49436447", "0.49148804", "0.49127087", "0.4911315", "0.4841469", "0.48412466", "0.482937", "0.48291516", "0.481...
0.8267139
0
$ANTLR end "rule__SaveCSV__FileAssignment_3" $ANTLR start "rule__XFunctionTypeRef__ParamTypesAssignment_0_1_0" InternalCsv.g:3878:1: rule__XFunctionTypeRef__ParamTypesAssignment_0_1_0 : ( ruleJvmTypeReference ) ;
public final void rule__XFunctionTypeRef__ParamTypesAssignment_0_1_0() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalCsv.g:3882:1: ( ( ruleJvmTypeReference ) ) // InternalCsv.g:3883:2: ( ruleJvmTypeReference ) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final void rule__XFunctionTypeRef__ParamTypesAssignment_0_1_1_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalCsv.g:3897:1: ( ( ruleJvmTypeReference ) )\n // InternalCsv.g:3898:2: ( ruleJvmTypeReference )\n ...
[ "0.76144814", "0.7283319", "0.722746", "0.7192181", "0.71562105", "0.70429474", "0.6989212", "0.6771241", "0.67468834", "0.66897255", "0.6621465", "0.6567588", "0.6516186", "0.6327265", "0.6164258", "0.6010714", "0.56767577", "0.55896246", "0.55560637", "0.5548871", "0.554852...
0.7872059
0
$ANTLR end "rule__XFunctionTypeRef__ParamTypesAssignment_0_1_0" $ANTLR start "rule__XFunctionTypeRef__ParamTypesAssignment_0_1_1_1" InternalCsv.g:3893:1: rule__XFunctionTypeRef__ParamTypesAssignment_0_1_1_1 : ( ruleJvmTypeReference ) ;
public final void rule__XFunctionTypeRef__ParamTypesAssignment_0_1_1_1() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalCsv.g:3897:1: ( ( ruleJvmTypeReference ) ) // InternalCsv.g:3898:2: ( ruleJvmTypeReference ) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final void rule__XFunctionTypeRef__ParamTypesAssignment_0_1_0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalCsv.g:3882:1: ( ( ruleJvmTypeReference ) )\n // InternalCsv.g:3883:2: ( ruleJvmTypeReference )\n ...
[ "0.83873606", "0.801076", "0.7997029", "0.7992504", "0.79807013", "0.7902079", "0.78098726", "0.70519483", "0.696255", "0.6814784", "0.6786868", "0.6746081", "0.66817904", "0.6521846", "0.6521272", "0.64551264", "0.6440178", "0.64218134", "0.6420813", "0.6395248", "0.6393231"...
0.8357342
1
$ANTLR end "rule__XFunctionTypeRef__ParamTypesAssignment_0_1_1_1" $ANTLR start "rule__XFunctionTypeRef__ReturnTypeAssignment_2" InternalCsv.g:3908:1: rule__XFunctionTypeRef__ReturnTypeAssignment_2 : ( ruleJvmTypeReference ) ;
public final void rule__XFunctionTypeRef__ReturnTypeAssignment_2() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalCsv.g:3912:1: ( ( ruleJvmTypeReference ) ) // InternalCsv.g:3913:2: ( ruleJvmTypeReference ) { /...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final void rule__XFunctionTypeRef__ReturnTypeAssignment_2() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:19027:1: ( ( ruleJvmTypeReference...
[ "0.8313263", "0.82977164", "0.82582927", "0.7275263", "0.69940096", "0.69844604", "0.6966022", "0.6941968", "0.69348824", "0.6926998", "0.6885915", "0.6862353", "0.68601775", "0.6856719", "0.6856073", "0.6147152", "0.61289954", "0.60914934", "0.6046567", "0.60401106", "0.5979...
0.86244845
0
$ANTLR end "rule__XFunctionTypeRef__ReturnTypeAssignment_2" $ANTLR start "rule__JvmParameterizedTypeReference__TypeAssignment_0" InternalCsv.g:3923:1: rule__JvmParameterizedTypeReference__TypeAssignment_0 : ( ( ruleQualifiedName ) ) ;
public final void rule__JvmParameterizedTypeReference__TypeAssignment_0() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalCsv.g:3927:1: ( ( ( ruleQualifiedName ) ) ) // InternalCsv.g:3928:2: ( ( ruleQualifiedName ) ) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final void rule__JvmParameterizedTypeReference__TypeAssignment_0() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:19042:1: ( ( ( ruleQualifi...
[ "0.7193877", "0.6938199", "0.6905993", "0.6902618", "0.65792966", "0.6528175", "0.64277804", "0.63953537", "0.6387794", "0.6362788", "0.62519324", "0.6242568", "0.6238129", "0.619895", "0.6194708", "0.61546415", "0.61135703", "0.6111062", "0.6075453", "0.606693", "0.5978334",...
0.76080906
0
$ANTLR end "rule__JvmParameterizedTypeReference__TypeAssignment_0" $ANTLR start "rule__JvmParameterizedTypeReference__ArgumentsAssignment_1_1" InternalCsv.g:3942:1: rule__JvmParameterizedTypeReference__ArgumentsAssignment_1_1 : ( ruleJvmArgumentTypeReference ) ;
public final void rule__JvmParameterizedTypeReference__ArgumentsAssignment_1_1() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalCsv.g:3946:1: ( ( ruleJvmArgumentTypeReference ) ) // InternalCsv.g:3947:2: ( ruleJvmArgumentTypeReference...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final void rule__JvmParameterizedTypeReference__ArgumentsAssignment_1_2_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalCsv.g:3961:1: ( ( ruleJvmArgumentTypeReference ) )\n // InternalCsv.g:3962:2: ( ruleJvmArgum...
[ "0.82958996", "0.8138294", "0.81133294", "0.79681885", "0.7957754", "0.7878734", "0.78357726", "0.7806846", "0.77855575", "0.7722211", "0.7694489", "0.756289", "0.7479839", "0.74071145", "0.7395658", "0.7381393", "0.7340457", "0.7327428", "0.73151773", "0.7248242", "0.722775"...
0.84148514
0
$ANTLR end "rule__JvmParameterizedTypeReference__ArgumentsAssignment_1_1" $ANTLR start "rule__JvmParameterizedTypeReference__ArgumentsAssignment_1_2_1" InternalCsv.g:3957:1: rule__JvmParameterizedTypeReference__ArgumentsAssignment_1_2_1 : ( ruleJvmArgumentTypeReference ) ;
public final void rule__JvmParameterizedTypeReference__ArgumentsAssignment_1_2_1() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalCsv.g:3961:1: ( ( ruleJvmArgumentTypeReference ) ) // InternalCsv.g:3962:2: ( ruleJvmArgumentTypeReferen...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final void rule__JvmParameterizedTypeReference__ArgumentsAssignment_1_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalCsv.g:3946:1: ( ( ruleJvmArgumentTypeReference ) )\n // InternalCsv.g:3947:2: ( ruleJvmArgumen...
[ "0.8440365", "0.81821924", "0.815679", "0.79177487", "0.7906565", "0.7866265", "0.78606945", "0.78126526", "0.77983993", "0.7682788", "0.7681374", "0.737633", "0.72494316", "0.7236984", "0.719228", "0.7185977", "0.7179887", "0.7178974", "0.7150132", "0.7147297", "0.71289945",...
0.8406945
1
$ANTLR end "rule__JvmParameterizedTypeReference__ArgumentsAssignment_1_2_1" $ANTLR start "rule__JvmParameterizedTypeReference__TypeAssignment_1_4_1" InternalCsv.g:3972:1: rule__JvmParameterizedTypeReference__TypeAssignment_1_4_1 : ( ( ruleValidID ) ) ;
public final void rule__JvmParameterizedTypeReference__TypeAssignment_1_4_1() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalCsv.g:3976:1: ( ( ( ruleValidID ) ) ) // InternalCsv.g:3977:2: ( ( ruleValidID ) ) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final void rule__JvmParameterizedTypeReference__TypeAssignment_1_4_1() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalDroneScript.g:19319:1: ( ( ( ruleValidID ) ) )\r\n // InternalDroneScript.g:19320:2: ( ...
[ "0.7560629", "0.68410534", "0.67986363", "0.6741719", "0.6700452", "0.6682743", "0.65776736", "0.6509506", "0.6486027", "0.6352079", "0.63196313", "0.6310184", "0.6309075", "0.62982404", "0.6277249", "0.6270231", "0.6266144", "0.62571317", "0.6212392", "0.6172112", "0.6076872...
0.81005824
0
$ANTLR end "rule__JvmParameterizedTypeReference__TypeAssignment_1_4_1" $ANTLR start "rule__JvmParameterizedTypeReference__ArgumentsAssignment_1_4_2_1" InternalCsv.g:3991:1: rule__JvmParameterizedTypeReference__ArgumentsAssignment_1_4_2_1 : ( ruleJvmArgumentTypeReference ) ;
public final void rule__JvmParameterizedTypeReference__ArgumentsAssignment_1_4_2_1() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalCsv.g:3995:1: ( ( ruleJvmArgumentTypeReference ) ) // InternalCsv.g:3996:2: ( ruleJvmArgumentTypeRefer...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final void rule__JvmParameterizedTypeReference__ArgumentsAssignment_1_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalCsv.g:3946:1: ( ( ruleJvmArgumentTypeReference ) )\n // InternalCsv.g:3947:2: ( ruleJvmArgumen...
[ "0.82441026", "0.8181422", "0.8137944", "0.77364045", "0.7733118", "0.767142", "0.7655793", "0.76225144", "0.7620197", "0.7586406", "0.7538735", "0.736293", "0.7288552", "0.7268769", "0.721409", "0.7182798", "0.718154", "0.7176921", "0.71603703", "0.71367764", "0.7101068", ...
0.820691
1
$ANTLR end "rule__JvmParameterizedTypeReference__ArgumentsAssignment_1_4_2_1" $ANTLR start "rule__JvmParameterizedTypeReference__ArgumentsAssignment_1_4_2_2_1" InternalCsv.g:4006:1: rule__JvmParameterizedTypeReference__ArgumentsAssignment_1_4_2_2_1 : ( ruleJvmArgumentTypeReference ) ;
public final void rule__JvmParameterizedTypeReference__ArgumentsAssignment_1_4_2_2_1() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalCsv.g:4010:1: ( ( ruleJvmArgumentTypeReference ) ) // InternalCsv.g:4011:2: ( ruleJvmArgumentTypeRef...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final void rule__JvmParameterizedTypeReference__ArgumentsAssignment_1_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalCsv.g:3946:1: ( ( ruleJvmArgumentTypeReference ) )\n // InternalCsv.g:3947:2: ( ruleJvmArgumen...
[ "0.8292615", "0.8277191", "0.8172235", "0.7728562", "0.7726828", "0.7687677", "0.76610804", "0.76265997", "0.7607762", "0.7587283", "0.7548326", "0.7264866", "0.71991247", "0.7119156", "0.71058136", "0.7082426", "0.70337534", "0.70273674", "0.70022595", "0.70001924", "0.69908...
0.82298553
2
$ANTLR end "rule__JvmParameterizedTypeReference__ArgumentsAssignment_1_4_2_2_1" $ANTLR start "rule__JvmWildcardTypeReference__ConstraintsAssignment_2_0_0" InternalCsv.g:4021:1: rule__JvmWildcardTypeReference__ConstraintsAssignment_2_0_0 : ( ruleJvmUpperBound ) ;
public final void rule__JvmWildcardTypeReference__ConstraintsAssignment_2_0_0() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalCsv.g:4025:1: ( ( ruleJvmUpperBound ) ) // InternalCsv.g:4026:2: ( ruleJvmUpperBound ) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final void rule__JvmWildcardTypeReference__ConstraintsAssignment_2_0_0() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalDroneScript.g:19368:1: ( ( ruleJvmUpperBound ) )\r\n // InternalDroneScript.g:19369:2...
[ "0.80617696", "0.80243963", "0.7969464", "0.78690964", "0.74337447", "0.69346255", "0.65208906", "0.6488941", "0.6443461", "0.6405251", "0.6380259", "0.6269326", "0.6215353", "0.62108946", "0.62016886", "0.6177584", "0.6145714", "0.614108", "0.613615", "0.61268574", "0.611085...
0.840306
0
$ANTLR end "rule__JvmWildcardTypeReference__ConstraintsAssignment_2_0_0" $ANTLR start "rule__JvmWildcardTypeReference__ConstraintsAssignment_2_0_1" InternalCsv.g:4036:1: rule__JvmWildcardTypeReference__ConstraintsAssignment_2_0_1 : ( ruleJvmUpperBoundAnded ) ;
public final void rule__JvmWildcardTypeReference__ConstraintsAssignment_2_0_1() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalCsv.g:4040:1: ( ( ruleJvmUpperBoundAnded ) ) // InternalCsv.g:4041:2: ( ruleJvmUpperBoundAnded ) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final void rule__JvmWildcardTypeReference__ConstraintsAssignment_2_0_0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalCsv.g:4025:1: ( ( ruleJvmUpperBound ) )\n // InternalCsv.g:4026:2: ( ruleJvmUpperBound )\n ...
[ "0.8464026", "0.8127779", "0.8120197", "0.8092166", "0.8079659", "0.6969601", "0.6874489", "0.6819217", "0.67680943", "0.67440456", "0.6697201", "0.6633379", "0.65962386", "0.65728325", "0.6455074", "0.64064705", "0.6394669", "0.63496256", "0.63013387", "0.62998074", "0.62846...
0.8537844
0
$ANTLR end "rule__JvmWildcardTypeReference__ConstraintsAssignment_2_0_1" $ANTLR start "rule__JvmWildcardTypeReference__ConstraintsAssignment_2_1_0" InternalCsv.g:4051:1: rule__JvmWildcardTypeReference__ConstraintsAssignment_2_1_0 : ( ruleJvmLowerBound ) ;
public final void rule__JvmWildcardTypeReference__ConstraintsAssignment_2_1_0() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalCsv.g:4055:1: ( ( ruleJvmLowerBound ) ) // InternalCsv.g:4056:2: ( ruleJvmLowerBound ) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final void rule__JvmWildcardTypeReference__ConstraintsAssignment_2_1_0() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalDroneScript.g:19398:1: ( ( ruleJvmLowerBound ) )\r\n // InternalDroneScript.g:19399:2...
[ "0.81553495", "0.81073684", "0.79977274", "0.78877974", "0.7544663", "0.6763924", "0.6720559", "0.6709672", "0.6658661", "0.6597052", "0.6568379", "0.6560177", "0.6420624", "0.640243", "0.63736147", "0.6359148", "0.6357854", "0.6325641", "0.63083214", "0.6302516", "0.62462395...
0.8478722
0
$ANTLR end "rule__JvmWildcardTypeReference__ConstraintsAssignment_2_1_0" $ANTLR start "rule__JvmWildcardTypeReference__ConstraintsAssignment_2_1_1" InternalCsv.g:4066:1: rule__JvmWildcardTypeReference__ConstraintsAssignment_2_1_1 : ( ruleJvmLowerBoundAnded ) ;
public final void rule__JvmWildcardTypeReference__ConstraintsAssignment_2_1_1() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalCsv.g:4070:1: ( ( ruleJvmLowerBoundAnded ) ) // InternalCsv.g:4071:2: ( ruleJvmLowerBoundAnded ) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final void rule__JvmWildcardTypeReference__ConstraintsAssignment_2_1_0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalCsv.g:4055:1: ( ( ruleJvmLowerBound ) )\n // InternalCsv.g:4056:2: ( ruleJvmLowerBound )\n ...
[ "0.8385896", "0.7971366", "0.7966203", "0.79379606", "0.78587025", "0.7290541", "0.68174493", "0.65937966", "0.6522537", "0.6438269", "0.64353263", "0.6407046", "0.6393238", "0.63929844", "0.63756794", "0.6255782", "0.62527686", "0.6228259", "0.6195872", "0.6189555", "0.61149...
0.8372879
1
$ANTLR end "rule__JvmWildcardTypeReference__ConstraintsAssignment_2_1_1" $ANTLR start "rule__JvmUpperBound__TypeReferenceAssignment_1" InternalCsv.g:4081:1: rule__JvmUpperBound__TypeReferenceAssignment_1 : ( ruleJvmTypeReference ) ;
public final void rule__JvmUpperBound__TypeReferenceAssignment_1() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalCsv.g:4085:1: ( ( ruleJvmTypeReference ) ) // InternalCsv.g:4086:2: ( ruleJvmTypeReference ) { /...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final void rule__JvmWildcardTypeReference__ConstraintsAssignment_2_0_0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalCsv.g:4025:1: ( ( ruleJvmUpperBound ) )\n // InternalCsv.g:4026:2: ( ruleJvmUpperBound )\n ...
[ "0.785046", "0.77492493", "0.77336717", "0.77316433", "0.7658323", "0.76396555", "0.7627648", "0.7570579", "0.75655615", "0.7544034", "0.75328404", "0.725462", "0.7237798", "0.7219207", "0.7210503", "0.71962184", "0.7153735", "0.7116982", "0.7059001", "0.69809943", "0.6972425...
0.77979976
1
$ANTLR end "rule__JvmUpperBound__TypeReferenceAssignment_1" $ANTLR start "rule__JvmUpperBoundAnded__TypeReferenceAssignment_1" InternalCsv.g:4096:1: rule__JvmUpperBoundAnded__TypeReferenceAssignment_1 : ( ruleJvmTypeReference ) ;
public final void rule__JvmUpperBoundAnded__TypeReferenceAssignment_1() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalCsv.g:4100:1: ( ( ruleJvmTypeReference ) ) // InternalCsv.g:4101:2: ( ruleJvmTypeReference ) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final void rule__JvmUpperBound__TypeReferenceAssignment_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalCsv.g:4085:1: ( ( ruleJvmTypeReference ) )\n // InternalCsv.g:4086:2: ( ruleJvmTypeReference )\n ...
[ "0.82974684", "0.78539747", "0.78466105", "0.7730741", "0.76260936", "0.7605492", "0.75668746", "0.75627744", "0.7553798", "0.7478532", "0.7433396", "0.7407913", "0.7351557", "0.7327905", "0.7273961", "0.7026655", "0.6902356", "0.6682761", "0.6646463", "0.6639523", "0.6590451...
0.79649496
1
$ANTLR end "rule__JvmUpperBoundAnded__TypeReferenceAssignment_1" $ANTLR start "rule__JvmLowerBound__TypeReferenceAssignment_1" InternalCsv.g:4111:1: rule__JvmLowerBound__TypeReferenceAssignment_1 : ( ruleJvmTypeReference ) ;
public final void rule__JvmLowerBound__TypeReferenceAssignment_1() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalCsv.g:4115:1: ( ( ruleJvmTypeReference ) ) // InternalCsv.g:4116:2: ( ruleJvmTypeReference ) { /...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final void rule__JvmUpperBound__TypeReferenceAssignment_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalCsv.g:4085:1: ( ( ruleJvmTypeReference ) )\n // InternalCsv.g:4086:2: ( ruleJvmTypeReference )\n ...
[ "0.75504345", "0.73790115", "0.73399377", "0.72164094", "0.72067255", "0.7202914", "0.71910524", "0.7121139", "0.70631546", "0.7063133", "0.70623803", "0.70489115", "0.701255", "0.6797781", "0.6714173", "0.66693616", "0.6647034", "0.66458505", "0.66438586", "0.6640821", "0.66...
0.76989126
0
$ANTLR end "rule__JvmLowerBound__TypeReferenceAssignment_1" $ANTLR start "rule__JvmLowerBoundAnded__TypeReferenceAssignment_1" InternalCsv.g:4126:1: rule__JvmLowerBoundAnded__TypeReferenceAssignment_1 : ( ruleJvmTypeReference ) ;
public final void rule__JvmLowerBoundAnded__TypeReferenceAssignment_1() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalCsv.g:4130:1: ( ( ruleJvmTypeReference ) ) // InternalCsv.g:4131:2: ( ruleJvmTypeReference ) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final void rule__JvmLowerBound__TypeReferenceAssignment_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalCsv.g:4115:1: ( ( ruleJvmTypeReference ) )\n // InternalCsv.g:4116:2: ( ruleJvmTypeReference )\n ...
[ "0.81392395", "0.76577324", "0.75958425", "0.7577976", "0.7521852", "0.73516184", "0.73084486", "0.73000985", "0.7253378", "0.7238804", "0.70993865", "0.7093199", "0.7024811", "0.70185834", "0.6873498", "0.6846879", "0.68038374", "0.66542643", "0.6606244", "0.6519956", "0.636...
0.78455806
1
$ANTLR end "rule__JvmLowerBoundAnded__TypeReferenceAssignment_1" $ANTLR start "rule__XImportDeclaration__StaticAssignment_1_0_0" InternalCsv.g:4141:1: rule__XImportDeclaration__StaticAssignment_1_0_0 : ( ( 'static' ) ) ;
public final void rule__XImportDeclaration__StaticAssignment_1_0_0() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalCsv.g:4145:1: ( ( ( 'static' ) ) ) // InternalCsv.g:4146:2: ( ( 'static' ) ) { // InternalCsv....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final void rule__XImportDeclaration__StaticAssignment_1_0_0() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalDroneScript.g:19503:1: ( ( ( 'static' ) ) )\r\n // InternalDroneScript.g:19504:2: ( ( 'static' )...
[ "0.79399365", "0.68330413", "0.677035", "0.6683917", "0.65426135", "0.6106302", "0.5956429", "0.584988", "0.58287305", "0.58009326", "0.57216126", "0.56003255", "0.5587811", "0.5574429", "0.55072874", "0.5466351", "0.5457209", "0.5437153", "0.543355", "0.5406398", "0.53811467...
0.8307465
0
$ANTLR end "rule__XImportDeclaration__StaticAssignment_1_0_0" $ANTLR start "rule__XImportDeclaration__ExtensionAssignment_1_0_1" InternalCsv.g:4160:1: rule__XImportDeclaration__ExtensionAssignment_1_0_1 : ( ( 'extension' ) ) ;
public final void rule__XImportDeclaration__ExtensionAssignment_1_0_1() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalCsv.g:4164:1: ( ( ( 'extension' ) ) ) // InternalCsv.g:4165:2: ( ( 'extension' ) ) { // Int...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final void rule__XImportDeclaration__ExtensionAssignment_1_0_1() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalDroneScript.g:19522:1: ( ( ( 'extension' ) ) )\r\n // InternalDroneScript.g:19523:2: ( ( 'ext...
[ "0.78325254", "0.7166076", "0.7015084", "0.6204447", "0.6204447", "0.61175287", "0.58579034", "0.5815476", "0.569975", "0.56376797", "0.56376797", "0.5628171", "0.56159806", "0.5593255", "0.55867237", "0.55162674", "0.55066717", "0.54887587", "0.54836947", "0.5482541", "0.546...
0.8214941
0
$ANTLR end "rule__XImportDeclaration__ExtensionAssignment_1_0_1" $ANTLR start "rule__XImportDeclaration__ImportedTypeAssignment_1_0_2" InternalCsv.g:4179:1: rule__XImportDeclaration__ImportedTypeAssignment_1_0_2 : ( ( ruleQualifiedNameInStaticImport ) ) ;
public final void rule__XImportDeclaration__ImportedTypeAssignment_1_0_2() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalCsv.g:4183:1: ( ( ( ruleQualifiedNameInStaticImport ) ) ) // InternalCsv.g:4184:2: ( ( ruleQualifiedNameInStatic...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final void rule__XImportDeclaration__ImportedTypeAssignment_1_0_2() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalDroneScript.g:19541:1: ( ( ( ruleQualifiedNameInStaticImport ) ) )\r\n // InternalDroneScr...
[ "0.79284227", "0.7468836", "0.69725716", "0.67079103", "0.6621408", "0.64106387", "0.6352851", "0.6306149", "0.6288765", "0.6270869", "0.62375057", "0.62212735", "0.61809945", "0.61170626", "0.6112558", "0.6082994", "0.6069452", "0.6037253", "0.60232675", "0.59202105", "0.591...
0.81690437
0
$ANTLR end "rule__XImportDeclaration__ImportedTypeAssignment_1_0_2" $ANTLR start "rule__XImportDeclaration__WildcardAssignment_1_0_3_0" InternalCsv.g:4198:1: rule__XImportDeclaration__WildcardAssignment_1_0_3_0 : ( ( '' ) ) ;
public final void rule__XImportDeclaration__WildcardAssignment_1_0_3_0() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalCsv.g:4202:1: ( ( ( '*' ) ) ) // InternalCsv.g:4203:2: ( ( '*' ) ) { // InternalCsv.g:4203...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final void rule__XImportDeclaration__Alternatives_1_0_3() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalCsv.g:850:1: ( ( ( rule__XImportDeclaration__WildcardAssignment_1_0_3_0 ) ) | ( ( rule__XImportDeclaration__MemberNameAss...
[ "0.74621516", "0.70609355", "0.7048972", "0.6486475", "0.6184617", "0.6073284", "0.6019162", "0.5953257", "0.59290224", "0.591633", "0.59051424", "0.58008647", "0.577896", "0.5775915", "0.575604", "0.5754632", "0.5749465", "0.57324404", "0.572388", "0.5709402", "0.569728", ...
0.7597957
0
$ANTLR end "rule__XImportDeclaration__WildcardAssignment_1_0_3_0" $ANTLR start "rule__XImportDeclaration__MemberNameAssignment_1_0_3_1" InternalCsv.g:4217:1: rule__XImportDeclaration__MemberNameAssignment_1_0_3_1 : ( ruleValidID ) ;
public final void rule__XImportDeclaration__MemberNameAssignment_1_0_3_1() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalCsv.g:4221:1: ( ( ruleValidID ) ) // InternalCsv.g:4222:2: ( ruleValidID ) { // Internal...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final void rule__XImportDeclaration__MemberNameAssignment_1_0_3_1() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalDroneScript.g:19579:1: ( ( ruleValidID ) )\r\n // InternalDroneScript.g:19580:2: ( ruleVal...
[ "0.78632146", "0.667308", "0.64798856", "0.6440419", "0.6268136", "0.60786265", "0.6039174", "0.6014126", "0.60011923", "0.5982309", "0.59822744", "0.597692", "0.594984", "0.59256595", "0.5894067", "0.5893193", "0.5849548", "0.5822221", "0.58080053", "0.5765856", "0.57649785"...
0.8033556
0
$ANTLR end "rule__XImportDeclaration__MemberNameAssignment_1_0_3_1" $ANTLR start "rule__XImportDeclaration__ImportedTypeAssignment_1_1" InternalCsv.g:4232:1: rule__XImportDeclaration__ImportedTypeAssignment_1_1 : ( ( ruleQualifiedName ) ) ;
public final void rule__XImportDeclaration__ImportedTypeAssignment_1_1() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalCsv.g:4236:1: ( ( ( ruleQualifiedName ) ) ) // InternalCsv.g:4237:2: ( ( ruleQualifiedName ) ) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final void rule__XImportDeclaration__ImportedTypeAssignment_1_1() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalDroneScript.g:19594:1: ( ( ( ruleQualifiedName ) ) )\r\n // InternalDroneScript.g:19595:2: (...
[ "0.76034254", "0.71666723", "0.70676696", "0.6817382", "0.64459723", "0.6425239", "0.63032204", "0.61369675", "0.60895723", "0.6024059", "0.5956061", "0.59229237", "0.58076537", "0.5794224", "0.5776304", "0.5768064", "0.57639277", "0.5755743", "0.5751971", "0.5735098", "0.572...
0.81244886
0
$ANTLR end "rule__XImportDeclaration__ImportedTypeAssignment_1_1" $ANTLR start "rule__XImportDeclaration__ImportedNamespaceAssignment_1_2" InternalCsv.g:4251:1: rule__XImportDeclaration__ImportedNamespaceAssignment_1_2 : ( ruleQualifiedNameWithWildcard ) ;
public final void rule__XImportDeclaration__ImportedNamespaceAssignment_1_2() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalCsv.g:4255:1: ( ( ruleQualifiedNameWithWildcard ) ) // InternalCsv.g:4256:2: ( ruleQualifiedNameWithWildcard ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final void rule__XImportDeclaration__ImportedNamespaceAssignment_1_2() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalDroneScript.g:19613:1: ( ( ruleQualifiedNameWithWildcard ) )\r\n // InternalDroneScript...
[ "0.77362573", "0.710821", "0.7024013", "0.6789326", "0.67321044", "0.6348857", "0.6214673", "0.6210895", "0.61332744", "0.6079816", "0.60564065", "0.59817654", "0.59086925", "0.5901322", "0.57664824", "0.57519567", "0.5688383", "0.565498", "0.5635523", "0.5600842", "0.5545999...
0.7809541
0
When (we retrieve data from the cat)
@Test public void constructorTest(){ String retrievedName = doggy.getName(); Date retrievedBirthDate = doggy.getBirthDate(); Integer retrievedId = doggy.getId(); // Then (we expect the given data, to match the retrieved data) Assert.assertEquals(givenName, retrievedName); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\r\n\tpublic void catTest() {\r\n\t\tItem item = new Item();\r\n\t\ttry {\r\n\t\t\tString tempSet[] = item.getCats();\r\n\t\t\tassertNotSame(tempSet.length, 0);\r\n\t\t\tfor (int i = 0; i < tempSet.length; i++) { // check if categories are empty\r\n\t\t\t\tassertNotNull(tempSet[i]);\r\n\t\t\t\tassertNotSame(t...
[ "0.63696134", "0.61648273", "0.6124456", "0.59430397", "0.58765215", "0.58381844", "0.58201134", "0.57952285", "0.5769675", "0.57353354", "0.57288307", "0.5667298", "0.5656008", "0.56453663", "0.5605003", "0.56039625", "0.5595169", "0.5560888", "0.5537668", "0.5527639", "0.55...
0.0
-1
TODO Autogenerated method stub
public static void main(String[] args) { int[] myList ={ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 }; for (int j = 1; j <=myList.length; j++) { System.out.println(myList[1]); break; } }
{ "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
some hive input formats are broken and bad things can happen if you close them multiple times
@Override public void close() { if (closed) { return; } closed = true; try { stats.addMaxCombinedBytesPerRow(recordReader.getMaxCombinedBytesPerRow()); recordReader.close(); } catch (IOException e) { throw new Unche...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void close() throws HiveException {\n \n }", "public void close() throws FormatException, IOException {\n if (in != null) in.close();\n in = null;\n currentId = null;\n }", "@Test\n void testRead() throws IOException, URISyntaxException {\n final String[]...
[ "0.6391663", "0.55688864", "0.5294216", "0.52129483", "0.5200004", "0.51591444", "0.514159", "0.5090265", "0.5052332", "0.50044096", "0.5001989", "0.49965838", "0.49704644", "0.49635333", "0.49396265", "0.49237356", "0.4904168", "0.49037927", "0.48797363", "0.48763484", "0.48...
0.0
-1
Test of getName method, of class AbstractBuilding.
@Test public void testGetName() { System.out.println("getName"); assertEquals("Abstract building", building.getName()); // TODO review the generated test code and remove the default call to fail. }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract String getName();", "protected abstract String getName();", "abstract public String getName();", "abstract public String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", ...
[ "0.7486465", "0.7475103", "0.73028404", "0.73028404", "0.72612464", "0.72612464", "0.72612464", "0.72612464", "0.72612464", "0.72612464", "0.72612464", "0.72612464", "0.72612464", "0.72612464", "0.72612464", "0.72612464", "0.72612464", "0.72612464", "0.72612464", "0.72612464", ...
0.78974384
0
Test of getDescription method, of class AbstractBuilding.
@Test public void testGetDescription() { System.out.println("getDescription"); assertEquals("Dumb abstract building", building.getDescription()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract String getDescription ( );", "public abstract String getDescription();", "public abstract String getDescription();", "public abstract String getDescription();", "public abstract String getDescription();", "public abstract String getDescription();", "public abstract String getDescription...
[ "0.77839434", "0.7667656", "0.7667656", "0.7667656", "0.7667656", "0.7667656", "0.7667656", "0.7667656", "0.7667656", "0.7633698", "0.76329994", "0.76329994", "0.76329994", "0.76329994", "0.76329994", "0.76329994", "0.76329994", "0.76329994", "0.76329994", "0.7539977", "0.750...
0.7905587
0
Test of build method, of class AbstractBuilding.
@Test public void testBuild() { System.out.println("build"); game.getPlayer().setEps(0); assertEquals((Integer) 1, building.build()); assertEquals((Integer) 0, game.getPlayer().getEps()); game.getPlayer().setEps(600); assertEquals((Integer) 3, building.build(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testBuild() {\n\n\t\tSystem.out.println(\"End\");\n\t}", "public void build() {\r\n // TODO\r\n }", "abstract T build();", "@Test\n public void buildDomeTrue() {\n nextWorkerCell.setLevel(3);\n workerHephaestus.setCurrentWorkerCell(baseWorkerCell);\n wor...
[ "0.70522016", "0.6845994", "0.6761546", "0.65367764", "0.6422823", "0.6383007", "0.63328874", "0.62808716", "0.6280075", "0.6198527", "0.6082763", "0.6054286", "0.60518265", "0.60503596", "0.5999823", "0.5996446", "0.599498", "0.59883475", "0.59876317", "0.597988", "0.5976742...
0.6604799
3
returns 0,1,2 for yes, no, cancel respectively.
public static int yesNoCancelPop(String title, String message, String yesButton, String noButton, String cancelButton) { //Custom button text Object[] options = {yesButton, noButton, cancelButton}; int n = JOptionPane.showOptionDialog(null, message, title, JOptionPane.YES_NO_CANCEL_OPTION, JOptionPane.QUESTION...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int yesOrNo(String input){\r\n\t\tinput = input.replaceAll(\"\\\\s\",\"\"); //Remove spaces from a string. Taken from stack overflow. \r\n\t\tif(input.equals(\"1\"))\r\n\t\t\treturn 1;\r\n\t\telse if(input.equals(\"0\"))\r\n\t\t\treturn 0;\r\n\t\telse if(input.toLowerCase().equals(\"yes\") || input.toLowerC...
[ "0.69963145", "0.6463668", "0.6209956", "0.6136641", "0.6069695", "0.587268", "0.573265", "0.56200576", "0.5613696", "0.5594705", "0.55901825", "0.55701464", "0.5552185", "0.5552059", "0.5550815", "0.55470306", "0.5533959", "0.55242133", "0.5513348", "0.55130464", "0.5510305"...
0.610077
4
In future here will be list of all moves the player can execute.
void printPlayersActionInfo(Player p) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract public List<Move> getPossibleMoves();", "List<Move> getLegalMoves(Player player);", "List<ValidMove> getValidMoves();", "public List<String> legalMoves() {\n List<String> result = new ArrayList<>();\n for (int col = 1; col < _board.length + 1; col += 1) {\n for (int row = 1;...
[ "0.7890191", "0.75692576", "0.73051", "0.72816014", "0.70733684", "0.69696534", "0.69632244", "0.6948668", "0.6947361", "0.6929339", "0.6905107", "0.68404657", "0.68014246", "0.67898834", "0.6748562", "0.6717685", "0.6697903", "0.6694529", "0.66815674", "0.6677925", "0.662550...
0.0
-1
end type class Factory method which use to get the default value from provided object.
public static Object getDefaultValue(Object value) { if (value instanceof String) { return FieldType.STRING_TYPE.getDefaultValue(); } else if (value instanceof ActivityStreamRest) { return FieldType.ACTIVITY_STREAM_REST.getDefaultValue(); } else if (value instanceof ActivityRest) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Object getDefaultValue();", "public Object getDefaultValue();", "T getDefaultValue();", "Object getDefaultValue(String key);", "T defaultValue();", "static public Object getDefaultObject () {\n return defaultObject;\n }", "String getDefaultValue();", "String getDefaultVal...
[ "0.78425026", "0.78425026", "0.78179336", "0.74564123", "0.72166747", "0.7000238", "0.6980419", "0.6980419", "0.68868595", "0.68757856", "0.673692", "0.67209715", "0.6482366", "0.64765394", "0.644909", "0.6436174", "0.64275473", "0.6406121", "0.64049506", "0.63968897", "0.639...
0.65932965
12
Resolves the model object with Context.
public final static void resolve(Class<?> clazz, Map<String, Object> instanceModel, FieldName[] fieldNames) { for(FieldName fieldName : fieldNames) { Object fieldValue = instanceModel.get(fieldName.getFieldName()); if (fieldValue == null) { Object defaultValue = getDefaultValue(fieldValu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected Object resolveModel(Object model) {\n\t\treturn model;\n\t}", "public Resolution resolve(Constraint localConstraint, LocalNode localModel) throws QueryException {\n // globalize the model\n Node modelNode = globalizeNode(localModel);\n if (!(modelNode instanceof URIReference)) throw new Que...
[ "0.7347292", "0.6316077", "0.55367845", "0.5504864", "0.54701114", "0.54469144", "0.54469144", "0.5441959", "0.54064065", "0.538561", "0.53728163", "0.536372", "0.5314047", "0.5299463", "0.52981216", "0.5287268", "0.5282574", "0.52811563", "0.5248448", "0.5248448", "0.5248448...
0.0
-1
part of pre: 0 the (row, column) spot on the board is empty
public Mark getMark(int row, int column) { assert row < ROW_COUNT; assert column < COLUMN_COUNT; //Formula to calculate the index of the row and column in the array // This is array index // 0|1|2 // 3|4|5 // 6|7|8 int gridPosition = column + (row * COLUMN_COUNT); /* * Retrieves the posi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void resetPosition() {\n for (int i = 0; i < board.length; i++) {\n for (int j = 0; j < board[0].length; j++) {\n if (!board[i][j]) {\n rowPos = i;\n columnPos = j;\n return;\n }\n }\n ...
[ "0.7292595", "0.72188634", "0.7146706", "0.71165794", "0.6944181", "0.6908487", "0.68657106", "0.6772488", "0.67640084", "0.6758779", "0.67286223", "0.66722226", "0.6671867", "0.65860677", "0.6581716", "0.6579605", "0.6560366", "0.6548596", "0.65466845", "0.6497811", "0.64959...
0.0
-1
part of pre: 0 <= row < ROW_COUNT && 0 <= column < COLUMN_COUNT part of pre: getMark(row, column) == null part of pre: !isGameOver
public void setMark(int row, int column) { assert getMark(row,column) == null; assert row < ROW_COUNT; assert column < COLUMN_COUNT; assert isGameOver() == false; int markIndex = column + (row * COLUMN_COUNT); for (int i = 0; i < movesArray.length; i++) { if (movesArray[i] == NO_MOVE) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "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 this row?\n int colOffSet = Math.abs(rowOfOtherCol - row);\n ...
[ "0.64923394", "0.6455237", "0.6431875", "0.6401334", "0.63501555", "0.63120806", "0.6092867", "0.60539097", "0.6047166", "0.6009808", "0.59964776", "0.5987759", "0.59809935", "0.5978127", "0.5955154", "0.59435666", "0.59278315", "0.5883766", "0.5875846", "0.5874354", "0.58706...
0.5525241
71
part of post: rv == null it is neither player's turn part of pre: getMark(row,column) == null part of pre: !isGameOver() post: Mark
public Mark getTurn() { if (isGameOver()) { return null; } for (int i = 0; i < movesArray.length; i++) { if (movesArray[i] == -1) { if (i % 2 == 0) { return Mark.X; } else { return Mark.O; } } } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean checkRowForWinner(String mark , int buttonId)\n {\n \t\n \tint rows = 3;\n \tint columns = 3;\n \tint rowNumber = buttonId/rows;\n \tboolean winStatus=false;\n \tint columnCount= 1;\n \tint index;\n \tint rowIndex = rowNumber;\n \tint columnIndex = 0;\n \t\n \twh...
[ "0.64966553", "0.62646556", "0.6147175", "0.610666", "0.609955", "0.59891224", "0.59786475", "0.5960888", "0.5952854", "0.5926263", "0.58185065", "0.57804674", "0.5779868", "0.57757795", "0.5772467", "0.5757803", "0.57457423", "0.5709019", "0.57011425", "0.5696201", "0.568287...
0.6069396
5
part of pre: isGameOver() part of post: rv == null neither player won (game is a tie)
public Mark getWinner() { assert isGameOver(); if (gameState() == 1) { return Mark.X; } if (gameState() == 2) { return Mark.O; } if (gameState() == 3) { return null; } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean gameOver() {\n return winner() != null;\n }", "public boolean gameOver() {\r\n return didPlayerLose() || didPlayerWin();\r\n }", "public boolean gameOver() \n {\n \treturn status() != GAME_NOT_OVER;\n }", "@Override\n protected String checkIfGameOver() {\n ...
[ "0.80198073", "0.76563424", "0.76065135", "0.7592778", "0.75798684", "0.75798684", "0.7544342", "0.753802", "0.753802", "0.74640644", "0.7461339", "0.742455", "0.7416259", "0.7382726", "0.7349464", "0.7319738", "0.7309684", "0.7309684", "0.7300492", "0.7293565", "0.7292775", ...
0.0
-1
/ 0 = game not over 1 = Winner is X 2 = Winner is O 3 = Game over with a tie
private int gameState() { int gameNotOver = 0; int gameOverWinnerX = 1; int gameOverWinnerO = 2; int gameOverTie = 3; //Win Vertically // 0 3 6 , 1 4 7 , 2 5 8 //Win Horizontally //0 1 2 , 3 4 5 , 6 7 8 //Win Diagonally // 0 4 8 , 2 4 6 //Assuming it's an equal...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int winner() {\n if(humanPlayerHits == 17) {\n return 1;\n }\n if(computerPlayerHits == 17){\n return 2;\n }\n return 0;\n }", "public void winGame() {\r\n if (data.gameState == 3) \r\n data.winner = 1;\r\n else if (data....
[ "0.75842035", "0.7489598", "0.74661887", "0.729613", "0.7284756", "0.72201157", "0.71471727", "0.7133381", "0.7132624", "0.7118095", "0.70787615", "0.7037744", "0.70363706", "0.70317197", "0.7014601", "0.6991926", "0.69792193", "0.6948614", "0.6947252", "0.69367474", "0.69331...
0.74183226
3
/ Checks if all the elemnnts in an array are the same
private static boolean allElementsEqual(Mark[] array) { boolean areEqual = true; for(int i=0 ; i < array.length; i++) { if (array[i] == null) { areEqual = false; break; } if(!array[0].equals(array[i])) { areE...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test(testName = \"duplicateElementsFromOneArrays\")\n\t public static void commonElementsFromOneArray() \n\t {\n\t int[] my_array = {1, 2, 5, 5, 6, 6, 7, 2};\n\t \n\t for (int i = 0; i < my_array.length-1; i++)\n\t {\n\t for (int j = i+1; j < my_array.length; j++)\n\t ...
[ "0.73850805", "0.7163848", "0.7037423", "0.6983304", "0.69804114", "0.6950232", "0.69286615", "0.6893962", "0.686273", "0.6728226", "0.672054", "0.6711356", "0.67041665", "0.6700437", "0.6651394", "0.6622783", "0.65785486", "0.65652204", "0.655686", "0.65453", "0.6513621", ...
0.8234912
0
Loads up all of the data
public abstract void initialize();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void loadData()\n {\n }", "public void loadData() {\n\t\tbookingRequestList = bookingRequestDAO.getAllBookingRequests();\n\t\tcabDetailList = cabDAO.getAllCabs();\n\t}", "protected abstract void loadData();", "void loadData();", "void loadData();", "public void loadData ( ) {\n\t\tinvokeSafe ...
[ "0.8149126", "0.7988792", "0.7780447", "0.7664574", "0.7664574", "0.7583894", "0.7549712", "0.7549712", "0.7432445", "0.7378773", "0.734917", "0.73222005", "0.7297962", "0.71863216", "0.7179034", "0.7164256", "0.7143176", "0.7124837", "0.7112901", "0.71127445", "0.7102917", ...
0.0
-1
Gets the location of the file to load from
public abstract String getFileLocation();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "File getLoadLocation();", "public String getLocationPath();", "java.lang.String getFileLoc();", "public String getLocalFilePath() {\n return loadConn.getProperty(\"filePath\");\n }", "public String getResourceLocation() {\n return resourceLocation;\n }", "public String getFilePath() {...
[ "0.82392436", "0.74119747", "0.7217754", "0.7186858", "0.69882023", "0.6962123", "0.6854395", "0.68291354", "0.67026085", "0.6642453", "0.658221", "0.65583026", "0.6556844", "0.65530556", "0.65236783", "0.650067", "0.64777446", "0.64769745", "0.6469418", "0.6440145", "0.64373...
0.70974004
4
Saves the data to the file
public void save(List<T> data) { try { File file = new File(getFileLocation()); if (!file.getParentFile().exists()) { file.getParentFile().mkdirs(); } FileWriter fw = new FileWriter(getFileLocation()); BufferedWriter bw = new BufferedWriter(fw); bw.write(gson.toJson(data)); bw.close(); } ca...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void save() {\n UTILS.write(FILE.getAbsolutePath(), data);\n }", "private void saveData() {\n\t\tdataSaver.save(data);\n\t}", "public void save() {\n\t\tFileOutputStream fos;\n\t\ttry {\n\t\t\tfos = new FileOutputStream(\"studentData.dat\");\n\n\t\t\tObjectOutputStream oos;\n\t\t\ttry {\n\t\t\...
[ "0.87304187", "0.79716367", "0.76532733", "0.7523146", "0.7518753", "0.75146776", "0.75119805", "0.7397267", "0.7377151", "0.7376504", "0.7355958", "0.7337575", "0.73329645", "0.7331181", "0.7329226", "0.7234678", "0.72334266", "0.72220546", "0.7193471", "0.7181843", "0.71727...
0.7096364
31
set permalink if tweet id and screen name are available
@Override public void onViewClicked(@NotNull RecyclerView recyclerView, @NotNull View view, int position, Tweet tweet) { if (tweet != null && tweet.id > 0 && tweet.user != null && !TextUtils.isEmpty(tweet.user.screenName)) { String twitterPermalinkFormat = "https://twitter.com/%s/status/%d?ref_s...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void testSetTweet_nullTweetPermalink() {\n final BaseTweetView view = createView(context, TestFixtures.TEST_TWEET);\n view.setTweet(null);\n Assert.assertThat(view.getPermalinkUri(), nullValue());\n }", "public static void setTwitterScreenname(String screenname, Context context) {\...
[ "0.6334107", "0.555331", "0.55102926", "0.51370245", "0.5092547", "0.5044055", "0.5037842", "0.50262153", "0.4955868", "0.49349985", "0.49272567", "0.4866811", "0.48230046", "0.4822219", "0.47992134", "0.47803435", "0.47739285", "0.47646528", "0.47394222", "0.47371316", "0.47...
0.55194443
2
When instantiated, we pass in the cursor to get the data from. LayoutInflator is what will allow us to inflate views for us
RecyclerViewAdapter(Context context, List<RunPaceEffort> runs) { this.inflater = LayoutInflater.from(context); this.runs = runs; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public View newView(Context context, Cursor cursor, ViewGroup parent) {\n //inflate(XmlPullParser parser, ViewGroup root, boolean attachToRoot)\n //Inflate a new view hierarchy from the specified XML node\n return LayoutInflater.from(context).inflate(R.layout.list_item, parent, ...
[ "0.66919076", "0.6640954", "0.65556926", "0.6549258", "0.6539325", "0.6531491", "0.65029573", "0.6487564", "0.644236", "0.6429646", "0.64028347", "0.63903624", "0.6382483", "0.6373533", "0.63642144", "0.6362526", "0.635826", "0.6353578", "0.63535", "0.6347487", "0.63397104", ...
0.0
-1
Inflate the layout for this fragment
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View view = inflater.inflate(R.layout.fragment_offer, container, false); mOfferViewPager = view.findViewById(R.id.offerViewPager); mImageView = view.fin...
{ "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
This method opens browser and navigates to the url
@BeforeMethod(alwaysRun = true) public static void setUp(){ // ConfigReader.readProperties(Constants.CONFIGURATION_FILEPATH); ConfigReader.readProperties(Constants.CONFIGURATION_FILE); switch (ConfigReader.getPropertyValue("browser")){ case "chrome": //System.setPr...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void openBrowser() {\n ResourceBundle config = ResourceBundle.getBundle(\"config\");\n\n config.getString(\"browser\").equalsIgnoreCase(\"Chrome\");\n System.setProperty(\"webdriver.chrome.driver\", \"src/Drivers/chromedriver_76.0.exe\");\n driver = new ChromeDriver();\n\...
[ "0.76338387", "0.7614488", "0.76095486", "0.7530868", "0.7388929", "0.73656654", "0.7312675", "0.72509646", "0.7196583", "0.71831274", "0.7165954", "0.715497", "0.7130782", "0.7130573", "0.71143335", "0.7106877", "0.7077491", "0.7058812", "0.7048437", "0.7032038", "0.7026232"...
0.0
-1
This method closes all instances of the WebDriver
@AfterMethod(alwaysRun = true) public static void tearDown() { if (driver != null) { driver.quit(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void close() {\n seleniumDriver.close();\n }", "public void closeAllBrowsers() {\n\n driver.quit();\n\n\n }", "public void close() {\n if (driver.get() != null) {\n driver.get().quit();\n driver.set(null);\n }\n }", "public void close() {\r\n ...
[ "0.8559549", "0.81934017", "0.8191062", "0.80774915", "0.8062501", "0.8020457", "0.798615", "0.78698236", "0.77643394", "0.76931363", "0.7668973", "0.7649057", "0.7645409", "0.76316917", "0.7591797", "0.74763733", "0.74600935", "0.73934245", "0.7372019", "0.7279732", "0.72281...
0.6392769
85
This method is sending text to any textBox
public static void sendText (WebElement element, String textToSend ){ element.clear(); element.sendKeys(textToSend); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void sendTextInBox() {\n\t\tmodelAdapter.send(textFieldMessage.getText());\n\t textFieldMessage.setText(\"\");\n\t }", "private void sendMessage(JTextField text){\n \t\tString message = text.getText();\n \t\tfor(int i = 0; i < listeners.size(); i++)\n \t\t{\n \t\t\tboolean b = listeners.get(i).sendMe...
[ "0.80663073", "0.7147775", "0.70285136", "0.67901886", "0.6688161", "0.6683229", "0.6595907", "0.6595798", "0.65940124", "0.6589355", "0.6586878", "0.6586424", "0.65862656", "0.6579476", "0.6575778", "0.65377814", "0.6481288", "0.6474714", "0.6446708", "0.6406404", "0.6402754...
0.6294142
31
This method creates an object of WebDriverWait
public static WebDriverWait getWait(){ WebDriverWait wait = new WebDriverWait(driver,Constants.EXPLICIT_WAIT); return wait; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Flight(WebDriver driver){\n this.driver=driver;\n wait = new WebDriverWait(driver,10);\n\n\n }", "public WebDriverWait getWebDriverWait(){\n\t\treturn oWebDriverWait;\n\t}", "public static void setWaitSelenium() throws InterruptedException {\n WebDriverManager.chromedriver().setu...
[ "0.712388", "0.70644057", "0.6939117", "0.6862588", "0.67633", "0.66835016", "0.6671433", "0.6613857", "0.65853965", "0.6530176", "0.6491584", "0.64867604", "0.6451258", "0.6374409", "0.6228856", "0.61903465", "0.61685735", "0.6030258", "0.6030006", "0.6027535", "0.60240537",...
0.7370829
0
this method will wait till element becomes clickable
public static void waitForClickability(WebElement element){ getWait().until(ExpectedConditions.elementToBeClickable(element)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void waitForElementToBeClickable(WebElement element) {\n wait.until(ExpectedConditions.visibilityOf(element));\n wait.until(ExpectedConditions.elementToBeClickable(element));\n }", "protected WebElement waitForElementToBeClickable(WebElement element) {\n actionDriver.moveToElement(...
[ "0.78482515", "0.78349555", "0.77850354", "0.77730274", "0.7562124", "0.7362398", "0.7287528", "0.72311723", "0.71713465", "0.7027442", "0.70256525", "0.69267017", "0.69032377", "0.6901089", "0.6858391", "0.6830395", "0.6793556", "0.66804504", "0.66485703", "0.6635387", "0.66...
0.7862747
0
this method will wait till element becomes visible
public static void waitForVisibility(WebElement element){ getWait().until(ExpectedConditions.visibilityOf(element)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void waitElementToBeVisible(WebElement webElement) {\n wait.until(ExpectedConditions.visibilityOf(webElement));\n }", "protected WebElement waitForElementToBeVisible(WebElement element) {\n actionDriver.moveToElement(element);\n WebDriverWait wait = new WebDriverWait(driver, 5);\n ...
[ "0.7960256", "0.7945982", "0.7862749", "0.7806758", "0.77820534", "0.7778338", "0.7725829", "0.77143", "0.7653888", "0.76241416", "0.76147705", "0.75367194", "0.75289965", "0.742916", "0.7308984", "0.72835046", "0.7274706", "0.72695726", "0.71802604", "0.7142045", "0.7093586"...
0.7980556
0
this method check if element is displayed
public static boolean displayed(WebElement element){ waitForVisibility(element); return element.isDisplayed(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isDisplayed();", "boolean isDisplayed();", "public boolean isVisible() {\n\t\treturn element.isDisplayed();\n\t}", "boolean isContentDisplayed();", "public boolean isDisplayed() \n\t\t\t\t{\n\t\t\t\t\treturn false;\n\t\t\t\t}", "public static void isElementDisplayed(WebElement element) {\n...
[ "0.79831564", "0.79148036", "0.7653991", "0.7649966", "0.7540034", "0.7445142", "0.73781824", "0.72773665", "0.72461104", "0.72337395", "0.7170522", "0.7144066", "0.71140444", "0.71123075", "0.7095658", "0.7094151", "0.70737463", "0.70737463", "0.7071581", "0.7071581", "0.705...
0.76900953
2
Below are the commentary sections for different outcomes as well as different situations
public void batsmanOut(int over,int ball,String name){ this.addCommentary(over+"."+ball+" "+name+" is out\n"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String args[]) {\n boolean hasSATscore = true;\n boolean hasHighSchoolTranscript = true;\n boolean isInternational=false;\n boolean hasTOFELscore=false;\n\n /*\n * logical_step2: Check if the applicant is eligible to apply to the university\n ...
[ "0.56325924", "0.5577463", "0.5465451", "0.5465393", "0.5445084", "0.54180056", "0.5405478", "0.53915596", "0.53745556", "0.5350322", "0.533573", "0.53183985", "0.5303942", "0.52989274", "0.52968585", "0.5289969", "0.5279384", "0.5270423", "0.52594197", "0.5259154", "0.525095...
0.0
-1
Print each player scorecard
public void printSummary(Team team){ for(Player player : team.getPlayers()){ if(player.isOut() == true){ this.addCommentary(player.getName()+" : "+player.getRuns()+" ("+player.getBalls()+" Balls)\n"); }else if(player.isY2B() == true){ this.addCommentary(player.getName()+" : DNB\n"); }else{ ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void printCard() {\r\n String print = \"[\";\r\n for (Card card : cards) {\r\n print += card.toString();\r\n print += \",\";\r\n }\r\n\r\n print = print.substring(0, print.length() - 1);\r\n print += \"]\";\r\n print += \" Score = \";\r\n ...
[ "0.79589665", "0.75210685", "0.7417974", "0.7391327", "0.734572", "0.7345406", "0.73097044", "0.7278886", "0.72715086", "0.72713596", "0.7254197", "0.7227783", "0.72122157", "0.71980757", "0.71597534", "0.7078289", "0.70439225", "0.70426077", "0.7023608", "0.70046544", "0.700...
0.0
-1
Creates an empty directory with the configured permissions.
@TaskAction public void create() { dir.mkdirs(); getChmod().chmod(dir, dirMode); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private File createEmptyDirectory() throws IOException {\n File emptyDirectory = findNonExistentDirectory();\n if (emptyDirectory.mkdir() == false) {\n throw new IOException(\"Can't create \" + emptyDirectory);\n }\n\n return emptyDirectory;\n }", "private void createDir...
[ "0.711819", "0.7045727", "0.66414875", "0.6627678", "0.63321", "0.6306679", "0.6262066", "0.61459404", "0.6117107", "0.609362", "0.6093211", "0.6067509", "0.60245764", "0.60226643", "0.6011504", "0.59513783", "0.5939055", "0.5934831", "0.5932534", "0.5932055", "0.59262747", ...
0.7386119
0
A Generic DAO interface
public interface GenericDao<E, ID, Q> { /** * Delete an entity * * @param entity * @return this instance. * @exception IllegalArgumentException * if <code>entity</code> is <code>null</code>. */ GenericDao<E, ID, Q> delete(E entity); Collection<E>...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface DAOInterface<T> {\n T create();\n void adicionar(T obj);\n void excluir(T obj);\n void atualizar(T obj);\n List<T>listar();\n T findForId(int id);\n T findForString(String string);\n}", "public interface DAO <T> {\n void add (T t);\n void delete (T t);\n boolean fin...
[ "0.86640745", "0.8558017", "0.85305864", "0.8409689", "0.8388673", "0.8384943", "0.8309705", "0.82908225", "0.8282061", "0.8273602", "0.82732946", "0.8202881", "0.8182326", "0.8171465", "0.8145586", "0.8130788", "0.8124258", "0.8100448", "0.8091664", "0.80587465", "0.80510867...
0.7628716
62
Find a collection of entities by specified example.
Collection<E> findByExample(E example);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List findByExample(Object example);", "public List findByExample(E entityClass) ;", "List<T> findByExample(T exampleInstance);", "List<T> findByExample(T t) ;", "List<T> searchByExample(T entity);", "List<TestEntity> selectByExample(TestEntityExample example);", "List<T> selectByExample(E exampl...
[ "0.7092026", "0.7050104", "0.68743956", "0.67505586", "0.67498374", "0.6524171", "0.6457408", "0.6352254", "0.62995785", "0.62714475", "0.6169475", "0.6139208", "0.61374414", "0.61166275", "0.6116314", "0.6102773", "0.60919285", "0.6090975", "0.6087132", "0.6083482", "0.60661...
0.77228624
0
Lifecycle of an entrypoint 1. initialize with arguments, removing processed arguments to prevent subsequent entrypoints from consuming them 2. start() 3. run() 4. stop() 5. finalize()
public interface EntryPoint extends PrioritizedExtension, Startable, Stoppable { enum ContextEntries { ARGS, KERNEL, // may not always exist ENTRY_POINTS, RUNNING_ENTRY_POINTS, ENTRY_POINTS_TEMP, KERNEL_EXECUTOR_SERVICE, ENTRY_POINT_REGISTRY; } default boolean requiresKernel() { r...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String args[]) {\n\t\t\r\n\t\t@PostConstruct\r\n\t\tpublic void doMyStartupStuff() {\r\n\t\t\tSystem.out.println(\"TennisCoach: inside of doMyStartupStuff()\");\r\n\t\t}\r\n\t\t\r\n\t\t// define my destroy method\r\n\t\t\r\n\t\t@PreDestroy\r\n\t\tpublic void doMyCleanupStuff() {\r\n\t\t\tSy...
[ "0.63841563", "0.63131106", "0.6104685", "0.6015593", "0.5945948", "0.5920697", "0.58635753", "0.5843396", "0.5802894", "0.5797008", "0.5792667", "0.57473826", "0.5722749", "0.5718386", "0.5717237", "0.5714988", "0.5710267", "0.56961715", "0.56921923", "0.567333", "0.5672279"...
0.6274806
2
Prints the string with username
public static void printUsername() { System.out.println("Enter the username"); String username = Utility.SCANNER.nextLine(); int length = username.length(); if(length > 3) { System.out.println("Hello "+username+", How are you?"); } else { System.out.println("Invalid username"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public String toString() {\n return \"Username: \" + this.username + \"\\n\";\n }", "@Override\n\tpublic String toString() {\n\t\treturn username;\n\t}", "@Override\n public String toString() {\n return username;\n }", "@Override\n public String toString() {\n return g...
[ "0.7176492", "0.7151219", "0.713686", "0.6947985", "0.6937974", "0.6937974", "0.6937974", "0.6937974", "0.6937974", "0.6937974", "0.6937974", "0.6937974", "0.6937974", "0.690366", "0.6792659", "0.6751236", "0.6731091", "0.6697961", "0.6672314", "0.66044235", "0.6601259", "0...
0.7752589
0
MatchDAO matchDao = new MatchDaoImpl();
public void isValidBooking(Booking book) { int matchId = book.getMatchId(); int noOfSeats = book.getNoOfSeats(); int availableSeats = 0; availableSeats = matchRepo.getAvailableSeats(matchId); int totalAmount = book.getTotalAmount(); String seatType = book.getSeatType(); if (!InputValidator.isValidString(s...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public MatchDAO getMatchDAO() {\n return matchDAO;\n }", "public RcivControlDAOImpl(){\r\n \r\n }", "public interface CurrentCompetitionDao extends BaseDao<CurrentCompetition> {\n}", "public OnibusDAO() {}", "public interface FeedbackOptionDAO extends DAO{\r\n \r\n}", "public inter...
[ "0.76341504", "0.6996127", "0.68349993", "0.67664886", "0.67000157", "0.6694438", "0.66703576", "0.66527015", "0.65675557", "0.65607667", "0.6551326", "0.6507916", "0.65038997", "0.6491995", "0.6485977", "0.6475714", "0.64735043", "0.6469582", "0.64691716", "0.6468226", "0.64...
0.0
-1
show/hide Recipes RecyclerView & NoDataContainer data state
private void setDataVisibility() { boolean loaded = mRecipeList != null && mRecipeList.size() > 0; Logger.d("loaded: " + loaded); mRefreshLayout.setRefreshing(false); mRecipesRecyclerView.setVisibility(loaded ? View.VISIBLE : View.GONE); mNoDataContainer.setVisibility(loaded ? V...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void showData(){\n loadMainActivity.setVisibility(View.INVISIBLE);\n recyclerView.setVisibility(View.VISIBLE);\n }", "private void showDataView() {\n mLoadingIndicator.setVisibility(View.INVISIBLE);\n /* Finally, make sure the data is visible */\n mRecycleView.setVisi...
[ "0.68992084", "0.6470131", "0.62163144", "0.61217034", "0.606436", "0.60637355", "0.60568", "0.6041165", "0.6032561", "0.60219216", "0.6001952", "0.59910065", "0.59584916", "0.5945889", "0.5936006", "0.5902433", "0.5884715", "0.58430684", "0.582506", "0.5792826", "0.57756746"...
0.7960232
0
This interface must be implemented by activities that contain this fragment to allow an interaction in this fragment to be communicated to the activity and potentially other fragments contained in that activity. See the Android Training lesson Communicating with Other Fragments for more information.
public interface OnRecipeClickListener { void onRecipeSelected(Recipe recipe); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface OnFragmentInteractionListener {\n void onFragmentMessage(String TAG, Object data);\n}", "public interface FragmentInteraction {\n void switchToBoardView();\n void switchToPinsView();\n void switchToPins(PDKBoard pdkBoard);\n void switchToDescription(PDKPin pin);\n}", "public int...
[ "0.7324027", "0.7207771", "0.71360254", "0.71240944", "0.712247", "0.7014617", "0.6975529", "0.6975529", "0.6975529", "0.69738495", "0.6967201", "0.69653356", "0.6960433", "0.6953883", "0.6943047", "0.6934466", "0.6930002", "0.69280016", "0.6922649", "0.6909678", "0.6903297",...
0.0
-1
parse input json and extract Id field
@Override public void process(final Exchange exchange) throws Exception { final Message in = exchange.getIn(); final String body = in.getBody(String.class); if (body == null) { return; } final ObjectNode node = (ObjectNode) MAPPER.readTree(body); final ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@JsonProperty(\"id\")\n public String getId();", "@NotNull\n @JsonProperty(\"id\")\n public String getId();", "private Integer extractId(Request request) throws InvalidInputException {\n\t\tString intString = (String)request.getAttributes().get(RequestParamConstants.PARAM_META_ID);\n\t\tInteger id = n...
[ "0.5958399", "0.590995", "0.5854208", "0.5811858", "0.58069676", "0.5693438", "0.56301063", "0.56002647", "0.5511364", "0.5511364", "0.5470746", "0.5438017", "0.5438017", "0.5438017", "0.5438017", "0.5438017", "0.5438017", "0.5438017", "0.5438017", "0.5438017", "0.5438017", ...
0.5282673
36
Get appropriate mapper, based on existence of a root element
@Override public <T> T getEntity (Class<T> returnType) { ObjectMapper mapper = HttpClientConnector.getObjectMapper (returnType); T resp = null; try { resp = mapper.readValue(entityBody, returnType); } catch (Exception e) { throw new HttpClientException ("Caught exception in getEntity", e); } return ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "IMappingNode getMappingNode(Object groupID) throws Exception;", "@Override\n @CheckForNull\n public RootElementConfigurator lookupRootElement(String name) {\n return registry.lookupRootElement(name);\n }", "@Override\r\n\tpublic Object getMapper() {\n\t\treturn null;\r\n\t}", "public MappingR...
[ "0.5613069", "0.51934", "0.50725824", "0.50440687", "0.5032965", "0.48962793", "0.48933306", "0.48778224", "0.48742497", "0.48663953", "0.47819957", "0.4769064", "0.47645286", "0.4759252", "0.47193378", "0.47057164", "0.4694131", "0.4633925", "0.46218264", "0.46057823", "0.46...
0.0
-1
Created by a23sokolov on 25/09/2017.
@Singleton @Component(modules = {ModelModule.class, PresenterModule.class}) public interface AppComponent { void inject(ModelImpl dataRepository); void inject(BasePresenter basePresenter); void inject(PresenterSearch presenterSearch); void inject(FavouriteActivity favouriteActivity); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "private stendhal() {\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r...
[ "0.6145723", "0.59099793", "0.58220243", "0.57644933", "0.5756547", "0.5710175", "0.5710175", "0.5700567", "0.5672991", "0.56719965", "0.5655305", "0.5632239", "0.5629797", "0.5621594", "0.56064177", "0.56046987", "0.55988395", "0.55958843", "0.5575631", "0.55357146", "0.5519...
0.0
-1
ctor Note that this controller must be created after the views have been loaded in the frame
public ModelViewFrameController(ModelViewFrame frame, TSConnection conn) { super(frame); assert (conn != null); m_frame = frame; m_connection = conn; assignListener(ModelViewFrame.ID_TAB_PANE, new ViewSelectedListener()); assignAction(ModelViewNames.ID_PRINT, new com.jeta.abeille.gui.model.common.PrintAct...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Controller()\r\n\t{\r\n\t\tview = new View();\r\n\t}", "public MehController() {\n updateView(null);\n }", "public MainFrameController() {\n }", "public ViewClass() {\n\t\tcreateGUI();\n\t\taddComponentsToFrame();\n\t\taddActionListeners();\n\t}", "private FrameUIController(){\r\n\t\t\r\n\t}"...
[ "0.7450543", "0.7321027", "0.7233769", "0.7218318", "0.7213649", "0.71763784", "0.7160034", "0.71527725", "0.71431786", "0.7127416", "0.7127416", "0.70877105", "0.70877105", "0.7073505", "0.7073505", "0.7072971", "0.7056414", "0.7056079", "0.7047007", "0.7046568", "0.7035441"...
0.6604496
90
Invokes the table editor dialog
void editTable(ModelView view, TableWidget oldwidget) { if (oldwidget != null) { TableMetaData tmd = oldwidget.getTableMetaData(); TableSelectorModel tm = m_frame.getTableSelector(); TableEditorDialog dlg = new TableEditorDialog(m_frame.getParentFrame(), (TableMetaData) tmd.clone(), m_connection, getMo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public TableEditor openTableEditor(){\n this.save();\n\t\treturn new TableEditor(this.getTitle());\n\t}", "public void performTambah() {\n\n dialogEntry.postInit();\n dialogEntry.clearFields();\n dialogEntry.setRowToBeEdited(-1);\n //dialogEntry.clearFields ();\n dialogE...
[ "0.6834326", "0.6388627", "0.63711035", "0.6347062", "0.6273325", "0.6251613", "0.61242336", "0.60949117", "0.6068957", "0.6052258", "0.60310036", "0.60310036", "0.59904855", "0.5940084", "0.5934706", "0.5865686", "0.5842095", "0.5834972", "0.58308333", "0.582632", "0.5821294...
0.6179495
6
Helper method that shows a sql exception
public void showSQLError(Object comp, Exception e, String sql) { SQLErrorDialog dlg = null; if (comp instanceof TSInternalFrame) dlg = (SQLErrorDialog) TSGuiToolbox.createDialog(SQLErrorDialog.class, (TSInternalFrame) comp, true); else if (comp instanceof java.awt.Component) dlg = (SQLErrorDialog) TSGuiToo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void showAlertDBError() {\n showAlertSelectionFail(\"Database error\", \"Could not establish a connection to the database. Please visit the database settings to verify your connection.\");\n }", "private void printSqlError(SQLException e){\n\t System.out.println(\"SQLException: \" + e.getMes...
[ "0.7215418", "0.72011584", "0.7185331", "0.695916", "0.67747104", "0.6757853", "0.6664559", "0.65468156", "0.65100163", "0.6473449", "0.64178485", "0.62971735", "0.6236878", "0.62312603", "0.6223998", "0.621842", "0.61830187", "0.61425215", "0.61314356", "0.6120352", "0.60884...
0.7063772
3
allow user to save/commit prototypes in evaluation and standard versions
protected boolean checkLicense() { return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void saveBeforeCompile() { }", "public void saveBeforeCompile() { }", "public static void doSavechanges ( RunData data)\n\t{\n\t\tSessionState state = ((JetspeedRunData)data).getPortletSessionState (((JetspeedRunData)data).getJs_peid ());\n\t\tParameterParser params = data.getParameters ();\n\n\t\tStrin...
[ "0.6020051", "0.6020051", "0.567603", "0.5548642", "0.5534917", "0.5510709", "0.54665977", "0.54665977", "0.5432877", "0.5409031", "0.5397598", "0.5397598", "0.5389793", "0.53823155", "0.53799146", "0.5349413", "0.5326375", "0.5325899", "0.5320876", "0.53173614", "0.5314589",...
0.0
-1
MySQL allows foreign keys under very limited conditions. If we detect this situation, then post a MySQL message describing the foreign key requirements when creating a table
protected void handleInvocationException(SQLException se) { if (m_connection.getDatabase().equals(Database.MYSQL)) { String errmsg = se.getMessage(); if (errmsg != null && (errmsg.indexOf("errno: 150") >= 0) && sql_cmd.indexOf("CREATE TABLE") >= 0 && sql_cmd.indexOf("FOREIGN KEY") >= 0) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test(timeout = 4000)\n public void test098() throws Throwable {\n DefaultDBTable defaultDBTable0 = new DefaultDBTable(\"x=&,Xbg5VGv)A%T)\");\n String[] stringArray0 = new String[3];\n DBForeignKeyConstraint dBForeignKeyConstraint0 = new DBForeignKeyConstraint((String) null, true, defaultDBTable0...
[ "0.65967417", "0.6563764", "0.65495056", "0.6444882", "0.63449734", "0.62026036", "0.6198292", "0.61895543", "0.6152234", "0.6098158", "0.6047724", "0.6029067", "0.6018559", "0.59964335", "0.59765583", "0.59676033", "0.5911594", "0.59024554", "0.58904004", "0.58435893", "0.58...
0.0
-1
Create an entity for this test. This is a static method, as tests for other entities might also need it, if they test an entity which requires the current entity.
public static A createEntity(EntityManager em) { A a = new A(); return a; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Entity createEntity();", "T createEntity();", "protected abstract ENTITY createEntity();", "void create(E entity);", "void create(T entity);", "E create(E entity);", "E create(E entity);", "protected abstract EntityBase createEntity() throws Exception;", "TestEntity buildEntity () {\n TestEn...
[ "0.7723081", "0.7504888", "0.7488197", "0.7361488", "0.7314487", "0.71557975", "0.71557975", "0.71507055", "0.7150184", "0.70774347", "0.70165956", "0.6804127", "0.67525256", "0.6740804", "0.6740804", "0.67120445", "0.668205", "0.6667814", "0.66407937", "0.66253084", "0.66245...
0.63760424
32
Create an updated entity for this test. This is a static method, as tests for other entities might also need it, if they test an entity which requires the current entity.
public static A createUpdatedEntity(EntityManager em) { A a = new A(); return a; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static Student createUpdatedEntity(EntityManager em) {\n Student student = new Student()\n .firstName(UPDATED_FIRST_NAME)\n .middleName(UPDATED_MIDDLE_NAME)\n .lastName(UPDATED_LAST_NAME)\n .studentRegNumber(UPDATED_STUDENT_REG_NUMBER)\n .dateOfB...
[ "0.6944623", "0.6789358", "0.6787733", "0.67178226", "0.66935664", "0.66923934", "0.66645837", "0.6620054", "0.6514183", "0.65090156", "0.64468557", "0.642337", "0.642035", "0.64203477", "0.6416903", "0.6411751", "0.6409242", "0.6403685", "0.6393484", "0.63908887", "0.6388083...
0.6636187
7
Create the A with an existing ID
@Test void createAWithExistingId() throws Exception { a.setId(1L); int databaseSizeBeforeCreate = aRepository.findAll().collectList().block().size(); // An entity with an existing ID cannot be created, so this API call must fail webTestClient .post() .uri(EN...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "II addId();", "public Object create() {\n executeCallbacks(CallbackType.BEFORE_CREATE);\n\n executeCallbacks(CallbackType.BEFORE_VALIDATION);\n executeValidations();\n executeValidationsOnCreate();\n executeCallbacks(CallbackType.AFTER_VALIDATION);\n\n if (errors.size() ...
[ "0.6374789", "0.61562455", "0.60996103", "0.60504436", "0.60087734", "0.59783095", "0.59627223", "0.5915656", "0.59031844", "0.5896715", "0.58331615", "0.5830744", "0.5816149", "0.5804963", "0.57990867", "0.579802", "0.5782864", "0.57679754", "0.5766191", "0.57055175", "0.566...
0.6568847
0
Recover the peerID reported by the peer
private void handleHandshakeMessage(UUID peerID, byte[] message) { UUID newPeerID = ByteAuxiliary.recoverUUID(message); handler.handleHandshakeMessage(peerID, newPeerID); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getPeerID() {\n\t\t//return this.localPeer.getPeerID();\n\t\treturn \"\";\n\t}", "public byte[] getPeerId() {\n\t\treturn _myPeerId;\n\t}", "public int getLocalPeerID()\n {\n return localPeerID;\n }", "public PeerID getPeerID() {\n return pid;\n }", "private String getP...
[ "0.71118957", "0.6966855", "0.6789257", "0.6674995", "0.63636404", "0.6342914", "0.6035562", "0.6017173", "0.5949112", "0.57918537", "0.5760862", "0.5737753", "0.57218033", "0.5690474", "0.56072617", "0.5575201", "0.548172", "0.5433167", "0.5423549", "0.53921175", "0.5390847"...
0.52527344
37
Inflate the menu; this adds items to the action bar if it is present.
@Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.menu_withdrawal, menu); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tMenuInflater inflater = getMenuInflater();\n \tinflater.inflate(R.menu.main_activity_actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {...
[ "0.7246102", "0.7201358", "0.7194834", "0.7176498", "0.71066517", "0.7039537", "0.7037961", "0.70112145", "0.70094734", "0.69807225", "0.6944953", "0.69389373", "0.6933199", "0.6916928", "0.6916928", "0.6891486", "0.68831646", "0.68754137", "0.68745375", "0.68621665", "0.6862...
0.0
-1
Handle action bar item clicks here. The action bar will automatically handle clicks on the Home/Up button, so long as you specify a parent activity in AndroidManifest.xml.
@Override public boolean onOptionsItemSelected(MenuItem item) { int id = item.getItemId(); //noinspection SimplifiableIfStatement if (id == R.id.action_settings) { return true; } return super.onOptionsItemSelected(item); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onOptionsItemSelected(MenuItem item) { Handle action bar item clicks here. The action bar will\n // automatically handle clicks on the Home/Up button, so long\n // as you specify a parent activity in AndroidManifest.xml.\n\n //\n // HANDLE BACK BUTTON\n ...
[ "0.7904454", "0.78056747", "0.77659833", "0.7727365", "0.7631989", "0.76223314", "0.7584553", "0.75306034", "0.7487836", "0.745791", "0.745791", "0.7438328", "0.74220496", "0.74034584", "0.7391494", "0.73866826", "0.73788977", "0.7370167", "0.7362255", "0.73555887", "0.734525...
0.0
-1
This method sets buttons from disable to enable to play again
public static void enableButtons(ArrayList<JButton> gameButton){ for(int i=0; i<gameButton.size(); ++i){ gameButton.get(i).setEnabled(true); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void enableBtn() {\n findViewById(R.id.button_play).setEnabled(true);\n findViewById(R.id.button_pause).setEnabled(true);\n findViewById(R.id.button_reset).setEnabled(true);\n }", "public void disableButtons() {\n\t\t\r\n\t\tcapture.setEnabled(false);\r\n\t\tstop.setEnabled(false);\r\n\t\...
[ "0.80809253", "0.7864473", "0.7789992", "0.768924", "0.7532707", "0.7530779", "0.75297415", "0.7461327", "0.7448103", "0.7427214", "0.7420218", "0.7403773", "0.7388368", "0.73497534", "0.73303986", "0.7315597", "0.7314077", "0.73092514", "0.7287487", "0.72863245", "0.7285263"...
0.0
-1
This method shows effects when X or O wins the game
public static boolean winningEffect(JButton b1, JButton b2, JButton b3, ArrayList<JButton> myGameButton){ enableButtons(myGameButton); // Set Back-Ground Color b1.setBackground(Color.green); b2.setBackground(Color.green); b3.setBackground(Color.green); // Set Fore-Ground ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void win() {\n if (_game.isWon()) {\n showMessage(\"Congratulations you win!!\", \"WIN\", \"plain\");\n }\n }", "public void winGame() {\r\n if (data.gameState == 3) \r\n data.winner = 1;\r\n else if (data.gameState == 4) \r\n data.winner = 2;\r\n ...
[ "0.66534525", "0.66505885", "0.6535941", "0.65317166", "0.6500741", "0.6475949", "0.6400349", "0.63654876", "0.6316254", "0.6287952", "0.6272681", "0.62531006", "0.62442863", "0.6234042", "0.6233124", "0.62229615", "0.6192443", "0.61767656", "0.6176476", "0.61764634", "0.6176...
0.0
-1
This method shows effects when no one wins the game
public static void GameOverEffect(ArrayList<JButton> myGameButton){ enableButtons(myGameButton); for(int i=0; i<myGameButton.size(); ++i){ myGameButton.get(i).setBackground(Color.red); // set buttons back-ground color myGameButton.get(i).setForeground(Color.white); // set buttons...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void gameOver() {\n\t\t\n\t}", "@Override\n public void gameOver() {\n messagePanel.showMessage(image);\n setEnabled(false);\n }", "public boolean gameOver()\n {\n return checkmate()||draw()!=NOT_DRAW;\n }", "private void gameOver() {\n\t\tgameOver=true;\n\t}", "@Ov...
[ "0.7044104", "0.7004395", "0.6953088", "0.68993485", "0.6728416", "0.6723751", "0.6723164", "0.6723164", "0.6701987", "0.66990936", "0.6685601", "0.66845113", "0.6683887", "0.6677008", "0.6630195", "0.6629033", "0.66258794", "0.66191405", "0.6615345", "0.6607556", "0.66054404...
0.0
-1
This method clears winning effects to continue game
public static void clearEffect(ArrayList<JButton> myGameButton){ for(int i=0; i<myGameButton.size(); ++i){ myGameButton.get(i).setBackground(Color.LIGHT_GRAY); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void reset(){\n newGame();\n removeAll();\n repaint();\n ended = false;\n }", "public void reset() {\r\n\t\tplayAgain = false;\r\n\t\tmainMenu = false;\r\n\t\tachievement = 0;\r\n\t}", "public void reset() { \r\n myGameOver = false; \r\n myGamePaused = false; \r...
[ "0.7087291", "0.70239663", "0.6984291", "0.68680197", "0.6856361", "0.68553936", "0.68479526", "0.6807214", "0.67888385", "0.67751664", "0.6731247", "0.6722736", "0.67210394", "0.67199373", "0.67060024", "0.66098785", "0.66062075", "0.66018975", "0.66012424", "0.66010535", "0...
0.0
-1
Constructors Create a detached IfactRecord
public IfactRecord() { super(Ifact.IFACT); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public PersonRecord() {}", "public EmployeeRecord(){}", "public OfcRecordRecord() {\n\t\tsuper(org.openforis.collect.persistence.jooq.tables.OfcRecord.OFC_RECORD);\n\t}", "public PedidoRecord() {\n super(Pedido.PEDIDO);\n }", "public BookRecord() {\n super(Book.BOOK);\n }", "public Re...
[ "0.64966774", "0.64243656", "0.6232185", "0.622318", "0.60823846", "0.6074792", "0.60529506", "0.60260534", "0.5934409", "0.5913355", "0.5910483", "0.5858067", "0.5738658", "0.5727325", "0.5726212", "0.568294", "0.56491196", "0.5634046", "0.56322217", "0.5629743", "0.56120336...
0.6482843
1
Create a detached, initialised IfactRecord
public IfactRecord(Object id, Object datasourceId, Object campaignId, Object calendarId) { super(Ifact.IFACT); setId(id); setDatasourceId(datasourceId); setCampaignId(campaignId); setCalendarId(calendarId); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public IfactRecord() {\n super(Ifact.IFACT);\n }", "public OfcRecordRecord() {\n\t\tsuper(org.openforis.collect.persistence.jooq.tables.OfcRecord.OFC_RECORD);\n\t}", "public abstract ExternalRecord createExternalRecord()\r\n\t\t\tthrows Exception;", "public PersonRecord() {}", "public Long create...
[ "0.6071667", "0.6040068", "0.59522307", "0.5942199", "0.588377", "0.58686674", "0.5798931", "0.5662777", "0.563698", "0.56164026", "0.5534418", "0.55221313", "0.5499578", "0.5489511", "0.54603934", "0.544467", "0.5428361", "0.54255015", "0.54245734", "0.54203284", "0.541981",...
0.0
-1
FONCTION NOUVELLE QUESTION =================================================
public void nouvelleQuestion() { getAll(); Random random = new Random(); do { questionObjet = listeQuestions.get(random.nextInt(listeQuestions.size())); niveauUtil = questionObjet.getNiveau(); } while (niveauUtil != niveau); questionUtil = question...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "public void mo21792Q() {\n }", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n public void computeSatisfaction() {\n\n }", "protected boolean func_70814_o() { return true; }", "public abstract boolean mo36211n();", "@Override\r\...
[ "0.6290157", "0.5948034", "0.5946625", "0.5870774", "0.5845423", "0.57936317", "0.57661873", "0.5748889", "0.57331616", "0.5706272", "0.5705428", "0.5701692", "0.56870925", "0.5682459", "0.56717473", "0.56625557", "0.5661089", "0.56529933", "0.56511575", "0.5625074", "0.56082...
0.0
-1
============================================================================= FONCTION FILTRAGE REPONSE ========
public String reponse() { return reponseUtil.toLowerCase() .replace("[àâä]", "a") .replace("[éèêë]", "e") .replace("[îï]", "i") .replace("[ôö]", "o") .replace("[ùûü]", "u") .replace("[ŷÿ]", "y") .repl...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n @RequestMapping(\"download.feep\")\n public void download(HttpServletRequest request, HttpServletResponse response) throws FeepControllerException {\n\n }", "@Override\n @RequestMapping(\"upload.feep\")\n public void upload(HttpServletRequest request, HttpServletResponse response) thro...
[ "0.6264455", "0.5973357", "0.5820699", "0.56321526", "0.55976796", "0.5482872", "0.5403908", "0.53902376", "0.5363034", "0.5344672", "0.53419614", "0.5334605", "0.53221", "0.52993226", "0.52838486", "0.52670157", "0.5266427", "0.5246457", "0.523149", "0.5225458", "0.51979965"...
0.0
-1
release.add("52b0902592e770b8116f80f2eab7a4048b589d7d"); release.add("6de1c17dda8ffdb19431ffcadbce1836867a27a9"); release.add("816e35d947172edc2a9be110f468f3080c142fdf"); release.add("ae0a6aee62d49b6babf9bb49640a47a0c804a2ad"); release.add("996763c72e128cd677fcd97d3fa74beb2c12124b"); release.add("70b39c9a84327f522bcbe8...
public ArrayList<Comparison> distribute (ArrayList<String> release) { for (int i=0 ; i<release.size()-1 ; i++) { Comparison c = new Comparison(release.get(i),release.get(i+1)); comparison.add(c); } return comparison; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static com.qiyukf.nimlib.p470f.p471a.C5826a m23369a(android.os.Parcel r4) {\n /*\n com.qiyukf.nimlib.f.a.a r0 = new com.qiyukf.nimlib.f.a.a\n r1 = 0\n r0.m50001init(r1)\n int r2 = r4.readInt()\n r0.f18499a = r2\n int r2 = r4.readInt()\n ...
[ "0.5388981", "0.5200091", "0.50994676", "0.5095518", "0.5079921", "0.50700957", "0.50299126", "0.5005886", "0.50019", "0.49972582", "0.49857995", "0.49364662", "0.4922276", "0.49161804", "0.48966268", "0.48723096", "0.48685962", "0.48488027", "0.48285294", "0.48203063", "0.48...
0.46176735
51
Method to check if lists are equal
public static boolean equals(int[] list1, int[] list2) { if (list1.length != list2.length) { return false; } return java.util.Arrays.equals(list1, list2); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static boolean equalLists(List l1, List l2) {\r\n if (l1 == l2) {\r\n return true;\r\n }\r\n if (l1 == null || l2 == null) // but not both, see above\r\n {\r\n return false;\r\n }\r\n if (l1.size() != l2.size()) {\r\n return false;\...
[ "0.80385417", "0.76270455", "0.75817686", "0.75208735", "0.7462693", "0.7378032", "0.7322358", "0.7306944", "0.7267381", "0.72652304", "0.7189963", "0.718446", "0.7105136", "0.7104097", "0.7004681", "0.6938029", "0.69114697", "0.6901752", "0.6854569", "0.68435276", "0.6796276...
0.65577734
35
Inflate the menu; this adds items to the action bar if it is present.
@Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.main, menu); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tMenuInflater inflater = getMenuInflater();\n \tinflater.inflate(R.menu.main_activity_actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {...
[ "0.7246102", "0.7201358", "0.7194834", "0.7176498", "0.71066517", "0.7039537", "0.7037961", "0.70112145", "0.70094734", "0.69807225", "0.6944953", "0.69389373", "0.6933199", "0.6916928", "0.6916928", "0.6891486", "0.68831646", "0.68754137", "0.68745375", "0.68621665", "0.6862...
0.0
-1
/ If two strings contain the same exact letters in the same exact frequency, they are anagrams Given two strings, and , that may or may not be of the same length, determine the minimum number of character deletions required to make and anagrams. Any characters can be deleted from either of the strings. Complete the mak...
static int makeAnagram(String a, String b) { int[] charCount = new int[26]; int deletions = 0; for(char c : a.toCharArray()) { charCount[c-'a'] += 1; } for(char c : b.toCharArray()) { charCount[c-'a'] -= 1; } for(int count : cha...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static int makeAnagram(String a, String b) {\n \n \tchar arr[] = a.toCharArray();\n char brr[] = b.toCharArray();\n Arrays.sort(arr);\n Arrays.sort(brr);\n Map<Character, Integer> aMap = new HashMap<>();\n Map<Character, Integer> bMap = new HashMap<>();\n for(int...
[ "0.7942954", "0.79207015", "0.78537416", "0.78117293", "0.78089744", "0.76711917", "0.7513254", "0.74918294", "0.7490037", "0.7399371", "0.7398374", "0.7363702", "0.73536277", "0.73249793", "0.7293597", "0.7280636", "0.72643864", "0.72462386", "0.72311324", "0.71938205", "0.7...
0.7958727
0
Test today scenario (time shown) Single digit minute & AM
public void testFormatDateStringFromTimestamp_todaySingleMinuteAm() { calendar.set(Calendar.HOUR_OF_DAY, 8); calendar.set(Calendar.MINUTE, 8); long todayTimestamp = calendar.getTimeInMillis(); assertEquals("8:08 AM", ContactInteractionUtil.formatDateStringFromTimestamp( c...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void testFormatDateStringFromTimestamp_todayDoubleMinutePm() {\n calendar.set(Calendar.HOUR_OF_DAY, 22);\n calendar.set(Calendar.MINUTE, 18);\n assertEquals(\"10:18 PM\",\n ContactInteractionUtil.formatDateStringFromTimestamp(calendar.getTimeInMillis(),\n ...
[ "0.6638581", "0.65610033", "0.654577", "0.6377293", "0.6375685", "0.6171234", "0.61137307", "0.6101155", "0.60102236", "0.60074556", "0.59838927", "0.5976315", "0.5945135", "0.59393847", "0.5923471", "0.5917558", "0.5904055", "0.5902813", "0.5890421", "0.588166", "0.58473307"...
0.7446269
0
Double digit minute & PM
public void testFormatDateStringFromTimestamp_todayDoubleMinutePm() { calendar.set(Calendar.HOUR_OF_DAY, 22); calendar.set(Calendar.MINUTE, 18); assertEquals("10:18 PM", ContactInteractionUtil.formatDateStringFromTimestamp(calendar.getTimeInMillis(), getCo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getTime(){\n String mt=\"\";\n String hr=\"\";\n if(minute<10){\n mt=0+(String.valueOf(minute));\n }\n\n else{\n mt=String.valueOf(minute);\n }\n\n if(hour<10){\n hr=0+(String.valueOf(hour));\n }\n else{\n...
[ "0.7042747", "0.7029312", "0.695357", "0.6737381", "0.67349195", "0.67188245", "0.66937757", "0.666239", "0.6611008", "0.65706533", "0.6569921", "0.65542847", "0.6548971", "0.6501547", "0.6469111", "0.64550865", "0.64492434", "0.64274555", "0.64271647", "0.63303477", "0.63196...
0.6380713
19
Test yesterday and tomorrow (Yesterday or Tomorrow shown)
public void testFormatDateStringFromTimestamp_yesterday() { calendar.add(Calendar.DAY_OF_YEAR, -1); assertEquals(getContext().getResources().getString(R.string.yesterday), ContactInteractionUtil.formatDateStringFromTimestamp(calendar.getTimeInMillis(), getContext(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\r\n public void testIsExpiredToday_ExpirationDateYesterday() {\r\n doTest(TEST_DATE_2_YESTERDAY, TEST_DATE_1_TODAY, true);\r\n }", "@Test\r\n public void testIsExpiredToday_ExpirationDateTomorrow() {\r\n doTest(TEST_DATE_2_TOMORROW, TEST_DATE_1_TODAY, false);\r\n }", "@Test\r\n ...
[ "0.74625766", "0.73767096", "0.6880653", "0.6850509", "0.6490042", "0.645015", "0.62018967", "0.6111575", "0.6095046", "0.5956795", "0.592882", "0.590469", "0.58442956", "0.5809498", "0.57984203", "0.57969606", "0.5738931", "0.5734502", "0.5707428", "0.5684491", "0.5659343", ...
0.60467386
9
Set to non leap year
public void testFormatDateStringFromTimestamp_yesterdayLastYear() { calendar.set(Calendar.YEAR, 1999); calendar.set(Calendar.DAY_OF_YEAR, 365); long lastYear = calendar.getTimeInMillis(); calendar.add(Calendar.DAY_OF_YEAR, 1); assertEquals(getContext().getResources().getString(R...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean leapyear(int yr){\n if(yr%4 == 0 && yr%100 != 0){ //If year is divisible by 4 but not by 100\r\n days[1] = 29; //Set February's days to 29\r\n return true; //Retrn true.\r\n }\r\n return false; //Otherwise, return f...
[ "0.70496726", "0.6992974", "0.6938701", "0.6903927", "0.68695575", "0.6838684", "0.673328", "0.67093766", "0.67087436", "0.6696502", "0.6688873", "0.66671526", "0.66663986", "0.6664001", "0.6659719", "0.66491884", "0.66353464", "0.66240263", "0.6616675", "0.6583938", "0.65781...
0.0
-1
Test other (Month Date)
public void testFormatDateStringFromTimestamp_other() { calendar.set( /* year = */ 1991, /* month = */ Calendar.MONTH, /* day = */ 11); assertEquals("March 11", ContactInteractionUtil.formatDateStringFromTimestamp(calendar.getTimeInMillis()...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void month() throws Exception {\n Date thisDate = dateFormat.parse(\"08/14/2006\");\n Month august06 = Month.create(thisDate);\n testThePeriod(august06, thisDate, \"08/01/2006 00:00:00.000\",\n \"08/31/2006 23:59:59.999\", \"2006-08\");\n\n //Test the pr...
[ "0.7326519", "0.69591737", "0.69247943", "0.6917451", "0.68366814", "0.6803829", "0.6673049", "0.64477843", "0.6440935", "0.6400413", "0.63835454", "0.63723993", "0.63347155", "0.6318571", "0.6285746", "0.62009394", "0.61963665", "0.61848474", "0.6170235", "0.61566997", "0.61...
0.54532504
99
Author zhanghe Desc: Date 2019/8/26 18:23
public interface TableDetailMapper { @Select("select * from dxh_sys.tabledetail where vendorId=0 and tableName='skuProfitDayReport'") List<Map<String, Object>> list(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "public void mo38117a() {\n }", "public void mo4359a() {\n }", "public void mo6081a() {\n }", "private static void cajas() {\n\t\t\n\t}", "public void mo21877s() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", ...
[ "0.59981453", "0.5938703", "0.58777535", "0.58019036", "0.57776886", "0.5767095", "0.57319665", "0.57319665", "0.57319665", "0.57319665", "0.57319665", "0.57319665", "0.57319665", "0.57246274", "0.57139236", "0.56900483", "0.56643295", "0.5657732", "0.5619889", "0.5616556", "...
0.0
-1
Pops the top element off the Stack and returns the element. Will also remove the element from the Stack.
@Override public T pop(){ if (arrayAsList.isEmpty()){ throw new IllegalStateException("Stack is empty. Nothing to pop!"); } T tempElement = arrayAsList.get(stackPointer - 1); arrayAsList.remove(--stackPointer); return tempElement; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public T pop() {\n T top = peek();\n stack[topIndex] = null;\n topIndex--;\n return top;\n }", "public T pop() {\n\t\tif (isEmpty()) {\n\t\t\tthrow new EmptyStackException();\n\t\t}\n\t\t//remove top element from stack\n\t\t//and \"clear to let GC do its work\"\n\t\treturn elements...
[ "0.83804774", "0.8354344", "0.83443314", "0.82638127", "0.81932014", "0.81896186", "0.8188255", "0.8147925", "0.8141656", "0.8133741", "0.81140023", "0.80799353", "0.8067658", "0.8045199", "0.80089694", "0.79957014", "0.79925406", "0.798836", "0.79882604", "0.79879236", "0.79...
0.75846434
76
Pushes element on to the top of the Stack.
@Override public void push(T element){ arrayAsList.add(element); stackPointer++; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void push (T element)\r\n {\r\n if (size() == stack.length) \r\n expandCapacity();\r\n\r\n stack[top] = element;\r\n top++;\r\n }", "public void push(E object) {stackList.insertAtFront(object);}", "@Override\n\tpublic void push(T element) {\n\t\tif(top == stack.length) \n\t\t\texpandCapa...
[ "0.8040648", "0.8023578", "0.80063015", "0.783213", "0.75816333", "0.75294477", "0.7528506", "0.75231427", "0.75093335", "0.7496235", "0.74890524", "0.7424515", "0.7377606", "0.7332873", "0.7308038", "0.7307074", "0.72949034", "0.72929126", "0.72528625", "0.72528625", "0.7223...
0.7010046
50
Returns the value of the element at the top of the Stack. Does not remove (pop) the element.
@Override public T peek(){ if (arrayAsList.isEmpty()){ throw new IllegalStateException("Stack is empty. Nothing to pop!"); } return arrayAsList.get(stackPointer - 1); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getElementAtTopOfStack() {\n if (isEmpty()) throw new RuntimeException(\"Stack underflow\");\n return myarray[top];\n \n }", "public int top() {\r\n int value = this.pop();\r\n this.stack.offer(value);\r\n return value;\r\n }", "public ...
[ "0.8154082", "0.8145055", "0.81078345", "0.8076137", "0.8016073", "0.7904673", "0.78629565", "0.78108454", "0.77588576", "0.77423847", "0.77221394", "0.7707049", "0.76770234", "0.766828", "0.75875634", "0.7585413", "0.75746244", "0.754636", "0.75365204", "0.75231725", "0.7517...
0.0
-1
===================== FUNCTION BASE FOR FRAGMENT =====================
public void initView(View view) { btnIcGPS = (TextViewPixeden) view.findViewById(R.id.btnIcGPS); btnRefresh = (TextViewPixeden) view.findViewById(R.id.btnRefresh); SupportMapFragment fm = (SupportMapFragment) getChildFragmentManager() .findFragmentById(R.id.map); fm.getMa...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void func_104112_b() {\n \n }", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "public abstract void mo70713b();", "@Override\r\n\tpublic void func02(...
[ "0.6030104", "0.5971789", "0.58346754", "0.58346117", "0.56960964", "0.5644519", "0.5644519", "0.5587815", "0.5583583", "0.5583583", "0.55310243", "0.54777205", "0.5453095", "0.5443884", "0.54390293", "0.54226476", "0.54197407", "0.5397843", "0.5363221", "0.5361292", "0.53377...
0.0
-1