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 "entryRuleComplexDataType" $ANTLR start "ruleComplexDataType" ../de.hs_rm.cs.vs.dsm.flow/srcgen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:4437:1: ruleComplexDataType returns [EObject current=null] : this_StringDataType_0= ruleStringDataType ;
public final EObject ruleComplexDataType() throws RecognitionException { EObject current = null; EObject this_StringDataType_0 = null; enterRule(); try { // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:4440:28: (...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final EObject ruleDataType() throws RecognitionException {\n EObject current = null;\n\n EObject this_SimpleDataType_0 = null;\n\n EObject this_ComplexDataType_1 = null;\n\n\n enterRule(); \n \n try {\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/...
[ "0.7302156", "0.70980966", "0.5809426", "0.56765556", "0.564539", "0.5565981", "0.5515275", "0.5375832", "0.5320473", "0.5226048", "0.52196676", "0.5153773", "0.51475567", "0.49453482", "0.4924695", "0.4896529", "0.48792312", "0.48317596", "0.48274565", "0.48269203", "0.48152...
0.8284648
0
$ANTLR end "ruleComplexDataType" $ANTLR start "entryRuleIntegerDataType" ../de.hs_rm.cs.vs.dsm.flow/srcgen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:4458:1: entryRuleIntegerDataType returns [EObject current=null] : iv_ruleIntegerDataType= ruleIntegerDataType EOF ;
public final EObject entryRuleIntegerDataType() throws RecognitionException { EObject current = null; EObject iv_ruleIntegerDataType = null; try { // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:4459:2: (iv_ruleIntegerDataType= ruleInt...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final EObject entryRuleComplexDataType() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleComplexDataType = null;\n\n\n try {\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:4429:2: (iv_ruleComplexDataT...
[ "0.7068067", "0.64072603", "0.6166882", "0.6141375", "0.5758193", "0.5671458", "0.55669403", "0.54620934", "0.5321714", "0.53214014", "0.53047264", "0.5270431", "0.51515365", "0.5147791", "0.5126678", "0.50248426", "0.5024355", "0.50085336", "0.49408084", "0.49375796", "0.493...
0.74071825
0
$ANTLR end "entryRuleIntegerDataType" $ANTLR start "ruleIntegerDataType" ../de.hs_rm.cs.vs.dsm.flow/srcgen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:4467:1: ruleIntegerDataType returns [EObject current=null] : (otherlv_0= 'int' () ) ;
public final EObject ruleIntegerDataType() throws RecognitionException { EObject current = null; Token otherlv_0=null; enterRule(); try { // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:4470:28: ( (otherlv_0= 'int...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final EObject entryRuleIntegerDataType() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleIntegerDataType = null;\n\n\n try {\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:4459:2: (iv_ruleIntegerDataT...
[ "0.7417544", "0.64775354", "0.59780926", "0.59639055", "0.5794566", "0.5662607", "0.5659771", "0.5659249", "0.55914164", "0.55834246", "0.5551918", "0.5546411", "0.5544974", "0.5537707", "0.5512725", "0.55045813", "0.5494593", "0.5488538", "0.5445176", "0.5420136", "0.5403281...
0.8368343
0
$ANTLR end "ruleIntegerDataType" $ANTLR start "entryRuleBooleanDataType" ../de.hs_rm.cs.vs.dsm.flow/srcgen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:4489:1: entryRuleBooleanDataType returns [EObject current=null] : iv_ruleBooleanDataType= ruleBooleanDataType EOF ;
public final EObject entryRuleBooleanDataType() throws RecognitionException { EObject current = null; EObject iv_ruleBooleanDataType = null; try { // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:4490:2: (iv_ruleBooleanDataType= ruleBoo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final EObject entryRuleIntegerDataType() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleIntegerDataType = null;\n\n\n try {\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:4459:2: (iv_ruleIntegerDataT...
[ "0.6786973", "0.6603898", "0.6390523", "0.6214531", "0.608158", "0.58003265", "0.5684839", "0.5681197", "0.5634432", "0.5620855", "0.5563846", "0.5551762", "0.55489063", "0.5507887", "0.5489365", "0.5483497", "0.54547495", "0.5387448", "0.5382907", "0.5382548", "0.5368044", ...
0.8138612
0
$ANTLR end "entryRuleBooleanDataType" $ANTLR start "ruleBooleanDataType" ../de.hs_rm.cs.vs.dsm.flow/srcgen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:4498:1: ruleBooleanDataType returns [EObject current=null] : (otherlv_0= 'bool' () ) ;
public final EObject ruleBooleanDataType() throws RecognitionException { EObject current = null; Token otherlv_0=null; enterRule(); try { // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:4501:28: ( (otherlv_0= 'boo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final EObject ruleBooleanVariableDefinition() throws RecognitionException {\n EObject current = null;\n\n Token lv_name_1_0=null;\n Token otherlv_2=null;\n Token lv_value_3_0=null;\n Token otherlv_4=null;\n EObject lv_type_0_0 = null;\n\n\n enterRule(); \n ...
[ "0.7407273", "0.7359671", "0.69619596", "0.6669469", "0.64442784", "0.6358415", "0.63565344", "0.6176912", "0.61715686", "0.6165136", "0.6082357", "0.6074139", "0.60658914", "0.60223275", "0.5966957", "0.5922831", "0.5863475", "0.58565533", "0.58561075", "0.5843115", "0.58403...
0.833733
0
$ANTLR end "ruleBooleanDataType" $ANTLR start "entryRuleFloatDataType" ../de.hs_rm.cs.vs.dsm.flow/srcgen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:4520:1: entryRuleFloatDataType returns [EObject current=null] : iv_ruleFloatDataType= ruleFloatDataType EOF ;
public final EObject entryRuleFloatDataType() throws RecognitionException { EObject current = null; EObject iv_ruleFloatDataType = null; try { // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:4521:2: (iv_ruleFloatDataType= ruleFloatData...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final EObject entryRuleBooleanDataType() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleBooleanDataType = null;\n\n\n try {\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:4490:2: (iv_ruleBooleanDataT...
[ "0.70586044", "0.66118616", "0.62509", "0.6074604", "0.59686005", "0.5946295", "0.5898596", "0.58823574", "0.5801652", "0.5765223", "0.57304126", "0.5714655", "0.569413", "0.5580348", "0.55637014", "0.55572486", "0.55456185", "0.55340946", "0.552138", "0.5512929", "0.54256445...
0.7547499
0
$ANTLR end "entryRuleFloatDataType" $ANTLR start "ruleFloatDataType" ../de.hs_rm.cs.vs.dsm.flow/srcgen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:4529:1: ruleFloatDataType returns [EObject current=null] : (otherlv_0= 'float' () ) ;
public final EObject ruleFloatDataType() throws RecognitionException { EObject current = null; Token otherlv_0=null; enterRule(); try { // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:4532:28: ( (otherlv_0= 'float...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final EObject entryRuleFloatDataType() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleFloatDataType = null;\n\n\n try {\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:4521:2: (iv_ruleFloatDataType= r...
[ "0.7320759", "0.69928837", "0.69174254", "0.6783463", "0.6766773", "0.6665861", "0.6549627", "0.6428626", "0.6336487", "0.63020325", "0.62490326", "0.62314755", "0.6219949", "0.6206872", "0.61909735", "0.6182147", "0.6164942", "0.6145062", "0.6140503", "0.61356324", "0.613161...
0.85190374
0
$ANTLR end "ruleFloatDataType" $ANTLR start "entryRuleStringDataType" ../de.hs_rm.cs.vs.dsm.flow/srcgen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:4551:1: entryRuleStringDataType returns [EObject current=null] : iv_ruleStringDataType= ruleStringDataType EOF ;
public final EObject entryRuleStringDataType() throws RecognitionException { EObject current = null; EObject iv_ruleStringDataType = null; try { // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:4552:2: (iv_ruleStringDataType= ruleString...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final EObject ruleStringDataType() throws RecognitionException {\n EObject current = null;\n\n Token otherlv_0=null;\n\n enterRule(); \n \n try {\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:4563:28: ( (oth...
[ "0.6561121", "0.6307709", "0.6296502", "0.5796505", "0.57917935", "0.57090986", "0.55115235", "0.5470875", "0.5379834", "0.53575534", "0.53366685", "0.53328246", "0.5298585", "0.5281708", "0.52676135", "0.5257174", "0.5250127", "0.5243773", "0.5228283", "0.5197448", "0.519569...
0.7559908
0
$ANTLR end "entryRuleStringDataType" $ANTLR start "ruleStringDataType" ../de.hs_rm.cs.vs.dsm.flow/srcgen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:4560:1: ruleStringDataType returns [EObject current=null] : (otherlv_0= 'string' () ) ;
public final EObject ruleStringDataType() throws RecognitionException { EObject current = null; Token otherlv_0=null; enterRule(); try { // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:4563:28: ( (otherlv_0= 'stri...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final EObject entryRuleStringDataType() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleStringDataType = null;\n\n\n try {\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:4552:2: (iv_ruleStringDataType...
[ "0.7845032", "0.71393555", "0.68034756", "0.6765709", "0.6669387", "0.65706027", "0.65569496", "0.6432599", "0.64197546", "0.6275575", "0.5863888", "0.5860917", "0.5832547", "0.5782224", "0.5778856", "0.57339525", "0.57291746", "0.57280797", "0.57151407", "0.57009095", "0.569...
0.820389
0
$ANTLR end "ruleStringDataType" $ANTLR start "entryRuleInternationalizedResourceIdentifier" ../de.hs_rm.cs.vs.dsm.flow/srcgen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:4582:1: entryRuleInternationalizedResourceIdentifier returns [EObject current=null] : iv_ruleInternationalizedResourceIdentifier= ruleInte...
public final EObject entryRuleInternationalizedResourceIdentifier() throws RecognitionException { EObject current = null; EObject iv_ruleInternationalizedResourceIdentifier = null; try { // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final String entryRuleIdentifier() throws RecognitionException {\n String current = null;\n\n AntlrDatatypeRuleToken iv_ruleIdentifier = null;\n\n\n try {\n // InternalMyDsl.g:10035:50: (iv_ruleIdentifier= ruleIdentifier EOF )\n // InternalMyDsl.g:10036:2: iv_ruleI...
[ "0.6297502", "0.6089696", "0.5707781", "0.5684794", "0.5682603", "0.5549398", "0.5449084", "0.5410819", "0.5172622", "0.51451737", "0.5125872", "0.5120223", "0.51105666", "0.5089014", "0.5081576", "0.49968144", "0.49944904", "0.4976822", "0.4965003", "0.4961251", "0.49366108"...
0.72846115
0
$ANTLR end "entryRuleInternationalizedResourceIdentifier" $ANTLR start "ruleInternationalizedResourceIdentifier" ../de.hs_rm.cs.vs.dsm.flow/srcgen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:4591:1: ruleInternationalizedResourceIdentifier returns [EObject current=null] : ( ( (lv_scheme_0_0= ruleScheme ) ) o...
public final EObject ruleInternationalizedResourceIdentifier() throws RecognitionException { EObject current = null; Token otherlv_1=null; Token lv_authority_2_0=null; Token otherlv_3=null; Token lv_path_4_0=null; Token otherlv_5=null; Token lv_query_6_0=null; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final EObject entryRuleInternationalizedResourceIdentifier() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleInternationalizedResourceIdentifier = null;\n\n\n try {\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/Int...
[ "0.7423734", "0.61043876", "0.5819396", "0.54696816", "0.5282669", "0.52637416", "0.5204985", "0.51845586", "0.5149722", "0.5127695", "0.5111952", "0.5067778", "0.50573343", "0.5051973", "0.5039494", "0.50370526", "0.50280315", "0.50101125", "0.49898022", "0.4977563", "0.4969...
0.7849717
0
$ANTLR end "ruleInternationalizedResourceIdentifier" $ANTLR start "ruleSparqlQueryType" ../de.hs_rm.cs.vs.dsm.flow/srcgen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:4709:1: ruleSparqlQueryType returns [Enumerator current=null] : ( (enumLiteral_0= 'SELECT' ) | (enumLiteral_1= 'CONSTRUCT' ) | (enumLiteral_2=...
public final Enumerator ruleSparqlQueryType() throws RecognitionException { Enumerator current = null; Token enumLiteral_0=null; Token enumLiteral_1=null; Token enumLiteral_2=null; Token enumLiteral_3=null; enterRule(); try { // ../de.hs_rm.cs.vs.d...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Object executeQuery(String sparqlQuery);", "public Collection<URI> searchWithSPARQL(final String queryString)\n {\n if (DEBUG.SEARCH) Log.debug(\"searchWithSPARQL; queryString:\\n\" + Util.tags(queryString));\n \n final Collection<URI> resultSet = new ArrayList<URI>();\n final com....
[ "0.54756254", "0.5428427", "0.52214926", "0.51186013", "0.51047564", "0.5092445", "0.50668174", "0.50579107", "0.5057557", "0.50211483", "0.50177294", "0.50134444", "0.50134444", "0.4969791", "0.4962223", "0.48722538", "0.48392293", "0.48337072", "0.48177782", "0.48103315", "...
0.75620085
0
$ANTLR end "ruleSparqlQueryType" $ANTLR start "ruleScheme" ../de.hs_rm.cs.vs.dsm.flow/srcgen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:4740:1: ruleScheme returns [Enumerator current=null] : ( (enumLiteral_0= 'http' ) | (enumLiteral_1= 'ftp' ) | (enumLiteral_2= 'file' ) ) ;
public final Enumerator ruleScheme() throws RecognitionException { Enumerator current = null; Token enumLiteral_0=null; Token enumLiteral_1=null; Token enumLiteral_2=null; enterRule(); try { // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/a...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final Enumerator ruleSparqlQueryType() throws RecognitionException {\n Enumerator current = null;\n\n Token enumLiteral_0=null;\n Token enumLiteral_1=null;\n Token enumLiteral_2=null;\n Token enumLiteral_3=null;\n\n enterRule(); \n try {\n // ../d...
[ "0.6184899", "0.61027384", "0.60112506", "0.5963438", "0.59513587", "0.59513587", "0.59513587", "0.5874558", "0.5843492", "0.5827401", "0.5754422", "0.5739807", "0.5728093", "0.56990075", "0.56600523", "0.55482286", "0.55414027", "0.55226374", "0.5504818", "0.5430716", "0.541...
0.7035782
0
Display the first 500 characters of the response string. textView.setText("Response is: "+ response.substring(0,500));
@Override public void onResponse(String response) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onResponse(String response) {\n mTextView.setText(\"Response is: \" + response);\n }", "@Override\n public void onResponse(String response)\n {\n httpReturn.setText(\"RESPOSTA:\\n...
[ "0.7217756", "0.68325263", "0.67156696", "0.6543398", "0.63489294", "0.62984663", "0.6224335", "0.61284566", "0.61168844", "0.6112233", "0.6065232", "0.60162467", "0.5997964", "0.5978098", "0.5941654", "0.5939327", "0.59179807", "0.58983284", "0.5895675", "0.5882782", "0.5876...
0.53796244
71
TODO Autogenerated method stub
public double computeArea() { return 0; }
{ "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
Perform the basic effect of the weapon
@Override public void performEffectOne(List<Object> targets) { checkEmptyTargets(targets); ArrayList<Player> roomPlayers = ((Square) targets.get(0)).findRoomPlayers(); for (Player p : roomPlayers) { damage(p, 1); getDamagedPlayer().add(p); } effectCont...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void useEffect() {\n \t//should normally run useItem method, but for testing it is not needed here.\n \tHealthEffect bombEff = (HealthEffect) bomb.getEffect().get(0);\n \tbombEff.applyEffect(com);\n \tAssert.assertTrue(com.getHealth() == baseHP - 700);\n \tSpecial heal = new Specia...
[ "0.73408353", "0.7233911", "0.7230122", "0.7019474", "0.6979266", "0.69233966", "0.686895", "0.68669856", "0.6866278", "0.68587667", "0.68387705", "0.68233496", "0.6765979", "0.6759911", "0.67090696", "0.67011577", "0.66950476", "0.66805667", "0.66525483", "0.66431373", "0.66...
0.0
-1
Calculate all the possible square targets of the basic effect and encode them into a message ready to be send to the player .
@Override public ControllerViewEvent getTargetEffectOne() { ArrayList<Square> possibleTarget = new ArrayList<>(); for (int i = 0; i < 4; i++) { if (getOwner().getPosition().checkDirection(i) && !getOwner().getPosition().getNextSquare(i).getSquareColour().equals(getOwner().getPosition().g...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void basicMode (ColorId colorPlayerTarget , String squareCoordinatesAsStringPlayertoMove, String squareCoordinatesAsStringTargetToMove, boolean withFragWar)\n {\n boolean rememberToMoveTarget = false;\n\n int xPlayer = 0;\n int yPlayer = 0;\n\n int xTarget = 0;\n int yT...
[ "0.63578594", "0.62538284", "0.6134972", "0.6017846", "0.59944695", "0.57095134", "0.56910795", "0.56499076", "0.56244045", "0.5601373", "0.5486489", "0.5479684", "0.5444203", "0.54276246", "0.5417747", "0.5408162", "0.53903383", "0.53810453", "0.5380593", "0.53511095", "0.53...
0.6307038
1
Check if the base effect is usable in the current condition. That means that teh effect must be enabled, the player can pay for it and that it has targets in range.
@Override public boolean isUsableEffectOne() { return getEffectsEnable()[0] && getUsableEffect()[0] && ((TargetSquareRequestEvent) getTargetEffectOne()).getPossibleTargetsX().length != 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean canUseWeaponEffect(FullEffect effect){\n List<Color> priceTmp;\n if(effect.getPrice() != null){\n priceTmp = new ArrayList<>(effect.getPrice());\n return controlPayment(priceTmp);\n }\n return true;\n }", "@Override\n protected void doCheckEff...
[ "0.6807074", "0.64012045", "0.6274568", "0.623931", "0.60761136", "0.6061314", "0.6049465", "0.60436743", "0.6023559", "0.6020381", "0.6004596", "0.59730005", "0.5969039", "0.5947631", "0.5946866", "0.5946866", "0.5946866", "0.5946866", "0.5946866", "0.59320426", "0.5929591",...
0.67281413
1
Perform the second effect of the weapon
@Override public void performEffectTwo(List<Object> targets) { checkEmptyTargets(targets); Square target = (Square) targets.get(0); for (Player p : target.getSquarePlayers()) { damage(p, 1); mark(p, 1); getDamagedPlayer().add(p); } effectCo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void useEffect() {\n \t//should normally run useItem method, but for testing it is not needed here.\n \tHealthEffect bombEff = (HealthEffect) bomb.getEffect().get(0);\n \tbombEff.applyEffect(com);\n \tAssert.assertTrue(com.getHealth() == baseHP - 700);\n \tSpecial heal = new Specia...
[ "0.67577237", "0.6725737", "0.65674126", "0.6565004", "0.6558572", "0.6465805", "0.6447314", "0.6417181", "0.6414153", "0.63866866", "0.635131", "0.63074213", "0.6294015", "0.6280729", "0.62621456", "0.6251885", "0.6236976", "0.6213551", "0.62132627", "0.62017334", "0.6200378...
0.59866875
50
Calculate all the possible square targets of the second effect and encode them into a message ready to be send to the player .
@Override public ControllerViewEvent getTargetEffectTwo() { ArrayList<Square> possibleTargets = new ArrayList<>(); for (int i = 0; i < 4; i++) { if (getOwner().getPosition().checkDirection(i) && !getOwner().getPosition().getNextSquare(i).getSquarePlayers().isEmpty()) poss...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void performEffectTwo(List<Object> targets) {\n checkEmptyTargets(targets);\n Square target = (Square) targets.get(0);\n for (Player p : target.getSquarePlayers()) {\n damage(p, 1);\n mark(p, 1);\n getDamagedPlayer().add(p);\n }\n ...
[ "0.67575586", "0.6273986", "0.62587154", "0.5962855", "0.59058887", "0.5790719", "0.57116914", "0.564867", "0.56101674", "0.5600941", "0.555067", "0.5525224", "0.54939604", "0.54772705", "0.5449498", "0.54467267", "0.54462415", "0.5425812", "0.542575", "0.5410569", "0.5408500...
0.6724768
1
Check if the second effect is usable in the current condition. That means that teh effect must be enabled, the player can pay for it and that it has targets in range.
@Override public boolean isUsableEffectTwo() { return getEffectsEnable()[1] && getUsableEffect()[1] && ((TargetSquareRequestEvent) getTargetEffectOne()).getPossibleTargetsX().length != 0 && getOwner().canAffortCost(getSecondEffectCost()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean isUsableEffectOne() {\n return getEffectsEnable()[0] && getUsableEffect()[0] && ((TargetSquareRequestEvent) getTargetEffectOne()).getPossibleTargetsX().length != 0;\n }", "public boolean canUseWeaponEffect(FullEffect effect){\n List<Color> priceTmp;\n if(effe...
[ "0.71856296", "0.6511889", "0.6259035", "0.60081685", "0.60062265", "0.5985127", "0.5906857", "0.58992434", "0.58992434", "0.58992434", "0.58992434", "0.58992434", "0.5758869", "0.575616", "0.57464194", "0.5725399", "0.5720057", "0.571423", "0.57088584", "0.56620944", "0.5661...
0.78998953
0
/ renamed from: a
public static InitialValueObservable<CharSequence> m31598a(TextView textView) { C4952b.m31570a(textView, "view == null"); return new TextViewTextObservable(textView); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }", "public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "interface C33292a {\n /* renamed fr...
[ "0.62497115", "0.6242887", "0.61394435", "0.61176854", "0.6114027", "0.60893", "0.6046901", "0.6024682", "0.60201293", "0.5975212", "0.59482527", "0.59121317", "0.5883635", "0.587841", "0.58703005", "0.5868436", "0.5864884", "0.5857492", "0.58306104", "0.5827752", "0.58272064...
0.0
-1
/ renamed from: b
public static InitialValueObservable<TextViewTextChangeEvent> m31599b(TextView textView) { C4952b.m31570a(textView, "view == null"); return new TextViewTextChangeEventObservable(textView); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void mo2508a(bxb bxb);", "@Override\n public void func_104112_b() {\n \n }", "@Override\n public void b() {\n }", "public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }", "@Override\n\tpublic void b2() {\n\t\t\n\t}", "v...
[ "0.64558864", "0.6283203", "0.6252635", "0.6250949", "0.6244743", "0.6216273", "0.6194491", "0.6193556", "0.61641675", "0.6140157", "0.60993093", "0.60974354", "0.6077849", "0.6001867", "0.5997364", "0.59737104", "0.59737104", "0.5905105", "0.5904295", "0.58908087", "0.588663...
0.0
-1
/ renamed from: c
public static InitialValueObservable<TextViewAfterTextChangeEvent> m31600c(TextView textView) { C4952b.m31570a(textView, "view == null"); return new TextViewAfterTextChangeEventObservable(textView); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void mo5289a(C5102c c5102c);", "public static void c0() {\n\t}", "void mo57278c();", "private static void cajas() {\n\t\t\n\t}", "void mo5290b(C5102c c5102c);", "void mo80457c();", "void mo12638c();", "void mo28717a(zzc zzc);", "void mo21072c();", "@Override\n\tpublic void ccc() {\n\t\t\n\t}", ...
[ "0.64592767", "0.644052", "0.6431582", "0.6418656", "0.64118475", "0.6397491", "0.6250796", "0.62470585", "0.6244832", "0.6232792", "0.618864", "0.61662376", "0.6152657", "0.61496663", "0.6138441", "0.6137171", "0.6131197", "0.6103783", "0.60983956", "0.6077118", "0.6061723",...
0.0
-1
Create BAL and OSM PO logs. Invoke callback. Exception branch should not be invoked.
@Test public void testUpdatePoStatusErrorListenerSuccesTest() { try{ //Is used in soap request preparation because value is used in reply soap header. final String callbackRefMockUri = mockOsbBusinessService( //"SalesOrderErrorListener/operations/receiveSalesOrderLineErrorMessage/business-service/SalesOrd...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract void initiateLog();", "@edu.umd.cs.findbugs.annotations.SuppressWarnings(value = \"RV_RETURN_VALUE_IGNORED_BAD_PRACTICE\",\n justification = \"Return value for file delete is not important here.\")\n private void initLogWriter() throws org.apache.geode.admin.AdminException {\n loggingSession.cr...
[ "0.5815334", "0.53324986", "0.5319505", "0.5255668", "0.52206576", "0.5164124", "0.515535", "0.5132802", "0.5129625", "0.5116555", "0.5073426", "0.50656253", "0.5061926", "0.5056867", "0.5051388", "0.5017107", "0.50046355", "0.4995612", "0.49928147", "0.49698776", "0.49362215...
0.0
-1
Send invalid message. Test error handling branch.
@Test public void testUpdatePoStatusErrorListenerErrorHandlerTest() { // //Prepare OTM to fail // List<MockResponsePojo> responseRetryOTMserviceMockPojoList = new ArrayList<MockResponsePojo>(); // responseRetryOTMserviceMockPojoList.add(new MockResponsePojo(ResponseType.FAULT, "", "")); // orderTransactionSe...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public synchronized void sendInvalid() {\r\n\t\tbeginMessage();\r\n\t\tsend(ServerConst.ANS + ServerConst.ANS_INVALID);\r\n\t\tendMessage();\r\n\t}", "@Order(1)\n\t\t@Test\n\t\tpublic void sendMessageInvalidFromAndTo() throws IOException, ParseException {\n\t\t\t boolean response = Requests.createMessageBoolR...
[ "0.8060714", "0.68555903", "0.6709265", "0.66831845", "0.6542982", "0.6496857", "0.64556086", "0.6425805", "0.642388", "0.63392776", "0.62812257", "0.6256919", "0.6233468", "0.61992383", "0.617612", "0.6163513", "0.6154728", "0.6154594", "0.61152744", "0.6113781", "0.60997856...
0.0
-1
OTM will return a fault Exception branch should be invoked. Invoke callback.
@Test public void testUpdatePoStatusErrorListenerFaultTest() { try{ //Is used in soap request preparation because value is used in reply soap header. final String callbackRefMockUri = mockOsbBusinessService( PATH_UPDATE_STATUS_CALLBACK, updatePoStatusCallbackPortMock); mockOsbBusinessSe...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\t\t\tpublic void onFault(Throwable fault) {\n\t\t\t\t\r\n\t\t\t}", "public FaultException raise(Throwable e);", "public FaultException raise(Throwable e, Object argument);", "public Response callback() throws Exception;", "@Override\n\t\t\t\t\t\tpublic void onFailure(Method method, Throwable ...
[ "0.67562294", "0.66145325", "0.6163484", "0.61072135", "0.59715056", "0.5881629", "0.58762056", "0.58230674", "0.5821768", "0.58138126", "0.5760058", "0.5760058", "0.5760058", "0.5760058", "0.56945133", "0.5646394", "0.5639825", "0.5636437", "0.55971116", "0.5592338", "0.5579...
0.0
-1
Convert mask to set of field AccessFlag values.
public static EnumSet<AccessFlag> fromMask(final int mask) { final EnumSet<AccessFlag> result = EnumSet.noneOf(AccessFlag.class); for (final AccessFlag flag : AccessFlag.values()) { if ((flag.value & mask) != 0) { result.add(flag); } } return result; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "com.google.protobuf.FieldMask getFieldMask();", "com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder();", "public static Collection<FieldAccessFlag> getFlags()\n\t{\n\t\treturn Lists.newArrayList(PUBLIC, PRIVATE, PROTECTED, STATIC, FINAL, VOLATILE, TRANSIENT, ENUM,\n\t\t\tSYNTHETIC);\n\t}", "protect...
[ "0.599313", "0.59004694", "0.56114626", "0.5533958", "0.54409474", "0.54065764", "0.53474045", "0.53474045", "0.53474045", "0.53474045", "0.53235257", "0.5259492", "0.5208084", "0.5102202", "0.509129", "0.509129", "0.509129", "0.509129", "0.50471026", "0.50134665", "0.5012559...
0.7616222
0
Get value associated with this field flag.
public int getValue() { return value; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getFieldValue() {\n return TF_Field_Value;\n }", "public String getValue()\n {\n String v = (String)this.getFieldValue(FLD_value);\n return StringTools.trim(v);\n }", "public String getValue()\n {\n return fValue;\n }", "public int getValue()\n\t{\n\t\...
[ "0.7035335", "0.682657", "0.66602546", "0.6626025", "0.6621817", "0.66146755", "0.65997726", "0.6593545", "0.6577878", "0.6572076", "0.6570715", "0.6562956", "0.65566456", "0.65458375", "0.653136", "0.65222144", "0.65155804", "0.6512152", "0.6508337", "0.65012836", "0.6501283...
0.0
-1
ObjectOutput extends the DataOutput interface to include writing of objects. DataOutput includes methods for output of primitive types, ObjectOutput extends that interface to include objects, arrays, and Strings.
public interface ObjectOutput extends DataOutput, AutoCloseable { /** * Write an object to the underlying storage or stream. The class that implements this interface * defines how the object is written. * * @param obj the object to be written * @exception IOException Any of the usual Input/Output relat...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void writeObject(OutputSerializer out) throws java.io.IOException;", "@Override\n\tprotected void write(ObjectOutput out) throws IOException {\n\t\t\n\t}", "public void writeObject ();", "public void writeExternal(ObjectOutput objectOutput)\n throws IOException\n {\n objectOutput.writeLong(serialVersi...
[ "0.7325729", "0.71987087", "0.69799536", "0.6722634", "0.6717989", "0.6710726", "0.6708749", "0.6685729", "0.6657497", "0.6634969", "0.66281235", "0.6584099", "0.65665644", "0.6514363", "0.64902425", "0.64769614", "0.6476011", "0.6470511", "0.64437735", "0.6423389", "0.637679...
0.8245284
0
Write an object to the underlying storage or stream. The class that implements this interface defines how the object is written.
public void writeObject(Object obj) throws IOException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void writeObject ();", "public void writeObject(OutputStream stream, Object object, int format) throws IOException;", "void writeObject(OutputSerializer out) throws java.io.IOException;", "public abstract <T> SerializationStream writeObject(T t);", "void serialize(Object obj, OutputStream stream) th...
[ "0.82092637", "0.7978369", "0.75433564", "0.7380667", "0.73273814", "0.731093", "0.7214824", "0.7122936", "0.7074757", "0.7053821", "0.7029819", "0.6931225", "0.69072473", "0.6901729", "0.68859494", "0.68655986", "0.68286085", "0.6792023", "0.67703366", "0.6742726", "0.669551...
0.83129966
0
Writes a byte. This method will block until the byte is actually written.
public void write(int b) throws IOException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void writeByte(byte value);", "public abstract void writeByte(byte b) throws IOException;", "void writeByte(int v) throws IOException;", "private void byteOut(){\n if(nrOfWrittenBytes >= 0){\n if(b==0xFF){\n // Delay 0xFF byte\n delFF = true;\n b...
[ "0.7602908", "0.7268005", "0.6968735", "0.68674624", "0.6693928", "0.66280603", "0.6521827", "0.6432104", "0.6390143", "0.63617665", "0.61725813", "0.61720496", "0.6166833", "0.6156801", "0.61395884", "0.6115807", "0.60922074", "0.6078547", "0.60732996", "0.60608345", "0.6019...
0.6127925
15
Writes an array of bytes. This method will block until the bytes are actually written.
public void write(byte b[]) throws IOException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void writeBytes(byte[] value);", "void writeByteArray(ByteArray array);", "@Override\n public void write(byte[] data) throws IOException {\n for (int i = 0; i < data.length; i++) {\n write(data[i]);\n }\n }", "void write(byte b[]) throws IOException;", "public abstract void w...
[ "0.72331816", "0.7123382", "0.6931503", "0.69016844", "0.6823762", "0.6808537", "0.6806755", "0.6777665", "0.67670375", "0.6738867", "0.6694788", "0.6640231", "0.6633392", "0.6618252", "0.66052693", "0.6600935", "0.6583589", "0.6520529", "0.65112436", "0.6490952", "0.64719415...
0.7221921
1
Writes a sub array of bytes.
public void write(byte b[], int off, int len) throws IOException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void write(byte b[]) throws IOException;", "void writeByteArray(ByteArray array);", "public abstract void write(byte[] b);", "void write(byte b[]) throws IOException;", "public void write(byte[] data, long offset);", "public abstract void writeBytes(byte[] b, int offset, int length) throws IOExcep...
[ "0.7008226", "0.7002569", "0.6950138", "0.6834098", "0.6807697", "0.67568207", "0.67020917", "0.65699494", "0.65498537", "0.6512264", "0.6371777", "0.63309175", "0.6327555", "0.6326693", "0.63221055", "0.6259613", "0.62587553", "0.6184527", "0.61530304", "0.6124301", "0.61181...
0.6991306
2
Flushes the stream. This will write any buffered output bytes.
public void flush() throws IOException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void flush() throws IOException {\n byteBufferStreamOutput.flush();\n }", "public void flush() {\n wasFlushed = true;\n }", "public void flush() throws IOException\n {\n getStream().flush();\n }", "public static void flush() {\n if (outputEnabled)\n out....
[ "0.7562337", "0.7349792", "0.73048973", "0.71968484", "0.7077799", "0.7022993", "0.6923867", "0.6911167", "0.6889585", "0.6873734", "0.6872932", "0.6871832", "0.6849432", "0.68331987", "0.6819539", "0.68094385", "0.6807795", "0.6807795", "0.6807795", "0.6807795", "0.67780036"...
0.6944264
8
Closes the stream. This method must be called to release any resources associated with the stream.
public void close() throws IOException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void closeStream() {\n output.close();\n input.close();\n }", "protected void closeStream ()\n {\n stream.close ();\n }", "public void closeStream() {\n\t\ttry {\n\t\t\tisReaderStatusClosed = true;\n\t\t\tif(buffReader != null) {\n\t\t\t\tbuffReader.close();\n\t\t\t}\n\t\t} catch(...
[ "0.80906385", "0.80431193", "0.76598006", "0.73339105", "0.7169116", "0.70764947", "0.7074765", "0.7007941", "0.693299", "0.693145", "0.6924619", "0.69040745", "0.689337", "0.68475664", "0.680176", "0.6742761", "0.67074805", "0.668166", "0.66683143", "0.6666862", "0.66621", ...
0.0
-1
This method is very recursive. It accounts for any number of parentheses, and intelligently ignores whitespace.
@SuppressWarnings({"DuplicateExpressions", "DuplicatedCode"}) public static DataTable executeQuery(String query) throws DataFormatException, FileNotFoundException{ if(query.isBlank()){ throw new IllegalArgumentException("The query cannot be blank."); } query = getItemInsideOuter...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void visit(Parenthesis arg0) {\n\t\t\n\t}", "@Test\r\n public void test() {\r\n assertEquals(Arrays.asList(\"()()()\", \"(())()\"), removeInvalidParentheses(\"()())()\"));\r\n assertEquals(Arrays.asList(\"(a)()()\", \"(a())()\"), removeInvalidParentheses(\"(a)())()\"));\r\n assertEq...
[ "0.6416498", "0.64140916", "0.6398029", "0.63914406", "0.63893497", "0.63669556", "0.6343179", "0.63209957", "0.63026226", "0.62426263", "0.6232301", "0.6217496", "0.6100888", "0.60652137", "0.60647035", "0.6055841", "0.60266113", "0.60223013", "0.59992164", "0.5977894", "0.5...
0.0
-1
The default constructor is private to prevent it from being called.
private AeStatusKeeper() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Constructor() {\r\n\t\t \r\n\t }", "private Instantiation(){}", "@SuppressWarnings(\"unused\")\n public NoConstructor() {\n // Empty\n }", "public Constructor(){\n\t\t\n\t}", "private Rekenhulp()\n\t{\n\t}", "private Default()\n {}", "private SimpleRepository() {\n \t\t/...
[ "0.7508452", "0.74792373", "0.74578834", "0.7407453", "0.7389511", "0.737904", "0.7329124", "0.73231965", "0.7257984", "0.7148342", "0.7130981", "0.7123519", "0.71166575", "0.71126014", "0.70905614", "0.7087661", "0.7073694", "0.70545954", "0.70489746", "0.7045664", "0.702182...
0.0
-1
Check if the specified connector is null
public void run() { // Check if the specified connector is null // if(this.connector == null) { System.out.println("[ERROR] connector is null aborting"); return; } // // Keep reading messages // while (true) { AeMessage...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic Connector getConnector() {\n\t\treturn null;\n\t}", "public boolean hasAtLeastOneConnector() {\n return (this.connectors.size() > 0 || this.sslConnectors.size() > 0);\n }", "@Nullable Connector getConnector();", "boolean hasConfigConnectorConfig();", "public boolean isNull() {...
[ "0.6824542", "0.6816586", "0.6749222", "0.6322544", "0.6126905", "0.594344", "0.5880268", "0.5876418", "0.58015084", "0.5718579", "0.56538504", "0.5609281", "0.5582553", "0.5533895", "0.5509845", "0.5492493", "0.5489522", "0.5455996", "0.5455887", "0.54226285", "0.53815484", ...
0.0
-1
returns x and y vectors of turned robot
public double[] axisCalc (double joyX, double joyY, double gyro) { double output [] = new double [1]; double [][] joyMatrix = { {joyY, 0}, {0, joyX} }; double [][] gyroMatrix = { {Math.cos(gyro), -Math.sin(gyro)}, {Math.sin(gyro), Math.cos(gyro)} }; output[0] = MatrixMult(joyMatrix, gyroMatrix)[0][1]; //...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected RobotCoordinates getRobotCoordinates() { return currentPos; }", "public Point getRobotLocation();", "float[][] getCameraVectors(int resX, int resY){\n float vectors[][]=new float[resX*resY][3];//first vector index, second the components of the vector\n float[] vect2=rotateYVector(dir);\...
[ "0.6252622", "0.6217859", "0.61525387", "0.6092374", "0.60592276", "0.6045692", "0.60165024", "0.60081214", "0.60020775", "0.598638", "0.597101", "0.59464025", "0.5931246", "0.59189457", "0.5880273", "0.5841639", "0.5780763", "0.5769475", "0.5760637", "0.57509464", "0.5744359...
0.0
-1
dist is abs value, speed is dir
public void straightDist (double straightDist, double straightSpeed, double sideDist, double sideSpeed) { resetEncod(); double left=0.0; double right=0.0; double strafe = 0.0; double corr = 0.1; while ( Math.abs( encodLeft.get() ) < straightDist && err(straightDist, encodLeft...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setDistance(float dist);", "public double speed() {\n /* dx = sin(angle) * speed\n dy = cos(angle-180) * speed = -cos(angle)\n sqrt((dx)^2 + (-dy)^2 = sin(angle)^2*speed^2 + cos(angle)^2*speed^2)=\n sqrt(speed^2 *(cos(angle)^2+sin(angle)^2) = sqrt(speed^2*1)=speed...
[ "0.68329066", "0.67782", "0.6577664", "0.63868254", "0.6380726", "0.6352288", "0.62911534", "0.6268019", "0.6261368", "0.623385", "0.6198272", "0.6142936", "0.6038027", "0.6022805", "0.602036", "0.6008015", "0.60029334", "0.6000146", "0.59874785", "0.5967162", "0.5953922", ...
0.0
-1
creates an instane variable
public void food () { //local colour variable for the food container Color container = new Color (191, 175, 178); //black shadows //local variable for the label Color label = new Color (196, 30, 58); //cardinal //local variable for the fish on the container Color fish = new Color (30, 133, 255); //dodg...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Variable createVariable();", "Variable createVariable();", "VariableExp createVariableExp();", "DynamicVariable createDynamicVariable();", "Variables createVariables();", "ControlVariable createControlVariable();", "VarReference createVarReference();", "VarAssignment createVarAssignment();", "publi...
[ "0.80064803", "0.80064803", "0.7140553", "0.6996736", "0.699253", "0.69245726", "0.6867105", "0.68099046", "0.67224306", "0.6711974", "0.64373446", "0.64347196", "0.63795686", "0.6368895", "0.6353865", "0.63371617", "0.62935126", "0.62845445", "0.6276356", "0.622473", "0.6217...
0.0
-1
TODO Autogenerated method stub
@Override public int getCount() { return infos.size(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public Object getItem(int position) { return infos.get(position); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public long getItemId(int position) { return position; }
{ "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
jhipsterneedleentityaddfield JHipster will add fields here, do not remove
public Long getId() { return id; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void addField(\n JavaSymbolName propertyName,\n JavaType propertyType,\n String columnName,\n String columnType,\n JavaType className,\n boolean id,\n boolean oneToOne, boolean oneToMany, boolean manyToOne, boolean manyToMany, String mapp...
[ "0.6293017", "0.59873044", "0.59336305", "0.5806434", "0.5701475", "0.5624825", "0.5623612", "0.56039536", "0.55894625", "0.55273145", "0.5526747", "0.55017185", "0.54510385", "0.5450061", "0.5448544", "0.5439888", "0.54212433", "0.5396721", "0.5392768", "0.53858346", "0.5378...
0.0
-1
jhipsterneedleentityaddgetterssetters JHipster will add getters and setters here, do not remove
@Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } Article article = (Article) o; if (article.getId() == null || getId() == null) { return false...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface CommonEntityMethod extends ToJson,GetFieldValue,SetFieldValue{\n}", "static void setPropertiesFromGetters(TableEntity entity, ClientLogger logger) {\n Class<?> myClass = entity.getClass();\n\n // Do nothing if the entity is actually a `TableEntity` rather than a subclass\n i...
[ "0.63292384", "0.6108907", "0.56608135", "0.5650713", "0.553216", "0.5463828", "0.54628867", "0.5448611", "0.54332584", "0.541503", "0.5387785", "0.5378436", "0.53497726", "0.5341584", "0.53363127", "0.532906", "0.53242785", "0.5322905", "0.5315846", "0.5303428", "0.52925664"...
0.0
-1
this.userMessage = context + ": "+ userMessage;
public synchronized void addContext(String s) { if (context == null) context = new ArrayList<String>(); context.add(s); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String appendContextMessage(String msg) {\n\t\treturn msg;\r\n\t}", "java.lang.String getUserMessage();", "public void setMessage(String message) {\r\n\tthis.message = message;\r\n}", "public void getMessage() {\n\r\n\t}", "public String creerMessage(){\n return profile.getMessage();\n }"...
[ "0.72367275", "0.69935846", "0.6921485", "0.6853794", "0.66348237", "0.6615816", "0.656463", "0.65591866", "0.6558272", "0.6555902", "0.65528446", "0.655161", "0.655161", "0.6496305", "0.64477587", "0.64311755", "0.6430968", "0.6399643", "0.6371386", "0.63570756", "0.6335208"...
0.0
-1
findCause seaches the chain of causes of this exception looking for an Throwable of the given class.
public <T extends Throwable> T findCause(Class<T> c) { T result = null; Throwable cause = this; for (; cause != null && cause.getClass() != c; cause = cause.getCause()) ; if (cause != null) result = (T) cause; return result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Throwable cause();", "public Throwable cause()\r\n/* 88: */ {\r\n/* 89:124 */ Object result = this.result;\r\n/* 90:125 */ if ((result instanceof CauseHolder)) {\r\n/* 91:126 */ return ((CauseHolder)result).cause;\r\n/* 92: */ }\r\n/* 93:128 */ return null;\r\n/* 94: */ ...
[ "0.611607", "0.60558", "0.60553026", "0.60553026", "0.60553026", "0.6035273", "0.6032974", "0.6006788", "0.5949408", "0.59338415", "0.5921502", "0.59015554", "0.58951384", "0.58817273", "0.5785811", "0.5777646", "0.576042", "0.5671067", "0.56091416", "0.55827427", "0.5532147"...
0.7492499
0
TODO Autogenerated method stub
@Override public void keyTyped(KeyEvent e) { char c = e.getKeyChar(); if (!Character.isDigit(c)) { e.consume(); return; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public void actionPerformed(ActionEvent e) { if (e.getSource() == this.addButton) { String name = JOptionPane.showInputDialog("Input name"); if (name == null || name.equals("")) return; JPanel temp = new JPanel(); JTextField text = new JTextField(10); text.setFont(f); text.setEditable...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public void actionPerformed(ActionEvent e) { for(int i = 0; i <deleteButtons.size(); i++) { if(e.getSource() == deleteButtons.get(i)) { dutchList.remove(i + 1); dutchList.revalidate(); setSize(getSize().width, getSize().height - 40); deleteButtons.remove(i); l...
{ "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
String value = getLabel(); if(value == null) value = isAnon() ? "Anonymous (" + resource + ")": getURI().getFragment(); return value;
public String toString() { URI uri = getURI(); return (uri == null) ? "Anonymous (" + getAnonID() + ")" : uri.toString(); // : (kb == null) // ? uri.toString() // : kb.getQNames().shortForm(uri); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getLabel() {\n\t String name = getLiteralValue(Foaf.NAME);\n\t \n\t if (name == null) {\n\t name = getLiteralValue(Foaf.GIVENNAME);\n\t }\n\t \n\t if (name == null) {\n\t name = getLiteralValue(RDFS.label);\n\t }\n\t \n\t if (name == null) {\n\t return getURI...
[ "0.69400203", "0.6475665", "0.6475665", "0.6427168", "0.6384849", "0.62814933", "0.6260522", "0.6260522", "0.62568414", "0.6245695", "0.6237997", "0.6234042", "0.6234042", "0.6234042", "0.6234042", "0.6222311", "0.61985433", "0.6153515", "0.6128881", "0.61278135", "0.6108289"...
0.6402806
4
Updates the material based on the current material slot contents
public void updateMaterial() { this.material = world.getRecipeManager().getFirstMatch(RecipeTypes.MATERIAL, this, world).orElse(null); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setContents(MaterialData materialData) {\n/* 91 */ Material mat = materialData.getItemType();\n/* */ \n/* 93 */ if (mat == Material.RED_ROSE) {\n/* 94 */ setData((byte)1);\n/* 95 */ } else if (mat == Material.YELLOW_FLOWER) {\n/* 96 */ setData((byte)2);\n/* 97 */ ...
[ "0.6542663", "0.6374776", "0.630911", "0.60734373", "0.60734373", "0.60381407", "0.59308875", "0.590307", "0.5876875", "0.58303815", "0.58299226", "0.5822971", "0.58079356", "0.5796567", "0.57835853", "0.5741741", "0.57303226", "0.5727455", "0.57183766", "0.569169", "0.568922...
0.7322742
0
GravaLog log = new GravaLog(); log.grava("ShowLog(): Modulo Finalizado."); log.fecha();
public void actionPerformed(java.awt.event.ActionEvent evt) { dispose(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void saludo(){\n System.out.println(\"Bienvenido al Sistema\");\n }", "public Log() {\n cadenas = new Vector<String>();\n }", "private void mostrarEmenta (){\n }", "public static void productoFinalizado(){\r\n System.out.println(\"Imprimo Producto Finalizado\");\r\...
[ "0.6266434", "0.6263066", "0.619265", "0.6113612", "0.6092225", "0.60502565", "0.6047567", "0.6033685", "0.6021585", "0.5989473", "0.5984416", "0.5980213", "0.5972277", "0.59717524", "0.5906476", "0.5902012", "0.58850205", "0.5819166", "0.5807988", "0.5778814", "0.5763793", ...
0.0
-1
Create contents of the window.
private void createContents() { shell = new Shell(); shell.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_BACKGROUND)); shell.setSize(500, 400); shell.setText("SWT Application"); shell.setLayout(new FormLayout()); SERVER_COUNTRY locale = SERVER_COUNTRY.DE; String username = JOptionP...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void createContents() {\r\n\t\tshell = new Shell();\r\n\t\tshell.setSize(450, 300);\r\n\t\tshell.setText(\"SWT Application\");\r\n\r\n\t}", "void createWindow();", "private void createContents() {\r\n\t\tshell = new Shell(getParent(), SWT.TITLE);\r\n\r\n\t\tgetParent().setEnabled(false);\r\n\r\n\t\ts...
[ "0.78568476", "0.770408", "0.77024", "0.75711876", "0.747748", "0.7446512", "0.7418617", "0.74041", "0.7305366", "0.72465086", "0.7217618", "0.7171157", "0.71683043", "0.7142865", "0.71213007", "0.71075344", "0.7094211", "0.7083325", "0.707515", "0.69683087", "0.69569373", ...
0.65337104
60
This Method is responsible for building User Menu based on the Selected Role on a Business Unit
private void buildMenu() { try { HttpServletRequest request = (HttpServletRequest) pageContext.getRequest(); Users user = this.getUserPrincipal(request); StringBuilder tempBuilder = new StringBuilder(); HttpSession session = request.getSession(false); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void displayMenu() {\r\n\t\tif (this.user instanceof Administrator) {\r\n\t\t\tnew AdminMenu(this.database, (Administrator) this.user);\r\n\t\t} else {\r\n\t\t\tnew BorrowerMenu(this.database);\r\n\t\t}\r\n\t}", "public String generateSubMenu(int role) {\n\t\tString html = \"\"\n\t\t\t\t+ \"<section clas...
[ "0.6827151", "0.6734891", "0.6376688", "0.62477684", "0.62469983", "0.61966866", "0.6121281", "0.5978879", "0.5911966", "0.59109706", "0.5875058", "0.5860946", "0.58509046", "0.5844809", "0.5805191", "0.57844645", "0.5765965", "0.57644886", "0.5752458", "0.5750054", "0.574749...
0.6965384
0
TODO Autogenerated method stub
@Override public List<ProducteurDtoRep> readAll() { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public String delete(Integer id) { return null; }
{ "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
using Shuntingyard algorithm for tranforming infix notation to postifx RPN notation
public String transformInfixToPostfix(String input) { List<String> outputQueue = new LinkedList<>(); Stack<Operation> operationStack = new Stack<>(); final String[] splitedEquation = input.split(" "); for (String token : splitedEquation) { if (isOperator(token)) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static String infixToPostfix(String infix) throws PostFixException{\n\t\t//Create a new stack object to hold operators from infix expression\n\t\tStack<String> operatorStack = new Stack<String>();\n\t\tString postfix = \"\";\n\t\tString curToken = \"\";\n\t\tScanner getToken = new Scanner(infix);\n\t\t//hol...
[ "0.6863922", "0.6777924", "0.67766994", "0.673223", "0.6701991", "0.6680178", "0.66382545", "0.6634798", "0.6622173", "0.66165835", "0.65297043", "0.6528937", "0.65180695", "0.65009964", "0.64832896", "0.64592004", "0.64068323", "0.62577474", "0.6248428", "0.6221493", "0.6144...
0.66260946
8
everyone wishes about java's immutable collections...
Stack<Operation> addOperation(Stack<Operation> operationStack, String token) { final Stack<Operation> newStack = new Stack<>(); newStack.addAll(operationStack); newStack.add(Operation.formString(token)); return newStack; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Immutable\npublic interface ImmutableCollection<E> extends Collection<E> {\n \n}", "@Test\r\n public void testImmutableObservableList() {\r\n ObservableList data = createObservableList(true);\r\n ImmutableObservableList immutable = new ImmutableObservableList<>(data);\r\n ListChangeRe...
[ "0.75171363", "0.63175184", "0.62448967", "0.6242006", "0.621194", "0.61997354", "0.61188537", "0.61182415", "0.60853064", "0.60656524", "0.60329527", "0.6030874", "0.6022264", "0.60151535", "0.5993027", "0.59911346", "0.5984593", "0.5982532", "0.5978731", "0.59731346", "0.59...
0.0
-1
We've bound to LocalService, cast the IBinder and get LocalService instance
@Override public void onServiceConnected(ComponentName className, IBinder service) { WebsocketService.WebsocketBinder binder = (WebsocketService.WebsocketBinder) service; mService = binder.getService(); mWebsocketServiceBound = true; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onServiceConnected(ComponentName className,\n IBinder service) {\n LocalService.LocalBinder binder = (LocalService.LocalBinder) service;\n mService = binder.getService();\n mBound = true;\n }", "@Override...
[ "0.68438596", "0.68438596", "0.6801453", "0.66355634", "0.6532871", "0.6315015", "0.628101", "0.6274525", "0.6230258", "0.6218676", "0.62064177", "0.6194781", "0.61691356", "0.6127817", "0.60696155", "0.6053019", "0.60388136", "0.60326546", "0.6015274", "0.5915271", "0.590678...
0.0
-1
Call control interface for container activity.
public interface OnChatEvents { void onSendChatMessage(String time, String displayName, String buddyPicture, String message, String to); void onMessageRead(); void onSendFile(String time, String displayName, String buddyPicture, String message, long size, String name, String mime, String to); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic Control getControl() {\r\n\t\treturn container;\r\n\t}", "public void control() {\n\r\n\t}", "public void setContainerActivity(Activity containerActivity) {\n this.containerActivity = containerActivity;\n }", "public void run() {\r\n\t\tAbstractElementControl[] controls = mana...
[ "0.5819336", "0.5815005", "0.5631279", "0.5446205", "0.5400302", "0.5372163", "0.53698236", "0.5369798", "0.53666764", "0.5265606", "0.52616894", "0.52456504", "0.52420443", "0.52398425", "0.52085847", "0.52085847", "0.52085847", "0.52085847", "0.52085847", "0.52085847", "0.5...
0.0
-1
Inflate the layout for this fragment
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { controlView = inflater.inflate(R.layout.fragment_chat, container, false); mUserNameTextView = (TextView) controlView.findViewById(R.id.userName); recent...
{ "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
If the provided typeNode is a record, returns the compact constructor (there should only be one, but if the file is not semantically sound there might be more). If the only one in existence is the default autogenerated one, it is removed, a new explicit one is created, and that one is returned in a list. Otherwise, an ...
private List<JCMethodDecl> addCompactConstructorIfNeeded(JavacNode typeNode, JavacNode source) { List<JCMethodDecl> answer = List.nil(); if (typeNode == null || !(typeNode.get() instanceof JCClassDecl)) return answer; JCClassDecl cDecl = (JCClassDecl) typeNode.get(); if ((cDecl.mods.flags & RECORD) == 0) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "RecordType createRecordType();", "public GO_RecordType() {\n }", "GetRecordsType createGetRecordsType();", "protected SimpleTypeImpl getSimpleNoCollection() {\n return new SimpleTypeImpl(\"simpleNameSpace\", SIMPLE_TYPE_NAME, null);\n }", "RecordType newRecordType(QName name) throws TypeExcept...
[ "0.47245014", "0.46704513", "0.45863482", "0.4541468", "0.4533812", "0.44752088", "0.4419014", "0.43334603", "0.43105826", "0.43068188", "0.43026862", "0.4301266", "0.42625886", "0.4251535", "0.42434397", "0.42205277", "0.42145336", "0.42050743", "0.41796497", "0.41731215", "...
0.50358295
0
added after java 8
default void uploadVideo() { System.out.println("upload the video"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "zzafe mo29840Y() throws RemoteException;", "zzang mo29839S() throws RemoteException;", "@Override\n public void func_104112_b() {\n \n }", "zzana mo29855eb() throws RemoteException;", "Compatibility compatibility();", "private static void cajas() {\n\t\t\n\t}", "zzand mo29852bb() throws Re...
[ "0.5563932", "0.55215394", "0.5474305", "0.54071146", "0.5350164", "0.5333426", "0.5332396", "0.52988267", "0.5288948", "0.52769977", "0.5270336", "0.52531976", "0.52298456", "0.5192141", "0.5177511", "0.51762366", "0.5150304", "0.50812286", "0.5065398", "0.5064761", "0.50454...
0.0
-1
Juggling method Draw back the length of the array must be a multiple of rotation time
static void rotate_right(int[] arr, int rotate){ for (int j = 0; j < rotate; j++) { int temp = arr[j]; for (int i = j; i < arr.length+rotate; i+=rotate) { if(i-rotate < 0) temp = arr[i]; else if(i >= arr.length) arr[...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void rotate();", "@Override\r\n\tpublic void rotate() {\n\t\t\r\n\t}", "public static void main (String[] args) \n { \n int arr[] = {1, 2, 3, 4, 5, 6, 7}; \n int n = arr.length; \n int d = 2; \n \n // in case the rotating factor is \n // greater than array length \n d = d...
[ "0.6189186", "0.59803605", "0.59649265", "0.5910968", "0.58968943", "0.5896391", "0.58527106", "0.5815181", "0.57797533", "0.57796854", "0.57779384", "0.57575333", "0.57512355", "0.5732878", "0.57226336", "0.5714554", "0.5705599", "0.56927943", "0.5658057", "0.5647439", "0.56...
0.5188816
72
Max cut will always be between max length parts from horizontal and vertical. We need to find max for each of two cuts, this including 0 to el_0 and el_last end.
public int maxArea(int h, int w, int[] horizontalCuts, int[] verticalCuts) { Arrays.sort(horizontalCuts); Arrays.sort(verticalCuts); int maxH = Math.max(horizontalCuts[0], h - horizontalCuts[horizontalCuts.length - 1]); int maxV = Math.max(verticalCuts[0], w - verticalCuts[verti...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract int calculateMaximumSize(int axis);", "static long largestRectangle(int[] h) {\n\n int max = -1;\n\n for(int i = 0; i < h.length; i++){\n int height = h[i];\n int currentW = 1;\n int pointer = i-1;\n while(pointer >= 0 && h[pointer] >= height){\n...
[ "0.6211144", "0.61110485", "0.6018968", "0.58816385", "0.5852306", "0.57918406", "0.5772813", "0.57116586", "0.5692891", "0.5673698", "0.56553775", "0.5654841", "0.5644448", "0.5623277", "0.5622072", "0.5616492", "0.55755705", "0.5570553", "0.5566727", "0.5563752", "0.5556654...
0.60543
2
Create fake user for the test
@Test public void createJWTTest() { User fakeUser = new User(1, "username", null, null, "user@mail.com", null); // Create assertion to verify returned string is not equal to empty string assertThat(JWTService.createJWT(String.valueOf(fakeUser.getId()), fakeUser.getUsername(), fakeUser.getEmai...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testCreateUser() {\n\t\tassertTrue(auctionSystem.createUser(\"toto\", \"Glen\", \"Fiddich\", RoleEnum.SELLER));\n\t\tassertTrue(auctionSystem.createUser(\"tata\", \"Johnnie\", \"Campbell\", RoleEnum.BUYER));\n\t\tassertTrue(auctionSystem.createUser(\"tutu\", \"Ballentine\", \"Darmore\", RoleEn...
[ "0.7221132", "0.7145512", "0.7141178", "0.70262706", "0.7015241", "0.6988453", "0.6986502", "0.69800407", "0.69660467", "0.6944425", "0.69413537", "0.6900197", "0.68542415", "0.68137187", "0.67814696", "0.67805034", "0.6765674", "0.67521465", "0.673245", "0.67255163", "0.6722...
0.63662505
65
Get the local scope associated with the method body.
public LocalScope nestedLocalScope() { return nested; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Scope getEnclosingScope();", "protected Scope computeEnclosingScope()\n/* */ {\n/* 48 */ Class localClass1 = (Class)getRecvr();\n/* */ \n/* 50 */ Method localMethod = localClass1.getEnclosingMethod();\n/* 51 */ if (localMethod != null)\n/* */ {\n/* */ \n/* 54 */ return Met...
[ "0.70589864", "0.7044777", "0.70086896", "0.6724472", "0.6381167", "0.6301732", "0.6301732", "0.6301732", "0.6264971", "0.61790544", "0.6172525", "0.6166355", "0.6166355", "0.6166355", "0.61638045", "0.61638045", "0.61413413", "0.61104673", "0.60969263", "0.6037555", "0.59696...
0.66404957
4
Set the local scope.
void setNested(LocalScope scope) { nested = scope; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setParentLocalScope(LocalScope localScope) {\n\t\tthis.parentLocalScope = localScope;\n\t}", "public void setScope(JexlEngine.Scope theScope) {\r\n this.scope = theScope;\r\n }", "public void setScope(Scope scope) {\n this.scope = scope;\n }", "public void setScope(Scope scope...
[ "0.7649831", "0.73268896", "0.6959661", "0.6959661", "0.6959661", "0.67832184", "0.6634232", "0.656308", "0.656308", "0.656308", "0.6479389", "0.63912266", "0.63283026", "0.626451", "0.62625295", "0.62491053", "0.6196991", "0.61805063", "0.6155458", "0.61339927", "0.61189765"...
0.71691674
2
Creates a new instance of TranscriptionSearchResultItem
public AnnotationSearchResultItem() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "TSearchResults createSearchResults(TSearchQuery searchQuery);", "QuoteItem createQuoteItem();", "public SearchResultItem(AbstractIdentifier identifierA) {\n\t\tthis(identifierA, null);\n\t}", "@SuppressWarnings(\"unused\")\n private CreateOrUpdateTemplateRelationResult() {\n }", "TR createTR();", "...
[ "0.59571767", "0.54746395", "0.5322592", "0.51952004", "0.5058682", "0.49811223", "0.49276084", "0.49242428", "0.49105906", "0.49058604", "0.48487964", "0.4763607", "0.47545725", "0.47510993", "0.4717539", "0.47040084", "0.46964216", "0.46681926", "0.466675", "0.46417353", "0...
0.5196979
3
TODO Autogenerated method stub
public Stock findByCatalogueIdAndStockStatus(int catalogueId, String stockStatus) { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
public Stock findByCatalogueId(int catalogueId) { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
public WorkerVO addWorker(Message message) { System.out.println("Worker is added"); return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
public InstitutionVO addInstitution(Message message) { System.out.println("Institution is added"); return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
public boolean removeWorker(String id) { System.out.println("Worker is removed"); return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
public boolean removeInstitution(String id) { System.out.println("Institution is removed"); return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
public boolean changeWorker(String id, Message message) { System.out.println("Worker is changed"); return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
public boolean changeInstitution(String id, Message message) { System.out.println("Institution is changed"); return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
public WorkerVO inquireWorker(String id) { System.out.println("Worker is inquired"); return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
public InstitutionVO inquireInstitution(String id) { System.out.println("Institution is inquired"); return null; }
{ "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
Converts the given byte to a hexadecimal string.
public static String toHexString(int v) { v &= 0xFF; // Will return either "x" or "xx" as v is bounded to 0-255. String res = Integer.toHexString(v); if (res.length() == 1) return "0" + res; return res; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static public String byteToHex(byte b) {\n\t\tchar hexDigit[] = {\n\t\t\t\t'0', '1', '2', '3', '4', '5', '6', '7',\n\t\t\t\t'8', '9', 'A', 'B', 'C', 'D', 'E', 'F'\n\t\t};\n\t\tchar[] array = { hexDigit[(b >> 4) & 0x0f], hexDigit[b & 0x0f] };\n\t\treturn new String(array);\n\t}", "static public String byteToHex(b...
[ "0.77351624", "0.77124596", "0.7677584", "0.75923896", "0.75496227", "0.75422823", "0.7483504", "0.74494725", "0.7367003", "0.72196066", "0.71674544", "0.7165793", "0.7157433", "0.71168256", "0.68488175", "0.6792696", "0.67643046", "0.66214544", "0.66206425", "0.6620608", "0....
0.0
-1
Converts the given list of bytes to a hexadecimal string.
public static String toHexString(int... vals) { StringBuilder sb = new StringBuilder(); for (int v : vals) sb.append(toHexString(v)); return sb.toString(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String hexify(byte bytes[]) {\n\n char[] hexDigits = {'0', '1', '2', '3', '4', '5', '6', '7',\n '8', '9', 'a', 'b', 'c', 'd', 'e', 'f'};\n\n StringBuilder buf = new StringBuilder(bytes.length * 2);\n\n for (byte aByte : bytes) {\n buf.append(hexDigits[(aByte &...
[ "0.7784215", "0.7754242", "0.7728535", "0.75448644", "0.75207394", "0.7465826", "0.7389934", "0.7379169", "0.7279519", "0.7257317", "0.7211125", "0.7183122", "0.71417075", "0.71404797", "0.7073955", "0.70736516", "0.70554256", "0.70542514", "0.70426345", "0.70137274", "0.7002...
0.6152852
87
Converts the given list of bytes to a hexadecimal string.
public static String toHexString(byte... vals) { StringBuilder sb = new StringBuilder(); for (byte v : vals) sb.append(toHexString(v)); return sb.toString(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String hexify(byte bytes[]) {\n\n char[] hexDigits = {'0', '1', '2', '3', '4', '5', '6', '7',\n '8', '9', 'a', 'b', 'c', 'd', 'e', 'f'};\n\n StringBuilder buf = new StringBuilder(bytes.length * 2);\n\n for (byte aByte : bytes) {\n buf.append(hexDigits[(aByte &...
[ "0.7784215", "0.7754242", "0.7728535", "0.75448644", "0.75207394", "0.7465826", "0.7389934", "0.7379169", "0.7279519", "0.7257317", "0.7211125", "0.7183122", "0.71417075", "0.71404797", "0.7073955", "0.70736516", "0.70554256", "0.70542514", "0.70426345", "0.70137274", "0.7002...
0.7002009
21
Simple test validating only the prediction part of the output
@Test public void testOne() { testDriver.pipeInput(recordFactory.create(Kafka_Streams_MachineLearning_H2O_GBM_Example.INPUT_TOPIC, null, "1987,10,14,3,741,730,912,849,PS,1451,NA,91,79,NA,23,11,SAN,SFO,447,NA,NA,0,NA,0,NA,NA,NA,NA,NA...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract int predict(double[] testingData);", "public void printPrediction() {\n\t\tfor (int i = 0; i < testData.size(); i++) {\n\t\n\t\t\tSystem.out.print(testData.get(i) + \", Predicted label:\"\n\t\t\t\t\t+ predictLabels[i]);\n\t\t\tif (predictLabels[i] >= 20) System.out.println(\" Successful\");\n\t\t...
[ "0.69838524", "0.6766441", "0.64546883", "0.64328986", "0.63879406", "0.62527066", "0.624516", "0.620326", "0.6113598", "0.6096216", "0.6057561", "0.6020579", "0.59807426", "0.59768", "0.5975009", "0.5962561", "0.5959586", "0.5951177", "0.5949707", "0.59484875", "0.5948058", ...
0.61940897
8
Test based on Kafka_Streams_TensorFlow_Image_Recognition_Example_IntegrationTest
@Test public void testList() { // Flight data (one single flight) --> We want to predict if it will be // delayed or not List<String> inputValues = Arrays.asList( "1987,10,14,3,741,730,912,849,PS,1451,NA,91,79,NA,23,11,SAN,SFO,447,N...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<Result> recognize(IplImage image);", "@Test\n public void singlePicTest() {\n // TODO: test singlePic\n }", "@Test\n public void thumbnailTest() {\n // TODO: test thumbnail\n }", "@MediumTest\n public void test_1314_4() throws Exception {\n String imagePath = E...
[ "0.6166503", "0.6052328", "0.590416", "0.58697385", "0.5813091", "0.5806094", "0.5764862", "0.5754342", "0.57466763", "0.57424265", "0.5739173", "0.57266647", "0.57254976", "0.5675817", "0.5669861", "0.56012475", "0.557239", "0.55604947", "0.5552056", "0.55498123", "0.5543532...
0.0
-1
Get the specification for the given component type.
public WebObjectSpecification getWebComponentSpecification(String componentType) { return reader.getWebComponentSpecification(componentType); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getSpecification() {\n return specification;\n }", "public String getSpecification() {\n return specification;\n }", "public String getSpecification() {\n return specification;\n }", "public Short getSpecType() {\n return specType;\n }", "public String ...
[ "0.6382976", "0.6382976", "0.6382976", "0.6018167", "0.5994512", "0.5988079", "0.5953958", "0.5828039", "0.5828039", "0.57821655", "0.5770272", "0.5695176", "0.5684785", "0.5673834", "0.56727165", "0.5577795", "0.55741435", "0.55709225", "0.5534605", "0.54999363", "0.5430006"...
0.79464495
0
get all registered web component specifications.
public Map<String, NGPackageSpecification<WebObjectSpecification>> getWebComponentSpecifications() { return reader.getWebComponentSpecifications(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public WebObjectSpecification[] getAllWebComponentSpecifications()\n\t{\n\t\treturn reader.getAllWebComponentSpecifications();\n\t}", "@Programmatic\n public Collection<ObjectSpecification> allSpecifications() {\n return Lists.newArrayList(allCachedSpecifications());\n }", "public WebObjectSpecifi...
[ "0.8262492", "0.6422427", "0.5895056", "0.58918107", "0.5798238", "0.5719305", "0.5557142", "0.5551709", "0.55240804", "0.55150515", "0.5420931", "0.5401954", "0.53973496", "0.5382791", "0.53722805", "0.53331625", "0.5316392", "0.5299308", "0.5299308", "0.5299308", "0.5259284...
0.7789878
1
get all registered web component specifications.
public WebObjectSpecification[] getAllWebComponentSpecifications() { return reader.getAllWebComponentSpecifications(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Map<String, NGPackageSpecification<WebObjectSpecification>> getWebComponentSpecifications()\n\t{\n\t\treturn reader.getWebComponentSpecifications();\n\t}", "@Programmatic\n public Collection<ObjectSpecification> allSpecifications() {\n return Lists.newArrayList(allCachedSpecifications());\n }...
[ "0.7789878", "0.6422427", "0.5895056", "0.58918107", "0.5798238", "0.5719305", "0.5557142", "0.5551709", "0.55240804", "0.55150515", "0.5420931", "0.5401954", "0.53973496", "0.5382791", "0.53722805", "0.53331625", "0.5316392", "0.5299308", "0.5299308", "0.5299308", "0.5259284...
0.8262492
0
get all registered layout component specifications.
public Map<String, NGPackageSpecification<WebLayoutSpecification>> getLayoutSpecifications() { return reader.getLayoutSpecifications(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Map<String, NGPackageSpecification<WebObjectSpecification>> getWebComponentSpecifications()\n\t{\n\t\treturn reader.getWebComponentSpecifications();\n\t}", "public WebObjectSpecification[] getAllWebComponentSpecifications()\n\t{\n\t\treturn reader.getAllWebComponentSpecifications();\n\t}", "public Colle...
[ "0.6298894", "0.62824565", "0.60427636", "0.5812561", "0.5787", "0.561817", "0.5475998", "0.54489994", "0.53869015", "0.5273554", "0.5264947", "0.5261967", "0.5202788", "0.51625985", "0.5151808", "0.51425487", "0.51198053", "0.5112901", "0.5097888", "0.5017917", "0.5017819", ...
0.73632497
0
Get a list of all components contained by provided package name
public Collection<String> getComponentsInPackage(String packageName) { NGPackageSpecification<WebObjectSpecification> pkg = reader.getWebComponentSpecifications().get(packageName); return pkg == null ? Collections.<String> emptyList() : pkg.getSpecifications().keySet(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract List<Component> getComponentsByName(String name);", "List<String> getSystemPackages();", "private String[] getPackageNames() {\n return mContext.getPackageManager().getPackagesForUid(Binder.getCallingUid());\n }", "public abstract Map<String,List<Component>> getNamedComponents();", ...
[ "0.7204702", "0.6524123", "0.64340484", "0.64005685", "0.6299607", "0.62208575", "0.61863804", "0.6176842", "0.6132591", "0.60742944", "0.6013174", "0.5986307", "0.5980851", "0.5943603", "0.59284246", "0.591292", "0.590447", "0.5898501", "0.58931", "0.5803018", "0.57546985", ...
0.78218514
0
Get a list of all layouts contained by provided package name
public Collection<String> getLayoutsInPackage(String packageName) { NGPackageSpecification<WebLayoutSpecification> pkg = reader.getLayoutSpecifications().get(packageName); return pkg == null ? Collections.<String> emptyList() : pkg.getSpecifications().keySet(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "List<ResourceValue> getAlternateLayouts(ResourceValue layout) {\n if (rClassResources.isEmpty()) {\n // This will only have been filled if at least one view has a layout in it's annotation.\n // If all view's use their default layout then resources haven't been parsed yet and we can\n // do it no...
[ "0.6129783", "0.5785195", "0.5604948", "0.5532966", "0.54690844", "0.5450111", "0.53937536", "0.5390245", "0.5351865", "0.5308244", "0.5272882", "0.52698964", "0.5250365", "0.52205807", "0.5214977", "0.5206015", "0.51551986", "0.51458925", "0.5128516", "0.50610733", "0.505534...
0.7798036
0
Generate the Liquidity VaR Version of the Power Variance Utility Function
public static final PowerVarianceObjectiveUtility LiquidityVaR ( final double dblRiskAversion) { try { return new PowerVarianceObjectiveUtility (0.5, dblRiskAversion); } catch (java.lang.Exception e) { e.printStackTrace(); } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "double getVariation();", "public GetVarianceArray() {\n\t\tsuper(\"GET_VARIANCE_ARRAY\", Wetrn.WETRN, AppGlobalUnitAdjustment.APP_GLOBAL_UNIT_ADJUSTMENT, org.jooq.impl.DefaultDataType.getDefaultDataType(\"TABLE\"));\n\n\t\tsetReturnParameter(RETURN_VALUE);\n\t\taddInParameter(P_VEHICLE_IDS);\n\t\taddInParameter(...
[ "0.6326147", "0.57398325", "0.5557109", "0.5482038", "0.5470582", "0.5465273", "0.5450492", "0.5436808", "0.5434198", "0.5401818", "0.53806794", "0.53089046", "0.5300206", "0.5260158", "0.5242908", "0.519772", "0.51867366", "0.51784444", "0.5160143", "0.5142932", "0.5139946",...
0.57875717
1
Retrieve the Risk Aversion Parameter
public double riskAversion() { return _dblRiskAversion; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getParameterValue();", "public void getRetreivalParameter() {\n \n \tretModelName = prop.getProperty(\"retModel\");\n \t\n \tswitch(retModelName) \n \t{\n \tcase \"lmjm\":\n \t\tretModelParam1 = prop.getProperty(\"param1\");\n \t\tbreak;\n \tcase \"lmdi...
[ "0.6021859", "0.59925824", "0.5838918", "0.5780878", "0.57187176", "0.56629914", "0.56314886", "0.5629646", "0.54881537", "0.5470513", "0.5388099", "0.5381408", "0.53717947", "0.5363896", "0.5292883", "0.5291695", "0.5291683", "0.52723944", "0.5259803", "0.5252965", "0.524249...
0.63351125
0
Retrieve the Variance Exponent
public double varianceExponent() { return _dblVarianceExponent; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String get_exponent_part();", "public double getVariance(){\n\t\tdouble a = location + scale * scale;\n\t\treturn Math.exp(2 * a) - Math.exp(location + a);\n\t}", "public Double getEstimatedPathLossExponentVariance() {\n return mEstimatedPathLossExponentVariance;\n }", "public Double getEsti...
[ "0.7078572", "0.65784305", "0.6347539", "0.6347539", "0.6323597", "0.6298066", "0.62883544", "0.622116", "0.6213657", "0.6180713", "0.6145997", "0.6099181", "0.6081708", "0.60755986", "0.6073814", "0.6068756", "0.5945294", "0.5878113", "0.57978046", "0.57802373", "0.5769315",...
0.76738673
0
Creates new form FrmCadTitulosPagar
public FrmCadCentroCusto() { initComponents(); carregarCombo(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ViewCreatePagamento() {\n initComponents();\n clientesDAO cDAO = DaoFactory.createClientesDao(); \n matriculaDAO mDAO = DaoFactory.createMatriculaDao();\n \n cmbIDClientes.addItem(null);\n cDAO.findAll().forEach((p) -> {\n cmbIDClientes.addItem(p.getNome())...
[ "0.71747345", "0.6764865", "0.66499263", "0.6489935", "0.6471224", "0.64531356", "0.63706774", "0.63654375", "0.6331283", "0.6307599", "0.62809145", "0.62784195", "0.6263276", "0.6260302", "0.62370783", "0.62269115", "0.621138", "0.6211207", "0.6188273", "0.61795634", "0.6178...
0.60542303
38
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.
@SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { jLabel1 = new javax.swing.JLabel(); jLabel2 = new javax.swing.JLabel(); jLabel3 = new javax.swing.JLabel(); btnSalvar =...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Form() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public frmRectangulo() {\n initComponents();\n }", "public form() {\n ...
[ "0.73197734", "0.72914416", "0.72914416", "0.72914416", "0.72862023", "0.72487676", "0.7213741", "0.7207628", "0.7196503", "0.7190263", "0.71850693", "0.71594703", "0.7147939", "0.7093137", "0.70808756", "0.70566356", "0.6987119", "0.69778043", "0.6955563", "0.6953879", "0.69...
0.0
-1
Gets the creates the user.
public String getCreateUser() { return createUser; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Long getCreateUser() {\r\n return createUser;\r\n }", "public Long getCreateUser() {\r\n return createUser;\r\n }", "public String getCreateUser () {\r\n\t\treturn createUser;\r\n\t}", "public String getCreateUser() {\r\n return createUser;\r\n }", "public String getCre...
[ "0.745355", "0.745355", "0.7399232", "0.7397099", "0.7397099", "0.73911744", "0.73911744", "0.73818994", "0.73818994", "0.73818994", "0.73818994", "0.73818994", "0.73818994", "0.73818994", "0.73818994", "0.73818994", "0.73818994", "0.73818994", "0.73818994", "0.73818994", "0....
0.74780184
0
Sets the creates the user.
public void setCreateUser(String createUser) { this.createUser = createUser; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setCreateUser(entity.User value) {\n __getInternalInterface().setFieldValue(CREATEUSER_PROP.get(), value);\n }", "public void setCreateUser(entity.User value) {\n __getInternalInterface().setFieldValue(CREATEUSER_PROP.get(), value);\n }", "public void createUser(User user) {\n\n\t}", ...
[ "0.8074964", "0.7716772", "0.7407032", "0.7364044", "0.7364044", "0.73460245", "0.7343968", "0.7270061", "0.7269445", "0.7263751", "0.72619295", "0.71869266", "0.71869266", "0.7140165", "0.7128709", "0.7128709", "0.7082798", "0.7082798", "0.7074036", "0.7013267", "0.6992785",...
0.72720045
7