query
stringlengths
7
33.1k
document
stringlengths
7
335k
metadata
dict
negatives
listlengths
3
101
negative_scores
listlengths
3
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
this stores the size of the buffer when we need to fill
public BucketOutBuffer(int startAddress, FileOutputStream writer, RandomAccessFile file, int bufferSize){ // PRECONDITION: writer is a FileOutPutStream of file mOffset = startAddress; // start address is the BYTE address of the start of this buffer's position in file mFile = file; mWriter = writer; BUFFER_SIZE = bufferSize; mBuffer = new byte[BUFFER_SIZE]; firstFillThreshold = ((BUFFER_SIZE+mOffset)&(0xfffff000))-mOffset; // this calculates the largest threshold // smaller than the buffer size, such that // the end of the writtend section is // aligned (multiple of 0x1000) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getBufferSize() {\n\t\treturn 0;\n\t}", "@Override\n\tpublic int getBufferSize() {\n\t\treturn 0;\n\t}", "public int getBufferSize() {\n return count;\n }", "int getBufferSize();", "@Override\n public int getBufferSize() {\n return 0;\n }", "public int size() { return buffer.length; }...
[ "0.7435478", "0.72912085", "0.7199767", "0.71251106", "0.71238726", "0.7070302", "0.7011204", "0.6961924", "0.68707275", "0.6846339", "0.6670104", "0.66494733", "0.6590218", "0.65877324", "0.6529688", "0.65271026", "0.6518055", "0.64818555", "0.64742386", "0.6386109", "0.6324...
0.0
-1
split up i into its bytes and store to the array Data input/output require a big endian format.
public void writeInt(int i) throws IOException { mBuffer[mBufferLength+3] = (byte) i; mBuffer[mBufferLength+2] = (byte) (i>>>8); mBuffer[mBufferLength+1] = (byte) (i>>>16); mBuffer[mBufferLength] = (byte) (i>>>24); mBufferLength += 4; // TODO: on the first filling of the buffer, flush when bufferLength+offset is at the end of a segment if (firstFill && ((mBufferLength >= firstFillThreshold))) { this.flush(); firstFill = false; } if (mBufferLength == BUFFER_SIZE){ this.flush(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static byte[] toLEBytes(int i) {\n\t\treturn ByteBuffer.allocate(4).order(ByteOrder.LITTLE_ENDIAN).putInt(i).array();\n\t}", "private byte[] intToBytes(int i) {\n\t\tb.clear();\n\t\treturn b.order(ByteOrder.LITTLE_ENDIAN).putInt(i).array();\n\t}", "private byte[] intToByteArray(int i) {\n ByteBuf...
[ "0.6883771", "0.6652358", "0.66378534", "0.6573522", "0.64409155", "0.62003696", "0.60926163", "0.6085668", "0.60832185", "0.60363907", "0.60221225", "0.6012519", "0.59328675", "0.5892875", "0.58795184", "0.5857177", "0.58102405", "0.5807131", "0.576785", "0.5763432", "0.5744...
0.55117637
37
writes the buffer's data to the disk update the offset to take into account
public void flush() throws IOException { mFile.seek(mOffset); mWriter.write(mBuffer, 0, mBufferLength); mOffset += mBufferLength; mBufferLength = 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void flushInternalBuffer() {\n\n //Strongly set the last byte to \"0A\"(new line)\n if (mPos < LOG_BUFFER_SIZE_MAX) {\n buffer[LOG_BUFFER_SIZE_MAX - 1] = 10;\n }\n\n long t1, t2;\n\n //Save buffer to SD card.\n t1 = System.currentTimeMillis();\n ...
[ "0.67935866", "0.67810774", "0.6419498", "0.6396374", "0.639202", "0.63849115", "0.6382286", "0.637679", "0.6322945", "0.6294235", "0.624924", "0.6220397", "0.61856914", "0.6135839", "0.6105572", "0.6077309", "0.60479206", "0.6034275", "0.60123944", "0.60110354", "0.60076076"...
0.63625854
8
remove record in table GuestPlayer (case: user is anon
public void removeGuestPlayerFromDB(String username) throws SQLException { PreparedStatement stm = T3DB.getConnection().prepareStatement( "delete from GuestPlayer where displayname=?"); stm.setString(1, username); stm.executeUpdate(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "CratePrize removeEditingUser(Player player);", "private void removePlayerFromLobby() {\n\n //Added Firebase functionality assuming var player is the player who wants to leave the game.\n }", "private void deletePlayer(Player p) \r\n\t{\n\t\tlogger.info(\"Deleting player ; '\" + p.getName() +\"'\");\r...
[ "0.69699556", "0.65812516", "0.64232314", "0.64022225", "0.6283146", "0.62156016", "0.6204293", "0.6191484", "0.6168947", "0.6135719", "0.610938", "0.6079025", "0.6078444", "0.6060719", "0.6060206", "0.6002658", "0.5991673", "0.5952831", "0.59330034", "0.58979225", "0.589777"...
0.7556455
0
/ return date with format: dd/mm/yyyy
public static String Milisec2DDMMYYYY(long ts) { if (ts == 0) { return ""; } else { java.util.Calendar calendar = java.util.Calendar.getInstance(); calendar.setTime(new java.util.Date(ts)); String strTemp = Integer.toString(calendar .get(calendar.DAY_OF_MONTH)); if (calendar.get(calendar.DAY_OF_MONTH) < 10) { strTemp = "0" + strTemp; } if (calendar.get(calendar.MONTH) + 1 < 10) { return strTemp + "/0" + (calendar.get(calendar.MONTH) + 1) + "/" + calendar.get(calendar.YEAR); } else { return strTemp + "/" + (calendar.get(calendar.MONTH) + 1) + "/" + calendar.get(calendar.YEAR); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String dar_fecha(){\n Date date = new Date();\n DateFormat dateFormat = new SimpleDateFormat(\"dd/MM/yyyy\");\n return dateFormat.format(date).toString();\n\n }", "private String formatDate(Date date) {\n String resultDate;\n SimpleDateFormat dateFormat;\n date...
[ "0.7634115", "0.75286245", "0.75226927", "0.73915416", "0.73202676", "0.7260178", "0.72324854", "0.72027904", "0.71877724", "0.7136792", "0.70974314", "0.7094107", "0.7061763", "0.70283425", "0.70283425", "0.69991136", "0.6972968", "0.69454217", "0.6898928", "0.6854213", "0.6...
0.0
-1
1 2 3 4 5 6 7 8 0> vote
public static int max(int a, int b){ return (a>b) ? a:b; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Integer getVotes();", "public int calculateVotes() {\n return 1;\n }", "public static void doVote() {\n }", "public void addVote() {\n this.votes++;\n }", "public int getVotes() {\n return this.votes;\n }", "public int getVotes() {\n return votes;\n }", "public int...
[ "0.70147645", "0.69608283", "0.681962", "0.6745959", "0.6711034", "0.67054886", "0.67054886", "0.65347743", "0.6338812", "0.6295265", "0.629483", "0.62691647", "0.6098771", "0.6089081", "0.60413504", "0.6015829", "0.59963334", "0.5935402", "0.5890284", "0.5879339", "0.5846197...
0.0
-1
In this example, stack traces support is enabled by default. If you want to disable stack traces just use new ProblemModule() instead of new ProblemModule().withStackTraces()
@Bean public ObjectMapper objectMapper() { return new ObjectMapper() .registerModules(new ProblemModule(), new ConstraintViolationProblemModule()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void trace(Message msg, Throwable t) {\n\n\t}", "@Before\n public void checkStackTraceIsIncluded() {\n assumeTrue(InternalFlags.getIncludeStackTraceOption() != IncludeStackTraceOption.OFF);\n }", "void trace( Throwable msg );", "static public void displayExceptionStack( boolean displ...
[ "0.56859535", "0.5606087", "0.56048703", "0.5596371", "0.55915374", "0.555556", "0.5552459", "0.5496309", "0.5432572", "0.5426279", "0.5370188", "0.5355283", "0.5353112", "0.5332941", "0.5329279", "0.5302469", "0.52806133", "0.52769345", "0.52744824", "0.5263733", "0.5220935"...
0.0
-1
Random rnd = new Random();
private void writeOutput( final PrintWriter writer ) throws InterruptedException, IOException { double[][] numbers = new double[DATA_ROWS][DATA_COLUMNS]; for(int irow = 0; irow < DATA_ROWS; irow++) { for(int icol = 0; icol < DATA_COLUMNS; icol++) { //double number = rnd.nextDouble(); double number = irow + ( (double) icol ) / 10. + ( (double) icol ) / 100. + ( (double) icol ) / 1000. + ( (double) icol ) / 10000. + ( (double) icol ) / 100000.; Thread.sleep( SLEEP_BETWEEN_COLUMNS ); //simulating a program that's doing some other work like db retrieval writer.print( number ); writer.print( '\t' ); numbers[irow][icol] = number; } writer.println(); System.out.println( "wrote row " + irow ); } writer.flush(); writer.close(); checkOutput( numbers ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void random() {\n\n\t}", "private Random rand()\n\t{\n\t\treturn new Random();\n\t}", "public static int randomNext() { return 0; }", "Randomizer getRandomizer();", "private double getRandom() {\n return 2*Math.random() - 1;\n }", "private void setRand(){\n rand = generator.nextInt...
[ "0.84492654", "0.83165836", "0.8029547", "0.7626942", "0.75323266", "0.7521075", "0.74817765", "0.7283754", "0.7280764", "0.7171405", "0.7164157", "0.7128945", "0.70953465", "0.7074255", "0.70488894", "0.7044285", "0.70417976", "0.698822", "0.69804806", "0.6968249", "0.693791...
0.0
-1
Pokazuje menu 1. Dodaj zadanie 2. Wykonaj zadanie 3. Zamknij program
private static void showMenu() { System.out.println("1. Dodaj zadanie"); System.out.println("2. Wykonaj zadanie."); System.out.println("3. Zamknij program"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void menuInicial() {\n System.out.println(\"Boas vindas à Arena pokemon Treinador!!!\");\n System.out.println(\"Digite 1 para fazer sua inscrição\");\n System.out.println(\"Digite 2 para sair\");\n\n }", "public static void menu(){\n System.out.println(\"-Ingrese el n...
[ "0.7756866", "0.76241624", "0.76035786", "0.75910467", "0.7562533", "0.75537765", "0.75395775", "0.75358343", "0.75315243", "0.74085647", "0.73516375", "0.73405576", "0.73343986", "0.7327791", "0.7311163", "0.7308608", "0.7308456", "0.7300034", "0.7294772", "0.7293135", "0.72...
0.80362034
0
Pyta uzytkownika o dane do zadania i dodaje je do kolejki
private static void addTask() { Task task = new Task(); System.out.println("Podaj tytuł zadania"); task.setTitle(scanner.nextLine()); System.out.println("Podaj datę wykonania zadania (yyyy-mm-dd)"); while (true) { try { LocalDate parse = LocalDate.parse(scanner.nextLine(), DateTimeFormatter.ISO_LOCAL_DATE); task.setExecuteDate(parse); break; } catch (DateTimeParseException e) { System.out.println("Nieprawidłowy format daty. Spróbuj YYYY-MM-DD"); } } task.setCreationDate(LocalDate.now()); queue.offer(task); System.out.println("tutuaj"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void zapisUrok() {\r\n\r\n\t\taktualnyZostatok = getZostatok() * urokovaSadzba / 100;\r\n\t\tsetVklad(aktualnyZostatok);\r\n\r\n\t}", "public void ustawPojazdNaPoczatek()\n\t{\n\t\tSciezka pierwszaSc = droga.get(0);\n\t\tfinal double y = 10;\n\t\tpojazd.zmienPozycje(pierwszaSc.getCenterDownX(), y);\n\t}",...
[ "0.6972393", "0.69578224", "0.6833867", "0.66164136", "0.6537677", "0.6490494", "0.64698803", "0.6436976", "0.6431967", "0.6363147", "0.6359912", "0.6325653", "0.6281178", "0.62723154", "0.62582207", "0.62204313", "0.6193138", "0.6165066", "0.6153946", "0.61240536", "0.611961...
0.0
-1
Export Web Services, Database Configurations, Global Variables and BusinessCalendar
public EnvironmentExporter() { super(); fExporterList = new ArrayList<AbstractExporter>(); fExporterList.add(new GlobalVariableExporter()); fExporterList.add(new DatabaseConfigurationExporter()); fExporterList.add(new WebServiceExporter()); fExporterList.add(new BusinessCalendarExporter()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Map<String, Object> exportConfiguration();", "public EnvironmentExporter(Boolean exportWebService, Boolean exportDatabaseConfig, Boolean exportGlobalVar,\r\n Boolean exportBusinessCalendar) {\r\n super();\r\n fExporterList = new ArrayList<AbstractExporter>();\r\n if (exportWebService) {\r\n fE...
[ "0.600549", "0.59667546", "0.56943846", "0.5565203", "0.553671", "0.54745233", "0.5459374", "0.53760755", "0.5364173", "0.522677", "0.5223993", "0.5220537", "0.52201456", "0.5206805", "0.51940536", "0.5187216", "0.5186963", "0.51768035", "0.5139485", "0.5133331", "0.5133151",...
0.486858
38
Choose config type to export by passing boolean
public EnvironmentExporter(Boolean exportWebService, Boolean exportDatabaseConfig, Boolean exportGlobalVar, Boolean exportBusinessCalendar) { super(); fExporterList = new ArrayList<AbstractExporter>(); if (exportWebService) { fExporterList.add(new WebServiceExporter()); } if (exportDatabaseConfig) { fExporterList.add(new DatabaseConfigurationExporter()); } if (exportGlobalVar) { fExporterList.add(new GlobalVariableExporter()); } if (exportBusinessCalendar) { fExporterList.add(new BusinessCalendarExporter()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Map<String, Object> exportConfiguration();", "public void setExport(boolean value) {\n this.export = value;\n }", "boolean hasOutputConfig();", "io.dstore.values.BooleanValue getImportConfiguration();", "Map<String, Object> exportDefaultConfiguration();", "protected void additionalConfig(Config...
[ "0.5991425", "0.59524727", "0.58315694", "0.57117707", "0.56313056", "0.55091584", "0.54130524", "0.5380504", "0.5338772", "0.5285099", "0.52584124", "0.52346265", "0.51344013", "0.5124218", "0.512039", "0.51093924", "0.5092882", "0.5039809", "0.5037513", "0.5025413", "0.5006...
0.50997305
16
Choose config type to export by pass the list of correlative exporter
public EnvironmentExporter(List<AbstractExporter> exporterList) { super(); this.fExporterList = exporterList; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface ExportStrategy {\r\n public String getFileName();\r\n public Collection getCollection();\r\n public Class getClazz();\r\n\r\n}", "Map<String, Object> exportConfiguration();", "public List<ProgressConfigurationType> getConfigType(String type);", "Map<String, Object> exportDefaultCon...
[ "0.5737604", "0.56617117", "0.5425295", "0.54144704", "0.52465326", "0.5189219", "0.5133989", "0.5116076", "0.50938284", "0.5068669", "0.50310713", "0.5023867", "0.50146604", "0.4941622", "0.4907449", "0.48721007", "0.48591354", "0.48421153", "0.48299956", "0.48299956", "0.48...
0.46930677
28
TODO Autogenerated method stub
@Override public int describeContents() { return 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public void writeToParcel(Parcel dest, int flags) { dest.writeInt(user_id); dest.writeString(title); dest.writeString(desc); dest.writeString(location_ids); }
{ "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.66713095", "0.6567948", "0.652319", "0.648097", "0.64770466", "0.64586824", "0.64132667", "0.6376419", "0.62759", "0.62545097", "0.62371093", "0.62237984", "0.6201738", "0.619477", "0.619477", "0.61924416", "0.61872935", "0.6173417", "0.613289", "0.6127952", "0.6080854", ...
0.0
-1
TODO Autogenerated method stub
@Override public Album createFromParcel(Parcel source) { return new Album(source); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public Album[] newArray(int size) { return new Album[size]; }
{ "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
Decide whether or not to use the competition executor or our custom debug executor
public static void main(String[] args) { boolean debug = true; if(debug) { CustomExecutor executor = new CustomExecutor.Builder() .setVisual(true) .setTickLimit(8000) .setPO(true) .build(); EnumMap<GHOST, IndividualGhostController> controllers = new EnumMap<>(GHOST.class); MyPacMan agent = new MyPacMan(true, MODULE_TYPE.THREE_MULTITASK, 2); //MyPacMan badboy = new MyPacMan(true, MODULE_TYPE.TWO_MODULES, 15); //create ghost controllers controllers.put(GHOST.INKY, new POGhost(GHOST.INKY)); controllers.put(GHOST.BLINKY, new POGhost(GHOST.BLINKY)); controllers.put(GHOST.PINKY, new POGhost(GHOST.PINKY)); controllers.put(GHOST.SUE, new POGhost(GHOST.SUE)); boolean secondViewer = true; // View in PO and non-PO mode executor.runGameTimed(agent, new MASController(controllers), secondViewer); System.out.println("Evaluation over"); } else { Executor executor = new Executor.Builder() .setVisual(true) .setTickLimit(8000) .build(); EnumMap<GHOST, IndividualGhostController> controllers = new EnumMap<>(GHOST.class); MyPacMan agent = new MyPacMan(); controllers.put(GHOST.INKY, new POGhost(GHOST.INKY)); controllers.put(GHOST.BLINKY, new POGhost(GHOST.BLINKY)); controllers.put(GHOST.PINKY, new POGhost(GHOST.PINKY)); controllers.put(GHOST.SUE, new POGhost(GHOST.SUE)); executor.runGameTimed(agent, new MASController(controllers)); System.out.println("Evaluation over"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected EventExecutor executor()\r\n/* 49: */ {\r\n/* 50: 87 */ return this.executor;\r\n/* 51: */ }", "public Debug() {\n target = getProject().getObjects()\n .property(JavaForkOptions.class);\n port = getProject().getObjects()\n .property(Integer.class).co...
[ "0.56062186", "0.5472145", "0.5376241", "0.52925587", "0.5292016", "0.5236487", "0.52172", "0.5179543", "0.5135719", "0.5129768", "0.5120042", "0.5027419", "0.50055534", "0.49938288", "0.4958558", "0.49556312", "0.4940283", "0.4928735", "0.49287042", "0.4918266", "0.49130613"...
0.5472589
1
Instantiates a new dSM function.
public DSMFunction( KeyMove keyMove ) { super( keyMove ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public DSMFunction( Properties props )\n {\n super( props );\n }", "public Function() {\r\n\r\n\t}", "public SimdEstimation(Function func) {\n this.func=func;\n }", "public static final DistanceMatrixService newInstance() {\n JavaScriptObject jso = createJso();\n WorkAroundUtils.removeGwtObjec...
[ "0.6552328", "0.60364574", "0.5820245", "0.57174814", "0.55390227", "0.5501436", "0.5434229", "0.5384318", "0.5381573", "0.5316391", "0.5289923", "0.5270692", "0.524684", "0.520298", "0.52026516", "0.5199184", "0.51815236", "0.51768005", "0.5146832", "0.51390904", "0.51352376...
0.59541893
2
Instantiates a new dSM function.
public DSMFunction( int keyCode, int deviceButtonIndex, int deviceType, int setupCode, Hex cmd, String notes ) { super( keyCode, deviceButtonIndex, deviceType, setupCode, cmd, notes ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public DSMFunction( Properties props )\n {\n super( props );\n }", "public Function() {\r\n\r\n\t}", "public DSMFunction( KeyMove keyMove )\n {\n super( keyMove );\n }", "public SimdEstimation(Function func) {\n this.func=func;\n }", "public static final DistanceMatrixService newInstance() {\...
[ "0.6551302", "0.60332257", "0.5953784", "0.58189577", "0.5719367", "0.553583", "0.54973775", "0.5385372", "0.5378657", "0.5313583", "0.52884054", "0.5270636", "0.5246011", "0.51996607", "0.51995355", "0.5196604", "0.51798695", "0.5176548", "0.51463056", "0.51397425", "0.51339...
0.54327774
7
Instantiates a new dSM function.
public DSMFunction( Properties props ) { super( props ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Function() {\r\n\r\n\t}", "public DSMFunction( KeyMove keyMove )\n {\n super( keyMove );\n }", "public SimdEstimation(Function func) {\n this.func=func;\n }", "public static final DistanceMatrixService newInstance() {\n JavaScriptObject jso = createJso();\n WorkAroundUtils.removeGwtObje...
[ "0.60332257", "0.5953784", "0.58189577", "0.5719367", "0.553583", "0.54973775", "0.54327774", "0.5385372", "0.5378657", "0.5313583", "0.52884054", "0.5270636", "0.5246011", "0.51996607", "0.51995355", "0.5196604", "0.51798695", "0.5176548", "0.51463056", "0.51397425", "0.5133...
0.6551302
0
Initialize your data structure here.
public LeetCode381() { list = new ArrayList<>(); map = new HashMap<Integer,HashSet<Integer>>(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void initData() {\n }", "private void initData() {\n\t}", "private void initData() {\n\n }", "public void initData() {\n }", "public void initData() {\n }", "@Override\n\tpublic void initData() {\n\n\n\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\...
[ "0.7995335", "0.79737675", "0.78095216", "0.77773166", "0.77773166", "0.7643578", "0.76366925", "0.76366925", "0.76366925", "0.76366925", "0.76366925", "0.76366925", "0.75556004", "0.7543105", "0.7543105", "0.7542904", "0.7542904", "0.7542904", "0.7532211", "0.7522603", "0.75...
0.0
-1
Inserts a value to the set. Returns true if the set did not already contain the specified element.
public boolean insert(int val) { if(map.containsKey(val)) { map.get(val).add(list.size()); list.add(val); return false; }else{ map.put(val, new HashSet<Integer>()); map.get(val).add(list.size()); list.add(val); return true; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean insert(int val) {\r\n return set.add(val);\r\n }", "public boolean insert(int val) {\n if (!set.contains(val)) {\n set.add(val);\n return true;\n } else return false;\n }", "public boolean insert(int val) {\n if (set.containsKey(val)) r...
[ "0.74475455", "0.7444871", "0.71580637", "0.688099", "0.6789673", "0.67116463", "0.6638302", "0.65900064", "0.65252864", "0.651785", "0.64790654", "0.6460319", "0.6430236", "0.64193773", "0.6408459", "0.64027035", "0.63861066", "0.63428944", "0.63350683", "0.63322675", "0.630...
0.6202086
28
Removes a value from the set. Returns true if the set contained the specified element.
public boolean remove(int val) { if(map.containsKey(val)){ if(map.get(val).size() == 1){ int last = list.get(list.size()-1); int mvindex = map.get(val).iterator().next(); map.get(last).remove(list.size()-1); map.get(last).add(mvindex); list.set(mvindex,list.get(list.size()-1)); list.remove(list.size()-1); map.remove(val); }else { int last = list.get(list.size()-1); int mvindex = map.get(val).iterator().next(); map.get(last).remove(list.size()-1); map.get(last).add(mvindex); list.set(mvindex, list.get(list.size()-1)); list.remove(list.size()-1); if(last != val) map.get(val).remove(mvindex); } return true; }else { return false; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean remove(int val) {\n if (set.contains(val)) {\n set.remove(val);\n return true;\n } else return false;\n }", "public boolean remove(int val) {\r\n return set.remove(val);\r\n }", "public boolean remove(Object value)\r\n {\r\n if (!contains(valu...
[ "0.73536336", "0.7337537", "0.68661743", "0.68512434", "0.68097264", "0.67975914", "0.67905724", "0.66934174", "0.6662184", "0.6625957", "0.6590175", "0.65636146", "0.6535152", "0.6472745", "0.6424232", "0.6418782", "0.6387345", "0.63820505", "0.6301452", "0.62993807", "0.628...
0.5693285
81
Get a random element from the set.
public int getRandom() { Random random = new Random(); int val = list.get( random.nextInt(list.size())); return val; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getRandom() {\n int idx;\n Random rand;\n \n rand = new Random();\n idx = rand.nextInt(set.size());\n return set.get(idx);\n }", "public int getRandom() {\r\n var list = new ArrayList<>(set);\r\n return list.get(new Random().nextInt(set.size()...
[ "0.791835", "0.7723838", "0.73558825", "0.73073596", "0.7299999", "0.7125759", "0.7075432", "0.70544857", "0.7021675", "0.70010036", "0.6924541", "0.68527114", "0.6841163", "0.6808583", "0.67908883", "0.67675084", "0.669298", "0.667805", "0.6653935", "0.6647121", "0.6632087",...
0.6474144
38
private int[][] matrix1; private int[][] matrix2; private int[][] matrix3;
@Before public void setUp() throws Exception { myM = new Matrix(); /** matrix1 = new int[4][4]; for (int i = 0; i < matrix1.length; i++) { for (int j = 0; j < matrix1[0].length; j++) { if( i == j) { matrix1[i][j] = 1; } } } matrix2 = new int[6][6]; for (int i = 0; i < matrix2.length; i++) { for (int j = 0; j < matrix2[0].length; j++) { matrix2[i][j] = i; } } matrix3 = new int[3][4]; for (int i = 0; i < matrix3.length; i++) { for (int j = 0; j < matrix3[0].length; j++) { if( i == j) { matrix3[i][j] = 1; } } } **/ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\n\t\tint[][] a = {{1,2}, {5,3}};\n\t\tint[][] b = {{3,2}, {4,5}};\n\t\tint[][] c = {{1,2}, {4,3}};\n\t\tint[][] d = {{1,2,3}, {4, 5, 6}};\n\t\tint[][] e = {{1, 4}, {2, 5}, {3,6}};\n\n\n\t\t//create new matrices using multidimensional arrays to get a size\n\t\tMatrix m = new...
[ "0.6374139", "0.62249506", "0.61913115", "0.61792415", "0.61238074", "0.60336643", "0.6008271", "0.5997788", "0.5977873", "0.59629095", "0.5941594", "0.5940388", "0.5927638", "0.59207904", "0.58922493", "0.5884931", "0.5807708", "0.57744557", "0.57676506", "0.57583493", "0.57...
0.6086693
5
The SockJS client will attempt to connect to "/gsguidewebsocket" and use the best transport available (websocket, xhrstreaming, xhrpolling, etc).
@Override public void registerStompEndpoints(StompEndpointRegistry registry) { registry.addEndpoint("/boot-websocket").withSockJS(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void open(long timeout) {\r\n\t\tsuper.open(timeout);\r\n\t\t// ws hs no open method,just when init to open it.\r\n\r\n\t\tString uriS = uri.getUri();\r\n\r\n\t\tWebSocketJSO wso = WebSocketJSO.newInstance(uriS, false);\r\n\t\tif (wso == null) {\r\n\t\t\tthis.errorHandlers.handle(\"websocket ...
[ "0.62342066", "0.60312426", "0.6016931", "0.58988893", "0.582842", "0.57757056", "0.5769684", "0.56354725", "0.5624952", "0.55778646", "0.5564136", "0.5537519", "0.5515017", "0.5477855", "0.54685974", "0.5438846", "0.543052", "0.540925", "0.53775376", "0.53452754", "0.5233487...
0.5117333
27
SPRD : fixbug457824 Interface to modify the system.
private void setAudioProfilModem() { int ringerMode = mAudioManager.getRingerModeInternal(); ContentResolver mResolver = mContext.getContentResolver(); Vibrator vibrator = (Vibrator) mContext .getSystemService(Context.VIBRATOR_SERVICE); boolean hasVibrator = vibrator == null ? false : vibrator.hasVibrator(); if (AudioManager.RINGER_MODE_SILENT == ringerMode) { if (hasVibrator) { Settings.System.putInt(mResolver, Settings.System.SOUND_EFFECTS_ENABLED, 0); /* SPRD: fixbug454214 The status bar scene mode button is not synchronized with the button set up the scene mode. @{ */ //mAudioManager.setRingerMode(AudioManager.RINGER_MODE_VIBRATE); mAudioManager.setRingerModeInternal(AudioManager.RINGER_MODE_VIBRATE); /* @} */ mAudioManager.setVibrateSetting( AudioManager.VIBRATE_TYPE_RINGER, AudioManager.VIBRATE_SETTING_ON); mAudioManager.setVibrateSetting( AudioManager.VIBRATE_TYPE_NOTIFICATION, AudioManager.VIBRATE_SETTING_ON); } else { Settings.System.putInt(mResolver, Settings.System.SOUND_EFFECTS_ENABLED, 1); /* SPRD: fixbug454214 The status bar scene mode button is not synchronized with the button set up the scene mode. @{ */ //mAudioManager.setRingerMode(AudioManager.RINGER_MODE_NORMAL); mAudioManager.setRingerModeInternal(AudioManager.RINGER_MODE_NORMAL); /* @} */ } } else if (AudioManager.RINGER_MODE_VIBRATE == ringerMode) { Settings.System.putInt(mResolver, Settings.System.SOUND_EFFECTS_ENABLED, 1); /* SPRD: fixbug454214 The status bar scene mode button is not synchronized with the button set up the scene mode. @{ */ //mAudioManager.setRingerMode(AudioManager.RINGER_MODE_NORMAL); mAudioManager.setRingerModeInternal(AudioManager.RINGER_MODE_OUTDOOR); /* @} */ }else if (AudioManager.RINGER_MODE_OUTDOOR == ringerMode) {//add by wanglei for outdoor mode Settings.System.putInt(mResolver,Settings.System.SOUND_EFFECTS_ENABLED, 1); mAudioManager.setRingerModeInternal(AudioManager.RINGER_MODE_NORMAL); }else { Settings.System.putInt(mResolver, Settings.System.SOUND_EFFECTS_ENABLED, 0); /* SPRD: fixbug454214 The status bar scene mode button is not synchronized with the button set up the scene mode. @{ */ //mAudioManager.setRingerMode(AudioManager.RINGER_MODE_SILENT); mAudioManager.setRingerModeInternal(AudioManager.RINGER_MODE_SILENT); /* @} */ if (hasVibrator) { mAudioManager.setVibrateSetting( AudioManager.VIBRATE_TYPE_RINGER, AudioManager.VIBRATE_SETTING_OFF); mAudioManager.setVibrateSetting( AudioManager.VIBRATE_TYPE_NOTIFICATION, AudioManager.VIBRATE_SETTING_OFF); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Software update( Software s );", "public void sensorSystem() {\n\t}", "protected abstract void setSpl();", "@Override\n\t\tpublic void setService(String system_id) throws RemoteException {\n\t\t\tSystem.out.println(\"set service invoke on \" + system_id);\n\t\t}", "void setSystem(java.lang.String system);"...
[ "0.6438905", "0.59327173", "0.591951", "0.5849383", "0.5848878", "0.5790151", "0.5673366", "0.55972344", "0.55860484", "0.5576106", "0.55747974", "0.55671275", "0.55307555", "0.55191475", "0.5511033", "0.550017", "0.54985535", "0.5487296", "0.5431195", "0.5417031", "0.5399304...
0.0
-1
The classification of a configuration. For more information see, .
public String getClassification() { return classification; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getClassification() {\n return classification;\n }", "public String getClassification() {\n return classification;\n }", "public String getClassification() {\r\n\t\treturn this.classification;\r\n\t}", "public Integer getClassify() {\n return classify;\n }", "Classifier getC...
[ "0.75533885", "0.75533885", "0.721015", "0.694438", "0.6849572", "0.68204874", "0.67996114", "0.6309983", "0.6305982", "0.6265431", "0.6260542", "0.6231317", "0.62293375", "0.6154358", "0.6148715", "0.6005961", "0.59810144", "0.5979657", "0.59639686", "0.5894278", "0.5887641"...
0.75105965
2
The classification of a configuration. For more information see, .
public void setClassification(String classification) { this.classification = classification; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getClassification() {\n return classification;\n }", "public String getClassification() {\n return classification;\n }", "public String getClassification() {\n return classification;\n }", "public String getClassification() {\r\n\t\treturn this.classification;\r\n\t}", "publ...
[ "0.7555715", "0.7555715", "0.7513017", "0.72119945", "0.694707", "0.68521565", "0.68203056", "0.68015254", "0.63118845", "0.6307885", "0.6267323", "0.6260146", "0.62329453", "0.6230645", "0.61567944", "0.6007782", "0.598197", "0.59799445", "0.5962353", "0.5895566", "0.5889280...
0.61500585
15
The classification of a configuration. For more information see, . Returns a reference to this object so that method calls can be chained together.
public Configuration withClassification(String classification) { this.classification = classification; return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public SetTypeConfigurationRequest withConfiguration(String configuration) {\n setConfiguration(configuration);\n return this;\n }", "public void configure(Configuration config) {\r\n learner = config.get(\"classifier\");\r\n if(learner == null)\r\n throw new IllegalArgu...
[ "0.5241917", "0.49800575", "0.49727207", "0.4901552", "0.4895918", "0.4895918", "0.48637438", "0.4802644", "0.47441295", "0.4731365", "0.4690312", "0.4644519", "0.46318924", "0.4578159", "0.45439675", "0.45407334", "0.45312425", "0.4527428", "0.4508476", "0.4490525", "0.44441...
0.7577346
0
A list of configurations you apply to this configuration object.
public java.util.List<Configuration> getConfigurations() { if (configurations == null) { configurations = new com.amazonaws.internal.ListWithAutoConstructFlag<Configuration>(); configurations.setAutoConstruct(true); } return configurations; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ArrayList<Configuration> getConfigurations(){\n return configurations;\n }", "public List<StatisticsConfig> getConfigurations() {\n return configurations;\n }", "public List<ConfigurationInner> configurations() {\n return this.innerProperties() == null ? null : this.innerPrope...
[ "0.7922547", "0.7575725", "0.7562626", "0.7535095", "0.74226385", "0.7245151", "0.70832133", "0.7057677", "0.6989977", "0.6873294", "0.685766", "0.6701545", "0.6610113", "0.6482415", "0.6380726", "0.6276572", "0.6268048", "0.624194", "0.6235164", "0.61845857", "0.615754", "...
0.76039654
1
A list of configurations you apply to this configuration object.
public void setConfigurations(java.util.Collection<Configuration> configurations) { if (configurations == null) { this.configurations = null; return; } com.amazonaws.internal.ListWithAutoConstructFlag<Configuration> configurationsCopy = new com.amazonaws.internal.ListWithAutoConstructFlag<Configuration>(configurations.size()); configurationsCopy.addAll(configurations); this.configurations = configurationsCopy; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ArrayList<Configuration> getConfigurations(){\n return configurations;\n }", "public java.util.List<Configuration> getConfigurations() {\n if (configurations == null) {\n configurations = new com.amazonaws.internal.ListWithAutoConstructFlag<Configuration>();\n co...
[ "0.7921727", "0.76043487", "0.75743145", "0.7562526", "0.7535076", "0.7423641", "0.72443336", "0.7081986", "0.7057123", "0.69897497", "0.6874344", "0.6856254", "0.670194", "0.6609697", "0.64824694", "0.6380107", "0.62764937", "0.62687993", "0.6242727", "0.6236209", "0.618464"...
0.0
-1
A list of configurations you apply to this configuration object. Returns a reference to this object so that method calls can be chained together.
public Configuration withConfigurations(java.util.Collection<Configuration> configurations) { if (configurations == null) { this.configurations = null; } else { com.amazonaws.internal.ListWithAutoConstructFlag<Configuration> configurationsCopy = new com.amazonaws.internal.ListWithAutoConstructFlag<Configuration>(configurations.size()); configurationsCopy.addAll(configurations); this.configurations = configurationsCopy; } return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<ConfigurationInner> configurations() {\n return this.innerProperties() == null ? null : this.innerProperties().configurations();\n }", "public C build() {\n if (configs.isEmpty()) {\n throw new RuntimeException(\"There should be at least one configuration provided\");\n }\n\n ...
[ "0.5544438", "0.54158425", "0.53134096", "0.5154693", "0.5018703", "0.500692", "0.4972072", "0.49581203", "0.49578378", "0.49577752", "0.4942598", "0.48684895", "0.48478413", "0.48275158", "0.47650427", "0.47251976", "0.4722384", "0.4702615", "0.46775684", "0.46754736", "0.46...
0.6443741
0
A set of properties supplied to the Configuration object.
public java.util.Map<String,String> getProperties() { if (properties == null) { properties = new java.util.HashMap<String,String>(); } return properties; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setConfiguration(Properties props);", "void configure(Properties properties);", "public void setupProperties() {\n // left empty for subclass to override\n }", "private ConfigProperties getProperties() {\n return properties;\n }", "Map<String, String> getConfigProperties();", "M...
[ "0.6950982", "0.65518737", "0.650045", "0.65001315", "0.6473369", "0.6336818", "0.6336818", "0.633307", "0.6301891", "0.6267658", "0.6226958", "0.61838794", "0.61831087", "0.6169454", "0.61667144", "0.6139597", "0.61351", "0.6058179", "0.6039803", "0.6019692", "0.6007879", ...
0.0
-1
A set of properties supplied to the Configuration object.
public void setProperties(java.util.Map<String,String> properties) { this.properties = properties; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setConfiguration(Properties props);", "void configure(Properties properties);", "private ConfigProperties getProperties() {\n return properties;\n }", "public void setupProperties() {\n // left empty for subclass to override\n }", "Map<String, String> getConfigProperties();", "M...
[ "0.6950846", "0.6551004", "0.6498897", "0.6497395", "0.6474064", "0.63359386", "0.63359386", "0.63314354", "0.6299664", "0.6265981", "0.6224568", "0.6183617", "0.6180646", "0.6167284", "0.6165704", "0.613717", "0.6134344", "0.6056478", "0.60384876", "0.6017566", "0.60056084",...
0.5538884
91
A set of properties supplied to the Configuration object. Returns a reference to this object so that method calls can be chained together.
public Configuration withProperties(java.util.Map<String,String> properties) { setProperties(properties); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Configuration withConfigurations(java.util.Collection<Configuration> configurations) {\n if (configurations == null) {\n this.configurations = null;\n } else {\n com.amazonaws.internal.ListWithAutoConstructFlag<Configuration> configurationsCopy = new com.amazonaws.interna...
[ "0.53836024", "0.53191715", "0.52775747", "0.51851994", "0.50664634", "0.50659215", "0.5063581", "0.50505435", "0.5015356", "0.4991788", "0.49652976", "0.49472645", "0.49225745", "0.4901798", "0.4901798", "0.4901798", "0.4901798", "0.4880316", "0.48674217", "0.4862489", "0.48...
0.55368173
0
A set of properties supplied to the Configuration object. The method adds a new keyvalue pair into Properties parameter, and returns a reference to this object so that method calls can be chained together.
public Configuration addPropertiesEntry(String key, String value) { if (null == this.properties) { this.properties = new java.util.HashMap<String,String>(); } if (this.properties.containsKey(key)) throw new IllegalArgumentException("Duplicated keys (" + key.toString() + ") are provided."); this.properties.put(key, value); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Configuration withProperties(java.util.Map<String,String> properties) {\n setProperties(properties);\n return this;\n }", "public EndpointPropertiesBaseInner withProperties(Map<String, String> properties) {\n this.properties = properties;\n return this;\n }", "@CanIgnor...
[ "0.7618094", "0.66269565", "0.5956371", "0.56769174", "0.5331313", "0.52971655", "0.5225736", "0.51646143", "0.51223165", "0.5100764", "0.50957376", "0.5084511", "0.50554746", "0.50511426", "0.5040007", "0.5022758", "0.4985025", "0.49420717", "0.4898628", "0.48810256", "0.486...
0.65993446
2
Removes all the entries added into Properties. Returns a reference to this object so that method calls can be chained together.
public Configuration clearPropertiesEntries() { this.properties = null; return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Builder removeProperties(\n java.lang.String key) {\n if (key == null) {\n throw new NullPointerException(\"map key\");\n }\n internalGetMutableProperties().getMutableMap()\n .remove(key);\n return this;\n }", "public Builder clearProperty() {\n\n ...
[ "0.6061104", "0.5972409", "0.59674305", "0.55438787", "0.5246091", "0.51421905", "0.5137588", "0.49936852", "0.4928913", "0.49229226", "0.4865418", "0.48078623", "0.48007727", "0.4786914", "0.47828078", "0.47824925", "0.47748718", "0.4760511", "0.4748984", "0.46705902", "0.46...
0.6915221
0
Returns a string representation of this object; useful for testing and debugging.
@Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getClassification() != null) sb.append("Classification: " + getClassification() + ","); if (getConfigurations() != null) sb.append("Configurations: " + getConfigurations() + ","); if (getProperties() != null) sb.append("Properties: " + getProperties() ); sb.append("}"); return sb.toString(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String toString() { return stringify(this, true); }", "public String toString() {\n StringWriter writer = new StringWriter();\n this.write(writer);\n return writer.toString();\n }", "@Override\n public String toString() {\n // TODO: Using Serializer\n return Serializer.toByteA...
[ "0.8683157", "0.85115", "0.84982616", "0.84619015", "0.8388398", "0.8388398", "0.82967556", "0.8296591", "0.8273532", "0.8266389", "0.8264453", "0.8257445", "0.8227678", "0.8142639", "0.81201446", "0.81005955", "0.80892855", "0.80892855", "0.8065512", "0.8061759", "0.8060815"...
0.0
-1
google map API object to be added / constructor without group id songs, budget and destinations will be set later
public Group(String groupImage, int time, int date, String comment){ this.groupImage = groupImage; this.meetingTime = time; this.date = date; this.comment = comment; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setUpMap() {\n // Crear all map elements\n mGoogleMap.clear();\n // Set map type\n mGoogleMap.setMapType(GoogleMap.MAP_TYPE_HYBRID);\n // If we cant find the location now, we call a Network Provider location\n if (mLocation != null) {\n // Create a ...
[ "0.60556906", "0.6031665", "0.60210997", "0.60066986", "0.6001808", "0.5982874", "0.59535164", "0.5945832", "0.59386533", "0.59372616", "0.5937252", "0.5935068", "0.59218884", "0.58964646", "0.5887536", "0.58854777", "0.5882098", "0.5863583", "0.5851618", "0.58449894", "0.584...
0.0
-1
/ constructor with group id
public Group(int groupID, String groupImage, int time, int date, String comment){ this.groupID = groupID; this.groupImage = groupImage; this.meetingTime = time; this.date = date; this.comment = comment; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Group(String id) {\n super(id);\n setConstructor(SvgType.GROUP);\n }", "public ArticleGroup(int id, String grn) {\n this(id, grn, new Vector<Article>());\n }", "public Group()\n\t{\n\t\tthis.members = new ArrayList<>();\n\t\tthis.groupID= idCounter;\n\t\tidCounter++;\n\t}", ...
[ "0.75594044", "0.73264897", "0.727827", "0.71621615", "0.71450084", "0.7100456", "0.7049737", "0.69140244", "0.6896822", "0.6829531", "0.67917657", "0.6729394", "0.6689571", "0.66643095", "0.6594868", "0.65927345", "0.64726", "0.6448822", "0.64290625", "0.6417239", "0.6414576...
0.586246
71
TODO Autogenerated method stub
@Override public List<StreamCounterVO> getStreamCounterList(int startLimit, int endLimit) throws DataAccessFailedException { return null; }
{ "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.66713095", "0.6567948", "0.652319", "0.648097", "0.64770466", "0.64586824", "0.64132667", "0.6376419", "0.62759", "0.62545097", "0.62371093", "0.62237984", "0.6201738", "0.619477", "0.619477", "0.61924416", "0.61872935", "0.6173417", "0.613289", "0.6127952", "0.6080854", ...
0.0
-1
super: hace referencia al constructor de la clase "madre" (en este caso Paciente)
Doctor(){ super(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public MPaciente() {\r\n\t}", "public Perro() {\n// super(\"No define\", \"NN\", 0); en caso el constructor de animal tenga parametros\n this.pelaje = \"corto\";\n }", "public Alojamiento() {\r\n\t}", "public MorteSubita() {\n }", "private ControleurAcceuil(){ }", "public AntrianPasie...
[ "0.7835905", "0.7700401", "0.74370044", "0.7335536", "0.730514", "0.726765", "0.72206813", "0.718865", "0.71502024", "0.7138697", "0.713716", "0.7131176", "0.7130628", "0.7112735", "0.70662886", "0.7054524", "0.70418876", "0.7041808", "0.7033487", "0.70263124", "0.6999095", ...
0.69217956
27
Sum of two numbers before it
public static int fib(int index){ int num1 = 0; int num2 = 1; int temp; for(int i = 0; i < index-1; i++){ temp = num2; num2 += num1; num1 = temp; } return num2; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private long calcSum(int a, int b) {\n return (new Long(a) + new Long(b));\n }", "public T sum(T first, T second);", "@Override\n\t\t\tpublic Integer apply(Integer num1, Integer num2) {\n\t\t\t\treturn num1+num2;\n\t\t\t}", "public int GetSum(int a, int b) {\n\t\tint result = 0;\r\n\t\tint number =...
[ "0.69637877", "0.69624865", "0.6919465", "0.6917762", "0.6904534", "0.68957776", "0.68169224", "0.6808987", "0.6783712", "0.67090464", "0.6676941", "0.66535175", "0.66523623", "0.66356987", "0.66309285", "0.6611843", "0.6611326", "0.66088253", "0.6564707", "0.65426654", "0.65...
0.0
-1
/ / / / / / / / / / / / / / / / / /
private Krb5InitCredential(Krb5NameElement paramKrb5NameElement, Credentials paramCredentials, byte[] paramArrayOfbyte1, KerberosPrincipal paramKerberosPrincipal1, KerberosPrincipal paramKerberosPrincipal2, KerberosPrincipal paramKerberosPrincipal3, KerberosPrincipal paramKerberosPrincipal4, byte[] paramArrayOfbyte2, int paramInt, boolean[] paramArrayOfboolean, Date paramDate1, Date paramDate2, Date paramDate3, Date paramDate4, InetAddress[] paramArrayOfInetAddress) throws GSSException { /* 135 */ super(paramArrayOfbyte1, paramKerberosPrincipal1, paramKerberosPrincipal3, paramArrayOfbyte2, paramInt, paramArrayOfboolean, paramDate1, paramDate2, paramDate3, paramDate4, paramArrayOfInetAddress); /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* 146 */ KerberosSecrets.getJavaxSecurityAuthKerberosAccess() /* 147 */ .kerberosTicketSetClientAlias(this, paramKerberosPrincipal2); /* 148 */ KerberosSecrets.getJavaxSecurityAuthKerberosAccess() /* 149 */ .kerberosTicketSetServerAlias(this, paramKerberosPrincipal4); /* 150 */ this.name = paramKrb5NameElement; /* */ /* */ /* 153 */ this.krb5Credentials = paramCredentials; /* */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private int parent(int i){return (i-1)/2;}", "private int leftChild(int i){return 2*i+1;}", "private double[] getExtents(){\n return new double[] { -90, -180, 90, 180 };\n }", "double passer();", "public Integer getWidth(){return this.width;}", "static int getNumPatterns() { r...
[ "0.5363639", "0.5268377", "0.510366", "0.5090266", "0.50591934", "0.5055254", "0.50444996", "0.50121444", "0.49831194", "0.49722913", "0.49664408", "0.49633694", "0.49488497", "0.49370983", "0.49255544", "0.4921423", "0.49111158", "0.490597", "0.49009746", "0.48803926", "0.48...
0.0
-1
/ / / / /
static Krb5InitCredential getInstance(GSSCaller paramGSSCaller, Krb5NameElement paramKrb5NameElement, int paramInt) throws GSSException { /* 160 */ KerberosTicket kerberosTicket = getTgt(paramGSSCaller, paramKrb5NameElement, paramInt); /* 161 */ if (kerberosTicket == null) { /* 162 */ throw new GSSException(13, -1, "Failed to find any Kerberos tgt"); /* */ } /* */ /* 165 */ if (paramKrb5NameElement == null) { /* 166 */ String str = kerberosTicket.getClient().getName(); /* 167 */ paramKrb5NameElement = Krb5NameElement.getInstance(str, Krb5MechFactory.NT_GSS_KRB5_PRINCIPAL); /* */ } /* */ /* */ /* */ /* */ /* 173 */ KerberosPrincipal kerberosPrincipal1 = KerberosSecrets.getJavaxSecurityAuthKerberosAccess().kerberosTicketGetClientAlias(kerberosTicket); /* */ /* */ /* 176 */ KerberosPrincipal kerberosPrincipal2 = KerberosSecrets.getJavaxSecurityAuthKerberosAccess().kerberosTicketGetServerAlias(kerberosTicket); /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* 190 */ Krb5InitCredential krb5InitCredential = new Krb5InitCredential(paramKrb5NameElement, kerberosTicket.getEncoded(), kerberosTicket.getClient(), kerberosPrincipal1, kerberosTicket.getServer(), kerberosPrincipal2, kerberosTicket.getSessionKey().getEncoded(), kerberosTicket.getSessionKeyType(), kerberosTicket.getFlags(), kerberosTicket.getAuthTime(), kerberosTicket.getStartTime(), kerberosTicket.getEndTime(), kerberosTicket.getRenewTill(), kerberosTicket.getClientAddresses()); /* 191 */ krb5InitCredential /* 192 */ .proxyTicket = KerberosSecrets.getJavaxSecurityAuthKerberosAccess().kerberosTicketGetProxy(kerberosTicket); /* 193 */ return krb5InitCredential; /* */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void divide() {\n\t\t\n\t}", "private int parent(int i){return (i-1)/2;}", "public abstract void bepaalGrootte();", "public void zeichneQuadrate(){\n for (int i=0; i<10;i++)\n rect (50+i*25,50,25,25);\n }", "public void gored() {\n\t\t\n\t}", "public static void bottomHalf() {\n\n ...
[ "0.5654446", "0.52820337", "0.5271249", "0.52676165", "0.52306265", "0.52296305", "0.5206255", "0.51926357", "0.51523715", "0.5099704", "0.5095072", "0.50714195", "0.5043397", "0.50093687", "0.5006837", "0.49735466", "0.49680007", "0.49592596", "0.49568266", "0.49417847", "0....
0.0
-1
/ / / / /
static Krb5InitCredential getInstance(Krb5NameElement paramKrb5NameElement, Credentials paramCredentials) throws GSSException { /* 200 */ EncryptionKey encryptionKey = paramCredentials.getSessionKey(); /* */ /* */ /* */ /* */ /* */ /* */ /* 207 */ PrincipalName principalName1 = paramCredentials.getClient(); /* 208 */ PrincipalName principalName2 = paramCredentials.getClientAlias(); /* 209 */ PrincipalName principalName3 = paramCredentials.getServer(); /* 210 */ PrincipalName principalName4 = paramCredentials.getServerAlias(); /* */ /* 212 */ KerberosPrincipal kerberosPrincipal1 = null; /* 213 */ KerberosPrincipal kerberosPrincipal2 = null; /* 214 */ KerberosPrincipal kerberosPrincipal3 = null; /* 215 */ KerberosPrincipal kerberosPrincipal4 = null; /* */ /* 217 */ Krb5NameElement krb5NameElement = null; /* */ /* 219 */ if (principalName1 != null) { /* 220 */ String str = principalName1.getName(); /* 221 */ krb5NameElement = Krb5NameElement.getInstance(str, Krb5MechFactory.NT_GSS_KRB5_PRINCIPAL); /* */ /* 223 */ kerberosPrincipal1 = new KerberosPrincipal(str); /* */ } /* */ /* 226 */ if (principalName2 != null) { /* 227 */ kerberosPrincipal2 = new KerberosPrincipal(principalName2.getName()); /* */ } /* */ /* */ /* */ /* 232 */ if (principalName3 != null) /* */ { /* 234 */ kerberosPrincipal3 = new KerberosPrincipal(principalName3.getName(), 2); /* */ } /* */ /* */ /* 238 */ if (principalName4 != null) { /* 239 */ kerberosPrincipal4 = new KerberosPrincipal(principalName4.getName()); /* */ } /* */ /* 242 */ return new Krb5InitCredential(krb5NameElement, paramCredentials, paramCredentials /* */ /* 244 */ .getEncoded(), kerberosPrincipal1, kerberosPrincipal2, kerberosPrincipal3, kerberosPrincipal4, encryptionKey /* */ /* */ /* */ /* */ /* 249 */ .getBytes(), encryptionKey /* 250 */ .getEType(), paramCredentials /* 251 */ .getFlags(), paramCredentials /* 252 */ .getAuthTime(), paramCredentials /* 253 */ .getStartTime(), paramCredentials /* 254 */ .getEndTime(), paramCredentials /* 255 */ .getRenewTill(), paramCredentials /* 256 */ .getClientAddresses()); /* */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void divide() {\n\t\t\n\t}", "private int parent(int i){return (i-1)/2;}", "public abstract void bepaalGrootte();", "public void zeichneQuadrate(){\n for (int i=0; i<10;i++)\n rect (50+i*25,50,25,25);\n }", "public void gored() {\n\t\t\n\t}", "public static void bottomHalf() {\n\n ...
[ "0.5654086", "0.5282051", "0.5270874", "0.5268489", "0.5230159", "0.5229372", "0.5205559", "0.51923394", "0.51524484", "0.50993294", "0.50948834", "0.5071109", "0.5043058", "0.5009983", "0.5006536", "0.49739555", "0.49691963", "0.4959123", "0.49568397", "0.49425906", "0.49421...
0.0
-1
/ / / / / / / / /
public final GSSNameSpi getName() throws GSSException { /* 267 */ return this.name; /* */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private int parent(int i){return (i-1)/2;}", "private int leftChild(int i){return 2*i+1;}", "public void divide() {\n\t\t\n\t}", "private int rightChild(int i){return 2*i+2;}", "public void zeichneQuadrate(){\n for (int i=0; i<10;i++)\n rect (50+i*25,50,25,25);\n }", "public abstract void b...
[ "0.5531016", "0.54378587", "0.52516115", "0.52405924", "0.5151045", "0.5127977", "0.50680465", "0.5066997", "0.50218964", "0.5013022", "0.5007318", "0.50048536", "0.49997565", "0.4994835", "0.49735898", "0.49699947", "0.49680406", "0.49594593", "0.4937881", "0.49361676", "0.4...
0.0
-1
/ / / / / / / /
public int getInitLifetime() throws GSSException { /* 277 */ Date date = getEndTime(); /* 278 */ if (date == null) { /* 279 */ return 0; /* */ } /* */ /* 282 */ long l = date.getTime() - System.currentTimeMillis(); /* 283 */ return (int)(l / 1000L); /* */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private int parent(int i){return (i-1)/2;}", "private int leftChild(int i){return 2*i+1;}", "public void divide() {\n\t\t\n\t}", "private int rightChild(int i){return 2*i+2;}", "public void zeichneQuadrate(){\n for (int i=0; i<10;i++)\n rect (50+i*25,50,25,25);\n }", "public abstract void b...
[ "0.55048823", "0.5413075", "0.5298015", "0.52379996", "0.5205496", "0.51480424", "0.5101674", "0.5076514", "0.5037376", "0.50321674", "0.5009592", "0.498159", "0.49813378", "0.497832", "0.4973623", "0.4962841", "0.4937309", "0.49288675", "0.49036264", "0.4893208", "0.4878872"...
0.0
-1
/ / / / / / / /
public int getAcceptLifetime() throws GSSException { /* 293 */ return 0; /* */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private int parent(int i){return (i-1)/2;}", "private int leftChild(int i){return 2*i+1;}", "public void divide() {\n\t\t\n\t}", "private int rightChild(int i){return 2*i+2;}", "public void zeichneQuadrate(){\n for (int i=0; i<10;i++)\n rect (50+i*25,50,25,25);\n }", "public abstract void b...
[ "0.55048823", "0.5413075", "0.5298015", "0.52379996", "0.5205496", "0.51480424", "0.5101674", "0.5076514", "0.5037376", "0.50321674", "0.5009592", "0.498159", "0.49813378", "0.497832", "0.4973623", "0.4962841", "0.4937309", "0.49288675", "0.49036264", "0.4893208", "0.4878872"...
0.0
-1
/ / / / / / / / /
public final Oid getMechanism() { /* 312 */ return Krb5MechFactory.GSS_KRB5_MECH_OID; /* */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private int parent(int i){return (i-1)/2;}", "private int leftChild(int i){return 2*i+1;}", "public void divide() {\n\t\t\n\t}", "private int rightChild(int i){return 2*i+2;}", "public void zeichneQuadrate(){\n for (int i=0; i<10;i++)\n rect (50+i*25,50,25,25);\n }", "public abstract void b...
[ "0.5531016", "0.54378587", "0.52516115", "0.52405924", "0.5151045", "0.5127977", "0.50680465", "0.5066997", "0.50218964", "0.5013022", "0.5007318", "0.50048536", "0.49997565", "0.4994835", "0.49735898", "0.49699947", "0.49680406", "0.49594593", "0.4937881", "0.49361676", "0.4...
0.0
-1
/ / / / / / /
Credentials getKrb5Credentials() { /* 325 */ return this.krb5Credentials; /* */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private int parent(int i){return (i-1)/2;}", "private int leftChild(int i){return 2*i+1;}", "public void divide() {\n\t\t\n\t}", "public void zeichneQuadrate(){\n for (int i=0; i<10;i++)\n rect (50+i*25,50,25,25);\n }", "private int rightChild(int i){return 2*i+2;}", "public abstract void b...
[ "0.54567957", "0.53680295", "0.53644985", "0.52577376", "0.52142847", "0.51725817", "0.514088", "0.50868535", "0.5072305", "0.504888", "0.502662", "0.50005764", "0.49740013", "0.4944243", "0.4941118", "0.4937142", "0.49095523", "0.48940238", "0.48719338", "0.48613623", "0.486...
0.0
-1
/ / / / / / / / / /
public void dispose() throws GSSException { /* */ try { /* 338 */ destroy(); /* 339 */ } catch (DestroyFailedException destroyFailedException) { /* */ /* */ /* 342 */ GSSException gSSException = new GSSException(11, -1, "Could not destroy credentials - " + destroyFailedException.getMessage()); /* 343 */ gSSException.initCause(destroyFailedException); /* */ } /* */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private int parent(int i){return (i-1)/2;}", "private int leftChild(int i){return 2*i+1;}", "private int rightChild(int i){return 2*i+2;}", "public void divide() {\n\t\t\n\t}", "public abstract void bepaalGrootte();", "public void zeichneQuadrate(){\n for (int i=0; i<10;i++)\n rect (50+i*25,50...
[ "0.55419606", "0.5447018", "0.5228543", "0.5212609", "0.51105833", "0.5096667", "0.5061987", "0.5037592", "0.5035494", "0.5014215", "0.5004887", "0.500345", "0.49992946", "0.49972984", "0.49893183", "0.49876484", "0.49807012", "0.49793923", "0.49676415", "0.4957394", "0.49154...
0.0
-1
/ / / / / / / / / / / / /
private static KerberosTicket getTgt(GSSCaller paramGSSCaller, Krb5NameElement paramKrb5NameElement, int paramInt) throws GSSException { /* */ final String clientPrincipal; /* 360 */ if (paramKrb5NameElement != null) { /* 361 */ str = paramKrb5NameElement.getKrb5PrincipalName().getName(); /* */ } else { /* 363 */ str = null; /* */ } /* */ /* 366 */ final AccessControlContext acc = AccessController.getContext(); /* */ /* */ try { /* 369 */ final GSSCaller realCaller = (paramGSSCaller == GSSCaller.CALLER_UNKNOWN) ? GSSCaller.CALLER_INITIATE : paramGSSCaller; /* */ /* */ /* 372 */ return AccessController.<KerberosTicket>doPrivileged(new PrivilegedExceptionAction<KerberosTicket>() /* */ { /* */ /* */ public KerberosTicket run() throws Exception /* */ { /* 377 */ return Krb5Util.getInitialTicket(realCaller, clientPrincipal, acc); /* */ } /* */ }); /* */ } /* 381 */ catch (PrivilegedActionException privilegedActionException) { /* */ /* */ /* */ /* 385 */ GSSException gSSException = new GSSException(13, -1, "Attempt to obtain new INITIATE credentials failed! (" + privilegedActionException.getMessage() + ")"); /* 386 */ gSSException.initCause(privilegedActionException.getException()); /* 387 */ throw gSSException; /* */ } /* */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private int parent(int i){return (i-1)/2;}", "private int leftChild(int i){return 2*i+1;}", "private int rightChild(int i){return 2*i+2;}", "public void divide() {\n\t\t\n\t}", "int getWidth() {return width;}", "double passer();", "public abstract void bepaalGrootte();", "private double[] getExten...
[ "0.5511054", "0.54129165", "0.51372945", "0.511903", "0.50692093", "0.50639486", "0.50610137", "0.5056326", "0.50562686", "0.5020084", "0.5008243", "0.50073624", "0.4987515", "0.4968476", "0.49637726", "0.4947741", "0.49458793", "0.49450463", "0.49411407", "0.49279913", "0.49...
0.0
-1
Retrieve a Datastream instance by pid and dsid
Datastream findOrCreateDatastream(Session session, String path);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<String> listDatastreams(String pid) throws FedoraException, IOException {\r\n GetMethod get = new GetMethod(this.fedoraBaseUrl + \"/objects/\" + pid + \"/datastreams?format=xml\");\r\n try {\r\n client.executeMethod(get);\r\n try {\r\n InputStream is =...
[ "0.62165475", "0.62160414", "0.60320807", "0.539478", "0.53824794", "0.52641064", "0.5234551", "0.51874894", "0.51774853", "0.5151651", "0.5131362", "0.5122395", "0.5120488", "0.5080189", "0.5075388", "0.49506474", "0.49398905", "0.49398905", "0.493463", "0.49260926", "0.4925...
0.6085309
2
Retrieve a Binary instance by path
FedoraBinary getBinary(Session session, String path);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "byte[] getBinaryVDBResource(String resourcePath) throws Exception;", "public static Object getObj(String path){\n int index = Integer.parseInt(path.substring(6).split(\"\\\\.\")[0]) % maxBufferSize;\n if (buffer[index] != null && buffer[index].getPath().equals(path)) {\n return buffer[in...
[ "0.6611962", "0.6579388", "0.65744126", "0.61269146", "0.60890585", "0.593598", "0.59024364", "0.58183795", "0.5775687", "0.56530416", "0.5513144", "0.5472172", "0.54716617", "0.54521704", "0.53812784", "0.53793114", "0.5357823", "0.53467387", "0.5343651", "0.5338878", "0.531...
0.7344875
0
Retrieve a Datastream instance by pid and dsid
Datastream asDatastream(Node node) throws ResourceTypeException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<String> listDatastreams(String pid) throws FedoraException, IOException {\r\n GetMethod get = new GetMethod(this.fedoraBaseUrl + \"/objects/\" + pid + \"/datastreams?format=xml\");\r\n try {\r\n client.executeMethod(get);\r\n try {\r\n InputStream is =...
[ "0.6217389", "0.62168545", "0.60853827", "0.6032628", "0.53957826", "0.5382563", "0.52641773", "0.5233345", "0.5189101", "0.5177266", "0.51523614", "0.5131215", "0.51240003", "0.5120813", "0.50812113", "0.5074957", "0.49506164", "0.4939274", "0.4939274", "0.4934822", "0.49258...
0.4643118
38
Retrieve a Binary instance from a node
FedoraBinary asBinary(Node node);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Object get(Node node);", "@Override\n public BinaryType asBinary() {\n return TypeFactory.getBinaryType(this.getValue());\n }", "public interface BinaryNode<T> { }", "public BinaryNode() {\n\t\tthis(null);\t\t\t// Call next constructor\n\t}", "public interface BinNode<T> {\n\n /**\n * R...
[ "0.62943983", "0.6072358", "0.5974639", "0.5888561", "0.5798131", "0.57963353", "0.57962966", "0.5790144", "0.5763341", "0.5758473", "0.5724907", "0.56284106", "0.56013685", "0.5585519", "0.5585519", "0.5558305", "0.5552185", "0.5549718", "0.55393904", "0.5537973", "0.5514930...
0.7660368
0
Get the fixity results for the datastream as a RDF Dataset
RdfStream getFixityResultsModel(IdentifierTranslator subjects, FedoraBinary datastream);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void gerarRDF(Dataset dataset) throws SenseRDFException;", "private static List<Supplier> createSupplierData(ConsumerQuery query, boolean testing) {\n\t\tRepository repository;\n\t\t\n\t\t//use name of processes in query to retrieve subset of relevant supplier data from semantic infrastructure\n\t\tList<S...
[ "0.5768562", "0.5286467", "0.5243185", "0.51957244", "0.51365423", "0.50192016", "0.50128824", "0.5011788", "0.4953762", "0.47972643", "0.47740206", "0.4767505", "0.476051", "0.47018617", "0.46940947", "0.46912843", "0.46875578", "0.4654656", "0.46421015", "0.463008", "0.4578...
0.7405247
0
Get the active storage policy decision point TODO: this should move to a different service?
StoragePolicyDecisionPoint getStoragePolicyDecisionPoint();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Policy _get_policy(int policy_type);", "protected java.security.Policy getPolicy(){\n\tif (stateIs(INSERVICE_STATE)) {\n\t return this.policy;\n\t} \n\tif (logger.isLoggable(Level.FINEST)) {\n\t logger.finest(\"JACC Policy Provider: getPolicy (\"+CONTEXT_ID+\") is NOT in service\");\n\t}\n\treturn null;\n ...
[ "0.65210235", "0.614282", "0.5773685", "0.5649503", "0.55926317", "0.5543461", "0.54589635", "0.53969145", "0.5387199", "0.5367772", "0.53379935", "0.5266967", "0.5237102", "0.5221821", "0.5199284", "0.5185751", "0.5142194", "0.5137338", "0.5127293", "0.5125698", "0.51075107"...
0.8054564
0
The mapper extracts from the 'value' the page and its (in/out)degree and then it prints as 'key' the degree and as 'value' the 1 as LongWritable
public void map(Object key, Text value, Context context) throws IOException, InterruptedException{ val = value.toString(); arr = val.split("\\s+"); prova.set(Long.parseLong(arr[1])); context.write(prova,one); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void map(LongWritable key, Text value, Context context) throws IOException, InterruptedException {\n String test = value.toString();\n test = test.replaceAll(\"\\t\", \" \").replaceFirst(\" \", \"\\t\");\n\n double basePageRank = 0;\n boolean hasPageRank = false...
[ "0.72322446", "0.6353006", "0.6160881", "0.60780454", "0.5978735", "0.59355813", "0.5924812", "0.5782261", "0.57758695", "0.5731586", "0.5721134", "0.5693542", "0.5690509", "0.56534785", "0.56310606", "0.5570198", "0.55691206", "0.55667025", "0.55576974", "0.5526164", "0.5504...
0.5215845
42
System.out.println("start:"+start + " end:"+end);
private static Circuit buildCircuit(String s, int start, int end){ int middle = findMiddle(s, start, end); if (middle == -1) return new SingleResistor(Double.parseDouble(s.substring(start, end))); else { int aStart = findNextComma(s, start, middle)+1; int aEnd = s.charAt(middle-1) == ')'?middle-1:middle; Circuit a = buildCircuit(s, aStart, aEnd); int bStart = middle+1; int bEnd = s.charAt(end-1) == ')'?end-1:end; Circuit b = buildCircuit(s, bStart, bEnd); if (s.charAt(start+1) == '-') return new SeriesNetwork(a, b); else return new ParallelNetwork(a, b); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getEndRange();", "@Override\r\n public String toString() \r\n {\n return \"[\" + getStart() + \", \" + getEnd() + \"]\";\r\n }", "public int start() { return _start; }", "public int end() { return _end; }", "public static void main(String[] args) {\n\t\tint start = 100;\r\n\t\tint ...
[ "0.68431437", "0.6834988", "0.6704215", "0.6688512", "0.66193545", "0.65986145", "0.6593829", "0.6532633", "0.64711237", "0.6453838", "0.6405497", "0.6394845", "0.6367081", "0.6346786", "0.6322935", "0.62452376", "0.6216573", "0.620299", "0.6162832", "0.61476934", "0.6144553"...
0.0
-1
Creates new form CGPA
public CGPA() { initComponents(); this.setTitle("CGPA/SGPA"); cgpa_tf.requestFocus(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "FORM createFORM();", "public CreateAccout() {\n initComponents();\n showCT();\n ProcessCtr(true);\n }", "public void onCreate() {\r\n Session session = sessionService.getCurrentSession();\r\n Map<String, Region> items = ControlUtility.createForm(Pc.class);\r\n\r\n ...
[ "0.65705466", "0.61499983", "0.60706", "0.604951", "0.5968367", "0.5957332", "0.59008884", "0.58909774", "0.5874517", "0.5830487", "0.5787833", "0.5765553", "0.57601964", "0.575486", "0.57542676", "0.570196", "0.5665178", "0.56321824", "0.5615603", "0.56064254", "0.55866086",...
0.6618055
0
TODO Autogenerated method stub
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { PrintWriter out = response.getWriter(); try { Connection con = null; String url = "jdbc:postgresql://localhost:5432/elec_management"; //PostgreSQL URL and followed by the database name String username = "postgres"; //PostgreSQL username String password = "123"; //PostgreSQL password Class.forName("org.postgresql.Driver"); con = DriverManager.getConnection(url, username, password); //attempting to connect to PostgreSQL database HttpSession session = request.getSession(); String club= (String) session.getAttribute("voteforclub"); String user_id = (String) session.getAttribute("user_id"); String cand_id = request.getParameter("voteto"); if(cand_id==null) { out = response.getWriter(); out.println("<meta http-equiv = 'refresh' content='3; URL= showlist.jsp'>"); out.println("<p style = 'color: red;'> you have not selected anything !!!</p>"); } String sql= "insert into votes values(?,?,?,?)"; PreparedStatement st = con.prepareStatement(sql); st.setString(1, user_id); st.setString(2, club); st.setString(3, cand_id); st.setString(4, club); int i= st.executeUpdate(); if(i>0) { String sql1 = "update candidate set vote_count = vote_count + 1 where s_id = ?"; PreparedStatement st1 = con.prepareStatement(sql1); st1.setString(1, cand_id); int i1 = st1.executeUpdate(); if(i1>0) { out.println("<meta http-equiv = 'refresh' content='3; URL= dashboard.jsp'>"); out.println("<p><h3 style = 'color: green;'> your response has been saved successfully !!!</h3></p>"); } } } catch(Exception e) { e.printStackTrace(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
Called when our Activity is first created.
@Override protected void onCreate(@Nullable Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.first_page); final FloatingActionButton start_button = findViewById(R.id.start_button); final FloatingActionButton participate_button = findViewById(R.id.participate_button); final FloatingActionButton start_quiz_button = findViewById(R.id.start_quiz_button); final FloatingActionButton participate_quiz_button = findViewById(R.id.participate_quiz_button); final TextView mText = findViewById(R.id.disc_text); final View divider = findViewById(R.id.mid_divider); final TextView t1 = findViewById(R.id.textView2); final TextView t2 = findViewById(R.id.textView3); final TextView t3 = findViewById(R.id.textView2_quiz); final TextView t4 = findViewById(R.id.textView3_quiz); participate_button.setOnClickListener( new View.OnClickListener() { @Override public void onClick(View view) { QUIZ = false; startDiscovering(); mText.setVisibility(View.VISIBLE); start_button.hide(); participate_button.hide(); start_quiz_button.hide(); participate_quiz_button.hide(); divider.setVisibility(View.GONE); t1.setVisibility(View.GONE); t2.setVisibility(View.GONE); t3.setVisibility(View.GONE); t4.setVisibility(View.GONE); } } ); start_button.setOnClickListener( new View.OnClickListener() { @Override public void onClick(View view) { Intent myIntent = new Intent(connections_activity.this, start_poll_2_activity.class); connections_activity.this.startActivity(myIntent); } } ); start_quiz_button.setOnClickListener( new View.OnClickListener() { @Override public void onClick(View view) { Intent myIntent = new Intent(connections_activity.this, start_quiz_activity.class); connections_activity.this.startActivity(myIntent); } } ); participate_quiz_button.setOnClickListener( new View.OnClickListener() { @Override public void onClick(View view) { QUIZ = true; startDiscovering_quiz(); mText.setVisibility(View.VISIBLE); start_button.hide(); participate_button.hide(); start_quiz_button.hide(); participate_quiz_button.hide(); divider.setVisibility(View.GONE); t1.setVisibility(View.GONE); t2.setVisibility(View.GONE); t3.setVisibility(View.GONE); t4.setVisibility(View.GONE); } } ); mConnectionsClient = Nearby.getConnectionsClient(this); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t\tinit();\n\t}", "protected void onCreate() {\n }", "@Override\r\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\r\n\t}...
[ "0.78546554", "0.77293247", "0.7728436", "0.7703858", "0.7703858", "0.7703858", "0.7703858", "0.7703858", "0.7703858", "0.7669909", "0.7669909", "0.7669579", "0.7669579", "0.7605328", "0.7582951", "0.7582951", "0.7582401", "0.75801456", "0.7560536", "0.75583714", "0.7545819",...
0.0
-1
Called when our Activity has been made visible to the user.
@Override protected void onStart() { super.onStart(); if (!hasPermissions(this, getRequiredPermissions())) { if (!hasPermissions(this, getRequiredPermissions())) { if (Build.VERSION.SDK_INT < 23) { ActivityCompat.requestPermissions( this, getRequiredPermissions(), REQUEST_CODE_REQUIRED_PERMISSIONS); } else { requestPermissions(getRequiredPermissions(), REQUEST_CODE_REQUIRED_PERMISSIONS); } } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract void onFirstUserVisible();", "@Override\n protected void onResume() {\n super.onResume();\n isVisible = true; //the app is visible\n }", "@Override\n protected void onFirstUserVisible() {\n }", "public void onVisible() {\r\n System.out.println(\"toolkit.Abstract...
[ "0.7241629", "0.6974701", "0.69372064", "0.67805254", "0.66588104", "0.6278271", "0.6263543", "0.6263225", "0.62142634", "0.6209547", "0.6196481", "0.6100237", "0.60961664", "0.6012919", "0.5987817", "0.5987817", "0.5986068", "0.59707826", "0.59540385", "0.5940077", "0.593924...
0.0
-1
Called when the user has accepted (or denied) our permission request.
@CallSuper @Override public void onRequestPermissionsResult( int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) { if (requestCode == REQUEST_CODE_REQUIRED_PERMISSIONS) { for (int grantResult : grantResults) { if (grantResult == PackageManager.PERMISSION_DENIED) { Toast.makeText(this, "error: missing permissions", Toast.LENGTH_LONG).show(); finish(); return; } } recreate(); } super.onRequestPermissionsResult(requestCode, permissions, grantResults); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void permissionGranted(int requestCode);", "@Override\n public void onDenied(String permission) {\n }", "@Override\n public void onDenied(String permission) {\n }", "@Override\n public void onGranted() {\n }", "void permissionDenied(int requestCode, boolean willSho...
[ "0.74218625", "0.71066207", "0.70507276", "0.67481154", "0.67138386", "0.66923887", "0.6686057", "0.6686057", "0.66441184", "0.6625593", "0.6557279", "0.6548108", "0.65458083", "0.6492914", "0.64421856", "0.6438608", "0.64361435", "0.64361435", "0.6422184", "0.6406362", "0.63...
0.0
-1
Accepts a connection request.
protected void acceptConnection(final Endpoint endpoint) { mConnectionsClient .acceptConnection(endpoint.getId(), mPayloadCallback) .addOnFailureListener( new OnFailureListener() { @Override public void onFailure(@NonNull Exception e) { logW("acceptConnection() failed.", e); } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void acceptConnection(SystemServiceConnection connection);", "void requestReceived( C conn ) ;", "private void treatAccept(SelectionKey key) throws IOException\n {\n ServerSocketChannel ssc = (ServerSocketChannel) key.channel();\n SocketChannel sc = ssc.accept();\n sc.configureBl...
[ "0.66811985", "0.6501563", "0.6155708", "0.600723", "0.59921765", "0.58719677", "0.58605856", "0.5756027", "0.5754207", "0.57502896", "0.574133", "0.5739993", "0.5738661", "0.5732735", "0.5719979", "0.57196444", "0.5704501", "0.56706905", "0.56231403", "0.5611659", "0.5594416...
0.57249624
14
Rejects a connection request.
protected void rejectConnection(Endpoint endpoint) { mConnectionsClient .rejectConnection(endpoint.getId()) .addOnFailureListener( new OnFailureListener() { @Override public void onFailure(@NonNull Exception e) { logW("rejectConnection() failed.", e); } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void onConnectToNetByIPReject();", "void reject();", "public void cancel() {\n request.disconnect();\n }", "void denyConnection(UUID requestId) throws\n ArtistConnectionDenialFailedException,\n ConnectionRequestNotFoundException;", "public void disconnect()\r\n\t{\r\n\t\ttry...
[ "0.67999345", "0.66897076", "0.65399647", "0.63951474", "0.6205875", "0.6083377", "0.6063402", "0.6016344", "0.59963757", "0.5915339", "0.5867422", "0.58486843", "0.57963455", "0.57656735", "0.57481176", "0.571719", "0.5709291", "0.56712466", "0.5664862", "0.5654233", "0.5637...
0.68915814
0
Called when discovery successfully starts. Override this method to act on the event.
protected void onDiscoveryStarted() { logAndShowSnackbar("Subscription Started"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onDiscoveryComplete() {\n BusProvider.getInstance().post(new DiscoveryCompleteEvent());\n }", "private void startDiscovery() {\n client.startDiscovery(getResources().getString(R.string.service_id), endpointDiscoveryCallback, new DiscoveryOptions(STRATEGY));\n }", ...
[ "0.7314827", "0.712138", "0.675114", "0.67125005", "0.66238916", "0.6609715", "0.65389526", "0.65196574", "0.6512539", "0.650346", "0.64203566", "0.6329384", "0.63253635", "0.6275413", "0.61848974", "0.6144632", "0.6113422", "0.6077913", "0.60510314", "0.6035684", "0.60328", ...
0.787661
0
Called when discovery fails to start. Override this method to act on the event.
protected void onDiscoveryFailed() { logAndShowSnackbar("Could not subscribe."); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onFailure(@NonNull Exception e) {\n Discoverer.this.eventListener.trigger(\n EVENT_LOG, \"Fail to run discovery: \" + e.getMessage()\n );\n ...
[ "0.776737", "0.6768654", "0.6353968", "0.6314961", "0.6281765", "0.6275291", "0.62634784", "0.62222266", "0.6172283", "0.61643463", "0.61126107", "0.60927016", "0.6035283", "0.60212487", "0.60029685", "0.5992991", "0.5833554", "0.58253217", "0.57891446", "0.57674205", "0.5759...
0.8096631
0
Disconnects from the given endpoint.
protected void disconnect(Endpoint endpoint) { mConnectionsClient.disconnectFromEndpoint(endpoint.getId()); mEstablishedConnections.remove(endpoint.getId()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void disconnect() throws TransportException;", "protected void onEndpointDisconnected(Endpoint endpoint) {}", "void disconnectArtist(UUID requestId) throws\n ArtistDisconnectingFailedException,\n ConnectionRequestNotFoundException;", "public void disconnect() {\n \ttry {\n \t\tctx...
[ "0.65199363", "0.65009916", "0.6146424", "0.60723114", "0.6069495", "0.60548365", "0.6046672", "0.6037778", "0.59505993", "0.5898417", "0.58740616", "0.5871425", "0.5871425", "0.5835308", "0.5796328", "0.5773714", "0.57242036", "0.5685775", "0.5682077", "0.5676455", "0.566924...
0.75992465
0
Disconnects from all currently connected endpoints.
protected void disconnectFromAllEndpoints() { for (Endpoint endpoint : mEstablishedConnections.values()) { mConnectionsClient.disconnectFromEndpoint(endpoint.getId()); } mEstablishedConnections.clear(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void stopAllEndpoints() {\n mConnectionsClient.stopAllEndpoints();\n mIsAdvertising = false;\n mIsDiscovering = false;\n mIsConnecting = false;\n mDiscoveredEndpoints.clear();\n mPendingConnections.clear();\n mEstablishedConnections.clear();\n }", "pu...
[ "0.73928076", "0.6925585", "0.6640633", "0.65288174", "0.64059716", "0.635313", "0.6272169", "0.6253165", "0.62375224", "0.6192167", "0.61717373", "0.6154849", "0.6154849", "0.614416", "0.6129265", "0.6118405", "0.6048089", "0.6030977", "0.60098153", "0.59849846", "0.5960871"...
0.83761126
0
Resets and clears all state in Nearby Connections.
protected void stopAllEndpoints() { mConnectionsClient.stopAllEndpoints(); mIsAdvertising = false; mIsDiscovering = false; mIsConnecting = false; mDiscoveredEndpoints.clear(); mPendingConnections.clear(); mEstablishedConnections.clear(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void clearAllConnections() {\r\n clearAllConnections(false);\r\n }", "public void resetConnection() {\n connected = new ArrayList<>(50);\n }", "protected void reset() {\n\t\tresetChannel();\n\t\tthis.connection = null;\n\t}", "public void resetAll() {\n reset(getAll(...
[ "0.7037885", "0.68737274", "0.6617373", "0.6404892", "0.6358415", "0.6351217", "0.63337344", "0.6332741", "0.6325009", "0.6310906", "0.6302174", "0.62806714", "0.62606514", "0.62459654", "0.6176784", "0.617469", "0.6173128", "0.61380917", "0.6126006", "0.60804176", "0.6068737...
0.0
-1
Called when a connection with this endpoint has failed. Override this method to act on the event.
protected void onConnectionFailed(Endpoint endpoint) {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void onConnectionError() {\n\t}", "public void onConnectionError()\n\t\t{\n\t\t}", "private void connectionFailed() {\n if (debugging)\n Log.d(TAG, \"connection Failed\");\n setState(EBluetoothStates.DISCONNECTED);\n if (mConnectionManager != null) {\n mConn...
[ "0.77666014", "0.77609885", "0.7529768", "0.74403673", "0.73864704", "0.72815573", "0.723949", "0.7230205", "0.71777", "0.7166377", "0.71416754", "0.7138564", "0.7138564", "0.7134678", "0.71143484", "0.70663595", "0.70610744", "0.70394874", "0.7034078", "0.7025005", "0.701521...
0.7850921
0
Called when someone has connected to us. Override this method to act on the event.
protected void onEndpointConnected(Endpoint endpoint) {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void onConnect() {}", "public void onConnected() {\n userName = conn.getUsername();\n tellManagers(\"I have arrived.\");\n tellManagers(\"Running {0} version {1} built on {2}\", BOT_RELEASE_NAME, BOT_RELEASE_NUMBER, BOT_RELEASE_DATE);\n command.sendCommand(\"set noautologout...
[ "0.70146", "0.6844352", "0.68249285", "0.67913955", "0.6706218", "0.6590572", "0.6578396", "0.65735596", "0.6566638", "0.6486793", "0.64855045", "0.64803624", "0.6468019", "0.64638007", "0.6399765", "0.639725", "0.63933253", "0.6387154", "0.6383233", "0.6363792", "0.63523465"...
0.0
-1
Called when someone has disconnected. Override this method to act on the event.
protected void onEndpointDisconnected(Endpoint endpoint) {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\tpublic void disconnected() {\n\t\t\tsuper.disconnected();\n\t\t}", "public void onDisconnected() {\n\t\t\r\n\t}", "protected void onDisconnect() {}", "@Override\n\tpublic void onDisconnected() {\n\t\t\n\t}", "@Override\n\tpublic void onDisconnected() {\n\t\t\n\t}", "@Override\n\tpublic voi...
[ "0.800041", "0.79313165", "0.78896487", "0.7624909", "0.7624909", "0.7624909", "0.7593268", "0.75435126", "0.75026566", "0.7491129", "0.74112326", "0.7353239", "0.7353239", "0.7346625", "0.7343709", "0.7343709", "0.734254", "0.7334833", "0.73333204", "0.7256933", "0.72402406"...
0.654941
83
Returns a list of currently discovered endpoints.
protected Set<Endpoint> getDiscoveredEndpoints() { return new HashSet<>(mDiscoveredEndpoints.values()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<Endpoint> getEndpoints()\n\t\t{\n\t\t\treturn endpointsList;\n\t\t}", "private Future<List<Record>> getAllEndpoints() {\n Future<List<Record>> future = Future.future();\n discovery.getRecords(record -> record.getType().equals(HttpEndpoint.TYPE),\n future.completer());\n return future;\n...
[ "0.7764422", "0.760887", "0.753091", "0.7207259", "0.7127071", "0.6828526", "0.6738926", "0.6697399", "0.66626394", "0.64919555", "0.63337773", "0.6187087", "0.61595684", "0.61466074", "0.6100368", "0.5988527", "0.5923531", "0.5880783", "0.585357", "0.58289814", "0.582041", ...
0.70965964
5
Returns a list of currently connected endpoints.
protected Set<Endpoint> getConnectedEndpoints() { return new HashSet<>(mEstablishedConnections.values()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<Endpoint> getEndpoints()\n\t\t{\n\t\t\treturn endpointsList;\n\t\t}", "java.util.List<io.netifi.proteus.admin.om.Connection> \n getConnectionsList();", "List<ManagedEndpoint> all();", "Collection<TcpIpConnection> getActiveConnections();", "@Override\n public List<ServiceEndpoint> listServ...
[ "0.7450428", "0.69059104", "0.68805057", "0.6836079", "0.6799727", "0.67151546", "0.6706109", "0.66840756", "0.66554713", "0.66348565", "0.65895426", "0.65754336", "0.65453786", "0.6507745", "0.650771", "0.6493062", "0.64153314", "0.6397065", "0.63838416", "0.633409", "0.6321...
0.7813282
0
An optional hook to pool any permissions the app needs with the permissions ConnectionsActivity will request.
protected String[] getRequiredPermissions() { return REQUIRED_PERMISSIONS; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void requestPermissions(ArrayList<String> needPermissions) {\n\n String packageName = getApplicationContext().getPackageName();\n Intent intent = new Intent(Settings.ACTION_MANAGE_OVERLAY_PERMISSION, Uri.parse(\"package:\" + packageName) );\n startActivityForResult(intent, REQ_CODE_REQ...
[ "0.66082424", "0.6504382", "0.6204757", "0.6170651", "0.61525184", "0.6130608", "0.61220586", "0.61135495", "0.60980654", "0.6048218", "0.59851545", "0.59851545", "0.59774774", "0.59698874", "0.5897774", "0.5873105", "0.5866814", "0.5865148", "0.5859492", "0.58460766", "0.582...
0.0
-1
Returns the client's name. Visible to others when connecting.
protected String getName(){ return "Chinmay Garg"; //TODO return roll number obtained from the app's shared preference }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getClientName ()\n\t{\n\t\treturn clientName;\n\t}", "public String getClientName() {\r\n return clientName;\r\n }", "public String getClientName() {\n return clientName;\n }", "public String getClientName() {\n return (String)getAttributeInternal(CLIENTNAME);\n }"...
[ "0.8579414", "0.84466255", "0.84029216", "0.82275236", "0.8162787", "0.7564923", "0.7271281", "0.7026452", "0.6941954", "0.6892313", "0.68608135", "0.6816497", "0.67337805", "0.6702235", "0.6686341", "0.66270816", "0.65509194", "0.65215313", "0.6510672", "0.6488421", "0.64724...
0.0
-1
Returns the service id. This represents the action this connection is for. When discovering, we'll verify that the advertiser has the same service id before we consider connecting to them.
protected String getServiceId(){ return "com.google.android.gms.nearby.messages.samples.nearbydevices"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getServiceId();", "String getServiceId();", "public int getServiceID() {\n return serviceID;\n }", "String getService_id();", "public java.lang.Long getServiceId() {\n return serviceId;\n }", "public java.lang.Long getServiceId() {\n return serviceId;\n }", "publi...
[ "0.7150674", "0.70753807", "0.6981135", "0.6925296", "0.69112873", "0.6862107", "0.67753047", "0.6759988", "0.6759176", "0.6695613", "0.64548", "0.6399311", "0.63157916", "0.62255347", "0.61532104", "0.6108014", "0.60685563", "0.598199", "0.58785903", "0.5832056", "0.5753459"...
0.54586214
37
Returns the strategy we use to connect to other devices. Only devices using the same strategy and service id will appear when discovering. Stragies determine how many incoming and outgoing connections are possible at the same time, as well as how much bandwidth is available for use.
protected Strategy getStrategy(){ return Strategy.P2P_STAR; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getStrategy() {\n\t\t \n\t\t return strategyInt;\n\t}", "public CrawlerReportStrategy getStrategy(String inputURL, String strategyKey) {\n\n CrawlerReportStrategy strategy = null;\n\n if (\"S\".equals(strategyKey) && inputURL != null) {\n strategy = specificURLStrategy;\n ...
[ "0.67393386", "0.58402544", "0.56274503", "0.5597024", "0.547843", "0.54297274", "0.54297274", "0.53540516", "0.529497", "0.5265638", "0.5120711", "0.5109511", "0.51052845", "0.5095147", "0.50662386", "0.5043359", "0.5025849", "0.49500173", "0.4914931", "0.48749426", "0.48292...
0.5713378
2
The method recorded the local date and time in the task object at the moment of create
@PostMapping public Task create(@RequestBody Task task){ task.setCreateDate(LocalDateTime.now()); return taskRepository.save(task); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public LocalDateTime getCreateTime() \n {\n return createTime;\n }", "public TimedTask(String task) {\n this.task = task;\n timeStart = System.currentTimeMillis();\n }", "public LocalDateTime getCreateTime() {\n return createTime;\n }", "public LocalDateTime getCreateT...
[ "0.6566991", "0.6455194", "0.64305013", "0.64305013", "0.64305013", "0.6429566", "0.6429566", "0.6354915", "0.6354915", "0.6354915", "0.63391346", "0.63304627", "0.63304627", "0.63304627", "0.63304627", "0.63304627", "0.63304627", "0.63304627", "0.63304627", "0.63173306", "0....
0.64254713
7
todo contenido panel iniciar
public void PanelPrincipalDos() { panelInicializarDos = new JPanel(); panelInicializarDos.setBackground(myColorHeaderTitulo); panelInicializarDos.setBounds(0, 0, 1000, 400); panelInicializarDos.setLayout(null); panelInicializarDos.setVisible(false); botonIniciaizarDos = new JButton("Inicializar"); botonIniciaizarDos.setBackground(myColorBotonHeader); botonIniciaizarDos.setForeground(myColorBotonLetraHeader); botonIniciaizarDos.setBounds(200, 160, 220, 60); textoSaldoInicial = new JLabel("Saldo Inicial:"); textoSaldoInicial.setFont(new Font("Yu Gothic UI Semilight", Font.PLAIN, 17)); textoSaldoInicial.setBounds(20, 60, 200, 40); textoSaldoInicial.setForeground(Color.WHITE); TextoSaldoInicial = new JTextField(); TextoSaldoInicial.setBounds(130, 60, 130, 40); textoFechaInicial = new JLabel("Fecha Actual Agregada Automaticamente"); textoFechaInicial.setFont(new Font("Yu Gothic UI Semilight", Font.PLAIN, 17)); textoFechaInicial.setBounds(20, 10, 450, 40); textoFechaInicial.setForeground(Color.WHITE); textoMostrarInicial = new JLabel("Inicializar.in Generado:"); textoMostrarInicial.setFont(new Font("Yu Gothic UI Semilight", Font.PLAIN, 17)); textoMostrarInicial.setBounds(500, 5, 450, 40); textoMostrarInicial.setForeground(Color.WHITE); textoPisos = new JLabel("Número Pisos:"); textoPisos.setFont(new Font("Yu Gothic UI Semilight", Font.PLAIN, 17)); textoPisos.setBounds(20, 110, 200, 40); textoPisos.setForeground(Color.WHITE); CampoTextoPisos = new JTextField(); CampoTextoPisos.setBounds(140, 110, 120, 40); botonIngresarInicializar = new JButton("Ingresar"); botonIngresarInicializar.setBackground(myColorBotonHeader); botonIngresarInicializar.setForeground(myColorBotonLetraHeader); botonIngresarInicializar.setBounds(50, 180, 100, 40); textArea2 = new JTextArea(); String texto; textArea2.setEditable(false); scroll2 = new JScrollPane(textArea2); scroll2.setBounds(450, 40, 300, 400); panelInicializarDos.add(scroll2); //=============================== //todo contenido panel precio panelPreciosDos = new JPanel(); panelPreciosDos.setBackground(myColorHeaderTitulo); panelPreciosDos.setBounds(0, 0, 1000, 400); panelPreciosDos.setLayout(null); panelPreciosDos.setVisible(false); botonPreciosDos = new JButton("Precios"); botonPreciosDos.setBackground(myColorBotonHeader); botonPreciosDos.setForeground(myColorBotonLetraHeader); botonPreciosDos.setBounds(530, 160, 220, 60); //inicializar precios habitaciones TextoHabitaciones = new JLabel("-> Precios Habitaciones <-"); TextoHabitaciones.setFont(new Font("Yu Gothic UI Semilight", Font.PLAIN, 17)); TextoHabitaciones.setBounds(20, 5, 230, 40); TextoHabitaciones.setForeground(Color.WHITE); textoIndv = new JLabel("Individual: "); textoIndv.setFont(new Font("Yu Gothic UI Semilight", Font.PLAIN, 17)); textoIndv.setBounds(20, 40, 200, 30); textoIndv.setForeground(Color.WHITE); CampoTextoIndv = new JTextField(); CampoTextoIndv.setBounds(110, 40, 120, 30); textoDoble = new JLabel("Doble: "); textoDoble.setFont(new Font("Yu Gothic UI Semilight", Font.PLAIN, 17)); textoDoble.setBounds(20, 70, 200, 30); textoDoble.setForeground(Color.WHITE); CampoTextoDoble = new JTextField(); CampoTextoDoble.setBounds(110, 70, 120, 30); textoMatri = new JLabel("Matri: "); textoMatri.setFont(new Font("Yu Gothic UI Semilight", Font.PLAIN, 17)); textoMatri.setBounds(20, 100, 200, 30); textoMatri.setForeground(Color.WHITE); CampoTextoMatri = new JTextField(); CampoTextoMatri.setBounds(110, 100, 120, 30); textoCuadruple = new JLabel("Cuadruple: "); textoCuadruple.setFont(new Font("Yu Gothic UI Semilight", Font.PLAIN, 17)); textoCuadruple.setBounds(20, 130, 200, 30); textoCuadruple.setForeground(Color.WHITE); CampoTextoCuadruple = new JTextField(); CampoTextoCuadruple.setBounds(110, 130, 120, 30); textoSuite = new JLabel("Suite: "); textoSuite.setFont(new Font("Yu Gothic UI Semilight", Font.PLAIN, 17)); textoSuite.setBounds(20, 160, 200, 30); textoSuite.setForeground(Color.WHITE); CampoTextoSuite = new JTextField(); CampoTextoSuite.setBounds(110, 160, 120, 30); //inicializar precio servicios TextoHabitaciones2 = new JLabel("-> Precios Servicios <-"); TextoHabitaciones2.setFont(new Font("Yu Gothic UI Semilight", Font.PLAIN, 17)); TextoHabitaciones2.setBounds(20, 210, 200, 40); TextoHabitaciones2.setForeground(Color.WHITE); textoCam_A = new JLabel("Cama Adicional: ");//CAM_A textoCam_A.setFont(new Font("Yu Gothic UI Semilight", Font.PLAIN, 17)); textoCam_A.setBounds(20, 260, 200, 30); textoCam_A.setForeground(Color.WHITE); comboCam_A = new JTextField(); comboCam_A.setBounds(160, 260, 100, 40); textoCaj_F = new JLabel("Caja fuerte: ");//CAJ_F textoCaj_F.setFont(new Font("Yu Gothic UI Semilight", Font.PLAIN, 17)); textoCaj_F.setBounds(20, 290, 200, 30); textoCaj_F.setForeground(Color.WHITE); comboCaj_F = new JTextField(); comboCaj_F.setBounds(160, 290, 100, 40); //inicializar precios restaurant TextoHabitaciones3 = new JLabel("-> Precios Restaurant <-"); TextoHabitaciones3.setFont(new Font("Yu Gothic UI Semilight", Font.PLAIN, 17)); TextoHabitaciones3.setBounds(280, 5, 230, 40); TextoHabitaciones3.setForeground(Color.WHITE); textoEsp_C = new JLabel("Esp_C: ");//ESP_C textoEsp_C.setFont(new Font("Yu Gothic UI Semilight", Font.PLAIN, 17)); textoEsp_C.setBounds(260, 40, 200, 30); textoEsp_C.setForeground(Color.WHITE); CampoTextoEsp_C = new JTextField(); CampoTextoEsp_C.setBounds(360, 40, 120, 30); textoLom_M = new JLabel("LOM_M: ");// textoLom_M.setFont(new Font("Yu Gothic UI Semilight", Font.PLAIN, 17)); textoLom_M.setBounds(260, 70, 200, 30); textoLom_M.setForeground(Color.WHITE); CampoTextoLom_M = new JTextField(); CampoTextoLom_M.setBounds(360, 70, 120, 30); textoJug_L = new JLabel("JUG_L: ");//JUG_L textoJug_L.setFont(new Font("Yu Gothic UI Semilight", Font.PLAIN, 17)); textoJug_L.setBounds(260, 100, 200, 30); textoJug_L.setForeground(Color.WHITE); CampoTextoJug_L = new JTextField(); CampoTextoJug_L.setBounds(360, 100, 120, 30); textoMalta = new JLabel("MALTA: ");//MALTA textoMalta.setFont(new Font("Yu Gothic UI Semilight", Font.PLAIN, 17)); textoMalta.setBounds(260, 130, 200, 30); textoMalta.setForeground(Color.WHITE); CampoTextoMalta = new JTextField(); CampoTextoMalta.setBounds(360, 130, 120, 30); botonIngresarPrecios = new JButton("Ingresar"); //boton ingresar precios botonIngresarPrecios.setBackground(myColorBotonHeader); botonIngresarPrecios.setForeground(myColorBotonLetraHeader); botonIngresarPrecios.setBounds(330, 250, 150, 70); textoMostrarInicial2 = new JLabel(""); textoMostrarInicial2.setFont(new Font("Yu Gothic UI Semilight", Font.PLAIN, 17)); textoMostrarInicial2.setBounds(680, 5, 450, 40); textoMostrarInicial2.setForeground(Color.WHITE); //panel extra panelDosExtra = new JPanel(); panelDosExtra.setBackground(myColorHeaderTitulo); panelDosExtra.setBounds(0, 0, 1000, 400); panelDosExtra.setLayout(null); panelDosExtra.setVisible(false); //=============================== //texto menu principal 2 textoAbrirArchivoInicializar = new JLabel("Abrir Archivos Inicializar.in"); textoAbrirArchivoInicializar.setFont(new Font("Yu Gothic UI Semilight", Font.PLAIN, 20)); textoAbrirArchivoInicializar.setBounds(10, 14, 281, 51); textoAbrirArchivoInicializar.setForeground(Color.WHITE); textoAbrirArchivoPrecio = new JLabel("Abrir Archivos Precio.in"); textoAbrirArchivoPrecio.setFont(new Font("Yu Gothic UI Semilight", Font.PLAIN, 20)); textoAbrirArchivoPrecio.setBounds(10, 65, 281, 51); textoAbrirArchivoPrecio.setForeground(Color.WHITE); //- - - - - //botones menu principal 2 botonAbrirArchivoInicializar = new JButton("Abrir Archivo"); botonAbrirArchivoInicializar.setBounds(300, 25, 150, 40); botonAbrirArchivoInicializar.setForeground(myColorBotonLetraHeader); botonAbrirArchivoInicializar.setBackground(myColorBotonHeader); botonAbrirArchivoPrecio = new JButton("Abrir Archivo"); botonAbrirArchivoPrecio.setBounds(300, 75, 150, 40); botonAbrirArchivoPrecio.setForeground(myColorBotonLetraHeader); botonAbrirArchivoPrecio.setBackground(myColorBotonHeader); //- - - - - textoCargaInteractiva = new JLabel("Carga Interactiva"); textoCargaInteractiva.setFont(new Font("Yu Gothic UI Semilight", Font.PLAIN, 20)); textoCargaInteractiva.setBounds(10, 150, 221, 51); textoCargaInteractiva.setForeground(Color.WHITE); //=============================== //panel extra panelDosExtra.add(botonAbrirArchivoInicializar); panelDosExtra.add(botonAbrirArchivoPrecio); panelDosExtra.add(textoAbrirArchivoInicializar); panelDosExtra.add(textoAbrirArchivoPrecio); panelDosExtra.add(textoCargaInteractiva); panelDosExtra.add(botonIniciaizarDos); panelDosExtra.add(botonPreciosDos); panelDos.add(panelDosExtra); //=============================== //agregar a panel inicializar panelInicializarDos.add(textoSaldoInicial); panelInicializarDos.add(TextoSaldoInicial); panelInicializarDos.add(textoFechaInicial); panelInicializarDos.add(textoPisos); panelInicializarDos.add(CampoTextoPisos); panelInicializarDos.add(botonIngresarInicializar); panelInicializarDos.add(textoMostrarInicial); //=============================== //agregar a panel precios panelPreciosDos.add(TextoHabitaciones); panelPreciosDos.add(textoIndv); panelPreciosDos.add(CampoTextoIndv); panelPreciosDos.add(textoDoble); panelPreciosDos.add(CampoTextoDoble); panelPreciosDos.add(textoMatri); panelPreciosDos.add(CampoTextoMatri); panelPreciosDos.add(textoCuadruple); panelPreciosDos.add(CampoTextoCuadruple); panelPreciosDos.add(textoSuite); panelPreciosDos.add(CampoTextoSuite); panelPreciosDos.add(TextoHabitaciones2); panelPreciosDos.add(TextoHabitaciones3); panelPreciosDos.add(textoEsp_C); panelPreciosDos.add(CampoTextoEsp_C); panelPreciosDos.add(textoLom_M); panelPreciosDos.add(CampoTextoLom_M); panelPreciosDos.add(textoJug_L); panelPreciosDos.add(CampoTextoJug_L); panelPreciosDos.add(textoMalta); panelPreciosDos.add(CampoTextoMalta); panelPreciosDos.add(textoCam_A); panelPreciosDos.add(comboCam_A); panelPreciosDos.add(textoCaj_F); panelPreciosDos.add(comboCaj_F); panelPreciosDos.add(botonIngresarPrecios); panelPreciosDos.add(botonIngresarPrecios); panelPreciosDos.add(textoMostrarInicial2); panelDos.add(panelInicializarDos); panelDos.add(panelPreciosDos); add(panelDos); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public PanelIniciarSesion() {\n initComponents();\n }", "public void iniciarComponentes(){\n\n crearPanel();\n colocarBotones();\n \n }", "@Override\n public void actionPerformed(ActionEvent e) {\n controladorUsuario.getControladorVistaInicial().limpiarPaneles();\n ...
[ "0.7956113", "0.76696116", "0.7519152", "0.75176", "0.74727714", "0.74727714", "0.7443971", "0.74399316", "0.741614", "0.73915064", "0.720729", "0.7192507", "0.717896", "0.71559256", "0.71317524", "0.71291876", "0.7116179", "0.7112433", "0.71052504", "0.7093934", "0.7078762",...
0.7416306
8
static int i = 1;
@Override public Productor getProductor() { return new ProductorImp1(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "StaticVariable(){\n count++;//incrementing the value of static variable\n System.out.println(count);\n }", "static void m1(int a){\n\t\ta=Static11.a;\nSystem.out.println(a);\n\t}", "extern(int i) {\n var = i;\n }", "p3(){ \n cnt++; // Increment the static variable by 1 ...
[ "0.6917549", "0.65570295", "0.65340894", "0.6532999", "0.64245045", "0.6331412", "0.6326155", "0.5970205", "0.59431094", "0.5932222", "0.5924848", "0.5906525", "0.5879794", "0.5813857", "0.58075416", "0.5802136", "0.5793288", "0.5761332", "0.5729236", "0.5724516", "0.56835455...
0.0
-1
method to categorize method of class into proper blocks
public void categorizeMethods(Map<String, ContainerClassCU> containerClassCUMap, String block) { logger.info("starts to categorize methods into block with " + block + "..."); containerClassCUMap.entrySet() .stream(). filter(y -> !y.getValue().getBelongToBlocks().equals("")) .forEach(y -> { List<MethodDeclaration> methodClassList; methodClassList = y.getValue().getMethodDeclarations(); methodClassList.forEach(z -> categorizeMethod(z, y.getValue(), block, containerClassCUMap)); }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Snippet visit(MethodDeclaration n, Snippet argu) {\n\t\t Snippet _ret=null;\n\t\t\ttPlasmaCode = \"\";\n\t n.nodeToken.accept(this, argu);\n\t n.nodeToken1.accept(this, argu);\n\t Snippet f2 = n.returnType.accept(this, argu);\n\t String tempString = \"\";\n\t\t\tif(f2 != null){\n\t\t\t...
[ "0.53441703", "0.52957994", "0.52868176", "0.52768344", "0.5256956", "0.52545935", "0.5237733", "0.5217948", "0.521352", "0.51990527", "0.5195992", "0.5156336", "0.5144992", "0.51352894", "0.5124856", "0.5115691", "0.51105875", "0.51083916", "0.50826794", "0.5066032", "0.5059...
0.6269368
0
Method called when the 'Save' button is clicked.
public void SaveButtonOnClickListener(View view) { String defaultObjectOwner = ((EditText)findViewById(R.id.settings_default_object_owner_field)).getText().toString().trim(); presenter.SaveSettings(defaultObjectOwner); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void onSaveClicked();", "void handleSaveClicked(ActionEvent event);", "public void saveData(){\n reporter.info(\"Save edited form\");\n clickOnElement(LOCATORS.getBy(COMPONENT_NAME,\"SAVE_BUTTON\"));\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tSave();\n\t\t\t}", ...
[ "0.82174736", "0.7993568", "0.79688466", "0.7934442", "0.76906127", "0.7619666", "0.76005054", "0.75997084", "0.7593264", "0.7528069", "0.74805343", "0.74779516", "0.74779516", "0.74779516", "0.74779516", "0.74469537", "0.7442084", "0.7441896", "0.74028015", "0.7390886", "0.7...
0.6953056
62
Two members with the same identity fields
@Test public void resetData_withDuplicateMembers_throwsDuplicateMemberException() { Member editedAlice = new MemberBuilder(ALICE).withAddress(VALID_ADDRESS_BOB).withPositions(VALID_POSITION_HUSBAND) .build(); List<Member> newMembers = Arrays.asList(ALICE, editedAlice); AddressBookStub newData = new AddressBookStub(newMembers); assertThrows(DuplicateMemberException.class, () -> addressBook.resetData(newData)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean hasIdentity() { return true; }", "public boolean hasIdentity() { return true; }", "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof Identity)) {\r\n return false;\r\n }\r\n Identity other = (Identity) object;\r\n if ((this.u...
[ "0.6105634", "0.6105634", "0.58976245", "0.582586", "0.58120096", "0.5794683", "0.57626194", "0.5704955", "0.5702495", "0.5663677", "0.565567", "0.56370306", "0.5607487", "0.5607132", "0.55667454", "0.55667454", "0.55667454", "0.5534039", "0.5530364", "0.55240905", "0.5514071...
0.0
-1
A specialized Collection class which keeps Parameters and can return the correct Parameter that is in the collection and has a given reference. The collection must not allow for the same ParameterReference (except ParameterReference.UNREFERENCABLE) to refer to two different Parameters in the collection. ParameterCollection takes a type parameter which is constrained to be a subtype of Parameter. This is so ParameterCollections can be declared to hold more specific Parameter types. Note that order for the Parameters in the collection may matter. So, where possible, Parameters should be used in the order returned by the Collection's iterator. If order does matter, the implementer should also implement List. ParameterCollections may or may not be unmodifiable. As stated by the Collections framework, modifying methods should throw UnsupportedOperationException. Unreferencable Parameters (those that return ParameterReference.UNREFERENCABLE as their reference) must not be able to be returned through get(ParameterReference) nor be able to referred to through any method which uses a ParameterReference argument to refer to an actual Parameter (e.g., containsByReference should return false for ParameterReference.UNREFERENCABLE). Unreferencable Parameters can be dealt with by using the actual Parameter object rather than the reference (e.g., the contains(Object) method from Collection should return true if the argument is an Unreferencable Parameter in the Collection). Unreferencable Parameters should be returned by the Iterator for the collection.
public interface ParameterCollection<T extends Parameter> extends Collection<T> { /** * Determines if a Parameter with the given ParameterReference is in the collection. * Always returns false for ParameterReference.UNREFERENCABLE. * * @param ref The ParameterReference to check. * @return Returns true iff a Parameter with the given ParameterReference is in the * collection and the reference is not equal to ParameterReference.UNREFERENCABLE. */ public boolean containsByReference(ParameterReference ref); /** * @param reference The ParameterReference to find a Parameter for. * @return Returns the Parameter that's being referenced. Returns null if no * Parameter is in the collection with the given reference (i.e., reference is not in * the set returned by getParameterReferences()). If reference is equal to * ParameterReference.UNREFERENCABLE, the ParameterCollection must return * null, and not any unreferencable Parameter it may contain. */ public T get(ParameterReference reference); /** * @return Returns a Set containing all possible ParameterReferences for which a * non-null Parameter will be returned when called as an argument to getParameter(). * ParameterReference.UNREFERENCABLE must not be in the returned set as a Parameter * can never be returned for it with getParameter(). */ public Set<ParameterReference> getParameterReferences(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "CollectionParameter createCollectionParameter();", "IParameterCollection getParameters();", "public interface Parameter {\n\n\t/**\n\t * Returns the actual parameter value given the inputs provided as arguments.\n\t * If the actual value cannot be retrieved (missing information), throws \n\t * an exception.\n\...
[ "0.7289678", "0.61770314", "0.5889326", "0.5873202", "0.58360493", "0.5705199", "0.56982464", "0.556147", "0.55603814", "0.54240334", "0.5418067", "0.5402583", "0.5380461", "0.52309096", "0.5213527", "0.51952225", "0.51869935", "0.5172077", "0.5167678", "0.51608443", "0.51233...
0.87793654
0
Determines if a Parameter with the given ParameterReference is in the collection. Always returns false for ParameterReference.UNREFERENCABLE.
public boolean containsByReference(ParameterReference ref);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean contains(CParamImpl param);", "public boolean involvesTypeParameter(TypeReference tref) throws LookupException {\n\t\treturn ! involvedTypeParameters(tref).isEmpty();\n\t}", "public interface ParameterCollection<T extends Parameter> extends Collection<T> {\r\n\t\r\n\t/**\r\n\t * Determines if a ...
[ "0.63811415", "0.6368058", "0.63032246", "0.62303466", "0.620721", "0.61350834", "0.61262274", "0.5958303", "0.57601863", "0.5742021", "0.5725358", "0.5678475", "0.56276816", "0.5620154", "0.55837315", "0.5556657", "0.55561954", "0.5514392", "0.5456783", "0.5450074", "0.54413...
0.7324454
0
Inflate the menu; this adds items to the action bar if it is present.
@Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.main_easy_paint, 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.7247427", "0.720267", "0.7196145", "0.7178052", "0.71080035", "0.7040695", "0.7039065", "0.7012457", "0.7011027", "0.6980861", "0.69456106", "0.69392735", "0.6934666", "0.691844", "0.691844", "0.6891824", "0.6884514", "0.6875728", "0.6875644", "0.6862535", "0.6862535", "...
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(); //noinspection SimplifiableIfStatement 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.7905288", "0.7806507", "0.7767581", "0.7728288", "0.76327986", "0.7622734", "0.75856835", "0.7531844", "0.74890584", "0.74584335", "0.74584335", "0.7439769", "0.7422939", "0.7404292", "0.7392902", "0.7388083", "0.73805684", "0.7371689", "0.7363277", "0.73572534", "0.734688...
0.0
-1
constructor of Event task.
public Event(String description, String at) throws DukeException { super(description); this.at = at; try { String[] dateTimeUnformattedArr = at.substring(1).split(" "); String dateUnformatted = dateTimeUnformattedArr[0]; String timeUnformatted = dateTimeUnformattedArr[1]; this.date = extractDate(dateUnformatted); this.time = extractTime(timeUnformatted); } catch (StringIndexOutOfBoundsException | ArrayIndexOutOfBoundsException | DateTimeException a) { throw new DukeException("Date / time not formatted correctly, please follow format: yyyy/mm/dd hh:mm"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Task() {\n\t}", "public Event() {}", "public ScheduleEvent()\n\t{\n\n\t}", "public Task() {\r\n }", "public Event() {\n }", "public Event() {\n }", "public Event() {\r\n\r\n\t}", "public EventQueue(){}", "public Event() {\n\n }", "public Task(){}", "public Event() {\n...
[ "0.74514383", "0.74321854", "0.74093723", "0.7380782", "0.7335735", "0.7335735", "0.733551", "0.7331184", "0.7316698", "0.72991383", "0.7289583", "0.7269113", "0.72462", "0.72325116", "0.722916", "0.7227218", "0.72132784", "0.7186727", "0.6885067", "0.68745065", "0.67231876",...
0.0
-1
returns string of task to be printed out and shown to user.
@Override public String toString() { DateTimeFormatter dtfDate = DateTimeFormatter.ofPattern("MMM dd yyyy"); DateTimeFormatter dtfTime = DateTimeFormatter.ISO_LOCAL_TIME; assert dtfDate instanceof DateTimeFormatter : "date formatter has to be of type DateTimeFormatter"; assert dtfTime instanceof DateTimeFormatter : "time formatter has to be of type DateTimeFormatter"; final String EVENT_STRING_SHOWED_TO_USER = "[E]" + super.toString() + this.stringOfTags + " " + "(at: " + this.date.format(dtfDate) + " " + this.time.format(dtfTime) + ")"; return EVENT_STRING_SHOWED_TO_USER; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract String taskToText();", "public void printTask() {\r\n\t\tSystem.out.println(\"ID: \" + this.id + \" | Description: \" + this.description + \" | Processor: \" + this.processor);\r\n\t\tSystem.out.println(\"Status: \" + this.status + \" | Fälligkeitsdatum: \" + this.formatedDueDate);\r\n\t\tSystem....
[ "0.76666963", "0.7451407", "0.7400613", "0.73900825", "0.734411", "0.72995895", "0.7297712", "0.7266802", "0.72076166", "0.7092724", "0.7092724", "0.7076327", "0.70129675", "0.70079815", "0.6992799", "0.69475424", "0.69460845", "0.69454515", "0.68901557", "0.68235874", "0.670...
0.0
-1
returns string of task to be saved in storage.
@Override public String stringToSave() { char status = this.isDone ? '1' : '0'; DateTimeFormatter dtfDate = DateTimeFormatter.ofPattern("MMM dd yyyy"); DateTimeFormatter dtfTime = DateTimeFormatter.ISO_LOCAL_TIME; assert dtfDate instanceof DateTimeFormatter : "date formatter has to be of type DateTimeFormatter"; assert dtfTime instanceof DateTimeFormatter : "time formatter has to be of type DateTimeFormatter"; final String EVENT_STRING_TO_SAVE = "E " + "| " + status + " | " + this.description+ this.stringOfTags + " " + "| " + this.date.format(dtfDate) + " " + this.time.format(dtfTime); return EVENT_STRING_TO_SAVE; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getSaveString() {\n if (this.isDone()) {\n return String.format(\"[isDone] todo %s\\n\", description);\n } else {\n return String.format(\"todo %s\\n\", description);\n }\n }", "public String getString() {\n assert tasks != null : \"tasks cannot ...
[ "0.69254184", "0.6696688", "0.6686061", "0.66622126", "0.66560644", "0.6640554", "0.6640554", "0.65765357", "0.65318143", "0.6421899", "0.6385859", "0.6355016", "0.63533974", "0.63461614", "0.6340325", "0.6332824", "0.6332824", "0.63093877", "0.62977076", "0.62836146", "0.626...
0.63800806
11
Sets the currently filtered (visible) comments
public void setFilteredComments(Set<Comment> filteredComments);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setComments(String newValue);", "@Override\n @IcalProperty(pindex = PropertyInfoIndex.COMMENT,\n adderName = \"comment\",\n analyzed = true,\n eventProperty = true,\n todoProperty = true,\n journalProperty = true,\n ...
[ "0.6801237", "0.64533", "0.63636494", "0.6298191", "0.62926817", "0.61954844", "0.6189098", "0.6166401", "0.61663496", "0.6151879", "0.6151879", "0.606259", "0.60409284", "0.6036772", "0.6012392", "0.59671396", "0.5939643", "0.5939643", "0.59382105", "0.59382105", "0.5888116"...
0.77580816
0
1 charger dans une table temporaire
@Override public void load(String filename, DatasourceSchema datasourceSchema) throws BigQueryLoaderException { GcsFileToBqTableLoader gcsFileToBqTableLoader = new GcsFileToBqTableLoader( bigQueryRepository, filename, datasourceSchema); gcsFileToBqTableLoader.load(); // 2- crée la table si elle n'existe pas if (bigQueryRepository.tableExists(datasourceSchema.getTableId())) { LOGGER.info("Table " + datasourceSchema.getFullTableName() + " already exists"); } else { try { bigQueryRepository .runDDLQuery("CREATE TABLE " + datasourceSchema.getFullTableName() + " AS " + "SELECT *, CURRENT_DATETIME() AS load_date_time FROM " + datasourceSchema .getFullTableTmpName() + " LIMIT 0"); } catch (Exception e) { throw new BigQueryLoaderException( "Cannot create table " + datasourceSchema.getFullTableTmpName(), e); } } // 3- déverse tout la table cible avec le champ load date time try { bigQueryRepository.runDDLQuery("INSERT INTO `" + datasourceSchema.getFullTableName() + "` " + "SELECT *, CURRENT_DATETIME() AS load_date_time FROM `" + datasourceSchema .getFullTableTmpName() + "`"); } catch (Exception e) { throw new BigQueryLoaderException( "Cannot insert from " + datasourceSchema.getFullTableTmpName() + " into destination table " + datasourceSchema.getFullTableName(), e); } // 4- drop la table temporaire bigQueryRepository.dropTable(datasourceSchema.getTmpTableId()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Tablero consultarTablero();", "public void preencherTabela(){\n imagemEnunciado.setImage(imageDefault);\n pergunta.setImagemEnunciado(caminho);\n imagemResposta.setImage(imageDefault);\n pergunta.setImagemResposta(caminho);\n ///////////////////////////////\n perguntas =...
[ "0.66295826", "0.595246", "0.5950459", "0.59448534", "0.59175485", "0.58976936", "0.58814836", "0.5854715", "0.5848566", "0.5834498", "0.5824806", "0.5814653", "0.5805954", "0.5763313", "0.5750788", "0.5750718", "0.5748277", "0.57048225", "0.5694166", "0.56923765", "0.5667218...
0.0
-1
Just an alias for syslogHost (since that name doesn't make much sense here)
public void setHost(String host) { setSyslogHost(host); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getHost();", "java.lang.String getHost();", "String getHost();", "String host();", "public String getHost();", "public String getHost();", "public String getHostName();", "String getHostname();", "String getHostname();", "String getHostName();", "String getHostName();", "publ...
[ "0.640737", "0.640737", "0.6206931", "0.61956143", "0.615517", "0.615517", "0.61427927", "0.6089902", "0.6089902", "0.6077732", "0.6077732", "0.6075848", "0.60741436", "0.6059635", "0.6034275", "0.6034275", "0.59347355", "0.59229875", "0.59060127", "0.58764994", "0.58646387",...
0.7239061
0