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
This method was generated by MyBatis Generator. This method corresponds to the database table user_info
int updateByPrimaryKey(UserInfo record);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic Map<String, Object> getUserInfo(Map<String, Object> map) {\n\t\tString sql=\"select * from tp_users where userId=:userId\";\n\t\treturn joaSimpleDao.queryForList(sql, map).get(0);\n\t}", "@Override\n\tpublic Map<String, Object> getUserInfoDetail(Map<String, Object> reqs) {\n\t\treturn joaSimp...
[ "0.6871829", "0.64224845", "0.6402041", "0.63471144", "0.63128966", "0.62912726", "0.6289952", "0.62792385", "0.6278945", "0.62610584", "0.6222564", "0.61973333", "0.6184486", "0.6177213", "0.61759883", "0.61696297", "0.61687046", "0.61596906", "0.6159382", "0.6074989", "0.60...
0.0
-1
Wraps a value into an XML document app
static public Json wrapString(String string, QName type) { JsonObject json = new JsonObject(); json.put(Manager.XP_VALUE.toString(), string); json.put(Manager.XP_TYPE.toString(), type.toString()); return json; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Element createXmlElementForValue(Value value, Document xmlDocument, Constraint constraint) {\n\t\tif (value instanceof ScopedValue) {\n\t\t\tLogging.LOGGER.warning(\"In ValueViewer.createXmlElementForValue: value must not be a ScopedValue. Please debug.\");\n\t\t\t\n\t\t\treturn createXmlElementForValue(((...
[ "0.6853341", "0.64228255", "0.6241777", "0.60672486", "0.60639274", "0.5993523", "0.5972056", "0.59156567", "0.5794652", "0.5709429", "0.56570876", "0.56570876", "0.56570876", "0.55955654", "0.5589152", "0.55856866", "0.5581494", "0.5574439", "0.5562053", "0.5557287", "0.5532...
0.0
-1
The statements in the setup() function execute once when the program begins
public void setup() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setup() {\n }", "protected void setup() {\r\n }", "public void preSetup() {\r\n // Any of your pre setup before the loop starts should go here\r\n }", "public void preSetup() {\r\n // Any of your pre setup before the loop starts should go here\r\n\r\n }", "@Overrid...
[ "0.7764996", "0.77145904", "0.7664232", "0.76414967", "0.76020014", "0.74030685", "0.74030685", "0.7389517", "0.7370186", "0.7368344", "0.7300711", "0.7274305", "0.72731864", "0.7223451", "0.7223451", "0.7223451", "0.7220688", "0.7212119", "0.7203114", "0.7182719", "0.7159434...
0.7690009
2
The statements in draw() are executed until the program is stopped. Each statement is executed in sequence and after the last line is read, the first line is executed again.
public void draw() { background(255); // Clear the screen with a white background textSize(12); fill(0); stroke(0); curve.draw(this); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void draw()\r\n\t{\r\n\t\tsynchronized (lines)\r\n\t\t{\r\n\t\t\tfor(int i = lines.size()-1; i >= 0; i--)\r\n\t\t\t{\r\n\t\t\t\tlines.get(i).draw();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void draw() {\n\t\t\r\n\t\tSystem.out.println(\"drawing...\");\r\n\t\t\r\n\t}", "public static void firstDraw() {\n\t\...
[ "0.7305104", "0.7301436", "0.7060541", "0.6868052", "0.68200505", "0.6699733", "0.6622396", "0.6581763", "0.6558353", "0.6558264", "0.65521115", "0.6531262", "0.65176785", "0.65067226", "0.646195", "0.643456", "0.64337415", "0.6410658", "0.64089864", "0.64089864", "0.64089864...
0.6157038
34
Funzione che restituisce l'output di un processo lanciato con JRE
private static List<String> readOutput(Process process) throws IOException { BufferedReader reader = new BufferedReader(new InputStreamReader(process.getInputStream())); String line; List<String> lines = new ArrayList<>(); while ((line = reader.readLine()) != null) { lines.add(line); } return lines; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void processOutput() {\n\n\t}", "java.lang.String getOutputjar();", "private String collectResultFromProcess(Process proc)\r\n\t{\r\n\t\tStringBuilder sb_result = new StringBuilder();\r\n\t\t\r\n BufferedReader stdInput = new BufferedReader(new InputStreamReader(proc.getInputStream()));\r\n ...
[ "0.6284092", "0.6207149", "0.6121594", "0.6107037", "0.6102552", "0.6018853", "0.59867424", "0.5981054", "0.5762807", "0.56686753", "0.5649015", "0.5603429", "0.5548522", "0.5544306", "0.5524886", "0.5505798", "0.5468088", "0.53960025", "0.53752804", "0.5334041", "0.5328975",...
0.56503385
10
Funzione che restituisce l'errore di un processo lanciato con JRE
public static List<String> readError(Process process) throws IOException{ BufferedReader reader = new BufferedReader(new InputStreamReader(process.getErrorStream())); String line; List<String> lines = new ArrayList<>(); while ((line = reader.readLine()) != null) { lines.add(line); } return lines; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Object getFailonerror();", "Object getFailonerror();", "protected void finalizeSystemErr() {}", "private static void error( Exception e ) {\n e.printStackTrace();\n System.exit(-1);\n }", "private native static int shout_get_errno(long shoutInstancePtr);", "void notSupported(String error...
[ "0.6441018", "0.6441018", "0.6376316", "0.6077323", "0.59324473", "0.58266675", "0.5808405", "0.577304", "0.5740175", "0.5693317", "0.56486005", "0.55988085", "0.558366", "0.558366", "0.55833405", "0.55625534", "0.55564034", "0.5541705", "0.55390495", "0.5528025", "0.5522754"...
0.5092319
73
Funzione per controllare l'output di un comando verso fw
private static String checkOutput(List<String> lines) { String result = ""; for(String l : lines) { if(l.contains("OK")) { result = "OK"; }else if(l.contains("Failure")) { result = "FAILURE"; }else if(l.isEmpty()) { continue; }else if(l.contains("error")){ result = "SYNTAX_ERROR"; } ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void cmdWrite(String filename) throws NoSystemException {\n MSystem system = system();\n PrintWriter out = null;\n try {\n if (filename == null)\n out = new PrintWriter(System.out);\n else {\n out = new PrintWriter(new BufferedWriter(...
[ "0.5851332", "0.5833775", "0.5598069", "0.55753165", "0.5555131", "0.5545627", "0.5545064", "0.5514197", "0.55127233", "0.5495656", "0.5466728", "0.5460196", "0.5450564", "0.5447692", "0.5429733", "0.5398215", "0.53879845", "0.5373573", "0.53424245", "0.5339156", "0.5331877",...
0.0
-1
Funzione per controllare l'avanzamento di un comando verso fw
private static List<String> checkOutputLong(List<String> lines){ String state = ""; String result = ""; String progressPercentage = ""; String additionalInfo = ""; List<String> output = new ArrayList<>(); for(String s : lines) { if(s.contains("state")) { if(s.contains("FINISHED")) { state...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void acomodaVista() {\n\n\t}", "private void checkForUpgrade() {\n try {\n\n File latestReleaseFile;\n\n if (Double.valueOf(thisVersion) >= 17) {\n latestReleaseFile = new File(\"I:\\\\support_admin\\\\scripts\\\\richmon\\\\upgradeToV17.txt\");\n }\n else {...
[ "0.58643734", "0.5836773", "0.5524611", "0.5402549", "0.53398305", "0.53322524", "0.5319381", "0.5308165", "0.52835625", "0.5251959", "0.52403885", "0.52392095", "0.5224967", "0.52223045", "0.5216925", "0.5214862", "0.52071804", "0.5191151", "0.5185155", "0.51812094", "0.5172...
0.0
-1
Funzione che inizia l'installazione di uno specifico certificato
private static String startInstallCertificate(Server RA_CA, String certificate) { String result; try { String protocol = RA_CA.getProtocol(); String inet = RA_CA.getInet(); String tcpPort = RA_CA.getTcpPort(); String location = protocol + "://" + inet + ":" + tcpPort + "/" + certificate; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void obtenerCertificado() {\n\n\t\tcertificado = generarCertificado(lasLlaves);\n\n\t\ttry {\n\n\t\t\tString cert = in.readLine();\n\t\t\tbyte[] esto = parseBase64Binary(cert);\n\t\t\tCertificateFactory cf = CertificateFactory.getInstance(\"X.509\");\n\t\t\tInputStream is = new ByteArrayInputStream(esto);\...
[ "0.6412695", "0.6203677", "0.60668516", "0.5912223", "0.59001213", "0.58471185", "0.58471185", "0.5844677", "0.57169837", "0.56375283", "0.5615381", "0.5579944", "0.5549144", "0.54627746", "0.54515696", "0.5412882", "0.5402115", "0.5397849", "0.5355939", "0.5346498", "0.53450...
0.0
-1
Funzione per controllare l'avanzamento dell'installazione di un certificato
private static List<String> checkInstallCertificates(){ List<String> output = new ArrayList<>(); try { String cmd = currentDir + scriptDir + "checkInstallCertificate.sh"; Process p = Runtime.getRuntime().exec(cmd); List<String> lines = readOutput(p); output = checkOutputLong(lines); return ou...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void obtenerCertificado() {\n\n\t\tcertificado = generarCertificado(lasLlaves);\n\n\t\ttry {\n\n\t\t\tString cert = in.readLine();\n\t\t\tbyte[] esto = parseBase64Binary(cert);\n\t\t\tCertificateFactory cf = CertificateFactory.getInstance(\"X.509\");\n\t\t\tInputStream is = new ByteArrayInputStream(esto);\...
[ "0.62933815", "0.6179921", "0.6059144", "0.569073", "0.5687951", "0.5677262", "0.56268", "0.559614", "0.5590723", "0.5590316", "0.5583198", "0.5583198", "0.5579348", "0.5532922", "0.55283785", "0.55253553", "0.5471129", "0.54666966", "0.5284834", "0.5281525", "0.527539", "0...
0.0
-1
Procedura che esegue l'installazione di tutti i certificati utilizzando le due funzione precedenti
private static void installAllCertificates(List<String> certificates, Server ra_ca_server) { String resultCertDownload; List<String> resultCheck; String state = ""; String result = ""; String progressPercentage; String additionalInfo = ""; for (String certificate : certificates) { try { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void obtenerCertificado() {\n\n\t\tcertificado = generarCertificado(lasLlaves);\n\n\t\ttry {\n\n\t\t\tString cert = in.readLine();\n\t\t\tbyte[] esto = parseBase64Binary(cert);\n\t\t\tCertificateFactory cf = CertificateFactory.getInstance(\"X.509\");\n\t\t\tInputStream is = new ByteArrayInputStream(esto);\...
[ "0.645151", "0.6430526", "0.63034624", "0.61011225", "0.60676146", "0.59957355", "0.5947655", "0.5847793", "0.5791512", "0.57866406", "0.57304263", "0.5727359", "0.57217175", "0.57217175", "0.56916714", "0.5563811", "0.556162", "0.5553495", "0.5553199", "0.5547437", "0.55392"...
0.5014892
93
TODO Autogenerated method stub
@Override public void execute() throws ServletException, IOException { try { new RemoveGroupCommand(myHelper).process(); String path = this.myRequest.getContextPath() + this.myRequest.getServletPath() + "/" + "browse_group"; this.myResponse.sendRedirect(path); } catch(Exception e) { e.pr...
{ "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.66708666", "0.65675074", "0.65229905", "0.6481001", "0.64770633", "0.64584893", "0.6413091", "0.63764185", "0.6275735", "0.62541914", "0.6236919", "0.6223816", "0.62017626", "0.61944294", "0.61944294", "0.61920846", "0.61867654", "0.6173323", "0.61328775", "0.61276996", "0...
0.0
-1
let f(n) denote the fewest number of coins needed to make up amount n. f(n) = Min(f(n x)) + 1, x is the coins we have
public int coinChange(int[] coins, int amount) { int[] f = new int[amount + 1]; return search(coins, amount, f); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int coinNeededBU(int[] coins, int amount, int n) {\n int dp[] = new int[amount + 1];\n Arrays.fill(dp, Integer.MAX_VALUE);\n\n dp[0] = 0;\n for (int rupay = 1; rupay <= amount; rupay++) {\n\n //Iterating over Coins\n for (int i = 0; i < n; i++) {\n\n ...
[ "0.74548244", "0.7352655", "0.72115797", "0.70453084", "0.6857462", "0.68028975", "0.6735443", "0.6669835", "0.6636371", "0.6577994", "0.651825", "0.6451711", "0.64429796", "0.6401374", "0.6313635", "0.6296492", "0.62554044", "0.62427527", "0.62357324", "0.6220048", "0.620136...
0.619871
21
The current connection state
public TcpControlBlock(IpAddress tcb_our_ip_addr){ this.tcb_our_ip_addr = tcb_our_ip_addr.getAddress(); this.tcb_seq = (int) Math.random(); this.tcb_state = ConnectionState.S_CLOSED; tcb_p_data = new Vector<ByteBuffer>(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getConnectionStatus()\r\n { return connectionStatus; }", "public String getConnectionStatus() {\n\t\treturn this.connectionStatus;\n\t}", "public Connection getConnectionStatus() {\n\t\treturn this.connection;\n\t}", "public int getConnectionState () {\n\t\treturn state;\n\t}", "public bool...
[ "0.7784583", "0.77746755", "0.7676092", "0.76500523", "0.7241226", "0.7119862", "0.69555193", "0.6878473", "0.6840687", "0.6818283", "0.67870796", "0.6771338", "0.67661375", "0.67566085", "0.67439365", "0.673732", "0.67279685", "0.6723599", "0.6713628", "0.67102474", "0.66879...
0.0
-1
TODO Autogenerated method stub
@Override public void actionPerformed(ActionEvent arg0) { model = new StudentLoginModel(); user = txtStudentName.getText(); ps = passWord.getPassword(); //işte burda diyelim şifre doğru değil ise JOptionPane.showMessageDialog(null, " Please check the username or password and try again! ...
{ "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
/ JADX WARNING: Missing block: B:10:0x0055, code: if (r4.pkgList.containsKey(r2) == null) goto L_0x005a; / Code decompiled incorrectly, please refer to instructions dump.
boolean dumpLocked(FileDescriptor fd, PrintWriter pw, boolean needSep, String dumpPackage) { boolean needSep2; int ip; int i; AppErrors appErrors = this; PrintWriter printWriter = pw; String str = dumpPackage; if (appErrors.mProcessCrashTimes.getMap().isEmpty()) {...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private synchronized void m29549c() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n*/\n /*\n r6 = this;\n monitor-enter(r6);\n r0 = r6.f24853c;\t Catch:{ all -> 0x0050 }\n if (r0 == 0) goto L_0x004b;\t Catch:{ all -> 0x0050 }\n L_0x0...
[ "0.6377515", "0.628242", "0.6084698", "0.6075795", "0.60489273", "0.59822977", "0.5945421", "0.58945596", "0.58854467", "0.58845705", "0.58750576", "0.5870292", "0.58664113", "0.58638513", "0.58166736", "0.57768434", "0.57741666", "0.5771066", "0.5741308", "0.5724312", "0.572...
0.0
-1
/ JADX WARNING: Missing block: B:107:0x01e8, code: com.android.server.am.ActivityManagerService.resetPriorityAfterLockedSection(); / JADX WARNING: Missing block: B:108:0x01eb, code: if (r1 == null) goto L_0x0202; / JADX WARNING: Missing block: B:110:?, code: r11.mContext.startActivityAsUser(r1, new android.os.UserHandl...
void crashApplicationInner(ProcessRecord r, CrashInfo crashInfo, int callingPid, int callingUid) { Throwable th; AppErrorResult appErrorResult; CrashInfo crashInfo2; long orig; ProcessRecord processRecord = r; CrashInfo crashInfo3 = crashInfo; long timeMillis = Sy...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static synchronized void e(android.content.Context r11) {\n /*\n java.lang.Class<com.tencent.wxop.stat.g> r0 = com.tencent.wxop.stat.g.class\n monitor-enter(r0)\n if (r11 != 0) goto L_0x0007\n monitor-exit(r0)\n return\n L_0x0007:\n ...
[ "0.64636636", "0.6271273", "0.62171197", "0.6170319", "0.61223716", "0.60719967", "0.5992146", "0.58879197", "0.57986045", "0.5751436", "0.5739809", "0.56897175", "0.56497973", "0.5634937", "0.56281465", "0.56266755", "0.56137836", "0.55852884", "0.5580609", "0.5538951", "0.5...
0.529013
36
/ JADX WARNING: Missing block: B:56:0x00fe, code: com.android.server.am.ActivityManagerService.resetPriorityAfterLockedSection(); / JADX WARNING: Missing block: B:57:0x0101, code: if (r2 == null) goto L_0x0106; / JADX WARNING: Missing block: B:58:0x0103, code: r2.show(); / JADX WARNING: Missing block: B:59:0x0106, code...
void handleShowAnrUi(Message msg) { Throwable th; Dialog dialogToShow = null; synchronized (this.mService) { try { ActivityManagerService.boostPriorityForLockedSection(); Data data = msg.obj; ProcessRecord proc = data.proc; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void m2108c() {\n /*\n r3 = this;\n r0 = \"Calling this from your main thread can lead to deadlock\";\n com.google.android.gms.common.internal.C1305x.m6628c(r0);\n monitor-enter(r3);\n r0 = r3.f1274g;\t Catch:{ all -> 0x002a }\n if (r0 == 0) goto L_0x000e;\n ...
[ "0.6954959", "0.68419194", "0.68162364", "0.6801433", "0.66784656", "0.6521193", "0.65118665", "0.6460745", "0.64424515", "0.63815737", "0.63776815", "0.635863", "0.63347393", "0.6333995", "0.6231251", "0.6218892", "0.6213341", "0.61603683", "0.6150603", "0.61472005", "0.6140...
0.0
-1
Handle invalid content gracecully and also add to cache
@Test public void getOembedResponseForShouldWork3() throws IOException { String embeddableUrl = "http://biking.michael-simons.eu/tracks/1"; OembedEndpoint oembedEndpoint = new OembedEndpoint(); oembedEndpoint.setName("biking"); oembedEndpoint.setEndpoint("http://biking.michael-simons.eu/oembed"); oembedEndpo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void invalidateCache() {\n\t}", "private void tryStaleEntry (RequestHandler rh, Exception e) {\n\tif (rh.entry != null && rh.conditional && !mustRevalidate) {\n\t handleStaleEntry (rh);\n\t} else {\n\t doError (504, e);\n\t return;\n\t}\n }", "@Override\n\tpublic void invalidateCache() {\n\...
[ "0.58208674", "0.57410455", "0.56466335", "0.5629142", "0.5545778", "0.5528067", "0.55202824", "0.5451781", "0.5444528", "0.5418975", "0.5401836", "0.5390598", "0.53854704", "0.5371534", "0.5371256", "0.533595", "0.53303605", "0.53192925", "0.5286454", "0.5276464", "0.5272459...
0.0
-1
Embedding through configured endpoint including request provider
@Test public void getOembedResponseForShouldWork4() throws IOException { String embeddableUrl = "http://biking.michael-simons.eu/tracks/1"; OembedEndpoint oembedEndpoint = new OembedEndpoint(); oembedEndpoint.setName("biking"); oembedEndpoint.setEndpoint("http://biking.michael-simons.eu/oembed"); oembedEndpo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void configureEndpoint(Endpoint endpoint);", "@WebMethod\n URI exposeEndpoint(Endpoint endpoint);", "public interface AppInfoProvider {\n String provideBaseEndpoint();\n}", "ManagedEndpoint next();", "ManagedEndpoint next(EndpointCriteria criteria);", "public interface AppFooEndpoint {\n}", "@Fei...
[ "0.6166108", "0.6027685", "0.5949213", "0.588892", "0.5822446", "0.5740545", "0.5691193", "0.5689981", "0.5650745", "0.55999994", "0.5587037", "0.5544602", "0.5544602", "0.5520948", "0.55066806", "0.5490535", "0.5473164", "0.5467711", "0.5466183", "0.5465672", "0.54543525", ...
0.0
-1
Embedding through auto discovered endpoint using default request provider
@Test public void getOembedResponseForShouldWork5() throws IOException { String embeddableUrl = "https://dailyfratze.de/michael/2014/10/13"; HttpResponse r1 = Mockito.mock(HttpResponse.class, Mockito.RETURNS_DEEP_STUBS); when(r1.getStatusLine().getStatusCode()).thenReturn(200); when(r1.getEntity().getContentTyp...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface AppInfoProvider {\n String provideBaseEndpoint();\n}", "Endpoint getDefaultEndpoint();", "public abstract Endpoint createAndPublishEndpoint(String address, Object implementor);", "public static void loadEndpoints(){\n\t\tStart.loadEndpoints();\n\t\t//add\t\t\n\t\t//e.g.: get(\"/my-endpoin...
[ "0.6245328", "0.6117786", "0.58313876", "0.5825797", "0.5787085", "0.574005", "0.5712314", "0.56912446", "0.5661717", "0.562621", "0.562621", "0.56038374", "0.5590109", "0.5582184", "0.55459434", "0.5537907", "0.5535757", "0.5522655", "0.5517924", "0.55101526", "0.5509359", ...
0.0
-1
Get also the "orElse" branch in selecting the renderer as no endpoint is configured, also no renderes
@Test public void embedUrlsShouldWork2() { Ehcache cache = Mockito.mock(Ehcache.class); String embeddableUrl = "http://biking.michael-simons.eu/tracks/1"; when(cache.get(embeddableUrl)).thenReturn(new Element(embeddableUrl, response1)); when(cacheManager.addCacheIfAbsent("testCache")).thenReturn(cache); Oembe...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public Object getRenderer()\n {\n return null;\n }", "public static IRenderHandler getRendererFor(String option, IRenderHandler subRenderer) {\n\t\tfor(ISkyRenderType type : INSTANCE.rendererTypes)\n\t\t\tif(type.getName().equals(option))\n\t\t\t\treturn type.createSkyRenderer(subRend...
[ "0.60055995", "0.57078713", "0.54739636", "0.5439363", "0.5424984", "0.53998435", "0.53973144", "0.53873926", "0.53535175", "0.5335302", "0.52639264", "0.5222994", "0.51958174", "0.51722324", "0.51373017", "0.5091112", "0.5089044", "0.5074541", "0.5060956", "0.50457925", "0.4...
0.0
-1
Broken renderer No oembed response for test.com
@Test public void embedUrlsShouldWork3() { Ehcache cache = Mockito.mock(Ehcache.class); String embeddableUrl = "http://biking.michael-simons.eu/tracks/1"; when(cache.get(embeddableUrl)).thenReturn(new Element(embeddableUrl, response1)); when(cacheManager.addCacheIfAbsent("testCache")).thenReturn(cache); Oembe...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void getOembedResponseForShouldWork4() throws IOException {\n\tString embeddableUrl = \"http://biking.michael-simons.eu/tracks/1\";\n\t\n\tOembedEndpoint oembedEndpoint = new OembedEndpoint();\n\toembedEndpoint.setName(\"biking\");\n\toembedEndpoint.setEndpoint(\"http://biking.michael-simons.eu/o...
[ "0.5901605", "0.587606", "0.5852209", "0.58420455", "0.5394497", "0.52377653", "0.518849", "0.50908965", "0.5000927", "0.5000927", "0.49950048", "0.49861532", "0.4938954", "0.4937394", "0.49107808", "0.48819834", "0.48564905", "0.48448154", "0.4838796", "0.48193192", "0.48174...
0.62824696
0
/ Go to next element and check if it is a start element.
private void parseProduct(User user) throws XMLStreamException, XMLParserException { while(this.reader.next() == START_ELEMENT){ user.setProperty(this.reader.getLocalName(), this.getElementString()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testHasNext_Start() {\n OasisList<Integer> baseList = new SegmentedOasisList<>();\n baseList.addAll(Arrays.asList(1, 2, 3, 4, 5));\n\n ListIterator<Integer> instance = baseList.listIterator();\n boolean expResult = true;\n boolean result = instance.hasNext(...
[ "0.65716773", "0.6536176", "0.6487245", "0.6440101", "0.64153486", "0.640602", "0.625374", "0.61998504", "0.6188519", "0.61765957", "0.61622274", "0.6150146", "0.6122897", "0.61129516", "0.61076903", "0.61052996", "0.6104268", "0.6072322", "0.6035937", "0.602829", "0.6028273"...
0.0
-1
en este caso no hacer nada
@Override public void salir() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void carroNoAgregado(){\n System.out.println(\"No hay un parqueo para su automovil\");\n }", "public void estiloError() {\r\n /**Bea y Jose**/\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "private void inizia() throws Exception {\n }", "private static void cajas(...
[ "0.633953", "0.62333864", "0.6083703", "0.604512", "0.603865", "0.6029695", "0.59865206", "0.59562933", "0.5951853", "0.5951853", "0.59260833", "0.5908287", "0.58908355", "0.5862009", "0.5862009", "0.5862009", "0.5862009", "0.5862009", "0.5860973", "0.5860645", "0.5858226", ...
0.5593548
48
Constructor untuk objek dari class Job
public Job(int id, String name, Recruiter recruiter, int fee, String category) { this.id = id; this.name = name; this.recruiter = recruiter; this.fee = fee; this.category = category; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Job() {\n\t\t\t\n\t\t}", "public Job() {\n }", "public Job() {\n }", "public Job() {\r\n\t\tSystem.out.println(\"Constructor\");\r\n\t}", "public AbstractJob(){\n \n }", "public AutomaticJob() {\r\n \r\n }", "public schedulerJob() {\n }", "public JobBuilder() {\r\n...
[ "0.8769334", "0.8688321", "0.8688321", "0.8456164", "0.82552785", "0.8165987", "0.8067369", "0.7942792", "0.7906957", "0.77410585", "0.7725547", "0.7657888", "0.7593338", "0.7536892", "0.75188917", "0.7376241", "0.734208", "0.72877944", "0.71757036", "0.6985683", "0.6883959",...
0.6512634
34
metode untuk mendapatkan id dari pekerjaan
public int getId() { return id; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setId(int idNuevo)\n { \n this.id = idNuevo;\n }", "private int getId() {\r\n\t\treturn id;\r\n\t}", "private void setId(Integer id) { this.id = id; }", "public int id() {return id;}", "public int getId(){\r\n\t\treturn id;\r\n\t}", "public int getId(){\r\n\t\treturn id;\r\n\t...
[ "0.72559136", "0.71718514", "0.7117703", "0.70938843", "0.7086441", "0.7086441", "0.70662194", "0.70662194", "0.70260274", "0.70185375", "0.70157903", "0.7011685", "0.7003696", "0.70028627", "0.6996561", "0.69954956", "0.69954956", "0.69954956", "0.69954956", "0.69954956", "0...
0.0
-1
metode untuk mendapatkan nama dari pekerjaan
public String getName() { return name; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void alamatPerusahaan() {\r\n System.out.println(\"Karyawan bekerja di Perusahaan \" + Employee.perusahaan + \" yang beralamat di Jalan Astangkuri Jakarta\");\r\n }", "public void setNama(String nama) {\r\n this.nama = nama;\r\n }", "public String getNama() {\r\n return...
[ "0.66511536", "0.65750605", "0.65487415", "0.6475556", "0.6462663", "0.6458337", "0.64510727", "0.64373726", "0.6352997", "0.6336555", "0.62877566", "0.6281775", "0.6263399", "0.6218518", "0.6214561", "0.62092423", "0.61932576", "0.6165176", "0.61562943", "0.611165", "0.61065...
0.0
-1
metode untuk mendapatkan nilai bayaran dari pekerjaan
public int getFee() { return fee; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void isiPilihanDokter() {\n String[] list = new String[]{\"\"};\n pilihNamaDokter.setModel(new javax.swing.DefaultComboBoxModel(list));\n\n /*Mengambil data pilihan spesialis*/\n String nama = (String) pilihPoliTujuan.getSelectedItem();\n String kodeSpesialis = ss.serviceG...
[ "0.7000051", "0.67185605", "0.65875417", "0.65479445", "0.64743084", "0.6453549", "0.6421473", "0.6364782", "0.63348025", "0.62961733", "0.62908256", "0.6253096", "0.6215739", "0.6154539", "0.6131669", "0.61092424", "0.60821533", "0.60794216", "0.607197", "0.6048862", "0.6040...
0.0
-1
metode untuk mendapatkan kategori pekerjaan
public String getCategory() { return category; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void perbaruiDataKategori(){\n loadDataKategori();\n \n //uji koneksi dan eksekusi perintah\n try{\n //test koneksi\n Statement stat = (Statement) koneksiDB.getKoneksi().createStatement();\n \n //perintah sql untuk simpan data\n ...
[ "0.6463881", "0.6347117", "0.6278101", "0.61143064", "0.6106625", "0.60305226", "0.5998498", "0.59308285", "0.5901729", "0.5893568", "0.5888344", "0.5814632", "0.58135647", "0.5773229", "0.5765444", "0.5726311", "0.5719992", "0.5660767", "0.5658599", "0.5648061", "0.562997", ...
0.54653037
48
metode untuk mendapatkan objek pemilik pekerjaan
public Recruiter getRecruiter() { return recruiter; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void aktualisiere(PhysicalObject po){\n\t\tthis.po=po;\n\t\tKipper kipperObj= (Kipper) po;\t\t\n\t\tx = kipperObj.getX();\n\t\ty = kipperObj.getY();\n\t\tbreite=kipperObj.getBreite();\n\t\tlaenge=kipperObj.getLaenge();\n\t\twinkel=kipperObj.getWinkel();\n\t\tlkwfahrt=kipperObj.isFahrt();\t\t\n\t\tif (kipper...
[ "0.57785314", "0.5684399", "0.5668799", "0.5652072", "0.5596043", "0.5571957", "0.5527267", "0.5525248", "0.552437", "0.55158424", "0.5492078", "0.5483192", "0.54275244", "0.5411149", "0.5395462", "0.5393576", "0.538638", "0.5356237", "0.53459615", "0.5340245", "0.5333509", ...
0.0
-1
metode untuk mengubah id pekerjaan
public void setId(int id) { this.id = id; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setId(int idNuevo)\n { \n this.id = idNuevo;\n }", "private void setId(Integer id) { this.id = id; }", "public void setId(int id){ this.id = id; }", "private void setId(int ida2) {\n\t\tthis.id=ida;\r\n\t}", "public void setID(String idIn) {this.id = idIn;}", "public void setI...
[ "0.74785227", "0.7166958", "0.7109144", "0.7085198", "0.7083988", "0.7063388", "0.7039606", "0.7022604", "0.7022604", "0.70159334", "0.7004305", "0.6987477", "0.6966447", "0.6966447", "0.6962848", "0.69571453", "0.69571453", "0.693653", "0.6913129", "0.6913129", "0.69126004",...
0.0
-1
metode untuk mengubah nama pekerjaan
public void setName(String name) { this.name = name; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void alamatPerusahaan() {\r\n System.out.println(\"Karyawan bekerja di Perusahaan \" + Employee.perusahaan + \" yang beralamat di Jalan Astangkuri Jakarta\");\r\n }", "void setNama(String nama) {\r\n\tthis.nama = nama;\r\n }", "public void setNama(String nama) {\r\n this.nama = n...
[ "0.68126065", "0.6710656", "0.6703027", "0.66798615", "0.6554402", "0.6539299", "0.6442297", "0.64378977", "0.6429068", "0.6406396", "0.6391224", "0.6382848", "0.63559204", "0.6342717", "0.63181096", "0.6283073", "0.62746286", "0.6255006", "0.62482285", "0.6246988", "0.617769...
0.0
-1
metode untuk mengubah nilai bayaran pekerjaan
public void setFee(int fee) { this.fee = fee; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void testNamaPNSYangSkepnyaDiterbitkanOlehPresiden(){\n\t\tSkppPegawai objskp =new SkppPegawai();\n\n\t\tJSONArray data = objskp.getNamaPNSYangSkepnyaDiterbitkanOlehPresiden(); \n\n\t\tshowData(data,\"nip\",\"nama\",\"tanggal_lahir\",\"tanggal_berhenti\",\"pangkat\",\"masa_kerja\",\"penerbit\");\n\t}", "...
[ "0.68953466", "0.6813023", "0.67039174", "0.6673768", "0.659205", "0.65913564", "0.6463065", "0.64439607", "0.64325804", "0.6400314", "0.6396147", "0.6371533", "0.63622165", "0.63580686", "0.6311925", "0.6302974", "0.6287689", "0.62741417", "0.62540066", "0.62539285", "0.6253...
0.0
-1
metode untuk mengubah kategori pekerjaan
public void setCategory(String category){ this.category = category; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void perbaruiDataKategori(){\n loadDataKategori();\n \n //uji koneksi dan eksekusi perintah\n try{\n //test koneksi\n Statement stat = (Statement) koneksiDB.getKoneksi().createStatement();\n \n //perintah sql untuk simpan data\n ...
[ "0.63613373", "0.6258037", "0.6240558", "0.6183377", "0.60657054", "0.59918547", "0.5936232", "0.5917848", "0.5858379", "0.58495724", "0.584722", "0.58219224", "0.57855564", "0.57555723", "0.57516176", "0.57513", "0.57513", "0.575113", "0.572665", "0.57135785", "0.5704596", ...
0.55959785
31
metode untuk mengubah pemilik pekerjaan
public void setRecruiter(Recruiter recruiter) { this.recruiter = recruiter; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void tampilKarakterA(){\r\n System.out.println(\"Saya mempunyai kaki empat \");\r\n }", "public static void alamatPerusahaan() {\r\n System.out.println(\"Karyawan bekerja di Perusahaan \" + Employee.perusahaan + \" yang beralamat di Jalan Astangkuri Jakarta\");\r\n }", "public void te...
[ "0.64152086", "0.6344346", "0.62588793", "0.62432325", "0.6209215", "0.6145471", "0.6033198", "0.60282826", "0.60122055", "0.6001905", "0.59826225", "0.59036237", "0.5848689", "0.58077484", "0.57590395", "0.5754429", "0.5718892", "0.5714533", "0.5708248", "0.569624", "0.56620...
0.0
-1
Returns a string of the gas station schedule in the format ordered by date, then shift for all scheduled persons at the gas station.
public String gasStationSchedule(int gasStationId){ GasStation g = new GasStation(gasStationId); g.pull(); try { return DatabaseSupport.gasStationScheduleString(g.getGasStationID()); } catch (SQLException throwables) { throwables.printStackTrace(); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getSchedule();", "public void printSchedule(){\n String\n format =\n \"%-20s%-10s%-15s%\" +\n \"-20s%-25s%-10s%\" +\n \"-15s%-15s%-15s%n\";\n\n System.out.printf(format,\n \"Водитель\", \"Номер А/М\",\"Машин...
[ "0.6484445", "0.63196224", "0.6209035", "0.5983853", "0.5788203", "0.5592633", "0.5551948", "0.55161816", "0.5509168", "0.54937774", "0.5473405", "0.5452019", "0.54202074", "0.5387583", "0.5383228", "0.5362664", "0.53370917", "0.5324849", "0.5284925", "0.5283341", "0.5261674"...
0.62307495
2
Adds an employee to the schedule by creating a Schedule object and saving it to the database
public boolean scheduleEmployee(int gasStationID, int employeeId, Date date, int shift){ Schedule schedule = new Schedule(gasStationID, employeeId, date, shift); schedule.create(); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addEmployee(final Employee employee) {\r\n\t\tfinal Session session = sessionFactory.getCurrentSession();\t\r\n\t\tsession.save(employee);\r\n\t}", "@Override\n\tpublic void add(Employee employee) {\n\t\temployeeDao.save(employee);\t\t\n\t}", "@Override\n\tpublic void addEmployee(Employee employee)...
[ "0.68179697", "0.6801914", "0.67981946", "0.6777227", "0.67271703", "0.66233563", "0.6536472", "0.65330213", "0.64667153", "0.64349085", "0.63936365", "0.6378927", "0.63729924", "0.6349131", "0.63212913", "0.6316581", "0.63161224", "0.63137555", "0.6307723", "0.62869805", "0....
0.64298916
10
Returns the HUGO symbol of the encoding gene.
public HugoSymbol getHugoSymbol() { return hugoSymbol; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String symbol();", "String getSymbol();", "public abstract String getSymbol();", "String getBbgSymbol();", "public String getSymbol() {\n }", "@Override public String symbol() {\n return symbol;\n }", "public char getSymbol() {\n switch (player) {\n case 0:\n ...
[ "0.6572597", "0.65321887", "0.6329166", "0.6316261", "0.631499", "0.6255794", "0.61635906", "0.6128477", "0.6092207", "0.60682255", "0.60563123", "0.6047958", "0.60416317", "0.6014181", "0.6008577", "0.60048336", "0.599856", "0.5974474", "0.5944409", "0.5932377", "0.59279376"...
0.70221496
0
Returns the MHC restriction class for this locus.
public MHCClass getMHCClass() { return mhcClass; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getWMC_class() {\n\t\treturn this.WMC_class;\n\t}", "public static Class get_CLASS()\n {\n Class clz;\n try\n {\n clz = Class.forName(\"com.tangosol.coherence/component/manageable/modelAdapter/ReporterMBean\".replace('/', '.'));\n }\n catch ...
[ "0.6117921", "0.5833598", "0.55209", "0.5451476", "0.543728", "0.54051757", "0.53798676", "0.5298096", "0.5275425", "0.526432", "0.52467614", "0.52295077", "0.5219161", "0.51263076", "0.51173764", "0.508481", "0.5076979", "0.50467515", "0.5006205", "0.49976957", "0.49964657",...
0.6382164
0
This method is called when the this panel needs to be displayed or redisplayed. It can be called manuulay bby calling the repaint() method for this object.
public void paintComponent(Graphics g) { super.paintComponent(g); // The following methods can be found in the Graphics class API g.setColor(Color.YELLOW); // Set the color to red g.fillOval(90, 100, 50, 50); // Draws a red circle g.setColor(Color.RED); g.fillRect(105, 150, 20, 100); // Draws a blue rect...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void reDraw(){\n\t\tcontentPane.revalidate();\n\t\trepaint();\n\t}", "@Override\r\n\tpublic void repaint() {\n\t\tsuper.repaint();\r\n\t}", "@Override\r\n\tpublic void repaint() {\n\t\tsuper.repaint();\r\n\t}", "public void repaint() {\n setBackground(Color.white);\n super.repaint();\...
[ "0.7513432", "0.7429142", "0.7429142", "0.7387885", "0.7280103", "0.71709037", "0.7136836", "0.7042578", "0.7036839", "0.7004828", "0.69309783", "0.6906521", "0.68859434", "0.6873723", "0.68596", "0.6837386", "0.68289024", "0.68269205", "0.6825245", "0.6802695", "0.679643", ...
0.0
-1
This class manages reading from the journal.
@NotThreadSafe public interface JournalReader extends Closeable { /** * Reads an entry from the journal. Return null if there is no more entry left. * * @return the journal entry, null if no more entry left * @throws InvalidJournalEntryException if the journal entry is invalid (e.g. corrupted entry) */...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "JournalEntry read() throws IOException, InvalidJournalEntryException;", "public JournalReader read() {\n return new JournalReader(this);\n }", "@ParametersAreNonnullByDefault\n RwJournalIterator(final Lock readLock, final Path journal) throws IOException {\n this.readLock = Objects....
[ "0.76758105", "0.6638947", "0.6362381", "0.60170245", "0.5958948", "0.59420276", "0.5877372", "0.58444357", "0.5765492", "0.5757322", "0.573556", "0.57114303", "0.570754", "0.57049596", "0.56789273", "0.5654449", "0.5595673", "0.55614454", "0.5551422", "0.55228996", "0.550043...
0.6912283
1
Reads an entry from the journal. Return null if there is no more entry left.
JournalEntry read() throws IOException, InvalidJournalEntryException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@NotThreadSafe\npublic interface JournalReader extends Closeable {\n /**\n * Reads an entry from the journal. Return null if there is no more entry left.\n *\n * @return the journal entry, null if no more entry left\n * @throws InvalidJournalEntryException if the journal entry is invalid (e.g. corrupted e...
[ "0.62775904", "0.6018944", "0.5900639", "0.58924764", "0.5861102", "0.5854213", "0.56448454", "0.5565608", "0.5545496", "0.5512377", "0.55000436", "0.5478917", "0.53086936", "0.5298442", "0.52190524", "0.52025896", "0.5118534", "0.507297", "0.5070445", "0.50442326", "0.504060...
0.79541886
0
Gets the the sequence number of the next journal log entry to read. This method is valid no matter whether this JournalReader is closed or not.
long getNextSequenceNumber();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Field(3) \n\tpublic int SequenceNo() {\n\t\treturn this.io.getIntField(this, 3);\n\t}", "static synchronized long getNextSeqNumber() {\n return seqNumber++;\n }", "private long getSeqNum() throws Exception {\n\t\tSystem.out.println(\"seq: \" + seq);\n\t\tif (seq == 256) {\n\t\t\tseq = 0;\n\t\t}\n\t\...
[ "0.6517734", "0.63032013", "0.6290751", "0.62479603", "0.60846645", "0.6079001", "0.6074879", "0.60540557", "0.60217595", "0.60217595", "0.60217595", "0.60217595", "0.60217595", "0.60217595", "0.60217595", "0.60204625", "0.60196936", "0.59956247", "0.59836614", "0.59836614", ...
0.5591154
71
TODO Autogenerated method stub
@Override protected int _switchMode(boolean normallyMode) throws NotOpenSerialException, SerialPortErrorException, SendTimeoutException, RecvTimeoutException, ResponseCodeException { return 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
/ (non Javadoc) Title: oneDScanningOnOff Description:
@Override protected int _oneDScanningOnOff(boolean onOff) throws NotOpenSerialException, SerialPortErrorException, SendTimeoutException, RecvTimeoutException, ResponseCodeException, ProtocolParsingException { return 0; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tprotected int _twoDScanningOnOff(boolean onOff) throws NotOpenSerialException, \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t SerialPortErrorException, \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t SendTimeoutException, \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t RecvTimeoutException, \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t ResponseCod...
[ "0.7297112", "0.6956656", "0.6472275", "0.6356531", "0.6235741", "0.61567605", "0.6116785", "0.60477203", "0.5971025", "0.5962745", "0.5943361", "0.5898105", "0.5858952", "0.5844503", "0.58129567", "0.57906204", "0.57790256", "0.57682043", "0.5752915", "0.57302386", "0.572525...
0.7740881
0
/ (non Javadoc) Title: twoDScanningOnOff Description:
@Override protected int _twoDScanningOnOff(boolean onOff) throws NotOpenSerialException, SerialPortErrorException, SendTimeoutException, RecvTimeoutException, ResponseCodeException, ProtocolParsingException { return 0; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tprotected int _oneDScanningOnOff(boolean onOff) throws NotOpenSerialException, \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t SerialPortErrorException, \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t SendTimeoutException, \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t RecvTimeoutException, \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t ResponseCod...
[ "0.6990591", "0.64796335", "0.64386994", "0.60333747", "0.60047585", "0.5963687", "0.58817506", "0.5836615", "0.58209354", "0.5809231", "0.5806905", "0.5770299", "0.57190096", "0.5671783", "0.5656279", "0.56383157", "0.56375706", "0.5560586", "0.55466026", "0.55379593", "0.55...
0.7674733
0
/ (non Javadoc) Title: enableScanningOnOff Description:
@Override protected int _enableScanningOnOff(boolean onOff) throws NotOpenSerialException, SerialPortErrorException, SendTimeoutException, RecvTimeoutException, ResponseCodeException, ProtocolParsingException { return 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void scanBleDevice(Boolean enable);", "@Override\r\n\tprotected int _oneDScanningOnOff(boolean onOff) throws NotOpenSerialException, \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t SerialPortErrorException, \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t SendTimeoutException, \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t RecvTimeoutException...
[ "0.7453236", "0.6961624", "0.68743724", "0.67119026", "0.6692253", "0.66307217", "0.6609475", "0.6594655", "0.65399206", "0.6539848", "0.6537873", "0.6497837", "0.6442916", "0.6440362", "0.6354493", "0.63449574", "0.6338416", "0.63086283", "0.6243255", "0.62201005", "0.617660...
0.78498465
0
AW:PROPERTIES_END Allow javac to generate a noargs constructor. Algorithmspecific initialization provided by the subclass.
protected void initAWAlgorithm( ) throws DbCompException { //AW:INIT _awAlgoType = AWAlgoType.TIME_SLICE; //AW:INIT_END //AW:USERINIT //AW:USERINIT_END }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@SuppressWarnings(\"unused\")\n public NoConstructor() {\n // Empty\n }", "void DefaultConstructor(){}", "defaultConstructor(){}", "private void __sep__Constructors__() {}", "ConstuctorOverloading(){\n\t\tSystem.out.println(\"I am non=argument constructor\");\n\t}", "ConstructorP...
[ "0.7489301", "0.72859526", "0.727265", "0.7167903", "0.71559525", "0.68302876", "0.6743463", "0.67425895", "0.6714395", "0.6656934", "0.6643822", "0.6643571", "0.66348904", "0.6594261", "0.6523166", "0.64941865", "0.6468381", "0.6462145", "0.6461942", "0.63692474", "0.6362995...
0.0
-1
This method is called once before iterating all time slices.
protected void beforeTimeSlices() throws DbCompException { dates = new ArrayList<Date>(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void doAWTimeSlice()\n\t\tthrows DbCompException\n\t{\n//AW:TIMESLICE\n dates.add(_timeSliceBaseTime);\n//AW:TIMESLICE_END\n\t}", "protected void afterTimeSlices()\n\t\tthrows DbCompException\n\t{\n//AW:AFTER_TIMESLICES\n // This code will be executed once after each group of time...
[ "0.68730134", "0.6863717", "0.63319296", "0.6184241", "0.58505684", "0.58058804", "0.5665373", "0.5654259", "0.56140304", "0.55994636", "0.55994636", "0.55994636", "0.55994636", "0.55994636", "0.55994636", "0.55994636", "0.55994636", "0.55994636", "0.55994636", "0.55994636", ...
0.7143045
0
Do the algorithm for a single time slice. AW will fill in usersupplied code here. Base class will set inputs prior to calling this method. User code should call one of the setOutput methods for a timeslice output variable.
protected void doAWTimeSlice() throws DbCompException { //AW:TIMESLICE dates.add(_timeSliceBaseTime); //AW:TIMESLICE_END }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void afterTimeSlices()\n\t\tthrows DbCompException\n\t{\n//AW:AFTER_TIMESLICES\n // This code will be executed once after each group of time slices.\n // For TimeSlice algorithms this is done once after all slices.\n // For Aggregating algorithms, this is done after each ...
[ "0.63099736", "0.58015794", "0.5498597", "0.54966843", "0.54928464", "0.546096", "0.5415212", "0.5384769", "0.53623474", "0.5313746", "0.53046155", "0.52733845", "0.52545285", "0.5247535", "0.5224235", "0.5218548", "0.5214782", "0.5182227", "0.5180551", "0.517311", "0.5162901...
0.5485124
5
This method is called once after iterating all time slices.
protected void afterTimeSlices() throws DbCompException { //AW:AFTER_TIMESLICES // This code will be executed once after each group of time slices. // For TimeSlice algorithms this is done once after all slices. // For Aggregating algorithms, this is done after each aggregate ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void doAWTimeSlice()\n\t\tthrows DbCompException\n\t{\n//AW:TIMESLICE\n dates.add(_timeSliceBaseTime);\n//AW:TIMESLICE_END\n\t}", "protected void beforeTimeSlices()\n\t\tthrows DbCompException\n\t{\n dates = new ArrayList<Date>();\n\t}", "private void maybeScheduleSlice() {\...
[ "0.68833584", "0.66863143", "0.61546034", "0.6085224", "0.59279966", "0.5840034", "0.5811846", "0.57944655", "0.57661515", "0.57015824", "0.5699448", "0.5632006", "0.56057245", "0.56057245", "0.56057245", "0.56057245", "0.5598747", "0.559492", "0.559492", "0.559492", "0.55949...
0.7056048
0
Required method returns a list of all input time series names.
public String[] getInputNames() { return _inputNames; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<String> getSeriesByName() {\n return ImmutableList.copyOf(series);\n }", "public String[] getNames() {\r\n\t\tfinal List<String> names=new ArrayList<>();\r\n\r\n\t\tString s;\r\n\t\tfor (Map.Entry<String,Map<String,Object>> entry1: data.entrySet()) {\r\n\t\t\ts=entry1.getKey();\r\n\t\t\tif ...
[ "0.70455194", "0.6089716", "0.60291916", "0.5999515", "0.5883003", "0.58024", "0.57469803", "0.57446164", "0.5732912", "0.5712032", "0.5709143", "0.57051736", "0.5679971", "0.5675384", "0.56632143", "0.56471646", "0.5646196", "0.56028813", "0.55788654", "0.55555123", "0.55541...
0.5922615
4
Required method returns a list of all output time series names.
public String[] getOutputNames() { return _outputNames; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static List<String> getNamedOutputsList(JobContext job) {\r\n\t\tList<String> names = new ArrayList<String>();\r\n\t\tStringTokenizer st = new StringTokenizer(\r\n\t\t\t\tjob.getConfiguration().get(MULTIPLE_OUTPUTS, \"\"), \" \");\r\n\t\twhile (st.hasMoreTokens()) {\r\n\t\t\tnames.add(st.nextToken());\r\n\...
[ "0.65793175", "0.65418786", "0.6350205", "0.622178", "0.6136388", "0.60965604", "0.60841215", "0.60681295", "0.6064096", "0.60459995", "0.58919257", "0.57718474", "0.5621061", "0.5608646", "0.55982524", "0.5583444", "0.55798066", "0.55653137", "0.5558718", "0.5556381", "0.549...
0.728664
0
Required method returns a list of properties that have meaning to this algorithm.
public String[] getPropertyNames() { return _propertyNames; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Property[] getProperties();", "ArrayList<PropertyMetadata> getProperties();", "public Iterator<String> getUserDefinedProperties();", "public Collection<ModuleProperty> getProperties();", "public abstract List<PropertyType> getBuiltInProperties();", "java.lang.String getProperties();", "StringMap getPro...
[ "0.730075", "0.70185006", "0.6884619", "0.6818384", "0.67718506", "0.6694283", "0.6654653", "0.66448504", "0.6555674", "0.6552979", "0.6538685", "0.6523501", "0.6520338", "0.65160143", "0.6507763", "0.6505512", "0.6503251", "0.64997566", "0.6497159", "0.64883983", "0.6483013"...
0.58938736
89
Shown cost and speed when hover over creature button.
public JToolTip createToolTip(){ return new CreatureTooltip(this); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void showCredit()\n { \n if (Greenfoot.mouseClicked(creditBtn)) { //if user clicked instructions button\n Greenfoot.setWorld(new CreditWorld()); //display credit world\n Greenfoot.stop();\n }\n }", "public void hover();", "public Hoverboard(){\n this.s...
[ "0.6200105", "0.61073226", "0.60816824", "0.60374343", "0.59363", "0.5807544", "0.57836753", "0.57747877", "0.57425606", "0.5742436", "0.57315856", "0.5726699", "0.5701598", "0.56623757", "0.56184644", "0.5608262", "0.55728126", "0.5572775", "0.5545447", "0.5505607", "0.55033...
0.54630625
23
This method is injected before the return statements of MinecraftDedicatedServer's setupServer method. It will check that the setup was successful and (if it was) start the mod's timer.
@SuppressWarnings("ConstantConditions") @Inject(method = "setupServer()Z", at = @At("RETURN")) public void setupServer(CallbackInfoReturnable<Boolean> info) { // Make sure that the server successfully started if (info.getReturnValueZ()) { IdleShutdownServer.INSTANCE.getShutdownContro...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void startWait() {\n\t\tTimer timer = new Timer();\n\t\ttimer.schedule(new TimerTask() {\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\tif (server.getNumberOfPlayers() > 0 && !server.gameStartFlag) {\n\t\t\t\t\tserver.runGame();\n\t\t\t\t}\n\t\t\t}\n\t\t}, 120000);\n\t\t// 2min(2*60*1000)\n\t\tsendMes...
[ "0.6169898", "0.594844", "0.594607", "0.58659965", "0.5852001", "0.5830205", "0.5787892", "0.571102", "0.57086504", "0.56147456", "0.5607803", "0.5575964", "0.55601823", "0.5552295", "0.5545137", "0.5522286", "0.5521128", "0.5510469", "0.5495499", "0.54860914", "0.5481305", ...
0.61553985
1
Method process requests from another methods by its commands. Get Locale cookies and define users locale. Execute commands and then get the target page.
private void processRequest(HttpServletRequest req, HttpServletResponse resp) throws IOException, ServletException { Cookie[] cookies = req.getCookies(); for (Cookie cookie : cookies) { if ("locale".equals(cookie.getValue())) { req.setAttribute("lang", cookie.getValue()); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic String execute(HttpServletRequest request) {\t\t\r\n\t\tString page = ConfigurationManager.getProperty(\"path.page.login\");\r\n\t\tString language = request.getParameter(PARAM_NAME_LANGUAGE);\r\n\t\tswitch (language) {\r\n\t\tcase \"en\":\r\n\t\t\trequest.getSession().setAttribute(\"lang\", ...
[ "0.6550452", "0.63008475", "0.60577124", "0.580849", "0.5787486", "0.55345416", "0.54441947", "0.5368672", "0.5327709", "0.532365", "0.5292108", "0.5252423", "0.5247169", "0.5165984", "0.5155137", "0.5135436", "0.5100776", "0.5082758", "0.5075443", "0.5061696", "0.5059624", ...
0.6535772
1
==== tampilkan semua data buku ====
@RequestMapping(value = "/list", method= RequestMethod.GET) public String getAllBuku(Model model){ model.addAttribute("books", this.bukuService.getAll()); return "buku"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void TampilData(){\n try{ //\n String sql = \"SELECT * FROM buku\"; // memanggil dari php dengan tabel buku\n stt = con.createStatement(); // membuat statement baru dengan mengkonekan ke database\n rss = stt.executeQuery(sql); \n while (rss.next()){ \n ...
[ "0.7025987", "0.67440355", "0.6673449", "0.66373783", "0.64918756", "0.64917976", "0.6445175", "0.6419267", "0.64161557", "0.64161295", "0.6394666", "0.63935417", "0.6345829", "0.634256", "0.63368255", "0.62950367", "0.6253457", "0.61928254", "0.6155068", "0.6143311", "0.6124...
0.0
-1
request param disini sesuai name di inputannya
@RequestMapping(value = "/save", method = RequestMethod.POST) public RedirectView getData(@RequestParam(required = true) String isbn, String judul, String penulis, String penerbit, String tahun_terbit, String jenis_cover, String jml_hal, String bahasa, String deskripsi, String gambar, int harga, ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String getParameter(String name, HttpServletRequest request) {\r\n String value = request.getParameter(name);\r\n if (value == null || \"\".equals(value)) {\r\n return null;\r\n\r\n } else {\r\n return value;\r\n }\r\n }", "String getParameter(HttpServ...
[ "0.6580613", "0.63657254", "0.6263807", "0.62310034", "0.6230195", "0.6196552", "0.6114838", "0.6062002", "0.60475385", "0.59929794", "0.5956934", "0.59565467", "0.59210104", "0.58688563", "0.575075", "0.57440007", "0.570526", "0.5691338", "0.56766397", "0.56664175", "0.56171...
0.0
-1
==== menuju edit buku ====
@RequestMapping(value = "/edit", method= RequestMethod.GET) public String formEditBuku(@RequestParam(required = true) Long id, Model model){ model.addAttribute("buku", this.bukuService.getById(id)); //"category" itu dpke ntar di jstl. model.addAttribute("categories", this.categoryService.getAll())...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void edit() {\n\n\t}", "@Override\r\n\tpublic void edit() {\n\t\t\r\n\t}", "Menu getMenuEdit();", "protected void addEditMenuItems (JMenu edit)\n {\n }", "protected abstract void editItem();", "@Override\n\tpublic void editAction(int id) {\n\t\t\n\t}", "public abstract void edit();", "p...
[ "0.7414615", "0.6882614", "0.6764719", "0.67626977", "0.6670943", "0.65978056", "0.6585824", "0.65333116", "0.651372", "0.64988947", "0.6441402", "0.64164317", "0.63668495", "0.6355736", "0.6266276", "0.62624305", "0.62437576", "0.6189715", "0.61714995", "0.6169335", "0.61656...
0.59525937
37
==== menyimpan update buku ====
@RequestMapping(value = "/update", method = RequestMethod.POST) public RedirectView saveUpdate(@RequestParam(required = true) Long id, String isbn, String judul, String penulis, String penerbit, String tahun_terbit, String jenis_cover, String jml_hal, String bahasa, String deskripsi, String gambar, ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void updateDataBuku(){\n String sql = \"UPDATE buku SET judulBuku = '\"+getJudulBuku()+\"'\"\n + \",pengarang = '\"+getPengarang()+\"'\"\n + \",penerbit = '\"+getPenerbit()+\"'\"\n + \",tahun = '\"+getTahun()+\"'\"\n + \",stok = '\...
[ "0.67403316", "0.66483045", "0.63749737", "0.63078564", "0.608628", "0.6081313", "0.6057543", "0.6038543", "0.6038543", "0.60028696", "0.5995516", "0.5991588", "0.5978593", "0.5949047", "0.59398997", "0.59251684", "0.5919864", "0.59176", "0.5915665", "0.5897811", "0.58951086"...
0.570597
47
==== menyimpan delete buku ====
@RequestMapping(value = "/delete", method = RequestMethod.GET) public RedirectView deleteBuku(@RequestParam(required = true) Long id){ //Pake RequestParam klo ada kirim/minta data, disini kita tulis name dri inputannnya dan type datanya apa. this.bukuService.delete(new Buku (id)); //this.bukuServic...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void deleteMataKuliah (int id);", "@Override\n public void actionPerformed(ActionEvent e) {\n String nama = String.valueOf(cbbNama.getSelectedItem());\n String pilihan2 = String.valueOf(cbbPilihan2.getSelectedItem());\n //dapetin nama nama table\n ...
[ "0.74269736", "0.69825464", "0.6967052", "0.69490886", "0.69073814", "0.6899485", "0.6876601", "0.68659663", "0.6855667", "0.6848505", "0.6846321", "0.68351483", "0.6805142", "0.6801006", "0.6797511", "0.6788211", "0.6765486", "0.67650026", "0.6751941", "0.6750794", "0.674687...
0.68942934
6
/int select=0; int i=0; int j=0; int aux=0;
public void turnosLibresFecha(){ back.clean(); /*matriz[4][6];*/ System.out.println(" Andres "); System.out.println("| | Lunes 07 | Lunes 14 | Lunes 21 | Lunes 28 |"); System.out.println(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void mo54409a(int i, int i2, int i3, long j);", "public abstract void mo4382c(int i, long j);", "void mo54452q(int i);", "void mo1761g(int i);", "void mo54410a(int i, int i2, long j);", "void mo4102a(int i, int i2);", "void mo7306c(int i, int i2);", "public abstract void mo9811b(int i, long j);", "...
[ "0.55473644", "0.5444661", "0.5412463", "0.5376223", "0.5362798", "0.5352638", "0.532856", "0.53261787", "0.5315891", "0.5311619", "0.53033996", "0.52997494", "0.52983314", "0.52931786", "0.5291651", "0.528692", "0.5283675", "0.5276214", "0.52726626", "0.5271895", "0.52700335...
0.0
-1
TODO Autogenerated method stub
@Override public String getErrorPath() { return "/error"; }
{ "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
display k this overrides show() in A
void show() { System.out.println("k: " + k); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void display(Object a) {\r\n System.out.print(a.toString());\t\r\n }", "public void display() {System.out.println(skaitlis);}", "void show() {\n System.out.println(\"i and j : \" + i + \" \" + j);\n }", "void show() {\n System.out.println(\"i and j : \" + i + \" \" + j);\n }",...
[ "0.64556223", "0.642461", "0.64007294", "0.64007294", "0.6390221", "0.63708603", "0.6323937", "0.6311309", "0.63064516", "0.6287213", "0.6256767", "0.6244121", "0.62418586", "0.6237287", "0.6221786", "0.62201595", "0.61993194", "0.6194921", "0.61925024", "0.6185417", "0.61854...
0.8418814
0
/ 1. if number is divisible by k > number%k =0 2. if number%k (number%k) +k is the actual result 3. nums [4,5,0,2,3,1] > sum[4,9,9,7,4,5] (cumulative sum) 4. (0+2+3) = sum[indexOf(3)]sum[indexOf(0)1||0 if the start] = sum[4]sum[1] = 5 5. Modulus is also can be cumulative! nums[4,5,0,2,3,1] > modOfSums [4,4,4,2,4,0] mod...
public int subarraysDivByK(int[] nums, int k) { int n = nums.length; int [] cumulativeMods = new int[n]; //store cumulative modulus int count =0; //count subarrays HashMap <Integer,Integer> repeatedMonitor = new HashMap<>(); repeatedMonitor.put(0,1); //magic hidden zero :P, ne...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean checkSubarraySum(int[] nums, int k) {\n\n if (nums == null) {\n return false;\n }\n\n Map<Integer, Integer> sums = new HashMap<>();\n\n int runningSum = 0;\n\n // sums.put(0, -1);\n for (int i = 0; i < nums.length; i++)...
[ "0.7689043", "0.7324001", "0.7319235", "0.72267765", "0.67510474", "0.66535693", "0.6651531", "0.6598694", "0.6553447", "0.6541535", "0.65186185", "0.6467445", "0.63977474", "0.638786", "0.62803227", "0.6258171", "0.62365735", "0.61659116", "0.61521935", "0.6145311", "0.61292...
0.7557694
1
Primary callback method for job progress events.
@Override public synchronized void jobProgress(JobProgress progress) { switch (progress.getJobStatusCode()) { case QUEUED: logger.log(Level.INFO, "Queued Job ID: {0}", progress.getJobId()); break; case RUNNING: logger.log(Level.INFO, "Running J...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void jobFinished(Progress job) {\n }", "public abstract void onProgress(short percentage, long downloadedSoFar);", "public void action (ProgressListener progressListener) throws Exception;", "@Override\r\n\tprotected void progressFinished() {\n\t}", "public void progressMade();", "void onPro...
[ "0.75575024", "0.7163814", "0.7111161", "0.6948875", "0.69282943", "0.69227076", "0.68994707", "0.68706435", "0.68262994", "0.6814388", "0.6807496", "0.6805122", "0.67773575", "0.6730477", "0.67022043", "0.66837734", "0.6642418", "0.664172", "0.6631618", "0.65914077", "0.6574...
0.7194017
1
find folder that created by user return list of feed folder
public ArrayList<FeedFolder> findFolderByUserID(Integer uid);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ArrayList<Feed> findFeedFromUidFolderID (Integer uid, Integer feed_folder_id);", "public List<Folder> getFolders (Long userId) throws BookMarkException;", "protected abstract String[] getFolderList() throws IOException;", "@Override\r\n public List<Folder> getAllFolder() {\n return folderRepo...
[ "0.7583984", "0.71612567", "0.65138054", "0.6394615", "0.62312335", "0.6050948", "0.6035498", "0.59678763", "0.59415925", "0.5881668", "0.58795744", "0.58336544", "0.5825393", "0.5744248", "0.57320523", "0.57300425", "0.571324", "0.5710506", "0.56810796", "0.56675667", "0.566...
0.7700403
0
find feed by fid
public Feed findFeedByFeedID(Integer fid);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ArrayList<Feed> findFeedFromUidFolderID (Integer uid, Integer feed_folder_id);", "private SimpleFeature findFeature( FeatureStore<SimpleFeatureType, SimpleFeature> store, String fid) throws SOProcessException {\n \n try {\n FidFilter filter = FILTER_FACTORY.createFidFilter(fid);\n...
[ "0.6795636", "0.67636746", "0.64119345", "0.5942264", "0.58976316", "0.57693535", "0.57491946", "0.5704723", "0.5636466", "0.5593475", "0.5522569", "0.55094266", "0.550053", "0.54987556", "0.5482052", "0.5396519", "0.52887315", "0.5236075", "0.52336556", "0.52336556", "0.5229...
0.84455013
0
find feed.url feed.title by feed_folder_id and uid return list of feeds
public ArrayList<Feed> findFeedFromUidFolderID (Integer uid, Integer feed_folder_id);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ArrayList<FeedFolder> findFolderByUserID(Integer uid);", "public Feed findFeedByFeedID(Integer fid);", "public void addFeedIntoFolder(String feedURL, String name);", "public DocumentListFeed exactTitleQuery(String title) throws MalformedURLException, IOException, ServiceException;", "public List<Fol...
[ "0.73412037", "0.6206786", "0.58941257", "0.5633589", "0.56155384", "0.5402967", "0.53234875", "0.5294045", "0.5291688", "0.52678466", "0.52674466", "0.52132666", "0.52010727", "0.5193272", "0.5178097", "0.5175403", "0.51712877", "0.5122712", "0.51186013", "0.5112116", "0.510...
0.84335285
0
add feed into folder alter feed subscribe return new fid id
public void addFeedIntoFolder(String feedURL, String name);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ArrayList<Feed> findFeedFromUidFolderID (Integer uid, Integer feed_folder_id);", "public Feed findFeedByFeedID(Integer fid);", "public int folderShare(int ffid,String isShared) {\n\t FileFolderMapper mapper = sqlSession.getMapper(FileFolderMapper.class);\r\n\t HashMap<String, Object> map = new...
[ "0.66394156", "0.5990059", "0.569175", "0.5679612", "0.5672744", "0.56635076", "0.5659061", "0.5584857", "0.55535775", "0.5503434", "0.52646613", "0.524276", "0.52014935", "0.5189443", "0.5144253", "0.51418394", "0.5104084", "0.510378", "0.5037587", "0.5005615", "0.49897113",...
0.6979597
0
JobId of associated job
@ApiModelProperty(required = true, value = "JobId of associated job") public String getJobId() { return jobId; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getJobId();", "public String getJobId();", "@Override\n\tpublic long getJobId() {\n\t\treturn model.getJobId();\n\t}", "public String getJobId() {\n return this.jobId;\n }", "public String getJobId() {\n return this.jobId;\n }", "public String getJobId() {\n re...
[ "0.8267779", "0.8265934", "0.8210242", "0.81057966", "0.81057966", "0.81057966", "0.8077896", "0.7982465", "0.7953002", "0.78738827", "0.78299206", "0.7715596", "0.7556637", "0.73556817", "0.73219156", "0.7291386", "0.7240536", "0.7151783", "0.71506536", "0.7072881", "0.70324...
0.733193
14
Status of task event
@ApiModelProperty(required = true, value = "Status of task event") public Status getStatus() { return status; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "TaskStatus getStatus();", "private static String getStatus(Task task) {\n Status myStatus = task.getStatus();\n if (myStatus == Status.UP_NEXT) {\n return \"UP_NEXT\";\n } else if (myStatus == Status.IN_PROGRESS) {\n return \"IN_PROGRESS\";\n } else {\n ...
[ "0.7906327", "0.6962905", "0.6758162", "0.65860677", "0.6545592", "0.64959836", "0.6432344", "0.64051914", "0.6333393", "0.6291208", "0.6264036", "0.6183349", "0.6157133", "0.61520475", "0.6146389", "0.6090323", "0.60858744", "0.60590565", "0.6055508", "0.60244143", "0.600214...
0.73514044
1
Convert the given object to string with each line indented by 4 spaces (except the first line).
private String toIndentedString(java.lang.Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String toIndentedString(Object object) {\n if (object == null) {\n return EndpointCentralConstants.NULL_STRING;\n }\n return object.toString().replace(EndpointCentralConstants.LINE_BREAK,\n EndpointCentralConstants.LINE_BREAK + EndpointCentralConstants.TAB_SPA...
[ "0.78847593", "0.75493765", "0.74971926", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0...
0.0
-1
/KeyFactory kf = KeyFactory.getInstance("ECDH", "BC"); return kf.generatePublic(new X509EncodedKeySpec(data));
public static PublicKey loadPublicKey(byte[] data) throws Exception { ECPublicKeySpec pubKey = new ECPublicKeySpec( ecParams.getCurve().decodePoint(data), ecParams); return kf.generatePublic(pubKey); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private byte[][] ECDSAgeneratePublicAndPrivateKey(){\r\n int length = 0;\r\n byte[][] keys;\r\n \r\n do{\r\n \r\n\tECKeyPairGenerator gen = new ECKeyPairGenerator();\r\n\tSecureRandom secureRandom = new SecureRandom();\r\n X9ECParameters secnamecurves = SECNamedCurves.getByName(\...
[ "0.70772535", "0.7051925", "0.6907523", "0.6780485", "0.6666069", "0.6596994", "0.6590835", "0.6500955", "0.6411321", "0.6336523", "0.6271624", "0.6218838", "0.6184504", "0.6162816", "0.6155537", "0.6154576", "0.61501473", "0.61358416", "0.6122414", "0.6118951", "0.61154157",...
0.58840275
32
KeyFactory kf = KeyFactory.getInstance("ECDH", "BC"); return kf.generatePrivate(new PKCS8EncodedKeySpec(data));
public static PrivateKey loadPrivateKey(byte[] data) throws Exception { ECPrivateKeySpec prvkey = new ECPrivateKeySpec(new BigInteger(data), ecParams); return kf.generatePrivate(prvkey); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private byte[][] ECDSAgeneratePublicAndPrivateKey(){\r\n int length = 0;\r\n byte[][] keys;\r\n \r\n do{\r\n \r\n\tECKeyPairGenerator gen = new ECKeyPairGenerator();\r\n\tSecureRandom secureRandom = new SecureRandom();\r\n X9ECParameters secnamecurves = SECNamedCurves.getByName(\...
[ "0.6875548", "0.6812849", "0.6452298", "0.6436843", "0.6434345", "0.6302727", "0.626943", "0.62637407", "0.6238843", "0.6228865", "0.6195382", "0.61806077", "0.6166414", "0.61447144", "0.61066186", "0.61020833", "0.6071848", "0.6061178", "0.6039206", "0.6035921", "0.6017899",...
0.69244635
0
XXX: This needs cleaning
private void parseOpcode(final List<Action> actions) throws AssemblerException { final FileLocation opfl = this.getFileLocation(); final String opcs = this.getStringValue(); final HashMap<AddressingMode, Opcode> opcm = Opcodes.BY_NAME_MAPPED.get(opcs); this.consume(); final ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "public final void mo51373a() {\n }", "private static void cajas() {\n\t\t\n\t}", "private PrngFixes() {\n }", "private void strin() {\n\n\t}", "private Unescaper() {\n\n\t}", "public void method_4270() {}", "private void parseData() {...
[ "0.5655082", "0.55824393", "0.55526346", "0.5475669", "0.54341483", "0.5424612", "0.54150546", "0.53731257", "0.5372633", "0.53688884", "0.53418374", "0.5339778", "0.5338319", "0.5334141", "0.53287566", "0.5313759", "0.5311415", "0.5267872", "0.5264988", "0.5246975", "0.52381...
0.0
-1
Mark the CDAP instance as bootstrapped.
public void bootstrapped() { configStore.createOrUpdate(NamespaceId.SYSTEM.getNamespace(), TYPE, new Config(NAME, Collections.emptyMap())); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void postBootSetup() {\n }", "public void setBootable(java.lang.Boolean bootable) {\r\n this.bootable = bootable;\r\n }", "public void setAttackBoot() {\n if (this.isHasSword()) {\n this.attack = this.getCurrentSword().getAtkBoot();\n ...
[ "0.7011958", "0.6041974", "0.5980644", "0.59145683", "0.57132673", "0.56792074", "0.5560954", "0.55360144", "0.5460169", "0.54224753", "0.53561425", "0.53144366", "0.52687913", "0.5245261", "0.5217345", "0.50823855", "0.5077729", "0.5037956", "0.50270265", "0.5014418", "0.501...
0.61013716
1
Clear bootstrap state. This should only be called in tests.
@VisibleForTesting void clear() { try { configStore.delete(NamespaceId.SYSTEM.getNamespace(), TYPE, NAME); } catch (ConfigNotFoundException e) { // does not matter, ignore it } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void resetState()\n {\n // Nothing to do by default.\n }", "public void reset() {\n this.state = null;\n }", "public void clearFramework() {\r\n\t\tList<Configuration> tests = testCache.getAllTests();\r\n\t\tlog.info(\"Clearing all tests.\\n\");\r\n\t\tfor (Configur...
[ "0.6391994", "0.6370101", "0.63357556", "0.6298226", "0.62779295", "0.6259458", "0.62364304", "0.6228252", "0.62020737", "0.6193922", "0.613123", "0.6130159", "0.61287487", "0.6127689", "0.611662", "0.6102809", "0.6102809", "0.6102809", "0.6102809", "0.61026156", "0.6100194",...
0.0
-1
Create a new PixxPanel.
public PixxPanel(PixxConfiguration config) { _pixxConfiguration=config; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Panel buildPanelImg() {\n\t\tpanelImg = new Panel();\r\n\t\tpanelImg.setImmediate(false);\r\n\t\tpanelImg.setWidth(\"-1px\");\r\n\t\tpanelImg.setHeight(\"-1px\");\r\n\t\t\r\n\t\t// gridImg\r\n\t\tgridImg = new HorizontalLayout();\r\n\t\tgridImg.setImmediate(false);\r\n\t\tgridImg.setWidth(\"128px\");\r\n\t...
[ "0.64757735", "0.6447392", "0.63000315", "0.61371124", "0.59623337", "0.59613836", "0.5959964", "0.5933668", "0.5931777", "0.59124064", "0.59112906", "0.5900217", "0.58962655", "0.58480203", "0.5833716", "0.58097166", "0.5804654", "0.5804654", "0.5774527", "0.5760952", "0.571...
0.75687104
0
Release this object. No further method call may be performed.
public void release() { _pixxConfiguration=null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void release() {\n }", "public void release() {\r\n return;\r\n }", "@Override\n public void release() {\n }", "public void release() {\n }", "@Override\n public void release() {\n \n }", "@Override\r\n\tpublic void release()\r...
[ "0.81295925", "0.80956286", "0.7944291", "0.7940368", "0.7917218", "0.7867841", "0.78644866", "0.77853197", "0.7777759", "0.7761489", "0.7761209", "0.7753175", "0.7753175", "0.77382034", "0.77260673", "0.772518", "0.7715665", "0.76958233", "0.76756376", "0.7659886", "0.765293...
0.6830852
71
Get the formatted text from the formatted text code.
public String getText(int code) { return _pixxConfiguration.getText(code); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getTransformedText();", "public String getTextAsString () {\n\t\tString val = null;\n\t\tif(text!=null) {\n\t\t\tText t = text.getText();\n\t\t\tTextLine[] lines = t.getLines();\n\t\t\t\n\t\t\tif(lines.length >0) {\n\t\t\t\tint endline = lines.length - 1;\n\t\t\t\tTextLine lastline = lines[endline];\n\t\t...
[ "0.6483096", "0.64273226", "0.63645077", "0.6280438", "0.62417763", "0.62124705", "0.6191709", "0.6191709", "0.6191709", "0.6191709", "0.6191709", "0.6191709", "0.6191709", "0.6191709", "0.6136481", "0.6122219", "0.6111637", "0.6111637", "0.6111637", "0.6111637", "0.6111637",...
0.0
-1
Draw a 3d box at given position.
protected void drawSeparator(Graphics g,int x,int y,int w,int h) { g.setColor(new Color(0x868686)); g.drawLine(x+0,y+0,x+w-1,y+0); g.drawLine(x+0,y+0,x+0,y+1); g.drawLine(x+w-1,y+0,x+w-1,y+1); g.setColor(Color.black); g.drawLine(x+1,y+1,x+w-2,y+1); g.setColor(new Color(0x868686)); g.d...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Pj3dBox Box(int x, int y, int z)\r\n\t{\r\n\t\tPj3dBox b = new Pj3dBox(this, x, y, z);\r\n\t\treturn b;\r\n\t}", "protected abstract Vector3f place (Vector3f position);", "public void place(float x,float y,float z){\n\t\tthis.x=x;\r\n\t\tthis.y=y;\r\n\t\tthis.z=z;\r\n\t\tdx=x;\r\n\t\tdy=y;\r\n\t\tvz=0;\...
[ "0.647661", "0.6251153", "0.60887235", "0.5916848", "0.587925", "0.5818089", "0.5817308", "0.57912475", "0.57730514", "0.57250077", "0.571702", "0.56147546", "0.56002784", "0.5599655", "0.5565523", "0.5563797", "0.55505455", "0.5513117", "0.55123407", "0.5506116", "0.5480601"...
0.0
-1
Return the i'th color from the color model.
public Color getColor(int col) { return _pixxConfiguration.getColor(col); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Color get(int index);", "public int getColorIndex() {\n return colorIndex;\n }", "public int getColorInt () {\r\n return this.colorReturned;\r\n }", "public int getColor() {\n\t\treturn getMappedColor(color);\n\t}", "private int getCurrentMainColor () {\n int translatedHue = ...
[ "0.7093747", "0.70333666", "0.68495685", "0.6779595", "0.67121553", "0.6679533", "0.6676575", "0.6676575", "0.6667554", "0.6667554", "0.6667554", "0.6667554", "0.6667554", "0.6661358", "0.66435945", "0.66343296", "0.66306573", "0.66298425", "0.6586314", "0.6568683", "0.656468...
0.6013915
65
Get the current IRC color model.
public PixxColorModel getPixxColorModel() { return _pixxConfiguration.getColorModel(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public ColorModel getColorModel() {\n return this.colorModel;\n }", "@Override\n public ColorModel getColorModel() {\n return getGraphicsConfiguration().getColorModel();\n }", "public String obtenColor() {\r\n return color;\r\n }", "public Color getCurrentColor...
[ "0.70929354", "0.6927446", "0.66521823", "0.6539306", "0.63830894", "0.63770896", "0.63770896", "0.6373464", "0.6373464", "0.6370983", "0.6370983", "0.6370983", "0.6370983", "0.6370983", "0.6370983", "0.6370983", "0.6370983", "0.6359605", "0.63566756", "0.634959", "0.6335712"...
0.68229026
2
if this is large do the movement 3 times.
public EnemyShip(EnemyType enemyType, EnemyPattern pattern, boolean spawnRight, boolean large, float height, Sprite sprite, GameScreen screen) { super(sprite, screen); this.spawnRight = spawnRight; this.enemyType = enemyType; enemyPattern = pattern; this.large=large; if(large) sprite.setSize(60,60)...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void move() {\r\n\r\n\t\tif(x < 0) {\r\n\t\t\tx = 400;\r\n\t\t}\r\n\r\n\t\t// factor for speed increase\r\n\t\tx -= 1 * factor;\r\n\t}", "public void move() {\r\n\t\tthis.swim();\r\n\t\tthis.swim();\r\n\t\tthis.swim();\r\n\t\tthis.swim();\r\n\t\tthis.swim();\r\n\t\tthis.swim();\r\n\t\tthis.swim();\r\n\t\t...
[ "0.6678939", "0.6634209", "0.66018254", "0.65437543", "0.64867777", "0.63383365", "0.62413096", "0.624061", "0.62223387", "0.62048876", "0.6186825", "0.6184779", "0.6182382", "0.6181881", "0.6176404", "0.6166651", "0.61641246", "0.6155806", "0.61426485", "0.61317533", "0.6124...
0.0
-1
called when player's projectile touches this enemy
public void killedByPlayer() { screen.enemiesKilled++; MazeCrawler mc = screen.mazeHandler.mazeCrawler; int n = 2; //if enemy is large do movement n+1 times switch (enemyType) { case DOWN: mc.moveDown(); if(large) {for(int i = 0; i < n; i++) mc.moveDown();} break; case LEFT: mc.moveLef...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void touched(Vector pos);", "public void Update() {\r\n\t\t//if player is near and haven't fired in a while, fire a projectile\r\n\t\tif(!playerNear().equals(\"n\") && j > 250){\r\n\t\t\tfireProjectile(playerNear());\r\n\t\t\tj = 0;\r\n\t\t}\r\n\t\tj++;\r\n\r\n\t\t//COLLISION\r\n\t\tfor(int i = 0; i < Adv...
[ "0.650843", "0.64307857", "0.64305145", "0.64003843", "0.6379177", "0.6358778", "0.63401437", "0.63288164", "0.63288164", "0.63173527", "0.6306265", "0.6296425", "0.62916005", "0.6271266", "0.6265485", "0.6259242", "0.6240796", "0.61806756", "0.6174721", "0.61615616", "0.6159...
0.56540406
96
Maps given Level to LevelDTO.
@Mappings({ @Mapping(source = "levelName", target = "levelName") }) @Named("toLevelDTO") public abstract LevelDTO toLevelDTO(final Level level) throws UnexpectedException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Level makeLevel(String levelName) {\r\n return new Level(levelName);\r\n }", "public BuildALevel(List<String> level) {\n this.level = level;\n this.map = new TreeMap<String, String>();\n // call the splitLevelDetails method\n splitLevelDetails();\n }", "public void setL...
[ "0.59864193", "0.59531444", "0.5896054", "0.5896054", "0.57656944", "0.57564837", "0.57286257", "0.5669197", "0.564178", "0.55621916", "0.55621916", "0.55621916", "0.55621916", "0.55621916", "0.5546325", "0.55430704", "0.55430704", "0.5505676", "0.549381", "0.5466583", "0.544...
0.82639885
0
Maps given Level list to LevelDTO list.
@IterableMapping(qualifiedByName = "toLevelDTO") public abstract List<LevelDTO> toLevelDTOList(final Iterable<Level> levelList) throws UnexpectedException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Mappings({ @Mapping(source = \"levelName\", target = \"levelName\") })\n @Named(\"toLevelDTO\")\n public abstract LevelDTO toLevelDTO(final Level level) throws UnexpectedException;", "public BuildALevel(List<String> level) {\n this.level = level;\n this.map = new TreeMap<String, String>();\n...
[ "0.6821148", "0.65727174", "0.5718264", "0.54749274", "0.5407485", "0.5390208", "0.53866005", "0.5376946", "0.53535813", "0.5340715", "0.530181", "0.52874047", "0.5221635", "0.5210684", "0.5186036", "0.5156377", "0.5141426", "0.5137319", "0.5136596", "0.5133918", "0.5119131",...
0.7927954
0
Converts String to the enum type.
public static TaskStatus fromString(String text) { for (TaskStatus taskStatus : TaskStatus.values()) { if (taskStatus.status.equalsIgnoreCase(text)) { return taskStatus; } } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static TransactionType getEnumFromString(String string) {\n for (TransactionType transactionType : TransactionType.values()) {\n if (transactionType.getTransactionType().equals(string)) {\n return transactionType;\n }\n }\n\n throw new UnsupportedOpe...
[ "0.7275225", "0.72359204", "0.7220597", "0.7220597", "0.7220597", "0.72204286", "0.72095734", "0.6772163", "0.6600132", "0.6566855", "0.65366966", "0.65224314", "0.6453249", "0.63500595", "0.6238392", "0.619228", "0.61708635", "0.61620384", "0.61421853", "0.61000955", "0.6076...
0.0
-1
TODO code application logic here
public static void main(String[] args) { String input = "ABC"; List<String> result = new ArrayList <> (); result = permutations(input); System.out.println(Arrays.asList(result)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\n public void settings() {\n // TODO Auto-generated method stub\n \n }"...
[ "0.6082802", "0.59139353", "0.58439904", "0.58354765", "0.5812776", "0.5759179", "0.5741194", "0.5722255", "0.5706847", "0.5667975", "0.565895", "0.56149286", "0.56125593", "0.56125593", "0.5597307", "0.55943495", "0.5578268", "0.55732965", "0.55664206", "0.55500203", "0.5538...
0.0
-1
TODO Autogenerated method stub
@Override public List<TypeContratEmployee> GetallContratEmployee(Boolean a) { return rep.lister_type(a); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public TypeContratEmployee getbyid(TypeContratEmployeeId e) { return rep.findByPkContrat(e); }
{ "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.66708666", "0.65675074", "0.65229905", "0.6481001", "0.64770633", "0.64584893", "0.6413091", "0.63764185", "0.6275735", "0.62541914", "0.6236919", "0.6223816", "0.62017626", "0.61944294", "0.61944294", "0.61920846", "0.61867654", "0.6173323", "0.61328775", "0.61276996", "0...
0.0
-1
TODO Autogenerated method stub
@Override public int countPkContrat(TypeContratEmployeeId e) { return rep.countByPkContrat(e); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public List<TypeContratEmployee> Getdetail(TypeContrat e) { return rep.findAllByPkContratContrat(e); }
{ "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.66708666", "0.65675074", "0.65229905", "0.6481001", "0.64770633", "0.64584893", "0.6413091", "0.63764185", "0.6275735", "0.62541914", "0.6236919", "0.6223816", "0.62017626", "0.61944294", "0.61944294", "0.61920846", "0.61867654", "0.6173323", "0.61328775", "0.61276996", "0...
0.0
-1
The namespace of the vocabulary as a string
public static String getURI() {return NS;}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getNamespace();", "String getNamespaceStringValue(Object ns);", "String getNamespace();", "String getNamespace();", "String getNamespace();", "public String getNamespace();", "String getNamespacePrefix(Object ns);", "public Optional<String> namespace() {\n return Codegen.strin...
[ "0.749546", "0.7417817", "0.7387056", "0.7387056", "0.7387056", "0.706", "0.6929809", "0.68722105", "0.68149406", "0.67652774", "0.67652774", "0.67652774", "0.67529565", "0.6727821", "0.66787094", "0.6663389", "0.6658418", "0.6586705", "0.6584134", "0.6578086", "0.6553679", ...
0.0
-1
Workaround to get color from various versions of Android
@SuppressWarnings("deprecation") public static int getColor(Context context, int id) { final int version = Build.VERSION.SDK_INT; if (version >= 23) { return ContextCompat.getColor(context, id); } else { return context.getResources().getColor(id); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getHighLightColor();", "public static int color(Context context) {\n\t\tSharedPreferences prefs = PreferenceManager\n\t\t\t\t.getDefaultSharedPreferences(context);\n\t\tint bg = prefs.getInt(\"menu.background\", 0x7c000000);\n\t\tint alpha =\t((bg>>24)&0xFF);\n\t\tint red = \t((bg>>16)&0xFF);\n\t\tint green ...
[ "0.74613756", "0.70411104", "0.69757587", "0.6779022", "0.67785317", "0.67785317", "0.67717475", "0.6740798", "0.6693114", "0.6693114", "0.6693114", "0.6693114", "0.6693114", "0.6692944", "0.6673956", "0.66261584", "0.6609827", "0.65566516", "0.6538757", "0.6526953", "0.65269...
0.66606295
15
Start activity with view shared element transition if the version greater than lollipop or no shared element transition if the version below lollipop Don't forget to add android:transitionName="yourPreferredTransitionName" to the shared elements
public static void startActivityWithSharedElementTransitionIfPossible(Context context, Intent intent, View view) { if (Build.VERSION.SDK_INT < Build.VERSION_CODES.LOLLIPOP) { context.startActivity(intent); } else { context.startActivity(intent, ActivityOptions.makeSceneTransition...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void presentActivity(View view) {\n\n ActivityOptionsCompat options = ActivityOptionsCompat.makeSceneTransitionAnimation(this, view, \"transition\");\n\n int revealX = (int) (view.getX() + view.getWidth() / 2);\n int revealY = (int) (view.getY() + view.getHeight() / 2);\n\n Inte...
[ "0.65089774", "0.5836774", "0.58013344", "0.5753253", "0.56543684", "0.5408089", "0.53962773", "0.53457826", "0.52926296", "0.52911377", "0.5290143", "0.5288429", "0.5279136", "0.5264814", "0.5252682", "0.5228349", "0.52086973", "0.5203991", "0.51899457", "0.51608515", "0.512...
0.6449198
1
Convert dp unit to equivalent pixels, depending on device density.
public static float dp2px(float dp, Context context) { //return TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, dp, context.getResources().getDisplayMetrics()); Resources resources = context.getResources(); DisplayMetrics metrics = resources.getDisplayMetrics(); return dp * (metri...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private int toPixels(int dp)\n {\n final float scale = getResources().getDisplayMetrics().density;\n return (int) (dp * scale + 0.5f);\n }", "private float convertDpToPixel(float dp){\n Resources resources = getContext().getResources();\n DisplayMetrics metrics = resources.getDi...
[ "0.80648893", "0.79062283", "0.7875804", "0.7764803", "0.7469701", "0.74313205", "0.7323145", "0.72800905", "0.72685915", "0.7230268", "0.7207041", "0.7207041", "0.7207041", "0.7202886", "0.7188005", "0.7181517", "0.7173042", "0.71564", "0.71564", "0.71564", "0.71564", "0.7...
0.7020219
36