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
/ renamed from: a
public final int mo10620a(int i, Object... objArr) { switch (i) { case 0: return 96; case 1: return 84; case 2: Canvas canvas = (Canvas) objArr[0]; Looper looper = (Looper) objArr[1]; Matrix h = C...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }", "public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "interface C33292a {\n /* renamed fr...
[ "0.62497115", "0.6242887", "0.61394435", "0.61176854", "0.6114027", "0.60893", "0.6046901", "0.6024682", "0.60201293", "0.5975212", "0.59482527", "0.59121317", "0.5883635", "0.587841", "0.58703005", "0.5868436", "0.5864884", "0.5857492", "0.58306104", "0.5827752", "0.58272064...
0.0
-1
Constructs an instance that streams the given class path resource on demand.
public StreamableClassPathResource(final String name) { super(); this.name = name; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected abstract InputStream getStream(String resource);", "public static InputStream getStreamFromClassPath(String path) {\n\t\treturn ResourceUtils.class.getClassLoader().getResourceAsStream(path);\n\t}", "public ResourceFactory(){}", "public static ClassFileReader newInstance(Path path) throws IOExcepti...
[ "0.61561185", "0.6064801", "0.57372576", "0.56791973", "0.56754696", "0.56092656", "0.56006193", "0.5594071", "0.55711436", "0.5454493", "0.54416615", "0.54125047", "0.5378665", "0.5375763", "0.53553027", "0.53501606", "0.5327747", "0.5302834", "0.52939725", "0.52936506", "0....
0.6576401
0
Gets the location on the class path of the resource to be streamed.
public String getName() { return name; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getResourceLocation() {\n return resourceLocation;\n }", "public String sourceResourceLocation() {\n return this.sourceResourceLocation;\n }", "public String getStorageLocation() {\n\t\treturn io.getFile();\n\t}", "public String getClassPath();", "public String getLocation...
[ "0.6703899", "0.6349323", "0.59404325", "0.5843422", "0.58268493", "0.5786174", "0.56719625", "0.5644441", "0.56405175", "0.56343406", "0.5626046", "0.5614984", "0.55985326", "0.5558942", "0.55069673", "0.5487343", "0.54861045", "0.54831415", "0.54805034", "0.54761916", "0.54...
0.0
-1
Is this resource found on the classpath?
public boolean exists() { try { return open() != null; } catch (IOException e) { return false; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected boolean resourceExists() {\n\t\tIWorkspace workspace = ResourcesPlugin.getWorkspace();\n\t\tif (workspace == null)\n\t\t\treturn false;\n\t\treturn RodinDB.getTarget(workspace.getRoot(), this.getPath()\n\t\t\t\t.makeRelative(), true) != null;\n\t}", "boolean hasResource();", "public static boolean is...
[ "0.6958853", "0.6908473", "0.67928135", "0.6633232", "0.65749854", "0.6573426", "0.6542025", "0.64401144", "0.6380724", "0.63246155", "0.6209292", "0.61719704", "0.6136568", "0.61037266", "0.60836667", "0.6027477", "0.5996398", "0.5992821", "0.5987954", "0.5970641", "0.594610...
0.53353935
78
Opens a resource on the classpath.
@Override public InputStream open() throws IOException { return getClass().getClassLoader().getResourceAsStream(name); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void openResource(String resourcePath);", "public Resource load(String filename) throws MalformedURLException;", "public URL getResourceFile(String path){\n\n ClassLoader classLoader = getClass().getClassLoader();\n return classLoader.getResource(path);\n }", "public InputStream open() {\n ...
[ "0.7601508", "0.63677645", "0.5971133", "0.5882829", "0.58709073", "0.5837077", "0.580833", "0.5693013", "0.56696075", "0.56672233", "0.5562329", "0.5529959", "0.55026954", "0.5465933", "0.5460486", "0.5455401", "0.5454863", "0.5428262", "0.5410351", "0.54042363", "0.54034835...
0.6074866
2
Sleep and ignore any exceptions.
public void sleepy(long ms) { try { sleep(ms); } catch(InterruptedException e) {} }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void sleep() {\n try {\n Thread.sleep(3000L);\n }\n catch (Exception ignored) {\n Log.trace(\"Sleep got interrupted.\");\n }\n }", "private void sleep()\n {\n try {\n Thread.sleep(Driver.sleepTimeMs);\n }\n catch (Int...
[ "0.81599855", "0.76011133", "0.7514545", "0.7435046", "0.73751074", "0.72658485", "0.7195805", "0.7183365", "0.71411204", "0.71182156", "0.7116033", "0.7116033", "0.71012264", "0.7087443", "0.7054094", "0.7053934", "0.7043409", "0.6987424", "0.6954155", "0.69100016", "0.68802...
0.6110642
80
override to implement your own handler
abstract public TelnetServerHandler createHandler(TelnetSocket s);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void handleResponse() {\n\t\t\n\t}", "@Override\n\tprotected void dispatch(CometResponseHandler handler) {\n\t\t\n\t}", "protected abstract void runHandler();", "@Override\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t\t \n\t\t\t}", "@Override\n\t\t\tpublic void handleEvent(Event...
[ "0.7047534", "0.69254875", "0.68283314", "0.6796891", "0.6796891", "0.6617557", "0.6617557", "0.6617557", "0.66153353", "0.66080815", "0.66080815", "0.66080815", "0.66080815", "0.66080815", "0.6603222", "0.6586495", "0.656919", "0.65501493", "0.6546144", "0.64821565", "0.6460...
0.0
-1
Task task doesn't matter what you have in constructor, it what data is been passed
@PostMapping("/tasks") public List<Task> postTasks(@RequestBody Task task) { if (task.getAssignee().equals("")) { task.setStatus("Available"); }else { task.setStatus("Assigned"); sentSMS(task.getTitle()); } taskRepository.save(task); List<T...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Task(){}", "public Task(){\n super();\n }", "public Task() { }", "public Task() {\r\n }", "protected TaskFlow( ) { }", "public Task() {\n\t}", "public Task() {\n }", "public Task(String description){\n this.description = description;\n this.isDone = false;\n }"...
[ "0.79349995", "0.77820826", "0.77061087", "0.7702918", "0.76493484", "0.76264095", "0.75769407", "0.7273981", "0.7273981", "0.7186662", "0.7172528", "0.71596587", "0.7132176", "0.7132176", "0.7132176", "0.7071064", "0.70429265", "0.7041622", "0.7025044", "0.7020247", "0.69916...
0.0
-1
/ Lab 27: Structuring Data with NoSQL
@GetMapping("/users/{name}/tasks") public List<Task> getTaskByAssignee(@PathVariable String name){ List<Task> allTask = taskRepository.findByAssignee(name); return allTask; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) throws IOException {\n System.setProperty(\"entityExpansionLimit\", \"10000000\");\n\n String dblpXmlFilename = \"data/dblp.xml\";\n String dblpDtdFilename = \"data/dblp.dtd\";\n\n System.out.println(\"building the dblp main memory DB ...\");\n RecordDbInterfac...
[ "0.5735964", "0.54386866", "0.54386765", "0.54187393", "0.53959703", "0.5390008", "0.5371717", "0.5335727", "0.52580094", "0.5222204", "0.5202998", "0.51979774", "0.5153468", "0.51518285", "0.5140364", "0.5138997", "0.5128764", "0.5097893", "0.50803846", "0.5065524", "0.50640...
0.0
-1
/ Lab 04: Programmatic S3 Uploads .get(0) returns the file url in regular bucket .get(1) returns the file url saved in the resized bucket
@PostMapping("/tasks/{id}/images") public RedirectView addImages(@PathVariable UUID id, @RequestParam(value="file")MultipartFile file){ Task selectedTask = taskRepository.findById(id).get(); List<String> pic = this.s3Client.uploadFile(file); //saving images and thumbImg selectedTask....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public String upload(String bucket, String key, String file) {\n byte[] data = (file.contains(\",\")) ? Base64.getDecoder().decode(file.substring(file.indexOf(\",\") + 1))\n : Base64.getDecoder().decode(file);\n\n SaveImage.saveImage(\"storage/\", bucket + \"_\" + key, n...
[ "0.65414506", "0.6415552", "0.61989295", "0.6145021", "0.60296875", "0.60046923", "0.59932584", "0.59667003", "0.5918866", "0.5914816", "0.5882079", "0.5843727", "0.5820034", "0.5802899", "0.5797645", "0.5732988", "0.5714807", "0.56219316", "0.56157416", "0.5614492", "0.55972...
0.0
-1
/ USING SMS Reference:
private void sentSMS(String taskName){ AmazonSNSClient snsClient = new AmazonSNSClient(); String message = taskName + " has completed."; String phoneNumber = "+15809196943"; Map<String, MessageAttributeValue> smsAttributes = new HashMap<String, Messag...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "com.polytech.spik.protocol.SpikMessages.Sms getSms();", "void requestSendSMSCode(Context context,String phone);", "public java.lang.String sendSMS(java.lang.String accessCode, java.lang.String toNumber, java.lang.String body) throws java.rmi.RemoteException;", "SendSMSResponse sendSMSProcess(SendSMSRequest s...
[ "0.70832884", "0.67342263", "0.63985574", "0.63903093", "0.63895214", "0.63891274", "0.622607", "0.6200006", "0.61782056", "0.61607754", "0.6149569", "0.6136909", "0.61330354", "0.6124475", "0.61244255", "0.6091452", "0.6032845", "0.59793496", "0.5948816", "0.5948191", "0.592...
0.0
-1
TODO Autogenerated method stub
@Override public TestCaseResult test(Project project, boolean autoGrade) throws NotAutomatableException, NotGradableException, NoSuchFieldException { RunningProject p0 = RunningProjectUtils.runProject(project, 10, "3\n3\n6\n12\n"); String out0=p0.await(); RunningProject p1 = RunningProjectUtils.runProj...
{ "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
A Supervisor handles the initiating side of a session with a remote agent. The methods defined in this interface are intended to be called by the remote agent, not the initiator. I.e. this is not the interface the initiator will use to control the session.
public interface Supervisor { /** * An event sent from the agent. * * @param e the event */ void event(Event e) throws Exception; /** * Redirected standard output * * @param out the text that was redirected * @return ignored (to make sync) */ boolean stdout(String out) throws Exception; /** ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void acceptSession(int id, String agent) {\n\t\t\n\t}", "public abstract void setRemoteSessionSpec(SessionSpec remote);", "public abstract Thread startSession();", "public void sessionStarted() {\n\t\t\r\n\t}", "public abstract void initialize(ISession session);", "public interface IP...
[ "0.6597318", "0.6121254", "0.611948", "0.5875694", "0.58006126", "0.56708306", "0.56213176", "0.55889064", "0.55379087", "0.5451354", "0.542038", "0.53847814", "0.5377232", "0.5358569", "0.53583777", "0.5353308", "0.5332806", "0.52835023", "0.52772695", "0.52481085", "0.52474...
0.5495653
9
An event sent from the agent.
void event(Event e) throws Exception;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void sendEvent(Event event);", "public void dataSent(LLRPDataSentEvent event);", "private void sendToMyself(ProxyEvent event) throws AppiaEventException {\n \t\ttry {\n \t\t\tProxyEvent clone = (ProxyEvent) event.cloneEvent();\n \t\t\tclone.storeMessage();\n \t\t\tclone.setDir(Direction.DOWN);\n \t\t\tc...
[ "0.715076", "0.6790226", "0.6498579", "0.6492222", "0.64875764", "0.6318682", "0.63174844", "0.6304472", "0.6304472", "0.63006645", "0.62910634", "0.6277676", "0.6151924", "0.60503924", "0.6038341", "0.6002141", "0.60016614", "0.59871584", "0.5984298", "0.59614825", "0.595082...
0.0
-1
Return the contents of the file that has the given SHA1. The initiator of the connection should in general register the files it refers to in the communication to the agent. The agent then calls this method to retrieve the contents if it does not have it in its local cache.
byte[] getFile(String sha) throws Exception;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String blobFromFile(String sha1) {\n File blobFile = Utils.join(_objects, sha1);\n if (!blobFile.exists()) {\n throw new IllegalArgumentException(\n \"No blob file with that name found.\");\n }\n return Utils.readContentsAsString(blobFile);\n }", ...
[ "0.67187965", "0.5947787", "0.5643813", "0.5606328", "0.559345", "0.54332346", "0.53550416", "0.5352393", "0.5292199", "0.52519906", "0.52426696", "0.52268547", "0.5171916", "0.51528084", "0.51520175", "0.5102775", "0.50887364", "0.5074183", "0.5043285", "0.5029223", "0.50288...
0.5763619
2
Creates the underlying database table.
public static void createTable(SQLiteDatabase db, boolean ifNotExists) { String constraint = ifNotExists? "IF NOT EXISTS ": ""; db.execSQL("CREATE TABLE " + constraint + "'COMMENTARIES' (" + // "'_id' INTEGER PRIMARY KEY ," + // 0: id "'NEWS_ID' INTEGER," + // 1: NewsId ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "TABLE createTABLE();", "public void create(Connection db) throws SQLException {\n if (tableName == null) {\n throw new SQLException(\"Table Name not specified\");\n }\n\n Statement st = db.createStatement();\n\n if (dbType == DatabaseUtils.POSTGRESQL) {\n if (hasSequence()) {\n st.ex...
[ "0.791309", "0.77940214", "0.74362296", "0.73251724", "0.73218036", "0.7314123", "0.72937477", "0.726144", "0.7253623", "0.7152383", "0.7142117", "0.71279895", "0.7109381", "0.7107476", "0.7067047", "0.7065432", "0.70631945", "0.7028555", "0.70216703", "0.70106506", "0.700553...
0.0
-1
Drops the underlying database table.
public static void dropTable(SQLiteDatabase db, boolean ifExists) { String sql = "DROP TABLE " + (ifExists ? "IF EXISTS " : "") + "'COMMENTARIES'"; db.execSQL(sql); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void dropTable();", "@Override\r\n public void dropTable() {\n if(tableIsExist(TABLE_NAME)){\r\n String sql = \"drop table \" + TABLE_NAME;\r\n database.execSQL(sql);\r\n }\r\n }", "public void wipeTable() {\n SqlStorage.wipeTable(db, TABLE_NAME);\n }"...
[ "0.7789895", "0.76284015", "0.7504201", "0.7461965", "0.73182327", "0.72954285", "0.72924113", "0.7281721", "0.72654843", "0.7200476", "0.71981245", "0.71693176", "0.7104181", "0.70931613", "0.70916253", "0.7038522", "0.6928525", "0.6885475", "0.6786595", "0.67825055", "0.677...
0.0
-1
Test of getReservas method, of class ReservaLogic.
@Test public void testGetUsuarios() throws Exception { List<UsuarioEntity> list; list = usuarioLogic.getUsuarios(); Assert.assertEquals(dataUs.size(), list.size()); for(UsuarioEntity entity : list) { boolean found = false; for(Usu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<ReservaEntity> getReservas() {\n LOGGER.log(Level.INFO, \"Inicia proceso de consultar todas las reservas\");\n // Note que, por medio de la inyección de dependencias se llama al método \"findAll()\" que se encuentra en la persistencia.\n List<ReservaEntity> reservas = persistence.f...
[ "0.6729589", "0.6547983", "0.6539594", "0.6401746", "0.63991916", "0.638083", "0.6332238", "0.62758344", "0.6236152", "0.6223781", "0.61622494", "0.6162038", "0.6145934", "0.607433", "0.6028826", "0.60139316", "0.60109645", "0.59549934", "0.58246535", "0.58200634", "0.5795551...
0.0
-1
Test of createReserva method, of class ReservaLogic.
@Test public void testCreateUsuario() throws Exception { UsuarioEntity entity = factory.manufacturePojo(UsuarioEntity.class); UsuarioEntity buscado = usuarioLogic.createUsuario(entity); Assert.assertNotNull(buscado); buscado = em.find(UsuarioEntity.class, entity....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testReservationFactoryCreate() {\n ReservationController reservationController = reservationFactory.getReservationController();\n Customer customer = new Customer(CUSTOMER_NAME, CUSTOMER_CONTACT, false);\n Calendar date = Calendar.getInstance();\n // create a 2 se...
[ "0.726692", "0.7047227", "0.69905525", "0.69327474", "0.69047225", "0.65189725", "0.646663", "0.64604443", "0.6368747", "0.6359035", "0.6342476", "0.62987375", "0.62906975", "0.6283454", "0.6250971", "0.6238776", "0.62145543", "0.62079656", "0.6193915", "0.61919343", "0.61712...
0.0
-1
Test of updateReserva method, of class ReservaLogic.
@Test public void testUpdateUsuario() throws Exception { UsuarioEntity entity = dataUs.get(0); UsuarioEntity nuevo = factory.manufacturePojo(UsuarioEntity.class); nuevo.setId(entity.getId()); usuarioLogic.updateUsuario(nuevo); UsuarioEntity bus...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void updateTest() {\n reservation3.setId(13L);\n reservation3.setReserveDate(LocalDate.now().plusDays(2));\n reservationService.update(reservation3);\n Mockito.verify(reservationDao, Mockito.times(1)).update(reservation3);\n }", "void update(Reservierung reservier...
[ "0.75977206", "0.70421684", "0.70349205", "0.69615006", "0.6894457", "0.6852415", "0.6798938", "0.67849094", "0.6780356", "0.67421955", "0.67198104", "0.6715598", "0.6688462", "0.66671175", "0.66005945", "0.6596197", "0.65568966", "0.65361446", "0.653302", "0.65257263", "0.65...
0.0
-1
Test of deleteReserva method, of class ReservaLogic.
@Test public void testDeleteUsuario() throws Exception { UsuarioEntity entity = dataUs.get(0); usuarioLogic.deleteUsuario(entity.getId()); UsuarioEntity deleted = em.find(UsuarioEntity.class, entity.getId()); Assert.assertNull(deleted); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n @DisplayName(\"Testataan tilausten poisto tietokannasta\")\n void deleteReservation() {\n TablesEntity table = new TablesEntity();\n table.setSeats(2);\n tablesDao.createTable(table);\n\n ReservationsEntity reservation = new ReservationsEntity(\"Antero\", \"10073819\", new...
[ "0.7950143", "0.7453903", "0.73029506", "0.71402323", "0.7030538", "0.6987507", "0.6964136", "0.69572407", "0.69558704", "0.6857307", "0.68253714", "0.6823621", "0.678072", "0.6749343", "0.6732107", "0.6726155", "0.6660503", "0.6657755", "0.665598", "0.66418874", "0.66387403"...
0.0
-1
Decreases the current depth for the Node (as in when the Tree is getting truncated), and, if currently on a leaf node which has moved upwards, forces the generation of all the children Nodes.
public void decreaseCurrentDepth(){ currentDepth--; if (this.children == null) generateChildren(); else { for (Node child : this.children) child.decreaseCurrentDepth(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void decrementNewDepth() {\n mNewDepth--;\n }", "public void decreaseDepth() {\n currentDepth--;\n }", "void decrementOldDepth() {\n mOldDepth--;\n }", "protected void incrementDepthLimit() {\n currDepthLimit++;\n }", "public void increaseDepth() {\n currentDepth++;\n ...
[ "0.69364804", "0.6912468", "0.66359067", "0.65445024", "0.6410988", "0.63092285", "0.62555695", "0.62154377", "0.60126483", "0.595772", "0.58838785", "0.5845564", "0.5812812", "0.579471", "0.5793225", "0.57295877", "0.5722696", "0.57002133", "0.56701916", "0.5630815", "0.5614...
0.77001137
0
FOR PART OF DEBUG FOR DEBUG
public void debugPrint(StringBuffer buffer) { buffer.append("<?xml version='1.0' encoding='Shift_JIS' ?>\n"); startTag(buffer); appendModules(buffer); endTag(buffer); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void debug() {\n\n }", "public void debug() {\n\n\t\t// Establecemos el estado\n\t\tsetEstado(Estado.DEBUG);\n\n\t\t// Obtenemos la proxima tarea\n\t\ttarea = planificador.obtenerProximaTarea();\n\t}", "@Override\r\n\t\t\tpublic void debug(String arg) {\n\t\t\t\t\r\n\t\t\t}", "@Override\n protec...
[ "0.6579049", "0.6458879", "0.6389477", "0.6386597", "0.6345584", "0.6304879", "0.6304879", "0.62558246", "0.6237784", "0.6182506", "0.6147488", "0.6137251", "0.61133415", "0.60884315", "0.6056469", "0.5995977", "0.59917974", "0.59707147", "0.5961495", "0.59570146", "0.5923188...
0.0
-1
int cycleSize = 0;
static ListNode listCycle(ListNode a){ if(a==null || a.next==null || a.next.next==null){ return null; } boolean cycleExists = false; ListNode fast = a.next.next; ListNode slow = a; while(slow.next!=null && fast.next !=null && fast.next.next!=null){ if(fast==slow){ //return cycleSize; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getCycle() {\n return cycle;\n }", "public static int getNbCycle() {\n\t\treturn nbCycle;\n\t}", "static long GetCycleCount() {\n\t\treturn System.currentTimeMillis();\n\t}", "public int getCycles();", "public long getCycleInterval() {\r\n return cycleInterval;\r\n }", "GlobalVar...
[ "0.7043795", "0.68434846", "0.6830178", "0.653649", "0.63577926", "0.6262125", "0.6228766", "0.6096341", "0.60456574", "0.58712685", "0.5869774", "0.5755514", "0.5735985", "0.5683652", "0.5675267", "0.56549", "0.5654695", "0.564479", "0.56152064", "0.5614496", "0.560308", "...
0.5338043
62
end of method memberRegister
public ProfilePicVO selectProfilePic(String memberId) { ProfilePicVO pvo = memberDAO.selectProfilePic(memberId); System.out.println("service에서 pvo:" + pvo); return pvo; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void __register()\n {\n }", "protected void __register()\n {\n }", "public void register(){\n }", "public abstract void register();", "public void beginRegister() {}", "static void register() {\n }", "@Override\r\n\tpublic void register() {\n\t\t\r\n\t}", "public Regis...
[ "0.75118816", "0.75118816", "0.71247387", "0.7051529", "0.6973413", "0.69495445", "0.68934965", "0.6845696", "0.68246824", "0.6800266", "0.6726695", "0.6636381", "0.63469493", "0.6313425", "0.6310546", "0.6279588", "0.6218263", "0.61816406", "0.6175024", "0.612634", "0.611496...
0.0
-1
Returns an integer yyyyMMdd.
public int getDateAsNumber(){ SimpleDateFormat f = new SimpleDateFormat("yyyyMMdd"); return Integer.parseInt(f.format(date.get())); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static int getNowDate() {\n\t\tSimpleDateFormat dateFormat = new SimpleDateFormat(\"yyMMdd\");\n\t\treturn Integer.parseInt(dateFormat.format(new Date()));\n\t}", "public static String getDateId() {\n Date date = new Date();\n String dateFormatStyle = \"yy-MM-dd-HH-mm-ss\";\n SimpleDa...
[ "0.6866044", "0.66903687", "0.6674556", "0.66306335", "0.6408505", "0.63956404", "0.6348245", "0.62633264", "0.62457824", "0.6237682", "0.61954224", "0.60384583", "0.6021523", "0.6009687", "0.6005492", "0.5991036", "0.5990378", "0.5978274", "0.5974643", "0.5935327", "0.585158...
0.7642387
0
Interface que controla los distintos tipos de Entrada.
public interface Entrada { public abstract String getLinVenta(); public abstract boolean getTarjetaFid(); public abstract boolean getEmpleado(); public abstract int getDia(); public abstract String getHora(); public abstract boolean isFinalFichero(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic String getInformeVendedor() {\n\t\treturn \"Informe trimestre 3\";\n\t}", "@Override\r\n public String toString() {\r\n return tipo;\r\n }", "@Override\n\t\tpublic String toString() {\n\t\t\treturn \"Tinh: \"+ this.tinh + \"; Huyen: \"+ this.huyen + \"; Xa: \"+ this.xa;\n\t\t}"...
[ "0.61091995", "0.6049543", "0.58645666", "0.5854843", "0.5853979", "0.58529747", "0.5843076", "0.5837482", "0.58058715", "0.5788508", "0.5752496", "0.5750475", "0.5742262", "0.5741548", "0.5724971", "0.57237387", "0.57209593", "0.56999165", "0.5699854", "0.5698224", "0.567635...
0.6137198
0
Returns the element given the ID.
protected abstract B getElement(Long id);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Element getElement(String id);", "@Override\r\n\tpublic Element findById(int id) {\n\t\t\r\n\t\treturn em.find(Element.class, id);\r\n\t}", "public IElement element(String id);", "@Override\n public T findById(Long id) {\n return manager.find(elementClass, id);\n }", "public Object getElement(int id) ...
[ "0.8486779", "0.79811734", "0.79638034", "0.776129", "0.74332815", "0.74111325", "0.73764306", "0.7360551", "0.72163266", "0.7165583", "0.7052528", "0.7037968", "0.7028845", "0.7003268", "0.6958591", "0.69226456", "0.6904121", "0.68422925", "0.6830019", "0.6818651", "0.681020...
0.691246
16
Returns the JSON representation for the bean.
protected abstract String getJSON(B bean);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String toJson() {\n return JSON.getGson().toJson(this);\n }", "public String toJson() {\n return JSON.getGson().toJson(this);\n }", "public String toJson() {\n return JSON.getGson().toJson(this);\n }", "public String toJson() {\n return JSON.getGson().toJson(this);\n }", "public Stri...
[ "0.7062567", "0.7062567", "0.7062567", "0.7062567", "0.7062567", "0.7062567", "0.7062567", "0.7062567", "0.7062567", "0.7062567", "0.6958712", "0.68891823", "0.6886531", "0.68541914", "0.68085784", "0.6795476", "0.6795476", "0.6786595", "0.6739706", "0.672063", "0.6682624", ...
0.7377272
0
Prime class that implements Runnable interface
public Prime(Integer threadId, Integer limit, List<Integer> primeNumbers) { this.limit = limit; this.threadId = threadId; this.primeNumbers = primeNumbers; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public PrimeNumberCalculator() {\n\t\t\t\tthis.threads = 1;\n\t\t}", "public interface CheckPrimeInterface {\n\tpublic String checkNumber(int value);\n}", "@Override\n\tpublic void run() {\n\t\tint n = 2;\n\t\t// while loop to run until stopped\n\t\twhile (true) {\n\t\t\t// call private method to check if curr...
[ "0.67880034", "0.60519516", "0.5948573", "0.59198105", "0.5857851", "0.5818349", "0.58056855", "0.5797611", "0.57672954", "0.5753084", "0.57528996", "0.57505554", "0.5749279", "0.5724957", "0.5710912", "0.56826454", "0.56423944", "0.56388056", "0.5624657", "0.5577341", "0.556...
0.6135634
1
Checks if a number prime or not
public boolean isPrime(Integer number) { int end = number / 2; for(int i = 2; i <= end; i++) if(number % i == 0) return false; return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static boolean isPrime(int number) {\n\n\t\tif (number <= NUMBER_ONE) {\n\t\t\treturn false; \n\t\t}\n\n\t\tfor (int i = NUMBER_TWO; i < number; i++) {\n\t\t\tif (number % i == NUMBER_ZERO) { \n\t\t\t\treturn false; \n\t\t\t}\n\t\t}\n\t\treturn true; \n\t}", "public boolean isPrime()\r\n\t{\r\n\t\tif (cu...
[ "0.79012007", "0.7853111", "0.78445745", "0.77826685", "0.778248", "0.7766654", "0.77023816", "0.767997", "0.767412", "0.7653454", "0.7642604", "0.7631038", "0.75971603", "0.75958824", "0.75620914", "0.7561024", "0.75392056", "0.7537642", "0.7526614", "0.7523522", "0.751878",...
0.75368446
18
everyBlock is a number of current values divided by available threads, in order to divide a work fairly between all threads
@Override public void run() { int everyBlock = limit / THREADS; int end = everyBlock * threadId + 2; for(int i = end - everyBlock; i < end; i++){ if(isPrime(i)){ synchronized (primeNumbers){ primeNumbers.add(i); } } ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int process(int maxBlocks);", "private static int neededBlocks(int bytes) {\n\t\tint ret = bytes / BLOCK_SIZE;\n\t\tif (bytes % BLOCK_SIZE != 0) {\n\t\t\tret++;\n\t\t}\n\t\treturn ret;\n\t}", "public void realocareThreadsDistribution(){\n for(int i=1;i<=nrThreads;i++){\n if(listofIntervalsFor...
[ "0.65878975", "0.6129465", "0.6093807", "0.60904175", "0.5923674", "0.5835138", "0.5700378", "0.56442267", "0.56281996", "0.5620823", "0.56002676", "0.5589244", "0.55829245", "0.55828756", "0.5540071", "0.55399746", "0.553321", "0.55295134", "0.5528524", "0.55128497", "0.5501...
0.67618245
0
initializes the Operand with the value that is stored in String value
public Operand(String value) { if (value == null) throw new IllegalArgumentException("String with a value can't be empty"); this.value = Double.parseDouble(value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Operand createOperand();", "public Operand(Double value) {\n if (value == null) throw new IllegalArgumentException(\"String with a value can't be empty\");\n this.value = value;\n }", "public LiteralExpression (String str){\n _value = str;\n }", "ExpOperand createExpOperand();", ...
[ "0.68848073", "0.6846998", "0.6656098", "0.65285933", "0.6368435", "0.6219074", "0.6168539", "0.61214423", "0.61029965", "0.60916066", "0.60740066", "0.60084563", "0.59973896", "0.5947686", "0.5879068", "0.5875848", "0.585524", "0.58547854", "0.58471066", "0.58072704", "0.580...
0.7546642
0
initializes the Operand with the value that is stored in BigDecimal value
public Operand(Double value) { if (value == null) throw new IllegalArgumentException("String with a value can't be empty"); this.value = value; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public DecimalConstant( BigDecimal value)\n {\n this( value, null);\n }", "void setValue(BigDecimal value);", "Operand createOperand();", "public void setValue(BigDecimal value) { this.m_value = value; }", "public DecimalConstant( BigDecimal value, String format)\n {\n super( Type.NUMBER, va...
[ "0.7114027", "0.64493597", "0.6360069", "0.63132024", "0.61887896", "0.6164754", "0.61124384", "0.6089569", "0.6032969", "0.59470314", "0.5938686", "0.5858063", "0.5815295", "0.5776633", "0.5765841", "0.5764638", "0.5719531", "0.56840664", "0.566247", "0.565936", "0.56498647"...
0.57179636
17
returns the value of the Operand
public Double getValue() { return value; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getOperandA();", "SEIntegerVariable getOperand1();", "public Number getOperand() {\n return (Number)getAttributeInternal(OPERAND);\n }", "public abstract Operand<T> result();", "SEIntegerVariable getOperand2();", "public int getOperandB();", "double getActiveOperand();", "public ...
[ "0.78186536", "0.77872926", "0.7785366", "0.77396095", "0.77053636", "0.761571", "0.7486407", "0.7148031", "0.70195144", "0.7014073", "0.69548976", "0.68405133", "0.67814046", "0.67352235", "0.67326254", "0.67326254", "0.6690651", "0.6671205", "0.6639635", "0.65565413", "0.65...
0.0
-1
ArrayList heroes = new ArrayList(); ArrayList heroes = new ArrayList(); ArrayList heroes = new ArrayList(); ArrayList heroes = new ArrayList();
public NarrativeStructInterpreter() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Sharks() {\n sharks = new ArrayList<Shark>(); // Initialize the ArrayList\n }", "public abstract ArrayList<GameObject> fight();", "public void init()\n {\n for(int i = 0 ; i <= 30 ; i++){\n enemies.add(new theEnemies(r1.nextInt(200),r1.nextInt(200)));\n }\n // Test removing of item from linked list.\n...
[ "0.6266427", "0.6264491", "0.6050024", "0.60299325", "0.6017611", "0.5922767", "0.5904063", "0.58541477", "0.5812544", "0.58116585", "0.5785712", "0.57806677", "0.577874", "0.5770148", "0.5741192", "0.5739115", "0.57205933", "0.5717031", "0.5683694", "0.56813693", "0.56772006...
0.0
-1
Pour ajouter un listener sur notre adapter
public void addListener(TypeAeronefListener aListener) { mListListener.add(aListener); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void addListener() {\n\t\t\n\t}", "abstract public void addListener(Listener listener);", "public void addListener(EventListener listener);", "@Override\n\tprotected void setListenerAndAdapter() {\n\t\t\n\t}", "public interface EnqueteListListener {\n}", "private void setListener() {\...
[ "0.73605067", "0.71972954", "0.70855105", "0.700047", "0.6989037", "0.69341034", "0.6858506", "0.6858506", "0.68419194", "0.6832899", "0.682168", "0.682168", "0.6813807", "0.68112195", "0.680168", "0.67919135", "0.6788196", "0.67752904", "0.6769933", "0.6745198", "0.6719524",...
0.0
-1
TODO Autogenerated method stub
public static void main(String[] args) { }
{ "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 with parameters, with optional content.
public LttngEventContent(LttngEvent thisParent, HashMap<String, LttngEventField> thisContent) { super(ITmfEventField.ROOT_FIELD_ID, null); fParentEvent = thisParent; fFieldsMap = thisContent; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Content() {\n\t}", "public ContentKj () {\n\t\tsuper();\n\t}", "public Content(String text) {\n setContent(text);\n }", "public PurchaseRequestAttachmentContent() {\r\n }", "public QuestionContentRequest() {\n\t\tsuper();\n\t}", "public Content(String titulo, String descripcion) {\n\t\t\tth...
[ "0.73773974", "0.6873609", "0.6872865", "0.6356569", "0.6353374", "0.6317125", "0.6311752", "0.6236259", "0.6140268", "0.6102754", "0.6098021", "0.60593885", "0.6041353", "0.60302395", "0.6024102", "0.5983601", "0.59704083", "0.5958412", "0.59451735", "0.59392136", "0.5863718...
0.0
-1
VERIFY A bit weird to return the _currently_parsed fields (unlike all fields like getFields() ) Should we keep this? Return currently parsed fields in an object array format.
public Object[] getRawContent() { Object[] returnedContent = fFieldsMap.values().toArray(new Object[fFieldsMap.size()]); return returnedContent; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public ArrayList<Object> getFieldsAsList() {\n if (!getParsed()) {\n parse();\n }\n if (cachedList == null) {\n cachedList = new ArrayList<Object>();\n } else {\n cachedList.clear();\n }\n for (int i = 0; i < getFields().length; i++) {\n cachedList.add(uncheckedGe...
[ "0.7502478", "0.6856706", "0.67158693", "0.66845685", "0.6560527", "0.6403996", "0.6384567", "0.6374876", "0.63692933", "0.62926084", "0.6269237", "0.62625885", "0.62461865", "0.62202615", "0.62187505", "0.6183319", "0.6182073", "0.61693114", "0.6162334", "0.615844", "0.61467...
0.6065592
26
Return currently parsed fields in the internal hashmap format.
public HashMap<String, LttngEventField> getMapContent() { return fFieldsMap; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public HashMap<String, String> getFields() {\r\n \t\treturn fields;\r\n \t}", "java.util.Map<java.lang.String, java.lang.String>\n getFieldMap();", "Map<String, FieldInfo> getFieldMap() {\n return fieldMap;\n }", "public java.util.Map<java.lang.String, java.lang.String> getFieldMap() {\n ...
[ "0.7488576", "0.7173196", "0.6999807", "0.69932705", "0.69914556", "0.6988066", "0.68907887", "0.6871117", "0.67925084", "0.6792322", "0.6662621", "0.6636172", "0.6594458", "0.6458136", "0.6438389", "0.64208394", "0.63248265", "0.6317385", "0.6229507", "0.62213695", "0.617819...
0.6301728
18
Parse a single field from its given position.
@Override public synchronized LttngEventField getField(int position) { LttngEventField returnedField = null; String label = null; // try { label = fParentEvent.getType().getFieldName(position); returnedField = (LttngEventField) this.getField(label); // } // catch (TmfNoSuchFieldExc...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private FieldIdItem parseAndResolveField(ClassPath.ClassDef classDef, String field) {\n String[] parts = field.split(\":\");\n if (parts.length != 2) {\n throw new RuntimeException(\"Invalid field descriptor \" + field);\n }\n \n String fieldName = parts[0];\n St...
[ "0.6175936", "0.60732883", "0.580083", "0.5608701", "0.5471899", "0.54514146", "0.53852427", "0.5336741", "0.5326644", "0.53007096", "0.52836293", "0.5274877", "0.5241864", "0.5241229", "0.5237438", "0.52123976", "0.5208179", "0.5189635", "0.51863205", "0.51860124", "0.517827...
0.5433151
6
Parse a single field from its given name.
@Override public synchronized LttngEventField getField(String name) { // Check for generic table header fields if (name.equals(LttngEventType.CONTENT_LABEL) || name.equals(ITmfEvent.EVENT_FIELD_CONTENT)) { return new LttngEventField(LttngEventType.CONTENT_LABEL, toString()); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "FieldInstance fieldNamed(String name);", "public StructField field(String name) {\n return fields[indexOf(name)];\n }", "private FieldIdItem parseAndResolveField(ClassPath.ClassDef classDef, String field) {\n String[] parts = field.split(\":\");\n if (parts.length != 2) {\n ...
[ "0.6663085", "0.66008824", "0.619046", "0.5970539", "0.5932731", "0.59301054", "0.57198524", "0.56565154", "0.5639617", "0.5630771", "0.56302917", "0.5584743", "0.5520836", "0.54733956", "0.5461636", "0.5457271", "0.541784", "0.5409437", "0.54079986", "0.54041463", "0.5404146...
0.0
-1
Listen for FCM app registration toke change and update firestore
@Override public void onNewToken(@NonNull String token) { super.onNewToken(token); String currentUserId = getCurrentUserId(); if (currentUserId != null) { sendRegistrationToServer(token, currentUserId); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onTokenRefresh() {\n String token = FirebaseInstanceId.getInstance().getToken();\n\n addRegistrationToFireDb(token);\n }", "@Override\n public void onTokenRefresh() {\n // Get updated InstanceID token.\n device_id = Settings.Secure.getString(this.getCo...
[ "0.6976959", "0.69105273", "0.69047415", "0.6647366", "0.6626645", "0.66156447", "0.65275633", "0.6523839", "0.6412715", "0.6386855", "0.6369189", "0.6344113", "0.63424134", "0.6321421", "0.6302956", "0.62455696", "0.62382036", "0.62173516", "0.620829", "0.620681", "0.6193639...
0.5509014
69
Listen for notification messages
@RequiresApi(api = Build.VERSION_CODES.M) @Override public void onMessageReceived(@NonNull RemoteMessage remoteMessage) { super.onMessageReceived(remoteMessage); /* Get new notification title */ Context context = getAppContext(); String title = context.getString(R.string.new_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void listenForNotificationEvents() {\n\t\twhile (!shutdownRequested) {\n\t\t\ttry {\n\t\t\t\tNotificationJob job = notificationQueue.poll( 1000, TimeUnit.MILLISECONDS );\n\t\t\t\t\n\t\t\t\tif (job != null) {\n\t\t\t\t\tprocessNotificationJob( job );\n\t\t\t\t}\n\t\t\t\t\n\t\t\t} catch (InterruptedException...
[ "0.74390864", "0.7365361", "0.7024902", "0.6924113", "0.67425483", "0.66986054", "0.66656524", "0.6650084", "0.6637361", "0.6627337", "0.6538605", "0.6377069", "0.63522714", "0.63092816", "0.6307707", "0.62918663", "0.62902606", "0.6281065", "0.62808037", "0.62795365", "0.627...
0.0
-1
Build and show notification
@RequiresApi(api = Build.VERSION_CODES.M) private void showNotification(String title, String body) { Intent intent = new Intent(this, LoginActivity.class); PendingIntent pendingIntent = PendingIntent.getActivity(this, 1, intent, PendingIntent.FLAG_UPDATE_CURRENT); Notification notificati...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void buildNotification(View view)\n {\n Toast.makeText(this, \"Building the Notification\", Toast.LENGTH_SHORT).show();\n\n //Build the notification\n NotificationCompat.Builder notifyBuilder = getNotificationBuilder();\n\n //Push the notification with a unique notification ID...
[ "0.72447526", "0.6991333", "0.6889845", "0.68574476", "0.67877144", "0.6742739", "0.6742547", "0.6696838", "0.6694883", "0.66810536", "0.6679853", "0.6618797", "0.66051835", "0.6582959", "0.6574809", "0.6545073", "0.64917225", "0.64463025", "0.6415853", "0.63972783", "0.63795...
0.0
-1
Update Firestore with new token for user
private void sendRegistrationToServer(String token, String userId) { Context context = getAppContext(); FirebaseFirestore db = FirebaseFirestore.getInstance(); db.document(context.getString(R.string.users_collection) + "/" + userId) .update(context.getString(R.string.firestor...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onTokenRefresh() {\n String refreshedToken = FirebaseInstanceId.getInstance().getToken();\n /*Log.d(\"Refreshed token\", \"Refreshed token: \" + refreshedToken);\n FirebaseUser user = FirebaseAuth.getInstance().getCurrentUser();\n final CollectionReference cli...
[ "0.7414834", "0.6922101", "0.69206536", "0.6651216", "0.66291374", "0.64594746", "0.63844055", "0.6333794", "0.62557125", "0.62047", "0.61677724", "0.60825664", "0.608094", "0.6010292", "0.5913871", "0.58855355", "0.5858748", "0.58508176", "0.58402824", "0.5837271", "0.582062...
0.6622926
5
Retrieves current user's Id
private String getCurrentUserId() { FirebaseUser currentUser = FirebaseAuth.getInstance().getCurrentUser(); if (currentUser != null) { return currentUser.getUid(); } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String getCurrentUserId() {\n\t\tUser currentUser = UserDirectoryService.getCurrentUser();\n \tString currentUserId = currentUser.getId();\n\t\treturn currentUserId;\n\t}", "public Long getUserID() {\n Authentication authentication = SecurityContextHolder.getContext().getAuthentication();\n ...
[ "0.8333763", "0.7990629", "0.7801388", "0.77790713", "0.77790713", "0.7767138", "0.7749715", "0.7749715", "0.7743505", "0.7704912", "0.76831025", "0.76831025", "0.76831025", "0.7629231", "0.76099473", "0.76099473", "0.76099473", "0.76099473", "0.7588061", "0.75429076", "0.752...
0.7896177
2
Tells all viewports to draw
static void draw() { for (Viewport viewport : viewports) viewport.draw(renderers); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void drawAllGraphics(){\r\n\t\t \r\n\t}", "public void draw() {\r\n\t\tfor(int i=0; i<2; i++) {\r\n\t\t\trenderer[i].setView(camera[i]);\r\n\t\t\trenderer[i].render();\r\n\t\t}\r\n\t}", "public void draw() {\n for (Point2D point : pointSet) {\n point.draw();\n }\n }", "p...
[ "0.72193265", "0.70138687", "0.6917304", "0.6857934", "0.6731357", "0.6600056", "0.6574572", "0.65658456", "0.65612376", "0.65612376", "0.65612376", "0.65176916", "0.6508335", "0.65054435", "0.64796567", "0.64762765", "0.6446764", "0.64371544", "0.6432988", "0.6431334", "0.64...
0.8386087
0
Registers a new display with this graphics object. A display presents a new surface to draw upon
static void addDisplay(Display display) { displays.add(display); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void createDisplay() {\n ContextAttribs attribs = new ContextAttribs(3, 2).withForwardCompatible(true)\n .withProfileCore(true);\n\n try {\n if (!goFullscreen) {\n Display.setDisplayMode(new DisplayMode(WIDTH, HEIGHT));\n } else {\n Display.setFullscreen(true);\n ...
[ "0.6782356", "0.6506335", "0.64514244", "0.64310455", "0.64069444", "0.63285893", "0.6305547", "0.6023125", "0.58965224", "0.58281887", "0.5806285", "0.57631975", "0.57099265", "0.5686655", "0.5627183", "0.5609665", "0.5567937", "0.5535944", "0.55326223", "0.55019385", "0.547...
0.6959075
0
Registers a viewport with this graphics object.
static void addViewport(Viewport viewport) { viewports.add(viewport); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setViewport(final int x, final int y, final int width, final int height) {\n viewport.set(x, y, width, height);\n }", "void glViewport(int x, int y, int width, int height);", "public void setViewportView(Component paramComponent) {\n/* 1004 */ if (getViewport() == null) {\n/* 1005 *...
[ "0.66250306", "0.6357108", "0.63031155", "0.6238674", "0.61518973", "0.58009666", "0.57214636", "0.56901765", "0.5659096", "0.55692065", "0.5461043", "0.5415892", "0.53933316", "0.5373351", "0.5337794", "0.52624255", "0.52456516", "0.52456516", "0.5184073", "0.51672584", "0.5...
0.75755256
0
Registers a renderer with this graphics object
static void addRenderer(Renderer renderer) { renderers.add(renderer); Collections.sort(renderers); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void registerRenderer() {}", "public void registerRenderer() {}", "public void registerRenderers() {\n\n\t}", "public void setRenderer(WorldDisplayRenderer renderer) {\n this.renderer = renderer;\n }", "public void addRenderer(\r\n RendererBean renderer)\r\n {\r\n String componentFa...
[ "0.82495207", "0.82495207", "0.70092887", "0.6849739", "0.67195666", "0.6659465", "0.65988153", "0.65890735", "0.6505931", "0.6426635", "0.64099497", "0.63733375", "0.6224783", "0.6157111", "0.6144843", "0.61238134", "0.6055154", "0.6002382", "0.5992677", "0.59838796", "0.586...
0.68365335
4
Unregisters the given viewport from this graphics object
static void removeViewport(Viewport viewport) { viewports.remove(viewport); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void removeViewportListener(ViewportListener l) {\n viewportListeners.removeElement(l);\n }", "public void resetViewPort() {\n/* 1453 */ if (this.viewPort != null) {\n/* 1454 */ this.viewPort.removeChangeListener(this);\n/* 1455 */ this.viewPort.removePropertyChangeListener(this)...
[ "0.62032574", "0.56559366", "0.56435615", "0.55392176", "0.5392819", "0.53403854", "0.5317669", "0.52890277", "0.52727306", "0.52701634", "0.5225991", "0.52137774", "0.5207862", "0.5173784", "0.5161403", "0.5149928", "0.51413006", "0.513587", "0.5134961", "0.5133908", "0.5118...
0.7675526
0
Unregisters the given renderer from this graphics object
static void removeRenderer(Renderer renderer) { renderers.remove(renderer); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void destroy() {\n renderer.destroy();\n }", "public void removeRenderer(Integer idGCodeProvider) throws GkException{\n\t\tRS274GCodeRenderer renderer = getRendererByGCodeProvider(idGCodeProvider);\n\t\texecutionService.removeExecutionListener(renderer);\n\t\tcacheRenderer.remove(renderer);\n\t\...
[ "0.69087076", "0.6868014", "0.6247531", "0.6247531", "0.6204085", "0.60595995", "0.59642017", "0.59468204", "0.59237456", "0.58509445", "0.5773971", "0.5737319", "0.56961244", "0.5625704", "0.55591977", "0.5541339", "0.55321234", "0.5531785", "0.54877985", "0.5437525", "0.542...
0.80590194
0
Gets the list of known displays
public static ArrayList<Display> getDisplays() { return displays; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "DisplayMode[] getAvailableDisplayModes();", "com.ctrip.ferriswheel.proto.v1.Display getDisplay();", "public List<HealthInspectorsInfo> availableInspectors() {\n return INSPECTORS.stream().map(HealthInspectorsInfo::new).collect(Collectors.toList());\n }", "public static List<DisplayProperty> getDisplayPro...
[ "0.638002", "0.6335881", "0.5992327", "0.59839904", "0.59803736", "0.59635526", "0.594693", "0.58404505", "0.5830145", "0.5818184", "0.57739055", "0.57350135", "0.5731247", "0.5715467", "0.5700931", "0.56464", "0.56359875", "0.56219184", "0.5598735", "0.55877566", "0.5579653"...
0.7549071
0
TODO Autogenerated method stub
public boolean isVisible(String label) { return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
public boolean isReadOnly(String label) { return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
public boolean isRequired(String label) { return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
public boolean isLink(String label) { return true; }
{ "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
Creates a long tag with the given name and value.
public NBTLong(String name, long val) { this.name = name; this.val = val; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addLong(String name, long value) {\n LONGS.add(new SimpleMessageObjectLongItem(name, value));\n }", "public void setLongName(String value) {\n setAttributeInternal(LONGNAME, value);\n }", "private void printLongField(String name, long value, String groupName, String units) {\n ...
[ "0.66809815", "0.61991835", "0.60178196", "0.58666563", "0.5717094", "0.5608693", "0.55472535", "0.5500022", "0.54647225", "0.54588777", "0.5416669", "0.5411162", "0.54019725", "0.53949845", "0.53262615", "0.5304907", "0.5299156", "0.5266182", "0.52379936", "0.52379936", "0.5...
0.67058194
0
TODO: Return the communication channel to the service.
@Override public IBinder onBind(Intent intent) { throw new UnsupportedOperationException("Not yet implemented"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Channel channel() {\n return channel;\n }", "public IChannel getChannel() {\n\t\treturn message.getChannel();\n\t}", "SocketChannel getChannel();", "EzyChannel getChannel();", "public Channel getChannel()\n {\n return channel;\n }", "java.lang.String getChannel();", "protected Channel getC...
[ "0.7437254", "0.73157257", "0.7183302", "0.7135984", "0.7129005", "0.71285546", "0.7090409", "0.7070889", "0.7067624", "0.7038997", "0.6988283", "0.6917885", "0.68884337", "0.67946744", "0.67914945", "0.67852235", "0.677885", "0.674656", "0.67354923", "0.6681876", "0.66714543...
0.0
-1
Calculate the absolute pixel difference between each pixel in two images (in order to detect movement)
public static void useAbsDiff(Mat average_image, Mat current_image, Mat binary_image, int binary_threshold) { for (int i = 0; i < average_image.width(); i++) { // Go through each pixel in the image for (int j = 0; j < average_image.height(); j++) { double[] first = average_image....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static BufferedImage getDifferenceImage(BufferedImage img1, BufferedImage img2) {\n int width1 = img1.getWidth(); // Change - getWidth() and getHeight() for BufferedImage\n int width2 = img2.getWidth(); // take no arguments\n int height1 = img1.getHeight();\n int height2 = img2.getHeight();\n ...
[ "0.69086534", "0.6431583", "0.6352323", "0.63444686", "0.62460744", "0.62297124", "0.6112295", "0.6056424", "0.59674317", "0.5910813", "0.58972657", "0.58791536", "0.57905114", "0.57880074", "0.57821184", "0.5684548", "0.5680126", "0.56716865", "0.5671372", "0.56706405", "0.5...
0.6485723
1
Calculate the average image of a buffer by adding all the images pixel in each pixel position together to one and divide it by the buffer size Each image must be the same size.
public static Mat acquireMedian(Mat[] buffert) { Mat average_image = new Mat(buffert[0].height(),buffert[0].width(), CvType.CV_8U); int l = 0; // Go through each pixel in in each image for(int i = 0; i < buffert[0].width();i++) for(int j = 0; j < buffert[0].height();j++)...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public native MagickImage averageImages() throws MagickException;", "public static BufferedImage average(BufferedImage image, int value) {\n //3-position array where we store R,G,B values of every pixel\n int[] colors;\n //3-position array where we will store the mean value of every pixel of...
[ "0.63124126", "0.6043556", "0.57721275", "0.5698715", "0.56814677", "0.5573473", "0.55210894", "0.5505352", "0.54149497", "0.5408867", "0.53837377", "0.5352011", "0.52896905", "0.5275151", "0.52564317", "0.51802766", "0.51696295", "0.5167651", "0.5124293", "0.5092322", "0.508...
0.4951702
30
Funciton that returns a new resized image
public static Mat resizeImage(int factorWidth, int factorHeight, Mat matrix) { Mat resizeimage = new Mat(matrix.width(),matrix.height(),CvType.CV_8UC1); Size sz = new Size(matrix.width()/factorWidth,matrix.height()/factorHeight); Log.d("IMAGEMANIPULATION","Original width: " + matrix.width() ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Image getScaledImage(Image sourceImage)\n {\n //create storage for the new image\n BufferedImage resizedImage = new BufferedImage(50, 50,\n BufferedImage.TYPE_INT_ARGB);\n\n //create a graphic from the image\n Graphics2D g2 = resizedImage.createGraphics();\n\n ...
[ "0.7467436", "0.72498316", "0.70854044", "0.6892779", "0.6872516", "0.6793803", "0.6788683", "0.6733648", "0.67308503", "0.67188233", "0.6643476", "0.6625469", "0.66227293", "0.6603982", "0.66017866", "0.6559724", "0.65576863", "0.65249515", "0.649173", "0.6444419", "0.638820...
0.0
-1
Function used to resize all the images in a buffer to a given size by using the parameters factorwidth and factorheight
public static Mat[] resizeImage(int factorWidth, int factorHeight, Mat[] matrixes){ Mat[] mats = new Mat[matrixes.length]; for(int i = 0; i < matrixes.length;i++){ mats[i] = resizeImage(factorWidth,factorHeight,matrixes[i]); } return mats; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void resizeBuffer(int size) {\n if (size > m_maxImgBufferSize) {\n if (size > MAX_IMG_SIZE_BYTES) {\n size = MAX_IMG_SIZE_BYTES;\n }\n\n m_maxImgBufferSize = size + 100;\n m_imgBuffer = new byte[m_maxImgBufferSize];\n m_baistream = new ByteArrayInputStream(m_imgBuffer);\n...
[ "0.70094514", "0.639043", "0.6226677", "0.61038387", "0.6000147", "0.5936989", "0.59259534", "0.59142613", "0.587889", "0.57925814", "0.57811457", "0.57809514", "0.57733446", "0.5741879", "0.5741879", "0.5741879", "0.5741879", "0.5741879", "0.5741879", "0.5741879", "0.5741879...
0.6737238
1
Function used to return the ratio of white pixels in the image
public static double whiteBlackRatio(Mat mat) { Mat m = new Mat(); Core.extractChannel(mat,m,0); int ctr = Core.countNonZero(m); // counts all the pixel that doesn't have the value 0 m.release(); return (double)ctr/(mat.width()*mat.height()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private float getRoughPixelSize() {\n\n\t\tfloat size = 380; // mm\n\t\tfloat pixels = getHeight();\n\t\treturn pixels > 0 ? size / pixels : 0;\n\n\t}", "double getRatio();", "public static void calculate_average_ratio1() {\n double sum = 0;\n\n for (int i = 0; i < Variables.pixels.size(); i++) {...
[ "0.65390694", "0.6429125", "0.62797725", "0.60691977", "0.59791845", "0.59220487", "0.5832467", "0.579374", "0.5788317", "0.5771358", "0.5764826", "0.5759226", "0.5745708", "0.572228", "0.5711698", "0.5704276", "0.5683807", "0.56834364", "0.5679552", "0.5665069", "0.56461453"...
0.70371896
0
Initializes the controller class.
@Override public void initialize(URL url, ResourceBundle rb) { // TODO List<String> modules = new ArrayList<String>(); modules.add("Модуль выбора лотка с фильтрацией"); modules.add("Модуль расчета показателей лотка по сечению кабеля"); modules.add("Модуль выбора типовог...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void initialize() {\n\t\tcontroller = Controller.getInstance();\n\t}", "public MainController() {\n\t\tcontroller = new Controller(this);\n\t}", "public abstract void initController();", "public Controller() {\n super();\n }", "public Controller() {\n super();\n }", "public Co...
[ "0.8125658", "0.78537387", "0.78320265", "0.776199", "0.776199", "0.76010174", "0.74497247", "0.7437837", "0.7430714", "0.742303", "0.74057597", "0.7341963", "0.7327749", "0.72634363", "0.72230434", "0.7102504", "0.70575505", "0.69873077", "0.69721675", "0.6944077", "0.691256...
0.0
-1
this method will validate the input arguments from the user.
private static void validateInputArguments(String args[]) { if (args == null || args.length != 2) { throw new InvalidParameterException("invalid Parameters"); } String dfaFileName = args[DFA_FILE_ARGS_INDEX]; if (dfaFileName == null || dfaFileName.trim().isEmpty()) { throw new InvalidParameterException(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void validateInputParameters(){\n\n }", "private void inputValidation(String[] args) {\r\n\t\t// Must have two argument inputs - grammar and sample input\r\n\t\tif (args.length != 2) {\r\n\t\t\tSystem.out.println(\"Invalid parameters. Try:\\njava Main <path/to/grammar> <path/to/input>\");\r\n\t\t\tSyst...
[ "0.7917752", "0.75941795", "0.73874605", "0.736541", "0.72059274", "0.7111361", "0.705665", "0.70414305", "0.7024854", "0.7021713", "0.69712096", "0.6836321", "0.68083113", "0.67981106", "0.6775998", "0.6758341", "0.6756954", "0.67061895", "0.66753083", "0.66717166", "0.66276...
0.7449969
2
Set the Desired Capabilities
public void Launch_app() { DesiredCapabilities caps = new DesiredCapabilities(); caps.setCapability("deviceName", "My Phone"); caps.setCapability("udid", "LE66A06190140096"); //Give Device ID of your mobile phone /* caps.setCapability("udid", "emulator-5556"); //Give Device ID of your mobile phone ca...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setCapabilities(String capabilities) {\n this.capabilities = capabilities;\n }", "Capabilities getCapabilities();", "public interface DriverCapabilities {\r\n\r\n\t/**\r\n\t * Allows custom capabilities to be set.\r\n\t * \r\n\t * @param browser\r\n\t * The browser to set capabilitie...
[ "0.787553", "0.6734733", "0.6655967", "0.66339", "0.65357053", "0.6530265", "0.6521181", "0.65162903", "0.64301306", "0.64111197", "0.63747585", "0.6370081", "0.63244236", "0.63207567", "0.6272339", "0.61673224", "0.6154634", "0.61290383", "0.610214", "0.6100148", "0.6091591"...
0.0
-1
The Main function of the program. This is where all methods and objects are applied.
public static void main(String[] args) throws MobileException { HTC mobil_htc = new HTC("HTC", "Desire", true, true); Nokia mobil_nokia = new Nokia("Nokia", "N650", true, false); try { mobil_htc.callContact("Iulian"); mobil_htc.getMobileInfo(); mobil_htc.pr...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main()\n\t{\n\t}", "public static void main() {\n \n }", "public static void main() {\n }", "public static void main(){\n\t}", "public void main(){\n }", "public void Main(){\n }", "public static void main (String []args){\n }", "public Main() {\r\n\t\tsuper()...
[ "0.8419401", "0.84105116", "0.825211", "0.8200985", "0.79976344", "0.7789406", "0.77192336", "0.76738846", "0.76585096", "0.76376885", "0.7629793", "0.7629793", "0.76178247", "0.7613145", "0.7595757", "0.75829583", "0.75815564", "0.75815564", "0.7577325", "0.75622326", "0.753...
0.0
-1
/ pegar usuario conectado
public String usuarioconectado() { String nome; Object principal = SecurityContextHolder.getContext().getAuthentication().getPrincipal(); if (principal instanceof UserDetails) { nome = ((UserDetails) principal).getUsername(); } else { nome = principal.toString(); } // System.out.println(nome); retu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void accionUsuario() {\n\t\t\r\n\t}", "public void conectar() {\n\t\tif (isOnline()) {\n\t\t\tregister_user();\n\n\t\t} else {\n\t\t\tToast notification = Toast.makeText(this,\n\t\t\t\t\t\"Activa tu conexión a internet\", Toast.LENGTH_SHORT);\n\t\t\tnotification.setGravity(Gravity.CENTER, 0, 0);\n\t\t\...
[ "0.69368994", "0.69203305", "0.67818093", "0.6681811", "0.6631129", "0.6596281", "0.6585259", "0.6531123", "0.6508102", "0.64896524", "0.64296645", "0.63537014", "0.6344994", "0.6342996", "0.6311732", "0.62924445", "0.6289587", "0.62677145", "0.62536186", "0.62369585", "0.622...
0.6888696
2
/ renamed from: b
private final void m117925b() { View view; int i; int i2 = Build.VERSION.SDK_INT; View view2 = this.f151545b; if (view2 != null) { View view3 = this.f151546c; if (view3 == null) { view = view2; } else { view = vi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void mo2508a(bxb bxb);", "@Override\n public void func_104112_b() {\n \n }", "@Override\n public void b() {\n }", "public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }", "@Override\n\tpublic void b2() {\n\t\t\n\t}", "v...
[ "0.64558864", "0.6283203", "0.6252635", "0.6250949", "0.6244743", "0.6216273", "0.6194491", "0.6193556", "0.61641675", "0.6140157", "0.60993093", "0.60974354", "0.6077849", "0.6001867", "0.5997364", "0.59737104", "0.59737104", "0.5905105", "0.5904295", "0.58908087", "0.588663...
0.0
-1
/ access modifiers changed from: protected
public final void onLayout(boolean z, int i, int i2, int i3, int i4) { super.onLayout(z, i, i2, i3, i4); if (this.f151545b == null) { this.f151545b = findViewWithTag("sticky"); this.f151546c = findViewWithTag("stickyContainer"); } m117925b(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void prot() {\n }", "private stendhal() {\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override...
[ "0.7375736", "0.7042321", "0.6922649", "0.6909494", "0.68470824", "0.6830288", "0.68062353", "0.6583185", "0.6539446", "0.65011257", "0.64917654", "0.64917654", "0.64733833", "0.6438831", "0.64330196", "0.64330196", "0.64295477", "0.6426414", "0.6420484", "0.64083177", "0.640...
0.0
-1
/ access modifiers changed from: protected
public final void onScrollChanged(int i, int i2, int i3, int i4) { super.onScrollChanged(i, i2, i3, i4); m117925b(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void prot() {\n }", "private stendhal() {\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override...
[ "0.7375736", "0.7042321", "0.6922649", "0.6909494", "0.68470824", "0.6830288", "0.68062353", "0.6583185", "0.6539446", "0.65011257", "0.64917654", "0.64917654", "0.64733833", "0.6438831", "0.64330196", "0.64330196", "0.64295477", "0.6426414", "0.6420484", "0.64083177", "0.640...
0.0
-1
Creating File Scanner and Array List
public static void main(String...args){ Scanner scn = new Scanner(System.in); try{ scn = new Scanner (new File("movies.txt")); }catch(FileNotFoundException exception){ System.out.println("Cannot get file with movie titles."); System.exit(42); } ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static List<String[]> readInput(String filePath) {\n List<String[]> result = new ArrayList<>();\n int numOfObject = 0;\n\n try {\n Scanner sc = new Scanner(new File(filePath));\n sc.useDelimiter(\"\");\n if (sc.hasNext()) {\n numOfObject ...
[ "0.6687839", "0.6677901", "0.6582932", "0.6510066", "0.64316624", "0.64127266", "0.6390867", "0.63838124", "0.6371969", "0.6341248", "0.63265955", "0.62867177", "0.62566787", "0.62375087", "0.6233503", "0.62222356", "0.61588305", "0.6149718", "0.6140434", "0.613635", "0.61038...
0.0
-1
TODO Autogenerated method stub
@Override public void onClick(View v) { if(validate()){ deliverNeed(); int i = 0; while(if_deliver == 0 && i++ < 1000){ try { Thread.sleep(1); } catch (InterruptedException e) { // TODO Auto-generated catch block e.printStackTrace(); } } if(if_deliv...
{ "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 check what happens if there are no features
@Override public ASTNode visitCoolClass(CoolParser.CoolClassContext ctx) { List<FeatureNode> featureNodes = new LinkedList<>(); for (var feature : ctx.feature()) { featureNodes.add((FeatureNode) feature.accept(this)); } ret...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Features() {\n\t\tsuper();\n\t\t// TODO Auto-generated constructor stub\n\t}", "Feature getFeature();", "Feature getFeature();", "boolean hasFeaturesUsed();", "protected abstract void initUnSupportedFeatures();", "List<Feature> getFeatures();", "java.util.List<iet.distributed.telemetry.Feature> ...
[ "0.7246079", "0.72379833", "0.72379833", "0.7195537", "0.7030294", "0.6975373", "0.6858627", "0.6770629", "0.67613965", "0.6724723", "0.67127544", "0.66802645", "0.6633266", "0.6633266", "0.6614412", "0.6597011", "0.6590465", "0.6590425", "0.656637", "0.65586925", "0.6543873"...
0.0
-1
TODO check what happens if there are no formal params
@Override public ASTNode visitMethod(CoolParser.MethodContext ctx) { List<FormalNode> parameters = new LinkedList<>(); for (var formal : ctx.formal()) { parameters.add((FormalNode) visitFormal(formal)); } return new MethodN...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tprotected void initParams() {\n\t\t\n\t}", "public void checkParameters() {\n }", "private Params()\n {\n }", "private void validateInputParameters(){\n\n }", "public void getParameters(Parameters parameters) {\n\n }", "private void countParams() {\n if( paramCount >= 0 ) {\...
[ "0.69612175", "0.6681148", "0.658714", "0.6488496", "0.6406647", "0.63848263", "0.6325352", "0.6311339", "0.62760186", "0.6221952", "0.62151736", "0.62113833", "0.6162257", "0.6153121", "0.6147113", "0.61320084", "0.61314785", "0.60992324", "0.60945106", "0.609375", "0.608412...
0.0
-1
TODO check what happens if there a re no args
@Override public ASTNode visitImplicitDispatch(CoolParser.ImplicitDispatchContext ctx) { List<ExprNode> argNodes = new LinkedList<>(); for (var arg : ctx.args) { argNodes.add((ExprNode) arg.accept(this)); } return new Dispa...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void visit(RegExpMatchOperator arg0) {\n\t\t\n\t}", "public static void matchMaker()\n {\n \n }", "@Override\n public String visit(PatternExpr n, Object arg) {\n return null;\n }", "@Override\n\tpublic void visit(Matches arg0) {\n\t\t\n\t}", "@Override\n\tpubli...
[ "0.6226901", "0.59826195", "0.591795", "0.5872134", "0.58021307", "0.56310415", "0.55976635", "0.5587164", "0.5561262", "0.5558549", "0.55332315", "0.5521321", "0.5511944", "0.5511356", "0.5490004", "0.5487069", "0.5460072", "0.5439977", "0.5432893", "0.5402083", "0.53887147"...
0.0
-1
TODO check what happens if the args are null
@Override public ASTNode visitExplicitDispatch(CoolParser.ExplicitDispatchContext ctx) { List<ExprNode> argNodes = new LinkedList<>(); for (var arg : ctx.args) { argNodes.add((ExprNode) arg.accept(this)); } return new Dispa...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic String getFirstArg() {\n\t\treturn null;\r\n\t}", "@Override\n public void doExeception(Map<String, Object> args)\n {\n \n }", "@Override\n public void doExeception(Map<String, Object> args)\n {\n \n }", "Optional<String[]> arguments();", "private void argumentChecker(Stri...
[ "0.64308167", "0.63703156", "0.63703156", "0.6285744", "0.6244158", "0.62149704", "0.62029546", "0.6190226", "0.61504686", "0.61368865", "0.61358404", "0.6120259", "0.6104915", "0.6058472", "0.60464275", "0.6028049", "0.6018553", "0.6016014", "0.5998245", "0.5993641", "0.5991...
0.0
-1
Compose a new tweet.
public void postTweet(int userId, int tweetId) { if (!followMap.containsKey(userId)) followMap.put(userId, new HashSet<Integer>()); followMap.get(userId).add(userId); if (!tweetMap.containsKey(userId)) tweetMap.put(userId, new LinkedList<Tweet>()); tweetMap.get(userId).addFirst(new Tweet...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void composeTweet(Tweet tweet, AsyncHttpResponseHandler handler) {\n String apiUrl = getApiUrl(\"statuses/update.json\");\n RequestParams params = new RequestParams();\n\n params.put(\"status\", tweet.getBody());\n params.put(\"in_reply_to_status_id\", tweet.getInReplyToStatusId(...
[ "0.6821896", "0.6741255", "0.6711563", "0.63070965", "0.6214738", "0.6040289", "0.595183", "0.59110373", "0.5869741", "0.5858485", "0.5850284", "0.5845", "0.5831705", "0.5775812", "0.57639563", "0.5762864", "0.5735329", "0.5720031", "0.5665786", "0.56073296", "0.55487406", ...
0.0
-1
Retrieve the 10 most recent tweet ids in the user's news feed. Each item in the news feed must be posted by users who the user followed or by the user herself. Tweets must be ordered from most recent to least recent.
public List<Integer> getNewsFeed(int userId) { List<Integer> res = new ArrayList<Integer>(); if (!followMap.containsKey(userId)) return res; PriorityQueue<Tweet> pq = new PriorityQueue<Tweet>(10000, new Comparator<Tweet>() { @Override public int compare(final Tweet t1, fi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<Integer> getNewsFeed(int userId) {\n if (!userId2TopTenTweets.containsKey(userId)) {\n return new ArrayList<>(0);\n }\n\n\n userId2TopTenTweets.get(userId).sort((i1, i2)->i2.getTimestamp() - i1.getTimestamp() > 0 ? 1:i2.getTimestamp() - i1.getTimestamp() == 0 ? 0 : -1);...
[ "0.7397106", "0.72772986", "0.7118056", "0.71104103", "0.7091302", "0.7090839", "0.7041695", "0.70031303", "0.70019233", "0.6965341", "0.6956884", "0.6843059", "0.6773689", "0.66074145", "0.6443445", "0.62741786", "0.61654913", "0.607053", "0.6061224", "0.6000809", "0.597919"...
0.7094867
4
Follower follows a followee. If the operation is invalid, it should be a noop.
public void follow(int followerId, int followeeId) { if (!followMap.containsKey(followerId)) followMap.put(followerId, new HashSet<Integer>()); followMap.get(followerId).add(followeeId); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void follow(int followerId, int followeeId) {\n\n }", "public void follow(int followerId, int followeeId) {\n User source = null, target = null;\n for (User user : users) {\n if (user.id == followerId) {\n source = user;\n } else if (user.id == followeeI...
[ "0.770701", "0.6850424", "0.68359566", "0.6761452", "0.6708923", "0.6679957", "0.66432476", "0.6604375", "0.65586865", "0.6547666", "0.65421695", "0.6535171", "0.64963305", "0.649092", "0.6484797", "0.6464816", "0.64592046", "0.6437697", "0.6433518", "0.6425207", "0.6408313",...
0.6357308
23
Follower unfollows a followee. If the operation is invalid, it should be a noop.
public void unfollow(int followerId, int followeeId) { if (followMap.containsKey(followerId) && followeeId != followerId) followMap.get(followerId).remove(followeeId); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void unfollow(int followerId, int followeeId) {\n\n }", "void unFollow(User user);", "@Override\n\tpublic void unfollow(String username) throws Exception {\n\t\t\n\t}", "@Override\n\t\tpublic void onUnfollow(User arg0, User arg1) {\n\t\t\t\n\t\t}", "public Follow unfollow(String follower, String fo...
[ "0.8344839", "0.7761416", "0.75235134", "0.75110894", "0.73627955", "0.7235336", "0.70879", "0.69952446", "0.696235", "0.69611454", "0.6959739", "0.69580394", "0.6926527", "0.6916363", "0.68106127", "0.6803454", "0.6797477", "0.67881954", "0.67419165", "0.6729588", "0.6727928...
0.6761631
18
Creates a new semaphore that is available.
public Semaphore() { m_available = true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Semaphore(boolean isAvailable) {\n m_available = isAvailable;\n }", "protected void lock() {\n semaphore = new Semaphore(0);\n try {\n semaphore.acquire();\n }\n catch(InterruptedException e) {\n System.out.println(\"Trouble for request of semaph...
[ "0.7005643", "0.6351345", "0.62238276", "0.60430753", "0.6021439", "0.6013619", "0.6011681", "0.59091604", "0.5561444", "0.5379572", "0.53494895", "0.5312283", "0.5250421", "0.52437335", "0.51751536", "0.5126562", "0.5095167", "0.50203806", "0.49907777", "0.49894184", "0.4981...
0.7490863
0
Creates a new semaphore and allows you to specify if it's available or not.
public Semaphore(boolean isAvailable) { m_available = isAvailable; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Semaphore() {\n m_available = true;\n }", "public SimpleSemaphore2(boolean b) \n { this(b ? 1 : 0, 1); }", "public interface Semaphore {\r\n\r\n public abstract void acquireOnStart() throws SemaphoreException;\r\n\r\n public abstract void releaseOnEnd() throws SemaphoreException;\r\n\r\n ...
[ "0.75643945", "0.66880006", "0.64454114", "0.628439", "0.6165874", "0.6137288", "0.5949", "0.5728258", "0.5453152", "0.5411904", "0.52776325", "0.5261415", "0.52516687", "0.51692235", "0.5154538", "0.49736214", "0.49478686", "0.492831", "0.488901", "0.48800445", "0.48731378",...
0.72288334
1
Acquires the semaphore, or blocks until it's available or the thread is interrupted.
public void acquire() throws InterruptedException { if (Thread.interrupted()) { throw new InterruptedException(); } synchronized (this) { try { if (!m_available) { wait(); } m_available = false; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void lock() {\n semaphore = new Semaphore(0);\n try {\n semaphore.acquire();\n }\n catch(InterruptedException e) {\n System.out.println(\"Trouble for request of semaphore acquirement\");\n e.printStackTrace();\n }\n }", "public Sema...
[ "0.76132333", "0.71011066", "0.68436766", "0.6500464", "0.6254648", "0.620197", "0.620197", "0.60811746", "0.60593855", "0.6013287", "0.59733695", "0.5969523", "0.5878406", "0.58639127", "0.5843727", "0.58040494", "0.5771738", "0.57563365", "0.5744613", "0.5709595", "0.570193...
0.6634433
3
Tries to acquire the semaphore and waits for the duration of the specified timeout until it becomes available.
public boolean tryAcquire(long timeout) throws InterruptedException { if (Thread.interrupted()) { throw new InterruptedException(); } synchronized (this) { if (m_available) { m_available = false; return true; } else ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void awaitNanos(final long timeout) throws InterruptedException;", "private void blockOnLock(final int timeout) {\n synchronized (sERDLock) {\n try {\n sERDLock.wait(timeout);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n ...
[ "0.64805084", "0.602881", "0.597196", "0.57685816", "0.567561", "0.5664729", "0.5639889", "0.5615651", "0.555002", "0.554647", "0.54335856", "0.5397359", "0.53289497", "0.5322882", "0.5304031", "0.5269508", "0.5229093", "0.5226954", "0.5179679", "0.51755", "0.5169008", "0.5...
0.6637093
0
Releases the semaphore. If threads were waiting, one of them is notified.
public synchronized void release() { m_available = true; notify(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void unlock() {\n if(semaphore != null && semaphore.availablePermits() == 0) {\n semaphore.release();\n }\n }", "void release()\n {\n synchronized (m_lock)\n {\n m_released = true;\n\n m_lock.notifyAll();\n }...
[ "0.7304939", "0.6914308", "0.6637648", "0.59642667", "0.57781476", "0.57623106", "0.5607315", "0.5604686", "0.5596663", "0.5573506", "0.5548488", "0.5520406", "0.55049825", "0.548554", "0.5480853", "0.5468251", "0.54558414", "0.53949994", "0.53845435", "0.53288597", "0.524916...
0.5842929
4
trick, use normal sum
@Override protected void computeSum(double[] c, int nRows) { super.computeSum(c, nRows); // and add all sum of reference multiplied with nrows. final double refSum = FORUtil.refSum(_reference); c[0] += refSum * nRows; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "double getSum();", "double getSum();", "public T sum();", "@Override\n public Integer reduce(Integer value, Integer sum) {\n return value + sum;\n }", "public double sum() {\n/* 196 */ return this.mean * this.count;\n/* */ }", "public long sum() {\n\t\tlong result = 0;\n\t\tfor (in...
[ "0.7157253", "0.7157253", "0.66201127", "0.64056456", "0.63157946", "0.62855834", "0.62828237", "0.6275976", "0.6205734", "0.6203388", "0.6157126", "0.6131223", "0.6119559", "0.60968304", "0.6094399", "0.60871744", "0.60856795", "0.6076913", "0.6073041", "0.60647446", "0.6064...
0.0
-1
trick, use normal sum
@Override public void computeColSums(double[] c, int nRows) { super.computeColSums(c, nRows); // and add reference multiplied with number of rows. for(int i = 0; i < _colIndexes.length; i++) c[_colIndexes[i]] += _reference[i] * nRows; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "double getSum();", "double getSum();", "public T sum();", "@Override\n public Integer reduce(Integer value, Integer sum) {\n return value + sum;\n }", "public double sum() {\n/* 196 */ return this.mean * this.count;\n/* */ }", "public long sum() {\n\t\tlong result = 0;\n\t\tfor (in...
[ "0.7157253", "0.7157253", "0.66201127", "0.64056456", "0.63157946", "0.62855834", "0.62828237", "0.6275976", "0.6205734", "0.6203388", "0.6157126", "0.6131223", "0.6119559", "0.60968304", "0.6094399", "0.60871744", "0.60856795", "0.6076913", "0.6073041", "0.60647446", "0.6064...
0.0
-1
square sum the dictionary.
@Override protected void computeSumSq(double[] c, int nRows) { c[0] += _dict.sumSqWithReference(getCounts(), _reference); final double refSum = FORUtil.refSumSq(_reference); // Square sum of the reference values only for the rows that is not represented in the Offsets. c[0] += refSum * (_numRows - _data.size()...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static double sum(Map<Integer, Map<String, Object>> dict, String col){\n\t\tdouble sum = 0;\n\t\t\n\t\tfor(Integer key : dict.keySet()){\n\t\t\tsum += (double) dict.get(key).get(col);\n\t\t}\n\t\t\n\t\treturn sum;\n\t}", "public int getSum() {\n int result = 0;\n\n for (Map.Entry<Integer, Integer> ...
[ "0.6814945", "0.65465367", "0.62268215", "0.61920565", "0.60977286", "0.5987587", "0.5987587", "0.5817996", "0.57131016", "0.56604046", "0.5632058", "0.5592544", "0.55277383", "0.54270345", "0.5405252", "0.5327478", "0.5288294", "0.5196598", "0.51800597", "0.5169209", "0.5162...
0.49161032
47
should be guaranteed to be one column therefore only one reference value.
@Override public CM_COV_Object centralMoment(CMOperator op, int nRows) { CM_COV_Object ret = _dict.centralMomentWithReference(op.fn, getCounts(), _reference[0], nRows); int count = _numRows - _data.size(); op.fn.execute(ret, _reference[0], count); return ret; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract Value getReferenceValue();", "public StrColumn getReference() {\n return delegate.getColumn(\"reference\", DelegatingStrColumn::new);\n }", "boolean referencesSingleColumnPrimaryKey();", "public boolean referenceColumnInSql() {\n return false;\n }", "Column refer...
[ "0.6395304", "0.63667786", "0.6272701", "0.62256694", "0.6151604", "0.5853332", "0.5849724", "0.57593197", "0.57426393", "0.56720275", "0.56362313", "0.54982764", "0.54639935", "0.544051", "0.54315025", "0.5415976", "0.5410896", "0.5410254", "0.5406971", "0.5406971", "0.54059...
0.0
-1
Select a list of NewsletterQueue based on a given maximum number of returning records.
public List<NewsletterQueue> select(int maxResult);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int queuesWithPendingMessages(List<QueueDto> queues, int maxNumQueues) throws IOException, MlmqException;", "void setMaxResults(int limit);", "CamelJpaConsumerBindingModel setMaximumResults(Integer maximumResults);", "public List<SalesOrderAggregatedCreated> select(int maxResult);", "@Override\n\tpublic Li...
[ "0.63802326", "0.63322634", "0.62728745", "0.6177306", "0.6118371", "0.61039937", "0.5935648", "0.5935648", "0.5884351", "0.57196915", "0.5597717", "0.5583956", "0.55629784", "0.5518404", "0.550539", "0.54529935", "0.5426411", "0.54117155", "0.53946364", "0.53646445", "0.5345...
0.859691
0
Constructs a configuration provider with disabled authentication for the REST service
public ConfigurationProviderHTTP(List<URI> baseList) throws IOException { this(baseList, null, null); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void loadSecurityProviderConfig() throws ConfigurationException;", "@Override\n\tprotected void configure(AuthenticationManagerBuilder auth) throws Exception {\n\t\tif (isDevelopment()) {\n\t\t\tswitch (this.applicationProperties.getMode()) {\n\t\t\tcase basic:\n\t\t\t\tauth.inMemoryAuthentication().withUser(\"I...
[ "0.6005579", "0.5690703", "0.5649597", "0.5567742", "0.5567207", "0.550014", "0.5495903", "0.54720676", "0.54470396", "0.540938", "0.5405007", "0.5374421", "0.53263307", "0.5266913", "0.5260906", "0.525748", "0.52546084", "0.5253759", "0.52424157", "0.52258253", "0.52151656",...
0.0
-1
Constructs a configuration provider with a given credentials for the REST service
public ConfigurationProviderHTTP(List<URI> baseList, String restUsr, String restPwd) throws IOException { this.baseList = baseList; this.restUsr = restUsr; this.restPwd = restPwd; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Credentials()\n {\n this(null, null, null, null);\n }", "public DelegateCredentialsProvider build() {\n return new DelegateCredentialsProvider(this);\n }", "public DefaultCredentialsProvider() {\n // nothing\n }", "public ClientCredentials() {\n }", "publi...
[ "0.60527456", "0.5915464", "0.58383775", "0.58216035", "0.57775235", "0.5774933", "0.576407", "0.5759344", "0.5616386", "0.56135166", "0.5606145", "0.55691487", "0.55499655", "0.54698205", "0.54668057", "0.54580414", "0.54443306", "0.53581655", "0.5356533", "0.5350246", "0.53...
0.63963103
0
Connects to the REST service and retrieves the bucket configuration from the first pool available
public Bucket getBucketConfiguration(final String bucketname) throws ConfigurationException { if (bucketname == null || bucketname.isEmpty()) { throw new IllegalArgumentException("Bucket name can not be blank."); } Bucket bucket = this.buckets.get(bucketname); if (bucket == n...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void readPools(String bucketToFind) throws ConfigurationException {\n // the intent with this method is to encapsulate all of the walking of URIs\n // and populating an internal object model of the configuration to one place\n for (URI baseUri : baseList) {\n try {\n ...
[ "0.6369218", "0.58309144", "0.5750747", "0.56321603", "0.5545202", "0.5496466", "0.5458999", "0.54439825", "0.53036314", "0.5300125", "0.52951235", "0.52854234", "0.52846736", "0.52510273", "0.51924914", "0.514958", "0.51373434", "0.5136674", "0.5126732", "0.5124703", "0.5094...
0.5874805
1
For a given bucket to be found, walk the URIs in the baselist until the bucket needed is found.
private void readPools(String bucketToFind) throws ConfigurationException { // the intent with this method is to encapsulate all of the walking of URIs // and populating an internal object model of the configuration to one place for (URI baseUri : baseList) { try { // get and...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Node _locate(Object key, int bucketNum){\n\t\tNode bucketList = _buckets[bucketNum];\r\n\t\twhile(bucketList != null)\r\n\t\t{\r\n\t\t\tif(key == bucketList._key){\t\t\t\t// If the key matches the key of the current node\r\n\t\t\t\tbreak;\t\t\t\t\t\t\t\t// in bucketList, then return the bucketList.\r\n\t\t...
[ "0.593453", "0.5507233", "0.5342012", "0.52152485", "0.5199978", "0.51777077", "0.51534516", "0.5137669", "0.50270635", "0.49829873", "0.49099922", "0.48294592", "0.4773187", "0.4771541", "0.47605225", "0.47514698", "0.47456875", "0.47401512", "0.47390875", "0.4719839", "0.47...
0.62365025
0
Subscribes for configuration updates
public void subscribe(String bucketName, Reconfigurable rec) throws ConfigurationException { Bucket bucket = getBucketConfiguration(bucketName); ReconfigurableObserver obs = new ReconfigurableObserver(rec); BucketMonitor monitor = this.monitors.get(bucketName); if (monitor == null) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void notifyConfigChange() {\n }", "void onConfigChanged(ConfigUpdate update);", "void configurationUpdated();", "private void fireConfigChanged()\n {\n ScmEventBus.getInstance().post(\n new RepositoryHandlerConfigChangedEvent<C>(config));\n }", "protected void fireConfigUpdated()\r\n ...
[ "0.727073", "0.72277564", "0.7131251", "0.70290184", "0.6872227", "0.6748055", "0.67050785", "0.6456053", "0.64155924", "0.64023465", "0.63670725", "0.63670546", "0.6363701", "0.6361898", "0.63419634", "0.6236128", "0.6187564", "0.61821914", "0.6155219", "0.6110666", "0.60006...
0.5339565
84
Unsubscribe from updates on a given bucket and given reconfigurable
public void unsubscribe(String vbucketName, Reconfigurable rec) { BucketMonitor monitor = this.monitors.get(vbucketName); if (monitor != null) { monitor.deleteObserver(new ReconfigurableObserver(rec)); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void delete(UnsubscribeRequest request);", "void unsubscribe(Subscription subscription);", "public void onUnsubscribe() {\n\n }", "@Override\n public void onUnsubscribe(String channel, int subscribedChannels) {\n super.onUnsubscribe(channel, subscribedChannels);\n ...
[ "0.5872946", "0.5751001", "0.57170767", "0.5684867", "0.5573317", "0.5543371", "0.55215067", "0.5508557", "0.54857606", "0.54666185", "0.544314", "0.54146", "0.54056156", "0.539281", "0.5384639", "0.5324506", "0.5302524", "0.53017825", "0.5291373", "0.5236214", "0.5194781", ...
0.701139
0