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
used to stop all ExecutionHandlers which are currently executed.
public static void stopEverything(){ for(final ExecutionHandler<?> execHandler:allThreads){ //interrupt the stack execution, so that it wont be further executed stopExecutionHandler(execHandler); } //Now when all ExecutionHandlers should already be empty, but for sure - clear all global lists explicit...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void stopExecutionHandler(final ExecutionHandler<?> execHandler){\r\n\t\t//first interrupt the ExecutionHandler, which is a thread\r\n\t\texecHandler.interrupt();\r\n\t\t\r\n\t\t//and now let every executable, which was executed on this thread disable the \"i'm running\" signal\r\n\t\tAppRessources.c...
[ "0.74588346", "0.7009897", "0.6943029", "0.68429554", "0.6746257", "0.6689645", "0.6616599", "0.66043043", "0.654611", "0.6523819", "0.65036917", "0.64911735", "0.64606327", "0.6442932", "0.63596886", "0.6345295", "0.63241667", "0.63204366", "0.63181525", "0.6308382", "0.6284...
0.7590099
0
If execution of the root executable has given any Results if will be returned here.
public E getResult(){ return this.result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ExecutionResults getExecutionResults() {\n\t\treturn results ;\n\t}", "@Override\r\n\tpublic boolean results()\r\n\t{\r\n\t\treturn this.results(this.getRobot());\r\n\t}", "public Value execute() {\n return execute(Collections.<String, Value>emptyMap(), Collections.<String, Value>emptyMap());\n }", ...
[ "0.6069282", "0.5522606", "0.5508397", "0.5488698", "0.54718184", "0.54212695", "0.5336475", "0.53323615", "0.5287998", "0.5180175", "0.51663417", "0.51463443", "0.51208246", "0.5115071", "0.5111714", "0.51040184", "0.5093551", "0.50592977", "0.50544345", "0.50376797", "0.502...
0.0
-1
method to clear all the local thread pointers to executables and the executionHandler pointers from all static lists
private static void clearExecutionHandlerPointers(ExecutionHandler<?> execHandler){ //now iterate the executables on the given ExecutionHandler Thread again, now not on the UI thread and delete them from global lists for( Executable<?> exec : execHandler.executablesInProcess){ allExecutablesInProcess.remo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void stopEverything(){\r\n\t\tfor(final ExecutionHandler<?> execHandler:allThreads){\r\n\t\t\t//interrupt the stack execution, so that it wont be further executed \r\n\t\t\tstopExecutionHandler(execHandler);\r\n\t\t}\r\n\t\t//Now when all ExecutionHandlers should already be empty, but for sure - clea...
[ "0.7382836", "0.65017724", "0.62492937", "0.61410177", "0.60734046", "0.605324", "0.60451084", "0.6035378", "0.60233945", "0.60080206", "0.59997237", "0.5987606", "0.5987606", "0.598625", "0.5944719", "0.5940279", "0.59378654", "0.59378654", "0.59279674", "0.5907111", "0.5890...
0.808037
0
Authenticating the service admin stub
public CassandraKeyspaceAdminClient(String hostName, String sessionCookie) throws AxisFault { backendUrl = "https://" + hostName + "/services/"; endPoint = backendUrl + serviceName; cassandraKeyspaceAdminStub = new CassandraKeyspaceAdminStub(endPoint); AuthenticateStub.authenticateStub(sessionCookie, cassandra...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void loginAsAdmin() {\n vinyardApp.navigateToUrl(\"http://localhost:8080\");\n vinyardApp.fillUsername(\"admin\");\n vinyardApp.fillPassord(\"321\");\n vinyardApp.clickSubmitButton();\n }", "@Test\n\tpublic void adminLogin()\n\t{\n\t\tAdminFacade af = admin.login(\"admin\",...
[ "0.69576275", "0.68053025", "0.6600982", "0.6588177", "0.6577504", "0.64688754", "0.6461545", "0.6332897", "0.62983966", "0.6235567", "0.61890584", "0.61825866", "0.6141566", "0.6141566", "0.61349446", "0.61080515", "0.6071434", "0.60650903", "0.6058625", "0.6057485", "0.6052...
0.0
-1
si viene algun parametro en null se establece NullParam
@Override public List<ClearingData10> searchClearingData(Map<String, Object> header, Long id, AccountingStatusType status, Long accountingId) throws Exception { Object[] params = { id != null ? id : new NullParam(Types.BIGINT), status != null ? status.getValue() : new NullParam(Types.VARCHAR), a...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Ignore\n\t@Test\n\tpublic void testParamNull() {\n\t\tregisterParamException(null, keyString, valueString);\n\t\tregisterParamException(groupString, null, valueString);\n\t\tregisterParamException(groupString, keyString, null);\n\t}", "static void checkNull(final Object param, final String paramName) {\r\n ...
[ "0.7377059", "0.6749558", "0.67192626", "0.65690714", "0.65689415", "0.64804924", "0.64587265", "0.6357031", "0.6302542", "0.6246477", "0.6234701", "0.61987716", "0.6176135", "0.6152959", "0.61308825", "0.61289173", "0.6097273", "0.6096549", "0.6096499", "0.6089525", "0.60318...
0.0
-1
Getting the intent and bundle:
private void extractDataFromBundle() { Intent intent = getIntent(); Bundle bundle = intent.getBundleExtra(MainActivity.PRACTICE_GAME_BUNDLE_KEY); mDifficulty = (Difficulty) bundle.getSerializable(MainActivity.DIFFICULTY_KEY); mPlayerGamePiece = (GamePiece) bundle.getSerializable(MainAc...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void getBundleData(Intent intent);", "public void getBundle (){\n idTemp = getIntent().getStringExtra(\"id\");\n }", "@Override\n\tprotected void getIntentData(Bundle savedInstanceState) {\n\n\t}", "private void getExtrasFromCallingActivity() {\n extras = getIntent().getExtras();\n if...
[ "0.7878248", "0.76442933", "0.7495607", "0.70902777", "0.70861405", "0.6979098", "0.6978278", "0.6950421", "0.69402695", "0.6887028", "0.6874028", "0.67840743", "0.6724411", "0.6723019", "0.6602234", "0.6589922", "0.65789294", "0.6548716", "0.649787", "0.6484637", "0.64767075...
0.7025156
5
Initializing components regarding profile areas for both players:
private void setupComponents() { mPlayerProfileArea = (LinearLayout) findViewById(R.id.profile_area_player); mPlayerUsername = (TextView) findViewById(R.id.username_player); mOpponentProfileArea = (LinearLayout) findViewById(R.id.profile_area_opponent); mOpponentUsername = (TextView) fin...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void initComponents() {\r\n\t\trand = new Random();\r\n\t\tfetchProfiles();\r\n\t\tgetPeopleFromFile();\r\n\t}", "public Profile() {\n initComponents();\n AutoID();\n member_table();\n \n }", "private JPanel setUpOtherPlayersPanel(List<Player> otherPlayers) {\n oth...
[ "0.64177907", "0.6212857", "0.6177384", "0.60499394", "0.6047", "0.6014614", "0.6004827", "0.59141785", "0.5882108", "0.5843662", "0.5813989", "0.5800974", "0.57938373", "0.5756889", "0.5756196", "0.5746372", "0.5721212", "0.5696833", "0.56919056", "0.56770235", "0.56359327",...
0.65931547
0
If player goes first, initialize the playable tiles and show guidelines:
public void run() { if(mPlayerGamePiece == mGame.getmCurrentlyPlaying()){ mPlayableTiles = mGame.getmBoard().getPlayableTiles(mPlayerGamePiece); showGuidelines(); mIsAllowedToPlay = true; } // Otherwise, opponent...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void initGame() {\r\n Log.d(\"UT3\", \"init game\");\r\n mEntireBoard = new Tile(this);\r\n // Create all the tiles\r\n for (int large = 0; large < 9; large++) {\r\n mLargeTiles[large] = new Tile(this);\r\n for (int small = 0; small < 9; small++) {\r\n ...
[ "0.7184554", "0.6950537", "0.68637145", "0.68408984", "0.68366355", "0.6595841", "0.6556343", "0.65156025", "0.6510673", "0.650879", "0.64925295", "0.648879", "0.64747036", "0.6473264", "0.6472829", "0.647077", "0.6468469", "0.6454096", "0.644073", "0.6425833", "0.6418668", ...
0.6329934
31
Getting the grid view:
private void setupGrid() { mGrid = (GridView) findViewById(R.id.grid_view); // Setting number of columns in the grid: mGrid.setNumColumns(mGame.getmBoard().getNumberOfCols()); // Setting the adapter for the grid: mGrid.setAdapter(new TileAdapter(getApplicationContext(), mGame.g...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Pane getView() {\n return gridPane;\n }", "public GridPane getGrid(){\n\t\treturn myGrid;\n\t}", "public GridPane getGrid() {\n return grid;\n }", "public GridDisplay getGrid(){\n\t\treturn this.display.gridDisplay;\n\t\t//return this.grid;\n\t}", "public Grid getGrid() {\n ...
[ "0.7468188", "0.69626814", "0.691134", "0.6867767", "0.6636331", "0.6626716", "0.6543093", "0.652676", "0.636003", "0.62851626", "0.62670535", "0.6260248", "0.610208", "0.6081477", "0.6048073", "0.6046647", "0.6001127", "0.5943593", "0.59428954", "0.5933633", "0.59309804", ...
0.0
-1
Making sure the game hasn't ended and that its a proper timing to let the player make his turn.
@Override public void onItemClick(AdapterView<?> parent, View view, int position, long id) { if (mGame.getmGameStatus() == Game.GameStatus.ONGOING && mIsAllowedToPlay) { Log.d("Playable Tiles" , mPlayableTiles.toString()); Log.d("Position" , "" + posi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void doLastTurn()\n\t{\n\t\tInteger time = turn;\n\n\t\tstartEnterScore(time);\n\t\tdisposeFrameMap();\n\n\t\ttimer.cancel();\n\t}", "private void gameTimerOnFinish() {\n if (currentScreenGameState == GameState.PLAYING) {\n stopGame();\n }\n }", "public void inTurn() {\n\t\t...
[ "0.7254313", "0.71477103", "0.71206063", "0.6998529", "0.6933655", "0.6904446", "0.68892753", "0.6853241", "0.6830594", "0.6811693", "0.676877", "0.6764403", "0.674586", "0.6733957", "0.67160124", "0.6710971", "0.66734093", "0.6664571", "0.6648663", "0.66196233", "0.66006285"...
0.0
-1
If game is still ongoing:
@Override public void run() { if(mGame.getmGameStatus() == Game.GameStatus.ONGOING){ // If turn was toggled: if(mGame.getmCurrentlyPlaying() != mPlayerGame...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean isGameComplete();", "private void inGame() {\n\n if (!ingame) {\n timer.stop();\n\n }\n }", "public void isGameOver() { \r\n myGameOver = true;\r\n myGamePaused = true; \r\n }", "public void checkGameStatus() {\n everyTenthGoalCongrats();\n ...
[ "0.76692694", "0.7630894", "0.7350962", "0.72520745", "0.7215713", "0.71928704", "0.71926314", "0.71299434", "0.7122831", "0.71172494", "0.7113953", "0.7097462", "0.7047425", "0.70325357", "0.69364256", "0.6929634", "0.6920506", "0.69002324", "0.6900126", "0.6843389", "0.6840...
0.0
-1
Getting A.I.'s game peace type:
private void makeAIMove(){ final GamePiece opponentPiece = mGame.getmCurrentlyPlaying(); // Creating new thread for A.I. move calculation, just in case the calculation would be too long. // (So the A.I. move calculation won't freeze the screen). new Thread(new Runnable() { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static int getGameType()\n\t{\n\t\treturn -1;\n\t}", "private String getOpeningType(Game game) {\n for (int i = 0; i < 6; i++) {\n game.forward();\n }\n\n if (isType1(game)) {\n return TYPE1;\n } else if (isType2(game)) {\n return TYPE2;\n ...
[ "0.72388095", "0.7028332", "0.6925981", "0.6919925", "0.6875315", "0.6844585", "0.67899203", "0.66574025", "0.65684843", "0.64878863", "0.64159554", "0.64159554", "0.64159554", "0.64159554", "0.64159554", "0.64159554", "0.64159554", "0.64159554", "0.6353782", "0.6353782", "0....
0.0
-1
If game is still ongoing:
@Override public void run() { if(mGame.getmGameStatus() == Game.GameStatus.ONGOING){ // If turn was toggled: if(mGame.getmCurrentlyPlaying() != opponentPie...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean isGameComplete();", "private void inGame() {\n\n if (!ingame) {\n timer.stop();\n\n }\n }", "public void isGameOver() { \r\n myGameOver = true;\r\n myGamePaused = true; \r\n }", "public void checkGameStatus() {\n everyTenthGoalCongrats();\n ...
[ "0.76692694", "0.7630894", "0.7350962", "0.72520745", "0.7215713", "0.71928704", "0.71926314", "0.71299434", "0.7122831", "0.71172494", "0.7113953", "0.7097462", "0.7047425", "0.70325357", "0.69364256", "0.6929634", "0.6920506", "0.69002324", "0.6900126", "0.6843389", "0.6840...
0.0
-1
Playing a proper sound:
@Override public void onClick(View v) { if(mSoundStatus.equals(Constants.ON)) mFlipPieceSound.start(); // Creating a new game and reinitializing UI components: mGame = new Game(); setupGrid(); mBlackCounter.setText("2"); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void play() {\n\t\tlog.finest(\"Playing sound\");\n\t\ttone.trigger();\n\t}", "public void playSound() {\n\t\tmediaPlayer.play();\n\t}", "private void playSound() {\n\t\tif (controllerVars.isLoaded() && !controllerVars.isPlays()) {\n\t\t\tcontrollerVars.getSoundPool().play(controllerVars.getSoundID(), ...
[ "0.84338534", "0.81650746", "0.81092936", "0.8069635", "0.79454", "0.79007953", "0.7882646", "0.78354555", "0.7729134", "0.77261704", "0.77110654", "0.76977473", "0.7680837", "0.767871", "0.76756215", "0.7657891", "0.76347065", "0.75539225", "0.7552617", "0.754645", "0.753351...
0.0
-1
Setting listener for the button:
private void setupShakeButton() { mShakeButton.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { // If shake is playable at the moment: if(mIsShakePlayable) { // Making button unavailable for a w...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void configureButtonListener();", "void enablButtonListener();", "private void setButtonListener() {\n for(CellButton[] buttonsRow : mainFrame.getButtons()) {\n for(CellButton button :buttonsRow) {\n button.addButtonListener(this);\n }\n }\n }", "@Overrid...
[ "0.82614964", "0.8192561", "0.7478328", "0.7363916", "0.719137", "0.7189081", "0.71436286", "0.713951", "0.7103862", "0.7099529", "0.7089942", "0.70795923", "0.70287645", "0.7024317", "0.7003593", "0.6999646", "0.69915986", "0.69887584", "0.6944712", "0.6916779", "0.6893452",...
0.0
-1
If shake is playable at the moment:
@Override public void onClick(View v) { if(mIsShakePlayable) { // Making button unavailable for a while: mIsShakePlayable = false; mShakeButton.setBackgroundResource(R.color.colorGrayDark); // Animating the pro...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void onShake() {\n\t\t\tshake();\n\t\t}", "public void shake(){\n translateTransition.playFromStart();\n }", "@Override\n public void onShakeStopped() {\n LogUtil.e(\"onShakeStopped\");\n }", "@Override\n public void onShakeDetected() {\n LogUtil.e(...
[ "0.70416695", "0.70337164", "0.69028103", "0.6880773", "0.6578707", "0.6512059", "0.64782", "0.6474195", "0.646804", "0.6454419", "0.63338625", "0.6258045", "0.62155783", "0.6179345", "0.6167719", "0.61463434", "0.61447626", "0.6127467", "0.60831267", "0.6080265", "0.6071123"...
0.65402913
5
Making button available once again:
public void run() { mShakeButton.setBackgroundResource(R.drawable.button_red); mIsShakePlayable = true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void redo(){\n\t\tthis.setButtonVisible(true);\n\t}", "public void trigger() {\n button.release(true);\n }", "public void gamereset() {\n Button tmp = (Button) findViewById(R.id.resetbutton);\n tmp.setVisibility(View.VISIBLE);\n }", "public void enableQuitButton(){\n\t\tbtnS...
[ "0.71097475", "0.69538486", "0.6831605", "0.6751736", "0.6747021", "0.66621166", "0.66408914", "0.66140234", "0.6596978", "0.6541545", "0.65157914", "0.65059584", "0.64965385", "0.64809865", "0.64807355", "0.6471508", "0.64620996", "0.64616406", "0.64590746", "0.64479655", "0...
0.0
-1
Playing the shake sound:
private void showShakeAnimation(View profileArea){ if(mSoundStatus.equals(Constants.ON)) mShakeSound.start(); final View finalProfileArea = profileArea; final int numberOfRotations = 30; ObjectAnimator shakeAnimator = ObjectAnimator.ofFloat(profileArea, "rotation", -3, 3...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void shake(){\n translateTransition.playFromStart();\n }", "public abstract void shake(long ms);", "public void onShake() {\n\t\t\tshake();\n\t\t}", "@Override\n public void hearShake() {\n if(pending_intent == null) {\n //do nothing\n } else {\n Log.e(...
[ "0.7756839", "0.70214134", "0.69753045", "0.68993366", "0.68960536", "0.6805572", "0.6780216", "0.6593528", "0.6551953", "0.65287507", "0.643421", "0.643421", "0.64259094", "0.6414354", "0.6409388", "0.6401851", "0.6372833", "0.6363808", "0.633997", "0.63260216", "0.6287687",...
0.6392074
16
Setting listener for the button:
private void setupEmoteButton(){ mEmoteButton.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { // If emotes are playable at the moment: if(mIsEmotePlayable) { // Make emote picker list visible: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void configureButtonListener();", "void enablButtonListener();", "private void setButtonListener() {\n for(CellButton[] buttonsRow : mainFrame.getButtons()) {\n for(CellButton button :buttonsRow) {\n button.addButtonListener(this);\n }\n }\n }", "@Overrid...
[ "0.82614964", "0.8192561", "0.7478328", "0.7363916", "0.719137", "0.7189081", "0.71436286", "0.713951", "0.7103862", "0.7099529", "0.7089942", "0.70795923", "0.70287645", "0.7024317", "0.7003593", "0.6999646", "0.69915986", "0.69887584", "0.6944712", "0.6916779", "0.6893452",...
0.0
-1
If emotes are playable at the moment:
@Override public void onClick(View v) { if(mIsEmotePlayable) { // Make emote picker list visible: mEmotePickerList.setVisibility(View.VISIBLE); mDummy.setVisibility(View.VISIBLE); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean isPlayable();", "@Override\r\n\tpublic boolean canPlay() {\n\t\treturn false;\r\n\t}", "@Override\n\tpublic void canSpeak() {\n\t\t\n\t}", "@Override\n\tpublic void nowPlaying() {\n\t}", "boolean hasPlayready();", "boolean play();", "boolean isPlaying() { return playing; }", "Boolean isPlayin...
[ "0.676169", "0.6671118", "0.6462152", "0.59503704", "0.5892656", "0.58808607", "0.5873379", "0.5821118", "0.58138156", "0.5793751", "0.57525295", "0.57525295", "0.573124", "0.572039", "0.5703699", "0.57000065", "0.5688152", "0.5671279", "0.5663319", "0.5633634", "0.55968857",...
0.5214254
72
Getting arrays of emotes:
private void setupEmotePickerList(){ final String[] emotesArray = getResources().getStringArray(R.array.emotes_array); final String[] botEmotesArray = getResources().getStringArray(R.array.bot_emotes_array); //Getting the listView: mEmotePickerList = (ListView) findViewById(R.id.emote_p...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<Emotion> getEmotions();", "public @NonNull List<Integer> getEmoteSets() {\n return this.emoteSets;\n }", "public List<Emote> getUserEmotes(Long userId) {\n\t\t// Check Scope\n\t\tOptional<OAuthCredential> credential = getTwitchClient().getCredentialManager().getTwitchCredentialsForChannel...
[ "0.6550478", "0.55814266", "0.55546385", "0.5388983", "0.5369758", "0.5315481", "0.52534115", "0.52165824", "0.51528525", "0.5129737", "0.51121783", "0.5077692", "0.5061714", "0.5056781", "0.5006733", "0.49989915", "0.49884397", "0.49847338", "0.49749812", "0.49721554", "0.49...
0.0
-1
Setting the right text in the bubble:
@Override public void onItemClick(AdapterView<?> parent, View view, int position, long id) { mPlayerEmoteBubble.setText(emotesArray[position]); // Animating the bubble: showEmote(mPlayerEmoteBubble); // Making emotes unavailable for a while: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void showPopText(Canvas canvas, String content, float x, float y) {\n int heightOffSet = 40;\n int margin = 10;\n int rectRadius = 4;\n\n //draw rounded rectangle\n Rect popupTextRect = new Rect();\n Paint paint = new Paint();\n paint.getTextBounds(content +...
[ "0.6347244", "0.6304361", "0.6291851", "0.6191524", "0.6103023", "0.6057281", "0.605395", "0.60320044", "0.60224617", "0.59992135", "0.59693265", "0.59512955", "0.5947081", "0.5868656", "0.5847718", "0.5818841", "0.57976997", "0.5791514", "0.5755793", "0.57223845", "0.5714937...
0.0
-1
Animating A.I. emote bubble with random botlike text to make it 'polite':
public void run() { mOpponentEmoteBubble.setText(botEmotesArray[new Random().nextInt(botEmotesArray.length)]); showEmote(mOpponentEmoteBubble); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void showEmote(TextView emoteBubble){\n if(mSoundStatus.equals(Constants.ON)) mPopSound.start();\n\n // Animating the bubble's alpha (fade in, fade out):\n\n ObjectAnimator emoteAlphaAnimator = ObjectAnimator.ofFloat(emoteBubble,\n \"alpha\", 0, 1);\n emoteAlphaAn...
[ "0.71188205", "0.608591", "0.56218183", "0.5599105", "0.5568845", "0.5479585", "0.54657644", "0.5442751", "0.54329455", "0.54221106", "0.54154086", "0.5388749", "0.53883713", "0.5347615", "0.5332065", "0.5330536", "0.52982175", "0.52445525", "0.5239505", "0.52331567", "0.5228...
0.7259857
0
Making emotes available once again:
public void run() { mEmoteButton.setBackgroundResource(R.drawable.button_yellow); mIsEmotePlayable = true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void run() {\n mOpponentEmoteBubble.setText(botEmotesArray[new Random().nextInt(botEmotesArray.length)]);\n showEmote(mOpponentEmoteBubble);\n\n }", "public void emote(String message) {\n\t\tif(message != null && message.length()>0){\n\t\t\t...
[ "0.5663749", "0.562918", "0.5421864", "0.53311116", "0.5289058", "0.52201575", "0.5198331", "0.51737124", "0.5095688", "0.5092921", "0.5086249", "0.5015603", "0.4973941", "0.49663827", "0.49623442", "0.4922313", "0.48898864", "0.48560488", "0.4851144", "0.48412353", "0.483080...
0.49156535
16
Playing the 'pop' sound:
private void showEmote(TextView emoteBubble){ if(mSoundStatus.equals(Constants.ON)) mPopSound.start(); // Animating the bubble's alpha (fade in, fade out): ObjectAnimator emoteAlphaAnimator = ObjectAnimator.ofFloat(emoteBubble, "alpha", 0, 1); emoteAlphaAnimator.setInte...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void pop_sound() {\n\t\tm_player_pop.start();\n\t\tm_player_pop.setMediaTime(new Time(0));\n\t}", "@Override\n public void play(Puppy puppy) {\n System.out.println(\"The puppy is asleep enjoying its wonderful dreams, it currently does not have the desire to play with you right now.\");\n ...
[ "0.8592924", "0.6746158", "0.67226756", "0.6710723", "0.66328186", "0.66128993", "0.6585678", "0.6526503", "0.6516945", "0.6482125", "0.6475233", "0.6465594", "0.64602107", "0.64525926", "0.64264965", "0.6404367", "0.6387967", "0.6373808", "0.6359246", "0.6317633", "0.6295673...
0.0
-1
Creating a dialog and getting the right views:
private void showReturnDialog(){ final Dialog verificationDialog = new Dialog(this, R.style.DialogTheme); verificationDialog.setContentView(R.layout.dialog_verification); TextView verificationText = (TextView) verificationDialog.findViewById(R.id.verification_text); Button cancelButton =...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void makeDialog()\n\t{\n\t\tfDialog = new ViewOptionsDialog(this.getTopLevelAncestor());\n\t}", "public abstract Dialog createDialog(DialogDescriptor descriptor);", "public abstract View getMainDialogContainer();", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog...
[ "0.7153744", "0.71059996", "0.69837487", "0.6980588", "0.68572193", "0.68257505", "0.67954797", "0.678782", "0.677965", "0.6766183", "0.67653984", "0.6757065", "0.67158014", "0.66995037", "0.6644939", "0.66385543", "0.66202056", "0.6616519", "0.6546799", "0.6545988", "0.65337...
0.0
-1
Play a proper sound:
@Override public void onClick(View v) { if(mSoundStatus.equals(Constants.ON)) mPutPieceSound.start(); // Dismiss dialog: verificationDialog.dismiss(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void play() {\n\t\tlog.finest(\"Playing sound\");\n\t\ttone.trigger();\n\t}", "public void playSound() {\n\t\tmediaPlayer.play();\n\t}", "private void playSound() {\n\t\tif (controllerVars.isLoaded() && !controllerVars.isPlays()) {\n\t\t\tcontrollerVars.getSoundPool().play(controllerVars.getSoundID(), ...
[ "0.83235884", "0.81556326", "0.8148567", "0.8113563", "0.7984178", "0.79256266", "0.7917265", "0.78503263", "0.7840744", "0.7820898", "0.7769528", "0.77254564", "0.7717483", "0.77147645", "0.77011305", "0.7650783", "0.76360875", "0.7615948", "0.75898665", "0.7584792", "0.7555...
0.0
-1
Play a proper sound:
@Override public void onClick(View v) { if(mSoundStatus.equals(Constants.ON)) mPutPieceSound.start(); // Dismiss dialog: verificationDialog.dismiss(); // Go back to main menu: // Creating an intent: Intent mai...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void play() {\n\t\tlog.finest(\"Playing sound\");\n\t\ttone.trigger();\n\t}", "public void playSound() {\n\t\tmediaPlayer.play();\n\t}", "private void playSound() {\n\t\tif (controllerVars.isLoaded() && !controllerVars.isPlays()) {\n\t\t\tcontrollerVars.getSoundPool().play(controllerVars.getSoundID(), ...
[ "0.83235884", "0.81556326", "0.8148567", "0.8113563", "0.7984178", "0.79256266", "0.7917265", "0.78503263", "0.7840744", "0.7820898", "0.7769528", "0.77254564", "0.7717483", "0.77147645", "0.77011305", "0.7650783", "0.76360875", "0.7615948", "0.75898665", "0.7584792", "0.7555...
0.0
-1
Creating a dialog and getting the right views:
private void showRestartDialog(){ final Dialog verificationDialog = new Dialog(this, R.style.DialogTheme); verificationDialog.setContentView(R.layout.dialog_verification); TextView verificationText = (TextView) verificationDialog.findViewById(R.id.verification_text); Button cancelButton ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void makeDialog()\n\t{\n\t\tfDialog = new ViewOptionsDialog(this.getTopLevelAncestor());\n\t}", "public abstract Dialog createDialog(DialogDescriptor descriptor);", "public abstract View getMainDialogContainer();", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog...
[ "0.7153744", "0.71059996", "0.69837487", "0.6980588", "0.68572193", "0.68257505", "0.67954797", "0.678782", "0.677965", "0.6766183", "0.67653984", "0.6757065", "0.67158014", "0.66995037", "0.6644939", "0.66385543", "0.66202056", "0.6616519", "0.6546799", "0.6545988", "0.65337...
0.0
-1
Play a proper sound:
@Override public void onClick(View v) { if(mSoundStatus.equals(Constants.ON)) mPutPieceSound.start(); // Dismiss dialog: verificationDialog.dismiss(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void play() {\n\t\tlog.finest(\"Playing sound\");\n\t\ttone.trigger();\n\t}", "public void playSound() {\n\t\tmediaPlayer.play();\n\t}", "private void playSound() {\n\t\tif (controllerVars.isLoaded() && !controllerVars.isPlays()) {\n\t\t\tcontrollerVars.getSoundPool().play(controllerVars.getSoundID(), ...
[ "0.83235884", "0.81556326", "0.8148567", "0.8113563", "0.7984178", "0.79256266", "0.7917265", "0.78503263", "0.7840744", "0.7820898", "0.7769528", "0.77254564", "0.7717483", "0.77147645", "0.77011305", "0.7650783", "0.76360875", "0.7615948", "0.75898665", "0.7584792", "0.7555...
0.0
-1
Play a proper sound:
@Override public void onClick(View v) { if(mSoundStatus.equals(Constants.ON)) mPutPieceSound.start(); // Creating a new game and reinitializing UI components: mGame = new Game(); setupGrid(); mBlackCounter.setText("2"); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void play() {\n\t\tlog.finest(\"Playing sound\");\n\t\ttone.trigger();\n\t}", "public void playSound() {\n\t\tmediaPlayer.play();\n\t}", "private void playSound() {\n\t\tif (controllerVars.isLoaded() && !controllerVars.isPlays()) {\n\t\t\tcontrollerVars.getSoundPool().play(controllerVars.getSoundID(), ...
[ "0.83235884", "0.81556326", "0.8148567", "0.8113563", "0.7984178", "0.79256266", "0.7917265", "0.78503263", "0.7840744", "0.7820898", "0.7769528", "0.77254564", "0.7717483", "0.77147645", "0.77011305", "0.7650783", "0.76360875", "0.7615948", "0.75898665", "0.7584792", "0.7555...
0.0
-1
logger.info("sent msg :\r\n " + writeRequest.getMessage());
@Override public void messageSent(NextFilter nextFilter, IoSession session, WriteRequest writeRequest) throws Exception { nextFilter.messageSent(session, writeRequest); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void log(String msg) throws IOException {\n\t\t\n\t}", "void log(HandlerInput input, String message) {\n System.out.printf(\"[%s] [%s] : %s]\\n\",\n input.getRequestEnvelope().getRequest().getRequestId().toString(),\n new Date(),\n message);...
[ "0.6396673", "0.63775", "0.6369656", "0.63375175", "0.63193905", "0.62893116", "0.6284978", "0.6284978", "0.6284978", "0.62707305", "0.6194711", "0.61870486", "0.61469144", "0.6127196", "0.6100903", "0.607817", "0.60744137", "0.6052935", "0.6032985", "0.60146105", "0.6005665"...
0.0
-1
TODO: Warning this method won't work in the case the id fields are not set
@Override public boolean equals(Object object) { if (!(object instanceof Estadio)) { return false; } Estadio other = (Estadio) object; if ((this.codEstadio == null && other.codEstadio != null) || (this.codEstadio != null && !this.codEstadio.equals(other.codEstadio))) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setId(Integer id) { this.id = id; }", "private Integer getId() { return this.id; }", "public void setId(int id){ this.id = id; }", "public void setId(Long id) {this.id = id;}", "public void setId(Long id) {this.id = id;}", "public void setID(String idIn) {this.id = idIn;}", "public void se...
[ "0.6897049", "0.6839498", "0.67057544", "0.66417086", "0.66417086", "0.6592169", "0.6579292", "0.6579292", "0.6575263", "0.6575263", "0.6575263", "0.6575263", "0.6575263", "0.6575263", "0.656245", "0.656245", "0.65447694", "0.65251684", "0.6516205", "0.6487982", "0.6477638", ...
0.0
-1
Delete method get column pointer from getRow() and delete the value of that column
public void deleteSelectRecord(User selectUser) { Connection con; try { con = ClassSQL.getConnect(); Statement stmt = con.createStatement(); String sql = Deletestmt(selectUser.getmNum()); // System.out.println(sql); //for testing purposes ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public native void deleteRow(int row) /*-{\n\t\tvar jso = this.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()();\n\t\tjso.deleteRow(row);\n }-*/;", "private void delete(ByteBuffer rowKey,\n Clustering<?> clustering,\n Cell<?> cell,\n ...
[ "0.6940106", "0.67426807", "0.6735865", "0.6615396", "0.6569558", "0.6459916", "0.64434016", "0.64058656", "0.63944644", "0.6375773", "0.6353345", "0.6352597", "0.6325254", "0.629632", "0.6271769", "0.6265366", "0.6205165", "0.62039953", "0.61995023", "0.6166832", "0.6158091"...
0.0
-1
Search data will use data in Search field to Select for data according from db
private void Searchdata() { Connection con; String searchby; String sortby; String keyword; searchby = (String)cboSearchby.getSelectedItem(); sortby = (String)cboSortby.getSelectedItem(); keyword = txfSearch.getText(); try { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void search() {\n int userSelected = selectFromList(crudParamOptions);\n switch (userSelected){\n case 1:\n searchFirstName();\n break;\n case 2:\n searchLastName();\n break;\n case 3:\n ...
[ "0.71918553", "0.68413895", "0.682011", "0.6707216", "0.6623851", "0.6614234", "0.66074985", "0.6554763", "0.6547657", "0.65304", "0.6428994", "0.6426049", "0.63850486", "0.635027", "0.63370126", "0.6331882", "0.6251683", "0.6245596", "0.6222158", "0.6210699", "0.61745054", ...
0.7071646
1
close this and open parent
private void Exit() { this.dispose(); app.setVisible(true); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void doClose() {\n\t if (parent==null)\n\t System.exit(0);\n\t else {\n setVisible(false);\n dispose();\n }\n\t}", "private void close(){\n\t\tparent.setEnabled(true);\n\t\tparent.requestFocus();\n\t\tdispose();\n\t}", "protected void closeThis() {\n\t\tthis.se...
[ "0.6985309", "0.6850294", "0.67963", "0.65537685", "0.6493575", "0.6419765", "0.64106256", "0.6380355", "0.63661903", "0.63534313", "0.63261753", "0.63261753", "0.63258857", "0.6301395", "0.62700754", "0.6262827", "0.6242786", "0.6242786", "0.62424266", "0.62211204", "0.62211...
0.0
-1
Creates a stack of 10 patients with varying priority and pushes them into a stack in the order they entered the hospital before sorting them
private static ArrayStack stackOfPatients() { Patient p0 = new Patient("Jerry Smith", 3); Patient p1 = new Patient("Morty Smith", 9); Patient p2 = new Patient("Saint Petes", 1); Patient p3 = new Patient("Anner Bananer", 1); Patient p4 = new Patient("Bruce Wayne", 4); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args)\n {\n Stack<Integer> s = new Stack<>();\n \n Random generate = new Random();\n \n for (int i = 0; i < 20; i++) // add values to s\n {\n s.push(generate.nextInt(50));\n }\n\n System.out.println(StackS...
[ "0.62095994", "0.58420205", "0.5696375", "0.56925267", "0.5685335", "0.5652627", "0.5612228", "0.56011987", "0.5579088", "0.5537825", "0.54992306", "0.54923505", "0.54335105", "0.53399366", "0.5339278", "0.52783585", "0.5269021", "0.52678615", "0.5258089", "0.5209305", "0.520...
0.6963026
0
Creates a linked list of beds and assigns the bed a location in the hospital
private static LinkedList<Bed> listOfBeds() { Bed b1 = new Bed("Bed 1", "Ward 3"); Bed b2 = new Bed("Bed 2", "Ward 2"); Bed b3 = new Bed("Bed 3", "Ward 1"); Bed b4 = new Bed("Bed 4", "ICU"); Bed b5 = new Bed("Bed 5", "ER"); LinkedList<Bed> bedList = new LinkedList...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void create_building(ArrayList bulding){\n House house = new House(Adress.RUE_DE_LA_PAIX);\n System.out.println(\"Vous venez de créer une maison\");\n bulding.add(house);\n }", "public List<Bed> solvedBeds() {\n // TODO: Fix me.\n return bed;\n }", ...
[ "0.634415", "0.61630017", "0.5898951", "0.5549866", "0.5515731", "0.5476512", "0.5423464", "0.534598", "0.52696973", "0.5260453", "0.5248818", "0.5245614", "0.52427816", "0.5197658", "0.5195115", "0.51810056", "0.5171892", "0.51169723", "0.50951385", "0.5073208", "0.5055405",...
0.7060954
0
Creates a Linked Queue of casual employees on duty and inserts them into a queue
private static LinkedQueue<CasualEmployee> queueOfCasual() { CasualEmployee c1 = new CasualEmployee("Tim", true); CasualEmployee c2 = new CasualEmployee("Eric", true); CasualEmployee c3 = new CasualEmployee("Dr Brule", true); LinkedQueue<CasualEmployee> casualQueue; casual...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void enqueue(E e) {\n\t\tNode node = new Node();\n\t\tnode.element = e;\n\t\tnode.next = null;\n\t\t\n\t\tif (last != null)\n\t\t\tlast.next = node;\n\t\telse\n\t\t\tfirst = node;\n\t\tlast = node;\n\t\t\n\t}", "public void enqueue( MyTreeNode<T> treeNode ) {\n\t\tQueueNode newNode = new Queu...
[ "0.57789415", "0.57734674", "0.57726467", "0.5721846", "0.5710203", "0.56968546", "0.5656832", "0.55952054", "0.5586019", "0.55771196", "0.55734265", "0.5563154", "0.5560579", "0.55484873", "0.55416256", "0.55395055", "0.55394727", "0.5538054", "0.5519976", "0.55160034", "0.5...
0.7604982
0
Zusammenfassen der Einstellungen und schreiben in die Datenbank
public void onWritePersistent(View view) { if(view != null) { // Create and populate the properites ApplikationEinstellungen applikationEinstellungen = new ApplikationEinstellungen(getApplicationContext()); ArrayList<String> zeiten = new ArrayList<>(); zeiten.add(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Data() {\n initComponents();\n koneksi_db();\n tampil_data();\n }", "public void steuern() {\n\t\teinlesenUndInitialisieren();\n\t\tausgabe();\n\t}", "public void trenneVerbindung();", "@Override\n public void inizializza() {\n\n super.inizializza();\n...
[ "0.6883984", "0.67601603", "0.6747022", "0.669013", "0.6576804", "0.65303826", "0.6400503", "0.6395176", "0.6386332", "0.6380618", "0.6380618", "0.6380618", "0.6380618", "0.6380618", "0.6380618", "0.636853", "0.63662875", "0.6343627", "0.63369197", "0.63256276", "0.6313038", ...
0.0
-1
Users cannot naturally specify an optional type in YAML format. This override allows users to declare a nondefault namespace for the Ingress object.
public IngressContactPointProvider(Node node, String serviceName, String ingressName, String namespace) { this(node, serviceName, ingressName, Optional.of(namespace)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Ingress() {\n }", "public interface IDevopsIngressService {\n\n void createIngress(String ingressYaml, String name, String namespace);\n\n void deleteIngress(String name, String namespace);\n}", "@HTTP(\n method = \"PUT\",\n path = \"/apis/config.openshift.io/v1/ingresses/{name}\",\n h...
[ "0.5483861", "0.4745404", "0.47161415", "0.4649803", "0.46257496", "0.46086556", "0.4604977", "0.45961198", "0.45759293", "0.45536032", "0.45316738", "0.4529005", "0.45157808", "0.45157808", "0.45048714", "0.44616798", "0.44521707", "0.44508094", "0.439624", "0.43869388", "0....
0.49078643
1
/ access modifiers changed from: protected / renamed from: b
public void mo18880b() { Class<?> cls; if (this.f6352f != null) { cls = this.f6352f.getClass(); } else { cls = this.f6353g; } this.f6354h = C2140au.m5787a(this.f6351e, cls, this.f6353g, this.f6355i); this.f6349a = this.f6354h.mo18697a((Scriptable) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void func_104112_b() {\n \n }", "@Override\n public void b() {\n }", "@Override\n\tpublic void b() {\n\n\t}", "public abstract void mo70713b();", "@Override\n protected void prot() {\n }", "protected b(int mb) {\n/* 87 */ this.b = mb;\n/* */ }", "@Ov...
[ "0.7265736", "0.7075669", "0.6953705", "0.6844136", "0.68171227", "0.6797052", "0.6787405", "0.6787405", "0.6724562", "0.6686567", "0.6653214", "0.6634125", "0.6575341", "0.65463716", "0.653766", "0.6515596", "0.6515596", "0.6452365", "0.64499015", "0.64412", "0.64150465", ...
0.0
-1
/ renamed from: a
public Object mo18879a() { return this.f6352f; }
{ "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: a
public static boolean m6087a(Object obj, Class<?> cls) { return m6089b(obj, cls) < 99; }
{ "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
static int m6089b(Object obj, Class<?> cls) { int a = m6083a(obj); switch (a) { case 0: if (cls == ScriptRuntime.f6505l || cls == ScriptRuntime.f6503j) { return 1; } case 1: if (!cls.isPrimitive()) { ...
{ "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: a
private static int m6082a(Class<?> cls) { if (cls == Double.TYPE) { return 1; } if (cls == Float.TYPE) { return 2; } if (cls == Long.TYPE) { return 3; } if (cls == Integer.TYPE) { return 4; } if (cls ...
{ "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: a
private static int m6083a(Object obj) { if (obj == null) { return 1; } if (obj == Undefined.f6689a) { return 0; } if (obj instanceof CharSequence) { return 4; } if (obj instanceof Number) { return 3; } ...
{ "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: a
static Object m6085a(Class<?> cls, Object obj) { if (obj != null && obj.getClass() == cls) { return obj; } switch (m6083a(obj)) { case 0: if (cls == ScriptRuntime.f6505l || cls == ScriptRuntime.f6503j) { return "undefined"; ...
{ "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: a
protected static Object m6086a(Class<?> cls, ScriptableObject dsVar) { InterfaceAdapter akVar; Object a = Kit.m5808a(f6346b, (Object) cls); Object associatedValue = dsVar.getAssociatedValue(a); if (associatedValue != null) { return associatedValue; } Context k...
{ "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
private static Object m6090b(Class<?> cls, Object obj) { double d = 0.0d; Class<?> cls2 = obj.getClass(); if (cls == Character.TYPE || cls == ScriptRuntime.f6496c) { if (cls2 == ScriptRuntime.f6496c) { return obj; } return Character.valueOf((ch...
{ "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: b
private static double m6088b(Object obj) { Method method = null; Object obj2 = obj; while (!(obj2 instanceof Number)) { if (obj2 instanceof String) { return ScriptRuntime.m6309a((String) obj2); } if (!(obj2 instanceof Scriptable)) { ...
{ "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: a
private static long m6084a(Object obj, Class<?> cls, double d, double d2) { double ceil; double b = m6088b(obj); if (Double.isInfinite(b) || Double.isNaN(b)) { m6091c(ScriptRuntime.m6436d(obj), cls); } if (b > 0.0d) { ceil = Math.floor(b); } else {...
{ "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: c
private static void m6091c(Object obj, Class<?> cls) { throw Context.m6756a("msg.conversion.not.allowed", (Object) String.valueOf(obj), (Object) C2140au.m5785a(cls)); }
{ "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
1, "Human Resources", manager_1, dept1Employees
public Department(int departmentID, String departmentName, Manager departmentManager, ArrayList<Employee> listOfEmployees1) { this.departmentID = departmentID; this.departmentName = departmentName; this.departmentManager = departmentManager; this.listOfEmployees = listOfEmployees1; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\nEmployee emp = new Employee(1,\"Pankaj\",\"CEO\");\nEmployee emp1 = new Employee(2,\"AAAA\",\"CTO\");\n\t\tArrayList<Employee> employees = new ArrayList<Employee>();\n\t\t\n\t\temployees.add(emp1);\n\t\temployees.add(emp);\n\t\temployees.add(new Employee(3,\"sdfd\",\"hr\")...
[ "0.63353574", "0.6327358", "0.61405647", "0.61194247", "0.5991262", "0.57682395", "0.56091094", "0.55949163", "0.5581586", "0.55559576", "0.55462307", "0.5538364", "0.54832613", "0.54781544", "0.5462365", "0.5462141", "0.5440012", "0.5437302", "0.5435418", "0.5420553", "0.539...
0.5508028
12
Given an array of intervals where intervals[i] = [starti, endi], merge all overlapping intervals, and return an array of the nonoverlapping intervals that cover all the intervals in the input. Example 1: Input: intervals = [[1,3],[2,6],[8,10],[15,18]] Output: [[1,6],[8,10],[15,18]] Explanation: Since intervals [1,3] an...
public static int[][] merge(int[][] intervals) { //Runtime: 5 ms, faster than 95.11% of Java online submissions for Merge Intervals. //Memory Usage: 41.8 MB, less than 39.70% of Java online submissions for Merge Intervals. if (intervals.length <= 0) return intervals; Arrays.sort(interva...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int[][] merge(int[][] intervals) {\n Arrays.sort(intervals, new Comparator<int[]>() {\n @Override\n public int compare(int[] arr1, int[] arr2) {\n if (arr1[0] == arr2[0]) {\n return 0;\n }\n return arr1[0] < arr2[0] ? -1 : 1;\n }\n });\n List<int[]> ans ...
[ "0.8236036", "0.737395", "0.7328234", "0.70402646", "0.6985984", "0.6977622", "0.6909851", "0.6896205", "0.6684476", "0.66673803", "0.6638057", "0.6470285", "0.6469528", "0.6392692", "0.63627136", "0.631212", "0.6220329", "0.61828935", "0.60445064", "0.6025827", "0.5934553", ...
0.7264474
3
PUnsubscrib = Pattern unSubscribe
@Override public void onPUnsubscribe(String pattern, int subscribedChannels) { log.debug("====== onPUnsubscribe(): pattern = {}, subscribedChannels = {}", pattern, subscribedChannels); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void unsubscribe(){}", "void unsubscribe();", "private void unsubscribe() {\n subscriber=null;\n }", "void unsubscribe(Subscription subscription);", "@Override\n\tpublic void onPUnsubscribe(String arg0, int arg1) {\n\t\t\n\t}", "public void onUnsubscribe() {\n\n }", "@Override\n\tpublic vo...
[ "0.79262006", "0.78445023", "0.75825304", "0.75645113", "0.73034024", "0.723462", "0.7145366", "0.71119654", "0.70661926", "0.70404476", "0.692109", "0.68892455", "0.6847124", "0.68316376", "0.68132454", "0.6779553", "0.66713613", "0.6587374", "0.6569751", "0.65057766", "0.63...
0.72549474
5
PUnsubscrib = Pattern unSubscribe
@Override public void onPSubscribe(String pattern, int subscribedChannels) { super.onPSubscribe(pattern, subscribedChannels); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void unsubscribe(){}", "void unsubscribe();", "private void unsubscribe() {\n subscriber=null;\n }", "void unsubscribe(Subscription subscription);", "@Override\n\tpublic void onPUnsubscribe(String arg0, int arg1) {\n\t\t\n\t}", "@Override\n\t\t\tpublic void onPUnsubscribe(String pattern, int su...
[ "0.7926935", "0.7845233", "0.75838023", "0.7565081", "0.730368", "0.7254182", "0.7235544", "0.7146433", "0.7113041", "0.7066816", "0.7040451", "0.69216865", "0.6889738", "0.6848421", "0.68319035", "0.68140364", "0.6779944", "0.6672216", "0.6588548", "0.6571154", "0.65068406",...
0.0
-1
TODO Autogenerated method stub
@Override public String getNamespace() { return InfInnerMsg.class.getName(); }
{ "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 List getUnreadMsgList(String userId, QueryFilter queryFilter) { Map<String,Object> params = new HashMap<String, Object>(); params.put("userId", userId); return this.getBySqlKey("getUnreadMsgList", params,queryFilter.getPage()); }
{ "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
Given a string s and a nonempty string p, find all the start indices of p's anagrams in s. Strings consists of lowercase English letters only and the length of both strings s and p will not be larger than 20,100. The order of output does not matter. Example 1: Input: s: "cbaebabacd" p: "abc" Output: [0, 6] Explanation:...
public List<Integer> findAnagrams(String s, String p) { List<Integer> ans = new ArrayList<>(); if(s == null || "".equals(s) || p == null || "".equals(p) || p.length() > s.length()) return ans; // use map to track chars in p Map<Character, Integer> map = new HashMap<>(); for (int ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static List<Integer> findAnagrams(String s, String p) {\n int ns = s.length(), np = p.length();\n if (ns < np) return new ArrayList<>();\n\n int [] pCount = new int[26];\n int [] sCount = new int[26];\n // build reference array using string p\n for (char ch : p.toC...
[ "0.85141015", "0.8293296", "0.76312834", "0.7076127", "0.6924591", "0.6738279", "0.67020935", "0.6579586", "0.6572929", "0.6392969", "0.63634187", "0.6346383", "0.63000387", "0.6106145", "0.59465796", "0.59051955", "0.5750358", "0.56862724", "0.5664409", "0.56407934", "0.5618...
0.77789694
2
Start typing your Java solution below DO NOT write main() function
public TreeNode sortedListToBST(ListNode head) { if (head == null) return null; ListNode preP = null; ListNode p = head; ListNode p2 = head; while (p2 != null && p2.next != null) { preP = p; p = p.next; p2 = p2.next.next; } ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main() {\n \n }", "public static void main(String[] args) {\n\n Solution2.solution();\n }", "public static void main(String[] args) {\n // write your code here - this is called comment and it always starts with double slash\n // and comlier will ignore this ...
[ "0.708473", "0.70149416", "0.7005105", "0.6863306", "0.6836085", "0.6820204", "0.68135685", "0.6797073", "0.678379", "0.6755512", "0.6755512", "0.6755512", "0.6755512", "0.6755512", "0.6755512", "0.67430377", "0.6730029", "0.67234117", "0.6722889", "0.6699645", "0.66878253", ...
0.0
-1
The current state of the run.
public void setState(String state) { this.state = state; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ExecutionState getCurrentExecutionState() {\n\t\treturn currentExecutionState;\n\t}", "public String getCurrentState() {\n\t\treturn currentState;\n\t}", "public int getState()\r\n\t{\r\n\t\treturn currentstate;\r\n\t}", "public S getCurrentState();", "public int getCurrentState() {\n return mySt...
[ "0.7659221", "0.7528995", "0.72839963", "0.7240588", "0.72296005", "0.7229599", "0.71921754", "0.71921754", "0.718765", "0.7163739", "0.7163739", "0.7141082", "0.7140648", "0.71084917", "0.7106651", "0.70945734", "0.7072249", "0.7072249", "0.70437205", "0.7037785", "0.7037016...
0.0
-1
The current state of the run.
public String getState() { return this.state; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ExecutionState getCurrentExecutionState() {\n\t\treturn currentExecutionState;\n\t}", "public String getCurrentState() {\n\t\treturn currentState;\n\t}", "public int getState()\r\n\t{\r\n\t\treturn currentstate;\r\n\t}", "public S getCurrentState();", "public int getCurrentState() {\n return mySt...
[ "0.7659221", "0.7528995", "0.72839963", "0.7240588", "0.72296005", "0.7229599", "0.71921754", "0.71921754", "0.718765", "0.7163739", "0.7163739", "0.7141082", "0.7140648", "0.71084917", "0.7106651", "0.70945734", "0.7072249", "0.7072249", "0.70437205", "0.7037785", "0.7037016...
0.0
-1
The current state of the run.
public CanaryRunStatus withState(String state) { setState(state); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ExecutionState getCurrentExecutionState() {\n\t\treturn currentExecutionState;\n\t}", "public String getCurrentState() {\n\t\treturn currentState;\n\t}", "public int getState()\r\n\t{\r\n\t\treturn currentstate;\r\n\t}", "public S getCurrentState();", "public int getCurrentState() {\n return mySt...
[ "0.7658354", "0.7529957", "0.72864234", "0.72424716", "0.72313756", "0.72311056", "0.71942466", "0.71942466", "0.71893936", "0.7165015", "0.7165015", "0.7142581", "0.7141438", "0.71093595", "0.71077394", "0.70924735", "0.7074075", "0.7074075", "0.704479", "0.7039571", "0.7039...
0.0
-1
The current state of the run.
public CanaryRunStatus withState(CanaryRunState state) { this.state = state.toString(); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ExecutionState getCurrentExecutionState() {\n\t\treturn currentExecutionState;\n\t}", "public String getCurrentState() {\n\t\treturn currentState;\n\t}", "public int getState()\r\n\t{\r\n\t\treturn currentstate;\r\n\t}", "public S getCurrentState();", "public int getCurrentState() {\n return mySt...
[ "0.7659221", "0.7528995", "0.72839963", "0.7240588", "0.72296005", "0.7229599", "0.71921754", "0.71921754", "0.718765", "0.7163739", "0.7163739", "0.7141082", "0.7140648", "0.71084917", "0.7106651", "0.70945734", "0.7072249", "0.7072249", "0.70437205", "0.7037785", "0.7037016...
0.0
-1
If run of the canary failed, this field contains the reason for the error.
public void setStateReason(String stateReason) { this.stateReason = stateReason; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getFailureReason() {\n return this.failureReason;\n }", "public String getFailureReason() {\n return this.failureReason;\n }", "public Throwable getReason() { return err; }", "public int failed() {\n return this.failed;\n }", "public String getFailedRemark() {\r\...
[ "0.7091393", "0.7091393", "0.66118604", "0.65497935", "0.6479944", "0.63662916", "0.63583994", "0.63452834", "0.633421", "0.62598675", "0.62307096", "0.62068605", "0.6120499", "0.60402125", "0.6030832", "0.6027501", "0.59611404", "0.5959054", "0.5950226", "0.5939591", "0.5895...
0.0
-1
If run of the canary failed, this field contains the reason for the error.
public String getStateReason() { return this.stateReason; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getFailureReason() {\n return this.failureReason;\n }", "public String getFailureReason() {\n return this.failureReason;\n }", "public Throwable getReason() { return err; }", "public int failed() {\n return this.failed;\n }", "public String getFailedRemark() {\r\...
[ "0.709104", "0.709104", "0.66127753", "0.654964", "0.6480257", "0.6365709", "0.6359918", "0.63470453", "0.63354623", "0.6261161", "0.6230585", "0.62085193", "0.61206275", "0.6041374", "0.6030752", "0.6029081", "0.5962125", "0.5958636", "0.5949829", "0.59407663", "0.5896691", ...
0.0
-1
If run of the canary failed, this field contains the reason for the error.
public CanaryRunStatus withStateReason(String stateReason) { setStateReason(stateReason); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getFailureReason() {\n return this.failureReason;\n }", "public String getFailureReason() {\n return this.failureReason;\n }", "public Throwable getReason() { return err; }", "public int failed() {\n return this.failed;\n }", "public String getFailedRemark() {\r\...
[ "0.7089927", "0.7089927", "0.6611714", "0.65501153", "0.64783657", "0.63650584", "0.6359494", "0.63465375", "0.63336354", "0.62602186", "0.6229832", "0.6207291", "0.6121275", "0.60401773", "0.6032159", "0.602737", "0.59621876", "0.5960344", "0.5950257", "0.5939339", "0.589611...
0.0
-1
If this value is CANARY_FAILURE, an exception occurred in the canary code. If this value is EXECUTION_FAILURE, an exception occurred in CloudWatch Synthetics.
public void setStateReasonCode(String stateReasonCode) { this.stateReasonCode = stateReasonCode; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getFailureCode() {\n return this.failureCode;\n }", "private ErrorCode getErrorCodeFromHystrixFailure(FailureType failureType) {\n switch (failureType) {\n case TIMEOUT:\n return ErrorCode.TIMEOUT_ERROR;\n case SHORTCIRCUIT:\n ret...
[ "0.6316154", "0.6075494", "0.5950665", "0.589796", "0.589796", "0.58863413", "0.5877686", "0.58080214", "0.5749763", "0.57475764", "0.56570095", "0.5621877", "0.5614455", "0.56062293", "0.55849636", "0.5563218", "0.55280936", "0.5519749", "0.5514857", "0.55035627", "0.5503562...
0.0
-1
If this value is CANARY_FAILURE, an exception occurred in the canary code. If this value is EXECUTION_FAILURE, an exception occurred in CloudWatch Synthetics.
public String getStateReasonCode() { return this.stateReasonCode; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getFailureCode() {\n return this.failureCode;\n }", "private ErrorCode getErrorCodeFromHystrixFailure(FailureType failureType) {\n switch (failureType) {\n case TIMEOUT:\n return ErrorCode.TIMEOUT_ERROR;\n case SHORTCIRCUIT:\n ret...
[ "0.6317342", "0.60770243", "0.5951622", "0.5898107", "0.5898107", "0.5886225", "0.5877191", "0.5807641", "0.5749607", "0.5746594", "0.56579465", "0.5622087", "0.5613637", "0.56064206", "0.55857676", "0.55641997", "0.55276555", "0.5520718", "0.5515554", "0.55044276", "0.550442...
0.0
-1
If this value is CANARY_FAILURE, an exception occurred in the canary code. If this value is EXECUTION_FAILURE, an exception occurred in CloudWatch Synthetics.
public CanaryRunStatus withStateReasonCode(String stateReasonCode) { setStateReasonCode(stateReasonCode); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getFailureCode() {\n return this.failureCode;\n }", "private ErrorCode getErrorCodeFromHystrixFailure(FailureType failureType) {\n switch (failureType) {\n case TIMEOUT:\n return ErrorCode.TIMEOUT_ERROR;\n case SHORTCIRCUIT:\n ret...
[ "0.63158506", "0.60759753", "0.5950535", "0.58969915", "0.58969915", "0.58843756", "0.5877651", "0.5807976", "0.574959", "0.57444274", "0.5655649", "0.5621646", "0.5613771", "0.5605476", "0.55847794", "0.556311", "0.55291504", "0.5519142", "0.5514126", "0.550356", "0.550356",...
0.0
-1
If this value is CANARY_FAILURE, an exception occurred in the canary code. If this value is EXECUTION_FAILURE, an exception occurred in CloudWatch Synthetics.
public CanaryRunStatus withStateReasonCode(CanaryRunStateReasonCode stateReasonCode) { this.stateReasonCode = stateReasonCode.toString(); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getFailureCode() {\n return this.failureCode;\n }", "private ErrorCode getErrorCodeFromHystrixFailure(FailureType failureType) {\n switch (failureType) {\n case TIMEOUT:\n return ErrorCode.TIMEOUT_ERROR;\n case SHORTCIRCUIT:\n ret...
[ "0.63182443", "0.6077589", "0.59506935", "0.5900359", "0.5900359", "0.5887508", "0.5877919", "0.58102256", "0.5752061", "0.5748186", "0.56560755", "0.562398", "0.5613143", "0.560865", "0.55868423", "0.55638814", "0.5530026", "0.55191064", "0.55141205", "0.55045635", "0.550456...
0.0
-1
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
@Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getState() != null) sb.append("State: ").append(getState()).append(","); if (getStateReason() != null) sb.append("StateReason: ").append(getStateReason()).append("...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String toString() { return stringify(this, true); }", "@Override\n public String toString() {\n return new JSONSerializer().serialize(this);\n }", "public String toString() {\n\t\treturn this.toJSON().toString();\n\t}", "public String toString() {\n\t\treturn this.toJSON().toString();\n\t...
[ "0.8100615", "0.8075129", "0.80493397", "0.80493397", "0.8026168", "0.7975271", "0.7939094", "0.79294294", "0.79116815", "0.78960097", "0.7784765", "0.77844536", "0.77691835", "0.77683777", "0.77683777", "0.77683777", "0.7757559", "0.77284676", "0.7723956", "0.76756173", "0.7...
0.0
-1
Interface of an item.
public interface Item { /** * Use the item on the player. If it's gold, it is added to his inventory. Else, it directly modify the player stats. * @param character - the player ( a monster cannot use an item) who's using an item * @return the player with his new stats due to the item */ public Character isUse...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface Item {\n}", "public interface Item {\n \n /**\n * Returns the name of the item\n * @return \n */\n public String getName();\n \n /**\n * Returns the price of the item\n * @return \n */\n public double getPrice();\n \n /**\n * Returns the # of t...
[ "0.8022842", "0.78389287", "0.73625046", "0.73248595", "0.73165125", "0.73135215", "0.7178897", "0.71539605", "0.71420693", "0.7138587", "0.71044534", "0.7060758", "0.7026852", "0.6936974", "0.6842367", "0.6840763", "0.6833173", "0.6816942", "0.68150586", "0.6792494", "0.6774...
0.6502091
47
Use the item on the player. If it's gold, it is added to his inventory. Else, it directly modify the player stats.
public Character isUsedBy(Character character);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface Item {\n\t/**\n\t * Use the item on the player. If it's gold, it is added to his inventory. Else, it directly modify the player stats.\n\t * @param character - the player ( a monster cannot use an item) who's using an item\n\t * @return the player with his new stats due to the item\n\t */\n\tpubli...
[ "0.7488502", "0.7416211", "0.73416346", "0.7328638", "0.7188941", "0.7169575", "0.7047719", "0.70466596", "0.69777036", "0.6966516", "0.69495094", "0.69359976", "0.6935365", "0.68998414", "0.6876393", "0.6808718", "0.67894864", "0.67869925", "0.6785582", "0.67613614", "0.6723...
0.0
-1
load new java key store with type PKCS12
@Override public void run() throws Exception { InputStream in = getClass().getResourceAsStream("/keystore.p12"); char[] password = "password".toCharArray(); KeyStore keystore = new JavaKeyStore("PKCS12", in, password); System.out.println("Loaded keystore: " + keystore); // create walletapi with l...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public KeyStore createPKCS12KeyStore(String alias, char[] password) {\n try {\r\n KeyStore keyStore = KeyStore.getInstance(CertificateHelper.TOLVEN_CREDENTIAL_FORMAT_PKCS12);\r\n try {\r\n keyStore.load(null, password);\r\n } catch (IOExcep...
[ "0.6492084", "0.6210159", "0.60817724", "0.6064591", "0.59495026", "0.5904438", "0.5881924", "0.58552986", "0.5841382", "0.57842153", "0.5782277", "0.5734569", "0.56391203", "0.5593054", "0.5570046", "0.5508655", "0.54962456", "0.5453428", "0.54419947", "0.53832036", "0.53819...
0.53749603
21
Copy files from srcHost to dstHost. Files are copied using overthere. So from file to file or from directory to directory. If copySpec's length is even then files/directories are copied pair wise. If copySpec's lenght is odd then everything is copied into the last entry.
public static void copyFiles(OverthereConnection srcHost, OverthereConnection dstHost, List<String> copySpec) { if (copySpec.isEmpty()) { return; } if (copySpec.size() % 2 == 0) { Iterator<String> toCopy = copySpec.iterator(); while (toCopy.hasNext()) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void copy(File src, File dst) throws IOException \r\n {\r\n InputStream in = new FileInputStream(src);\r\n OutputStream out = new FileOutputStream(dst);\r\n \r\n // Transfer bytes from in to out\r\n byte[] buf = new byte[1024];\r\n int len;\r\n while ((len = ...
[ "0.58277535", "0.5626154", "0.556808", "0.5517612", "0.5514621", "0.54410166", "0.54332197", "0.54159796", "0.54029477", "0.5398505", "0.5351462", "0.5336752", "0.5320791", "0.5293234", "0.5261527", "0.5249008", "0.52031255", "0.51740026", "0.51728714", "0.51656693", "0.51644...
0.80843234
0
private static final int NUMBER_OF_Questions = 100;
public static QuestionRepository getInstance() { if (sCrimeRepository == null) sCrimeRepository = new QuestionRepository(); return sCrimeRepository; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getNumberOfQuestions();", "int getNumberOfAllQuestions();", "Integer getNumQuestions();", "public int getNumQuestions() {\n\t\treturn noOfQuestions;\n\t}", "@Test\r\n public void testTotalNumberOfQuestion() {\r\n Application.loadQuestions();\r\n assertEquals(Application.allQuestions.si...
[ "0.76129043", "0.738149", "0.71542245", "0.7075576", "0.69022655", "0.6767935", "0.67258924", "0.65235627", "0.65130544", "0.6444916", "0.64217913", "0.63442534", "0.6342908", "0.6308772", "0.62608135", "0.6237051", "0.6212477", "0.61665106", "0.6133222", "0.6118381", "0.6065...
0.0
-1
get some header on this page
public String getbyHeader(){ String byHed=driver.findElement(byHeader).getText(); return byHed; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "PageHeader getPageHeader();", "PageHeader getPageHeader();", "public abstract String header();", "public String getHeader();", "com.didiyun.base.v1.Header getHeader();", "protected String getPageHeader()\n {\n if (this.pageHeader == null) {\n String title = (this.privateLabel != null...
[ "0.8003351", "0.8003351", "0.72867024", "0.72385496", "0.71795005", "0.7083262", "0.7013182", "0.70061517", "0.6948951", "0.6945914", "0.68592644", "0.68431157", "0.68349636", "0.68349636", "0.67835116", "0.6764089", "0.6729794", "0.671776", "0.67116445", "0.6697583", "0.6647...
0.72777736
3
TODO Autogenerated method stub
public static void main(String[] args) { Template robert = new ConcreteAnswer("Robert"); robert.question(); }
{ "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
/If it's private, then can't be overrided, the output will "is ", and if protected, it's overrided, and the output is: How to implement the templateMethod? a. Google b. Eclipse c. Baidu Robert's answer is a
protected abstract String answer();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@DSComment(\"Private Method\")\n @DSBan(DSCat.PRIVATE_METHOD)\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 12:33:59.917 -0500\", hash_original_method = \"4F6254C867328A153FDD5BD23453E816\", hash_generated_method = \"627F9C594B5D3368AD9A21A5E...
[ "0.59853655", "0.57823515", "0.5697505", "0.56657916", "0.566248", "0.5651443", "0.55684245", "0.5557178", "0.5528724", "0.54474413", "0.54421794", "0.54209507", "0.54174364", "0.5415551", "0.5381019", "0.53654104", "0.53629714", "0.53362083", "0.5329778", "0.5312478", "0.529...
0.0
-1
e.g. "boundingBox":"27, 66, 72, 18"
public boolean isVertical() { return isVertical; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Rectangle getBoundingBox(Rectangle rect);", "public static String bboxVertices(){\n \treturn \"0.5 0.5 0.5 0.5 0.5 -0.5 0.5 -0.5 0.5 0.5 -0.5 -0.5 -0.5 0.5 0.5 -0.5 0.5 -0.5 -0.5 -0.5 0.5 -0.5 -0.5 -0.5\";\n }", "public void selectTargetScreenArea(String boundingBoxJson) {\n sysMsgTextView.setText...
[ "0.6607321", "0.654368", "0.5844298", "0.57970613", "0.57480323", "0.5745842", "0.570894", "0.56902856", "0.5656096", "0.55557305", "0.54483235", "0.54248315", "0.54196876", "0.5366177", "0.53474677", "0.53438973", "0.53289443", "0.5291094", "0.5278001", "0.52759135", "0.5258...
0.0
-1
erstellen eines neuen Hotels durch einen Hotelier
public void createHotel(String name, int numberSingleRooms,int numberDoubleRooms, double priceSingleRooms, double priceDoubleRooms, int category, UUID userID, int postalCode, String adress) { if(session instanceof Hotelier) { // nur erlaubt für Hoteliers Hotel hotel=new Hotel(name, numberSingleRooms, number...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Bebawy_Hotels() \n\t{\n\t\tinitComponent();\n\t\tcreateEvent();\t\n\t}", "public void loadHotels();", "private void MembentukListHuruf(){\n for(int i = 0; i < Panjang; i ++){\n Huruf Hrf = new Huruf();\n Hrf.CurrHrf = Kata.charAt(i);\n if(!IsVertikal){\n ...
[ "0.6444392", "0.6228473", "0.6135727", "0.6123296", "0.5942239", "0.586353", "0.5845616", "0.5825098", "0.57534486", "0.57255507", "0.5671318", "0.5629062", "0.5606774", "0.5606774", "0.55877674", "0.55869246", "0.55864626", "0.5581327", "0.55484784", "0.55124897", "0.5495124...
0.0
-1
Anzahl aller erfassten Benutzer ausgeben
public int numberOfUsers() { int anzahlUser=userDAO.getUserList().size(); return anzahlUser; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getUserCount() {\n\t\t\treturn 7;\n\t\t}", "public int countUsers()\n {\n int nbUser = 0;\n pw.println(12);\n try\n {\n nbUser = Integer.parseInt(bis.readLine()) ;\n }\n catch (IOException e)\n {\n e.printStackTrace();\n ...
[ "0.71990144", "0.7197597", "0.70949113", "0.70949113", "0.70949113", "0.7034517", "0.6954908", "0.6831739", "0.68306243", "0.68306243", "0.6722964", "0.67213243", "0.67209697", "0.66760546", "0.6668104", "0.6638412", "0.66107684", "0.65871525", "0.6558827", "0.65526724", "0.6...
0.7237777
0
Anzahl aller auf der Seite registrierten Hotels
public int numberOfHotels() { int anzahlHotel=hotelDAO.getHotelList().size(); return anzahlHotel; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getHotelImageURLsCount() {\n return hotelImageURLs_.size();\n }", "public int getHotelImageURLsCount() {\n return hotelImageURLs_.size();\n }", "private int getNumberOfBoxesOfAllShips() {\r\n int count = 30;\r\n return count;\r\n }", "public int size()\n\t{\n\t...
[ "0.64480346", "0.6417992", "0.639704", "0.6322539", "0.63069475", "0.6194978", "0.61772877", "0.61701715", "0.61270285", "0.6126976", "0.6124516", "0.6114185", "0.6102628", "0.6102628", "0.6102628", "0.6102143", "0.60935307", "0.6060811", "0.6055681", "0.6022996", "0.6022996"...
0.76174873
0
durchschnittliche Bewertung eines Hotels berechnen
public double averageBewertungHotel(Hotel hotel) { ArrayList<Integer> bewertung = hotel.getBewertung(); double wert=0; for (int i=0;i<bewertung.size();i++) { wert+=bewertung.get(i); } wert=wert/bewertung.size(); return wert; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Bebawy_Hotels() \n\t{\n\t\tinitComponent();\n\t\tcreateEvent();\t\n\t}", "public void acheter(){\n\t\t\n\t\t// Achete un billet si il reste des place\n\t\ttry {\n\t\t\tthis.maBilleterie.vendre();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\tthis.status.put('B', System.current...
[ "0.6545447", "0.65380234", "0.6428275", "0.60749996", "0.5900806", "0.5900806", "0.5900429", "0.58999264", "0.58273774", "0.5814203", "0.5806509", "0.5784426", "0.57354236", "0.57300276", "0.56949687", "0.5671456", "0.5618838", "0.55585843", "0.55402446", "0.55300266", "0.552...
0.0
-1
Hotel mit der besten durchschnittlichen Bewertung finden
public Hotel bestHotel() { ArrayList<Hotel> hotels = hotelDAO.getHotelList(); Hotel bestHotel=hotels.get(0); for (int i=0; i<hotels.size();i++) { if(averageBewertungHotel(bestHotel)<averageBewertungHotel(hotels.get(i))) { bestHotel=hotels.get(i); } } return bestHotel;...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Hotel getHotel() {\n return hotel;\n }", "public Hotel getHotel() {\n return hotel;\n }", "@Override\n\tpublic HotelDetails findHotel(int id) {\n\t\treturn bookingDao.findHotel(id);\n\t}", "public Hotel getHotel(com.kcdataservices.partners.kcdebdmnlib_hva.businessobjects.hotel.v1.H...
[ "0.63926834", "0.63926834", "0.63028157", "0.6289006", "0.6180554", "0.6032226", "0.6032226", "0.5962237", "0.58173317", "0.5806779", "0.5729579", "0.5715514", "0.5706726", "0.56878775", "0.56503963", "0.56424254", "0.5621383", "0.5604878", "0.557697", "0.55684245", "0.556404...
0.60902864
5
Statistiken ausgeben zu Anzahl User, Anzahl Hotels, bestbewertetes Hotel, ...
public String getStatistics() { String statistics; statistics="Anzahl aller User: "+ numberOfUsers() + "\n" + "Anzahl aller Hotels: " + numberOfHotels() + "\n" + "Hotel mit der besten durchschnittlichen Bewertung: " + bestHotel().getName() + "\n"; return statistics; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int numberOfHotels() {\r\n \tint anzahlHotel=hotelDAO.getHotelList().size();\r\n \treturn anzahlHotel;\r\n }", "int getUsersCount();", "int getUsersCount();", "int getUsersCount();", "Integer loadUserCount();", "public int getUserCount() {\n\t\t\treturn 7;\n\t\t}", "int getNumberOfGuest...
[ "0.6285131", "0.6104648", "0.6104648", "0.6104648", "0.5982773", "0.58969945", "0.5789018", "0.57796645", "0.5745862", "0.57271975", "0.57271975", "0.5708882", "0.56906706", "0.5673699", "0.5658863", "0.5618279", "0.55857605", "0.55856365", "0.55720836", "0.55638367", "0.5534...
0.6124342
1
Created by wutingting on 2017/4/4.
public interface ProductService { // List<Product> getAllProduct(); List<Product> getProduct(Product product); Product getProductById(Integer id); int insertProduct(Product product); int insertSelectiveProduct(Product product); int deleteProduct(Integer id ); int updateProduct(Product ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "private stendhal() {\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r...
[ "0.6099414", "0.58636105", "0.57852554", "0.57498264", "0.57498264", "0.57197064", "0.5715283", "0.5645618", "0.5632104", "0.5618147", "0.558108", "0.55786806", "0.55507743", "0.5544278", "0.55441034", "0.5530521", "0.5529206", "0.5528195", "0.55149126", "0.55105907", "0.5488...
0.0
-1
Runtime: 14.22% Memory Usage: 5.10%
public int fourSumCount(int[] nums1, int[] nums2, int[] nums3, int[] nums4) { int sum = 0; HashMap<Integer, Integer> complementsSum34Count = new HashMap<>(); for (int num3 : nums3) { for (int num4 : nums4) { int sum34 = num3 + num4; if (!complementsS...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void testPerformance() {\n \t}", "long memoryUnused();", "long memoryUsed();", "@Override\n public int getCacheSize() {\n return 4 + 20 * 88;\n }", "int memSize() {\n return super.memSize() + 4 * 4; }", "@Override\n public long cost() {\n return 100;\...
[ "0.6648994", "0.6194218", "0.6186658", "0.57810473", "0.57767236", "0.57353646", "0.57106966", "0.5700459", "0.5685124", "0.56333095", "0.5621805", "0.56211144", "0.56199837", "0.56033826", "0.55849653", "0.55849653", "0.55593073", "0.5555074", "0.5552759", "0.55501133", "0.5...
0.0
-1
Look through a message and if it is a command, execute the corresponding command,
void interpretMessage(final Message message);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void processMessage()\n {\n \tif(messageContents.getMessage().containsCommand())\n {\n \tCommand command = new Command(messageContents);\n CommandProcessor commandProcessor = new CommandProcessor(joeBot, command);\n commandProcessor.processCommand();\n }\n ...
[ "0.72163826", "0.7076763", "0.68737626", "0.6861137", "0.68502486", "0.66788775", "0.6589672", "0.6550225", "0.6504789", "0.64251447", "0.6201296", "0.6195608", "0.6189396", "0.61429894", "0.612816", "0.61139", "0.6092084", "0.6088957", "0.6058201", "0.6036876", "0.60266966",...
0.57771873
42
TODO Autogenerated method stub Write a program that asks user to input int values: areaCode and localNumber. Using concatenation put together in this format and assign to String phoneNumber variable: (222)3334444 Write a print statement that displays (use phoneNumber variable ): Calling number (222)3334444
public static void main(String[] args) { Scanner scan = new Scanner (System.in); System.out.println("Enter your area code: "); int areaCode = scan.nextInt(); System.out.println("Enter local number: "); int localNumber = scan.nextInt(); //(617)-8202117 String phoneNumber = "(" ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Phone(String countryCode, String areaCode, String number) {\n this.countryCode = countryCode;\n this.areaCode = areaCode;\n this.number = number;\n }", "private String generatePhone() {\n\t\tString ret = \"\";\n\t\tString[] areaCode = { \"051\", \"055\", \"045\", \"043\", \"053\" }...
[ "0.655372", "0.6409532", "0.6089792", "0.59563893", "0.5938475", "0.5938475", "0.5938475", "0.5872449", "0.57603526", "0.57277405", "0.5712689", "0.564642", "0.5595578", "0.55476606", "0.55053073", "0.54992014", "0.5454945", "0.54464096", "0.539716", "0.53955436", "0.53594375...
0.7224175
0
for temporary assign use /methods begin must pass connectednode,tf will be initialized from the caller, see rosjava_tf TfViz
public LocalPlanner(final ConnectedNode node, TransformListener tf, VoxelGrid costmap_ros){ costmap_ros_=null; tf_=null; initialized_=false; this.node=node; //initialize the planner initialize(tf, costmap_ros); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "TermNode() {\n this.fac = new FacNode();\n this.term = null;\n this.selection = 1;\n }", "Graph(){\n\t\taddNode();\n\t\tcurrNode=myNodes.get(0);\n\t}", "ControllerNode localNode();", "public abstract void setNodes();", "private int Funcionar_salida_Ant_umbral_Color(float location, f...
[ "0.6076234", "0.5404497", "0.53489923", "0.53482884", "0.53161335", "0.5296546", "0.52792865", "0.52430654", "0.5232154", "0.5228563", "0.5222214", "0.5211406", "0.51980394", "0.51766026", "0.51743793", "0.5171904", "0.51526016", "0.5123901", "0.51153505", "0.5103179", "0.508...
0.5075072
24
implement the interface of nav_core::BaseLocalPlanner Class in original ROS
private void initialize(TransformListener tf, VoxelGrid costmap_ros){ if (!initialized_){ tf_ = tf; costmap_ros_ = costmap_ros; rot_stopped_velocity_ = 0.01; trans_stopped_velocity_ = 0.01; current_waypoint_ = 0; this.params=this.node.ge...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public LocalPlanner(final ConnectedNode node, TransformListener tf, VoxelGrid costmap_ros){\n costmap_ros_=null;\n tf_=null;\n initialized_=false;\n this.node=node;\n //initialize the planner\n initialize(tf, costmap_ros);\n }", "public LocalPlanner(RobotSessionGlobal...
[ "0.63355786", "0.6106111", "0.5841352", "0.5764596", "0.5684056", "0.5550394", "0.5530467", "0.54612374", "0.54241884", "0.5386421", "0.537393", "0.5362412", "0.5334008", "0.5314108", "0.531287", "0.529556", "0.52841854", "0.5252011", "0.5220166", "0.52182364", "0.52054787", ...
0.587281
2
/Agent me init done
void obstaclesCallback(final GridCells msg){ int num_obst = msg.getCells().size(); me.obstacle_lock_.lock(); try{ me.obstacle_points_.clear(); for (int i = 0; i < num_obst; i++) { PointStamped in=messageFactory.newFromType(PointStamped._TYPE); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void initializeAgent() {\n if (Math.random() < PROBABILITY_START_WITH_AGENT) {\n agent = new SugarscapeAgent();\n }\n }", "void initAgents() {\n Runtime rt = Runtime.instance();\n\n //Create a container to host the Default Agent\n Profile p = new ProfileIm...
[ "0.71205336", "0.7089769", "0.7074905", "0.70477265", "0.70402914", "0.70295167", "0.6983386", "0.69419914", "0.69419914", "0.6914221", "0.6880964", "0.6878168", "0.6862062", "0.6845311", "0.68235284", "0.6817102", "0.6807053", "0.6798561", "0.6790989", "0.678171", "0.6778045...
0.0
-1
implement interface for computeVelocityCommands
boolean computeVelocityCommands(Twist cmd_vel){ if(!initialized_){ this.node.getLog().error("This planner has not been initialized, please call initialize() before using this planner"); return false; } //TODO: Transform /* PoseStamped global_pose; Header h...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void calcVelocity()\n\t{}", "protected void computeTranslationVelocityCommand() { // (Solution)\n\t\tdouble translationError = targetRange - desiredFixationDistance; // (Solution)\n\t\tif (Math.abs(translationError) < translationErrorTolerance) // (Solution)\n\t\t\ttranslationVelocityCommand = 0.0; // ...
[ "0.75742996", "0.7247601", "0.6780516", "0.6680402", "0.6672668", "0.66551787", "0.6571946", "0.6542546", "0.645724", "0.6426518", "0.6413007", "0.6401355", "0.6388059", "0.6316587", "0.6309413", "0.6307609", "0.6295838", "0.6294157", "0.6216603", "0.62059695", "0.6180942", ...
0.7270333
1
slow down with the maximum possible acceleration... we should really use the frequency that we're running at to determine what is feasible but we'll use a tenth of a second to be consistent with the implementation of the local planner.
boolean stopWithAccLimits(PoseStamped global_pose, final PoseStamped robot_vel, Twist cmd_vel){ double vx = sign(robot_vel.getPose().getPosition().getX()) * Math.max(0.0, (Math.abs(robot_vel.getPose().getPosition().getX()) - me.acc_lim_x_ * me.simPeriod)); double vy = sign(robot_vel.getPose().getPositi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void speedup(){\n\t\tif(bossair.periodairinit > Framework.nanosecond){\n\t\t\t\tbossair.periodair-=Framework.nanosecond/18; \n\t\t\t\tbossair.xmoving-=0.03; \n\t\t}\n\t\t\t\n\t}", "public void faster() {\n myTimer.setDelay((int) (myTimer.getDelay() * SPEED_FACTOR));\n }", "public void f...
[ "0.6710238", "0.62597805", "0.61660326", "0.6068018", "0.6038875", "0.60111064", "0.5878049", "0.58734566", "0.5854223", "0.58489376", "0.576782", "0.574166", "0.5734957", "0.5689618", "0.56776375", "0.56742305", "0.5671587", "0.5654901", "0.5652803", "0.56117684", "0.5560783...
0.0
-1
Creates a GameMove with the given type, data, and playerCode.
public GameMove(int type, Object data, PlayerCode playerCode){ this.type = type; this.data = data; this.playerCode = playerCode; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void createGameCode(GameCode gameCode);", "public static void newGame(GameType t) {\n\t\ttype = t;\n\t}", "private void setupGame(@NotNull String data) {\n if (game == null) {\n throw new IllegalArgumentException(\"Tried to start game with a null reference to GameGraphics\");\n }\n ...
[ "0.6244813", "0.5271747", "0.5262438", "0.51854396", "0.51447535", "0.5142498", "0.5100289", "0.5078502", "0.50754553", "0.5071384", "0.50573754", "0.5036784", "0.4973052", "0.49711752", "0.49615914", "0.49269986", "0.48886454", "0.48837736", "0.48773", "0.48641953", "0.48400...
0.81241846
0
Gets the type of this GameMove.
public int getType(){ return this.type; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public java.lang.String getMOVE_TYPE() {\r\n return MOVE_TYPE;\r\n }", "public static GameType getGameType() {\n\t\treturn type;\n\t}", "public TurnType getType() {\n\t\treturn type;\n\t}", "public String getMovementType() {\n\t\treturn (String) get_Value(\"MovementType\");\n\t}", "public PuzzleT...
[ "0.70707554", "0.6904647", "0.6777184", "0.67754173", "0.66808224", "0.63184905", "0.62174165", "0.6166096", "0.6154459", "0.6150837", "0.6145124", "0.6127838", "0.597832", "0.58604825", "0.5857285", "0.58300954", "0.5820244", "0.5817545", "0.5798205", "0.57816267", "0.575349...
0.0
-1
Gets the data of this GameMove.
public Object getData(){ return this.data; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private PawnMoveInformation getMoveInformation() {\n\t\treturn this.info;\n\t}", "protected int getMove(){\r\n\t\treturn this.move;\r\n\t}", "public int getMove(){\n return this.move;\n }", "public RPGClass getData() {\n return classData;\n }", "public PlayerFunctionality getPlayerData(...
[ "0.6856174", "0.6242035", "0.6225405", "0.6183892", "0.61800814", "0.6134495", "0.6100013", "0.60589087", "0.60053426", "0.5997718", "0.59746534", "0.5945438", "0.5942798", "0.59013844", "0.58995056", "0.58790123", "0.5866962", "0.5848368", "0.5838159", "0.58175653", "0.58059...
0.5946017
11