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
Changes of the music.
void changeMusic(AudioTrack newSong);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void ChangeMusic(int musicnum, boolean looping);", "public static void updateMusic()\r\n\t{\r\n\t\tif ( Settings.isMusicOn() && !musicPlaying() )\r\n\t\t\tstartMusic();\r\n\t\telse if ( !Settings.isMusicOn() && musicPlaying() )\r\n\t\t\tstopMusic();\r\n\t}", "private void initialMusic(){\n\n }", "p...
[ "0.7594161", "0.7396028", "0.71736395", "0.7164838", "0.7095618", "0.68456805", "0.6709124", "0.6679372", "0.6665285", "0.66611457", "0.65932834", "0.6581357", "0.6573909", "0.65185386", "0.6476021", "0.64538103", "0.6453039", "0.64436084", "0.6427316", "0.63636947", "0.63622...
0.8251543
0
Stops the background music.
void stopMusic();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void stopBackgroundMusic()\n {\n background.stop();\n }", "public void stop() {\n\t\tmusic.stop();\n\t}", "public synchronized void stopBackgroundAbruptly(){\r\n if(currentLoop0) backgroundMusicLoop0.stopClip();\r\n else backgroundMusicLoop1.stopClip();\r\n }", "public vo...
[ "0.8934234", "0.84560084", "0.8173435", "0.80758685", "0.803423", "0.8015698", "0.79021436", "0.780486", "0.7594992", "0.75880474", "0.75536627", "0.75445944", "0.7543687", "0.74977005", "0.748639", "0.74824744", "0.7479627", "0.7387243", "0.737083", "0.7342745", "0.7329857",...
0.75817347
10
Sets the volume of music.
void setVolume(float volume);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setVolume(double volume)\n {\n mediaPlayer.setVolume(volume);\n }", "public void setVolume(float volume) {\n mediaPlayer.setVolume(volume, volume);\n }", "public abstract SoundPlayer setVolume(int volume);", "public static void setMusicVolume(int volume)\n\t{\n\t\tPrecondit...
[ "0.83251536", "0.8162814", "0.7954337", "0.78868794", "0.7874818", "0.7865182", "0.78503376", "0.7720592", "0.76831067", "0.7595628", "0.7525203", "0.7507104", "0.7489444", "0.74822706", "0.74372137", "0.7425167", "0.7356421", "0.73326266", "0.73020446", "0.7286255", "0.72791...
0.77798873
7
Manage the user's login.
void login(String userName) throws IllegalArgumentException, IOException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void login() {\n\t\tUser user = new User(\"admin\", \"12345678\", Role.ADMIN);\n\t\tuser.setEmail(\"admin@gibmit.ch\");\n\t\t\n\t\tif(user != null) {\n\t\t\tuserBean.setLoggedInUser(user);\n\t\t\tFacesContext context = FacesContext.getCurrentInstance();\n\t\t\tHttpServletRequest req = (HttpServletRequest)co...
[ "0.79171276", "0.79140955", "0.7795165", "0.771151", "0.7637529", "0.7427589", "0.7411059", "0.73955584", "0.73915464", "0.7367319", "0.73461145", "0.7334528", "0.73107237", "0.72813433", "0.7273876", "0.7235015", "0.721848", "0.7217352", "0.7197024", "0.7191581", "0.7190666"...
0.0
-1
Notify if happen a collision between coin and pawn.
void collisionHappened(int position);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean collideWithCoins(Coin c);", "public void checkCollision() {}", "void collide() {\n for (Target t : this.helicopterpieces) {\n if (!t.isHelicopter && ((t.x == this.player.x && t.y == this.player.y)\n || (t.x == this.player2.x && t.y == this.player2.y))) {\n this.collected--;\n ...
[ "0.71772254", "0.6708727", "0.6674559", "0.6637506", "0.65148175", "0.64992243", "0.6484097", "0.6443228", "0.64306676", "0.6394566", "0.6359805", "0.6333733", "0.6322473", "0.63055676", "0.6267414", "0.62594885", "0.62529737", "0.6235535", "0.62157375", "0.6189052", "0.61619...
0.67113644
1
Finds user's statistics and returns it by means of a view's method.
void statistics();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static Result showStats() {\n\t\tUser currentUser = SessionHelper.getCurrentUser(ctx());\n\t\tList<Blogger> bloggerList = Blogger.find.all();\n\t\tif(currentUser != null && currentUser.username.equals(\"blogger\")){\n\t\t\treturn ok(blog.render(bloggerList,currentUser));\n\t\t}\n\n\t\t// Null Catching\n\t\t...
[ "0.6346742", "0.6139254", "0.60338604", "0.60310745", "0.59531796", "0.59355974", "0.5908849", "0.58643645", "0.5823085", "0.57557523", "0.5632536", "0.55595845", "0.554811", "0.5453995", "0.5438144", "0.5430312", "0.5420255", "0.54127413", "0.5381341", "0.5338865", "0.532778...
0.5958285
4
Notify if the game is finish.
void gameFinished(Turn turn) throws IOException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void finishGame() {\r\n gameFinished = true;\r\n }", "public void finishGame(){\r\n\t\t\t\tgameStarted = false;\r\n\t\t\t}", "void gameFinished();", "protected abstract boolean isGameFinished();", "public void Gamefinished()\n\t\t{\n\t\t\tplayers_in_game--;\n\t\t}", "private void gameFin...
[ "0.82967854", "0.7703806", "0.7472775", "0.74247754", "0.74073946", "0.73679477", "0.7334303", "0.7213128", "0.7159796", "0.70924705", "0.7083712", "0.7054713", "0.7054713", "0.7054713", "0.7054713", "0.7054713", "0.7054713", "0.70331585", "0.7020103", "0.70094454", "0.697307...
0.0
-1
Reset the statistic of game.
void clearStatistics() throws IOException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void resetStats() {\n }", "public void reset() {\n\t\tfor (int i = 0; i<DIVISIONS; i++){\n\t\t\tfor (int j = 0; j<DIVISIONS; j++){\n\t\t\t\tgameArray[i][j] = 0;\n\t\t\t}\n\t\t}\n\t\tgameWon = false;\n\t\twinningPlayer = NEITHER;\n\t\tgameTie = false;\n\t\tcurrentPlayer = USER;\n\t}", "public void re...
[ "0.83066916", "0.8107206", "0.80160785", "0.7994028", "0.7968957", "0.7931442", "0.79203373", "0.78782374", "0.78286505", "0.7823253", "0.78099394", "0.7788329", "0.7778539", "0.77747446", "0.7767806", "0.7711898", "0.7708146", "0.76927656", "0.76784354", "0.7670224", "0.7670...
0.0
-1
Starts the clip of snakes or ladders.
void startClipJump();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void createStartSnake() {\n int screenXCenter = maxX / 2; //Cast just in case we have an odd number\n int screenYCenter = maxY / 2; //Cast just in case we have an odd number\n\n snakeSquares[screenXCenter][screenYCenter] = 1;\n snakeSquares[screenXCenter + 1][screenYCenter] ...
[ "0.6236128", "0.6049184", "0.5990591", "0.59768313", "0.5939617", "0.58037484", "0.5779335", "0.57435465", "0.56679666", "0.56455314", "0.55769235", "0.55421746", "0.55238724", "0.54995567", "0.5436274", "0.53846693", "0.53803647", "0.53638995", "0.5356238", "0.53541565", "0....
0.60114574
2
Mostra mensagem informando erro ao cadastrar
public static void mensagemErroCadastrar() { JOptionPane.showMessageDialog(null, "Erro ao cadastrar. Revise os dados inseridos.", "Erro", JOptionPane.ERROR_MESSAGE, new ImageIcon(Toolkit.getDefaultToolkit().getImage(CadastroQuartos.class.getResource("/Imagens/Erro32.png")))); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void mensagemErroCadastro() {\n\t\tJOptionPane.showMessageDialog(null, \"Erro!\\nVerifique se todos os campos estão preenchidos.\"\n\t\t\t\t+ \"\\nVerifique se os dados em formato numérico são números.\"\n\t\t\t\t+ \"\\nVerifique se as datas foram inseridas corretamente.\" + \"\\nNão use vírgulas ','. Use p...
[ "0.73125035", "0.73098254", "0.7058937", "0.6782884", "0.67319167", "0.6641782", "0.66132057", "0.6583569", "0.6539481", "0.65126634", "0.6380342", "0.63380945", "0.6297295", "0.62746656", "0.6259691", "0.62455064", "0.62410885", "0.6223996", "0.62056094", "0.61954916", "0.61...
0.69670504
3
Mostra mensagem informando sucesso ao cadastrar
public static void mensegemSucessoCadastro() { JOptionPane.showMessageDialog(null, "Sucesso ao cadastrar.", "Sucesso", JOptionPane.INFORMATION_MESSAGE, new ImageIcon(Toolkit.getDefaultToolkit().getImage(CadastroQuartos.class.getResource("/Imagens/Sucesso32.png")))); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void sucessoMsg(String msg) {\n mensagens.add(new MensagemSistema(ConstantsControl.MSG_SUCESSO, msg));\n }", "public void sucessoCadastro(){\n JOptionPane.showMessageDialog(null, \"Cadastro realizado com sucesso!\", null, \n\t\t\t\tJOptionPane.INFORMATION_MESSAGE);\n\t\tjanela.dispose();\...
[ "0.72121304", "0.69207424", "0.6625546", "0.63972753", "0.5976384", "0.5951672", "0.5942452", "0.5932984", "0.5871136", "0.5859171", "0.5841341", "0.5835361", "0.5787969", "0.576591", "0.573455", "0.5709754", "0.5705334", "0.56921655", "0.5667346", "0.5619699", "0.56103677", ...
0.68319285
2
Mostra mensagem que seja selecionado o item recem cadastrado.
public static void mensagemRealizarCadastro() { JOptionPane.showMessageDialog(null, "Favor clique em atualizar para re-listar e selecionar o novo item recem cadastrado.", "Informação", JOptionPane.INFORMATION_MESSAGE, new ImageIcon(Toolkit.getDefaultToolkit().getImage(CadastroQuartos.class.getResource("/Imagens/Informacao32.png")))); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\t\tpublic void itemStateChanged(ItemEvent e) {\n\t\t\t\t\n\t\t\t\tString item = e.getItem().toString();\n\t\t\t\tString item2 = Connectedlist.getSelectedItem();\n\t\t\t\trespond = true;\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tint stateChange = e.getStateChange();\n\t\t\t\tif (stateChange == ItemEvent.SELECTED) ...
[ "0.57639235", "0.573966", "0.57002366", "0.5646741", "0.55109876", "0.55092674", "0.5387483", "0.5350115", "0.5348254", "0.534613", "0.53275806", "0.5309176", "0.52733755", "0.5272522", "0.52675545", "0.5236552", "0.5222096", "0.51935345", "0.5182462", "0.5173517", "0.5165138...
0.5391445
6
Create and Update User_Task
public User_Task createUser_Task(String usertaskid, long user_task, long task_task, Date lastupdate, int status) { ContentValues values = new ContentValues(); values.put(MySQLHelper.COLUMN_USERTASKUSERFID,user_task); values.put(MySQLHelper.COLUMN_USERTASKTASKFID, task_task); values.put(MySQLHelper.COLUMN_USERTASKLASTUPDATE, lastupdate.toString()); values.put(MySQLHelper.COLUMN_USERTASKSTATUS, status); String[] str = {usertaskid}; int affectedRows = database.update(MySQLHelper.TABLE_USER_TASK, values, MySQLHelper.COLUMN_USERTASKID + " = ?", str); if (affectedRows == 1) { Cursor cursor = database.query(MySQLHelper.TABLE_USER_TASK, allColumns, MySQLHelper.COLUMN_USERTASKID + " = " + usertaskid, null, null, null, null); cursor.moveToFirst(); User_Task newUser_Task = cursorToUser_Task(cursor); cursor.close(); return newUser_Task; } else { values.put(MySQLHelper.COLUMN_USERTASKID, usertaskid); long insertId = database.insert(MySQLHelper.TABLE_USER_TASK, null, values); Cursor cursor = database.query(MySQLHelper.TABLE_USER_TASK, allColumns, MySQLHelper.COLUMN_USERTASKID + " = " + insertId, null, null, null, null); cursor.moveToFirst(); User_Task newUser_Task = cursorToUser_Task(cursor); cursor.close(); return newUser_Task; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void updateTask(UserDto user);", "void put(TaskEntity userEntity);", "public void creatTask(int uid,String title,String detail,int money,String type,int total_num,Timestamp end_time,String state);", "public void createTask(Task task) {\n ContentValues values = new ContentValues();\n values.put(...
[ "0.72579086", "0.6779126", "0.645657", "0.6382488", "0.6377509", "0.63712436", "0.6282002", "0.6279696", "0.62263143", "0.6218594", "0.6184", "0.61642677", "0.6155712", "0.6138404", "0.60513145", "0.60393995", "0.6033051", "0.6006927", "0.59528124", "0.59520483", "0.59422594"...
0.77413017
0
Cursor to pass user_task value
private User_Task cursorToUser_Task(Cursor cursor) { User_Task user_task = new User_Task(); user_task.setUTid(cursor.getLong(0)); user_task.setUTUid(cursor.getLong(1)); user_task.setUTTid(cursor.getLong(2)); Date lu = Date.valueOf(cursor.getString(3)); user_task.setUTLastUpdate(lu); user_task.setUTStatus(cursor.getInt(4)); return user_task; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Task cursorToTask(Cursor cursor) {\n Task task = new Task(cursor.getString(1));\n task.set_id(cursor.getLong(0));\n return task;\n }", "public Cursor fetchUserTaskByUserIdTaskId(long taskid,long userid) throws SQLException {\r\n\r\n\t\t Cursor mCursor =\r\n\r\n\t\t ...
[ "0.6047879", "0.6000156", "0.5935451", "0.58373094", "0.5837268", "0.5664719", "0.56541336", "0.5643526", "0.5578992", "0.5531794", "0.54378515", "0.54293245", "0.5427477", "0.539551", "0.53920484", "0.5384052", "0.53737277", "0.5368538", "0.5356902", "0.5343294", "0.5333456"...
0.7053089
0
Cursor to pass User_Task value
public Cursor fetchUserTaskByUserIdTaskId(long taskid,long userid) throws SQLException { Cursor mCursor = database.query(true,MySQLHelper.TABLE_USER_TASK , allColumns, MySQLHelper.COLUMN_USERTASKTASKFID + "=" + taskid + " AND " + MySQLHelper.COLUMN_USERTASKUSERFID + "=" + userid , null, null, null, null, null); if (mCursor != null) { mCursor.moveToFirst(); } return mCursor; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private User_Task cursorToUser_Task(Cursor cursor) {\r\n\t\t\t\tUser_Task user_task = new User_Task();\r\n\t\t\t\tuser_task.setUTid(cursor.getLong(0));\r\n\t\t\t\tuser_task.setUTUid(cursor.getLong(1));\r\n\t\t\t\tuser_task.setUTTid(cursor.getLong(2));\r\n\t\t\t\tDate lu = Date.valueOf(cursor.getString(3));\r\n\t\t...
[ "0.7376046", "0.62091273", "0.6172024", "0.5994538", "0.58668965", "0.58571446", "0.5697133", "0.56347924", "0.5562612", "0.55582863", "0.55487794", "0.55187434", "0.54875386", "0.54712385", "0.5459921", "0.5450169", "0.5438941", "0.54326385", "0.54179966", "0.5387381", "0.53...
0.60923463
3
Static factory for creating a new ServerBuilder.
public static ServerBuilder<?> forPort(int port) { return ServerProvider.provider().builderForPort(port); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected ServerBuilder<?> getServerBuilder() {\n try {\n ServerCredentials serverCreds = TlsServerCredentials.create(\n TlsTesting.loadCert(\"server1.pem\"), TlsTesting.loadCert(\"server1.key\"));\n NettyServerBuilder builder = NettyServerBuilder.forPort(0, serverCreds)\n ...
[ "0.7027806", "0.6772487", "0.65692437", "0.65686905", "0.6545358", "0.6489511", "0.6423207", "0.6175774", "0.61642873", "0.61221707", "0.6074758", "0.60569185", "0.6044105", "0.60362977", "0.60267943", "0.60199195", "0.60150665", "0.5988989", "0.59684", "0.5959603", "0.595169...
0.7012615
1
Provides a custom executor. It's an optional parameter. If the user has not provided an executor when the server is built, the builder will use a static cached thread pool. The server won't take ownership of the given executor. It's caller's responsibility to shut down the executor when it's desired.
public abstract T executor(@Nullable Executor executor);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static Executor buildExecutor() {\n GrpcRegisterConfig config = Singleton.INST.get(GrpcRegisterConfig.class);\n if (null == config) {\n return null;\n }\n final String threadpool = Optional.ofNullable(config.getThreadpool()).orElse(Constants.CACHED);\n switch (t...
[ "0.74022067", "0.6504827", "0.64852136", "0.62384707", "0.62377363", "0.609458", "0.6075353", "0.6037173", "0.60214424", "0.6006776", "0.5883099", "0.58763474", "0.5872094", "0.58686936", "0.58648723", "0.5850802", "0.58499604", "0.5811931", "0.57881075", "0.5756683", "0.5750...
0.6824463
1
Adds a service implementation to the handler registry.
public abstract T addService(ServerServiceDefinition service);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addNotificationHandler(String serviceName, NotificationHandler handler);", "@Override\r\n public <T> void registerService(Class<T> clazz, Object implementation) {\r\n synchronized (serviceRegistrations) {\r\n serviceRegistrations.add(bundleContext.registerService(clazz.getName(),...
[ "0.7174076", "0.7160863", "0.68249756", "0.6584992", "0.63319254", "0.6313731", "0.62927127", "0.62681013", "0.6248034", "0.6214864", "0.61728686", "0.61728686", "0.6143773", "0.61412704", "0.6109845", "0.6093726", "0.6019377", "0.59694725", "0.5926733", "0.59093714", "0.5906...
0.71459484
2
Adds a service implementation to the handler registry.
public abstract T addService(BindableService bindableService);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addNotificationHandler(String serviceName, NotificationHandler handler);", "@Override\r\n public <T> void registerService(Class<T> clazz, Object implementation) {\r\n synchronized (serviceRegistrations) {\r\n serviceRegistrations.add(bundleContext.registerService(clazz.getName(),...
[ "0.7174806", "0.7160744", "0.7146897", "0.68266046", "0.65856886", "0.63155556", "0.6293235", "0.6268949", "0.6250301", "0.62155205", "0.61738276", "0.61738276", "0.6144271", "0.6142723", "0.6111843", "0.60940546", "0.6021389", "0.5970143", "0.5926803", "0.59097254", "0.59079...
0.6333061
5
Adds a list of service implementations to the handler registry together.
@ExperimentalApi("https://github.com/grpc/grpc-java/issues/7925") public final T addServices(List<ServerServiceDefinition> services) { checkNotNull(services, "services"); for (ServerServiceDefinition service : services) { addService(service); } return thisT(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void addHandlers()\n {\n handlers.add(new FileHTTPRequestHandler());\n }", "public void addNotificationHandler(String serviceName, NotificationHandler handler);", "public interface HasAddEventHandlers<T> extends HasHandlers {\r\n HandlerRegistration addAddHandler(AddHandler<T> handl...
[ "0.60847354", "0.6053411", "0.5932361", "0.5901362", "0.5875201", "0.584846", "0.58293647", "0.58065724", "0.5771659", "0.57679474", "0.57660174", "0.5719504", "0.5694092", "0.56926763", "0.55833983", "0.55612487", "0.55599976", "0.55579454", "0.55579454", "0.5523745", "0.550...
0.54794294
21
Makes the server use TLS.
public abstract T useTransportSecurity(File certChain, File privateKey);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setTls(boolean tls) {\n this.tls = tls;\n }", "private void m1388b(SSLSocket sSLSocket) {\n sSLSocket.setEnabledProtocols(new String[]{\"TLSv1.2\"});\n }", "public boolean isTls() {\n return tls;\n }", "public void setSmtpTLS(boolean value) {\n this.smtpTLS = value;\n ...
[ "0.7605066", "0.7005528", "0.6882449", "0.68249243", "0.6607182", "0.6578786", "0.65613794", "0.6484178", "0.64679635", "0.6463804", "0.64361435", "0.6435399", "0.6300819", "0.62657434", "0.61349446", "0.6106314", "0.60980165", "0.60356015", "0.6014753", "0.5988217", "0.59819...
0.5624494
37
Makes the server use TLS.
public T useTransportSecurity(InputStream certChain, InputStream privateKey) { throw new UnsupportedOperationException(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setTls(boolean tls) {\n this.tls = tls;\n }", "private void m1388b(SSLSocket sSLSocket) {\n sSLSocket.setEnabledProtocols(new String[]{\"TLSv1.2\"});\n }", "public boolean isTls() {\n return tls;\n }", "public void setSmtpTLS(boolean value) {\n this.smtpTLS = value;\n ...
[ "0.7605355", "0.70061004", "0.6883253", "0.6825251", "0.660676", "0.6578744", "0.6560043", "0.6483655", "0.6469554", "0.64622843", "0.64359075", "0.6434829", "0.63002884", "0.6266523", "0.6134426", "0.6105728", "0.6100167", "0.6035693", "0.6014783", "0.59886163", "0.5981172",...
0.53375244
66
Sets the permitted time for new connections to complete negotiation handshakes before being killed. The default value is 2 minutes.
public T handshakeTimeout(long timeout, TimeUnit unit) { throw new UnsupportedOperationException(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setSessionMaxAliveTime(int sessionMaxAliveTime);", "private void setTimedOut() {\n\t\tthis.timedOut.set(true);\n\t}", "public void setNortpTimeout(int seconds);", "protected int maxTimeout() { return 15*1000*1000; }", "public void setConnectionTimeOut(int connectionTimeOut) {\n this.conn...
[ "0.5880138", "0.5859816", "0.56949127", "0.5618648", "0.55683386", "0.5555944", "0.554002", "0.5516092", "0.5510068", "0.54686904", "0.5448558", "0.5443095", "0.5415062", "0.54125446", "0.5389982", "0.538858", "0.53677696", "0.53277", "0.5308972", "0.53087294", "0.5289725", ...
0.0
-1
Sets a time waiting for read activity after sending a keepalive ping. If the time expires without any read activity on the connection, the connection is considered dead. An unreasonably small value might be increased. Defaults to 20 seconds when supported. This value should be at least multiple times the RTT to allow for lost packets.
@ExperimentalApi("https://github.com/grpc/grpc-java/issues/9009") public T keepAliveTimeout(long keepAliveTimeout, TimeUnit timeUnit) { throw new UnsupportedOperationException(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setTCPAliveTime(int keepAliveMillis) {\r\n\t\ttcp.aliveTime = keepAliveMillis;\r\n\t}", "public void setReadTimeout(int readTimeout){\n return; //TODO codavaj!!\n }", "public void setKeepAliveTime(Duration keepAliveTime) {\n this.keepAliveTime = keepAliveTime;\n }", "private v...
[ "0.64618665", "0.62493163", "0.617957", "0.6144757", "0.6128546", "0.60559523", "0.6011185", "0.59862685", "0.5971344", "0.5957452", "0.5833059", "0.5762432", "0.57537097", "0.57451504", "0.57413113", "0.57270706", "0.57265204", "0.56814617", "0.5671243", "0.5637593", "0.5631...
0.5704562
17
Specify the most aggressive keepalive time clients are permitted to configure. The server will try to detect clients exceeding this rate and when detected will forcefully close the connection. The typical default is 5 minutes when supported. Even though a default is defined that allows some keepalives, clients must not use keepalive without approval from the service owner. Otherwise, they may experience failures in the future if the service becomes more restrictive. When unthrottled, keepalives can cause a significant amount of traffic and CPU usage, so clients and servers should be conservative in what they use and accept.
@ExperimentalApi("https://github.com/grpc/grpc-java/issues/9009") public T permitKeepAliveTime(long keepAliveTime, TimeUnit timeUnit) { throw new UnsupportedOperationException(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setSessionMaxAliveTime(int sessionMaxAliveTime);", "default public int getAliveInterval() \t\t\t\t\t{ return 1000; }", "public void setKeepAliveTimeout(int keepAliveTimeout) {\r\n\t\tthis.keepAliveTimeout = keepAliveTimeout;\r\n\t}", "public void setKeepAliveTime(Duration keepAliveTime) {\n ...
[ "0.6417867", "0.63234216", "0.6258315", "0.6255018", "0.622103", "0.5965442", "0.5936631", "0.5893696", "0.5888622", "0.5813195", "0.5784932", "0.56674886", "0.5655036", "0.5624016", "0.56064403", "0.5605821", "0.56057346", "0.55749017", "0.55370176", "0.5533163", "0.551835",...
0.60914713
5
Returns the correctly typed version of the builder.
private T thisT() { @SuppressWarnings("unchecked") T thisT = (T) this; return thisT; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static Builder builder(){ return new Builder(); }", "java.lang.String getBuilder();", "static Builder builder() {\n return new Builder();\n }", "public static Object builder() {\n\t\treturn null;\n\t}", "public static Object builder() {\n\t\treturn null;\r\n\t}", "public interface Builde...
[ "0.67705077", "0.6761881", "0.6717944", "0.6635311", "0.6624994", "0.6604402", "0.6581845", "0.65407443", "0.65389913", "0.65389913", "0.65389913", "0.65389913", "0.65389913", "0.65389913", "0.65389913", "0.65214384", "0.64660484", "0.6454585", "0.643974", "0.643974", "0.6439...
0.0
-1
Functions to be called at launch.
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); setupAddPotLaunch(); setupListView(); setupPotClick(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void launch() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void launch() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void launch() {\n\t\t\r\n\t}", "void launch();", "void launch();", "void launch();", "public void startup(){}", "public abstract void startup();", "void startup();", "...
[ "0.73017156", "0.73017156", "0.73017156", "0.72457767", "0.72457767", "0.72457767", "0.68623626", "0.67668325", "0.6754435", "0.6754435", "0.6593584", "0.6558418", "0.6495031", "0.64425033", "0.6394822", "0.6382033", "0.6355311", "0.6305661", "0.6304533", "0.6297662", "0.6295...
0.0
-1
Setting up the button to add a pot. This will start a new activity.
private void setupAddPotLaunch() { Button startAddPot = (Button) findViewById(R.id.btn_add_pot); startAddPot.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { Intent AddPotintent = AddPot.makeIntent(MainActivity.this); startActivityForResult(AddPotintent, REQUEST_CODE_NEWPOT); } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setupPotClick() {\n ListView list = (ListView) findViewById(R.id.lv_pot_list);\n list.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n @Override\n public void onItemClick(AdapterView<?> parent, View viewClicked, int position, long id) {\n ...
[ "0.68240964", "0.671791", "0.6576647", "0.6454937", "0.63945335", "0.6309072", "0.6304252", "0.62111026", "0.61983186", "0.61538666", "0.6137528", "0.61200607", "0.61092114", "0.60988617", "0.6070196", "0.60557806", "0.60092825", "0.59946305", "0.59928113", "0.5982021", "0.59...
0.8317105
0
Setting up the ability to click on pots in the listview.
private void setupPotClick() { ListView list = (ListView) findViewById(R.id.lv_pot_list); list.setOnItemClickListener(new AdapterView.OnItemClickListener() { @Override public void onItemClick(AdapterView<?> parent, View viewClicked, int position, long id) { TextView textView = (TextView) viewClicked; Intent AddCalculateServingIntent = CalculateServing.makeIntent(MainActivity.this, potList.getPot(position)); startActivity(AddCalculateServingIntent); } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void onListClick();", "@Override\n public void onListItemClick(ListView l, View v, int position, long id) {\n //Recipe recipe = recipes.get(position);\n mListener.onListInteraction(position, false);\n }", "@Override\n public void onListItemClicked(int position) {\n\n }", "private vo...
[ "0.6692186", "0.66709834", "0.6634256", "0.6574342", "0.65671104", "0.6545112", "0.6536976", "0.6534851", "0.65129966", "0.64854693", "0.64816403", "0.64763176", "0.64763176", "0.64763176", "0.6467928", "0.64674413", "0.64591604", "0.645623", "0.6453262", "0.6453262", "0.6453...
0.8155378
0
Function that gets called when someone clicks on the "Edit" button in the context menu. If a pot is successfully edited, it will call changePot from PotCollection.java, otherwise, nothing happens.
private void editEntry(int index) { Intent ChangePotintent = AddPot.makeIntent(MainActivity.this); ChangePotintent.putExtra("Index", index); startActivityForResult(ChangePotintent, REQUEST_CODE_CHANGEPOT); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void edit() {\n\n\t}", "private void btnEditActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnEditActionPerformed\n boolean flag = this.cutiController.save(txtCutiID.getText(), (txtTglAwal.getText()), (txtTglAkhir.getText()),\n txtKet.getText(), cmbCutiKhususID.g...
[ "0.6601143", "0.63364756", "0.6328134", "0.63132197", "0.6222847", "0.6209291", "0.62050354", "0.61786026", "0.61385363", "0.609704", "0.60951215", "0.60239774", "0.5982728", "0.59677714", "0.59603345", "0.5954704", "0.59384334", "0.5933849", "0.5928227", "0.5922041", "0.5893...
0.63977593
1
Deletes an entry and reloads the ListView
private void deleteEntry(int index){ Log.i("Serving Calculator", "First amount: " +String.valueOf(potList.countPots())); potList.deletePot(index); Log.i("Serving Calculator", "Second amount: " +String.valueOf(potList.countPots())); arrayofpots = potList.getPotDescriptions(); refresher(arrayofpots); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onClick(DialogInterface dialog, int which) {\n mAdapter.notifyItemRemoved(position); //item removed from recylcerview\n mAdapter.removeItem(position);\n dataList.remove(position); //t...
[ "0.7165413", "0.6863012", "0.68582386", "0.6793032", "0.675515", "0.6694223", "0.6688723", "0.6658024", "0.66428864", "0.6623094", "0.6610314", "0.660809", "0.6595949", "0.65930784", "0.6562554", "0.6555773", "0.65469265", "0.6545348", "0.650518", "0.6500945", "0.64867", "0...
0.6190202
54
Setting up the listview. This should be called everytime a change is made to arrayofpots
private void setupListView() { potList = loadPotList(); arrayofpots = potList.getPotDescriptions(); refresher(arrayofpots); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void initListView() {\n listView = (ListView) findViewById(R.id.lv_pingpai_listview);\r\n pingpaiList = new ArrayList<>();\r\n adapter = new PingpaiAdapter(this, pingpaiList);\r\n listView.setAdapter(adapter);\r\n listView.setOnItemClickListener(new AdapterView.OnItemClic...
[ "0.70443654", "0.7010347", "0.70000446", "0.6931189", "0.69288194", "0.69163334", "0.68856764", "0.68485117", "0.67668", "0.6756475", "0.6728152", "0.6689648", "0.661754", "0.6612918", "0.65916556", "0.65748096", "0.6556477", "0.65373147", "0.6533076", "0.6524335", "0.6515594...
0.858443
0
Function that treats the return values of the AddPot activity and responds accordingly. Will add a new pot if need be and will edit a pot if the user wanted to edit a pot.
@Override protected void onActivityResult(int requestCode, int resultCode, Intent data) { super.onActivityResult(requestCode, resultCode, data); switch(requestCode) { case REQUEST_CODE_NEWPOT: if (resultCode == Activity.RESULT_OK) { Pot newPot = getPotFromIntent(data); potList.addPot(newPot); arrayofpots = potList.getPotDescriptions(); refresher(arrayofpots); setupPotClick(); String PotName = data.getStringExtra("NewPotName"); int PotWeight = data.getIntExtra("NewPotWeight", 1); Log.i("Serving Calculator", "New Pot's name is: " + PotName); Log.i("Serving Calculator", "New Pot's weight is: " + String.valueOf(PotWeight)); } else { Log.i("Serving Calculator", "Add Pot Cancelled"); } break; case REQUEST_CODE_CHANGEPOT: if (resultCode == Activity.RESULT_OK) { Pot changePot = getPotFromIntent(data); Log.i("Serving Calculator", ""+data.getIntExtra("Index", 0)); potList.changePot(changePot, data.getIntExtra("Index", 0)); arrayofpots = potList.getPotDescriptions(); refresher(arrayofpots); } else { Log.i("Serving Calculator", "Edit Cancelled"); } break; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addPot(double bet){\r\n\t\ttotalPot += bet;\r\n\t\tSystem.out.println(\"Total money in pot: \" + money.format(checkPot()));\r\n\t}", "private void setupAddPotLaunch() {\n Button startAddPot = (Button) findViewById(R.id.btn_add_pot);\n startAddPot.setOnClickListener(new View.OnClickListe...
[ "0.6129979", "0.59421605", "0.5505284", "0.51180875", "0.50602335", "0.5048576", "0.5015018", "0.49886012", "0.49606982", "0.49341747", "0.49162802", "0.49134368", "0.49080312", "0.4890901", "0.48898855", "0.4885705", "0.48809743", "0.4857124", "0.4854114", "0.4849474", "0.48...
0.7218149
0
Function that determines what item on the context menu someone clicks on and calls the appropriate functions.
@Override public boolean onContextItemSelected(MenuItem item) { AdapterView.AdapterContextMenuInfo info = (AdapterView.AdapterContextMenuInfo) item.getMenuInfo(); switch(item.getItemId()) { case R.id.edit: editEntry(info.position); return true; case R.id.delete: deleteEntry(info.position); return true; } return super.onContextItemSelected(item); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void onMenuItemClicked();", "public void menuItemClicked( Menu2DEvent e );", "@Override\n\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int position, long arg3) \n\t{\n\t\tswitch(position)\n\t\t{\n\t\tcase 0:ActivityStarter(\"rahulapps.apihelp.Bluetooth.BluetoothMenu\");break;\n\t\tcase 1:ActivitySt...
[ "0.6930251", "0.6853573", "0.68074363", "0.67724586", "0.67529714", "0.6675708", "0.66537035", "0.6619446", "0.6602646", "0.65779126", "0.65351", "0.6490386", "0.6370052", "0.63652784", "0.6338627", "0.6319134", "0.6306408", "0.6287312", "0.62471104", "0.624154", "0.62393385"...
0.64971364
11
Function that creates a context menu when someone longholds on the item in the Listview.
@Override public void onCreateContextMenu(ContextMenu menu, View v, ContextMenu.ContextMenuInfo menuInfo) { super.onCreateContextMenu(menu, v, menuInfo); MenuInflater inflater = getMenuInflater(); inflater.inflate(R.menu.contextmenu, menu); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void onCreateContextMenu(ContextMenu menu, View v,\r\n\t\t\tContextMenuInfo menuInfo) {\n\t\tgetMenuInflater().inflate(R.menu.long_click_context, menu);\r\n\t\t//menu.setHeaderIcon(R.drawable.qq);\r\n\t\tmenu.setHeaderTitle(\"选项菜单\");//设置菜单标题\r\n\t\tthis.contextmenu = menu;\r\n\t\t\r\n\t\tsup...
[ "0.6908563", "0.68640006", "0.68634653", "0.68570054", "0.68020576", "0.678386", "0.67663807", "0.6766182", "0.6729077", "0.6687139", "0.66452086", "0.6572743", "0.656948", "0.65549016", "0.6554371", "0.6528709", "0.6527399", "0.6518746", "0.6502206", "0.648763", "0.648409", ...
0.6114862
50
Refresher function that reloads potlist everytime it's edited. this is called after it's saved.
private void refresher(String[] array) { ArrayAdapter<String> adapter = new ArrayAdapter<>( this, //Context for activity R.layout.adapter_layout, //Layout to use array); //Pots to put in ListView list = (ListView) findViewById(R.id.lv_pot_list); list.setAdapter(adapter); storePotList(); registerForContextMenu(list); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void reload(){\n populateList();\n }", "public void reload()\n\t{\n\t\tm_PrinterList = ToolBox.generatePrinterList();\n\t\tremoveAll();\n\t\tdesignComponents();\n\t\taddComponents();\n\t\tthis.revalidate();\n\t}", "private PotCollection loadPotList(){\n SharedPreferences preferences = g...
[ "0.6399622", "0.639924", "0.63842756", "0.6075733", "0.60516787", "0.6022366", "0.5935831", "0.59353805", "0.59289557", "0.5911277", "0.59024346", "0.5868132", "0.5864885", "0.58285373", "0.58108366", "0.5778436", "0.57615364", "0.5728856", "0.5715942", "0.5706144", "0.568840...
0.581089
14
Function that loads the potlist. This only gets done once, at launch.
private PotCollection loadPotList(){ SharedPreferences preferences = getSharedPreferences(SHAREDPREF_SET, MODE_PRIVATE); int sizeOfPotList = preferences.getInt(SHAREDPREF_ITEM_POTLIST_SIZE, 0); for(int i = 0; i<sizeOfPotList; i++){ Log.i("serving calculator", "once"); String potName = preferences.getString(SHAREDPREF_ITEM_POTLIST_NAME+i, "N"); int potWeight = preferences.getInt(SHAREDPREF_ITEM_POTLIST_WEIGHT+i, 0); Pot tempPot = new Pot(potName, potWeight); potList.addPot(tempPot); } return potList; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void loadLists() {\n }", "private void setupListView() {\n potList = loadPotList();\n arrayofpots = potList.getPotDescriptions();\n refresher(arrayofpots);\n }", "public void load() {\n mapdb_ = DBMaker.newFileDB(new File(\"AllPoems.db\"))\n .closeOnJvmS...
[ "0.6312485", "0.6265745", "0.60580194", "0.60358375", "0.6005083", "0.5997374", "0.59775716", "0.5953259", "0.5910036", "0.58612376", "0.5823551", "0.573151", "0.5719545", "0.569325", "0.5688932", "0.56524694", "0.56445676", "0.5638464", "0.55824405", "0.5565337", "0.55289847...
0.74804246
0
Function that saves the potLIst into SharedPreferences. THis is done everytime the potlist is edited.
private void storePotList(){ String tempName; int tempWeight; SharedPreferences preferences = getSharedPreferences(SHAREDPREF_SET, MODE_PRIVATE); SharedPreferences.Editor editor = preferences.edit(); int sizeOfPotList = potList.countPots(); editor.putInt(SHAREDPREF_ITEM_POTLIST_SIZE, sizeOfPotList); for(int i = 0; i < potList.countPots();i++){ tempWeight = (potList.getPot(i).getWeightInG()); tempName = (potList.getPot(i).getName()); editor.putString(SHAREDPREF_ITEM_POTLIST_NAME+i, tempName); editor.putInt(SHAREDPREF_ITEM_POTLIST_WEIGHT+i, tempWeight); } editor.commit(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void savePreferences() {\n SharedPreferences sp = getSharedPreferences(MY_PREFS, MODE_PRIVATE);\n SharedPreferences.Editor editor = sp.edit();\n\n editor.putInt(\"entreeIndex\", spEntree.getSelectedItemPosition());\n editor.putInt(\"drinkIndex\", spDrink.getSelectedItemPosition(...
[ "0.7186514", "0.70472556", "0.7015059", "0.68042105", "0.6667738", "0.6628459", "0.65893793", "0.6574194", "0.6554314", "0.6549429", "0.6482094", "0.64732176", "0.6400034", "0.6394541", "0.6349691", "0.63224936", "0.63011897", "0.62674326", "0.6221571", "0.6204552", "0.618285...
0.78796345
0
Invoke the methodPrefix + paramType.getSimpleName method (i.e., "add" and ActionListener.class will produce addActionListener) on the object and wrap any exception into IllegalArgumentException.
static <T, U extends T> U invoke( @Nonnull Object o, @Nonnull String methodPrefix, @Nonnull Class<T> paramType, @Nonnull U value) { if (o == null) { throw new IllegalArgumentException("o is null"); } try { Method m = o.getClass().getMethod(methodPrefix + paramType.getSimpleName(), paramType); m.invoke(o, value); } catch (NoSuchMethodException ex) { throw new IllegalArgumentException(ex); } catch (IllegalAccessException ex) { throw new IllegalArgumentException(ex); } catch (InvocationTargetException ex) { throw new IllegalArgumentException(ex); } return value; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Type getMethodParameterType() throws IllegalArgumentException;", "public void testAddActionEventListener1_NotActionClass() {\n try {\n eventManager.addActionEventListener(actionEventListener1, String.class);\n fail(\"IllegalArgumentException should be thrown.\");\n } catch (Il...
[ "0.5373539", "0.51919883", "0.5189307", "0.51813185", "0.5166476", "0.50491995", "0.5047786", "0.5043612", "0.5037166", "0.49750537", "0.4941093", "0.49207616", "0.49107346", "0.48712337", "0.48594072", "0.48573825", "0.48292723", "0.48259243", "0.48058662", "0.4797751", "0.4...
0.5464422
0
Create a dynamic observer for the given listener interface by proxying all method calls. None of the methods of the listener interface should require something meaningful to be returned, i.e., they all must be void, return Void (or the original call site should accept nulls). Note that due this proxying effect, the handler invocation may be 100 times slower than a direct implementation
@Nonnull public static <T> T create( @Nonnull Class<T> listener, @Nonnull final Observer<? super Dynamic> bindTo) { final InvocationHandler handler = new InvocationHandler() { @Override public Object invoke(Object proxy, Method method, Object[] args) throws Throwable { bindTo.next(new Dynamic(method.getName(), args)); return null; } }; return listener.cast(Proxy.newProxyInstance(listener.getClassLoader(), new Class<?>[] { listener }, handler)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface EventListener {\n\t/**\n\t * Add an EventHandler to handle events for processing.\n\t * @param handler the EventHandler to add\n\t */\n\tpublic void addHandler(EventHandler handler);\n}", "public interface Proxy {\n\n /**\n * Provide proxy method handler {@link MethodHandler}.\n *\n ...
[ "0.6064291", "0.59441173", "0.580153", "0.5790092", "0.5675407", "0.5662826", "0.56504804", "0.56436366", "0.5630939", "0.5604323", "0.55857885", "0.55852133", "0.5570502", "0.5556667", "0.55564785", "0.55471677", "0.5541836", "0.5540805", "0.55253553", "0.5515219", "0.551094...
0.62821317
0
Wrap the observable to the Event Dispatch Thread for listening to events.
@Nonnull public static <T> Observable<T> observeOnEdt(@Nonnull Observable<T> observable) { return Reactive.observeOn(observable, DEFAULT_EDT_SCHEDULER.get()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tlog.info(\"Se completa con éxito el observable\");\n\t\t\t\t\t}", "@Nonnull \r\n\tpublic static <T> Observable<T> subscribeOnEdt(Observable<T> observable) {\r\n\t\treturn Reactive.registerOn(observable, DEFAULT_EDT_SCHEDULER.get());\r\n\t}", "public static ...
[ "0.62182945", "0.6168597", "0.5804475", "0.5789692", "0.5674288", "0.5674288", "0.55829793", "0.5520774", "0.5512811", "0.5454541", "0.54530305", "0.536782", "0.5337325", "0.5334271", "0.53299266", "0.53227496", "0.52835596", "0.52221274", "0.52110887", "0.5197534", "0.519246...
0.58351654
2
Replace the current default scheduler with the specified new scheduler. This method is threadsafe
@Nonnull public static Scheduler replaceDefaultEdtScheduler( @Nonnull Scheduler newScheduler) { if (newScheduler == null) { throw new IllegalArgumentException("newScheduler is null"); } return DEFAULT_EDT_SCHEDULER.getAndSet(newScheduler); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setScheduler(Scheduler scheduler)\r\n/* 25: */ {\r\n/* 26: 65 */ this.scheduler = scheduler;\r\n/* 27: */ }", "public static void restoreDefaultEdtScheduler() {\r\n\t\tDEFAULT_EDT_SCHEDULER.set(new DefaultEdtScheduler());\r\n\t}", "public synchronized Task setScheduler(Scheduler s)...
[ "0.7177563", "0.7049805", "0.6967745", "0.68969494", "0.67959535", "0.6552489", "0.6511427", "0.6333241", "0.62234557", "0.6136375", "0.61361724", "0.6115277", "0.60855985", "0.6079225", "0.60754025", "0.60229117", "0.60185593", "0.59725124", "0.5867185", "0.57101685", "0.565...
0.76911515
0
Restore the default scheduler back to the DefaultScheduler used when this class was initialized.
public static void restoreDefaultEdtScheduler() { DEFAULT_EDT_SCHEDULER.set(new DefaultEdtScheduler()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public synchronized void resetSchedules() {\n schedules = null;\n }", "public void setDefaultSubscribeScheduler(Scheduler scheduler) {\n this.defaultSubscribeScheduler = scheduler;\n }", "public void setScheduler(Scheduler scheduler)\r\n/* 25: */ {\r\n/* 26: 65 */ this.scheduler ...
[ "0.67718714", "0.65036446", "0.6393197", "0.6378667", "0.6352655", "0.6319131", "0.62076586", "0.6084892", "0.60303974", "0.5951901", "0.5862413", "0.58209795", "0.5797819", "0.57899034", "0.57827586", "0.5771181", "0.57369936", "0.5636467", "0.56109244", "0.5595918", "0.5587...
0.8252908
0
Wrap the observable to the Event Dispatch Thread for subscribing to events.
@Nonnull public static <T> Observable<T> subscribeOnEdt(Observable<T> observable) { return Reactive.registerOn(observable, DEFAULT_EDT_SCHEDULER.get()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tlog.info(\"Se completa con éxito el observable\");\n\t\t\t\t\t}", "private void threads()\n {\n {\n Observable myObservable = Observable.create\n (\n new Observable.OnSubscribe<GetArtistQuery>() \n {\n ...
[ "0.6426762", "0.62329364", "0.5841843", "0.5841843", "0.5840293", "0.5818034", "0.5811152", "0.57369435", "0.5727143", "0.5662069", "0.5646148", "0.5526445", "0.54942364", "0.5489795", "0.547814", "0.5432933", "0.54323745", "0.5419358", "0.53816134", "0.5380254", "0.5372056",...
0.64148015
1
TODO Autogenerated method stub Lets say we have A B and C towers Tower A has n number of the plates and we need to move all plates to the C towers
public static void main(String[] args) { doTowers(4, "A", "B", "C"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void moveVehicles() {\n for (int i = roads.size() - 1; i >= 0; i--) {\n roads.get(i).moveVehicles();\n checkTurns(i);\n\n\n }\n\n }", "static void hanoi(int n, int[] A, int[] B, int[] C){\n count++;\n /*\n * a_n = 2*a_n-1 + 1\n * 1. move n-1 disk...
[ "0.60700715", "0.6052717", "0.5965296", "0.5953641", "0.56999624", "0.5500172", "0.5482341", "0.54743445", "0.54538065", "0.5449964", "0.54110783", "0.5399055", "0.53957146", "0.5392265", "0.537429", "0.5307807", "0.5290675", "0.52812624", "0.5270203", "0.52680373", "0.524719...
0.0
-1
Reloads the configs from jar.
public void reload() { fileConfiguration = YamlConfiguration.loadConfiguration(configFile); final InputStream defaultConfigStream = plugin.getResource(fileName); if (defaultConfigStream != null) { final Reader defConfigStream = new InputStreamReader(defaultConfigStream, StandardCharsets.UTF_8); final YamlConfiguration defConfig = YamlConfiguration.loadConfiguration(defConfigStream); fileConfiguration.setDefaults(defConfig); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void reload(){\n\t\tplugin_configuration.load();\n\t\tflarf_configuration.load();\n\t\tmessages_configuration.load();\n\t\tstadiumlisting.load();\n\t}", "public void reloadFile() {\n if (configuration == null) {\n file = new File(plugin.getDataFolder(), fileName);\n }\n con...
[ "0.6792836", "0.6736486", "0.6676542", "0.64486265", "0.62346196", "0.6126557", "0.6081577", "0.6075218", "0.5903215", "0.588724", "0.58850837", "0.5865714", "0.58586276", "0.57712233", "0.5686012", "0.5685872", "0.56593347", "0.55997837", "0.5586181", "0.5552767", "0.5528642...
0.64109474
4
Save the current config.
public void save() { if (fileConfiguration == null || configFile == null) return; try { getConfig().save(configFile); } catch (final IOException e) { plugin.getLogger().severe(String.format("[%s] Could not save config to %s : %s", plugin.getName(), configFile, e)); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void save() {\n try {\n yml.save(config);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public void save() {\n try {\n ConfigurationProvider.getProvider(YamlConfiguration.class).save(this.configuration, this.getConfigurationFi...
[ "0.79168564", "0.7854421", "0.78436536", "0.7751597", "0.7432977", "0.73939747", "0.7245428", "0.7245428", "0.7245428", "0.7245428", "0.7229984", "0.71603197", "0.7107687", "0.7090912", "0.70412254", "0.7030201", "0.7012696", "0.6994511", "0.69775003", "0.6974653", "0.6926723...
0.7934478
0
Writes the given 16bit Short to the given OutputStream.
public static int writeShort(OutputStream target, short value) throws IOException { target.write((byte) (value >>> 8 & 255)); target.write((byte) (value & 255)); return Short.BYTES; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void writeShort(short value);", "void writeShort(int v) throws IOException;", "public void writeShort(short i) throws IOException {\n\t\twriteByte((byte) (i >> 8));\n\t\twriteByte((byte) i);\n\t}", "public StreamWriter write(short value)\r\n {\r\n \tif(order() == ByteOrder.LITTLE_ENDIAN){\r\n\t\t\t_buf...
[ "0.7763685", "0.76253635", "0.7421792", "0.72742975", "0.72425836", "0.71309876", "0.7114347", "0.6707555", "0.65685886", "0.6558335", "0.6424045", "0.6197819", "0.61915284", "0.6146222", "0.6075258", "0.60656613", "0.6065542", "0.60570145", "0.6025562", "0.6007674", "0.59316...
0.7758798
1
Writes the given 32bit Integer to the given byte array at the given offset.
public static int writeInt(byte[] target, int offset, int value) { target[offset] = (byte) (value >>> 24); target[offset + 1] = (byte) (value >>> 16); target[offset + 2] = (byte) (value >>> 8); target[offset + 3] = (byte) value; return Integer.BYTES; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void write(byte[] data, long offset);", "static void write32( int dword, OutputStream out )\n throws IOException\n {\n out.write( dword );\n out.write( dword >> 8 );\n out.write( dword >> 16 );\n out.write( dword >> 24 );\n }", "public static void intToByteArray(...
[ "0.66151154", "0.6588782", "0.6187556", "0.61825997", "0.6152845", "0.60103124", "0.596326", "0.58451796", "0.58368796", "0.58365905", "0.5830235", "0.5764606", "0.574212", "0.57334864", "0.55978525", "0.55161875", "0.5492974", "0.5492698", "0.5456312", "0.5439221", "0.542586...
0.6652616
0
Writes the given 32bit Integer to the given OutputStream.
public static int writeInt(OutputStream target, int value) throws IOException { target.write(value >>> 24); target.write(value >>> 16); target.write(value >>> 8); target.write(value); return Integer.BYTES; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static void write32( int dword, OutputStream out )\n throws IOException\n {\n out.write( dword );\n out.write( dword >> 8 );\n out.write( dword >> 16 );\n out.write( dword >> 24 );\n }", "public void writeInt(int value)\n throws java.io.IOException {\n\n if ...
[ "0.7830272", "0.6826565", "0.6459906", "0.64286304", "0.6374489", "0.6366069", "0.63613605", "0.632481", "0.6281304", "0.6280022", "0.60996073", "0.6098964", "0.60768926", "0.6000001", "0.598792", "0.59075904", "0.58597434", "0.5854963", "0.58290535", "0.5815104", "0.5809655"...
0.68447554
1
Reads a 32bit integer from the given byte array starting at the given position.
public static int readInt(byte[] source, int position) { return makeInt(source[position], source[position + 1], source[position + 2], source[position + 3]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static int toInt32(byte[] value, int startIndex) {\r\n\t\treturn ByteBuffer.wrap(value, startIndex, 4).order(ByteOrder.LITTLE_ENDIAN).getInt();\r\n\t}", "public static int toInt32(byte[] value) {\r\n\t\treturn toInt32(value, 0);\r\n\t}", "public int read_int32() throws IOException {\n byte bytes[...
[ "0.682737", "0.6670583", "0.66596186", "0.66424364", "0.66228175", "0.64780015", "0.6459954", "0.6435601", "0.6356253", "0.6350314", "0.6343315", "0.6310036", "0.6302452", "0.62853724", "0.6129083", "0.6101404", "0.60812783", "0.6081091", "0.60641134", "0.60377675", "0.601970...
0.7162346
0
Reads a 32bit integer from the given InputStream that was encoded using BitConverter.writeInt.
public static int readInt(InputStream source) throws IOException { int b1 = source.read(); int b2 = source.read(); int b3 = source.read(); int b4 = source.read(); if ((b1 | b2 | b3 | b4) < 0) { throw new EOFException(); } else { return makeInt(b1, b2, b3, b4); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static int readInt(InputStream is) throws IOException {\n int a = is.read();\n int b = is.read();\n int c = is.read();\n int d = is.read();\n return a | b << 8 | c << 16 | d << 24;\n }", "public int read_int32() throws IOException {\n byte bytes[] = read_bytes...
[ "0.75824696", "0.72631943", "0.7153833", "0.693065", "0.6806002", "0.6718065", "0.6560258", "0.651577", "0.65144813", "0.6504284", "0.6381604", "0.6320162", "0.62857294", "0.62414825", "0.62098366", "0.6142041", "0.6053833", "0.6039126", "0.60355127", "0.6017197", "0.60077727...
0.65633136
6
Composes a 32bit integer from the given byte components (BigEndian order).
public static int makeInt(int b1, int b2, int b3, int b4) { return (b1 & 0xFF) << 24 | (b2 & 0xFF) << 16 | (b3 & 0xFF) << 8 | (b4 & 0xFF); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static int toInt32(byte[] value) {\r\n\t\treturn toInt32(value, 0);\r\n\t}", "private int bytesToInt32(byte bytes[], Endianness endianness) {\n int number;\n\n if (Endianness.BIG_ENNDIAN == endianness) {\n number = ((bytes[0] & 0xFF) << 24) | ((bytes[1] & 0xFF) << 16) |\n ...
[ "0.6629298", "0.62801975", "0.625765", "0.61977524", "0.6046764", "0.59957063", "0.59782284", "0.595913", "0.5863641", "0.5780608", "0.5714208", "0.57070494", "0.56014687", "0.5597685", "0.55943096", "0.55837065", "0.5531365", "0.54805994", "0.54577017", "0.53984493", "0.5376...
0.5588441
15
Writes the given 64bit Long to the given byte array at the given offset.
public static int writeLong(byte[] target, int offset, long value) { target[offset] = (byte) (value >>> 56); target[offset + 1] = (byte) (value >>> 48); target[offset + 2] = (byte) (value >>> 40); target[offset + 3] = (byte) (value >>> 32); target[offset + 4] = (byte) (value >>> 24); target[offset + 5] = (byte) (value >>> 16); target[offset + 6] = (byte) (value >>> 8); target[offset + 7] = (byte) value; return Long.BYTES; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void writeLongs(long[] l, int off, int len) throws IOException;", "public static int putLong(byte[] bytes, int offset, long val) {\n if (bytes.length - offset < SIZEOF_LONG) {\n throw new IllegalArgumentException(\"Not enough room to put a long at\"\n + \" offset \" + offset ...
[ "0.7346971", "0.6906729", "0.6832406", "0.66718847", "0.6649353", "0.6562048", "0.6559245", "0.6261323", "0.61123836", "0.6082481", "0.5973001", "0.59513366", "0.5913857", "0.586734", "0.58364415", "0.5808793", "0.57796896", "0.5755287", "0.56943667", "0.5620842", "0.5615124"...
0.70436156
1
Writes the given 64bit Long to the given OutputStream.
public static int writeLong(OutputStream target, long value) throws IOException { target.write((byte) (value >>> 56)); target.write((byte) (value >>> 48)); target.write((byte) (value >>> 40)); target.write((byte) (value >>> 32)); target.write((byte) (value >>> 24)); target.write((byte) (value >>> 16)); target.write((byte) (value >>> 8)); target.write((byte) value); return Long.BYTES; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void writeLong(long value);", "void writeLong(long v) throws IOException;", "public void writeLong(long i) throws IOException {\n\t\twriteInt((int) (i >> 32));\n\t\twriteInt((int) i);\n\t}", "void writeLongs(long[] l, int off, int len) throws IOException;", "public ByteBuf writeLong(long value)\r\n/* 557: ...
[ "0.7379394", "0.7060964", "0.6937254", "0.6519455", "0.6085447", "0.60650194", "0.5977002", "0.59268653", "0.5923989", "0.5820335", "0.5623203", "0.5544935", "0.5497416", "0.54138225", "0.54046357", "0.5270863", "0.52337843", "0.5201498", "0.5176849", "0.5171441", "0.51657575...
0.7172112
1
Reads a 128bit UUID from the given byte array starting at the given position.
public static UUID readUUID(byte[] source, int position) { long msb = readLong(source, position); long lsb = readLong(source, position + Long.BYTES); return new UUID(msb, lsb); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public UUID(ByteBuffer byteArray) {\n data = new byte[16];\n byteArray.get(data);\n }", "public void parseUUIDHexBytes(byte[] serString, int offset) throws HyracksDataException {\n decodeBytesFromHex(serString, offset, uuidBytes, 0, 8);\n offset += 8;\n\n // Skip the hyphen ...
[ "0.57357895", "0.5599469", "0.55665547", "0.5434378", "0.5213197", "0.5192611", "0.5130373", "0.5124164", "0.49338078", "0.48752975", "0.47912094", "0.47898665", "0.4780661", "0.4776062", "0.4750523", "0.47105378", "0.46681124", "0.4658571", "0.46373016", "0.46215725", "0.461...
0.658261
0
Reads a 64bit long from the given byte array starting at the given position.
public static long readLong(byte[] source, int position) { return makeLong(source[position], source[position + 1], source[position + 2], source[position + 3], source[position + 4], source[position + 5], source[position + 6], source[position + 7]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract void read_longlong_array(long[] value, int offset, int\nlength);", "long fetch64(BytesStore bytes, @NonNegative long off) throws IllegalStateException, BufferUnderflowException {\n return bytes.readLong(off);\n }", "public abstract void read_ulonglong_array(long[] value,...
[ "0.72858256", "0.7253109", "0.71077853", "0.696367", "0.6961284", "0.68610835", "0.679736", "0.6785574", "0.6774843", "0.676852", "0.67569596", "0.6733996", "0.66324073", "0.66270816", "0.66158503", "0.66003305", "0.6574972", "0.65468824", "0.6540525", "0.65199995", "0.651809...
0.77159435
0
Composes 64bit long from the given byte components (in Big Endian order).
@SuppressWarnings("cast") public static long makeLong(int b1, int b2, int b3, int b4, int b5, int b6, int b7, int b8) { return ((long) b1 << 56) + ((long) (b2 & 255) << 48) + ((long) (b3 & 255) << 40) + ((long) (b4 & 255) << 32) + ((long) (b5 & 255) << 24) + (long) ((b6 & 255) << 16) + (long) ((b7 & 255) << 8) + (long) ((b8 & 255)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "long decodeLong();", "public static long toInt64(byte[] value) {\r\n\t\treturn toInt16(value, 0);\r\n\t}", "public long toLong()\n\t{\n\t\t// holds the int to return\n\t\tlong result = 0;\n\t\t\n\t\t// for every byte value\n\t\tfor (int i = 0; i < bytes.length; i++)\n\t\t{\n\t\t\t// Extract the bits out of the...
[ "0.7070348", "0.6982626", "0.69110763", "0.6602885", "0.65609086", "0.653638", "0.649424", "0.6356825", "0.63298965", "0.6189192", "0.6171907", "0.6160906", "0.615341", "0.60815245", "0.606661", "0.6002492", "0.598552", "0.59678113", "0.59589285", "0.595266", "0.59298587", ...
0.62677306
9
2. Implement the public void calculateSalary() method
@Override public void calculateSalary() { // TODO Auto-generated method stub salary = hoursWorked * hourlyWages; this.setSalary(salary); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void calculateSalary() ;", "@Override\n\tpublic void computeSalary(int empid) {\n\t\t\n\t}", "@Override\n\tpublic float CalculateSalary() {\n\t\treturn salary;\n\t}", "public abstract double salary();", "public void getSalary() {\n this.payDay(this.monthlyIncome);\n }", "@Override\r\n ...
[ "0.92361546", "0.8405343", "0.83813745", "0.8328196", "0.80857104", "0.80645764", "0.8014589", "0.7915124", "0.7868913", "0.7786997", "0.76956517", "0.76384765", "0.7432546", "0.74223214", "0.7373048", "0.73486775", "0.73200005", "0.73144984", "0.73058856", "0.73058856", "0.7...
0.80267525
6
Inflate the layout for this fragment
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View v = getView(inflater,R.layout.activity_registro,container); //Email no se puede cambiar mEmailView.setEnabled(false); //Cambiar título getActionBar().setTitle(R.string.titulo_perfil); //Obtener información cargarDatos(); return v; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_main_allinfo, container, false);\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup...
[ "0.6739604", "0.67235583", "0.6721706", "0.6698254", "0.6691869", "0.6687986", "0.66869223", "0.6684548", "0.66766286", "0.6674615", "0.66654444", "0.66654384", "0.6664403", "0.66596216", "0.6653321", "0.6647136", "0.66423255", "0.66388357", "0.6637491", "0.6634193", "0.66251...
0.0
-1
Cargar los datos de usuario
private void cargarDatos() { // Pantalla carga showProgress(true, mView, mProgressView, getContext()); Comando login = new LoginComando(KPantallas.PANTALLA_PERFIL); String email = UtilUI.getEmail(getContext()); String password = UtilUI.getPassword(getContext()); login.ejecutar(email,password); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void CargarDatosUsuario(String nickname, String mail, String nombre, String pass, DataDireccion direccion, String apellido, Date fechaNacimiento, String rutaImagen);", "private void cargarDatosUsuario() {\n this.textUsuario.setText(this.usuarioCargado.getUsuario());\n this.textContraseña.set...
[ "0.78260595", "0.7822775", "0.75531584", "0.7401172", "0.71752876", "0.7026924", "0.6783307", "0.6741358", "0.6681774", "0.66276306", "0.6612727", "0.65972257", "0.6595644", "0.6563985", "0.6539708", "0.6486802", "0.64751124", "0.6398734", "0.6372839", "0.6352962", "0.6335314...
0.7375317
4
//recursive method 27 1 (0 + 'A')+ 'A' if (n == 0) return ""; return convertToTitle((n 1) / 26) + (char) ((n 1) % 26 + 'A');
public String convertToTitle(int n) { StringBuilder res = new StringBuilder(); while (n > 0){ n--; res.insert(0,(char) (n % 26 + 'A')); n /= 26; } return res.toString(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static String convertToTitle(int n) {\n char a = 'A';\n StringBuilder sb = new StringBuilder();\n while (n / 26 > 0 && n != 26) {\n int temp = n % 26;\n if (n % 26 == 0) {\n sb.append((char) (a + 25));\n n = n/26-1;\n } else {\n ...
[ "0.8128551", "0.8050779", "0.7773026", "0.6172721", "0.6058362", "0.58957726", "0.5871466", "0.5867263", "0.5852504", "0.5852479", "0.5843753", "0.57664156", "0.5748577", "0.5703574", "0.56891584", "0.5628871", "0.56156915", "0.5612543", "0.56017977", "0.55873454", "0.5585996...
0.7596082
3
TODO Autogenerated method stub
private static List<List<Integer>> subsetsHelper(int[] nums, int start) { if(start==nums.length) { ArrayList<List<Integer>> out=new ArrayList<>(); out.add(new ArrayList<>()); return out; } List<List<Integer>> child=subsetsHelper(nums, start+1); List<List<Integer>> ans=new ArrayList<List<Integer>>(child); ArrayList<Integer> row; for(int i=0;i<child.size();i++) { row=new ArrayList<>(); for(int j=0;j<child.get(i).size();j++) { row.add(child.get(i).get(j)); } row.add(nums[start]); ans.add(row); } return ans; }
{ "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 static void main(String[] args) { int[] input= {1,2,3}; System.out.println(subsets(input)); }
{ "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
Get the URL to redirect in case an invalid go mapping key was provided.
@Nonnull @OverrideOnDemand protected SimpleURL getURLForNonExistingItem (@Nonnull final IRequestWebScopeWithoutResponse aRequestScope, @Nonnull final String sKey) { return new SimpleURL (aRequestScope.getFullContextPath ()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public URL getURL(String key) {\n\t\tURL defaultValue = (URL) getDefault(key);\n\t\tString sp = internal.getProperty(key);\n\t\tif (sp == null) {\n\t\t\treturn defaultValue;\n\t\t}\n\t\tURL url = null;\n\t\ttry {\n\t\t\turl = new URL(sp);\n\t\t} catch (MalformedURLException ex) {\n\t\t\tinternal.remove(key);\n\t\t...
[ "0.5883345", "0.56248343", "0.5623573", "0.56213605", "0.550626", "0.5432443", "0.540724", "0.5378489", "0.53520787", "0.5336932", "0.533679", "0.5271595", "0.5256457", "0.5251916", "0.52438664", "0.523398", "0.5197338", "0.51962745", "0.5176819", "0.5174557", "0.508134", "...
0.48530433
37
Callback method that allows for customizing the result URL.
@OverrideOnDemand protected void modifyResultURL (@Nonnull final IRequestWebScopeWithoutResponse aRequestScope, @Nonnull final String sKey, @Nonnull final SimpleURL aTargetURL) {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getQueryResultsUrl();", "public abstract String getOutputUrl();", "void setQueryResultsUrl(String queryResultsUrl);", "public String buildReplyURL(Result result, ResultHandler resultHandler) {\n return replace(META_PLACEHOLDER, String.valueOf(result.getResultMetadata()), replace(TYPE_PLACEHOLDE...
[ "0.69598186", "0.68094444", "0.6517246", "0.6178967", "0.6071022", "0.6006647", "0.59505385", "0.59313995", "0.5911911", "0.5902688", "0.57281536", "0.569334", "0.56656605", "0.5651082", "0.5628738", "0.56256723", "0.5625298", "0.56119454", "0.56038326", "0.5587392", "0.55842...
0.59127307
8
cut the leading "/" and strip of any ";jsessionid="!
@Override protected void handleRequest (@Nonnull final IRequestWebScopeWithoutResponse aRequestScope, @Nonnull final UnifiedResponse aUnifiedResponse) throws Exception { String sKey = aRequestScope.getPathWithinServlet (); if (sKey.length () > 0) sKey = sKey.substring (1); SimpleURL aTargetURL = null; final GoMappingItem aGoItem = getResolvedGoMappingItem (sKey); if (aGoItem == null) { s_aLogger.warn ("No such go-mapping item '" + sKey + "'"); // Goto start page aTargetURL = getURLForNonExistingItem (aRequestScope, sKey); s_aStatsError.increment (sKey); } else { // Base URL if (aGoItem.isInternal ()) { final IMenuTree aMenuTree = getMenuTree (); if (aMenuTree != null) { // If it is an internal menu item, check if this internal item is an // "external menu item" and if so, directly use the URL of the // external menu item final IRequestManager aARM = ApplicationRequestManager.getRequestMgr (); final String sTargetMenuItemID = aARM.getMenuItemFromURL (aGoItem.getTargetURL ()); final IMenuObject aMenuObj = aMenuTree.getItemDataWithID (sTargetMenuItemID); if (aMenuObj instanceof IMenuItemExternal) { aTargetURL = new SimpleURL (((IMenuItemExternal) aMenuObj).getURL ()); } } } if (aTargetURL == null) { // Default case - use target link from go-mapping aTargetURL = aGoItem.getTargetURL (); } // Callback modifyResultURL (aRequestScope, sKey, aTargetURL); s_aStatsOK.increment (sKey); } // Append all request parameters of this request // Don't use the request attributes, as there might be more of them final Enumeration <?> aEnum = aRequestScope.getRequest ().getParameterNames (); while (aEnum.hasMoreElements ()) { final String sParamName = (String) aEnum.nextElement (); final String [] aParamValues = aRequestScope.getRequest ().getParameterValues (sParamName); if (aParamValues != null) for (final String sParamValue : aParamValues) aTargetURL.add (sParamName, sParamValue); } if (s_aLogger.isDebugEnabled ()) s_aLogger.debug ("Following go-mapping item '" + sKey + "' to " + aTargetURL.getAsString ()); else if (GlobalDebug.isDebugMode ()) s_aLogger.info ("Following go-mapping item '" + sKey + "' to " + aTargetURL.getAsString ()); // Main redirect :) aUnifiedResponse.setRedirect (aTargetURL); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static String stripJsessionId( String url ) {\n // Strip off jsessionid found in referer URL\n int startPos = url.indexOf(\";jsessionid=\");\n if ( startPos != -1 ) {\n int endPos = url.indexOf(\"?\",startPos);\n if ( endPos == -1 ) {\n url = url.sub...
[ "0.7782265", "0.5876006", "0.55681664", "0.5392438", "0.531991", "0.5276627", "0.52643126", "0.5230497", "0.5226832", "0.51847434", "0.510647", "0.50272363", "0.50216985", "0.50152063", "0.50152063", "0.50152063", "0.50152063", "0.50032747", "0.5002309", "0.49920642", "0.4978...
0.0
-1
TODO Autogenerated method stub
@Override public void onCreate(Bundle savedInstanceState) { Log.d("CookFragment", "onCreate"); super.onCreate(savedInstanceState); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { Log.d("CookFragment", "onCreateView"); return inflater.inflate(R.layout.pull_to_refresh, container, false); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
Constructor of the object.
public LoginServlet() { super(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Constructor() {\r\n\t\t \r\n\t }", "public Constructor(){\n\t\t\n\t}", "public Curso() {\r\n }", "private Instantiation(){}", "public CyanSus() {\n\n }", "public RngObject() {\n\t\t\n\t}", "public PSRelation()\n {\n }", "public Orbiter() {\n }", "private SingleObject()\r\n {\r\n }", ...
[ "0.85453546", "0.83174706", "0.72354287", "0.7234532", "0.7211791", "0.71650505", "0.71315366", "0.71215373", "0.7097914", "0.7087967", "0.7087348", "0.7070951", "0.7054235", "0.70462006", "0.70424324", "0.70329", "0.6996156", "0.69732815", "0.69716096", "0.6948889", "0.69442...
0.0
-1
Destruction of the servlet.
public void destroy() { super.destroy(); // Just puts "destroy" string in log // Put your code here }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void destroy() {\n\t\tsuper.destroy(); \n\t\tSystem.out.println(\"=====destory servlet=========\");\n\t}", "public final void destroy()\n {\n log.info(\"PerformanceData Servlet: Done shutting down!\");\n }", "@Override\r\n\tpublic void destroy() {\n\t\tSystem.out.println(\"second servlet de...
[ "0.835784", "0.80690575", "0.7902374", "0.7501267", "0.7444426", "0.6998421", "0.69508785", "0.6785541", "0.66464895", "0.662976", "0.6534336", "0.6458856", "0.64187515", "0.63866496", "0.6370497", "0.6355608", "0.6355608", "0.6355608", "0.6355608", "0.6345322", "0.6335198", ...
0.0
-1
The doGet method of the servlet. This method is called when a form has its tag value method equals to get.
public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.setContentType("application/json"); PrintWriter out = response.getWriter(); out.println("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">"); out.println("<HTML>"); out.println(" <HEAD><TITLE>A Servlet</TITLE></HEAD>"); out.println(" <BODY>"); out.print(" This is "); out.print(this.getClass()); out.println(", using the GET method"); out.println(" </BODY>"); out.println("</HTML>"); out.flush(); out.close(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tSystem.out.println(\"get\");\n\t\tthis.doPost(req, resp);\n\t}", "@Override\n \tpublic void doGet(HttpServletRequest req, HttpServletResponse resp)\n \t\t\tthrows ServletException, IOEx...
[ "0.74341244", "0.7353054", "0.7256314", "0.7253137", "0.72450805", "0.72428226", "0.7208128", "0.7208128", "0.7206647", "0.7201727", "0.7201513", "0.718398", "0.7174356", "0.71718556", "0.71598417", "0.71562976", "0.7153253", "0.7152111", "0.71410966", "0.71398276", "0.713982...
0.0
-1
The doPost method of the servlet. This method is called when a form has its tag value method equals to post.
public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.setContentType("application/json"); PrintWriter out = response.getWriter(); AdminDAO adminDAO = new AdminDAO(); AdminBIZ adminBIZ = new AdminBIZ(adminDAO); Admin admin = null; String msgStr = null; JsonMessage jm = new JsonMessage(); // String str = (String) request.getParameter("postString"); // System.out.println(str); // if(str == null){ // jm.setMessage("no data"); // jm.setSucceed(false); // out.println(jm.toJSONString()); // out.flush(); // out.close(); // return; // } // Map<String, String> jsonMap = MyJSONParser.jSonEntityToMap(str); // // String userName = jsonMap.get("username"); // String passWord = jsonMap.get("password"); String userName = request.getParameter("username"); String passWord = request.getParameter("password"); if(userName == null){ jm.setMessage("empty username"); jm.setSucceed(false); out.println(jm.toJSONString()); out.flush(); out.close(); return; } if(passWord == null){ jm.setMessage("empty password"); jm.setSucceed(false); out.println(jm.toJSONString()); out.flush(); out.close(); return; } try { admin = adminBIZ.adminLogin(userName, passWord); msgStr = "succeed"; } catch (Exception e) { msgStr = e.getMessage(); }finally{ request.getSession().setAttribute("currentAdmin", admin); if(admin == null){ jm.setSucceed(false); jm.setMessage(msgStr); }else{ jm.addData("username", admin.getUsername()); jm.addData("email", admin.getEmail()); jm.setSucceed(true); jm.setMessage(JsonMessage.SUCCEED_MSG); System.out.println(this.getClass().getName()+":"+admin.getUsername() + " login!"); } String jStr = jm.toJSONString(); out.println(jStr); out.flush(); out.close(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n }", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\n }", "protected void doPost(HttpServletRequest request, H...
[ "0.7657979", "0.7603154", "0.7525073", "0.74696475", "0.74696475", "0.74696475", "0.74696475", "0.74696475", "0.74696475", "0.74696475", "0.74696475", "0.74696475", "0.74696475", "0.74696475", "0.74691594", "0.74283475", "0.74123454", "0.74029684", "0.73862916", "0.7371971", ...
0.0
-1
Initialization of the servlet.
public void init() throws ServletException { // Put your code here }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void init() throws ServletException {\r\n\r\n\t}", "public void init() throws ServletException {\n }", "public void init() throws ServletException {\n\t\t\n\t}", "public void init() throws ServletException {\r\n\t\t// Put your code here\r\n\t}", "public void init() throws ServletException {\r\n\t...
[ "0.81776613", "0.8165632", "0.8125925", "0.81145406", "0.81145406", "0.81145406", "0.81145406", "0.81145406", "0.81145406", "0.81145406", "0.81145406", "0.81145406", "0.81145406", "0.81145406", "0.81145406", "0.81145406", "0.81145406", "0.81145406", "0.81145406", "0.81145406", ...
0.80423874
62
Use url " for switch window WebDriverWait wait = new WebDriverWait(driver,15); WebElement switchHeading=wait.until(ExpectedConditions.presenceOfElementLocated(By.tagName("h1"))); System.out.println("Heading="+switchHeading.getText());
@Test(groups="swithorAlert") public void switchWindow() { WebElement newtabButton = driver.findElement(By.id("new-tab-button")); Assert.assertNotNull(newtabButton, "New tab button not present"); newtabButton.click(); String orgHandle = driver.getWindowHandle(); for (String handle: driver.getWindowHandles()) { if(!handle.equals(orgHandle)) { driver.switchTo().window(handle); } } System.out.println("Switched window Url="+driver.getCurrentUrl()); // Click on Alert }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Then(\"^check the heading of the page$\")\r\n\tpublic void check_the_heading_of_the_page() throws Exception {\n\t\tString heading=driver.findElement(By.xpath(\".//*[@id='mainCnt']/div[1]/div[1]/h1\")).getText();\r\n\t\tif(heading.contentEquals(\"Hotel Booking Application\")) {\r\n\t\t\tSystem.out.println(\"conten...
[ "0.686335", "0.6662314", "0.6544684", "0.64887017", "0.6355167", "0.6348991", "0.63366646", "0.6334338", "0.63277453", "0.6317374", "0.6302575", "0.6274055", "0.6259078", "0.62283784", "0.62254", "0.62201357", "0.6205828", "0.6191672", "0.6189016", "0.61669177", "0.61641926",...
0.5748277
77
TODO Autogenerated method stub
public static void main(String[] args) { try { copy(new RandomAccessFile("copyfrom.jpg", "r"), new RandomAccessFile("copyto.jpg","rw")); } catch (FileNotFoundException e) { // TODO Auto-generated catch block e.printStackTrace(); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } }
{ "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
optional string loginapihitcount = 1; optional string loginapihitcount = 1;
boolean hasLoginapihitcount();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getLoginapihitcount();", "public Builder setLoginapihitcount(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n loginapihitcount_ = value;\n onChanged();\n return this;\n }", "String getLoginapifa...
[ "0.77915645", "0.73941565", "0.73520094", "0.7162197", "0.6833058", "0.67858356", "0.6760273", "0.67002416", "0.66930634", "0.6683301", "0.65634245", "0.65448433", "0.6490724", "0.6452806", "0.63908947", "0.6387854", "0.6069422", "0.6021466", "0.59962165", "0.596871", "0.5776...
0.7335603
3
optional string loginapihitcount = 1;
String getLoginapihitcount();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean hasLoginapihitcount();", "String getLoginapifailhitcount();", "public Builder setLoginapihitcount(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n loginapihitcount_ = value;\n onChanged();\n return ...
[ "0.7918116", "0.7852059", "0.77388686", "0.7704054", "0.7551996", "0.7530766", "0.72142684", "0.7207933", "0.7162313", "0.71003526", "0.70700085", "0.70622945", "0.698503", "0.6977212", "0.67779577", "0.663699", "0.64600563", "0.642624", "0.62046194", "0.6179239", "0.6178672"...
0.8488298
0
optional string loginapihitcount = 1;
com.google.protobuf.ByteString getLoginapihitcountBytes();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getLoginapihitcount();", "boolean hasLoginapihitcount();", "String getLoginapifailhitcount();", "public Builder setLoginapihitcount(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n loginapihitcount_ = value;\n ...
[ "0.84874594", "0.79174185", "0.78509414", "0.77382296", "0.7703129", "0.7550366", "0.7529102", "0.7212783", "0.72071624", "0.7161464", "0.709887", "0.7069629", "0.6983542", "0.69757", "0.6777369", "0.66359335", "0.64585537", "0.64246863", "0.62041354", "0.6177276", "0.6177040...
0.7061121
12
optional string loginapisuccessfulhitcount = 2; optional string loginapisuccessfulhitcount = 2;
boolean hasLoginapisuccessfulhitcount();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getLoginapisuccessfulhitcount();", "public Builder setLoginapisuccessfulhitcount(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n loginapisuccessfulhitcount_ = value;\n onChanged();\n return this;\n ...
[ "0.78948283", "0.72794574", "0.72333616", "0.71604234", "0.69210684", "0.6726806", "0.6688476", "0.6663244", "0.6574918", "0.65004426", "0.64073783", "0.6401601", "0.6345188", "0.6278205", "0.6253045", "0.61900705", "0.61509186", "0.61127317", "0.60902625", "0.5863477", "0.58...
0.74295
1
optional string loginapisuccessfulhitcount = 2;
String getLoginapisuccessfulhitcount();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean hasLoginapisuccessfulhitcount();", "String getLoginapihitcount();", "String getLoginapifailhitcount();", "public Builder setLoginapisuccessfulhitcount(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n loginapisu...
[ "0.808382", "0.7677676", "0.7548914", "0.75319356", "0.73574704", "0.72110265", "0.7198197", "0.7118543", "0.69956756", "0.698287", "0.6873211", "0.68038565", "0.67701405", "0.66770756", "0.6589653", "0.65279794", "0.6520926", "0.6342305", "0.6177754", "0.61722237", "0.615276...
0.850415
0
optional string loginapisuccessfulhitcount = 2;
com.google.protobuf.ByteString getLoginapisuccessfulhitcountBytes();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getLoginapisuccessfulhitcount();", "boolean hasLoginapisuccessfulhitcount();", "String getLoginapihitcount();", "String getLoginapifailhitcount();", "public Builder setLoginapisuccessfulhitcount(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ...
[ "0.85049677", "0.80841714", "0.7678512", "0.7548945", "0.75329345", "0.7358085", "0.72117716", "0.71990967", "0.71182066", "0.6996518", "0.6983773", "0.6874763", "0.6771168", "0.66781324", "0.6590667", "0.6528995", "0.6521855", "0.634339", "0.61777323", "0.617128", "0.6153005...
0.6806247
12
optional string loginapifailhitcount = 3; optional string loginapifailhitcount = 3;
boolean hasLoginapifailhitcount();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getLoginapifailhitcount();", "public Builder setLoginapifailhitcount(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n loginapifailhitcount_ = value;\n onChanged();\n return this;\n }", "String g...
[ "0.76658523", "0.7222118", "0.67249674", "0.66368294", "0.66025335", "0.6517257", "0.65080565", "0.6372888", "0.62107587", "0.61910665", "0.6121601", "0.61050755", "0.6094115", "0.60918653", "0.59350157", "0.5898721", "0.5873627", "0.5814753", "0.5750047", "0.57437474", "0.55...
0.69578004
2
optional string loginapifailhitcount = 3;
String getLoginapifailhitcount();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean hasLoginapifailhitcount();", "public Builder setLoginapifailhitcount(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n loginapifailhitcount_ = value;\n onChanged();\n return this;\n }", "String ...
[ "0.7517852", "0.74610037", "0.7275202", "0.7119141", "0.707585", "0.702028", "0.68040836", "0.67406684", "0.6712729", "0.66411185", "0.66343474", "0.6538957", "0.64885825", "0.6488211", "0.64567745", "0.63528824", "0.63027894", "0.62966555", "0.61416316", "0.6081603", "0.6047...
0.8242716
0
optional string loginapifailhitcount = 3;
com.google.protobuf.ByteString getLoginapifailhitcountBytes();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getLoginapifailhitcount();", "boolean hasLoginapifailhitcount();", "public Builder setLoginapifailhitcount(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n loginapifailhitcount_ = value;\n onChanged();\n ...
[ "0.82416093", "0.75161445", "0.7460275", "0.7274", "0.71181417", "0.70746297", "0.7019011", "0.6803452", "0.6738979", "0.6710919", "0.66396385", "0.6632371", "0.653695", "0.64862347", "0.6454859", "0.63518375", "0.6301712", "0.629641", "0.6140005", "0.6078558", "0.6045456", ...
0.64862883
13
optional string loginapiavgrtt = 4; optional string loginapiavgrtt = 4;
boolean hasLoginapiavgrtt();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getLoginapiavgrtt();", "Login.Req getLoginReq();", "public Builder setLoginapiavgrtt(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000008;\n loginapiavgrtt_ = value;\n onChanged();\n return this;\n }",...
[ "0.73328966", "0.6467991", "0.63609535", "0.6202284", "0.6109925", "0.6098746", "0.6004289", "0.59081686", "0.5897827", "0.5865573", "0.58507687", "0.57927245", "0.577536", "0.5745132", "0.5692921", "0.5687305", "0.56704724", "0.56682026", "0.56575966", "0.5633314", "0.557847...
0.6650026
1
optional string loginapiavgrtt = 4;
String getLoginapiavgrtt();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean hasLoginapiavgrtt();", "Login.Req getLoginReq();", "public Builder setLoginapiavgrtt(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000008;\n loginapiavgrtt_ = value;\n onChanged();\n return this;\n }"...
[ "0.73495543", "0.6976575", "0.68082654", "0.6659085", "0.664501", "0.65725267", "0.65545976", "0.6438491", "0.641584", "0.6371851", "0.63288283", "0.6299088", "0.62518233", "0.6248039", "0.6226249", "0.6199015", "0.61363107", "0.61249936", "0.6108386", "0.6084796", "0.6046347...
0.8288852
0
optional string loginapiavgrtt = 4;
com.google.protobuf.ByteString getLoginapiavgrttBytes();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getLoginapiavgrtt();", "boolean hasLoginapiavgrtt();", "Login.Req getLoginReq();", "public Builder setLoginapiavgrtt(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000008;\n loginapiavgrtt_ = value;\n onChanged()...
[ "0.82879096", "0.7348583", "0.69765544", "0.6807883", "0.6658532", "0.66438204", "0.65712255", "0.65543455", "0.64402974", "0.6414725", "0.6371812", "0.6328732", "0.6296803", "0.6251818", "0.6248362", "0.62266284", "0.6136037", "0.6124816", "0.6107898", "0.608395", "0.6045863...
0.6198562
16
Use KafkaMessage.newBuilder() to construct.
private KafkaMessage(com.google.protobuf.GeneratedMessage.Builder<?> builder) { super(builder); this.unknownFields = builder.getUnknownFields(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private KafkaLoggingMessage(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }", "private Message(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n }", "public Builder setMessage(com.g...
[ "0.7195618", "0.6553998", "0.6391669", "0.63891155", "0.63891155", "0.63891155", "0.63891155", "0.6388695", "0.6362268", "0.6362268", "0.6360168", "0.6360168", "0.6360168", "0.6360168", "0.6332998", "0.6332998", "0.6332998", "0.6332998", "0.632371", "0.6308588", "0.6308588", ...
0.78147775
0
optional string loginapihitcount = 1;
public boolean hasLoginapihitcount() { return ((bitField0_ & 0x00000001) == 0x00000001); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getLoginapihitcount();", "boolean hasLoginapihitcount();", "String getLoginapifailhitcount();", "public Builder setLoginapihitcount(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n loginapihitcount_ = value;\n ...
[ "0.8488298", "0.7918116", "0.7852059", "0.77388686", "0.7704054", "0.7551996", "0.7530766", "0.72142684", "0.7207933", "0.7162313", "0.71003526", "0.70700085", "0.70622945", "0.698503", "0.67779577", "0.663699", "0.64600563", "0.642624", "0.62046194", "0.6179239", "0.6178672"...
0.6977212
14
optional string loginapihitcount = 1;
public String getLoginapihitcount() { Object ref = loginapihitcount_; if (ref instanceof String) { return (String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { loginapihitcount_ = s; } return s; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getLoginapihitcount();", "boolean hasLoginapihitcount();", "String getLoginapifailhitcount();", "public Builder setLoginapihitcount(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n loginapihitcount_ = value;\n ...
[ "0.84874594", "0.79174185", "0.78509414", "0.77382296", "0.7703129", "0.7529102", "0.7212783", "0.72071624", "0.7161464", "0.709887", "0.7069629", "0.7061121", "0.6983542", "0.69757", "0.6777369", "0.66359335", "0.64585537", "0.64246863", "0.62041354", "0.6177276", "0.6177040...
0.7550366
5
optional string loginapihitcount = 1;
public com.google.protobuf.ByteString getLoginapihitcountBytes() { Object ref = loginapihitcount_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (String) ref); loginapihitcount_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getLoginapihitcount();", "boolean hasLoginapihitcount();", "String getLoginapifailhitcount();", "public Builder setLoginapihitcount(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n loginapihitcount_ = value;\n ...
[ "0.84873605", "0.79169476", "0.78511333", "0.7739324", "0.77032757", "0.75518847", "0.753078", "0.7213793", "0.7207009", "0.716102", "0.7070011", "0.7061089", "0.6983879", "0.6976006", "0.6778419", "0.6637159", "0.64601576", "0.64264315", "0.6203875", "0.61788446", "0.6177549...
0.70998836
10
optional string loginapisuccessfulhitcount = 2;
public boolean hasLoginapisuccessfulhitcount() { return ((bitField0_ & 0x00000002) == 0x00000002); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getLoginapisuccessfulhitcount();", "boolean hasLoginapisuccessfulhitcount();", "String getLoginapihitcount();", "String getLoginapifailhitcount();", "public Builder setLoginapisuccessfulhitcount(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ...
[ "0.850415", "0.808382", "0.7677676", "0.7548914", "0.75319356", "0.73574704", "0.72110265", "0.7198197", "0.7118543", "0.69956756", "0.6873211", "0.68038565", "0.67701405", "0.66770756", "0.6589653", "0.65279794", "0.6520926", "0.6342305", "0.6177754", "0.61722237", "0.615276...
0.698287
10
optional string loginapisuccessfulhitcount = 2;
public String getLoginapisuccessfulhitcount() { Object ref = loginapisuccessfulhitcount_; if (ref instanceof String) { return (String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { loginapisuccessfulhitcount_ = s; } return s; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getLoginapisuccessfulhitcount();", "boolean hasLoginapisuccessfulhitcount();", "String getLoginapihitcount();", "String getLoginapifailhitcount();", "public Builder setLoginapisuccessfulhitcount(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ...
[ "0.85049677", "0.80841714", "0.7678512", "0.7548945", "0.75329345", "0.7358085", "0.72117716", "0.71182066", "0.6996518", "0.6983773", "0.6874763", "0.6806247", "0.6771168", "0.66781324", "0.6590667", "0.6528995", "0.6521855", "0.634339", "0.61777323", "0.617128", "0.61530054...
0.71990967
7
optional string loginapisuccessfulhitcount = 2;
public com.google.protobuf.ByteString getLoginapisuccessfulhitcountBytes() { Object ref = loginapisuccessfulhitcount_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (String) ref); loginapisuccessfulhitcount_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getLoginapisuccessfulhitcount();", "boolean hasLoginapisuccessfulhitcount();", "String getLoginapihitcount();", "String getLoginapifailhitcount();", "public Builder setLoginapisuccessfulhitcount(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ...
[ "0.8503927", "0.808409", "0.76775783", "0.75482816", "0.7531927", "0.7357934", "0.72105825", "0.71977806", "0.7118543", "0.6995424", "0.6982647", "0.6873059", "0.68042976", "0.6770124", "0.65908027", "0.6528995", "0.6521967", "0.6342778", "0.61780417", "0.6172203", "0.6154576...
0.66770846
14
optional string loginapifailhitcount = 3;
public boolean hasLoginapifailhitcount() { return ((bitField0_ & 0x00000004) == 0x00000004); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getLoginapifailhitcount();", "boolean hasLoginapifailhitcount();", "public Builder setLoginapifailhitcount(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n loginapifailhitcount_ = value;\n onChanged();\n ...
[ "0.8242716", "0.7517852", "0.74610037", "0.7275202", "0.7119141", "0.707585", "0.702028", "0.68040836", "0.67406684", "0.6712729", "0.66411185", "0.66343474", "0.6538957", "0.64885825", "0.6488211", "0.63528824", "0.63027894", "0.62966555", "0.61416316", "0.6081603", "0.60472...
0.64567745
15
optional string loginapifailhitcount = 3;
public String getLoginapifailhitcount() { Object ref = loginapifailhitcount_; if (ref instanceof String) { return (String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { loginapifailhitcount_ = s; } return s; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getLoginapifailhitcount();", "boolean hasLoginapifailhitcount();", "public Builder setLoginapifailhitcount(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n loginapifailhitcount_ = value;\n onChanged();\n ...
[ "0.82416093", "0.75161445", "0.7460275", "0.7274", "0.71181417", "0.7019011", "0.6803452", "0.6738979", "0.6710919", "0.66396385", "0.6632371", "0.653695", "0.64862883", "0.64862347", "0.6454859", "0.63518375", "0.6301712", "0.629641", "0.6140005", "0.6078558", "0.6045456", ...
0.70746297
5
optional string loginapifailhitcount = 3;
public com.google.protobuf.ByteString getLoginapifailhitcountBytes() { Object ref = loginapifailhitcount_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (String) ref); loginapifailhitcount_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getLoginapifailhitcount();", "boolean hasLoginapifailhitcount();", "public Builder setLoginapifailhitcount(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n loginapifailhitcount_ = value;\n onChanged();\n ...
[ "0.824379", "0.7519197", "0.74609447", "0.72758305", "0.7119499", "0.7076786", "0.70214015", "0.68038803", "0.67415977", "0.6712798", "0.6641772", "0.66352737", "0.648964", "0.6489234", "0.6458192", "0.6353889", "0.63039273", "0.6296051", "0.6141714", "0.60814214", "0.6048242...
0.65398395
12
optional string loginapiavgrtt = 4;
public boolean hasLoginapiavgrtt() { return ((bitField0_ & 0x00000008) == 0x00000008); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getLoginapiavgrtt();", "boolean hasLoginapiavgrtt();", "Login.Req getLoginReq();", "public Builder setLoginapiavgrtt(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000008;\n loginapiavgrtt_ = value;\n onChanged()...
[ "0.8288852", "0.73495543", "0.6976575", "0.68082654", "0.6659085", "0.664501", "0.65725267", "0.65545976", "0.6438491", "0.641584", "0.6371851", "0.63288283", "0.6299088", "0.62518233", "0.6248039", "0.6226249", "0.6199015", "0.61363107", "0.61249936", "0.6108386", "0.6084796...
0.6017809
23
optional string loginapiavgrtt = 4;
public String getLoginapiavgrtt() { Object ref = loginapiavgrtt_; if (ref instanceof String) { return (String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { loginapiavgrtt_ = s; } return s; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getLoginapiavgrtt();", "boolean hasLoginapiavgrtt();", "Login.Req getLoginReq();", "public Builder setLoginapiavgrtt(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000008;\n loginapiavgrtt_ = value;\n onChanged()...
[ "0.82879096", "0.7348583", "0.69765544", "0.6807883", "0.6658532", "0.65712255", "0.65543455", "0.64402974", "0.6414725", "0.6371812", "0.6328732", "0.6296803", "0.6251818", "0.6248362", "0.62266284", "0.6198562", "0.6136037", "0.6124816", "0.6107898", "0.608395", "0.6045863"...
0.66438204
5