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
Gets the value of the idVozilo property.
public long getIdVozilo() { return idVozilo; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setIdVozilo(long value) {\n this.idVozilo = value;\n }", "public int getVaoID() {\n\t\treturn vaoID;\n\t}", "public String getIdVille() {\r\n\t\treturn idVille;\r\n\t}", "public String getIdVenta() {\n return idVenta;\n }", "public Long getIdVieSociale() {\r\n\t\treturn idVi...
[ "0.7002821", "0.69584364", "0.65932465", "0.65309143", "0.6426284", "0.6336875", "0.6252656", "0.6128727", "0.60958165", "0.60705924", "0.5943725", "0.59426105", "0.5939942", "0.5939759", "0.5931853", "0.5927035", "0.5921903", "0.58935994", "0.58922046", "0.58859944", "0.5876...
0.86994445
0
Sets the value of the idVozilo property.
public void setIdVozilo(long value) { this.idVozilo = value; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public long getIdVozilo() {\n return idVozilo;\n }", "public void setIdVenta(String idVenta) {\n this.idVenta = idVenta;\n }", "public void setIdproducto(int idproducto) {\r\n\t\tthis.idproducto = idproducto;\r\n\t}", "public void setIdAeroporto(String idAeroporto)\n {\n this.id...
[ "0.7157627", "0.6591611", "0.62409985", "0.623949", "0.6110203", "0.61035407", "0.59811646", "0.59787023", "0.59589094", "0.59404284", "0.59308594", "0.5920798", "0.5851775", "0.58491874", "0.58456033", "0.5841683", "0.5841683", "0.5841683", "0.5841683", "0.5841683", "0.58416...
0.80077285
0
Gets the value of the predjenaKilometraza property.
public double getPredjenaKilometraza() { return predjenaKilometraza; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setPredjenaKilometraza(double value) {\n this.predjenaKilometraza = value;\n }", "public double getKilometraza() {\r\n return kilometraza;\r\n }", "public double getPreco() {\n\t\treturn this.preco;\n\t}", "public CatPredio getPredio(BigInteger idPredio) {\n if (idPredi...
[ "0.6521934", "0.58892184", "0.57366675", "0.569428", "0.56598794", "0.56576735", "0.5522416", "0.54659504", "0.54433024", "0.5384626", "0.53757644", "0.536257", "0.5337933", "0.5322583", "0.5322318", "0.5301692", "0.5289762", "0.5277284", "0.52748495", "0.52748495", "0.527452...
0.8127905
0
Sets the value of the predjenaKilometraza property.
public void setPredjenaKilometraza(double value) { this.predjenaKilometraza = value; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double getPredjenaKilometraza() {\n return predjenaKilometraza;\n }", "synchronized public void setPredKey(int predKey) {\n this.predKey = predKey;\n }", "public final void setPredecessor(final Rule r) {\n //ELM: in again!\n m_pred = r;\n }", "public void setPreco(...
[ "0.648187", "0.5789014", "0.5091283", "0.5078192", "0.50313807", "0.5016354", "0.49645802", "0.49625838", "0.48854783", "0.4882801", "0.48547974", "0.47899473", "0.47712886", "0.47683635", "0.47536334", "0.4716266", "0.47076392", "0.46914804", "0.46830785", "0.46791136", "0.4...
0.7394389
0
Get Values for Custom Control Register Type of Files of the CustomControl
@SuppressWarnings("unchecked") public List<FileHelper> getValue(Object obj, String strFieldName, String strCcId, HashMap<String, FileHelper> valueFields) { List<FileHelper> values; try { Method mt = obj.getClass().getMethod("get" + strFieldName); values = (List<FileHelper>) mt.invoke(obj); if (values ==...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void initializeControlFile(){\n\t\tinitializeControlFile(\"Control.xml\");\n\t}", "public java.util.List<Object> generateControlVars();", "private void initControlList() {\n this.controlComboBox.addItem(CONTROL_PANELS);\n //this.controlComboBox.addItem(PEER_TEST_CONTROL);\n //this.contro...
[ "0.5348863", "0.5207027", "0.5139081", "0.50041044", "0.50037193", "0.49661767", "0.49190095", "0.49186882", "0.48953697", "0.4888039", "0.48852086", "0.48852086", "0.4854174", "0.48458126", "0.4836613", "0.4829342", "0.48062956", "0.48028323", "0.47985402", "0.4783672", "0.4...
0.0
-1
login first connects to the database, then tries to find the inputted email and password if successful it loads home.fxml
public void login(){ try{ stmt = conn.createStatement(); String userEmail = textEmail.getText(); String userPass = textPassword.getText(); String sql = "SELECT * FROM admin WHERE mail= '"+userEmail+"' && password = '"+ userPass+"'"; rs = stmt.exe...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@FXML\n private void loginButtonClicked(ActionEvent event) {\n\n String username = usernameField.getText();\n String password = passwordField.getText();\n \n if (username.equals(\"tuksa\") && password.equals(\"Tuksa123\")) {\n try {\n Parent homeParent = FXM...
[ "0.78168446", "0.777821", "0.75020856", "0.74975103", "0.7343664", "0.7255635", "0.7211919", "0.7177466", "0.7155178", "0.71538424", "0.7122923", "0.71212476", "0.7036312", "0.70182425", "0.6988038", "0.69537663", "0.6933301", "0.68767184", "0.6865218", "0.6816497", "0.668775...
0.80282825
0
Indicate, that a new entry was found in the zipped input stream. The entry is closed by the caller after this method returns.
public void newZipEntry(ZipEntry zipEntry, InputStream inputStream);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private ZipEntry processEntry( ZipFile zip, ZipEntry inputEntry ) throws IOException{\n /*\n First, some notes.\n On MRJ 2.2.2, getting the size, compressed size, and CRC32 from the\n ZipInputStream does not work for compressed (deflated) files. Those calls return -1.\n ...
[ "0.6063202", "0.59804505", "0.5576459", "0.55533373", "0.54749864", "0.5458688", "0.5393875", "0.5224648", "0.5211025", "0.5122831", "0.5097992", "0.50505316", "0.5009282", "0.49804857", "0.49755928", "0.4965028", "0.4901994", "0.48820505", "0.48438784", "0.48110852", "0.4810...
0.6390422
0
Return boolean from optional parameter with single value. Return default value if parameter was not set.
static public boolean getSingleBooleanFromParameter(RuntimeContract contract, String parameter, boolean def) throws IllegalUsageException { // If not given, return default if(!contract.hasArgumentClause(parameter)) return def; // If given convert to boolean String value = contract.useArgumentClause(para...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean hasOptionalValue();", "boolean optional();", "private boolean getOptionalBooleanProperty(String property, boolean defaultValue) {\n\t\tString value = getOptionalStringProperty(property);\n\t\tif (value != null)\n return value.equalsIgnoreCase(\"true\") || value.equalsIgnoreCase(\"yes\");\n ...
[ "0.7348394", "0.7019204", "0.6997763", "0.69478226", "0.68451977", "0.6713329", "0.66813666", "0.6671492", "0.66564673", "0.65615666", "0.6557148", "0.65103763", "0.6438882", "0.642862", "0.6390779", "0.63843", "0.63834274", "0.6372957", "0.6277953", "0.6277953", "0.61619294"...
0.66123444
9
Return integer from optional parameter with single value. Return default value if parameter was not set.
public static int getSingleIntFromParameter(RuntimeContract contract, String parameter, int def) throws IllegalUsageException { // If not given, return default if(!contract.hasArgumentClause(parameter)) return def; // If given convert to integer String value = contract.useArgumentClause(parameter).getSi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getParamValueAsInt(String label, int defaultValue);", "public int getInt(String key, int defaultValue);", "int getInt(String key, int defaultValue);", "public static int getIntParameter( HttpServletRequest request, String paramName, int defaultNum ) {\n String temp = request.getPara...
[ "0.71336615", "0.69211924", "0.6915256", "0.67761755", "0.67761755", "0.6768065", "0.67666674", "0.6540317", "0.6511332", "0.6483308", "0.6414603", "0.6372322", "0.6334148", "0.6264259", "0.6238509", "0.6238012", "0.62160814", "0.61585957", "0.61346626", "0.61081403", "0.6104...
0.61767477
17
Return string from optional parameter with single value. Return default value if parameter was not set.
public static String getSingleStringFromParameter(RuntimeContract contract, String parameter, String def) throws IllegalUsageException { // If not given, return default return contract.hasArgumentClause(parameter)? contract.useArgumentClause(parameter).getSingleValue():def; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getOptionalValue();", "public String getParamValueAsString(String label, String defaultValue);", "String getDefaultValue();", "String getDefaultValue();", "public static Optional<String> optString(String param) {\n if (param == null) {\n return Optional.empty();\n ...
[ "0.77982324", "0.66970664", "0.6649908", "0.6649908", "0.6504792", "0.63130194", "0.6281477", "0.6275971", "0.627488", "0.627488", "0.61925584", "0.61925584", "0.6137935", "0.61085105", "0.61081636", "0.60938656", "0.60938656", "0.60938656", "0.60587424", "0.60325444", "0.602...
0.6226246
10
Return Character set decoder for encoding with an InputStreamReader from optional parameter with single value. Return null if parameter was not set. Parameter is "encoding".
public static CharsetDecoder getEncoding(RuntimeContract contract, String parameter) throws IllegalUsageException { if (contract.hasArgumentClause(parameter)) try { return getEncoding(contract.useArgumentClause(parameter).getSingleValue()); } catch(IllegalArgumentException e) { throw new IllegalUsageEx...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private CharsetDecoder decoderFromExternalDeclaration(String encoding)\n throws SAXException {\n if (encoding == null) {\n return null;\n }\n encoding = encoding.toUpperCase();\n if (\"ISO-8859-1\".equals(encoding)) {\n encoding = \"Windows-1252\"...
[ "0.6713104", "0.6434402", "0.6026648", "0.59954363", "0.55920887", "0.55829126", "0.55101585", "0.5440929", "0.5408859", "0.5352376", "0.5291885", "0.5272735", "0.52616453", "0.5233905", "0.5164617", "0.50983447", "0.50983447", "0.50861746", "0.5085846", "0.50815463", "0.5024...
0.63213223
2
Return Character set decoder for encoding with an InputStreamReader from encoding.
public static CharsetDecoder getEncoding(String encode) throws IllegalArgumentException { CharsetDecoder charsetDecoder = null; try { charsetDecoder = Charset.forName(encode).newDecoder(); charsetDecoder.onMalformedInput(CodingErrorAction.REPLACE); charsetDecoder.onUnmappableCharacter(CodingErrorA...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private CharsetDecoder decoderFromExternalDeclaration(String encoding)\n throws SAXException {\n if (encoding == null) {\n return null;\n }\n encoding = encoding.toUpperCase();\n if (\"ISO-8859-1\".equals(encoding)) {\n encoding = \"Windows-1252\"...
[ "0.6658235", "0.65755534", "0.57423824", "0.557188", "0.5521262", "0.52603424", "0.519042", "0.51455134", "0.5145315", "0.5141027", "0.5120439", "0.51029193", "0.50601065", "0.5014162", "0.49912465", "0.49694782", "0.4969161", "0.49640927", "0.49143967", "0.489416", "0.489315...
0.62451
2
Emit an Integer that might be null
static public void emitNullableInteger(RowEmitter outputEmitter, long value, long nullValue) { if(value != nullValue) outputEmitter.addLong(value); else outputEmitter.addNull(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Int() {\n super(Expression.X_IS_UNDEFINED);\n this.value = 0;\n }", "@Override\n public int intValue(int numId) {\n return 0;\n }", "@Override\n\tpublic Object visitIntLiteral(IntLiteral literal) {\n\t\treturn null;\n\t}", "@Override\n public String visit(IntegerLitera...
[ "0.66006225", "0.6394871", "0.6277157", "0.61729574", "0.60976374", "0.6067943", "0.6054156", "0.5957511", "0.5890867", "0.583415", "0.5765615", "0.5746881", "0.57460076", "0.5731919", "0.5731646", "0.57200944", "0.5673648", "0.5606991", "0.5606991", "0.5577006", "0.5570305",...
0.7159404
0
Emit a String that might be null.
static public void emitNullableString(RowEmitter outputEmitter, String value) { if(value != null) outputEmitter.addString(value); else outputEmitter.addNull(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static String formatNull() {\n\t\treturn \"null\";\n\t}", "private String getNullValueText() {\n return getNull();\n }", "private void serializeNull(final StringBuffer buffer)\n {\n buffer.append(\"N;\");\n }", "@Override\r\n public String toString() {\r\n return (value == null) ?...
[ "0.701798", "0.6800801", "0.6431547", "0.6374998", "0.6359629", "0.63418925", "0.62980175", "0.6275251", "0.6273014", "0.6273014", "0.6239307", "0.62298465", "0.61892056", "0.6183135", "0.6145009", "0.6111872", "0.60638064", "0.6058117", "0.60240746", "0.602194", "0.6014142",...
0.72169065
0
Emit a time stamp that might be null.
static public void emitNullableTimestamp(RowEmitter outputEmitter, long value, long nullValue) { if(value != nullValue) { Calendar creationTimestamp = Calendar.getInstance(); creationTimestamp.setTimeInMillis(value); outputEmitter.addTimestamp(new Timestamp( SqlType.getType("timestamp with time zon...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setTimestamp() {\n timestamp = System.nanoTime();\n }", "private String makeEventStamp() {\n String name = \"DTSTAMP\";\n return formatTimeProperty(LocalDateTime.now(), name) + \"\\n\";\n }", "private void stamp() {\n mInternalStamp = SystemClock.elapsedRealtime();...
[ "0.6272049", "0.61817425", "0.604535", "0.58795834", "0.58790064", "0.5878477", "0.5797694", "0.5787003", "0.5787003", "0.5760858", "0.5760858", "0.5752503", "0.57511324", "0.5725851", "0.5719451", "0.5707585", "0.563505", "0.5610618", "0.5609994", "0.559438", "0.5563163", ...
0.7267401
0
Print the prefix, an opening bracket, new line, each column content in a line with leading tab and newline at the end and a closing bracket.
public static String rowToString(String prefix, RowView rowView) { if(rowView == null) return ""; StringBuilder sb = new StringBuilder(); sb.append(prefix); sb.append("(\n"); try { for(int i = 0; i < rowView.getColumnCount(); i++) { sb.append('\t'); ValueHolder valueHolder = new Val...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void print() {\n \tfor (int i=0; i < this.table.height; i++) {\n \t\tfor (int j=0; j < this.table.width; j++) {\n \t\t\tString tmp = \"e\";\n \t\t\tif(this.table.field[i][j].head != null) {\n \t\t\t\ttmp = \"\";\n \t\t\t\tswitch (this.table.field[i][j].head.direction) {\n\t\t\t\t\tcase 1:\...
[ "0.6770077", "0.64384586", "0.6403647", "0.64005154", "0.637772", "0.6329299", "0.6321224", "0.6284474", "0.6284054", "0.6256321", "0.62503964", "0.62359273", "0.6226732", "0.61678195", "0.61212456", "0.60865986", "0.6073277", "0.60510606", "0.6038571", "0.6032579", "0.601874...
0.0
-1
Read input as zipped file and return each entry found.
public static void unzip(InputStream inputStream, UnzipCallback unzipListener) throws IOException { ZipInputStream zis = new ZipInputStream(inputStream); for(ZipEntry zipEntry = zis.getNextEntry(); zipEntry != null; zipEntry = zis.getNextEntry()) { unzipListener.newZipEntry(zipEntry, zis); zis.closeEn...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private byte[] readBinaryZipEntry(ZipInputStream zis)\r\n\t\tthrows IOException\r\n\t{\r\n\t\tByteArrayOutputStream bos = new ByteArrayOutputStream();\r\n\t\tint read;\r\n\t\tbyte[] buffer = new byte[1024];\r\n\r\n\t\twhile ((read = zis.read(buffer, 0, buffer.length)) != -1)\r\n\t\t\tbos.write(buffer, 0, read);\r\...
[ "0.616434", "0.6162942", "0.6135082", "0.60609007", "0.59911937", "0.59658194", "0.59628093", "0.5951173", "0.5916676", "0.587179", "0.58440685", "0.57833064", "0.5777749", "0.5777749", "0.576947", "0.5750043", "0.5711151", "0.5653849", "0.5604094", "0.55379874", "0.55065554"...
0.0
-1
Compress input stream and provide result as chunks. Starts its own thread for piping the data.
public static void zip(final String name, final InputStream inputStream, final int pipeSize, ByteChunkListener byteChunkListener) throws IOException { // inputStream -> GZIPOutputStream -> Chunkifier -> chunks of Byte to listener final PipedInputStream readFromPipe = new PipedInputStream(pipeSize); final Piped...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "List<CompressResult> parallelCompress(Path input, Path output, int maxSizeInMB, int nThread) throws IOException;", "@Override\n\tpublic void run() {\n\n\t\tbyte[] buffer = new byte[BUFFER_SIZE]; \n try { \n while (true) { \n int bytesRead = mInputStream.read(buffer); \n ...
[ "0.57716584", "0.5563795", "0.5517943", "0.54977995", "0.5485879", "0.54588205", "0.5393867", "0.53240764", "0.5296495", "0.52451336", "0.52247036", "0.522313", "0.5187078", "0.5155993", "0.5143835", "0.51176", "0.51046443", "0.51024425", "0.5024808", "0.50051683", "0.4991574...
0.634461
0
replace one invalid XML char. Tests are done in order of most occurrences.
static public char replaceInvalid(char in) { if(0x20 <= in && in <= 0xd7ff) return in; if(in == 0x9 || in == 0xa || in == 0xd) return in; if(0xe000 <= in && in <= 0xfffd) return in; if(0x10000 <= in && in <= 0x10ffff) return in; return '?'; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static String escapeInvalidXMLCharacters(String str) {\n StringBuffer out = new StringBuffer();\n final int strlen = str.length();\n final String substitute = \"\\uFFFD\";\n int idx = 0;\n while (idx < strlen) {\n final int cpt = str.codePointAt(idx);\n idx += Character.isSupplement...
[ "0.6706371", "0.66625917", "0.6461096", "0.6340767", "0.6284995", "0.60566145", "0.5980825", "0.58914554", "0.5807166", "0.5752449", "0.5530037", "0.55114126", "0.5511147", "0.54467887", "0.5412471", "0.53867346", "0.53838205", "0.5341788", "0.5308404", "0.5306462", "0.528879...
0.6492365
2
Find max long value in a list of longs
static public long max(long... values) { long maxValue = Long.MIN_VALUE; for(long value : values) if(value > maxValue) maxValue = value; return maxValue; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int findMaxValue(List<Integer> list) {\n int max = list.get(0);\n for (int i = 0; i < list.size(); i++) {\n if (list.get(i) > max) {\n max = list.get(i);\n }\n }\n return max;\n }", "public static long GetMax(Collection<Long> collection) ...
[ "0.735966", "0.7305261", "0.7254854", "0.72333556", "0.7211601", "0.6928704", "0.67824125", "0.67125976", "0.6662457", "0.66516584", "0.66036224", "0.6490262", "0.6483249", "0.6463113", "0.6438521", "0.64082813", "0.6381488", "0.63728946", "0.6326541", "0.63047594", "0.629793...
0.7356813
1
Do not allow to instantiate this class
private Utils() {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private ATCres() {\r\n // prevent to instantiate this class\r\n }", "private Example() {\n\t\tthrow new Error(\"no instantiation is permitted\");\n\t}", "@Override\n public boolean isInstantiable() {\n return false;\n }", "private SystemInfo() {\r\n // forbid object ...
[ "0.7682195", "0.75588286", "0.74685955", "0.7437264", "0.73266786", "0.7143281", "0.7091737", "0.70859855", "0.7031622", "0.70258904", "0.6981391", "0.6946725", "0.69091684", "0.69053257", "0.6900377", "0.68922794", "0.68794423", "0.68639857", "0.6851852", "0.68347526", "0.68...
0.0
-1
Gets the observation code of the measurement being tracked
public String getObservationCode() { return this.observationCode; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getMeasurementCode() {\n return this.measurementCode;\n }", "public java.lang.String getStateCode() {\n\t\treturn _dmHistoryMaritime.getStateCode();\n\t}", "public String getCode() {\n return (String)getAttributeInternal(CODE);\n }", "public long getCode () {\r\n\t\treturn c...
[ "0.66657794", "0.6044803", "0.5914254", "0.58656895", "0.58426666", "0.5842654", "0.5842395", "0.58366895", "0.57587206", "0.57558644", "0.57205975", "0.5707404", "0.57041776", "0.5696998", "0.5693135", "0.5677835", "0.5672151", "0.5648941", "0.5648941", "0.5617833", "0.56135...
0.7728255
0
Gets the code of the measurement being tracked
public String getMeasurementCode() { return this.measurementCode; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getCode() {\n return _toBaseUnit._code;\n }", "public int GetCurrentTrack();", "public long getCode () {\r\n\t\treturn code;\r\n\t}", "int getMoistureCode(int x, int y);", "public long getCode() {\n return code;\n }", "public String getCode(){\n\t\treturn new SmartAPIMod...
[ "0.65378356", "0.6177353", "0.60982484", "0.60380983", "0.6009946", "0.5992961", "0.5992492", "0.5992492", "0.5949493", "0.5949493", "0.5949493", "0.5949493", "0.5949493", "0.594763", "0.59438765", "0.59156185", "0.5886907", "0.5881054", "0.5866807", "0.5807572", "0.57955766"...
0.76175886
0
Gets the current average value
public double getAverage() { return this.average; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public synchronized double getAverage() {\n return average;\n }", "public float getAverage(){\r\n\t\treturn Average;\r\n\t}", "public double getAverage()\n {\n return getSum() / 2.0;\n }", "public double average() {\n return average(0.0);\n }", "public double average(){\r\n...
[ "0.8518513", "0.8248703", "0.8162223", "0.81227106", "0.81000143", "0.80794847", "0.7957098", "0.7951267", "0.79318196", "0.7813571", "0.7800771", "0.7788469", "0.77483225", "0.77281755", "0.7709174", "0.76981443", "0.7630915", "0.76047623", "0.759849", "0.7595203", "0.758904...
0.8258185
1
Resets the current count and average to 0/0.0
public void reset() { this.count = 0; this.average = 0.0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void resetStatistics()\r\n {\r\n \t//System.out.println ( \"Resetting statistics\");\r\n count_ = 0; \r\n }", "public void resetCount() {\n count = 0;\n }", "public void resetCount() {\n\t\tcount = 0;\n\t}", "public void reset() {\n\t\tcount = 0;\n\t}", "void...
[ "0.732895", "0.72531265", "0.72264135", "0.69882846", "0.69390494", "0.6875471", "0.6869286", "0.6851011", "0.68090224", "0.67875624", "0.67710346", "0.674368", "0.6738466", "0.6682335", "0.6681201", "0.6664179", "0.66605264", "0.66486454", "0.66349083", "0.6616046", "0.65540...
0.8767789
0
Adds a new value to the tracker and calculates the new average
public void add(double newValue) { this.count++; this.average = this.average * (this.count - 1) / this.count + newValue/this.count; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void average() {\n\t\tif (averaged)\n\t\t\tthrow new AssertionError(\"can't average twice!!\");\n\t\t\n\t\tscale = 1.0/(double)t;\n\t\t\n\t\tfor (int i = 0; i < w.length; i++)\n\t\t\tw[i] = (t+1.0)*w[i] - wupdates[i];\n\t\t\n\t\taveraged = true;\n\t\n\t}", "public void calcAvg(){\n\t\taverage = hits/atbat...
[ "0.6704612", "0.6504126", "0.6499521", "0.6385513", "0.63649863", "0.6344225", "0.6326342", "0.62666106", "0.6233496", "0.61882997", "0.61540616", "0.61511433", "0.6082376", "0.60193527", "0.5972364", "0.5971498", "0.59605855", "0.59519595", "0.59494054", "0.593604", "0.59100...
0.7719244
0
TODO: Replace this with your own logic
private boolean isEmailValid(String email) { if(Patterns.EMAIL_ADDRESS.matcher(email).matches()){ return true; }else { return false; } // return email.contains("@"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "private void poetries() {\n\n\t}", "@Override\n\tprotected void interr() {\n\t}", "private void strin() {\n\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tpublic void com...
[ "0.5509385", "0.54158944", "0.5396774", "0.5215123", "0.5190688", "0.5150597", "0.51211643", "0.51073384", "0.5095154", "0.50465494", "0.5040486", "0.50389224", "0.50364757", "0.502146", "0.49883768", "0.4981401", "0.49805945", "0.49671677", "0.49149847", "0.4887455", "0.4879...
0.0
-1
TODO: Replace this with your own logic
private boolean isPasswordValid(String password) { return password.length() >= 4; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "private void poetries() {\n\n\t}", "@Override\n\tprotected void interr() {\n\t}", "private void strin() {\n\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tpublic void com...
[ "0.5507535", "0.5415208", "0.5397241", "0.5213475", "0.5190509", "0.51507944", "0.51187396", "0.51061547", "0.50923496", "0.5043965", "0.50385827", "0.5036471", "0.5034677", "0.50192416", "0.4987654", "0.49783257", "0.4978075", "0.49653882", "0.4915975", "0.4886251", "0.48785...
0.0
-1
TODO: Replace this with your own logic
private boolean isPhoneValid(String phoneno) { return phoneno.length() > 9; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "private void poetries() {\n\n\t}", "@Override\n\tprotected void interr() {\n\t}", "private void strin() {\n\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tpublic void com...
[ "0.5509513", "0.5416716", "0.53972626", "0.52148324", "0.51912016", "0.5150658", "0.51203597", "0.5107223", "0.5094417", "0.5045308", "0.5040466", "0.50383174", "0.50355756", "0.5019427", "0.49884495", "0.4980835", "0.4980173", "0.49672136", "0.4916144", "0.48879814", "0.4879...
0.0
-1
Method to make json object request where json response starts wtih
private void makeRegisterRequest(String name, String mobile, String email, String password) { final SweetAlertDialog loading=new SweetAlertDialog(RegisterActivity.this,SweetAlertDialog.PROGRESS_TYPE); loading.setCancelable(false); loading.setTitleText("Loadi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected abstract Object buildJsonObject(R response);", "void sendJson(Object data);", "private <T> JSONObject getJSONFromObject(T request) throws IOException, JSONException {\n ObjectMapper mapper = new ObjectMapper();\n mapper.configure(SerializationConfig.Feature.FAIL_ON_EMPTY_BEANS, false);\...
[ "0.63668585", "0.6337555", "0.6275806", "0.6038057", "0.59978807", "0.5994231", "0.5987879", "0.59264135", "0.59264135", "0.59264135", "0.5897391", "0.58479875", "0.58436275", "0.5843296", "0.5812182", "0.5802", "0.5800086", "0.5798641", "0.5782759", "0.5754188", "0.57486254"...
0.0
-1
TODO Autogenerated method stub
@Override public void setUpViews(View contentView) { mListView = (ListView) contentView.findViewById(R.id.listview); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public void setUpListener() { mListView.setOnItemClickListener(new OnItemClickListener() { @Override public void onItemClick(AdapterView<?> parent, View view, int position, long id) { // TODO Auto-generated method stub mAdapter.setIndex(position); mAdapter.notifyDataSetChanged(); if(l...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public void onItemClick(AdapterView<?> parent, View view, int position, long id) { mAdapter.setIndex(position); mAdapter.notifyDataSetChanged(); if(litener != null){ litener.onItemClick(position, mAdapter.getListItem(position), view); } }
{ "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 int getAnimationStyle() { 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
TODO Autogenerated method stub
@Override public int getResView() { return R.layout.pop_level_list; }
{ "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 boolean updateView(View contentView) { return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
Build Capabilities from JSON string.
public static Capabilities fromJson(String json) { Gson gson = new Gson(); return gson.fromJson(json, Capabilities.class); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static JsonElement stringToJSON2(String json) {\n try {\n JsonElement parser = new JsonPrimitive(json);\n System.out.println(parser.getAsString());\n //JsonObject Jso = new JsonObject();\n //Jso = (JsonObject) parser.p(json);\n return parser;\n ...
[ "0.52571934", "0.52142334", "0.5049055", "0.49400675", "0.49072126", "0.48713562", "0.48663253", "0.48569185", "0.47938082", "0.47916615", "0.4780583", "0.47641626", "0.47328013", "0.4709877", "0.47054645", "0.46903643", "0.46729264", "0.4636334", "0.4624451", "0.45937085", "...
0.8181356
0
TODO Autogenerated method stub
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.member_center); info = (VariableInfo) getApplication(); textview = (TextView) findViewById(R.id.store_name); textview1 = (TextView) findViewById(R.id.store_vip); textview2 = (TextView)...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public void onClick(View v) { Intent intent = new Intent(); intent.setClass(MenberCenterApp.this, BuyBadyApp.class); startActivity(intent); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public void onClick(View v) { Intent intent = new Intent(); intent.setClass(MenberCenterApp.this, CollectionBodyApp.class); startActivity(intent); }
{ "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
returns the cost for that product.
public double getProductCost() { return (this.getPricePerUnit() * this.getNumUnits()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double getCost() {\n return this.product.getPrice() * quanity;\n }", "@Override\r\n\tpublic double getCost() {\r\n\t\tdouble total = 0;\r\n\t\t\r\n\t\tfor(Product p: parts) {\r\n\t\t\ttotal += p.getCost();\r\n\t\t}\r\n\t\t\r\n\t\treturn total;\r\n\t}", "@Override\n public double cost()\n {...
[ "0.78040135", "0.7709143", "0.7613915", "0.75233907", "0.7514418", "0.7490159", "0.7490159", "0.74496895", "0.74296737", "0.7428467", "0.7427946", "0.7424739", "0.7424739", "0.7395002", "0.73856735", "0.7385476", "0.73788625", "0.73764753", "0.73624384", "0.73624384", "0.7361...
0.8016318
0
returns the tax rate for an equipment product which is 7%.
public double getTaxRate() { return .07; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double taxPaying() {\r\n double tax;\r\n if (profit == true) {\r\n tax = revenue / 10.00;\r\n }\r\n\r\n else\r\n tax = revenue / 2.00;\r\n return tax;\r\n }", "public double calcTax() {\n\t\treturn 0.2 * calcGrossWage() ;\n\t}", "double...
[ "0.7655086", "0.74480206", "0.7420506", "0.7391653", "0.73194355", "0.7267215", "0.72518545", "0.7238662", "0.7237959", "0.7201839", "0.71946514", "0.7193056", "0.7184713", "0.71685797", "0.716325", "0.7115033", "0.7099655", "0.7096688", "0.7082145", "0.7014626", "0.69994223"...
0.77923316
0
equipment does not have a service fee
public double getServiceFee() { return 0.00; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test(expected = FacilityNotFreeException.class)\n\tpublic void testBookNotFree() throws Exception {\n\t\t// create a reservation\n\t\tdataHelper.createPersistedReservation(\"aUser\", Arrays.asList(room1.getId()), validStartDate, validEndDate);\n\t\t// book should fail..\n\t\tbookingManagement.book(USER_ID, Arrays...
[ "0.60248935", "0.5982366", "0.5960439", "0.5930705", "0.59162104", "0.5898548", "0.5894737", "0.5886604", "0.5869653", "0.583615", "0.5693375", "0.5683785", "0.5683785", "0.566258", "0.5648008", "0.56475157", "0.56466216", "0.56433684", "0.56412554", "0.5636169", "0.56098807"...
0.5826176
10
Using charArray Sorting, 6ms!
public boolean isAnagram(String s, String t) { if(s.length() != t.length()) return false; char[] chs = s.toCharArray(); char[] cht = t.toCharArray(); Arrays.sort(chs); Arrays.sort(cht); String ss = String.valueOf(chs); String tt = String.valueOf(cht); retu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static long sortingTime(String[] array, boolean isStandardSort) {\n long start = System.currentTimeMillis(); // starting time\n if (isStandardSort) \n Arrays.sort(array);\n selectionSort(array);\n return System.currentTimeMillis() - start; // measure time consumed\n }", "private stat...
[ "0.69534355", "0.6599986", "0.6593223", "0.6491522", "0.64727545", "0.64468503", "0.63859063", "0.6360277", "0.6324219", "0.6305814", "0.6283169", "0.62612754", "0.6256238", "0.62284285", "0.61944544", "0.6162573", "0.61379457", "0.61355376", "0.6134253", "0.61194587", "0.611...
0.0
-1
Get Base64encoded image data, which cannot exceed 5 MB. The long side cannot exceed 4,000 px for images in .jpg format or 2,000 px for images in other formats. The recommended image aspect ratio is 3:4 (generally, the aspect ratio of images taken by mobile phones). The face must be greater than 100100 px in size. Suppo...
public String getImage() { return this.Image; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getBase64EncodedPNG()\n\t{\n\t\tString base64Png = null;\n\t\tByteArrayOutputStream output = new ByteArrayOutputStream();\n\t\ttry\n\t\t{\n\t\t\tif (getBlackWhiteBitmap().compress(Bitmap.CompressFormat.PNG, 100, output))\n\t\t\t{\n\t\t\t\tbyte[] imgData = output.toByteArray();\n\t\t\t\tbase64Png = Ba...
[ "0.6256649", "0.60630405", "0.60102755", "0.59895444", "0.596625", "0.5942994", "0.5938994", "0.59248227", "0.5852545", "0.58364594", "0.5758443", "0.5716495", "0.5713213", "0.5689068", "0.5653655", "0.56535864", "0.5644664", "0.56228846", "0.56169075", "0.561031", "0.5597340...
0.0
-1
Set Base64encoded image data, which cannot exceed 5 MB. The long side cannot exceed 4,000 px for images in .jpg format or 2,000 px for images in other formats. The recommended image aspect ratio is 3:4 (generally, the aspect ratio of images taken by mobile phones). The face must be greater than 100100 px in size. Suppo...
public void setImage(String Image) { this.Image = Image; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void loadImageInGUI(String image_64){\n if (image_64.length() > 10) {\r\n //Log.d(\"ddd\", \"writooo\");\r\n ImageView userImage = header.findViewById(R.id.profile_img);\r\n byte[] decodedString = Base64.decode(image_64, Base64.DEFAULT);\r\n Bitmap decoded...
[ "0.5896255", "0.5782731", "0.5725617", "0.56245655", "0.5449979", "0.54313886", "0.53874594", "0.5297543", "0.52704036", "0.5259776", "0.5258585", "0.5218032", "0.51789135", "0.51531583", "0.5108698", "0.5099", "0.50737786", "0.5071619", "0.5062212", "0.50589544", "0.503983",...
0.0
-1
Get Image URL. The image cannot exceed 5 MB in size after being Base64encoded. The long side cannot exceed 4,000 px for images in .jpg format or 2,000 px for images in other formats. Either `Url` or `Image` must be provided; if both are provided, only `Url` will be used. The recommended image aspect ratio is 3:4 (gener...
public String getUrl() { return this.Url; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static Image forUrl(String imageType, String url) {\n\t\treturn () -> {\n\t\t\ttry {\n\t\t\t\tURLConnection urlConnection = new URL(url).openConnection();\n\t\t\t\turlConnection.setRequestProperty(\"User-Agent\", \"Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2228.0 Safari/537.36...
[ "0.6385264", "0.6170195", "0.60968006", "0.6045762", "0.6042788", "0.60380673", "0.6005985", "0.5990873", "0.5980749", "0.5972062", "0.5964316", "0.5961644", "0.58792746", "0.5820215", "0.5767912", "0.5767767", "0.57553387", "0.5747524", "0.5737744", "0.5737744", "0.5737744",...
0.0
-1
Set Image URL. The image cannot exceed 5 MB in size after being Base64encoded. The long side cannot exceed 4,000 px for images in .jpg format or 2,000 px for images in other formats. Either `Url` or `Image` must be provided; if both are provided, only `Url` will be used. The recommended image aspect ratio is 3:4 (gener...
public void setUrl(String Url) { this.Url = Url; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setImageFromURL(String imageURL);", "Builder addImage(URL value);", "public void setImageUrl(String imageUrl) {\n this.imageUrl = imageUrl;\n }", "public void setImageUrl(String imageUrl) {\n this.imageUrl = imageUrl;\n }", "public void setImageURL(String imageURL) \r\n\t{\r\n\t\t\r\n\t\...
[ "0.7119289", "0.68104315", "0.67754817", "0.67040414", "0.6667532", "0.655975", "0.6471512", "0.6342867", "0.6292597", "0.6190155", "0.6190155", "0.6190155", "0.6190155", "0.6107634", "0.61031824", "0.60913646", "0.60306287", "0.5965249", "0.5938256", "0.5852456", "0.58225536...
0.5292077
77
Get Algorithm model version used for face recognition. Valid value: `3.0`.
public String getFaceModelVersion() { return this.FaceModelVersion; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getGvlSpecificationVersion();", "public float getVersion();", "public String getGLVersion()\n\t{\n\t\treturn glGetString(GL_VERSION);\n\t}", "public static String getModelerFileVersion() {\r\n Class _class = JPAFileActionListener.class;\r\n Annotation[] annotations = _class.getAnnotations()...
[ "0.6467114", "0.6215917", "0.61819285", "0.6128033", "0.59740776", "0.59567326", "0.59493524", "0.5942843", "0.5906263", "0.5889911", "0.5874993", "0.58507025", "0.5831113", "0.58213747", "0.58119386", "0.5756879", "0.5756879", "0.5756879", "0.5756879", "0.5756879", "0.575687...
0.7638832
0
Set Algorithm model version used for face recognition. Valid value: `3.0`.
public void setFaceModelVersion(String FaceModelVersion) { this.FaceModelVersion = FaceModelVersion; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getFaceModelVersion() {\n return this.FaceModelVersion;\n }", "@Override\n\tpublic void setMethodVersion() {\n\t\tthis.version=\"app3.5\";\n\t}", "int getGvlSpecificationVersion();", "@Override\n public int getVersion() {\n return 3;\n }", "@Override\r\n\tpublic void se...
[ "0.6865857", "0.55861133", "0.5533117", "0.5491211", "0.54804105", "0.5479785", "0.5343397", "0.5288071", "0.528739", "0.5279888", "0.5279888", "0.52758527", "0.52748376", "0.5220967", "0.51889586", "0.5182538", "0.51756066", "0.51756066", "0.5173237", "0.5149837", "0.5133352...
0.69930357
0
NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy, and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
public DetectLiveFaceAccurateRequest(DetectLiveFaceAccurateRequest source) { if (source.Image != null) { this.Image = new String(source.Image); } if (source.Url != null) { this.Url = new String(source.Url); } if (source.FaceModelVersion != null) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void set(String key, Object value);", "void set(K key, V value);", "public setKeyValue_args(setKeyValue_args other) {\n if (other.isSetKey()) {\n this.key = other.key;\n }\n if (other.isSetValue()) {\n this.value = other.value;\n }\n }", "public abstract void set(String k...
[ "0.6439152", "0.6414709", "0.61446995", "0.6115921", "0.60933155", "0.6080855", "0.6040002", "0.5989796", "0.5973415", "0.5954667", "0.5837202", "0.5826559", "0.5789158", "0.5703707", "0.5702792", "0.5686423", "0.5686197", "0.56760824", "0.5608089", "0.5589672", "0.55803746",...
0.0
-1
Internal implementation, normal users should not use it.
public void toMap(HashMap<String, String> map, String prefix) { this.setParamSimple(map, prefix + "Image", this.Image); this.setParamSimple(map, prefix + "Url", this.Url); this.setParamSimple(map, prefix + "FaceModelVersion", this.FaceModelVersion); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "public final void mo51373a() {\n }", "@Override\n\tprotected void interr() {\n\t}", "@Override\n protected void prot() {\n }", "private stendhal() {\n\t}", "@Override\n public ...
[ "0.62574834", "0.6217662", "0.6024768", "0.5982239", "0.5965723", "0.59330684", "0.5920059", "0.58351564", "0.5781645", "0.57749504", "0.57749504", "0.57749504", "0.57749504", "0.57749504", "0.57749504", "0.57737285", "0.57054734", "0.5701363", "0.56510806", "0.56491816", "0....
0.0
-1
Displays the student information: student mVectorName, id, section, etc. You must fill this information inside the box.
public static void display() { System.out.println("************************************************************"); System.out.println("* Omar Oraby *"); System.out.println("* 900133379 *"); System.out.println("* Salma Talaat ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void display()\n\t {\n\t\t System.out.println(\"Student ID: \"+id);\n\t\t System.out.println(\"Student Name: \"+name);\n\t\t System.out.println();\n\t }", "public void printStudentInfo(){\r\n System.out.println(\"Name: \" + getName());\r\n System.out.println(\"Student Id: \" + getId());\r\n ...
[ "0.7364118", "0.7241678", "0.7011796", "0.6922891", "0.6770412", "0.67689556", "0.6708533", "0.6664326", "0.6527069", "0.6524789", "0.64536875", "0.64184266", "0.6389466", "0.63528204", "0.6347148", "0.6336457", "0.6278884", "0.6257689", "0.6256723", "0.62299067", "0.6184821"...
0.0
-1
/ AnchorPane root = (AnchorPane)FXMLLoader.load(getClass().getResource("View/Login.fxml")); primaryStage.setTitle("TypePlat"); Scene scene = new Scene(root); primaryStage.setScene(scene); primaryStage.show();
@Override public void start(Stage primaryStage) throws Exception { listePane.add((AnchorPane) FXMLLoader.load(getClass().getResource("../View/Login.fxml"))); ps = primaryStage; primaryStage.initStyle(StageStyle.TRANSPARENT); root = (AnchorPane) FXMLLoader.load(getClass().getResource("../View/Blank.fxml")); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void start(Stage primaryStage) throws Exception{\n Parent root = FXMLLoader.load(getClass().getResource(\"DispatcherLogin/DispatcherLoginView.fxml\"));\n primaryStage.setTitle(\"DISPATCHER LOGIN :P\"); // titel\n primaryStage.setScene(new Scene(root));\n primaryS...
[ "0.87961483", "0.87890565", "0.84725803", "0.843746", "0.82381064", "0.82006294", "0.8168273", "0.8063182", "0.8060782", "0.80395764", "0.7997354", "0.79878575", "0.7968248", "0.79588217", "0.79420626", "0.7924459", "0.7905686", "0.7862004", "0.7825411", "0.78232193", "0.7775...
0.7534464
34
path => D:\a\b => 2 path => D:\a\b\hello.java => 3 window : \ Linux : /
private static int getFileDepth(String path) { int depth = 0; for (char c : path.toCharArray()) { if (c == File.separatorChar) { depth += 1; } } return depth; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String getEclipsePathFromWindowsPath(String path) {\n StringBuilder sbPath = new StringBuilder();\n char [] chars = path.toCharArray();\n for (int i = 0; i < chars.length; i++) {\n char c = chars[i];\n if (c == '\\\\') {\n sbPath.append('/');\n } else {\n sbPath.append...
[ "0.5963184", "0.58345485", "0.5828487", "0.5800612", "0.5730303", "0.57085264", "0.5684774", "0.5670739", "0.5670739", "0.5664201", "0.5632151", "0.56218565", "0.5605027", "0.5545206", "0.54540527", "0.54415244", "0.5430195", "0.54193825", "0.54026926", "0.53800637", "0.53242...
0.5966009
0
Constructs the input object identifier using the provided value
public SplitBackwardInputLayerDataId(int value) { _value = value; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "IdentifierType createIdentifierType();", "public Builder setIdentifier(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n identifier_ = value;\n onChanged();\n return this;\n }", "private void ...
[ "0.6154103", "0.6108827", "0.6058979", "0.6058979", "0.6058979", "0.6058979", "0.6058979", "0.6058979", "0.6028859", "0.5956863", "0.59353125", "0.5920191", "0.59010655", "0.5802367", "0.58019966", "0.5788258", "0.57569975", "0.5751595", "0.5732612", "0.57048184", "0.56295985...
0.0
-1
Returns the value corresponding to the input object identifier
public int getValue() { return _value; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Object getValueFrom();", "String getValueId();", "Object getValue();", "Object getValue();", "Object getValue();", "Object getValue();", "Object getValue();", "Object getValue();", "Object getValue();", "IntegerValue getValueObject();", "public Object getValue();", "public Object getValue();"...
[ "0.7167683", "0.70576674", "0.6679742", "0.6679742", "0.6679742", "0.6679742", "0.6679742", "0.6679742", "0.6679742", "0.65298176", "0.6353725", "0.6353725", "0.6353725", "0.6353725", "0.6353725", "0.622545", "0.622545", "0.622545", "0.622545", "0.622545", "0.622545", "0.62...
0.0
-1
Returns a new instance of this fragment for the given section number.
public static EndGameTabFragment newInstance(int sectionNumber) { EndGameTabFragment fragment = new EndGameTabFragment(); Bundle args = new Bundle(); args.putInt(ARG_SECTION_NUMBER, sectionNumber); fragment.setArguments(args); return fragment; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static MainFragment newInstance(int sectionNumber) {\n MainFragment fragment = new MainFragment();\n Bundle args = new Bundle();\n args.putInt(ARG_SECTION_NUMBER, sectionNumber);\n fragment.setArguments(args);\n return fragment;\n }", "public s...
[ "0.7838732", "0.771708", "0.77108735", "0.76977235", "0.76848483", "0.7611597", "0.75968856", "0.75697947", "0.75697947", "0.75697947", "0.75697947", "0.75697947", "0.75697947", "0.75697947", "0.75697947", "0.75697947", "0.75697947", "0.75697947", "0.75697947", "0.75697947", ...
0.69004536
67
When the view is created, assign all widgets and listeners. Pass the view v to set up the spinners in a fragment Source:
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View view = inflater.inflate(R.layout.fragment_end_game_tab, container, false); setupWidgets(); setupTextFields(view); setupSpinners(view); // Inflate the layout fo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public View setupSpinners(View v){\n // Assign Spinners\n spinnerCollect = (Spinner) v.findViewById(R.id.eSpinner_CollectWhat);\n\n // Create an ArrayAdapter using the string array and a default spinner layout\n ArrayAdapter<CharSequence> adapter = ArrayAdapter.createFromResource(this.g...
[ "0.7258033", "0.7113446", "0.7110147", "0.7061933", "0.70589244", "0.696234", "0.6941513", "0.69050634", "0.68705994", "0.6846464", "0.6784766", "0.67831117", "0.67818475", "0.67802566", "0.67449623", "0.67278785", "0.6710552", "0.66878814", "0.66681546", "0.6662065", "0.6647...
0.0
-1
This interface must be implemented by activities that contain this fragment to allow an interaction in this fragment to be communicated to the activity and potentially other fragments contained in that activity. See the Android Training lesson Communicating with Other Fragments for more information.
public interface OnFragmentInteractionListener { // TODO: Update argument type and name public void onFragmentInteraction(Uri uri); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface OnFragmentInteractionListener {\n void onFragmentMessage(String TAG, Object data);\n}", "public interface FragmentInteraction {\n void switchToBoardView();\n void switchToPinsView();\n void switchToPins(PDKBoard pdkBoard);\n void switchToDescription(PDKPin pin);\n}", "public int...
[ "0.73242587", "0.7207157", "0.7134114", "0.7123764", "0.7121726", "0.7014918", "0.6975962", "0.6975962", "0.6975962", "0.6973587", "0.6967293", "0.6965417", "0.696113", "0.6953493", "0.69438833", "0.69327354", "0.6929035", "0.69262755", "0.6922307", "0.69098157", "0.69022554"...
0.0
-1
TODO: Update argument type and name
public void onFragmentInteraction(Uri uri);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n public String getFirstArg() {\n return name;\r\n }", "@Override\n public int getNumberArguments() {\n return 1;\n }", "java.lang.String getArg();", "@Override\n public int getArgLength() {\n return 4;\n }", "Argument createArgument();", "@Override\r\n\tpublic ...
[ "0.71620077", "0.69440025", "0.6711487", "0.6510869", "0.6395964", "0.637318", "0.6347982", "0.63172585", "0.626037", "0.6206126", "0.6206126", "0.6204428", "0.6196331", "0.61786395", "0.617723", "0.61509335", "0.614605", "0.61263025", "0.6074019", "0.6056265", "0.59894925", ...
0.0
-1
Assign all id's to the appropriate variables.
public void setupWidgets(){ // Checkboxes CheckBox checkBonus = (CheckBox) getActivity().findViewById(R.id.eCheck_StackYellow); CheckBox checkYellowTop = (CheckBox) getActivity().findViewById(R.id.eCheck_StackTop); CheckBox checkYellowBottom = (CheckBox) getActivity().findViewById(R.id.e...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\r\n\tpublic void testSetId() {\r\n\t\tbreaku1.setId(5);\r\n\t\texternu1.setId(6);\r\n\t\tmeetingu1.setId(7);\r\n\t\tteachu1.setId(8);\r\n\r\n\t\tassertEquals(5, breaku1.getId());\r\n\t\tassertEquals(6, externu1.getId());\r\n\t\tassertEquals(7, meetingu1.getId());\r\n\t\tassertEquals(8, teachu1.getId());\r\n\...
[ "0.65311146", "0.63367474", "0.6065382", "0.59793663", "0.59727377", "0.5851738", "0.58426225", "0.5815096", "0.58066934", "0.57766634", "0.5771195", "0.57548267", "0.5733269", "0.57300746", "0.5728672", "0.5713681", "0.5705859", "0.5705018", "0.56890297", "0.5685713", "0.565...
0.0
-1
Assign all id's and listeners to the appropriate EditText fields.
public void setupTextFields(View v) { other = (EditText) v.findViewById(R.id.eText_Notes); totalTotes = (EditText) v.findViewById(R.id.eText_NumStacked); other.addTextChangedListener(new TextWatcher() { @Override public void beforeTextChanged(CharSequence s, int start, i...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void editableEditTexts() {\n\t\tEditText etTitle = (EditText) findViewById(R.id.etRecipeTitle);\n\t\tEditText etDescription = (EditText) findViewById(R.id.etRecipeDescription);\n\t\tEditText etDirections = (EditText) findViewById(R.id.etDirectionsList);\n\n\t\tetTitle.setKeyListener(titleListener);\n\t\tet...
[ "0.74111295", "0.7213857", "0.67097723", "0.66027904", "0.64898425", "0.6469464", "0.64245033", "0.64192915", "0.633009", "0.6327592", "0.63231546", "0.6320792", "0.6302187", "0.629397", "0.61935306", "0.61672044", "0.61140156", "0.60681933", "0.60452676", "0.6037553", "0.601...
0.6933416
2
Assign all spinners to their respective id from the layout. Also assign the ArrayAdapters to the appropriate spinners.
public View setupSpinners(View v){ // Assign Spinners spinnerCollect = (Spinner) v.findViewById(R.id.eSpinner_CollectWhat); // Create an ArrayAdapter using the string array and a default spinner layout ArrayAdapter<CharSequence> adapter = ArrayAdapter.createFromResource(this.getActivity...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setUpSpinners(){\n spinners = new Spinner[spinnerId.length];\n for(int i = 0; i < spinners.length; i++){\n spinners[i] = (Spinner) findViewById(spinnerId[i]);\n ArrayAdapter<CharSequence> adapter = ArrayAdapter.createFromResource(this,\n R.array.i...
[ "0.7730713", "0.74189585", "0.7038264", "0.69408125", "0.6762367", "0.6666909", "0.6625606", "0.6566676", "0.6361816", "0.6352748", "0.6351269", "0.63430226", "0.62782955", "0.62694705", "0.6225629", "0.62217057", "0.6156655", "0.6097938", "0.6087185", "0.60487723", "0.596740...
0.5894427
23
Event handler for all checkbox events located in the End Game tab. Check boxes checked = 1; Unchecked boxes = 0 Source:
public void onCheckboxClicked(View view, ScoutFormData sfd) { // Is the view now checked? boolean checked = ((CheckBox) view).isChecked(); // Check which checkbox was clicked switch(view.getId()) { case R.id.eCheck_StackYellow: if (checked) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void itemStateChanged(ItemEvent check) {\r\n\r\n // Process the reaction class checkboxes. First\r\n // get the components of the relevant panels\r\n // and store in Component arrays (Note: the method\r\n // getComponents() is inherited from the Container\r\n // class by ...
[ "0.67802715", "0.64347744", "0.63776755", "0.6311698", "0.6301422", "0.62122536", "0.62050354", "0.6158954", "0.6039581", "0.5982928", "0.59455377", "0.587044", "0.58432925", "0.58392256", "0.57746094", "0.5761375", "0.57549375", "0.5750646", "0.5741406", "0.5729421", "0.5726...
0.58142334
14
add assertion to the length of the user name at xamarin!!
public static int register(String username, String password, int avatarNum){ try { Statement st = conn.createStatement(); ResultSet largestId = st.executeQuery("select max(userid) from users"); largestId.next(); int thisId = Integer.parseInt(largestId.getString(1...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void validationUsername( String name ) throws Exception {\n\t\t\t if ( name != null && name.trim().length() < 3 ) {\n\t\t\t throw new Exception( \"Le nom d'utilisateur doit contenir au moins 3 caractères.\" );\n\t\t\t }\n\t\t\t}", "public void setUsername(java.lang.CharSequence value) {\n ...
[ "0.68479496", "0.65809244", "0.6534231", "0.6424646", "0.64090526", "0.63784945", "0.6355014", "0.635222", "0.63430417", "0.6342142", "0.62634194", "0.62438244", "0.6222002", "0.6214149", "0.6214149", "0.6214149", "0.6181546", "0.6174184", "0.61534345", "0.6143181", "0.613608...
0.0
-1
TODO duplicates not handled
public static int friendRequest(int senderid, int friendid){ try { Statement st = conn.createStatement(); String sqlString = String.format("UPDATE users SET friendreq = friendreq || '{%d}' WHERE userid = %d", senderid, friendid); int rowAffected = st.executeUpdate(sqlString);...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static void findDuplicate()\n\t{\n\n\t\tList<String> oList = null;\n\t\tSet<String> oSet = null;\n\t\ttry {\n\t\t\toList = new ArrayList<String>();\n\t\t\toList.add(\"Apple\");\n\t\t\toList.add(\"Boy\");\n\t\t\toList.add(\"Frog\");\n\t\t\toList.add(\"Dog\");\n\t\t\toList.add(\"Eagle\");\n\t\t\toList.add(\"Frog\");...
[ "0.60114664", "0.57431746", "0.56449807", "0.55998313", "0.5587534", "0.55460954", "0.55074614", "0.5464166", "0.54353034", "0.54114395", "0.53600955", "0.534453", "0.5287509", "0.5287321", "0.5274732", "0.52571183", "0.52565444", "0.52393967", "0.5236257", "0.5232509", "0.52...
0.0
-1
TODO duplicates not handled
@Deprecated public static Long[] getFriendRequestList1(int id){ try { Statement st = conn.createStatement(); ResultSet userDetail = st.executeQuery("select * from users where userid = " + id); if(userDetail.next()){ Array firendReqListArray = userDetail.ge...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static void findDuplicate()\n\t{\n\n\t\tList<String> oList = null;\n\t\tSet<String> oSet = null;\n\t\ttry {\n\t\t\toList = new ArrayList<String>();\n\t\t\toList.add(\"Apple\");\n\t\t\toList.add(\"Boy\");\n\t\t\toList.add(\"Frog\");\n\t\t\toList.add(\"Dog\");\n\t\t\toList.add(\"Eagle\");\n\t\t\toList.add(\"Frog\");...
[ "0.60114664", "0.57431746", "0.56449807", "0.55998313", "0.5587534", "0.55460954", "0.55074614", "0.5464166", "0.54353034", "0.54114395", "0.53600955", "0.534453", "0.5287509", "0.5287321", "0.5274732", "0.52571183", "0.52565444", "0.52393967", "0.5236257", "0.5232509", "0.52...
0.0
-1
TODO working on it
public static int deleteFriendRequest(int myid, int requestid){ try { Statement st = conn.createStatement(); String sqlString = String.format("UPDATE users SET friendreq = array_remove(friendreq, '%d') WHERE userid=%d;", requestid, myid); st.execute(sqlString); st...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\n\tprotected void interr() {...
[ "0.56442004", "0.5567495", "0.5546923", "0.5523479", "0.5502171", "0.546509", "0.54558957", "0.54297566", "0.541737", "0.53996485", "0.5358301", "0.53529567", "0.5322165", "0.5288107", "0.5288107", "0.52779657", "0.52732706", "0.5251013", "0.5244994", "0.520692", "0.51990664"...
0.0
-1
get task info in new IndvInvite
public static String getNewInvite(int userId){ try { Statement st = conn.createStatement(); String getNewInvite = "select newtaskinvite from users where userid = " + userId; ResultSet newIndvInviteResult = st.executeQuery(getNewInvite); if(newIndvInviteResult.next...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "List<Task> getTaskdetails();", "public Task gatherTaskInfo() {\n \t\n \tString title;\n \t\n \tEditText getTitle = (EditText)findViewById(R.id.titleTextBox);\n \t//EditText itemNum = (EditText)findViewById(R.id.showCurrentItemNum);\n \t \t\n \t//gathering the task information\n \ttitle = ...
[ "0.6837046", "0.65906835", "0.6359873", "0.63137347", "0.6307033", "0.6259327", "0.6162684", "0.6162684", "0.59930074", "0.59705055", "0.595553", "0.5952735", "0.5946492", "0.5935428", "0.59337026", "0.5927943", "0.5874035", "0.5866605", "0.5864612", "0.58532774", "0.5853251"...
0.56424737
41
add progress update, when a task owner does something, return update number of this task
public static int addProgressUpdate(int taskid, String image, int myId){ try { Statement st = conn.createStatement(); int updateNum; //select supervisors for this task String getSupervisors = "select member from grouptask where taskid = " + taskid; Res...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Long getProgressTotalToDo();", "public int getProgress();", "public Long getProgressDone();", "public void onProgressUpdate(int numRouleau,String prochain);", "int getProgress(int index);", "int getProgress(int index);", "int getProgress(int index);", "public void progressMade();", "private ...
[ "0.7056212", "0.6892035", "0.67945886", "0.67724466", "0.66650003", "0.66650003", "0.66650003", "0.66494983", "0.65871996", "0.6559836", "0.653933", "0.653933", "0.653933", "0.6539064", "0.6454606", "0.64507484", "0.6448521", "0.64085364", "0.63630897", "0.63204205", "0.63175...
0.68382186
2
push task update to supervisors
public static String supvUpdate(int supvid) { //taskid and update number int failureid = -1; try { Statement st = conn.createStatement(); //select update numbers for tasks that this supervisor supervises String getUpdate = "select otherstaskupdate from users where use...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void updateTask() {}", "boolean updateActiveTask(Task task);", "boolean updateTask(Task updatedTask);", "void refreshTaskInformation();", "public void updateTask(int tid,String title,String detail,int money,String type,int total_num,int current_num,Timestamp start_time,Timestamp end_time,String stat...
[ "0.74720377", "0.63416535", "0.6335162", "0.6305148", "0.61655", "0.61461747", "0.61138874", "0.6101877", "0.60840976", "0.60628945", "0.60186934", "0.6008036", "0.59972245", "0.5976257", "0.5950469", "0.5905499", "0.58980906", "0.5889272", "0.58704096", "0.58703464", "0.5859...
0.0
-1
when a supervisor check a task, myid is supervisor id
public static int supvCheck(int myId, int taskid, int updatenum){ try { Statement st = conn.createStatement(); //add checkerid in indvprogressupdate for this updatenum String addChecker = "UPDATE progressupdate SET checkerid = %d WHERE updatenum = " + updatenum ; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void checkTask(String task){\r\n\t\t\r\n\t}", "protected void checkMyTask(GWCTask task) {\n \tcheckArgument(task.getJob()==this, \"Task %s does not belong to Job %s\", task.getTaskId(), this.getId());\n }", "public Task getTask(Integer tid);", "@Override\n\t\t\tpublic void subTask(String name) {...
[ "0.62400794", "0.60860324", "0.6037184", "0.6017282", "0.60105836", "0.59678006", "0.5932362", "0.5916747", "0.5849862", "0.5806753", "0.5746514", "0.57459897", "0.5723548", "0.56819403", "0.56674993", "0.5649417", "0.5636871", "0.56218463", "0.5612923", "0.5576012", "0.55699...
0.5583983
19
when task owner get the indvupdate //error: always empty
public static String checkedNotification(int myId) { try { Statement st = conn.createStatement(); //find list of update number in user String getUpdate = "select mytaskupdate from users where userid = " + myId; ResultSet updateResult = st.executeQuery(getUpdate); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void updateTask() {}", "@EventListener(condition = \"!#event.domainObject.new\")\n\tpublic void onApplicationEventLookForUpdate(DomainObjectStoreEvent<Task> event) {\n\t\tEditeTask editeTask = new EditeTask();\n\t\tediteTask.setId(UUID.randomUUID().toString());\n\t\tTask task = event.getDomainObject();\n\...
[ "0.66035074", "0.64488405", "0.6437285", "0.6306354", "0.62352616", "0.60822946", "0.6070309", "0.5992209", "0.5974327", "0.5914633", "0.591153", "0.58803296", "0.5856439", "0.5852933", "0.5844816", "0.5821753", "0.5818624", "0.58098227", "0.5802817", "0.5758577", "0.57500017...
0.0
-1
check any deadline has passed
public static int checkDeadline(int userid) { try { Statement st = conn.createStatement(); //get all tasks of the user String getTasksCommand = "SELECT mytask FROM users WHERE userid = " + userid; ResultSet taskIdResult = st.executeQuery(getTasksCommand); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void deadlineLeasing() {\n log.info(\"OrdersBean : deadlineLeasing\");\n List<OrdersEntity> ordersEntitiesDeadline = ordersServices.findAllOrdersByIdUserAndStatusIsValidate(usersBean.getUsersEntity().getId());\n if (!ordersEntitiesDeadline.isEmpty()) {\n contractsBean.find...
[ "0.6862361", "0.664821", "0.6565715", "0.64961874", "0.6488787", "0.6453761", "0.6445101", "0.6445101", "0.6372743", "0.63195246", "0.63076293", "0.6285294", "0.62498146", "0.6185715", "0.6178322", "0.61760855", "0.6176001", "0.61709726", "0.6139399", "0.6134565", "0.6107912"...
0.0
-1
helper method of checkDeadline
private static int meetRecentDeadline(LocalDate startdate, LocalDate deadlineDate, String repetition){ LocalDate today = LocalDate.now(); if(deadlineDate.isEqual(today)){ return MEET_FINAL_DEADLINE; } switch (repetition){ case "{Daily}": if(today...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "long getDeadline();", "private boolean isDeadline(TaskDate taskEndDate) {\n return taskEndDate != null;\n }", "public boolean hasDeadline() {\n return hasDeadline;\n }", "private boolean checkDeadline(String d)\n\t{\n\t\t//yyyy/mm/dd\n\t\treturn Pattern.matches(\"[0-9][0-9][0-9][0-9]/[0-1...
[ "0.79156643", "0.71527123", "0.7149217", "0.69799", "0.69204617", "0.6895906", "0.679417", "0.6783241", "0.67691964", "0.67253804", "0.65768474", "0.6574623", "0.64031655", "0.6393123", "0.63919604", "0.63918096", "0.63445807", "0.63226426", "0.629468", "0.6292084", "0.623579...
0.6170224
27
Called when the activity is first created.
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); requestWindowFeature(Window.FEATURE_NO_TITLE); setContentView(R.layout.main); listAccount = (ExpandableListView) findViewById(R.id.listAccount); // 准备一级列表中显示的数据 accountFather.add("金融帐户"); accountFather.ad...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t\tinit();\n\t}", "@Override\r\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\r\n\t}", "@Override\n\tpublic void onActivit...
[ "0.7916766", "0.7726476", "0.76927304", "0.76927304", "0.76927304", "0.76927304", "0.76927304", "0.76927304", "0.7636728", "0.7636728", "0.76301825", "0.76183873", "0.76183873", "0.75434864", "0.7539488", "0.7539488", "0.75388074", "0.75266844", "0.7515058", "0.7509776", "0.7...
0.0
-1
Setup 1. Create instance of NaiveBayeClassifier 2. Inject the mock TweetClassificationDAO 3. Call setUpNaiveBayeClassifier
@Override protected void setUp() throws Exception { super.setUp(); naiveBayeClassifier = new NaiveBayeClassifierImpl(); tweetClassificationDAO = new MockTweetClassificationDAO(); setupTweetClassificationDAO((MockTweetClassificationDAO)tweetClassificationDAO); naiveBayeClassifier.setTweetClassificationDAO(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test(timeout = 4000)\n public void test30() throws Throwable {\n NaiveBayesMultinomialText naiveBayesMultinomialText0 = new NaiveBayesMultinomialText();\n PrincipalComponents principalComponents0 = new PrincipalComponents();\n Capabilities capabilities0 = principalComponents0.getCapabilities();\...
[ "0.6101023", "0.60444796", "0.5991821", "0.59421563", "0.5922252", "0.59172106", "0.5892437", "0.5885706", "0.58843195", "0.5871744", "0.5855911", "0.5855526", "0.5848501", "0.5846807", "0.5845828", "0.5839951", "0.58364487", "0.5833437", "0.58307284", "0.5823732", "0.582237"...
0.8493361
0
Pass in a spam tweet and test that the category for it come out to be spam
public void testSpamCategory(){ TweetStatus tweetStatus = new TweetStatus(); String tweet = "Call us to get the best deal on vacation to rome"; tweetStatus.setTweetText(tweet); TweetCategoryType tweetCategoryType = naiveBayeClassifier.classify(tweetStatus); Assert.assertEquals(TweetCategoryType.SPAM, t...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void testNotSpamCategory(){\n\t\t\n\t\tTweetStatus tweetStatus = new TweetStatus();\n\t\tString tweet = \"Really having a fun vacation in miami\";\n\t\ttweetStatus.setTweetText(tweet);\n\t\tTweetCategoryType tweetCategoryType = naiveBayeClassifier.classify(tweetStatus);\n\t\t\n\t\tAssert.assertEquals(Tweet...
[ "0.72402847", "0.54489255", "0.5350532", "0.5332211", "0.5294766", "0.5228404", "0.5178727", "0.517827", "0.51715755", "0.5120293", "0.51116824", "0.5102579", "0.5024302", "0.49893695", "0.498426", "0.49626288", "0.4951273", "0.4951217", "0.4934699", "0.49055603", "0.48699334...
0.76786363
0
Pass in a tweet that is not a spam and test that the category for it come out to be notspam
public void testNotSpamCategory(){ TweetStatus tweetStatus = new TweetStatus(); String tweet = "Really having a fun vacation in miami"; tweetStatus.setTweetText(tweet); TweetCategoryType tweetCategoryType = naiveBayeClassifier.classify(tweetStatus); Assert.assertEquals(TweetCategoryType.NOTSPAM, tweetC...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void testSpamCategory(){\n\t\t\n\t\tTweetStatus tweetStatus = new TweetStatus();\n\t\tString tweet = \"Call us to get the best deal on vacation to rome\";\n\t\ttweetStatus.setTweetText(tweet);\n\t\tTweetCategoryType tweetCategoryType = naiveBayeClassifier.classify(tweetStatus);\n\t\t\n\t\tAssert.assertEqua...
[ "0.7483347", "0.5966974", "0.5550371", "0.550401", "0.5430357", "0.5359727", "0.532741", "0.5271016", "0.5212725", "0.51556236", "0.51428795", "0.50577784", "0.5015619", "0.5011591", "0.49604738", "0.49277878", "0.49014115", "0.48928306", "0.4878765", "0.48762834", "0.4857745...
0.76320976
0
Sets the minimal contrast considered to be readable, default is 1&46;5.
public void setMinReadableContrast(double minReadableContrast) { _minReadableContrast = minReadableContrast; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setMethod( ContrastMethod method );", "private void setLowSensitivity() {\n\t\tbuttonLowOn.setVisibility(View.VISIBLE);\n\t\tbuttonMedOn.setVisibility(View.INVISIBLE);\n\t\tbuttonHighOn.setVisibility(View.INVISIBLE);\n\t\t\n\t\tLUT[0] = 2;\n\t\tLUT[1] = (float)6;\n\t\tLUT[2] = (float)10;\n\t\tLUT[3] ...
[ "0.59014416", "0.5583376", "0.54684615", "0.54657805", "0.53622055", "0.53453714", "0.5251359", "0.51986974", "0.50775415", "0.50704205", "0.5047973", "0.5038472", "0.50079703", "0.4998091", "0.4980593", "0.49685907", "0.49430782", "0.49414733", "0.49224973", "0.48786962", "0...
0.7395692
0
Simplest way is by using a helper
Object writeReplace() { return NodeSerialization.from(this); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Helper getHelper() {\r\n return this.helper;\r\n }", "private Helper() {\r\n // empty\r\n }", "private void someUtilityMethod() {\n }", "private void someUtilityMethod() {\n }", "private HelperLocation() {}", "java.lang.String getHowToUse();", "java.lang.Stri...
[ "0.564679", "0.5518978", "0.53986055", "0.53986055", "0.5208945", "0.5136622", "0.5136622", "0.51252335", "0.50834996", "0.50728655", "0.50629103", "0.50614667", "0.50291646", "0.50218415", "0.50064456", "0.4999785", "0.49976873", "0.49884528", "0.4975991", "0.49467304", "0.4...
0.0
-1
/ / Defaulting for introspection
@Override public boolean isMissingNode() { return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface ospector\n{\n\n public abstract void addAbstractTypeResolver(AbstractTypeResolver abstracttyperesolver);\n\n public abstract void addBeanDeserializerModifier(BeanDeserializerModifier beandeserializermodifier);\n\n public abstract void addBeanSerializerModifier(BeanSerializerModifier beans...
[ "0.58311266", "0.56669533", "0.56084746", "0.5515062", "0.5415716", "0.53739923", "0.533759", "0.5286645", "0.528602", "0.52524316", "0.5247283", "0.5230317", "0.5230317", "0.5229869", "0.5222315", "0.5208093", "0.52029103", "0.519901", "0.519901", "0.51915604", "0.5189913", ...
0.0
-1
/ / Basic definitions for noncontainer types
@Override public final JsonNode findPath(String fieldName) { JsonNode value = findValue(fieldName); if (value == null) { return MissingNode.getInstance(); } return value; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract public Type type();", "private CollectionType() {}", "public interface StandardTypesLocalService {\n BigInteger getNewBigInteger(BigInteger bi);\n BigInteger[] getNewBigIntegerArray(BigInteger[] bia);\n \n BigDecimal getNewBigDecimal(BigDecimal bd);\n BigDecimal[] getNewBigDecimalArray(...
[ "0.63719016", "0.6367339", "0.6329752", "0.60957533", "0.6078194", "0.6066299", "0.6034458", "0.6032809", "0.6014127", "0.59544486", "0.5915287", "0.59045815", "0.5898603", "0.58960223", "0.5876452", "0.586809", "0.5860745", "0.58482015", "0.58180237", "0.58110917", "0.580565...
0.0
-1
/ / Improved requiredness checks for standard JsonNode implementations
@Override public JsonNode required(String fieldName) { return _reportRequiredViolation("Node of type %s has no fields", ClassUtil.nameOf(getClass())); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void validateJson();", "protected MatchStrength hasJSONFormat(InputAccessor acc)\n/* */ throws IOException\n/* */ {\n/* 507 */ return ByteSourceJsonBootstrapper.hasJSONFormat(acc);\n/* */ }", "default boolean checkJsonResp(JsonElement response) {\n return false;\n }", "protect...
[ "0.6484642", "0.60932845", "0.6013013", "0.59236306", "0.58164984", "0.5813122", "0.57989854", "0.5750813", "0.5702792", "0.5666276", "0.56357455", "0.558442", "0.55794406", "0.5545757", "0.54793066", "0.54417443", "0.54386616", "0.54340386", "0.5431082", "0.5428507", "0.5412...
0.60739
2
/ / Support for traversalasstream
@Override public JsonParser traverse(ObjectReadContext readCtxt) { return new TreeTraversingParser(this, readCtxt); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected String traverseStream(InputStream stream){\n\n\t\tScanner input = new Scanner(stream);\n\t\tString res = \"\";\n\n\t\twhile(input.hasNext()){\n\t\t\tres += input.next() + \" \";\n\t\t}\n\n\t\treturn res;\n\t}", "protected abstract List<List<SearchResults>> processStream();", "public interface Stream ...
[ "0.6154569", "0.5870997", "0.56327605", "0.56217605", "0.54957414", "0.533468", "0.5306069", "0.5265398", "0.5198504", "0.51968056", "0.51733905", "0.5078643", "0.50410867", "0.5009983", "0.4996359", "0.49844068", "0.49656674", "0.49573246", "0.4954139", "0.48921484", "0.4891...
0.0
-1
Returns code that identifies type of underlying numeric value, if (and only if) node is a number node.
@Override public JsonParser.NumberType numberType() { // most types non-numeric, so: return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public abstract JsonParser.NumberType numberType();", "public Number getNumberValue();", "public abstract Number getPrimitiveType();", "public abstract boolean isNumeric();", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "int getTypeValue...
[ "0.67699564", "0.6329334", "0.6301648", "0.6204095", "0.5993355", "0.5993355", "0.5993355", "0.5993355", "0.5993355", "0.5993355", "0.5993355", "0.5993355", "0.5993355", "0.5993355", "0.5993355", "0.5993355", "0.5993355", "0.5991221", "0.59807885", "0.597338", "0.59227383", ...
0.66526806
1
Threepart logic: 1) If we are at the end of JSON Pointer; if so, return `this` if Object node, `null` if not (for caller to handle) 2) If not at the end, if we can follow next segment, call recursively handle nonnull (existing Object node, return) vs `null` (must replace; may not be allowed to) 3) Can not follow the se...
protected ObjectNode _withObject(JsonPointer origPtr, JsonPointer currentPtr, OverwriteMode overwriteMode, boolean preferIndex) { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface JsonPath {\n\n JsonPath parent();\n\n Optional<JsonObject> getJsonObject(JsonObject jsonObject);\n\n Optional<JsonArray> getJsonArray(JsonObject jsonObject);\n\n static JsonPath root() {\n return new JsonPathImpl(ImmutableList.of());\n }\n\n boolean isRoot();\n\n JsonPa...
[ "0.5908995", "0.5316464", "0.51628315", "0.50787586", "0.4944887", "0.49430212", "0.48828438", "0.48706037", "0.48594216", "0.48391905", "0.4836923", "0.48066473", "0.47714004", "0.4713687", "0.47041184", "0.46492296", "0.46276414", "0.4620729", "0.46201873", "0.45899272", "0...
0.50703424
4
Degenerate case of using with "empty" path; ok if ObjectNode
@Override public ArrayNode withArray(JsonPointer ptr, OverwriteMode overwriteMode, boolean preferIndex) { if (ptr.matches()) { if (this instanceof ArrayNode) { return (ArrayNode) this; } _reportWrongNodeType("Can only call `withArray()` wit...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public T casePathLiteral(PathLiteral object)\n {\n return null;\n }", "default Empty getEmptyObject() {\n return null;\n }", "public ObjectNode resolvePaths();", "private static boolean empty(Object object) {\n\t\treturn false;\n\t}", "public T caseFromClassOrOuterQueryPath(FromClassOrOuterQ...
[ "0.6478406", "0.60627204", "0.6040414", "0.59772", "0.58936", "0.5740941", "0.5693909", "0.56832784", "0.56765443", "0.56354547", "0.55835015", "0.5574747", "0.5561825", "0.55591387", "0.55580527", "0.55414355", "0.553356", "0.5525713", "0.54929155", "0.5473387", "0.54647267"...
0.0
-1
Similar logic to "_withObject()" but the default implementation used for noncontainer behavior so it'll simply return `null`
protected ArrayNode _withArray(JsonPointer origPtr, JsonPointer currentPtr, OverwriteMode overwriteMode, boolean preferIndex) { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public T caseContainer(Container object) {\n\t\treturn null;\n\t}", "@Override\n public Object getObject()\n {\n return null;\n }", "public T caseGraphicalContainer(GraphicalContainer object) {\n\t\treturn null;\n\t}", "public T caseNotExists(NotExists object) {\n\t\treturn null;\n\t}", "pu...
[ "0.6561908", "0.63076836", "0.629413", "0.62147135", "0.6041468", "0.5995894", "0.59780717", "0.59335226", "0.593179", "0.58973294", "0.58672297", "0.58557504", "0.5853042", "0.5834305", "0.58342224", "0.5825293", "0.5819409", "0.5771858", "0.57700044", "0.5738513", "0.572247...
0.0
-1
/ / JacksonSerializable Method called to serialize node instances using given generator.
@Override public abstract void serialize(JsonGenerator jgen, SerializerProvider ctxt) throws JacksonException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void serialize(JsonGenerator generator, JsonpMapper mapper) {\n\t\tgenerator.writeStartObject();\n\t\tserializeInternal(generator, mapper);\n\t\tgenerator.writeEnd();\n\t}", "public void serialize(JsonGenerator generator, JsonpMapper mapper) {\n\t\tgenerator.writeStartObject();\n\t\tserializeInternal(gene...
[ "0.6735", "0.6735", "0.6735", "0.6735", "0.6735", "0.6735", "0.6735", "0.6735", "0.6735", "0.60967696", "0.6057702", "0.5835663", "0.581744", "0.5763962", "0.5720304", "0.56443584", "0.5557583", "0.5530106", "0.5507967", "0.55062956", "0.5498883", "0.549824", "0.5488192",...
0.6649352
9
Type information is needed, even if JsonNode instances are "plain" JSON, since they may be mixed with other types.
@Override public abstract void serializeWithType(JsonGenerator jgen, SerializerProvider ctxt, TypeSerializer typeSer) throws JacksonException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean supportsJsonType() {\n return false;\n }", "private static JsonNode json2Node(String json) {\n try {\n return mapper.readTree(json);\n } catch (IOException e) {\n throw new IllegalStateException(\"Error mapping JSON: \" + json, e);\n }\n }", ...
[ "0.61766267", "0.60344225", "0.60070956", "0.58170563", "0.5641687", "0.5629063", "0.5559229", "0.55525833", "0.5538051", "0.5532872", "0.5515736", "0.54861426", "0.5442761", "0.5408991", "0.53894407", "0.5376166", "0.5363977", "0.5331531", "0.5325475", "0.52927047", "0.52677...
0.4755876
88
/ / Standard method overrides
@Override public String toString() { return InternalNodeSerializer.toString(this); }
{ "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\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n public void function()\...
[ "0.70168966", "0.6896299", "0.687582", "0.686345", "0.6817893", "0.6791928", "0.6791928", "0.6725012", "0.66094077", "0.66039443", "0.66039443", "0.6592081", "0.6579161", "0.65735036", "0.65640354", "0.65086067", "0.65027606", "0.6458029", "0.64570034", "0.6424262", "0.637241...
0.0
-1
String message = "Hello Spring Boot + JSP"; model.addAttribute("message", message);
@GetMapping({"/", "/index"}) public String index(Model model) { List<ProductEntity> products = productService.getAllProduct(); model.addAttribute("products", products); return "index"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@GetMapping(\"/\")\n public String showIndex(Model model)\n {\n String myMessage = \"Welcome to Robo Resume!\";\n model.addAttribute(\"welcomemessage\",myMessage);\n return \"index\";\n }", "@RequestMapping(\"/processFormVersionThree\")\npublic String processFormVersionThree(@Reques...
[ "0.77862483", "0.7374049", "0.731194", "0.7215302", "0.7133029", "0.7046116", "0.69743335", "0.69603145", "0.6802084", "0.677646", "0.6765136", "0.6762342", "0.6694746", "0.66935766", "0.6664354", "0.6619585", "0.6572919", "0.6548284", "0.6391987", "0.63644207", "0.6350267", ...
0.0
-1
TODO: Warning this method won't work in the case the id fields are not set
@Override public boolean equals(Object object) { if (!(object instanceof Facture)) { return false; } Facture other = (Facture) object; if ((this.idfacture == null && other.idfacture != null) || (this.idfacture != null && !this.idfacture.equals(other.idfacture))) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setId(Integer id) { this.id = id; }", "private Integer getId() { return this.id; }", "public void setId(int id){ this.id = id; }", "public void setId(Long id) {this.id = id;}", "public void setId(Long id) {this.id = id;}", "public void setID(String idIn) {this.id = idIn;}", "public void se...
[ "0.6897641", "0.68401533", "0.6705931", "0.6642445", "0.6642445", "0.6592696", "0.65795624", "0.65795624", "0.6575739", "0.6575739", "0.6575739", "0.6575739", "0.6575739", "0.6575739", "0.65632", "0.65632", "0.65451044", "0.65254945", "0.65165323", "0.6488194", "0.6478304", ...
0.0
-1
Processes requests for both HTTP GET and POST methods.
protected void processRequest(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.setContentType("text/html;charset=UTF-8"); HttpSession session=request.getSession(true); if(session.getAttribute("loggedAs")!="buyer"){ ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void doPost(final HttpServletRequest req, final HttpServletResponse resp) throws ServletException, IOException {\n final String method = req.getParameter(METHOD);\n if (GET.equals(method)) {\n doGet(req, resp);\n } else {\n resp.setStatus(HttpServletResponse.SC_METHOD_NOT_...
[ "0.7004024", "0.66585696", "0.66031146", "0.6510023", "0.6447109", "0.64421695", "0.64405906", "0.64321136", "0.6428049", "0.6424289", "0.6424289", "0.6419742", "0.6419742", "0.6419742", "0.6418235", "0.64143145", "0.64143145", "0.6400266", "0.63939095", "0.63939095", "0.6392...
0.0
-1
Handles the HTTP GET method.
@Override protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { processRequest(request, response); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void doGet( )\n {\n \n }", "@Override\n\tprotected void executeGet(GetRequest request, OperationResponse response) {\n\t}", "@Override\n\tprotected Method getMethod() {\n\t\treturn Method.GET;\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) thro...
[ "0.7589609", "0.71665615", "0.71148175", "0.705623", "0.7030174", "0.70291144", "0.6995984", "0.697576", "0.68883485", "0.6873811", "0.6853569", "0.6843572", "0.6843572", "0.6835363", "0.6835363", "0.6835363", "0.68195957", "0.6817864", "0.6797789", "0.67810035", "0.6761234",...
0.0
-1
Handles the HTTP POST method.
@Override protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { processRequest(request, response); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void doPost(Request request, Response response) {\n\n\t}", "@Override\n protected void doPost(HttpServletRequest req, HttpServletResponse resp) {\n }", "public void doPost( )\n {\n \n }", "@Override\n public String getMethod() {\n return \"POST\";\n ...
[ "0.73289514", "0.71383566", "0.7116213", "0.7105215", "0.7100045", "0.70236707", "0.7016248", "0.6964149", "0.6889435", "0.6784954", "0.67733276", "0.67482096", "0.66677034", "0.6558593", "0.65582114", "0.6525548", "0.652552", "0.652552", "0.652552", "0.65229493", "0.6520197"...
0.0
-1
Returns a short description of the servlet.
@Override public String getServletInfo() { return "Short description"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getServletInfo()\n {\n return \"Short description\";\n }", "public String getServletInfo() {\n return \"Short description\";\n }", "public String getServletInfo() {\n return \"Short description\";\n }", "public String getServletInfo() {\n return \"Short d...
[ "0.87637174", "0.8732424", "0.8732424", "0.8732424", "0.8732424", "0.8732424", "0.8732424", "0.8732424", "0.8732424", "0.8732424", "0.8732424", "0.86993426", "0.86993426", "0.86993426", "0.86993426", "0.86993426", "0.86993426", "0.853123", "0.853123", "0.85280925", "0.8528092...
0.0
-1
no public constructor since this is a utility class
@DSComment("Private Method") @DSBan(DSCat.PRIVATE_METHOD) @DSGenerator(tool_name = "Doppelganger", tool_version = "2.0", generated_on = "2013-12-30 12:33:59.514 -0500", hash_original_method = "E49204FD271E895B10D86A1AFEA21B04", hash_generated_method = "59B3C6A592AE63BEE2BC1CC1723B36DF") private...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Util() { }", "private Utils() {}", "private Utils() {}", "private Utils() {}", "private Utils() {}", "private Util() {\n }", "private OMUtil() { }", "private Util()\n {\n // Empty default ctor, defined to override access scope.\n }", "private Utils() {\n\t}", "private Utils(...
[ "0.7818003", "0.75750947", "0.75750947", "0.75750947", "0.75750947", "0.7331765", "0.7298454", "0.72963846", "0.7279852", "0.7279852", "0.72413075", "0.72413075", "0.7240452", "0.7177998", "0.7174111", "0.71646845", "0.71638644", "0.71582115", "0.7136315", "0.7132916", "0.710...
0.0
-1