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
> pega a lista de todos os produtos cadastrados
public void deleteProduto(int cd_Produto) { pdao.deleteProduto(cd_Produto); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private List<Produto> todosProdutos() {\n\t\treturn produtoService.todosProdutos();\n\t}", "private static void listaProdutosCadastrados() throws Exception {\r\n String nomeCategoria;\r\n ArrayList<Produto> lista = arqProdutos.toList();\r\n if (!lista.isEmpty()) {\r\n System.out.p...
[ "0.7386832", "0.731522", "0.71443623", "0.6996525", "0.6947329", "0.6683581", "0.6596733", "0.6538849", "0.6487985", "0.64815724", "0.6481109", "0.6458645", "0.6391935", "0.63866836", "0.63792986", "0.6310546", "0.63095313", "0.6279475", "0.6279475", "0.6279475", "0.6263304",...
0.0
-1
> apagar produto no banco de dados
public void updateProduto(int cd_Produto, Produto produto) { pdao.updateProduto(cd_Produto, produto); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void salvarProdutos(Produto produto){\n }", "public static void apagarProduto(){\n if(ListaDProduto.size() == 0){\n SaidaDados(\"Nehum produto cadastrado!!\");\n return;\n }\n \n St...
[ "0.6929276", "0.6612078", "0.63085383", "0.61874485", "0.61294794", "0.60325336", "0.5956253", "0.59513724", "0.59378463", "0.5928694", "0.59126574", "0.5884787", "0.5861008", "0.5810623", "0.58007777", "0.5798345", "0.5733258", "0.5732033", "0.5727585", "0.57097536", "0.5696...
0.0
-1
Catch all for any exceptions
@ExceptionHandler({Exception.class}) protected ResponseEntity<Object> handleUnknownException(Exception ex, WebRequest request) { logger.error("Exception Stack",ex); ExceptionMessages emsg =new ExceptionMessages(); emsg.setExceptionMsg(ex.getMessage()); return new ResponseEntity<Object>(emsg, HttpStatus.BAD_REQUEST); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Catch[] exceptionHandlers();", "protected abstract void exceptionsCatching( ExceptionType exceptionType );", "private void doCatch() throws NotConnectedException, NotSuspendedException, NoResponseException\n\t{\n\t\twaitTilHalted();\n\n String typeToCatch = null;\n\n\t\t/* currentXXX may NOT be i...
[ "0.6957974", "0.68823016", "0.68536973", "0.6707552", "0.64430505", "0.63815975", "0.6374871", "0.60724884", "0.60714144", "0.59254354", "0.5894557", "0.58664536", "0.58313596", "0.5830627", "0.5820103", "0.5819013", "0.58117944", "0.5770419", "0.57608426", "0.5753648", "0.57...
0.0
-1
Vide la table de pianos
@Override public void clearTable() { final var query = "TRUNCATE TABLE piano_project.pianos"; try(final var statement = connection.createStatement()) { statement.executeUpdate(query); } catch (SQLException throwables) { throwables.printStackTrace(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void pintarTabla() {\r\n ArrayList<Corredor> listCorredors = gestion.getCorredores();\r\n TableModelCorredores modelo = new TableModelCorredores(listCorredors);\r\n jTableCorredores.setModel(modelo);\r\n TableRowSorter<TableModel> elQueOrdena = new TableRowSorter<>(modelo);\r\n ...
[ "0.70830864", "0.69477606", "0.6942802", "0.6915584", "0.6911786", "0.68960303", "0.6851625", "0.6799903", "0.67929435", "0.67577976", "0.6750595", "0.67169064", "0.66859376", "0.6672034", "0.6666525", "0.6663651", "0.66634864", "0.66571546", "0.66435647", "0.6613562", "0.660...
0.0
-1
Test the supercsv read API processing UTF8 with BOM file.
@Test public void testUTF8() throws IOException { BufferedReader reader = new BufferedReader( new InputStreamReader(new FileInputStream(UTF8_FILE), "UTF-8") ); ReadTestCSVFile(reader); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testUTF8WithoutBom() throws IOException {\n\t\tBufferedReader reader = new BufferedReader(\n\t\t\t\tnew InputStreamReader(new FileInputStream(UTF8_NO_BOM_FILE), \"UTF-8\")\n\t\t);\n\t\tReadTestCSVFile(reader);\n\t}", "private void skipBOM() {\n/* */ try {\n/* 471 */ if (PeekCha...
[ "0.84384036", "0.70746636", "0.6929349", "0.6267207", "0.620939", "0.6063805", "0.5948218", "0.5923407", "0.5799355", "0.57837415", "0.5756929", "0.57421744", "0.57170475", "0.5710504", "0.5702744", "0.5695222", "0.568727", "0.5676533", "0.5650051", "0.5629771", "0.5627789", ...
0.7762299
1
Test the supercsv read API processing UTF8 without BOM file.
@Test public void testUTF8WithoutBom() throws IOException { BufferedReader reader = new BufferedReader( new InputStreamReader(new FileInputStream(UTF8_NO_BOM_FILE), "UTF-8") ); ReadTestCSVFile(reader); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testUTF8() throws IOException {\n\t\tBufferedReader reader = new BufferedReader(\n\t\t\t\tnew InputStreamReader(new FileInputStream(UTF8_FILE), \"UTF-8\")\n\t\t);\n\t\tReadTestCSVFile(reader);\n\t}", "@Test\n\tpublic void testUTF16BE() throws IOException {\n\t\tBufferedReader reader = new Bu...
[ "0.7927994", "0.6873159", "0.684486", "0.67208517", "0.62681437", "0.62054646", "0.61683124", "0.6133243", "0.6129981", "0.61200887", "0.6113315", "0.61007434", "0.60509574", "0.6025207", "0.5992166", "0.5949816", "0.5939017", "0.59158677", "0.5859761", "0.58144593", "0.57873...
0.8505388
0
Test the supercsv read API processing UTF16BE file.
@Test public void testUTF16BE() throws IOException { BufferedReader reader = new BufferedReader( new InputStreamReader(new FileInputStream(UTF16BE_FILE), "UTF-16be") ); ReadTestCSVFile(reader); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testUTF16() throws IOException {\n\t\tBufferedReader reader = new BufferedReader(\n\t\t\t\tnew InputStreamReader(new FileInputStream(UTF16LE_FILE), \"UTF-16\")\n\t\t);\n\t\tReadTestCSVFile(reader);\n\n\t\tBufferedReader reader1 = new BufferedReader(\n\t\t\t\tnew InputStreamReader(new FileInput...
[ "0.81872773", "0.79835695", "0.7393534", "0.6700329", "0.6059534", "0.6040685", "0.57823837", "0.57658327", "0.5751133", "0.571993", "0.5656801", "0.56206506", "0.56023806", "0.5602063", "0.5592709", "0.5586487", "0.55608135", "0.55385214", "0.5512904", "0.54866874", "0.54844...
0.8651955
0
Test the supercsv read API processing UTF16LE file.
@Test public void testUTF16LE() throws IOException { BufferedReader reader = new BufferedReader( new InputStreamReader(new FileInputStream(UTF16LE_FILE), "UTF-16le") ); ReadTestCSVFile(reader); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testUTF16() throws IOException {\n\t\tBufferedReader reader = new BufferedReader(\n\t\t\t\tnew InputStreamReader(new FileInputStream(UTF16LE_FILE), \"UTF-16\")\n\t\t);\n\t\tReadTestCSVFile(reader);\n\n\t\tBufferedReader reader1 = new BufferedReader(\n\t\t\t\tnew InputStreamReader(new FileInput...
[ "0.8488988", "0.8400491", "0.72888464", "0.6251874", "0.6156932", "0.60510933", "0.592991", "0.588537", "0.5772399", "0.57033974", "0.56902695", "0.56685996", "0.5647584", "0.56336606", "0.55488384", "0.55462795", "0.55442595", "0.5533076", "0.5515528", "0.550628", "0.5498950...
0.8608595
0
Test the supercsv read API processing UTF16 files.
@Test public void testUTF16() throws IOException { BufferedReader reader = new BufferedReader( new InputStreamReader(new FileInputStream(UTF16LE_FILE), "UTF-16") ); ReadTestCSVFile(reader); BufferedReader reader1 = new BufferedReader( new InputStreamReader(new FileInputStream(UTF16BE_FILE), "UTF-16") ); ReadTestCSVFile(reader1); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testUTF16BE() throws IOException {\n\t\tBufferedReader reader = new BufferedReader(\n\t\t\t\tnew InputStreamReader(new FileInputStream(UTF16BE_FILE), \"UTF-16be\")\n\t\t);\n\t\tReadTestCSVFile(reader);\n\t}", "@Test\n\tpublic void testUTF16LE() throws IOException {\n\t\tBufferedReader reader...
[ "0.8116914", "0.8049912", "0.75808084", "0.6462757", "0.6015708", "0.59956324", "0.5953902", "0.56270814", "0.56167287", "0.55958515", "0.55309683", "0.5528514", "0.5519778", "0.5497177", "0.54896873", "0.54894537", "0.54881567", "0.54757833", "0.54657024", "0.54655343", "0.5...
0.8276029
0
This is only public so that the tests work. I could use reflection in JUnit but that is more work than I want to do.
public String[] getContainers(String base, String dn) throws LDAPException { if (DN.isAncestorOf(base, dn, false) == false) { log.warn("getContainers: incorrect arguments base is : " + base + " dn is : " + dn); return null; } RDN[] baserdns = DN.getRDNs(base); RDN[] dnrdns = DN.getRDNs(dn); int len = dnrdns.length - baserdns.length - 1; if (len < 0) {//Something went wrong. log.warn("getContainers: incorrect arguments base is : " + base + " dn is : " + dn); len = 0; } String[] ret = new String[len]; for (int i = len; i > 0 ; --i) { //0th position is not a container String[] vals = dnrdns[i].getAttributeValues(); String c = vals[0]; /* for (int j = 1; j < vals.length; ++j) { c += " + " + vals[j]; } */ ret[len - i] = c; } return ret; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void test01()\n {\n MetaClass.forClass(Class, reflectorFactory)\n }", "@Test\npublic void testCalTransactionUTF() throws Exception { \n//TODO: Test goes here... \n/* \ntry { \n Method method = ResultService.getClass().getMethod(\"calTransactionUTF\", int.class, int.class, int.cla...
[ "0.66856956", "0.64185405", "0.63870907", "0.63444656", "0.6179095", "0.61653745", "0.61360204", "0.60977596", "0.6074048", "0.60499656", "0.603292", "0.6026529", "0.6024407", "0.6015016", "0.5966231", "0.5954354", "0.5945723", "0.5932521", "0.5930701", "0.5891452", "0.588605...
0.0
-1
write a method to get player info and write it to a file
public void load(){ Player temp; try{ FileInputStream inputFile = new FileInputStream("./data.sec"); ObjectInputStream objectIn = new ObjectInputStream(inputFile); temp = (Player)objectIn.readObject(); Arena.CUR_PLAYER = temp; objectIn.close(); inputFile.close(); } catch(FileNotFoundException e ){ System.err.print("data.sec not found"); } catch(IOException e){ System.out.println("Error 201"); } catch(ClassNotFoundException e){ System.out.println("Error 202"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void SavePlayerData() {\r\n\r\n Player player = (Player)Player.getPlayerInstance();\r\n\t\t\r\n\t\tString file = \"PlayerInfo.txt\";\r\n\t\tString playerlifepoint = \"\"+player.getLifePoints();\r\n\t\tString playerArmore = player.getArmorDescription();\r\n\t\ttry{\r\n\t\t\tPrintWriter...
[ "0.7862921", "0.7623167", "0.7127983", "0.7068633", "0.70095825", "0.6751721", "0.6726031", "0.6647733", "0.6602057", "0.64728385", "0.6391163", "0.6307272", "0.6279438", "0.62787783", "0.6277185", "0.6265797", "0.62435555", "0.6223375", "0.6156025", "0.61293375", "0.6124236"...
0.0
-1
write another method to read data from a file and insert it into CUR_Player
public void save(){ Player temp = Arena.CUR_PLAYER; try{ FileOutputStream outputFile = new FileOutputStream("./data.sec"); ObjectOutputStream objectOut = new ObjectOutputStream(outputFile); objectOut.writeObject(temp); objectOut.close(); outputFile.close(); } catch(FileNotFoundException e){ System.out.print("Cannot create a file at that location"); } catch(SecurityException e){ System.out.print("Permission Denied!"); } catch(IOException e){ System.out.println("Error 203"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void loadCurrentPlayer() {\n\t\tScanner sc;\n\t\tFile file = new File(\"data/current_player\");\n\t\tif(file.exists()) {\n\t\t\ttry {\n\t\t\t\tsc = new Scanner(new File(\"data/current_player\"));\n\t\t\t\tif(sc.hasNextLine()) {\n\t\t\t\t\tString player = sc.nextLine();\n\t\t\t\t\t_currentPlayer= player;\n\t...
[ "0.68603283", "0.68009716", "0.66960955", "0.65252566", "0.64360017", "0.6390436", "0.63831735", "0.6363182", "0.6258432", "0.62486315", "0.62199503", "0.617525", "0.61116266", "0.6103466", "0.6075382", "0.60666776", "0.6030375", "0.6025629", "0.60119045", "0.6007809", "0.598...
0.51946354
99
Constructs a ModuloOperator from the given divisor and remainder.
public ModuloOperator(Number divisor, Number remainder) { this.divisor = divisor; this.remainder = remainder; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic String toString() {\n\t\treturn \"ModuloOperator{divisor=\" + divisor.toString() + \", remainder=\" + remainder.toString() + \"}\";\n\t}", "public static BinaryExpression modulo(Expression expression0, Expression expression1) {\n return makeBinary(ExpressionType.Modulo, expression0, ex...
[ "0.6962243", "0.6409049", "0.61774457", "0.610668", "0.60528636", "0.59497315", "0.5796891", "0.57847965", "0.5780437", "0.57648736", "0.5728188", "0.56148034", "0.54557437", "0.5349801", "0.53270656", "0.5292437", "0.52906704", "0.5273473", "0.52732134", "0.52681863", "0.523...
0.8577838
0
Gets the value this will divide by.
public Number getDivisor() { return divisor; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double getValue(){\n return (double) numerator / (double) denominator;\n }", "public double value() {\n return ((double) this.numerator / this.denominator);\n }", "public double getValue() {\n return (numeratorValue * multiplier) / (denominatorValue * divisor);\n }", "public fl...
[ "0.78827375", "0.78596437", "0.77222246", "0.7282618", "0.7280221", "0.7006889", "0.7006889", "0.7006889", "0.68755895", "0.6863214", "0.6844203", "0.68401486", "0.6832941", "0.68309176", "0.68003756", "0.67955554", "0.67927635", "0.67878073", "0.6773217", "0.6763458", "0.676...
0.65183794
52
Gets the value this will check the remainder of the division against.
public Number getRemainder() { return remainder; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getRemainderPercent() {\n return remainderPercent_;\n }", "public static double div() {\n System.out.println(\"Enter dividend\");\n double a = getNumber();\n System.out.println(\"Enter divisor\");\n double b = getNumber();\n\n return a / b;\n }", "static...
[ "0.6629357", "0.6569814", "0.6556298", "0.6548007", "0.6536078", "0.6524737", "0.62192506", "0.62094706", "0.6203536", "0.61941063", "0.61621857", "0.61211026", "0.61090136", "0.60981363", "0.6091423", "0.6043988", "0.6001188", "0.5998899", "0.5963312", "0.58788776", "0.58693...
0.65043265
6
Creates and returns a string representation of this.
@Override public String toString() { return "ModuloOperator{divisor=" + divisor.toString() + ", remainder=" + remainder.toString() + "}"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String toString() {\n StringWriter writer = new StringWriter();\n this.write(writer);\n return writer.toString();\n }", "public String toString() { return stringify(this, true); }", "@Override\n public String toString() {\n return new Gson().toJson(this);\n }", "@Override()\n p...
[ "0.80813384", "0.8080322", "0.75771433", "0.75657624", "0.7545196", "0.7508742", "0.7501174", "0.7492558", "0.74814284", "0.7435861", "0.743217", "0.7430953", "0.7430953", "0.7402879", "0.7383311", "0.73612833", "0.73588544", "0.73588544", "0.73549545", "0.7348021", "0.734213...
0.0
-1
Gets the type of this selector operator.
@Override public Selector getType() { return Selector.MODULUS; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public SelectorType getType() {\r\n\t\treturn type;\r\n\t}", "SelectorType getSelector();", "public int getSelectorType() {\n return m_selectorType;\n }", "public Expression getType();", "public short getSelectorType() {\n return Selector.SAC_CONDITIONAL_SELECTOR;\n }", "public java...
[ "0.78457916", "0.7254623", "0.7188252", "0.7010275", "0.6823393", "0.64928514", "0.63947916", "0.6361886", "0.62902844", "0.6239287", "0.62305516", "0.6202995", "0.6196405", "0.6154786", "0.6132605", "0.6132605", "0.6132605", "0.6132605", "0.6132605", "0.6132605", "0.6132605"...
0.0
-1
TODO Autogenerated method stub
public static boolean pat() { 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
Creates a new SwerveDrive.
public SwerveDrive() { //TODO:properly construct the swerve modules, and put then in an array, int already in Constants // frontLeft = new SwerveModule(); // rearLeft = new SwerveModule(); // rearRight = new SwerveModule(); // frontRight = new SwerveModule(); ////This may seem repetitive, but it makes clear which module is which. // swerveModules = new SwerveModule[]{ // frontLeft, // rearLeft, // rearRight, // frontRight // }; //TODO:Construct the IMU object, alreeady named imu }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public DriveHandle createDrive( String name )\n throws CdbException , InterruptedException {\n return _pvr.createDrive( name ) ;\n }", "public SwerveDrive(SwerveModule FrontLeft, SwerveModule FrontRight, SwerveModule BackLeft, SwerveModule BackRight) {\n super(\"SwerveDrive\");\n m...
[ "0.6881972", "0.5955585", "0.593189", "0.58337384", "0.57708937", "0.5735849", "0.56361383", "0.5620373", "0.5504591", "0.54616916", "0.54615235", "0.5458539", "0.5380737", "0.5346366", "0.5312759", "0.52909225", "0.52680945", "0.52680945", "0.52039605", "0.5193514", "0.51919...
0.53744036
13
This method will be called once per scheduler run
@Override public void periodic() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void periodic() {\n // This method will be called once per scheduler run\n }", "@Override\r\n\tpublic void doInitialSchedules() {\n\t}", "@Override\n public void autonomousPeriodic() {\n \n Scheduler.getInstance().run();\n \n }", "protected abstract void scheduler_i...
[ "0.79959375", "0.71370137", "0.7053971", "0.6965585", "0.69561255", "0.6893155", "0.68800586", "0.6876765", "0.67826825", "0.67659134", "0.6764156", "0.67577356", "0.6701485", "0.6687244", "0.6663779", "0.6658108", "0.6658108", "0.6658108", "0.6658108", "0.6644757", "0.664475...
0.62594575
99
This function is meant to drive one module at a time for testing purposes.
public void driveOneModule(int moduleNumber,double moveSpeed, double rotatePos){ //TODO:test that moduleNumber is between 0-3, return if not(return;) //TODO:write code to drive one module in a testing form }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void setupModules(){\n\t\tStart.setupModules();\n\t\t//add\n\t\t//e.g.: special custom scripts, workers, etc.\n\t}", "protected void initModules()\n {\n\n }", "@Test\n public void testModuleOperations()\n throws Exception\n {\n // instance exists (auto-created)\n ...
[ "0.64558876", "0.6311639", "0.598568", "0.5926026", "0.58693403", "0.5753431", "0.56736743", "0.5648227", "0.56264746", "0.5597217", "0.55439925", "0.55354714", "0.5521086", "0.5512339", "0.55006826", "0.5468929", "0.54616255", "0.5459305", "0.54391146", "0.54150933", "0.5400...
0.5650015
7
A function that allows the user to reset the gyro
public void resetGyro(){ //TODO:Reset the gyro(zero it) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void resetGyro () {\n gyro.reset();\n }", "public void resetGyroAngle() {\n\t\tgyro.reset();\n\t}", "public void calibrateGyro() {\n gyro.SetYaw(0);\n }", "void gyroSafety(){\n }", "public void zeroHeading() {\n m_gyro.reset();\n }", "public void resetGyroAngle(doubl...
[ "0.85116154", "0.8070037", "0.7552296", "0.69978255", "0.6947297", "0.6910332", "0.6908842", "0.6907031", "0.66107637", "0.65853345", "0.64858955", "0.6480985", "0.6416725", "0.64084494", "0.63656247", "0.63509005", "0.6340683", "0.6325899", "0.6319071", "0.6318955", "0.63123...
0.85934514
0
this polls the onboard gyro, which, when the robot boots, assumes and angle of zero
public double getGyroInRad(){ return 0.0;//TODO:Pull and return gyro in radians }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void initialize() {\n \tRobot.gyroSubsystem.reset();\n \tstartAngle = Robot.gyroSubsystem.gyroPosition();\n \ttargetAngle = startAngle + goal;\n }", "public void initGyro() {\r\n\t\tresult = new AccumulatorResult();\r\n\t\tif (m_analog1 == null || m_analog2 == null) {\r\n\t\t\tSystem.out.pr...
[ "0.73169625", "0.70279145", "0.70232147", "0.6968319", "0.69308984", "0.6872243", "0.6769964", "0.67047054", "0.6591379", "0.6569881", "0.65215397", "0.6485305", "0.64503837", "0.6445929", "0.6421638", "0.64072275", "0.6390579", "0.63828295", "0.63510036", "0.62686527", "0.62...
0.6411034
15
this polls the onboard gyro, which, when the robot boots, assumes and angle of zero
public double getGyroInDeg(){ return 0.0;//TODO:Pull gyro in radians and convert to degrees }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void initialize() {\n \tRobot.gyroSubsystem.reset();\n \tstartAngle = Robot.gyroSubsystem.gyroPosition();\n \ttargetAngle = startAngle + goal;\n }", "public void initGyro() {\r\n\t\tresult = new AccumulatorResult();\r\n\t\tif (m_analog1 == null || m_analog2 == null) {\r\n\t\t\tSystem.out.pr...
[ "0.7315133", "0.7028217", "0.7024087", "0.69689953", "0.69302315", "0.6870344", "0.6770375", "0.670442", "0.65907335", "0.656956", "0.65205926", "0.6484931", "0.64501923", "0.6444666", "0.6421202", "0.64113283", "0.6406699", "0.6389919", "0.63833505", "0.6351233", "0.62694734...
0.61849415
25
/ renamed from: a
public int mo9867a() { return this.f2526a; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }", "public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "interface C33292a {\n /* renamed fr...
[ "0.62497115", "0.6242887", "0.61394435", "0.61176854", "0.6114027", "0.60893", "0.6046901", "0.6024682", "0.60201293", "0.5975212", "0.59482527", "0.59121317", "0.5883635", "0.587841", "0.58703005", "0.5868436", "0.5864884", "0.5857492", "0.58306104", "0.5827752", "0.58272064...
0.0
-1
/ renamed from: b
public A mo9868b() { return this.f2527b; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void mo2508a(bxb bxb);", "@Override\n public void func_104112_b() {\n \n }", "@Override\n public void b() {\n }", "public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }", "@Override\n\tpublic void b2() {\n\t\t\n\t}", "v...
[ "0.64558864", "0.6283203", "0.6252635", "0.6250949", "0.6244743", "0.6216273", "0.6194491", "0.6193556", "0.61641675", "0.6140157", "0.60993093", "0.60974354", "0.6077849", "0.6001867", "0.5997364", "0.59737104", "0.59737104", "0.5905105", "0.5904295", "0.58908087", "0.588663...
0.0
-1
servicio para enviar promociones a un cliente especificando su nombre
@Path("/Enviar") @POST @Consumes(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON) public Response SendPromotion(String query){ logger.debug("Promociones - Enviar - query: " + query); //obtenemos el nombre del cliente JSONObject jsonObjectRequest = new JSONObject(query); String nombre = jsonObjectRequest.get("nombre").toString(); String msg = MSG_PROCESS_NOT_STARTED; int cod = -1; JSONArray result = new JSONArray(); if(!nombre.equals("")){ //obtenemos la id del cliente a través del nombre ClienteDao clienteDao = new ClienteDao(); int idCliente = clienteDao.GetId(nombre); logger.debug("SendPromotion - idCustomer: "+idCliente); if(idCliente != -1){ //comprobamos que el cliente tenga al menos una reserva boolean existeReserva = clienteDao.ExisteReserva(idCliente); if(existeReserva){ //obtenemos las reservas del cliente ReservaDao reservaDao = new ReservaDao(); ArrayList<Reserva> reservas = reservaDao.GetReservasCliente(idCliente); if(reservas.size() > 0){ //obtenemos la preferencia de envío del cliente String preferencia = clienteDao.GetPreferencia(idCliente); if(!preferencia.equals("")){ //insertamos en el JSON el nombre del cliente y la preferencia de envío JSONObject client = new JSONObject(); if (preferencia.equals("email")){ client.put("metodoenvio","EMAIL"); }else{ client.put("metodoenvio","SMS"); } client.put("nombrecliente",nombre); result.put(client); HotelDao hotelDao = new HotelDao(); ArrayList<Promocion> hotelesPromocionables; //para todas las reservas del cliente for(Reserva reserva : reservas){ //obtenemos el id del hotel a través del id de la reserva int idHotel = reserva.getIdHotel(); if(idHotel != -1){ //obtenemos la ciudad del hotel a través la id String ciudad = hotelDao.GetCiudad(idHotel); if(!ciudad.equals("")){ //obtenemos los hoteles que se pueden promocionar al cliente en base a la ciudad de anteriores reservas hotelesPromocionables = hotelDao.GetHotelesPromocionables(idHotel,ciudad); JSONArray hoteles = new JSONArray(); if(hotelesPromocionables.size() > 0){ //obtenemos el nombre del hotel a través de su id String nombreHotel = hotelDao.GetNombre(idHotel); if(!nombreHotel.equals("")){ //insertamos en el JSON el nombre del hotel ya reservado y la ciudad JSONObject infoHotelReservado = new JSONObject(); infoHotelReservado.put("Hotel Ya Reservado",nombreHotel); infoHotelReservado.put("Ciudad",ciudad); hoteles.put(infoHotelReservado); JSONArray promociones = new JSONArray(); //para todos los hoteles promocionales for(Promocion hp : hotelesPromocionables){ //insertamos el nombre y plantilla del hotel a promocionar JSONObject p = new JSONObject(); p.put("Nombre Hotel", hp.getNombreHotel()); p.put("Asunto",hp.getAsunto()); p.put("Cuerpo",hp.getCuerpo()); promociones.put(p); } hoteles.put(promociones); }else{ cod = 10; msg = MSG_10; } }else{ cod = 9; msg = MSG_9; } result.put(hoteles); }else{ cod = 8; msg = MSG_8; } }else{ cod = 7; msg = MSG_7; } cod = 1; msg = MSG_1; } }else{ cod = 6; msg = MSG_6; } }else{ cod = 5; msg = MSG_5; } }else{ cod = 4; msg = MSG_4; } }else{ cod = 3; msg = MSG_3; } }else{ if(nombre.equals("")){ cod = 2; msg = MSG_2; } } JSONObject response = new JSONObject(); response.put("msg",msg); response.put("cod",cod); response.put("result",result); return Response.status(200).entity(response.toString()).build(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void clienteSalio(String name, String cuarto) throws IOException {\n if (cuarto.equals(\"Reunion de clientes\")) {\n IntercambioDeUsuarios(name);\n } else {\n for (int c = 0; c < clientesEsperando.length; c++) { // Transforma cualquier usuario que escribio salir en la lis...
[ "0.6445941", "0.6391233", "0.63306904", "0.63095", "0.6305854", "0.6159399", "0.6094596", "0.60918784", "0.60638094", "0.6040894", "0.6033155", "0.6027252", "0.60197544", "0.5982803", "0.5881806", "0.58636856", "0.58459187", "0.5834631", "0.58180326", "0.5807226", "0.5805657"...
0.6181418
5
/ ????111114 05.cpp ?????? ?????20111114 ?????????????
public static int Main() { int n; //???? int k; int i = 1; int j; n = Integer.parseInt(ConsoleInput.readToWhiteSpace(true)); k = Integer.parseInt(ConsoleInput.readToWhiteSpace(true)); int[] f = new int[n + 1]; //???? while (i > 0) //?????????? { f[0] = (n - 1) * i; //????? for (j = 1;j < n + 1;j++) //???? { if (f[j - 1] % (n - 1) != 0) { break; } f[j] = f[j - 1] * n / (n - 1) + k; } if (j == n + 1) { break; //??????? } i = i + 1; } System.out.print(f[n]); System.out.print("\n"); return 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "C2841w mo7234g();", "C1111j mo5881f(String str);", "String mo20731c();", "public int method_7084(String param1) {\r\n // $FF: Couldn't be decompiled\r\n }", "public static void main(String[] args) {\n String filePath=args[0];\n Parser parser = new Parser(filePath);\n Code code =...
[ "0.60438466", "0.5927876", "0.5847952", "0.57662916", "0.57238424", "0.57018095", "0.568211", "0.5658556", "0.5658421", "0.5637921", "0.56191826", "0.56103575", "0.5601764", "0.56006193", "0.5599813", "0.5573128", "0.55729604", "0.55578625", "0.55532193", "0.554977", "0.55425...
0.0
-1
/ / / /
@Nullable /* */ public V get(int key) { /* 51 */ V res = (V)super.get(key); /* 52 */ if (res == null) { /* 53 */ res = (V)this.loader.apply(Integer.valueOf(key)); /* 54 */ if (res != null) { /* 55 */ put(key, res); /* */ } /* */ } /* 58 */ return res; /* */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void divide() {\n\t\t\n\t}", "public static void slashes() {\n\t\tSystem.out.println(\"//////////////////////\");\r\n\r\n\t}", "public abstract String division();", "public void division() {\n\t\tx=1;\n\t\ty=0;\n\t\tz=x/y;\n\t\t\t\t\n\t}", "private boolean slash() {\r\n return MARK(OPERATOR) ...
[ "0.5906264", "0.55749613", "0.5428019", "0.53241616", "0.5294036", "0.527193", "0.52582306", "0.5256754", "0.51585066", "0.5141374", "0.51100975", "0.5097357", "0.5026707", "0.50235814", "0.50100124", "0.49757177", "0.4967908", "0.49668512", "0.4931213", "0.49272057", "0.4915...
0.0
-1
A function that creates a histogram from a set of values in a double[] on a fixed xaxis
public static void plotHistogramWithFixedRange(double[] x, String titleName, String fileName, double min, double max) { try{ HistogramDataset series = new HistogramDataset(); series.addSeries("default", x, 15); NumberAxis yaxis = new NumberAxis("Frequency"); NumberAxis xaxis = new NumberAxis("Risk Index Value"); xaxis.setRange(min, max); xaxis.setLabelFont(new Font("Arial", Font.PLAIN, 24)); xaxis.setTickLabelFont(new Font("Arial", Font.PLAIN, 18)); XYBarRenderer rend = new XYBarRenderer(); rend.setSeriesPaint(0, Color.black); rend.setSeriesVisibleInLegend(0, false); rend.setBaseItemLabelFont(new Font("Arial", Font.PLAIN, 40)); XYPlot p = new XYPlot(series, xaxis, yaxis, rend); p.setOrientation(PlotOrientation.VERTICAL); p.setRangeGridlinesVisible(false); p.setDomainGridlinesVisible(false); JFreeChart chart = new JFreeChart(titleName, new Font("Arial", Font.PLAIN, 24), p, false); FileOutputStream fo = new FileOutputStream(fileName); EncoderUtil.writeBufferedImage(chart.createBufferedImage(1280, 1024), ImageFormat.PNG, fo); fo.close(); } catch(Exception e){ e.printStackTrace(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "JFreeChart generateHist();", "public ArrayHistogram1D(int numValues)\n\t{\n\t\tif (numValues < 1)\n\t\t{\n\t\t\tthrow new IllegalArgumentException(\"Must have at least one entry; numValues=\" + numValues);\n\t\t}\n\t\tdata = new int[numValues];\n\t}", "public void recalcHistogram();", "public static void mai...
[ "0.68253255", "0.61540514", "0.6126238", "0.61153966", "0.60644364", "0.60301936", "0.60136616", "0.59655106", "0.5911255", "0.58851117", "0.5883047", "0.57694525", "0.56178945", "0.5563282", "0.55259347", "0.5500827", "0.5488281", "0.5448269", "0.53946877", "0.5379927", "0.5...
0.65920216
1
A function that creates a histogram from a set of values in a double[] on a dynamically sized xaxis
public static void plotHistogram(double[] x, String titleName, String fileName) { try{ HistogramDataset series = new HistogramDataset(); series.addSeries("default", x, 15); JFreeChart chart = ChartFactory.createHistogram(titleName, "Risk Index Values", null, series, PlotOrientation.VERTICAL, false, false, false); FileOutputStream fo = new FileOutputStream(fileName); EncoderUtil.writeBufferedImage(chart.createBufferedImage(1280, 1024), ImageFormat.PNG, fo); fo.close(); } catch(Exception e){ e.printStackTrace(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "JFreeChart generateHist();", "public static void plotHistogramWithFixedRange(double[] x, String titleName, String fileName, double min, double max) { \n try{\n \n \n HistogramDataset series = new HistogramDataset(); \n \n series.addSeries(\"default\", x, 15);\n \n \n NumberAxis yax...
[ "0.6841636", "0.65286547", "0.6271459", "0.6192513", "0.6126548", "0.5985177", "0.59069556", "0.5880368", "0.5880117", "0.5828202", "0.5797747", "0.572876", "0.560326", "0.55921173", "0.55872256", "0.55803144", "0.5515927", "0.5491051", "0.5488826", "0.54663575", "0.54155624"...
0.5912219
6
Service Interface for Courier
@Service public interface CourierService { public Long saveCourier(Courier courier); public Courier searchCourierByCode(String code); // public boolean checkCourierByEmail(String email); // public void updateCourier(Courier courier); public List<String> getAllEnabledCourierCode(); public List<String> getAllCourierCode(); public List<Courier> getCourierByType(String type); public void enableCourier(Long id); public void disableCourier(Long id); public Courier findCourierByid(Long id); public List<Courier> getAllcourier(); public List<Courier> getEnabledCourier(); public boolean checkName(String courierName); public boolean checkCode(String courierCode); public Long getCourierIdByCode(String Code); // public AWBResult getAWB(String pincode, String shippingMode); // public void unSetAWB(String courierCode, String trackingNumber); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface ControllcurveService extends Service<Controllcurve> {\n\n}", "public interface PrescriptionLineService {\n Prescriptionline create(Prescriptionline prescriptionline);\n Prescriptionline read(int prescriptionId);\n Prescriptionline update(Prescriptionline prescriptionline);\n double t...
[ "0.67042476", "0.656589", "0.6530163", "0.6405285", "0.63838965", "0.63797516", "0.63672453", "0.6346403", "0.63101125", "0.6298982", "0.6298867", "0.6295942", "0.6295863", "0.62309504", "0.6229431", "0.62087476", "0.61942303", "0.6191004", "0.61821455", "0.61820984", "0.6171...
0.84733045
0
public boolean checkCourierByEmail(String email); public void updateCourier(Courier courier);
public List<String> getAllEnabledCourierCode();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void updateEmail(Integer id, String email) {\n\t\t\r\n\t}", "void send(Email email);", "@Service\npublic interface CourierService {\n\tpublic Long saveCourier(Courier courier);\n\tpublic Courier searchCourierByCode(String code);\n//\tpublic boolean checkCourierByEmail(String email);\n//\t...
[ "0.608538", "0.58431613", "0.57690907", "0.5759134", "0.5755457", "0.5740355", "0.5689035", "0.5689035", "0.5663987", "0.5663901", "0.5551653", "0.55474174", "0.55384016", "0.5537533", "0.55300534", "0.5525623", "0.55251104", "0.5522576", "0.55149764", "0.5512507", "0.5499950...
0.0
-1
Constructor: creation d'une nouvelle archive
public ZipFileWriter(String zipFile) throws FileNotFoundException { FileOutputStream fos = new FileOutputStream(zipFile); // ajout du checksum CheckedOutputStream checksum = new CheckedOutputStream(fos, new Adler32()); this.zos = new ZipOutputStream(new BufferedOutputStream(checksum)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ArchiveInfo() {\n\t}", "public ServerResponseCreateArchive() {\n }", "public BackupFSArchiveCopy() {\n super();\n }", "public TarArchive( File folder )\n {\n this.folder = folder;\n }", "public Dossier(int id, String name, String archiveObject, String lastUse){\r\n ...
[ "0.7440212", "0.6959886", "0.6932257", "0.66313654", "0.65199775", "0.6476337", "0.6276092", "0.6188984", "0.6085345", "0.60803175", "0.6073153", "0.6060782", "0.5996297", "0.5995106", "0.5975719", "0.5969006", "0.59598756", "0.59221655", "0.5869898", "0.58524567", "0.5840171...
0.0
-1
Ajouter un fichier au zip
public void addFile(String fileName) throws FileNotFoundException, IOException { FileInputStream fis = new FileInputStream(fileName); int size = 0; byte[] buffer = new byte[2048]; // Ajouter une entree à l'archive zip File file = new File(fileName); ZipEntry zipEntry = new ZipEntry(file.getName()); this.zos.putNextEntry(zipEntry); // copier et compresser les données while ((size = fis.read(buffer, 0, buffer.length)) > 0) { this.zos.write(buffer, 0, size); } this.zos.closeEntry(); fis.close(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void createZipEntry(ZipOutputStream out, String fileName, byte[] content) throws IOException\n\t{\n\t\tZipEntry entry = new ZipEntry(fileName);\n\t\tentry.setMethod(ZipEntry.DEFLATED);\n\t\tout.putNextEntry(entry);\n\t\tout.write(content);\n\t}", "void addFileToZip(File file, Zipper z, SynchronizationReq...
[ "0.68605465", "0.6795503", "0.672615", "0.67023456", "0.67007476", "0.66553724", "0.66377383", "0.652596", "0.6477446", "0.64556444", "0.6449718", "0.6397458", "0.63904643", "0.6364522", "0.63118273", "0.6233127", "0.6223512", "0.61819005", "0.6156028", "0.61383265", "0.61304...
0.6151606
19
Fermer le fichier zip
public void close() throws IOException { this.zos.close(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void getFile(ZipEntry e) throws IOException {\n String zipName = e.getName();\n switch (mode) {\n case EXTRACT:\n if (zipName.startsWith(\"/\")) {\n if (!warnedMkDir)\n System.out.println(\"Ignoring absolute paths\");\n ...
[ "0.6841551", "0.6657641", "0.6642138", "0.6593988", "0.657133", "0.6504348", "0.649215", "0.64380395", "0.63649815", "0.6355542", "0.6355542", "0.6321776", "0.6280825", "0.623616", "0.6209521", "0.61951274", "0.6188791", "0.6176354", "0.6154027", "0.6112033", "0.60973734", ...
0.0
-1
Consente di scegliere fra la risorsa libro o film per effettuare la ricerca in base alla descrizione della categoria scelta
@Override public void prossimo_stato(Model_context model, ArrayList<String> dati_input) { switch(dati_input.get(0)) { case "1":{ model.set_stato_attuale(new Stato_inserisci_descrizione_libro_ricerca(get_attore())); break; } case "2":{ model.set_stato_attuale(new Stato_inserisci_descrizione_film_ricerca(get_attore())); break; } default:{ model.set_stato_attuale(new Stato_errore(new Stato_ricerca_visualizza(get_attore()), this, "inserisci un valore corretto", get_attore())); break; } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getCategoriaDescripcion();", "public void setCategoriaDescripcion(String descripcion);", "public void decideNature()\n {\n String nature = new String(\"\");\n Random rand = new Random();\n int i = rand.nextInt(100);\n if(i <= 25)\n {\n nature = \"V...
[ "0.64741296", "0.6133539", "0.5824593", "0.5809856", "0.57989323", "0.57671946", "0.5730077", "0.571226", "0.5615371", "0.55556184", "0.552738", "0.54856193", "0.54786456", "0.54749995", "0.54671216", "0.5445528", "0.541156", "0.5388951", "0.5382282", "0.5345444", "0.53348196...
0.0
-1
call retrofit api service
private void createServerSideToken(TokenRequestBody tokenRequestBody, final Paystack.TokenCallback tokenCallback) throws KeyManagementException, NoSuchAlgorithmException, KeyStoreException { ApiService apiService = new ApiClient().getApiService(); HashMap<String, String> params = new HashMap<>(); params.put(TokenRequestBody.FIELD_PUBLIC_KEY, tokenRequestBody.publicKey); params.put(TokenRequestBody.FIELD_CLIENT_DATA, tokenRequestBody.clientData); Call<TokenApiResponse> call = apiService.createToken(params); call.enqueue(new Callback<TokenApiResponse>() { /** * Invoked for a received HTTP response. * <p/> * @param call - the call enqueueing this callback * @param response - response from the server after call is made */ @Override public void onResponse(Call<TokenApiResponse> call, Response<TokenApiResponse> response) { TokenApiResponse tokenApiResponse = response.body(); if (tokenApiResponse != null) { //check for status...if 0 return an error with the message if (tokenApiResponse.status.equals("0")) { //throw an error tokenCallback.onError(new TokenException(tokenApiResponse.message)); } else { Token token = new Token(); token.token = tokenApiResponse.token; token.last4 = tokenApiResponse.last4; tokenCallback.onCreate(token); } } } /** * Invoked when a network exception occurred talking to the server or when an unexpected * exception occurred creating the request or processing the response. * * @param call - call that enqueued this callback * @param t - the error or exception that caused the failure */ @Override public void onFailure(Call<TokenApiResponse> call, Throwable t) { Log.e(LOG_TAG, t.getMessage()); tokenCallback.onError(t); } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface TravelApiService {\n @GET(\"api/users/{userCode}/travels\")\n Call<List<Travel>> getTravel(@Path(value = \"userCode\") String userCode);\n\n @POST(\"api/users/{userCode}/travels\")\n Call<PostTravelGsonResponce> postTravel(@Path(value = \"userCode\") String userCode, @Field(\"travel_da...
[ "0.7647973", "0.7565714", "0.7528924", "0.750306", "0.7488578", "0.74023104", "0.7386854", "0.7370655", "0.7367525", "0.73555154", "0.7338737", "0.73119485", "0.7298827", "0.72912306", "0.7250131", "0.7230004", "0.72115314", "0.7211405", "0.71807647", "0.7177437", "0.7176946"...
0.0
-1
Invoked for a received HTTP response.
@Override public void onResponse(Call<TokenApiResponse> call, Response<TokenApiResponse> response) { TokenApiResponse tokenApiResponse = response.body(); if (tokenApiResponse != null) { //check for status...if 0 return an error with the message if (tokenApiResponse.status.equals("0")) { //throw an error tokenCallback.onError(new TokenException(tokenApiResponse.message)); } else { Token token = new Token(); token.token = tokenApiResponse.token; token.last4 = tokenApiResponse.last4; tokenCallback.onCreate(token); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void responseReceived(byte[] response);", "@Override\n\tpublic void handleResponse() {\n\t\t\n\t}", "void receiveResponse(String invocationId, HttpResponse response);", "public void onResponse(Response response) throws Exception;", "@Override\n\tpublic void processResponse(Response response)\n\t{\n\t\t\n\t...
[ "0.7525639", "0.73365784", "0.71270823", "0.7099652", "0.705005", "0.7011628", "0.6898035", "0.687672", "0.68381476", "0.6813215", "0.68000793", "0.67497635", "0.6745987", "0.6745987", "0.6745987", "0.67244077", "0.6701781", "0.668709", "0.6684314", "0.668331", "0.66728634", ...
0.0
-1
Invoked when a network exception occurred talking to the server or when an unexpected exception occurred creating the request or processing the response.
@Override public void onFailure(Call<TokenApiResponse> call, Throwable t) { Log.e(LOG_TAG, t.getMessage()); tokenCallback.onError(t); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\t\tpublic void onNetworkError() {\n\n\t\t\t}", "@Override\n\t\t\tpublic void onNetworkError(Request request, IOException e) {\n\n\t\t\t}", "@Override\n\t\t\t\tpublic void onNetworkError(Request request, IOException e) {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\r\n\t\t\tpublic void onNetworkError(Net...
[ "0.76656926", "0.761227", "0.7570521", "0.71830845", "0.7169454", "0.67670196", "0.67004067", "0.66333824", "0.65422964", "0.6526372", "0.64991194", "0.64615434", "0.63892066", "0.6374671", "0.6352326", "0.63458014", "0.63177246", "0.6294074", "0.62892616", "0.6264117", "0.62...
0.0
-1
public static native void setDpnLog(int logSwitch);
public static native int initDevice(int fd);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private native void Df1_Set_Log_Filter_Level(int level);", "public static final void ccSetDoseLog(boolean pxVal){\n cmLogOn=pxVal;\n }", "void setDebugPort(Integer debugPort);", "public void setLog(Log log) {\r\n this.delegate.setLog(log);\r\n }", "public void setLOG(Logger newLog)\r\n\t{\r\n...
[ "0.62485087", "0.611905", "0.579667", "0.57274485", "0.5701365", "0.56681764", "0.5660566", "0.5546083", "0.553521", "0.5528387", "0.5482345", "0.544925", "0.543123", "0.5428225", "0.54265857", "0.5418784", "0.5400084", "0.53774595", "0.53740084", "0.5368956", "0.536881", "...
0.0
-1
before all we check if position is within range
public void insert(int position, E o) { if (position >= 0 && position <= size) { // first resize the storage array E[] newData = (E[]) new Object[size + 1]; // copy the data prior to the insertion for (int i = 0; i < position; i++) newData[i] = data[i]; // insert the new element newData[position] = o; // move the data after the insertion for (int i = position; i < size; i++) newData[i + 1] = data[i]; // replace the storage with the new array data = newData; size = size + 1; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean checkPosition(int position) {\r\n\t\treturn position>size||position < 0;\r\n\t}", "private boolean isValidPosition(Point pos){\r\n return (0 <= pos.getFirst() && pos.getFirst() < 8 && \r\n 0 <= pos.getSecond() && pos.getSecond() < 8);\r\n }", "public static boolean inRa...
[ "0.7046293", "0.6943512", "0.6870864", "0.67629766", "0.6671402", "0.65768456", "0.65373206", "0.65082824", "0.65082824", "0.65082824", "0.65082824", "0.647779", "0.64605933", "0.64587545", "0.64344716", "0.6367099", "0.6348689", "0.63053", "0.6301723", "0.6290325", "0.628387...
0.0
-1
before all we check if position is within range
public void delete(int position) { if (position >= 0 && position < size) { // first resize the storage array E[] newData = (E[]) new Object[size - 1]; // copy the data prior to the delition for (int i = 0; i < position; i++) newData[i] = data[i]; // move the data after the deletion for (int i = position + 1; i < size; i++) newData[i - 1] = data[i]; // replace the storage with the new array data = newData; size = size - 1; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean checkPosition(int position) {\r\n\t\treturn position>size||position < 0;\r\n\t}", "private boolean isValidPosition(Point pos){\r\n return (0 <= pos.getFirst() && pos.getFirst() < 8 && \r\n 0 <= pos.getSecond() && pos.getSecond() < 8);\r\n }", "public static boolean inRa...
[ "0.7046293", "0.6943512", "0.6870864", "0.67629766", "0.6671402", "0.65768456", "0.65373206", "0.65082824", "0.65082824", "0.65082824", "0.65082824", "0.647779", "0.64605933", "0.64587545", "0.64344716", "0.6367099", "0.6348689", "0.63053", "0.6301723", "0.6290325", "0.628387...
0.0
-1
first resize the storage array
public void resize(int newSize) { E[] newData = (E[]) new Object[newSize]; // copy the data int copySize = size; if (newSize < size) copySize = newSize; for (int i = 0; i < copySize; i++) newData[i] = data[i]; // replace the storage with the new array data = newData; size = newSize; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@SuppressWarnings(\"unchecked\")\n\tprivate void resize(int newSize){\n\t\tif(newSize > max){\n\t\t\tnewSize = max;\n\t\t}\n\t\tT[] newData = (T[])new Object[newSize];\n\t\tfor(int i = 0; i < size; i++){\n\t\t\tnewData[i] = data[i];\n\t\t}\n\t\tdata = newData;\n\t}", "void resize() {\n capacity = arra...
[ "0.7504208", "0.7447479", "0.74466354", "0.7442521", "0.7338517", "0.7336046", "0.7331799", "0.7281352", "0.7234867", "0.72282535", "0.7223546", "0.7200325", "0.71738225", "0.7128884", "0.71176285", "0.71102786", "0.70919824", "0.70703745", "0.7067705", "0.70615876", "0.70613...
0.70100635
24
Method used to display the Score for Team A
public void displayScoreA (int score){ TextView scoreA = (TextView)findViewById(R.id.team_a_score); scoreA.setText(String.valueOf(score)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void displayForTeamA(int scoreA) {\r\n TextView scoreView = (TextView) findViewById(R.id.team_a_score);\r\n scoreView.setText(String.valueOf(scoreA));\r\n }", "public void displayForTeamA(int score) {\n TextView scoreView = findViewById(R.id.team_a_score);\n scoreView.setTex...
[ "0.81465554", "0.81346595", "0.81346595", "0.8106641", "0.8106641", "0.8106641", "0.8106641", "0.8106641", "0.8089548", "0.80122024", "0.79835904", "0.7789251", "0.7779817", "0.7517404", "0.7431696", "0.73507625", "0.73507625", "0.7330012", "0.7330012", "0.7330012", "0.733001...
0.7988779
10
Method used to display the Foul for Team A
public void displayFoulA (int foul){ TextView foulA = (TextView)findViewById(R.id.team_a_foul); foulA.setText(String.valueOf(foul)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void displayFoulsForTeamA(int foul) {\n TextView foulsView = findViewById(R.id.team_a_fouls);\n foulsView.setText(String.valueOf(foul));\n }", "public void displayFoulsForTeamA(int fouls) {\r\n TextView foulsView = (TextView) findViewById(R.id.team_a_fouls);\r\n foulsView.se...
[ "0.771816", "0.74191046", "0.7174507", "0.7125838", "0.7021386", "0.6891922", "0.6832105", "0.6810716", "0.67874867", "0.6742033", "0.65318716", "0.6530981", "0.645306", "0.6407832", "0.6374243", "0.63644737", "0.6345937", "0.6325391", "0.6235174", "0.6154103", "0.61455727", ...
0.73742193
2
Method used to display the Score for Team B
public void displayScoreB (int score){ TextView scoreA = (TextView)findViewById(R.id.team_b_score); scoreA.setText(String.valueOf(score)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void displayForTeamB(int score) {\n TextView scoreView = findViewById(R.id.team_b_score);\n scoreView.setText(String.valueOf(score));\n }", "public void displayForTeamB(int score) {\n TextView scoreView = findViewById(R.id.team_b_score);\n scoreView.setText(String.valueOf(sc...
[ "0.8044295", "0.8044295", "0.8019222", "0.8010914", "0.8010914", "0.8010914", "0.8010914", "0.79035956", "0.78289497", "0.7810733", "0.7810733", "0.7798979", "0.7794662", "0.7775178", "0.7775178", "0.7775178", "0.7775178", "0.7775178", "0.76960033", "0.76955616", "0.7633819",...
0.79700243
7
Method used to display the Foul for Team B
public void displayFoulb (int foul){ TextView foulA = (TextView)findViewById(R.id.team_b_foul); foulA.setText(String.valueOf(foul)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void displayFoulsForTeamB(int fouls) {\n TextView foulsView = findViewById(R.id.team_b_fouls);\n foulsView.setText(String.valueOf(fouls));\n }", "public void displayFoulsForTeamB(int fouls) {\r\n TextView foulsView = (TextView) findViewById(R.id.team_b_fouls);\r\n foulsView....
[ "0.7512193", "0.75037766", "0.7243807", "0.70004445", "0.6861853", "0.67481047", "0.6737908", "0.66398585", "0.66132903", "0.6584766", "0.649995", "0.6311662", "0.62116355", "0.6167087", "0.61014134", "0.6094318", "0.6038768", "0.60255426", "0.6022588", "0.59709835", "0.59479...
0.7310943
2
Method used to update the Score for Team A
public void ScoreTeamA(View view) { scoreteamA = scoreteamA +1; displayScoreA(scoreteamA); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void updateScore(int score){ bot.updateScore(score); }", "public void addScoreForTeamA(View v) {\n scoreTeamA += 1;\n updateText(scoreTeamA, v);\n }", "public void teamA(int score) {\r\n TextView scoreView = (TextView) findViewById(R.id.teamA);\r\n scoreView.setText(String...
[ "0.76385933", "0.7474093", "0.73610497", "0.72621626", "0.7233533", "0.7231407", "0.72092265", "0.71824837", "0.7173767", "0.7157794", "0.71499723", "0.7148383", "0.71440256", "0.7108897", "0.7095243", "0.7095243", "0.70887154", "0.70807403", "0.70742196", "0.7064293", "0.705...
0.77375156
0
Method used to update the Foul for Team A
public void FoulTeamA(View view) { foulteamA = foulteamA + 1; displayFoulA(foulteamA); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void update(Team team);", "public void addFaltasTeamA(View view) {\n faltasTeamA = faltasTeamA + 1;\n displayFaltasTeamA(faltasTeamA);\n }", "public void updateAirForceTeam(Collection<Unit> airunits) {\n\t\t\n\t\t// remove airunit of invalid team \n\t\tList<Integer> invalidUnitIds = new ArrayL...
[ "0.69605637", "0.6513352", "0.6472879", "0.64676654", "0.6446981", "0.6400691", "0.6369755", "0.6196468", "0.61947924", "0.61714005", "0.61355287", "0.6108541", "0.6062083", "0.604354", "0.6038654", "0.59652513", "0.5947629", "0.5912089", "0.5788352", "0.57882136", "0.5772503...
0.6509969
2
Method used to update the Score for Team B
public void ScoreTeamB(View view) { scoreteamB = scoreteamB +1; displayScoreB(scoreteamB); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void updateScore(int score){ bot.updateScore(score); }", "public static void update_scoreboard2(){\n\t\t//Update score\n\tif(check_if_wicket2){\n\t\t\n\t\twicket_2++;\n\t\tupdate_score2.setText(\"\"+team_score_2+\"/\"+wicket_2);\n\t}\n\telse{\n\t\tif(TossBrain.compselect.equals(\"bat\")){\n\t\t\ttempshot2...
[ "0.7563624", "0.7305597", "0.71204054", "0.7096149", "0.7082102", "0.7081971", "0.70668507", "0.70658976", "0.7051962", "0.7019214", "0.6994387", "0.69863886", "0.69863886", "0.6958818", "0.69459", "0.69448066", "0.69272494", "0.69272494", "0.69272494", "0.69272494", "0.69215...
0.7517513
1
Method used to update the Foul for Team B
public void FoulTeamB(View view) { foulteamB = foulteamB + 1; displayFoulb(foulteamB); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void update(Team team);", "@Override\n\tpublic void updateTeam(ProjectTeamBean projectTeamBean) {\n\t\t\n\t}", "@Override\n\tpublic void updateProjectTeam(ProjectTeamBean bean) {\n\t\t\n\t}", "public void plusFoulTeamB (View view) {\r\n foulsB++;\r\n displayFoulsForTeamB(foulsB);\r\n }", "...
[ "0.6709867", "0.669145", "0.6406332", "0.63781613", "0.63032985", "0.61150706", "0.60518694", "0.603191", "0.5995035", "0.5917629", "0.58902484", "0.58618236", "0.5859779", "0.5817429", "0.5807577", "0.5792117", "0.57638556", "0.57179624", "0.5716268", "0.571527", "0.56785494...
0.65480834
2
Method used to Reset all the scores and fouls to 0
public void Reset(View view) { displayFoulA(0); displayScoreA(0); displayScoreB(0); displayFoulb(0); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void reset() {\n\t\tscore = 0;\n\t}", "public void reset()\n {\n currentScore = 0;\n }", "public void resetScore() {\n\t\tthis.score = 0;\n\t}", "public void resetScore(){\n Set<String> keys = CalcScore.keySet();\n for(String key: keys){\n CalcScore.replace(key,0.0);\n ...
[ "0.8726388", "0.8672671", "0.8606545", "0.85427254", "0.84374565", "0.8352605", "0.8293519", "0.7963471", "0.78661215", "0.78433084", "0.76025456", "0.75744134", "0.75722873", "0.7568165", "0.75458676", "0.7476293", "0.74521166", "0.74273884", "0.7385495", "0.7375387", "0.737...
0.7237723
28
String constantString = scanner.currentToken(); constantString = constantString.substring("CONST[".length(), constantString.length()1); constantInt = Integer.parseInt(constantString);
@Override public void printCode(StringBuilder builder, int indentation) { for(String id: idList){ builder.append(id.substring("ID[".length(), id.length()-1)); builder.append(","); } builder.deleteCharAt(builder.length() -1);//delete last comma }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int intVal(){\n\n if(currentTokenType == TYPE.INT_CONST){\n\n return Integer.parseInt(currentToken);\n }else {\n throw new IllegalStateException(\"Current token is not an integer constant!\");\n }\n }", "public interface ParserConstants {\n\n /** End of File....
[ "0.6577766", "0.61073905", "0.59856856", "0.5948641", "0.58495605", "0.58203745", "0.58122796", "0.57821935", "0.57197833", "0.5715574", "0.5662873", "0.5660428", "0.56474453", "0.56223905", "0.5593728", "0.5573415", "0.55374724", "0.5534269", "0.5530309", "0.5513093", "0.550...
0.0
-1
load from 'cache' TODO: disable or enable modules?
@Override public List<String> getAllAuditedEntitiesNames() { if (this.allAuditedEntititesNames != null) { // return this.allAuditedEntititesNames; } // List<String> result = new ArrayList<>(); Set<EntityType<?>> entities = entityManager.getMetamodel().getEntities(); for (EntityType<?> entityType : entities) { if (entityType.getJavaType() == null) { continue; } // get entities methods and search annotation Audited in fields. if (getAuditedField(entityType.getJavaType().getDeclaredFields())) { result.add(entityType.getJavaType().getCanonicalName()); continue; } // // TODO: add some better get of all class annotations Annotation[] annotations = null; try { annotations = entityType.getJavaType().newInstance().getClass().getAnnotations(); } catch (InstantiationException | IllegalAccessException e) { // class is not accessible continue; } // entity can be annotated for all class if (getAuditedAnnotation(annotations)) { result.add(entityType.getJavaType().getCanonicalName()); continue; } } // sort entities by name Collections.sort(result); // this.allAuditedEntititesNames = result; return result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void load(){\n }", "public static void load() {\n load(false);\n }", "public void loadCache() {\n if (!directory.exists()) {\n directory.mkdirs();\n }\n File[] files = this.directory.listFiles();\n if (files == null) {\n return;\n ...
[ "0.64625937", "0.64103067", "0.6372339", "0.6319406", "0.6141199", "0.613748", "0.610742", "0.6026526", "0.59738195", "0.5914546", "0.58779824", "0.5866973", "0.5842794", "0.5838616", "0.5786241", "0.5786241", "0.5771239", "0.5752468", "0.5748459", "0.57255614", "0.57124335",...
0.0
-1
Is necessary to override method get, because old get transform id to UUID and audits have Long ID.
@Override public IdmAuditDto get(Serializable id, BasePermission... permission) { // TODO: add permission, now can't be use find, because Authentication object is null when call from IdmAuditLisener Assert.notNull(id, "Id is required"); IdmAudit audit = this.auditRepository.findOneById(Long.valueOf(id.toString())); if (audit == null) { throw new ResultCodeException(CoreResultCode.NOT_FOUND, ImmutableMap.of("audit", id)); } // return only one element return this.toDto(audit); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Integer getId() { return this.id; }", "public String getId(){ return id.get(); }", "public long getId(){return this.id;}", "public long getId() { return this.id; }", "public long getId() { return id; }", "public long getId() { return id; }", "public long getId() { return _id; }", "public Lon...
[ "0.67068493", "0.66439396", "0.6635553", "0.6538312", "0.6505508", "0.6505508", "0.65034705", "0.6460246", "0.6455556", "0.64547324", "0.64417803", "0.6432098", "0.64253217", "0.6409297", "0.64036155", "0.63839686", "0.63751984", "0.63746583", "0.63669735", "0.63648635", "0.6...
0.0
-1
Method working with envers, find is realized in audited tables
private <T> T find(Class<T> entityClass, UUID entityId, Long revisionId) { AuditReader reader = this.getAuditReader(); return reader.find(entityClass, entityId, revisionId); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public default E onFind(E entity) {\n\t\treturn entity;\n\t}", "@Test\r\n public void testFind() throws Exception {\r\n MonitoriaEntity entity = data.get(0);\r\n MonitoriaEntity nuevaEntity = persistence.find(entity.getId());\r\n Assert.assertNotNull(nuevaEntity);\r\n Assert.assert...
[ "0.5781019", "0.5476415", "0.5450874", "0.54100484", "0.5312251", "0.5300446", "0.5282227", "0.523874", "0.52136105", "0.51738685", "0.51726973", "0.51479685", "0.514569", "0.5132783", "0.5131197", "0.5131087", "0.51211435", "0.51111424", "0.5066577", "0.5052679", "0.504925",...
0.0
-1
If the value of 'a' is of nonstatic type then it cannnot be reference from the main function
public void Display(){ System.out.println(a); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static void m1(int a){\n\t\ta=Static11.a;\nSystem.out.println(a);\n\t}", "public static void a() {\n\n }", "public static void test(){\n\t\tSystem.out.println(a);\n\t}", "public static aa a() {\n }", "private void m140522a(C11585f fVar, A a) {\n C7573i.m23587b(fVar, \"$receiver\");\n ...
[ "0.6585455", "0.61961544", "0.6160215", "0.6065983", "0.603441", "0.58787566", "0.57997245", "0.5638713", "0.5552168", "0.5517932", "0.5509965", "0.5472874", "0.5431123", "0.5387162", "0.53860223", "0.5379786", "0.53618234", "0.53578943", "0.5352298", "0.53429264", "0.5324021...
0.0
-1
Instead of passing an int[] to a web service, pass a List. This method converts an array of int to a List of Integer. When a web service publishes a method that receives an int[] as parameter, the type gets converted to a "sequence" in XML, and the client should therefore submit, as parameter, a List instead of an int[]. The web service will still receive an int[] on the server side.
static List<Integer> arrayToList(int[] array) { List<Integer> list = new ArrayList<Integer>(); for(int i : array) list.add(i); return list; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int[] getIntList();", "public void setArray(int[] paramArrayOfInt)\n/* */ {\n/* 758 */ if (paramArrayOfInt == null) {\n/* 759 */ setNullArray();\n/* */ }\n/* */ else {\n/* 762 */ setArrayGeneric(paramArrayOfInt.length);\n/* */ \n/* 764 */ this....
[ "0.6539186", "0.6528186", "0.6238791", "0.6234999", "0.62142897", "0.62047565", "0.6172654", "0.6013912", "0.5984843", "0.59411585", "0.59035116", "0.589507", "0.58651584", "0.5831745", "0.58194244", "0.58183885", "0.5815728", "0.57971436", "0.5789212", "0.577066", "0.5763274...
0.5772209
19
// End of the developed code to test the Insulin Dose Calculator Web Service //
public static void main(String[] argv) { //Fazer isto depois para múltiplos web services InsulinDoseCalculator service = null; try { //service = new InsulinDoseCalculatorService(new URL("http://liis-lab.dei.uc.pt:8080/Server?wsdl")).getInsulinDoseCalculatorPort(); //service = new InsulinDoseCalculatorService(new URL("http://qcs12.dei.uc.pt:8080/insulin?wsdl")).getInsulinDoseCalculatorPort(); //service = new InsulinDoseCalculatorService(new URL("http://qcs18.dei.uc.pt:8080/insulin?wsdl")).getInsulinDoseCalculatorPort();14 service = new InsulinDoseCalculatorService(new URL("http://localhost:9000/InsulinDoseCalculator?wsdl")).getInsulinDoseCalculatorPort(); //service = new InsulinDoseCalculatorService(new URL("http://vm-sgd17.dei.uc.pt:80/InsulinDoseCalculator?wsdl")).getInsulinDoseCalculatorPort(); } catch (MalformedURLException e) { e.printStackTrace(); } //InsulinDoseCalculator service = new InsulinDoseCalculatorService().getInsulinDoseCalculatorPort(); menu(service); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void testMain(){\n\t\ttry {\n\t\t\t/**\n\t\t\t * 调用接口获得返回字符串\n\t\t\t */\n\t\t\t// 创建调用对象\n\t\t \n\t\t\tURL url = new URL(\"http://10.1.13.146:30014/service/fundquery.ws?wsdl\"); \n\t\t\tQName qName = new QName(\"http://service.hundsun.com\", \"FundQueryService\");\n\t\t\tService service = Service....
[ "0.6850945", "0.6586632", "0.6425283", "0.6322757", "0.6320007", "0.6187525", "0.6140424", "0.60371715", "0.59968895", "0.59263873", "0.59120494", "0.5891494", "0.5854604", "0.5852356", "0.5849307", "0.58121765", "0.57963264", "0.57704085", "0.57545125", "0.57387346", "0.5729...
0.6540637
2
jhipsterneedleentityaddfield JHipster will add fields here, do not remove
public Long getId() { return id; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void addField(\n JavaSymbolName propertyName,\n JavaType propertyType,\n String columnName,\n String columnType,\n JavaType className,\n boolean id,\n boolean oneToOne, boolean oneToMany, boolean manyToOne, boolean manyToMany, String mapp...
[ "0.62933207", "0.59871024", "0.59345496", "0.5807264", "0.57005894", "0.56254286", "0.56229895", "0.56043065", "0.55907774", "0.55277437", "0.55270976", "0.5502147", "0.5449934", "0.5449778", "0.5448262", "0.5438682", "0.5421909", "0.539829", "0.5392975", "0.5386786", "0.5378...
0.0
-1
jhipsterneedleentityaddgetterssetters JHipster will add getters and setters here, do not remove
@Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } Job job = (Job) o; if (job.getId() == null || getId() == null) { return false; } return Objects.equals(getId(), job.getId()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface CommonEntityMethod extends ToJson,GetFieldValue,SetFieldValue{\n}", "static void setPropertiesFromGetters(TableEntity entity, ClientLogger logger) {\n Class<?> myClass = entity.getClass();\n\n // Do nothing if the entity is actually a `TableEntity` rather than a subclass\n i...
[ "0.63297254", "0.6107342", "0.5660554", "0.5651006", "0.55322295", "0.54640394", "0.5463225", "0.54493016", "0.5434231", "0.54148996", "0.53874224", "0.5378587", "0.53504497", "0.5342178", "0.5335634", "0.5329068", "0.53250057", "0.5322392", "0.53159934", "0.5303257", "0.5293...
0.0
-1
If no status gadget is provided, it uses a basic one.
public SingleUploader() { this(null); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String evaluateDeveloperStatus(DeveloperStatus status) {\n switch (status) {\n case AVAILABLE:\n return \"color: #449d44 !important;\";\n case HOLIDAY:\n return \"color: darkcyan !important;\";\n case LOCKED:\n return \"co...
[ "0.5728021", "0.56835026", "0.55855244", "0.5583542", "0.5574563", "0.5529027", "0.55271953", "0.54689336", "0.544809", "0.544809", "0.5429219", "0.54217815", "0.54068834", "0.5398489", "0.5398489", "0.5398489", "0.5398489", "0.5398489", "0.5398489", "0.5398489", "0.5398489",...
0.0
-1
If no submit button is provided it creates new one.
public SingleUploader(IUploadStatus status) { this(status, new Button()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected GuiTestObject button_registerNowsubmit() \n\t{\n\t\treturn new GuiTestObject(\n getMappedTestObject(\"button_registerNowsubmit\"));\n\t}", "private void setupSubmitButton() {\n\t\tImageIcon submit_button_image = new ImageIcon(parent_frame.getResourceFileLocation() + \"submit.png\...
[ "0.6550181", "0.64455765", "0.6312057", "0.6266784", "0.6231017", "0.6202274", "0.6174703", "0.6144365", "0.61223555", "0.60255855", "0.6005689", "0.59722674", "0.59345156", "0.59266937", "0.5924303", "0.591166", "0.58900225", "0.58856314", "0.58796775", "0.58704174", "0.5867...
0.0
-1
Constructor for customized single uploaders.
public SingleUploader(IUploadStatus status, Button button) { this(status, button, null); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public SingleUploader() {\n this(null);\n }", "public Uploader() {\n super();\n }", "public SingleUploader(IUploadStatus status) {\n this(status, new Button());\n }", "public UploadManager() {\n }", "public UploadSvl() {\r\n\t\tsuper();\r\n\t}", "public CompleteMultipartUploadRequest() {}"...
[ "0.7929994", "0.7099889", "0.6891133", "0.6644051", "0.64785653", "0.6132109", "0.57241184", "0.56131536", "0.5558317", "0.5540391", "0.5533989", "0.5503787", "0.5488352", "0.5443487", "0.54114395", "0.54102004", "0.5397561", "0.536557", "0.5358645", "0.53519106", "0.5310913"...
0.680895
3
Inflate the menu; this adds items to the action bar if it is present.
@Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.add_visiting_place, menu); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tMenuInflater inflater = getMenuInflater();\n \tinflater.inflate(R.menu.main_activity_actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {...
[ "0.7246102", "0.7201358", "0.7194834", "0.7176498", "0.71066517", "0.7039537", "0.7037961", "0.70112145", "0.70094734", "0.69807225", "0.6944953", "0.69389373", "0.6933199", "0.6916928", "0.6916928", "0.6891486", "0.68831646", "0.68754137", "0.68745375", "0.68621665", "0.6862...
0.0
-1
Handle action bar item clicks here. The action bar will automatically handle clicks on the Home/Up button, so long as you specify a parent activity in AndroidManifest.xml.
@Override public boolean onOptionsItemSelected(MenuItem item) { int id = item.getItemId(); if (id == R.id.action_settings) { return true; } return super.onOptionsItemSelected(item); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onOptionsItemSelected(MenuItem item) { Handle action bar item clicks here. The action bar will\n // automatically handle clicks on the Home/Up button, so long\n // as you specify a parent activity in AndroidManifest.xml.\n\n //\n // HANDLE BACK BUTTON\n ...
[ "0.7904669", "0.78062934", "0.77666116", "0.7727495", "0.7631956", "0.7622029", "0.75855523", "0.7530999", "0.7488249", "0.74583405", "0.74583405", "0.74391454", "0.742199", "0.7403733", "0.73921114", "0.7387281", "0.73795027", "0.73708874", "0.7363864", "0.7356251", "0.73459...
0.0
-1
/ Uri method to get image file path
@SuppressWarnings("deprecation") public String getPath(Uri uri) { String[] projection = { MediaStore.Images.Media.DATA }; Cursor cursor = managedQuery(uri, projection, null, null, null); int column_index = cursor .getColumnIndexOrThrow(MediaStore.Images.Media.DATA); cursor.moveToFirst(); return cursor.getString(column_index); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getPictureUri();", "java.lang.String getImagePath();", "String getImagePath();", "String getImagePath();", "public abstract String getFotoPath();", "@SuppressLint(\"SimpleDateFormat\")\n public Uri getOutputImageFileUri(Context ctx) {\n\n String tstamp = new SimpleDateF...
[ "0.7706004", "0.76511556", "0.75241745", "0.75241745", "0.7331533", "0.7228246", "0.7133942", "0.706224", "0.69936204", "0.6966628", "0.68963903", "0.683157", "0.679583", "0.6795545", "0.6787967", "0.6784887", "0.67844266", "0.6779488", "0.6771424", "0.6767576", "0.66972363",...
0.6747201
20
TODO Autogenerated method stub
@Override public void onUpgrade(SQLiteDatabase arg0, int arg1, int arg2) { }
{ "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
Text area for displaying contents
@Override public void start(Stage primaryStage) { TextArea clientTA = new TextArea(); TextArea serverTA = new TextArea(); serverTA.setEditable(false); VBox vBox = new VBox(10); Label lblClient = new Label("Client"); Label lblServer = new Label("Server"); vBox.getChildren().addAll(lblServer, serverTA, lblClient, clientTA); vBox.setPadding(new Insets(10)); // Create a scene and place it in the stage Scene scene = new Scene(vBox, 450, 450); primaryStage.setTitle("Client"); primaryStage.setScene(scene); primaryStage.show(); // Gives the text area focus when the application starts clientTA.requestFocus(); // Send text back to the server clientTA.setOnKeyPressed(event -> { if(event.getCode() == KeyCode.ENTER){ try { String[] sa = clientTA.getText().split("\n"); toServer.writeUTF(sa[sa.length - 1]); toServer.flush(); } catch (IOException ex) { ex.printStackTrace(); } } }); try { // Create a socket to connect to the server Socket socket = new Socket("localhost", 8000); // Create an input stream to receive data from the server fromServer = new DataInputStream(socket.getInputStream()); // Create an output stream to send data to the server toServer = new DataOutputStream(socket.getOutputStream()); } catch (IOException ex) { clientTA.appendText(ex.toString() + "\n"); } new Thread(() -> { try { while (true) { // Receive text from the server String message = fromServer.readUTF(); // Display message in text area serverTA.appendText(message + "\n"); toServer.flush(); } } catch (IOException ex) { ex.printStackTrace(); } }).start(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "TEXTAREA createTEXTAREA();", "public TextDisplay(){\n // Default values for all TextDisplays \n fontSize = 20.0f;\n fontColor = new Color(0, 0, 0);\n fieldWidth = 100;\n fieldHeight = 30;\n drawStringX = 0;\n drawStringY = 15;\n input = \"\";\n hasBa...
[ "0.71082276", "0.7104369", "0.7097269", "0.7050772", "0.70281357", "0.6799282", "0.6785119", "0.6732542", "0.67184705", "0.66220933", "0.6601622", "0.65747184", "0.6563819", "0.65401065", "0.6534503", "0.6397463", "0.63449997", "0.63246506", "0.6295549", "0.6287169", "0.62734...
0.0
-1
Add particle to engine
public void add(Particle particle) { this.particles.add(particle); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Particles particles();", "public void spawnParticle(String particle, double x, double y, double z, double dx, double dy, double dz, double speed, int count);", "protected void playParticle(){\n\t\teffectData.getPlayParticles().playParticles(effectData, effectData.getDisplayAt());\n\t}", "@External\r\n\t@Clie...
[ "0.7365412", "0.7178631", "0.7113928", "0.7029262", "0.6970497", "0.69559187", "0.6900228", "0.67564696", "0.668811", "0.668033", "0.6651162", "0.65242326", "0.64870787", "0.6371064", "0.6351898", "0.6328279", "0.6323555", "0.63193333", "0.6220663", "0.61626494", "0.61371255"...
0.75336474
0
Tick all particles and remove dead particles
public void onTick() { // Tick all particles Iterator<Particle> iterator = this.particles.iterator(); while (iterator.hasNext()) { Particle particle = iterator.next(); // Tick this particle particle.onTick(); // Remove particle when removed flag is set if (particle.removed) { iterator.remove(); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void tick() {\n try {\n getActiveParticles().stream().filter((p) -> (p != null)).filter((p) -> (p.active)).forEach((p) -> {\n p.tick();\n });\n } catch (java.util.ConcurrentModificationException ex) {}\n }", "public void update() {\n Iter...
[ "0.7423599", "0.68614215", "0.64476395", "0.62709546", "0.6242126", "0.62121993", "0.6206372", "0.6136727", "0.61242974", "0.602945", "0.6023285", "0.60172254", "0.60085195", "0.5951178", "0.59414846", "0.59387875", "0.5926092", "0.5866054", "0.58593184", "0.5803565", "0.5788...
0.7755452
0
Get user input from editor and save product into database.
private void saveProduct() { // Read from input fields // Use trim to eliminate leading or trailing white space String nameString = mNameEditText.getText().toString().trim(); String InfoString = mDescriptionEditText.getText().toString().trim(); String PriceString = mPriceEditText.getText().toString().trim(); String quantityString = mQuantityEditText.getText().toString().trim(); // Check if this is supposed to be a new Product // and check if all the fields in the editor are blank if (mCurrentProductUri == null && TextUtils.isEmpty(nameString) && TextUtils.isEmpty(InfoString) && TextUtils.isEmpty(PriceString) && TextUtils.isEmpty(quantityString)) { // Since no fields were modified, we can return early without creating a new Product. // No need to create ContentValues and no need to do any ContentProvider operations. return; } // Create a ContentValues object where column names are the keys, // and Product attributes from the editor are the values. ContentValues values = new ContentValues(); values.put(ProductContract.productEntry.COLUMN_product_NAME, nameString); values.put(ProductContract.productEntry.COLUMN_Product_description, InfoString); int price = 0; if (!TextUtils.isEmpty(PriceString)) { price = Integer.parseInt(PriceString); } values.put(ProductContract.productEntry.COLUMN_product_price, price); int quantity = 0; if (!TextUtils.isEmpty(quantityString)) { quantity = Integer.parseInt(quantityString); } values.put(productEntry.COLUMN_product_Quantity, quantity); // image Bitmap icLanucher = BitmapFactory.decodeResource(getResources(), R.mipmap.ic_launcher); Bitmap bitmap = ((BitmapDrawable) mImageView.getDrawable()).getBitmap(); if (!equals(icLanucher, bitmap) && mImageURI != null) { values.put(ProductContract.productEntry.COLUMN_product_image, mImageURI.toString()); } // validate all the required information if (TextUtils.isEmpty(nameString) || (quantityString.equalsIgnoreCase("0")) || TextUtils.isEmpty(PriceString)) { Toast.makeText(this, getString(R.string.insert_Product_failed), Toast.LENGTH_SHORT).show(); } else { // Determine if this is a new or existing Product by checking if mCurrentProductUri is null or not if (mCurrentProductUri == null) { // This is a NEW Product, so insert a new pet into the provider, // returning the content URI for the new Product. Uri newUri = getContentResolver().insert(ProductContract.productEntry.CONTENT_URI, values); // Show a toast message depending on whether or not the insertion was successful. if (newUri == null) { // If the new content URI is null, then there was an error with insertion. Toast.makeText(this, getString(R.string.editor_insert_Product_failed), Toast.LENGTH_SHORT).show(); } else { // Otherwise, the insertion was successful and we can display a toast. Toast.makeText(this, getString(R.string.editor_insert_Product_successful), Toast.LENGTH_SHORT).show(); } } else { // Otherwise this is an EXISTING Product, so update the Product with content URI: mCurrentProductUri // and pass in the new ContentValues. Pass in null for the selection and selection args // because mCurrentProductUri will already identify the correct row in the database that // we want to modify. int rowsAffected = getContentResolver().update(mCurrentProductUri, values, null, null); // Show a toast message depending on whether or not the update was successful. if (rowsAffected == 0) { // If no rows were affected, then there was an error with the update. Toast.makeText(this, getString(R.string.editor_update_Product_failed), Toast.LENGTH_SHORT).show(); } else { // Otherwise, the update was successful and we can display a toast. Toast.makeText(this, getString(R.string.editor_update_Product_successful), Toast.LENGTH_SHORT).show(); } } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void saveProduct() {\n //Delegating to the Presenter to trigger focus loss on listener registered Views,\n //in order to persist their data\n mPresenter.triggerFocusLost();\n\n //Retrieving the data from the views and the adapter\n String productName = mEditTextProductNam...
[ "0.68007874", "0.65214807", "0.6517788", "0.6463681", "0.6402775", "0.64019495", "0.6360598", "0.6271974", "0.62365603", "0.6138098", "0.60731095", "0.6061702", "0.6054978", "0.604112", "0.5970389", "0.59290636", "0.58968025", "0.5873313", "0.58669883", "0.58656764", "0.58276...
0.70651025
0
Inflate the menu options from the res/menu/menu_editor.xml file. This adds menu items to the app bar.
@Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.menu_editor, menu); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.editor_options_menu, menu);\n\n\n return super.onCreateOptionsMenu(menu);\n }", "@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\n ...
[ "0.7636142", "0.733963", "0.7312602", "0.7290822", "0.7290822", "0.72191536", "0.71036094", "0.69624186", "0.68234146", "0.68234146", "0.67736095", "0.6749282", "0.6712346", "0.6693496", "0.6682906", "0.6682906", "0.6680154", "0.6680154", "0.6680154", "0.6677035", "0.6668066"...
0.7269258
12
This method is called after invalidateOptionsMenu(), so that the menu can be updated (some menu items can be hidden or made visible).
@Override public boolean onPrepareOptionsMenu(Menu menu) { super.onPrepareOptionsMenu(menu); // If this is a new Product, hide the "Delete" menu item. if (mCurrentProductUri == null) { MenuItem menuItem = menu.findItem(R.id.action_delete); menuItem.setVisible(false); } return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onCreateOptionsMenu(Menu menu){\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.order_list_actions,menu);\n if(isFinalized){\n MenuItem item = menu.findItem(R.id.action_finalized);\n item.setVisible(false);\n ...
[ "0.7736288", "0.7474999", "0.73780805", "0.73699236", "0.73699236", "0.72821057", "0.72796696", "0.72352916", "0.72136414", "0.71982384", "0.7131405", "0.7123961", "0.7085168", "0.7082515", "0.70753133", "0.70728153", "0.703503", "0.7032985", "0.70290244", "0.7027776", "0.698...
0.0
-1
User clicked on a menu option in the app bar overflow menu
@Override public boolean onOptionsItemSelected(MenuItem item) { switch (item.getItemId()) { // Respond to a click on the "Save" menu option case R.id.action_save: // Save Product to database saveProduct(); String nameString = mNameEditText.getText().toString().trim(); String PriceString = mPriceEditText.getText().toString().trim(); String quantityString = mQuantityEditText.getText().toString().trim(); // validate all the required information if (!(TextUtils.isEmpty(nameString) || (quantityString.equalsIgnoreCase("0")) || TextUtils.isEmpty(PriceString))) { // Exit activity finish(); } return true; // Respond to a click on the "Delete" menu option case R.id.action_delete: // Pop up confirmation dialog for deletion showDeleteConfirmationDialog(); return true; // Respond to a click on the "Up" arrow button in the app bar case android.R.id.home: // If the pet hasn't changed, continue with navigating up to parent activity // which is the {@link CatalogActivity}. if (!mPetHasChanged) { NavUtils.navigateUpFromSameTask(EditorActivity.this); return true; } // Otherwise if there are unsaved changes, setup a dialog to warn the user. // Create a click listener to handle the user confirming that // changes should be discarded. DialogInterface.OnClickListener discardButtonClickListener = new DialogInterface.OnClickListener() { @Override public void onClick(DialogInterface dialogInterface, int i) { // User clicked "Discard" button, navigate to parent activity. NavUtils.navigateUpFromSameTask(EditorActivity.this); } }; // Show a dialog that notifies the user they have unsaved changes showUnsavedChangesDialog(discardButtonClickListener); return true; } return super.onOptionsItemSelected(item); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void onMenuItemClicked();", "void clickFmFromMenu();", "void clickAmFromMenu();", "public void menuClicked(MenuItem menuItemSelected);", "public void menuItemClicked( Menu2DEvent e );", "@Override\n public void onMenuClick() {\n Toast.makeText(activity.getApplicationContext(), \...
[ "0.7620624", "0.74582714", "0.7439771", "0.73414093", "0.7304234", "0.69976187", "0.69085217", "0.68530345", "0.685259", "0.6851725", "0.6815219", "0.679749", "0.679749", "0.679749", "0.679749", "0.67555887", "0.6752884", "0.6752234", "0.6744205", "0.6739605", "0.67380905", ...
0.0
-1
User clicked "Discard" button, navigate to parent activity.
@Override public void onClick(DialogInterface dialogInterface, int i) { NavUtils.navigateUpFromSameTask(EditorActivity.this); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void onDiscardClick(){\n if (mHomeChecked){ // at Home Checkmark\n NavUtils.navigateUpFromSameTask(EditSymptomActivity.this);\n }\n if (!mHomeChecked) { // at BackPressed\n finish();\n }\n }", "@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t...
[ "0.77920556", "0.6648744", "0.66188097", "0.65739435", "0.6562168", "0.65511334", "0.65176535", "0.65063024", "0.6470091", "0.64457875", "0.6432481", "0.6432481", "0.64202315", "0.63834745", "0.63798004", "0.63708395", "0.6368377", "0.636595", "0.6365485", "0.6363731", "0.635...
0.0
-1
This method is called when the back button is pressed.
@Override public void onBackPressed() { // If the pet hasn't changed, continue with handling back button press if (!mPetHasChanged) { super.onBackPressed(); return; } // Otherwise if there are unsaved changes, setup a dialog to warn the user. // Create a click listener to handle the user confirming that changes should be discarded. DialogInterface.OnClickListener discardButtonClickListener = new DialogInterface.OnClickListener() { @Override public void onClick(DialogInterface dialogInterface, int i) { // User clicked "Discard" button, close the current activity. finish(); } }; // Show dialog that there are unsaved changes showUnsavedChangesDialog(discardButtonClickListener); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n // Detect when the back button is pressed\n public void onBackPressed() {\n\n // Let the system handle the back button\n\n super.onBackPressed();\n\n }", "@Override\n\tpublic void onBackPressed() {\n\t\tBack();\n\t}", "@Override\r\n\tpublic void backButton() {\n\t\t\r\n\t}", ...
[ "0.8694827", "0.85572207", "0.8540487", "0.85141873", "0.850545", "0.8492643", "0.8492643", "0.8490665", "0.84883857", "0.8469986", "0.8461182", "0.8454182", "0.84454715", "0.84454715", "0.84454715", "0.84454715", "0.84454715", "0.84454715", "0.84454715", "0.84454715", "0.844...
0.0
-1
User clicked "Discard" button, close the current activity.
@Override public void onClick(DialogInterface dialogInterface, int i) { finish(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void onClickCancel(View view) {\n this.finish();\n }", "@Override\n public void onPositiveClick() {\n quitThisActivity();\n }", "public void onCancelClicked() {\n close();\n }", "@Override\n\t\t\tp...
[ "0.7094227", "0.7030127", "0.70030695", "0.69513863", "0.69374704", "0.6918861", "0.6903609", "0.688826", "0.6832851", "0.6728755", "0.6728755", "0.67005914", "0.67005914", "0.6698896", "0.66313297", "0.662211", "0.662211", "0.66169196", "0.6605242", "0.66011524", "0.65958", ...
0.0
-1
Since the editor shows all Product attributes, define a projection that contains all columns from the Product table
@Override public Loader<Cursor> onCreateLoader(int i, Bundle bundle) { String[] projection = { ProductContract.productEntry._ID, productEntry.COLUMN_product_NAME, ProductContract.productEntry.COLUMN_Product_description, ProductContract.productEntry.COLUMN_product_price, ProductContract.productEntry.COLUMN_product_Quantity, ProductContract.productEntry.COLUMN_product_image}; // This loader will execute the ContentProvider's query method on a background thread return new CursorLoader(this, // Parent activity context mCurrentProductUri, // Query the content URI for the current Product projection, // Columns to include in the resulting Cursor null, // No selection clause null, // No selection arguments null); // Default sort order }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static String[] columnProjection() {\n\n\t\treturn new String[]{KEY_ID, KEY_ADDRESS, KEY_NAME, KEY_VOLUME, KEY_POOL_LOCALE, KEY_FINISH, KEY_SANITIZER, KEY_PUMP_BRAND, KEY_PUMP_MODEL, KEY_FILTER, KEY_CLEANER_BRAND, KEY_CLEANER_MODEL, KEY_TRAFFIC, KEY_MIN_DEPTH, KEY_MAX_DEPTH, KEY_TILING, KEY_COVER, KEY_ATTAC...
[ "0.65377563", "0.6403727", "0.63849664", "0.61936885", "0.6189415", "0.6141305", "0.6063587", "0.60475737", "0.6046991", "0.5981325", "0.5955626", "0.59126407", "0.588205", "0.588194", "0.5857915", "0.58164096", "0.58086693", "0.57724285", "0.57702214", "0.57478046", "0.57430...
0.0
-1
Bail early if the cursor is null or there is less than 1 row in the cursor
@Override public void onLoadFinished(Loader<Cursor> loader, Cursor cursor) { if (cursor == null || cursor.getCount() < 1) { return; } // Proceed with moving to the first row of the cursor and reading data from it // (This should be the only row in the cursor) if (cursor.moveToFirst()) { // Find the columns of pet attributes that we're interested in int nameColumnIndex = cursor.getColumnIndex(productEntry.COLUMN_product_NAME); int infoColumnIndex = cursor.getColumnIndex(ProductContract.productEntry.COLUMN_Product_description); int priceColumnIndex = cursor.getColumnIndex(productEntry.COLUMN_product_price); int quantityColumnIndex = cursor.getColumnIndex(ProductContract.productEntry.COLUMN_product_Quantity); int imageColumnIndex = cursor.getColumnIndex(ProductContract.productEntry.COLUMN_product_image); // Extract out the value from the Cursor for the given column index String name = cursor.getString(nameColumnIndex); String info = cursor.getString(infoColumnIndex); int price = cursor.getInt(priceColumnIndex); int quantity = cursor.getInt(quantityColumnIndex); String imageURI = cursor.getString(imageColumnIndex); // Update the views on the screen with the values from the database mNameEditText.setText(name); mDescriptionEditText.setText(info); mPriceEditText.setText(Integer.toString(price)); mQuantityEditText.setText(Integer.toString(quantity)); if (imageURI != null) { mImageView.setImageURI(Uri.parse(imageURI)); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isBeforeFirst() throws SQLException {\n/* 151 */ return (this.currentPositionInEntireResult < 0);\n/* */ }", "public boolean isFirst() throws SQLException {\n/* 208 */ return (this.currentPositionInEntireResult == 0);\n/* */ }", "@Override\n public boolean isEmpty() {\...
[ "0.66999406", "0.666759", "0.6425951", "0.6304414", "0.6164789", "0.61238295", "0.6053333", "0.5955592", "0.5923776", "0.58544356", "0.5844428", "0.5842813", "0.580352", "0.5764128", "0.57490855", "0.5709863", "0.56662697", "0.5627093", "0.56225795", "0.5620485", "0.5581462",...
0.0
-1
If the loader is invalidated, clear out all the data from the input fields.
@Override public void onLoaderReset(Loader<Cursor> loader) { mNameEditText.setText(""); mDescriptionEditText.setText(""); mPriceEditText.setText(""); mQuantityEditText.setText(""); mImageView.setImageDrawable(null); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onLoaderReset(Loader<Cursor> loader) {\n mNameEditText.setText(\"\");\n mAddressEditText.setText(\"\");\n mNumberEditText.setText(\"\");\n mBirthTextView.setText(\"\");\n mImagePathTextView.setText(\"\");\n\n }", "@Override\n public void onLoade...
[ "0.7020653", "0.6931106", "0.68739367", "0.67665035", "0.6637083", "0.6539127", "0.6513346", "0.6471275", "0.64172286", "0.6357172", "0.63501793", "0.63462865", "0.6291218", "0.6248721", "0.6245697", "0.62371016", "0.6169398", "0.6146195", "0.6143728", "0.61139643", "0.610070...
0.6767762
3
Show a dialog that warns the user there are unsaved changes that will be lost if they continue leaving the editor.
private void showUnsavedChangesDialog( DialogInterface.OnClickListener discardButtonClickListener) { // Create an AlertDialog.Builder and set the message, and click listeners // for the postivie and negative buttons on the dialog. AlertDialog.Builder builder = new AlertDialog.Builder(this); builder.setMessage(R.string.unsaved_changes_dialog_msg); builder.setPositiveButton(R.string.discard, discardButtonClickListener); builder.setNegativeButton(R.string.keep_editing, new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int id) { // User clicked the "Keep editing" button, so dismiss the dialog // and continue editing the Product. if (dialog != null) { dialog.dismiss(); } } }); // Create and show the AlertDialog AlertDialog alertDialog = builder.create(); alertDialog.show(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void showUnsavedChangesDialog() {\n // Create an AlertDialog.Builder and set the message and click listeners for the positive\n // and negative buttons.\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setMessage(R.string.you_have_unsaved_messages_dialog)...
[ "0.77142215", "0.76993936", "0.75571877", "0.7502584", "0.7493065", "0.7473395", "0.7473395", "0.7473395", "0.74687225", "0.746612", "0.74489826", "0.7439147", "0.7435423", "0.7427428", "0.74236125", "0.74143314", "0.7381002", "0.7315648", "0.7284008", "0.71627575", "0.711321...
0.7328069
17
User clicked the "Keep editing" button, so dismiss the dialog and continue editing the Product.
public void onClick(DialogInterface dialog, int id) { if (dialog != null) { dialog.dismiss(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void editProduct() {\n\t\tif (!CartController.getInstance().isCartEmpty()) {\n\t\t\tSystem.out.println(\"Enter Product Id - \");\n\t\t\tint productId = getValidInteger(\"Enter Product Id -\");\n\t\t\twhile (!CartController.getInstance().isProductPresentInCart(\n\t\t\t\t\tproductId)) {\n\t\t\t\tSystem.out.p...
[ "0.6809409", "0.6644516", "0.65843433", "0.63709575", "0.6355368", "0.62948585", "0.62882394", "0.62557274", "0.62338424", "0.62111115", "0.61921024", "0.6149299", "0.614346", "0.61380124", "0.61345536", "0.6110909", "0.6099003", "0.6096115", "0.6081563", "0.6070885", "0.6052...
0.0
-1
Prompt the user to confirm that they want to delete this Product.
private void showDeleteConfirmationDialog() { // Create an AlertDialog.Builder and set the message, and click listeners // for the positive and negative buttons on the dialog. AlertDialog.Builder builder = new AlertDialog.Builder(this); builder.setMessage(R.string.delete_dialog_msg); builder.setPositiveButton(R.string.delete, new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int id) { // User clicked the "Delete" button, so delete the pet. deleteProduct(); } }); builder.setNegativeButton(R.string.cancel, new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int id) { // User clicked the "Cancel" button, so dismiss the dialog // and continue editing the Product. if (dialog != null) { dialog.dismiss(); } } }); // Create and show the AlertDialog AlertDialog alertDialog = builder.create(); alertDialog.show(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void delete() {\n\t\tComponents.questionDialog().message(\"Are you sure?\").callback(answeredYes -> {\n\n\t\t\t// if confirmed, delete the current product PropertyBox\n\t\t\tdatastore.delete(TARGET, viewForm.getValue());\n\t\t\t// Notify the user\n\t\t\tNotification.show(\"Product deleted\", Type.TRAY_NOTI...
[ "0.806434", "0.7422203", "0.74027663", "0.72269696", "0.7161068", "0.71523416", "0.7103145", "0.70911556", "0.7048825", "0.691969", "0.6859437", "0.6853279", "0.68409705", "0.6811377", "0.6782016", "0.6766541", "0.6760986", "0.67266566", "0.6715106", "0.6711705", "0.67083234"...
0.7449902
1
User clicked the "Delete" button, so delete the pet.
public void onClick(DialogInterface dialog, int id) { deleteProduct(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void deletePet() {\r\n // Only perform the delete if this is an existing pet.\r\n// if (mCurrentPetUri != null) {\r\n// // Call the ContentResolver to delete the pet at the given content URI.\r\n// // Pass in null for the selection and selection args because the mCurrent...
[ "0.8247127", "0.81115407", "0.74936056", "0.7325145", "0.7299699", "0.69814867", "0.6930065", "0.6834753", "0.67988676", "0.67277855", "0.66399103", "0.6633959", "0.6633388", "0.6629005", "0.6592829", "0.65926254", "0.6551436", "0.65251756", "0.6501324", "0.64729685", "0.6466...
0.0
-1
User clicked the "Cancel" button, so dismiss the dialog and continue editing the Product.
public void onClick(DialogInterface dialog, int id) { if (dialog != null) { dialog.dismiss(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@FXML\n void cancelModifyProductButton(ActionEvent event) throws IOException {\n\n Alert alert = new Alert(Alert.AlertType.CONFIRMATION);\n alert.setTitle(\"Alert\");\n alert.setContentText(\"Are you sure you want cancel changes and return to the main screen?\");\n Optional<ButtonTyp...
[ "0.6952182", "0.66363525", "0.66037416", "0.6591888", "0.65794337", "0.65644795", "0.6561736", "0.6538497", "0.65334535", "0.65328985", "0.651411", "0.64887834", "0.64811856", "0.64779526", "0.64442015", "0.6440377", "0.6437297", "0.64318264", "0.64262533", "0.6421147", "0.64...
0.0
-1
Perform the deletion of the pet in the database.
private void deleteProduct() { // Only perform the delete if this is an existing Product. if (mCurrentProductUri != null) { // Call the ContentResolver to delete the pet at the given content URI. // Pass in null for the selection and selection args because the mCurrentProductUri // content URI already identifies the pet that we want. int rowsDeleted = getContentResolver().delete(mCurrentProductUri, null, null); // Show a toast message depending on whether or not the delete was successful. if (rowsDeleted == 0) { // If no rows were deleted, then there was an error with the delete. Toast.makeText(this, getString(R.string.editor_delete_product_failed), Toast.LENGTH_SHORT).show(); } else { // Otherwise, the delete was successful and we can display a toast. Toast.makeText(this, getString(R.string.editor_delete_product_successful), Toast.LENGTH_SHORT).show(); } } // Close the activity finish(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void deletePet() {\r\n // Only perform the delete if this is an existing pet.\r\n// if (mCurrentPetUri != null) {\r\n// // Call the ContentResolver to delete the pet at the given content URI.\r\n// // Pass in null for the selection and selection args because the mCurrent...
[ "0.8152022", "0.80165654", "0.7595751", "0.75055355", "0.74316025", "0.69439244", "0.6940839", "0.67958134", "0.66999906", "0.6642893", "0.6600595", "0.65644544", "0.6486312", "0.64754343", "0.64398295", "0.6406081", "0.6401575", "0.6391305", "0.63539565", "0.63520706", "0.63...
0.6046166
80
get result data from selecting an image
public void onActivityResult(int requestCode, int resultCode, Intent data) { super.onActivityResult(requestCode, resultCode, data); if (requestCode == PermissionUtils.MY_PERMISSIONS_READ_EXTERNAL_STORAGE && resultCode == Activity.RESULT_OK) { Uri selectedImage = data.getData(); mImageURI = Uri.parse(selectedImage.toString()); mImageView.setImageURI(selectedImage); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "BufferedImage getSelectedImage();", "public BufferedImage readImage(String id) {\n BufferedImage bufImg = null;\n try {\n PreparedStatement pstmt = conn.prepareStatement(\n \"SELECT photo FROM vehicles WHERE veh_reg_no = ?\");\n pstmt.setString(1, id);\n System.out...
[ "0.68985426", "0.67200035", "0.636553", "0.636553", "0.636553", "0.62051225", "0.6198043", "0.6131745", "0.6131434", "0.6129003", "0.6119684", "0.61177593", "0.6094517", "0.60819644", "0.6054358", "0.6051018", "0.60291374", "0.60079366", "0.59770274", "0.5941887", "0.5935576"...
0.0
-1
the method checks if two bitmaps are the same
public boolean equals(Bitmap bitmap1, Bitmap bitmap2) { ByteBuffer buffer1 = ByteBuffer.allocate(bitmap1.getHeight() * bitmap1.getRowBytes()); bitmap1.copyPixelsToBuffer(buffer1); ByteBuffer buffer2 = ByteBuffer.allocate(bitmap2.getHeight() * bitmap2.getRowBytes()); bitmap2.copyPixelsToBuffer(buffer2); return Arrays.equals(buffer1.array(), buffer2.array()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static boolean areImagesSame(Image a, Image b) {\n if(a.getWidth() == b.getWidth() && a.getHeight() == b.getHeight()) {\n for(int x=0; x<(int) a.getWidth(); x++) {\n for(int y=0; y<(int) a.getHeight(); y++) {\n // If even a single pixel doesn't match color...
[ "0.69470924", "0.6403489", "0.6401763", "0.63533187", "0.6171845", "0.6115203", "0.60992295", "0.60880154", "0.60442674", "0.5994034", "0.5980506", "0.59778243", "0.5964834", "0.5936396", "0.59275573", "0.5897309", "0.588923", "0.58817536", "0.5814345", "0.581433", "0.577784"...
0.7588333
0
Unmodifiable view of EndTimes
public interface ReadOnlyEndTimes { /** * Returns an unmodifiable view of the endTimes list. * This list will not contain any duplicate endTimes. */ ObservableList<EndTime> getEndTimeList(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public Date getEndTime() {\n return endTime;\n }", "public int getTimeEnd() {\r\n return timeEnd;\r\n }", "long getEndTime() {\n return endTime;\n }", "public long getEndTs() {\n return this.startTimestamp + this.resolution * this.size;\n }", "@Overr...
[ "0.67622596", "0.6670086", "0.6635485", "0.65608704", "0.6559543", "0.6545695", "0.6545695", "0.6545695", "0.65390676", "0.6530279", "0.65266794", "0.6473788", "0.64493454", "0.64493454", "0.64493454", "0.6440894", "0.6401497", "0.6389848", "0.6377362", "0.63768214", "0.63552...
0.6253936
33
Returns an unmodifiable view of the endTimes list. This list will not contain any duplicate endTimes.
ObservableList<EndTime> getEndTimeList();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public long getEndTs() {\n return this.startTimestamp + this.resolution * this.size;\n }", "@Override\n public Date getEndTime() {\n return endTime;\n }", "public ArrayList<Time> getTimes() {\n\t\treturn times;\n\t}", "public interface ReadOnlyEndTimes {\n\n /**\n * Returns an u...
[ "0.6287446", "0.6008628", "0.59542537", "0.5946941", "0.5933246", "0.5927113", "0.59252375", "0.5920071", "0.59100735", "0.59100735", "0.59100735", "0.59046334", "0.5903111", "0.58995485", "0.5899185", "0.5890172", "0.5881276", "0.58803314", "0.58725655", "0.58372325", "0.578...
0.6737837
0
Enable or disable the phone's vibration
public void setVibrate(Boolean vibrate_on){ this.vibrate_on = vibrate_on; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setVibrationOff() {\n\n }", "public void setVibrationOn() {\n\n }", "static void vibrate() {\n String currentState = SettingDetail.settingDetails.get(VIBRATION_SETTING).getCurrentState();\n int ringerMode = audioManager.getRingerMode();\n if (currentState.equals(context.g...
[ "0.8086496", "0.79745364", "0.72394854", "0.719436", "0.71925306", "0.70339197", "0.68982655", "0.6800028", "0.6554775", "0.654955", "0.64985424", "0.64677304", "0.64636123", "0.64079326", "0.6374393", "0.6290031", "0.62613404", "0.6235523", "0.61874485", "0.618217", "0.61702...
0.6800082
7
Enable or disable the app's sound
public void setSound(Boolean sound_on){ this.sound_on = sound_on; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void enableSound() {\n soundToggle = true;\n }", "public void enableSystemSound() {\n if (this.mAppContext != null) {\n Log.m19d(TAG, \"enableSystemSound\");\n try {\n StatusBarProvider.getInstance().disable(this.mAppContext, 0);\n setStreamMu...
[ "0.8306414", "0.78307724", "0.778906", "0.7669581", "0.74396986", "0.735329", "0.7345842", "0.7310475", "0.72214484", "0.7082853", "0.7076029", "0.7032358", "0.70001984", "0.6993688", "0.6838216", "0.6787152", "0.67538786", "0.67080307", "0.6648724", "0.6604866", "0.6604866",...
0.7389944
5
creates a new AudioController
public AudioController(){ sounds = new LinkedList<>(); removables = new LinkedList<>(); availableIds = new HashSet<>(); populateIds(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static SoundController getInstance() {\n\t\tif (controller == null) {\n\t\t\tcontroller = new SoundController();\n\t\t}\n\t\treturn controller;\n\t}", "private Audio() {}", "protected AudioController(SoundSource source) {\r\n\t\tthis.source = source;\r\n\t}", "public SoundController() {\r\n // init...
[ "0.6654493", "0.6647912", "0.6416208", "0.62134635", "0.6151284", "0.61296475", "0.59957826", "0.5985416", "0.5865886", "0.58320993", "0.57645744", "0.5720727", "0.5671496", "0.5671203", "0.56172794", "0.56172794", "0.5607064", "0.56009066", "0.55529445", "0.55419856", "0.553...
0.7124925
0
stops and terminates the current Background Sound and starts a new one based on the given path
public void playBackground(String path){ stopBackground(); loopingSound = new Sound("/res/sounds/" + path,-1,true); activeSounds++; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void backgroundMusic(String path) {\n if (Objects.equals(playingFile, path)) return;\n playingFile = path;\n\n\n // stop if playing\n stop();\n\n if (path == null) {\n // nothing to play\n playingClip = null;\n return;\n }\n\n ...
[ "0.7537355", "0.6800943", "0.6771454", "0.6763308", "0.66586685", "0.6604939", "0.6481024", "0.64543855", "0.64157313", "0.6401415", "0.63830215", "0.63435864", "0.63156223", "0.6275047", "0.6259141", "0.61889255", "0.61829215", "0.61815304", "0.6179533", "0.61759704", "0.613...
0.78476775
0
Stops any playing background sound
public void stopBackground(){ if(loopingSound != null){ loopingSound.terminate(); } loopingSound = null; activeSounds--; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void stop() {\n\t\tsound.stop();\n\t}", "public synchronized void stopSound() {\r\n running = false;\r\n }", "public void stopBackgroundMusic()\n {\n background.stop();\n }", "public static void stop() {\r\n\r\n if (soundLoop!=null)\r\n {\r\n sound...
[ "0.82430655", "0.8221393", "0.81638956", "0.80895936", "0.80806017", "0.8036974", "0.7984207", "0.7981991", "0.79243195", "0.7820947", "0.7794422", "0.7703817", "0.76942575", "0.7614164", "0.7587384", "0.756347", "0.7561789", "0.75452834", "0.75450885", "0.7513754", "0.750023...
0.84986025
0
does internal housekeeping like terminating and destroying finished Sounds
public void update(){ Sound s; for (Sound sound : sounds) { s = sound; if (s.isFinished() && !removables.contains(s)) { removables.add(s); } } for(Sound temp : removables){ temp.terminate(); sounds.remove(temp); availableIds.add(temp.getId()); activeSounds--; } removables = new LinkedList<>(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void EndTalk() {\n this.mDeleteF = true;\n this.mReadingF = false;\n }", "public void cleanup() {\n sendBuffer(baos);\n shutdown();\n }", "protected void terminate(){\r\n\t\tsetTerminate(true);\r\n\t\tHolder holder = this.getDirectHolder();\r\n\t\tsetHolder(null);\r\n\...
[ "0.6292909", "0.6275575", "0.62056553", "0.6082889", "0.59405345", "0.5900776", "0.58998704", "0.5879129", "0.58489615", "0.584283", "0.58299965", "0.5824158", "0.5816447", "0.5815597", "0.58090323", "0.5803321", "0.5788671", "0.57789224", "0.5762564", "0.57621574", "0.575755...
0.59370995
5
Stops, terminates and removes the sound with the given id
public void stopSound(int id){ for(Sound s: sounds){ if(s.getId() == id){ s.terminate(); } removables.add(s); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void StopMusic(int id) {\n\t\t\n\t\tif(id == 1) {\n if(!bm.equals(null)) {\n\n \tbm.stop();\n }\n\t\t}else if(id == 2) {\n\t\t\n if(!bmwin.equals(null)) {\n bmwin.stop();\n }\n\t\t}else if(id == 3) {\n\n if(!bmdead.equals(null)) {\n \tbmdead.stop();\n...
[ "0.751854", "0.73507917", "0.71885425", "0.7159962", "0.7145412", "0.6991262", "0.69445735", "0.6908245", "0.6891899", "0.6861674", "0.6859263", "0.67708564", "0.67611074", "0.6742738", "0.6638266", "0.65221936", "0.65150577", "0.6495857", "0.64545643", "0.6448806", "0.643350...
0.83438635
0
TODO Autogenerated method stub
@Override public boolean onSingleTapUp(MotionEvent arg0) { 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