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
TODO Autogenerated method stub
private String parsePostRequest(StringTokenizer parse) { String fileRequested = parse.nextToken(); 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.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
JSONObject obj = new JSONObject();
public void sendResponseToClient(PrintWriter out, BufferedOutputStream dataOut, String httpResponse) throws IOException { out.println("HTTP/1.0 200 OK"); out.println("Content-length: " + httpResponse.toString().length()); out.println(); // blank line out.flush(); dataOut.write(httpResponse.toString(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "JSONObject toJson();", "JSONObject toJson();", "private static JSONObject getDataObject(JSONObject obj)\n\t{\n\t\tJSONObject objData = new JSONObject();\n\t\tobjData.put(\"data\", obj);\n\t\treturn objData;\n\t}", "void mo28373a(JSONObject jSONObject);", "void mo59932a(String str, JSONObject jSONObject);",...
[ "0.71375746", "0.71375746", "0.7064292", "0.6938273", "0.6638203", "0.6622999", "0.6517277", "0.64292043", "0.6409292", "0.6391049", "0.6353835", "0.633704", "0.63189954", "0.630456", "0.6293574", "0.62595946", "0.6254293", "0.62520325", "0.624725", "0.624315", "0.623574", ...
0.0
-1
Constructs a SandTile with its top left point at the given x and y.
public SandTile(float x, float y) { super(x, y, ImageLibrary.get("sand_tile")); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public TileFloor(int x, int y)\r\n {\r\n random = new Random(12345);\r\n ROWS = DEFAULT_ROWS;\r\n COLUMNS= DEFAULT_COLUMNS;\r\n this.x = x;\r\n this.y = y;\r\n }", "public Tile(final int x, final int y) {\n this.x = x;\n this.y = y;\n }", "public Tile(i...
[ "0.67232627", "0.658383", "0.62687236", "0.6237549", "0.61946815", "0.616293", "0.6124062", "0.60213757", "0.5937195", "0.5912261", "0.589072", "0.5885573", "0.5885357", "0.58851093", "0.58154356", "0.5752829", "0.5679711", "0.56747466", "0.56716114", "0.56668544", "0.566418"...
0.7432732
0
Renders the specified duration. If time is negative it is rendered as "?".
public static String renderDuration(long durationInMillisecondsOrNeg) { if (durationInMillisecondsOrNeg < 0) { return "?"; } if (durationInMillisecondsOrNeg < 1000) { return "< " + render(1, "sec"); } long durationInSeconds = (durationI...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setDuration(java.lang.String duration);", "public String render()\n {\n if(getHungerCountdown() <= 0 && getHungerCountdown() > -5){\n return \"s\";\n }\n else if (getHungerCountdown() > 0){\n return \"S\";\n ...
[ "0.594467", "0.5915423", "0.58812755", "0.58219695", "0.58219695", "0.58191997", "0.5813899", "0.5779415", "0.57677794", "0.57677794", "0.56965303", "0.56864303", "0.56810904", "0.5678143", "0.5670564", "0.5662809", "0.56399906", "0.5633646", "0.5633646", "0.55616015", "0.555...
0.69010955
0
Parses a time duration to milliseconds. The string will be trimmed and white spaces in between number and unit are ignored. Accepted numbers are: ms, msec: milliseconds s, sec or nothing: seconds m, min: minutes h, hours: hours d, days: days
public static long parseDurationToMillis(String durationStr) { final String durationStrTrimmed = durationStr.trim(); Matcher m; m = secPattern.matcher(durationStrTrimmed); if (m.matches()) { return Long.parseLong(m.group(1)) * 1000L; } m = minPatte...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private long extractMillis(String value)\r\n/* 364: */ {\r\n/* 365:318 */ int start = value.indexOf(\"\\\"\");\r\n/* 366:319 */ int end = value.lastIndexOf(\"\\\"\");\r\n/* 367:320 */ String time = value.substring(start + 1, end);\r\n/* 368: */ \r\n/* 369:322 */ Date result = null;\r\n/...
[ "0.64193875", "0.6176199", "0.61719805", "0.6024493", "0.5870323", "0.57605344", "0.57151043", "0.5702215", "0.57008487", "0.56512654", "0.56493175", "0.5623042", "0.55541503", "0.5518908", "0.5474907", "0.54178864", "0.53862125", "0.5361134", "0.533673", "0.5311045", "0.5240...
0.69804555
0
Extends the given date until the end of the day.
public static Date extendUntilEndOfDay(Date date) { return DateUtils.addMilliseconds(DateUtils.addDays(DateUtils.truncate(date, Calendar.DAY_OF_MONTH), 1), -1); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static Date setToEndOfDay(Date date) {\n\t\t\n\t\tCalendar cal = Calendar.getInstance();\n\t\tcal.setTime(date);\n\t\tcal.set(Calendar.HOUR_OF_DAY, 23);\n\t cal.set(Calendar.MINUTE, 59);\n\t cal.set(Calendar.SECOND, 59);\n\t cal.set(Calendar.MILLISECOND, 999);\n\t return cal.getTime();\n\t}", ...
[ "0.7095787", "0.6520029", "0.63282466", "0.62558824", "0.61308646", "0.600853", "0.5976809", "0.5884086", "0.5850088", "0.58098924", "0.579355", "0.579355", "0.57792294", "0.57104117", "0.5705233", "0.5663074", "0.5660271", "0.56028146", "0.5597724", "0.55667603", "0.5549183"...
0.763368
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.nav_drawer_place_search, menu); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tMenuInflater inflater = getMenuInflater();\n \tinflater.inflate(R.menu.main_activity_actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {...
[ "0.7246102", "0.7201358", "0.7194834", "0.7176498", "0.71066517", "0.7039537", "0.7037961", "0.70112145", "0.70094734", "0.69807225", "0.6944953", "0.69389373", "0.6933199", "0.6916928", "0.6916928", "0.6891486", "0.68831646", "0.68754137", "0.68745375", "0.68621665", "0.6862...
0.0
-1
Handle action bar item clicks here. The action bar will automatically handle clicks on the Home/Up button, so long as you specify a parent activity in AndroidManifest.xml.
@Override public boolean onOptionsItemSelected(MenuItem item) { int id = item.getItemId(); //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.79046714", "0.78065175", "0.7766765", "0.7727237", "0.76320195", "0.7622174", "0.7585192", "0.75314754", "0.74888134", "0.7458358", "0.7458358", "0.7438547", "0.7421898", "0.7402884", "0.73917156", "0.738695", "0.73795676", "0.73704445", "0.7361756", "0.7356012", "0.734561...
0.0
-1
Handle navigation view item clicks here.
@SuppressWarnings("StatementWithEmptyBody") @Override public boolean onNavigationItemSelected(MenuItem item) { int id = item.getItemId(); if (id == R.id.nav_camera) { Intent intent=new Intent(NavDrawerPlaceSearchActivity.this,NavDrawerMainMenuActivity.class); startActivi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void onNavigationItemClicked(Element element);", "@Override\n public void onClick(View view) { listener.onItemClick(view, getPosition()); }", "void onDialogNavigationItemClicked(Element element);", "@Override\n public void onClick(View view) {\n itemInterface.OnItemClickedListener(tr...
[ "0.7882029", "0.7235578", "0.6987005", "0.69458413", "0.6917864", "0.6917864", "0.6883472", "0.6875181", "0.68681556", "0.6766498", "0.67418456", "0.67207", "0.6716157", "0.6713947", "0.6698189", "0.66980195", "0.66793925", "0.66624063", "0.66595167", "0.6646381", "0.6641224"...
0.0
-1
latLng=new LatLng(arrayList.get(pos).getLatitude(),arrayList.get(pos).getLongitude()); StringBuilder placeList=new StringBuilder();
@Override protected void onPostExecute(String temp) { progressDialog.dismiss(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n // Add a marker in Sydney and move the camera\n// LatLng sydney = new LatLng(-34, 151);\n// mMap.addMarker(new MarkerOptions().position(sydney).title(\"Marker in Sydney\"));\n// mMap.moveCamera(C...
[ "0.63015586", "0.6234858", "0.6080893", "0.6075355", "0.60636395", "0.60534906", "0.6036986", "0.60325104", "0.6030139", "0.60081947", "0.5994634", "0.59733087", "0.59598976", "0.5958901", "0.59252137", "0.59135795", "0.589175", "0.58896065", "0.58475584", "0.58283556", "0.58...
0.0
-1
/ Retrieve the place ID of the selected item from the Adapter. The adapter stores each Place suggestion in a AutocompletePrediction from which we read the place ID and title. mAutocompleteViewSource.setEnabled(true);
@Override public void onItemClick(AdapterView<?> parent, View view, int position, long id) { final AutocompletePrediction item = mAdapter.getItem(position); final String placeId = item.getPlaceId(); final CharSequence primaryText = item.getPrimaryText(null); // mAu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n final AutocompletePrediction item = mAdapter.getItem(position);\n final String placeId = item.getPlaceId();\n final CharSequence primaryText = item.getPrimaryText(null);\n\n ...
[ "0.77653176", "0.76055294", "0.72782856", "0.6238127", "0.62195283", "0.61986315", "0.61563915", "0.5977826", "0.59510887", "0.5914813", "0.5784226", "0.5783813", "0.5780982", "0.57801193", "0.576408", "0.5755081", "0.5740926", "0.57156", "0.5692044", "0.56620127", "0.5650833...
0.77524716
1
TODO(Developer): Check error code and notify the user of error state and resolution.
@Override public void onConnectionFailed(ConnectionResult connectionResult) { Toast.makeText(this, "Could not connect to Google API Client: Error " + connectionResult.getErrorCode(), Toast.LENGTH_SHORT).show(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void handleError(int code);", "void notSupported(String errorcode);", "@Override\n protected void handleErrorResponseCode(int code, String message) {\n }", "public abstract void OnError(int code);", "private void correctError()\r\n\t{\r\n\t\t\r\n\t}", "@Override\n ...
[ "0.7270686", "0.7251273", "0.7128089", "0.71085995", "0.69722676", "0.69100237", "0.6820016", "0.6817764", "0.67877114", "0.67706555", "0.67592007", "0.675071", "0.67452073", "0.67305857", "0.67294455", "0.6718882", "0.66334605", "0.6560256", "0.65439934", "0.65090275", "0.65...
0.0
-1
Retorna um pedido por ID.
@GetMapping(value = "/{id}") public ResponseEntity<Response<PedidoDto>> listarPorId(@PathVariable("id") Long id) { log.info("Buscando pedido por ID: {}", id); Response<PedidoDto> response = new Response<PedidoDto>(); Optional<Pedido> pedido = this.pedidoService.buscarPorId(id); if (!pedido.isPresent()) { l...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getIdPedido() {\r\n\t\treturn idPedido;\r\n\t}", "BeanPedido getPedido(UUID idPedido);", "@Override\n public long getPartidoId() {\n return _partido.getPartidoId();\n }", "@RequestMapping(value = \"/{id}\", method = RequestMethod.GET)\n\t\tpublic ResponseEntity<Optional<Pedido>> find(...
[ "0.7094651", "0.70320255", "0.65670127", "0.6320557", "0.6278179", "0.6062296", "0.60563815", "0.6044965", "0.60434973", "0.6035983", "0.6035696", "0.6028832", "0.6012237", "0.59930027", "0.5991311", "0.59706146", "0.59706146", "0.59706146", "0.5969153", "0.59626794", "0.5957...
0.6064209
5
Adiciona um novo pedido.
@PostMapping public ResponseEntity<Response<PedidoDto>> adicionar(@Valid @RequestBody PedidoDto pedidoDto, BindingResult result) throws ParseException { log.info("Adicionando pedido: {}", pedidoDto.toString()); Response<PedidoDto> response = new Response<PedidoDto>(); pedidoService.validarUsuario(pedidoDto, r...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void hacerPedido(){\n this.sucursal.procesarPedido(this.pedido, this.id);\n this.pedido = new Integer[5];\n contadorPedido = 0;\n }", "public void agregarPedido(PedidoIndividual pedido) throws QRocksException;", "public OrdemDeServico inserir (OrdemDeServico servico) {\n\t\tservico.setId((Long...
[ "0.6684213", "0.64254874", "0.6191333", "0.61819255", "0.6170274", "0.6159252", "0.5989382", "0.59390223", "0.59106773", "0.5866079", "0.5842741", "0.5785965", "0.5779698", "0.57734036", "0.5763098", "0.572469", "0.567758", "0.56602824", "0.5656219", "0.56441396", "0.5639044"...
0.0
-1
Remove um pedido por ID.
@DeleteMapping(value = "/{id}") @PreAuthorize("hasAnyRole('ADMIN')") public ResponseEntity<Response<String>> remover(@PathVariable("id") Long id) { log.info("Removendo pedido: {}", id); Response<String> response = new Response<String>(); Optional<Pedido> pedido = this.pedidoService.buscarPorId(id); if (!pedi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void eliminarPedido(UUID idPedido);", "@Override\n public int remove(int id) {\n detalleVentaJpaRepository.delete(id);\n return 0;\n }", "public void eliminarTripulante(Long id);", "void remove(Long id);", "void remove(Long id);", "void remove(String id);", "void remove(String id);"...
[ "0.78902996", "0.72243947", "0.7156589", "0.7094088", "0.7094088", "0.70567423", "0.70567423", "0.70567423", "0.7042451", "0.6989119", "0.69769347", "0.6918859", "0.6912046", "0.6872654", "0.6840061", "0.68290806", "0.68116814", "0.67892253", "0.6770344", "0.6761848", "0.6756...
0.72995454
1
helper method to dynamically load writer classes, this allows external libraries to be loaded without breaking things at compile time
private static void loadWriterClass(String writer, String regex){ try { FASTAWriterFactory factory = (FASTAWriterFactory)Class.forName(writer).newInstance(); setFASTAWriter(factory, regex); } catch (Exception e){ System.err.println("Failed to load writer class "+...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected StoryClassLoader createStoryClassLoader() throws MalformedURLException {\n return new StoryClassLoader(classpathElements());\n }", "@Override\n public void load() throws IOException, ClassNotFoundException {\n \n }", "public static void load() throws IOException {\n Clas...
[ "0.5713129", "0.56474894", "0.56104004", "0.55988777", "0.5546238", "0.55064756", "0.55002546", "0.54668725", "0.5424729", "0.53880167", "0.5278635", "0.5270314", "0.52618337", "0.524165", "0.52347875", "0.5230964", "0.5223411", "0.5209855", "0.5204838", "0.5204426", "0.51746...
0.69911957
0
Returns all the registered writers.
public static FASTAWriterFactory[] getRegisteredWriters(){ return (FASTAWriterFactory[])writers.values().toArray(new FASTAWriterFactory[0]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static Set<PrintWriter> getWriters() {\n return writers;\n }", "public Collection<WriterProxy> getMatchedWriters() {\r\n\t\treturn writerProxies.values();\r\n\t}", "public Enumeration getAllAppenders() {\n synchronized (myAppenders) {\n return myAppenders.getAllAppenders();\n...
[ "0.8038602", "0.7432554", "0.63610506", "0.6091162", "0.5995395", "0.5986705", "0.5886756", "0.58227175", "0.5726672", "0.5726672", "0.5686658", "0.5645691", "0.5645691", "0.56237715", "0.55873966", "0.55847216", "0.5572516", "0.5535187", "0.5507472", "0.55023277", "0.5447901...
0.7544297
1
Helper method to register writer objects. Each factory is registered with a regular expression. The regular expression is used to screen filenames for matches that can be parsed by the reader.
public synchronized static void setFASTAWriter(FASTAWriterFactory factory, String regex) { // treat the extension as a regular expression Pattern pattern = Pattern.compile(regex); writers.put(pattern, factory); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void loadWriterClass(String writer, String regex){\r\n try {\r\n FASTAWriterFactory factory = (FASTAWriterFactory)Class.forName(writer).newInstance();\r\n setFASTAWriter(factory, regex);\r\n } catch (Exception e){\r\n System.err.println(\"Failed to load...
[ "0.6514624", "0.5390684", "0.532539", "0.53004104", "0.51624405", "0.51597494", "0.51333755", "0.51116186", "0.50897795", "0.49908438", "0.49402273", "0.49184486", "0.49063396", "0.48728293", "0.48448312", "0.4819419", "0.48122287", "0.4800138", "0.4775419", "0.47753394", "0....
0.6424491
1
Helper method to get an appropriate reader based on a filename.
public synchronized static FASTAWriter getFASTAWriter(String filename) { // get the appropriate factory FASTAWriterFactory factory = (FASTAWriterFactory) getFASTAWriterFactory(filename); // return null if none exist if (factory == null) { return null; } ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Reader getReader(String filename) throws FileNotFoundException {\n\t\ttry {\n\t\t\tInputStream inputStream = new FileInputStream(filename);\n\t\t\treturn new InputStreamReader(inputStream, \"UTF-8\");\n\t\t} catch (UnsupportedEncodingException e) {\n\t\t\tthrow new IllegalStateException(\"Unable to re...
[ "0.7367298", "0.7126739", "0.6817769", "0.6750906", "0.67122096", "0.664678", "0.65937346", "0.6526513", "0.6472308", "0.6397687", "0.6393442", "0.6324193", "0.6271937", "0.6251481", "0.6240681", "0.62169474", "0.6213994", "0.6160378", "0.60221595", "0.59919554", "0.59729534"...
0.0
-1
Helper method to get an appropriate FASTAWriterFactory instance.
public synchronized static FASTAWriterFactory getFASTAWriterFactory(String filename) { // check for the appropriate factory for (Iterator it = writers.keySet().iterator(); it.hasNext();) { Pattern p = (Pattern) it.next(); // always match against lower case ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public synchronized static FASTAWriter getFASTAWriter(String filename) {\r\n // get the appropriate factory\r\n FASTAWriterFactory factory = (FASTAWriterFactory) getFASTAWriterFactory(filename);\r\n // return null if none exist\r\n if (factory == null) {\r\n return null;\r\n ...
[ "0.75494844", "0.61863285", "0.61625415", "0.5787723", "0.57695127", "0.5762683", "0.55918425", "0.5586374", "0.55822784", "0.55238944", "0.5507426", "0.53591704", "0.5344908", "0.52628297", "0.5260005", "0.52305216", "0.5220771", "0.52133286", "0.52126604", "0.51588404", "0....
0.79608464
0
Public constructor, automatically sets up buffered IO.
public AbstractFASTAWriter(String fileName) { try { this.fileName = fileName; fileWriter = new FileWriter(fileName, true); } catch (Exception e) { throw new RuntimeException(e); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public BaseServerInputStream() {\n data = new ArrayDeque<IoBuffer>();\n marked = false;\n resetCache = null;\n }", "@Override\n public void construct() throws IOException {\n \n }", "public FileIOManager() {\n\t\tthis.reader = new Reader(this);\n\t\tthis.writer = new Writer...
[ "0.73676336", "0.70422137", "0.6841451", "0.6780272", "0.65986955", "0.655068", "0.65195674", "0.6333862", "0.6329219", "0.6324815", "0.6300129", "0.6269976", "0.6240602", "0.6222719", "0.6198548", "0.6186256", "0.6180021", "0.6157513", "0.6133576", "0.6122183", "0.611962", ...
0.0
-1
/ Complete the 'getMaxStreaks' function below. The function is expected to return an INTEGER_ARRAY. The function accepts STRING_ARRAY toss as parameter.
public static List<Integer> getMaxStreaks(List<String> toss) { // Return an array of two integers containing the maximum streak of heads and tails respectively String last = new String(); int maxHeads = 0; int maxTails = 0; int currHeads = 0; int currTails = 0; fo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Streak[] findStreaks() {\n List<Streak> streaks = new LinkedList<>();\n Streak s;\n Piece[][] arrs = new Piece[4][4];\n Piece[][] diagArr = new Piece[2][4];\n int f;\n for (int row = 0; row < 4; row++) {\n f = 4 * row;\n s = Streak.gotStreak(Ar...
[ "0.641016", "0.6256608", "0.5976324", "0.5704277", "0.54652935", "0.5319744", "0.5209085", "0.5115883", "0.5087625", "0.5038352", "0.4993062", "0.4971435", "0.49625146", "0.4957989", "0.49376357", "0.48686224", "0.4855518", "0.48518324", "0.48384354", "0.48271886", "0.4814765...
0.70643556
0
left frame to hold simulation engine
@Override public void start(Stage primaryStage) { // StackPane root = new StackPane(); Scene scene = new Scene(root, 900, 900); //set up a window with these propotions primaryStage.setTitle("Keep it Clean simulator"); //window title primaryS...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n public void leftSystem() {\n }", "public void executeLeftGame() {\r\n //COME BACK TO THIS\r\n }", "public void newFrame()\n {\n //////////////////////////////////////////////////////////////\n // If vehicle is moving, update its position (by calling i...
[ "0.66159624", "0.6445453", "0.62573147", "0.6114551", "0.60494757", "0.5998839", "0.59892076", "0.5953101", "0.5939131", "0.59252876", "0.5920479", "0.5920478", "0.5918061", "0.5915449", "0.5913535", "0.5909248", "0.5896721", "0.5890921", "0.5865181", "0.5864907", "0.58449256...
0.0
-1
class that takes in a 2d Array and shows it on the scree
private void setLayout (){ /* define placeholders for content*/ HBox mainFrame= new HBox(); //the Main frame component. root.getChildren().add(mainFrame); //add it to the scene mainFrame.getChildren().addAll(leftPane,rightPane); Re...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Array2DPrint() {}", "public void displayData(int[][] arr);", "public void displayArray(Cell[][] cells);", "public static void display2dArray(int [][] arr){\n for (int i = 0; i < arr.length; i++){ \n System.out.println(Arrays.toString(arr[i]));\n }\n \n // the iterative approach\n ...
[ "0.70648813", "0.68325084", "0.6590163", "0.65354687", "0.65208834", "0.63508016", "0.6340456", "0.6214306", "0.6162643", "0.61624926", "0.6084579", "0.60249656", "0.60201067", "0.600139", "0.5996814", "0.5982566", "0.5956299", "0.5955127", "0.5935877", "0.5935305", "0.592813...
0.0
-1
This method was generated by MyBatis Generator. This method returns the value of the database column partner_contract_snapshots.snapshot_id
public Integer getSnapshotId() { return snapshotId; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getSnapshotId() {\n return this.snapshotId;\n }", "String getSnapshot_id();", "public long getSnapshotId() {\n return snapshotId;\n }", "public long snapshotId() {\n return snapshotId;\n }", "public java.lang.String getSnapshotId() {\r\n return snapshotId;\r\n ...
[ "0.7201915", "0.71878994", "0.7088822", "0.7027994", "0.68865263", "0.68710476", "0.66339505", "0.618749", "0.6158555", "0.60647786", "0.60464007", "0.5774188", "0.5730752", "0.5629432", "0.5588099", "0.54012495", "0.538356", "0.52775526", "0.51694036", "0.5155534", "0.513928...
0.73444927
0
This method was generated by MyBatis Generator. This method sets the value of the database column partner_contract_snapshots.snapshot_id
public void setSnapshotId(Integer snapshotId) { this.snapshotId = snapshotId; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setSnapshotId(long value) {\n this.snapshotId = value;\n }", "public void setSnapshotId(String snapshotId) {\n this.snapshotId = snapshotId;\n }", "public void setSnapshotId(java.lang.String snapshotId) {\r\n this.snapshotId = snapshotId;\r\n }", "public void setSnap...
[ "0.6903252", "0.6517318", "0.64591926", "0.6329639", "0.6198441", "0.61135167", "0.6010419", "0.5969199", "0.583119", "0.58136016", "0.57510126", "0.57023424", "0.5634788", "0.5435122", "0.52949923", "0.5256972", "0.50643355", "0.5040595", "0.5029129", "0.4987674", "0.4959364...
0.6962418
0
This method was generated by MyBatis Generator. This method returns the value of the database column partner_contract_snapshots.platform_id
public Integer getPlatformId() { return platformId; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Long getPlatform() {\n\t\treturn platform;\n\t}", "public String getPlatformCode() {\n return platformCode;\n }", "public Integer getPlatId() {\n return platId;\n }", "public String getPlatformcode() {\n return platformcode;\n }", "public void setPlatformId(Integer plat...
[ "0.56456393", "0.5599581", "0.5519997", "0.5431441", "0.5373526", "0.52887577", "0.52740186", "0.5200059", "0.5187063", "0.516693", "0.50963694", "0.50963694", "0.50864315", "0.50860196", "0.5085172", "0.50596446", "0.50382054", "0.50187665", "0.50186604", "0.50135446", "0.49...
0.67757374
0
This method was generated by MyBatis Generator. This method sets the value of the database column partner_contract_snapshots.platform_id
public void setPlatformId(Integer platformId) { this.platformId = platformId; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setPlatformId(int platformId) {\n this.platformId = platformId;\n }", "public Integer getPlatformId() {\r\n return platformId;\r\n }", "public void setPlatform(Long platform) {\n\t\tthis.platform = platform;\n\t}", "public void setPlatformCode(String platformCode) {\n t...
[ "0.59580517", "0.57002276", "0.5500018", "0.5027716", "0.49803764", "0.49497616", "0.49372655", "0.49202734", "0.48897487", "0.4868665", "0.48262516", "0.47693574", "0.47680977", "0.47607318", "0.4759558", "0.47591597", "0.47552672", "0.47552672", "0.47533444", "0.47368848", ...
0.6046728
0
This method was generated by MyBatis Generator. This method returns the value of the database column partner_contract_snapshots.purchase_id
public Integer getPurchaseId() { return purchaseId; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Long getInvoiceId();", "public int getSalesPurchase() {\n return salesPurchase;\n }", "public CustomerPurchase getById(Integer id) throws SQLException;", "public void setPurchaseId(Integer purchaseId) {\r\n this.purchaseId = purchaseId;\r\n }", "String getSnapshot_id();", "@Select({\n...
[ "0.59670895", "0.5832295", "0.58175004", "0.5739757", "0.56316996", "0.5630514", "0.5615031", "0.5589134", "0.55702466", "0.55499285", "0.55499285", "0.55497104", "0.5532028", "0.55190724", "0.5493168", "0.54568964", "0.5413143", "0.5393164", "0.53835404", "0.5344476", "0.532...
0.6898319
0
This method was generated by MyBatis Generator. This method sets the value of the database column partner_contract_snapshots.purchase_id
public void setPurchaseId(Integer purchaseId) { this.purchaseId = purchaseId; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Integer getPurchaseId() {\r\n return purchaseId;\r\n }", "public void setPurchase (java.lang.Integer purchase) {\n\t\tthis.purchase = purchase;\n\t}", "@Override\r\n public void setsaleId(int saleid) {\n this.saleId = saleid;\r\n }", "public void setC_Invoice_ID (int C_Invoice_ID);", ...
[ "0.6135741", "0.5807969", "0.58018285", "0.564068", "0.5496338", "0.5291189", "0.5250596", "0.5209898", "0.5209898", "0.52022713", "0.5201924", "0.51534003", "0.5151057", "0.51396215", "0.5134303", "0.5128345", "0.5112768", "0.5100854", "0.5082878", "0.50501674", "0.5026056",...
0.66665816
0
This method was generated by MyBatis Generator. This method returns the value of the database column partner_contract_snapshots.partner_contract_id
public Integer getPartnerContractId() { return partnerContractId; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public StrColumn getBindingPartnerEntityId() {\n return (StrColumn) (isText ? textFields.computeIfAbsent(\"binding_partner_entity_id\", StrColumn::new) :\n getBinaryColumn(\"binding_partner_entity_id\"));\n }", "public Integer getContractId() {\n return contractId;\n }", "pub...
[ "0.61487406", "0.5905964", "0.5861136", "0.5791137", "0.5680316", "0.5610177", "0.5588247", "0.5588247", "0.5502287", "0.5487683", "0.5432214", "0.54096913", "0.5381086", "0.5359946", "0.5353519", "0.53134346", "0.5279022", "0.52727586", "0.5265002", "0.5229934", "0.51956576"...
0.6736019
0
This method was generated by MyBatis Generator. This method sets the value of the database column partner_contract_snapshots.partner_contract_id
public void setPartnerContractId(Integer partnerContractId) { this.partnerContractId = partnerContractId; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setContractId(int value) {\n this.contractId = value;\n }", "public Integer getPartnerContractId() {\r\n return partnerContractId;\r\n }", "public void setC_BPartner_ID (int C_BPartner_ID);", "public void setPartnerId(long partnerId) {\n this.partnerId = partnerId;\n ...
[ "0.6091521", "0.6002849", "0.5836774", "0.5637287", "0.53971696", "0.53366005", "0.53075427", "0.52800715", "0.527131", "0.5183702", "0.5116503", "0.51055914", "0.5036405", "0.5034014", "0.50269455", "0.50267786", "0.49882957", "0.4960263", "0.49220625", "0.49188042", "0.4908...
0.6737907
0
This method was generated by MyBatis Generator. This method returns the value of the database column partner_contract_snapshots.price
public Integer getPrice() { return price; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "BigDecimal getPrice();", "public BigDecimal getPrice() {\r\n return price;\r\n }", "public BigDecimal getPrice() {\r\n return price;\r\n }", "public BigDecimal getPrice() {\n return price;\n }", "public BigDecimal getPrice() {\n return price;\n }", "public BigDecim...
[ "0.6390445", "0.63528275", "0.63528275", "0.63367444", "0.63367444", "0.63367444", "0.63367444", "0.63367444", "0.62526757", "0.6249533", "0.6158286", "0.6154216", "0.61356777", "0.6067172", "0.60349286", "0.60295504", "0.60181016", "0.59878904", "0.59545016", "0.59545016", "...
0.5958382
19
This method was generated by MyBatis Generator. This method sets the value of the database column partner_contract_snapshots.price
public void setPrice(Integer price) { this.price = price; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setPrice(BigDecimal price) {\r\n this.price = price;\r\n }", "public void setPrice(BigDecimal price) {\r\n this.price = price;\r\n }", "public void setPrice(BigDecimal price) {\n this.price = price;\n }", "public void setPrice(BigDecimal price) {\n this.price ...
[ "0.6771381", "0.6771381", "0.6762446", "0.6762446", "0.662336", "0.659473", "0.64993656", "0.6480948", "0.64563924", "0.64206946", "0.641176", "0.6397744", "0.6397744", "0.6397744", "0.6396725", "0.6396725", "0.6396725", "0.6396725", "0.6396725", "0.6396725", "0.6396725", "...
0.6111074
47
This method was generated by MyBatis Generator. This method returns the value of the database column partner_contract_snapshots.created
public Integer getCreated() { return created; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public java.util.Date getCreated()\r\n {\r\n return getSemanticObject().getDateProperty(swb_created);\r\n }", "public java.util.Date getCreated()\r\n {\r\n return getSemanticObject().getDateProperty(swb_created);\r\n }", "public java.util.Date getCreated()\r\n {\r\n return g...
[ "0.6105299", "0.6105299", "0.6105299", "0.6059346", "0.60437727", "0.60437727", "0.5912448", "0.5898239", "0.5897942", "0.5878622", "0.5872518", "0.58505476", "0.5845231", "0.5845231", "0.57908326", "0.57908326", "0.5770279", "0.5767519", "0.5757634", "0.5757634", "0.5757634"...
0.5915901
6
This method was generated by MyBatis Generator. This method sets the value of the database column partner_contract_snapshots.created
public void setCreated(Integer created) { this.created = created; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setCreated(Date v) \n {\n \n if (!ObjectUtils.equals(this.created, v))\n {\n this.created = v;\n setModified(true);\n }\n \n \n }", "@PrePersist\n\tprotected void onCreate() {\n\t\tupdated = new Date();\n\t\trca...
[ "0.55862164", "0.5464574", "0.5441327", "0.53787225", "0.53130245", "0.5306003", "0.5306003", "0.5306003", "0.5266379", "0.5237714", "0.5237381", "0.5237381", "0.5217589", "0.5209996", "0.5209169", "0.5197056", "0.5192103", "0.51637524", "0.51637524", "0.51637524", "0.5163752...
0.5134097
26
This method was generated by MyBatis Generator. This method returns the value of the database column partner_contract_snapshots.updated
public Integer getUpdated() { return updated; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getUpdated() {\n return this.updated;\n }", "public String getUpdated() {\n return this.updated;\n }", "public Timestamp getUpdated();", "public Timestamp getUpdated();", "public Timestamp getUpdated();", "public Timestamp getUpdated();", "public Timestamp getUpdated();", "publi...
[ "0.61391485", "0.61391485", "0.6130677", "0.6130677", "0.6130677", "0.6130677", "0.6130677", "0.6130677", "0.6130677", "0.6130677", "0.6130677", "0.6130677", "0.6130677", "0.6130677", "0.6130677", "0.6062414", "0.6062414", "0.6062414", "0.6007013", "0.5921204", "0.5886541", ...
0.5957424
19
This method was generated by MyBatis Generator. This method sets the value of the database column partner_contract_snapshots.updated
public void setUpdated(Integer updated) { this.updated = updated; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@PreUpdate\r\n void updatedAt() {\r\n setDateRecordUpdated();\r\n }", "public void setUpdated(Date updated) {\r\n this.updated = updated;\r\n }", "public void setUpdated(Date updated) {\r\n this.updated = updated;\r\n }", "public void setUpdated(Date updated) {\n this....
[ "0.5611454", "0.55922276", "0.55922276", "0.5517683", "0.5517683", "0.5410703", "0.54087126", "0.5368337", "0.53500706", "0.53425866", "0.52388376", "0.5162543", "0.5162543", "0.5162543", "0.51182765", "0.5100034", "0.5100034", "0.50188446", "0.49910504", "0.49356562", "0.490...
0.5257174
10
This method was generated by MyBatis Generator. This method returns the value of the database column partner_contract_snapshots.is_deleted
public Byte getIsDeleted() { return isDeleted; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Integer getIsdeleted() {\n return isdeleted;\n }", "public java.lang.Boolean getDeleted();", "public Integer getIsDeleted() {\n return isDeleted;\n }", "public Byte getIsDeleted() {\n return isDeleted;\n }", "public Byte getIsDeleted() {\n return isDeleted;\n ...
[ "0.6752885", "0.65955377", "0.657647", "0.65241224", "0.65241224", "0.64363736", "0.64363736", "0.6393992", "0.6390363", "0.63571024", "0.6329126", "0.6329126", "0.6329126", "0.6329126", "0.63030016", "0.62491333", "0.62439996", "0.62307847", "0.62015384", "0.61857086", "0.61...
0.65002894
5
This method was generated by MyBatis Generator. This method sets the value of the database column partner_contract_snapshots.is_deleted
public void setIsDeleted(Byte isDeleted) { this.isDeleted = isDeleted; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@IcalProperty(pindex = PropertyInfoIndex.DELETED)\n public void setDeleted(final boolean val) {\n deleted = val;\n }", "public void setIsdeleted( Boolean isdeleted )\n {\n this.isdeleted = isdeleted;\n }", "public void setDeleted(boolean deleted);", "public void setDeleted(java.lang.Boolean...
[ "0.6486961", "0.6480004", "0.64344424", "0.63491786", "0.6305754", "0.62943774", "0.62180173", "0.62180173", "0.62180173", "0.62180173", "0.62180173", "0.62161934", "0.62161934", "0.62111104", "0.61860824", "0.6178001", "0.6164293", "0.61308354", "0.61243373", "0.609822", "0....
0.6231867
6
This method was generated by MyBatis Generator. This method returns the value of the database column partner_contract_snapshots.content
public String getContent() { return content; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Blob getContentBlob() {\n return Hibernate.createBlob(this.content);\n }", "public interface VersionedContent {\n /**\n * Version of the content.\n */\n long version();\n\n /**\n * Actual content\n */\n String content();\n }", "public StrColumn getRevisionDescription(...
[ "0.5775243", "0.5308229", "0.52767706", "0.51890177", "0.51485187", "0.5119048", "0.51171404", "0.5096905", "0.5096212", "0.5096212", "0.5079545", "0.5079545", "0.5079545", "0.5079545", "0.5065507", "0.50272834", "0.50268596", "0.5006908", "0.5006908", "0.5006908", "0.5006908...
0.49386898
43
This method was generated by MyBatis Generator. This method sets the value of the database column partner_contract_snapshots.content
public void setContent(String content) { this.content = content == null ? null : content.trim(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setDataFromDBContent() {\n\n }", "public BlobName setContent(String content) {\n this.content = content;\n return this;\n }", "public void setContent(String newValue);", "@Override\n\tpublic void setBlob(int parameterIndex, InputStream inputStream) throws SQLException {\n\t\t\n\t}", ...
[ "0.5201714", "0.50882137", "0.49733493", "0.49058867", "0.48339108", "0.48104247", "0.48069453", "0.48049688", "0.47819766", "0.4760076", "0.47564414", "0.47252682", "0.4682035", "0.46776745", "0.46554694", "0.46522903", "0.46449867", "0.46376812", "0.46101785", "0.46080363", ...
0.4380833
65
This method was generated by MyBatis Generator. This method returns the value of the database column partner_contract_snapshots.superior_commission
public String getSuperiorCommission() { return superiorCommission; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getSuperior() {\n return superior;\n }", "@Override\r\n\tpublic int getPayCheque() {\n\t\treturn profit+annuelSalary;\r\n\t\t\r\n\t}", "public Long getTotalcommission() {\n return totalcommission;\n }", "public void setSuperiorCommission(String superiorCommission) {\r\n ...
[ "0.5799867", "0.54739463", "0.54107136", "0.5385745", "0.51818407", "0.51818407", "0.5137909", "0.5082163", "0.50249606", "0.49602497", "0.49339408", "0.49092397", "0.48882794", "0.48877162", "0.48867285", "0.4874189", "0.48612642", "0.48523077", "0.48439807", "0.48407143", "...
0.64723885
0
This method was generated by MyBatis Generator. This method sets the value of the database column partner_contract_snapshots.superior_commission
public void setSuperiorCommission(String superiorCommission) { this.superiorCommission = superiorCommission == null ? null : superiorCommission.trim(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setSuperior(String superior) {\n this.superior = superior == null ? null : superior.trim();\n }", "public String getSuperiorCommission() {\r\n return superiorCommission;\r\n }", "public void setCommission(int commission) {\n\tthis.commission = commission;\n}", "public void set...
[ "0.5714257", "0.54235655", "0.52969885", "0.52722985", "0.52513057", "0.52513057", "0.5031435", "0.49695477", "0.48228163", "0.48155233", "0.4812835", "0.48051473", "0.47956645", "0.47434774", "0.4699667", "0.4649668", "0.45979115", "0.4584831", "0.4581245", "0.457331", "0.45...
0.6140071
0
This method was generated by MyBatis Generator. This method returns the value of the database column partner_contract_snapshots.introducer_commission
public String getIntroducerCommission() { return introducerCommission; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Long getTotalcommission() {\n return totalcommission;\n }", "public BigDecimal getCommission() {\n return commission;\n }", "public BigDecimal getCommission() {\n return commission;\n }", "public int getCommission() {\n\treturn commission;\n}", "public String getCommiss...
[ "0.5865323", "0.55606365", "0.55606365", "0.544902", "0.5364074", "0.512831", "0.510245", "0.5098923", "0.5090856", "0.5005372", "0.49898672", "0.49618062", "0.49382675", "0.48716804", "0.48716804", "0.48640463", "0.4833005", "0.4825454", "0.48067248", "0.47917676", "0.479176...
0.6410078
0
This method was generated by MyBatis Generator. This method sets the value of the database column partner_contract_snapshots.introducer_commission
public void setIntroducerCommission(String introducerCommission) { this.introducerCommission = introducerCommission == null ? null : introducerCommission.trim(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setCommission(int commission) {\n\tthis.commission = commission;\n}", "public void setCommission(double commission){\r\n this.commission = commission;\r\n }", "public void setCommission(BigDecimal commission) {\n this.commission = commission;\n }", "public void setCommission(BigDeci...
[ "0.572084", "0.56556475", "0.5588724", "0.5588724", "0.5185671", "0.5051323", "0.4644178", "0.46413422", "0.45768288", "0.45768288", "0.4566993", "0.45542374", "0.4535175", "0.4533299", "0.45260894", "0.44931155", "0.4486431", "0.4468397", "0.4433668", "0.43892154", "0.438610...
0.5648743
2
This method was generated by MyBatis Generator. This method corresponds to the database table partner_contract_snapshots
@Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append(getClass().getSimpleName()); sb.append(" ["); sb.append("Hash = ").append(hashCode()); sb.append(", snapshotId=").append(snapshotId); sb.append(", platformId=").append(platfo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void handleSnapshotStart(String dpSchemaName, PrimaryKey primaryKey, ConnectSchema\n sinkSchema) {\n }", "public String getSourceSnapshotId() {\n return this.sourceSnapshotId;\n }", "public interface Snapshot {\n /**\n * Gets the id property: Fully qualified resource ...
[ "0.5203647", "0.4986407", "0.49669755", "0.49612403", "0.49244353", "0.48972932", "0.48783895", "0.486266", "0.48614007", "0.486068", "0.48571524", "0.483736", "0.48060375", "0.47946525", "0.47339612", "0.47145146", "0.47072762", "0.47060493", "0.4690331", "0.46875563", "0.46...
0.0
-1
isSpamDetection() This method is supposed to detect the most basic of DDoS attacks from one or many locations to prevent to many repeat interactions with the system.
public static boolean isSpamConnect(int identifier, long timestamp){ int id = identifier % MAX_CONNECTION_BUFFER; /* Check whether we are dealing with a recent connection or a new one */ if(connections.get(id) != null){ /* Test time since previous connection */ if(timestamp - connections.get(id)...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public synchronized boolean hasSpamFolder() {\n return !K9.FOLDER_NONE.equalsIgnoreCase(mSpamFolderName);\n }", "public boolean IsSpam(File testFile) throws FileNotFoundException {\n List<String> words = readFile(testFile);\n List<Integer> wordCount = new ArrayList<>();\n int index...
[ "0.5564569", "0.5495339", "0.53311557", "0.5327455", "0.51680726", "0.5054275", "0.49602285", "0.48994133", "0.48962602", "0.48882437", "0.48598853", "0.48080435", "0.47737843", "0.4766452", "0.47523797", "0.47473696", "0.47389182", "0.47337973", "0.47308463", "0.47161236", "...
0.45824867
31
RMI interface for server
public interface ServerController extends java.rmi.Remote{ // abstract classes public int connect() throws RemoteException; public String getPath() throws RemoteException; public String echo(String message) throws RemoteException; public String isFileExists(String fname) throws RemoteException; public int[]...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface ClientServerRMIInterface extends Remote {\n Metadata getMeta(String id) throws IOException;\n\n Metadata putMeta(String id, long length) throws IOException, NotBoundException, URISyntaxException;\n\n byte[] get(String id, long part) throws IOException;\n\n void put(String id, long part...
[ "0.79273677", "0.75636834", "0.74663186", "0.72812325", "0.7244906", "0.7181452", "0.71014977", "0.70904076", "0.6833795", "0.68110096", "0.67794585", "0.6773419", "0.6745892", "0.67091554", "0.66778374", "0.6621948", "0.6598699", "0.6597956", "0.65864897", "0.6569464", "0.65...
0.75165486
2
Constructor for the class.
public TextAreaDetail(CalendarListElement list) { list.addListener(this); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Constructor() {\r\n\t\t \r\n\t }", "public Constructor(){\n\t\t\n\t}", "public CyanSus() {\n\n }", "public PSRelation()\n {\n }", "public _355() {\n\n }", "private Instantiation(){}", "public Chick() {\n\t}", "public CSSTidier() {\n\t}", "public Pitonyak_09_02() {\r\n }", "public Treni...
[ "0.84834844", "0.80363995", "0.7402332", "0.73984003", "0.7169051", "0.7097029", "0.7073533", "0.7069785", "0.70525056", "0.70207524", "0.7020108", "0.6995734", "0.6990981", "0.69893134", "0.6969099", "0.6965046", "0.696421", "0.6951068", "0.6946851", "0.69132704", "0.6886052...
0.0
-1
Updates whenever the model changes.
@Override public void update(Object ob) { if (ob instanceof CalendarEvent) { CalendarEvent event = (CalendarEvent) ob; setText(event.toString() + event.printFeedback()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void notifyModelUpdated()\n {}", "@Override\n public void Update(Model model) {\n\n }", "void updateModel() {\n updateModel(false);\n }", "private void setModelToChanged() {\n\t\tsetChanged();\r\n\t\tnotifyObservers();\r\n\t}", "@Override\n\tpublic int update(Object model) {\n\t\...
[ "0.7643678", "0.7597604", "0.7522513", "0.74483466", "0.7422965", "0.73688173", "0.7253854", "0.7253854", "0.7253854", "0.7207027", "0.7126667", "0.7005658", "0.7005658", "0.700478", "0.6995922", "0.6989081", "0.6961639", "0.6923883", "0.69226134", "0.69226134", "0.69226134",...
0.0
-1
TODO Autogenerated method stub
@Override public void alter(LTimerContext timer) { }
{ "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
Coffee machine can produce 1 coffee at a time until the coffee is picked up.
public CoffeeMachineResponse prepareCoffee(CoffeeMachineRequest request) { Integer coffeeMachineId = request.getCoffeeMachineId(); CoffeeMachine coffeeMachine = coffeeMachineRepository.getCoffeeMachine(coffeeMachineId); if (coffeeMachine == null) { throw new CoffeeMachineNotFoundExc...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic Coffee next() {\n\t\treturn null;\n\t}", "public void makeCoffee(){\n size();\n temp();\n type();\n }", "public void run() {\n\n\t\tSimulation.logEvent(SimulationEvent.cookStarting(this));\n\t\ttry {\n\t\t\twhile(true) {\n\t\t\t\t//YOUR CODE GOES HERE...\n\t\t\t\t\n\...
[ "0.5881007", "0.5856275", "0.5746078", "0.5660885", "0.56557846", "0.5616935", "0.5615099", "0.5610997", "0.56072706", "0.5539666", "0.5478556", "0.5474908", "0.5469674", "0.544955", "0.5419273", "0.53981483", "0.53623515", "0.5357921", "0.5328007", "0.5319523", "0.5319523", ...
0.53263646
19
Checks the status of the coffee machine. If the the coffee is ready, it is expected that it is picked up asap.
public CoffeeMachineResponse getCoffee(int id) { CoffeeMachine coffeeMachine = coffeeMachineRepository.getCoffeeMachine(id); if (coffeeMachine == null) { throw new CoffeeMachineNotFoundException(id); } if (coffeeMachine.getCompletionTime() == null) { return buil...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isReady();", "public boolean isReady();", "boolean isReady();", "boolean isReady();", "boolean isReady();", "void isReady();", "void isReady();", "private void check() {\n ShedSolar.instance.haps.post( Events.WEATHER_REPORT_MISSED );\n LOGGER.info( \"Failed to receive wea...
[ "0.6673565", "0.6673565", "0.6668406", "0.6668406", "0.6668406", "0.6488215", "0.6488215", "0.64688194", "0.64588714", "0.6457555", "0.6371276", "0.632685", "0.6279802", "0.62740844", "0.6263598", "0.62074023", "0.6189832", "0.61757374", "0.6152679", "0.61392176", "0.6110905"...
0.0
-1
Creates buffer strategy with 3 buffers
public void render(){ BufferStrategy bs = getBufferStrategy(); if(bs == null){ createBufferStrategy(3); return; } //Sets graphics in screen and clears them Graphics g = bs.getDrawGraphics(); screen.graphics(g); screen.clear(); Graphics2D graphics2d = (Graphics2D) g; //Adds antialiasing ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void initBufferStrategy() {\n // Triple-buffering\n createBufferStrategy(3);\n bufferStrategy = getBufferStrategy();\n }", "abstract public Buffer createBuffer();", "private void get_buffer(Vector2 p0, Vector2 p1, Vector2 p2, Vector2 p3,\r\n\t\t\tint bufferCount) {\r\n\r\n\t\tbuf...
[ "0.79171085", "0.6959839", "0.6631683", "0.65218645", "0.6284545", "0.6208493", "0.6203888", "0.6203243", "0.6152008", "0.6141235", "0.6134386", "0.61228114", "0.6043137", "0.59046614", "0.58944595", "0.58880514", "0.58333623", "0.580174", "0.577053", "0.5730268", "0.56997275...
0.0
-1
Go to search sites page and verify
public void Placement_BySession_PageNav() { Controls.hoverclick(By.linkText("Placements"), By.linkText("By Session")); Controls.dynemicwait(By.xpath("//*[@id=\"mainBody\"]/div[3]/div[2]/div/div[1]/div[2]")); if(Controls.GetText(By.xpath(placementProp.getProperty("title.xpath"))).trim().equalsIg...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void searchWeb()\n {\n searchWeb = true;\n search();\n }", "@Test\n public void stage04_searchAndPage() {\n String keyWord = \"bilgisayar\";\n Integer pageNumber = 2;\n //Searching with parameters\n SearchKey searchKey = new SearchKey(driver);\n H...
[ "0.6899114", "0.67914695", "0.65940934", "0.6393511", "0.6390931", "0.6343107", "0.63268334", "0.6287704", "0.6267026", "0.6230476", "0.6209527", "0.61707115", "0.60825074", "0.6056395", "0.6053568", "0.59775895", "0.59523845", "0.59423006", "0.5901689", "0.5898862", "0.58960...
0.0
-1
Navigate to Session Setup
public void SessionSetupNav() throws InterruptedException { if (Controls.isElementPresent(By.id(placementProp.getProperty("sitename.id")))==true) { Controls.Type(By.id(placementProp.getProperty("SessionLabel.id")),placementProp.getProperty("Clinicalsitename")); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void navigateToLoginPage() {\r\n\t\tBrowser.open(PhpTravelsGlobal.PHP_TRAVELS_LOGIN_URL);\r\n\t}", "public void redirectToHomeSameSession() {\r\n\t\t\r\n\t\ttry{\r\n\t\twebAppDriver.get(baseUrl);\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public void gotoCoachLo...
[ "0.6577976", "0.6568167", "0.63035953", "0.6279264", "0.62653583", "0.6240247", "0.6166133", "0.60257673", "0.60024375", "0.59803665", "0.5954584", "0.59527314", "0.5943079", "0.59017825", "0.5886766", "0.58754075", "0.586219", "0.5814911", "0.5805703", "0.5760725", "0.575106...
0.71019256
0
Verify Ui of Placement By Session Page
public void VerifyPlacementBySessionPage_UI() throws InterruptedException { if(!Controls.GetText(By.xpath(placementProp.getProperty("title.xpath"))).trim().equalsIgnoreCase("By Session"))Placement_BySession_PageNav(); if(Controls.isElementPresent(By.xpath(placementProp.getProperty("Instructions.xpath")))==...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void Placement_BySession_PageNav() {\n\t\t\t\n\t\t\t\n\t\t\tControls.hoverclick(By.linkText(\"Placements\"), By.linkText(\"By Session\"));\n\t\t\tControls.dynemicwait(By.xpath(\"//*[@id=\\\"mainBody\\\"]/div[3]/div[2]/div/div[1]/div[2]\"));\n\t\t\t\n\t\t\t\n\t\t\tif(Controls.GetText(By.xpath(placementProp.g...
[ "0.70150006", "0.61456245", "0.6039292", "0.6012238", "0.5978062", "0.59156936", "0.5912333", "0.58749604", "0.583151", "0.5773027", "0.571822", "0.57071143", "0.56883585", "0.5683555", "0.56623745", "0.56518537", "0.56302315", "0.561016", "0.5596639", "0.55787826", "0.557805...
0.7259015
0
todo: Agustin.Koll here we can store the laptops in a DB and check if we already have them store
public Observable<List<Laptop>> getLaptops(){ return laptopServices.getLaptops(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void saveInitialPoolLocation() {\n\n\t\tPOOL_LIST = new ArrayList<poolLocation>();\n\n\t\tfor (int i = 0; i < NumPool; i++) {\n\t\t\taddNewPool(getPoolLocation(i));\n\t\t}\n\n\t\tfor (int i = 0; i < NumCoupon; i++) {\n\t\t\taddNewPool(getCouponLocation(i));\n\t\t}\n\t}", "public void addLaptop(Laptop lap...
[ "0.5435085", "0.53972596", "0.53065014", "0.5290064", "0.52673984", "0.5214489", "0.5207084", "0.519539", "0.51642036", "0.5082325", "0.502996", "0.50124115", "0.50112945", "0.5002908", "0.4943146", "0.49281013", "0.49248177", "0.48994124", "0.4868537", "0.4833068", "0.482248...
0.45300728
62
=========================== HANDLE NETWORK CONNECTION ===============================
public void establishConnection() { httpNetworkService = new HTTPNetworkService(handler); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void run() {\n\t\t\t\tHttpURLConnection connection = null;\r\n\t\t\t\tStringBuilder response = new StringBuilder();\r\n\t\t\t\ttry{\r\n\t\t\t\t\tURL url = new URL(address);\r\n\t\t\t\t\tconnection = (HttpURLConnection) url.openConnection();\r\n\t\t\t\t\tconnection.setRequestMethod(\"GET\");\r\n\t\t\t\t\tcon...
[ "0.6585031", "0.6440788", "0.64191294", "0.64103264", "0.64081806", "0.6343462", "0.6294216", "0.62883097", "0.62629384", "0.6228541", "0.6208839", "0.6174662", "0.61632395", "0.6142755", "0.6126507", "0.61177546", "0.61155236", "0.6115338", "0.610242", "0.6077924", "0.606271...
0.74323916
0
Created by ZhangRui on 2018/8/5.
public interface HomeService { ResultDTO<List<DUser>> login(UserLoginDTO userLoginDTO); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "private stendhal() {\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\r...
[ "0.6230492", "0.6084583", "0.5913218", "0.5913218", "0.5894207", "0.5863416", "0.5831686", "0.5796579", "0.57949257", "0.57482976", "0.5735228", "0.5728033", "0.5701251", "0.5697105", "0.5692792", "0.5682223", "0.5679585", "0.567895", "0.56688386", "0.5662408", "0.56618583", ...
0.0
-1
todo try catch exception
public void convert() throws IOException { URL url = new URL(SERVICE + City + "," + Country + "&" + "units=" + Type + "&" + "APPID=" + ApiID); BufferedReader reader = new BufferedReader(new InputStreamReader(url.openStream())); String line = reader.readLine(); // Pobieranie JSON ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void inizia() throws Exception {\n }", "private void inizia() throws Exception {\n }", "private void inizia() throws Exception {\n }", "private void inizia() throws Exception {\n }", "private void inizia() throws Exception {\n }", "private void inizia() throws Exception {\n ...
[ "0.61689717", "0.61046696", "0.61046696", "0.61046696", "0.61046696", "0.61046696", "0.5834223", "0.5834223", "0.58311707", "0.5812396", "0.5755202", "0.5707286", "0.5669201", "0.5659564", "0.56458193", "0.55299467", "0.552499", "0.5510077", "0.54995215", "0.54955655", "0.548...
0.0
-1
create an intent to display the article
@Override public void onItemClick(AdapterView<?> adapterView, View view, int position, long id) { Intent i = new Intent(getApplicationContext(), ArticleActivity.class); //get the article to display Article article = articles.get(position); //pa...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onClick(View view) {\n Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse(article.getLink())); // intent to show item using url\n Context context = view.getContext();\n context.startActivity(browserIntent);\n }", "@Override\n public void ...
[ "0.7035482", "0.6949874", "0.6830637", "0.67901915", "0.66730994", "0.665357", "0.6600075", "0.65626985", "0.6543369", "0.6457991", "0.6367802", "0.63638663", "0.6268847", "0.6223183", "0.6214689", "0.6210726", "0.6199931", "0.61669517", "0.6160871", "0.61452293", "0.6144273"...
0.7108957
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.menu_search, menu); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tMenuInflater inflater = getMenuInflater();\n \tinflater.inflate(R.menu.main_activity_actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {...
[ "0.7246102", "0.7201358", "0.7194834", "0.7176498", "0.71066517", "0.7039537", "0.7037961", "0.70112145", "0.70094734", "0.69807225", "0.6944953", "0.69389373", "0.6933199", "0.6916928", "0.6916928", "0.6891486", "0.68831646", "0.68754137", "0.68745375", "0.68621665", "0.6862...
0.0
-1
Handle action bar item clicks here. The action bar will automatically handle clicks on the Home/Up button, so long as you specify a parent activity in AndroidManifest.xml.
@Override public boolean onOptionsItemSelected(MenuItem item) { int id = item.getItemId(); //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.7904975", "0.78056985", "0.77671826", "0.77275974", "0.7632173", "0.7622138", "0.75856143", "0.7531176", "0.7488386", "0.74576557", "0.74576557", "0.74391466", "0.7422802", "0.7403698", "0.7392229", "0.73873955", "0.73796785", "0.737091", "0.73627585", "0.7356357", "0.7346...
0.0
-1
adds a frame to the game
public void addFrame(Frame frame) throws BowlingException { if(frames.size()==10) throw new BowlingException(); else frames.add(frame); //to be implemented }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void addFrame() {\n String name = selectString(\"What is the name of this frame?\");\n ReferenceFrame frame = selectFrame(\"What frame are you defining this frame relative to?\");\n double v = selectDouble(\"How fast is this frame moving (as a fraction of c)?\", -1, 1);\n try {\...
[ "0.76696694", "0.7345999", "0.7310671", "0.71673906", "0.6857101", "0.6847741", "0.67826986", "0.6732475", "0.6641513", "0.65907264", "0.6542648", "0.6535409", "0.6505003", "0.6421064", "0.641834", "0.6407769", "0.6400583", "0.6369341", "0.6333492", "0.6323936", "0.6243547", ...
0.7352904
1
Sets the bonus throws at the end of the game
public void setBonus(int firstThrow, int secondThrow) { //to be implemented for(int i=0; i<10; i++) if(frames.get(i).isSpare()) { bonus= frames.get(i+1); bonusGame+=bonus.score(); } else if(frames.get(i).isStrike()) { bonus = frames.get(i+1); bonusGame+=bonus.score(); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setBonus(double bonus){\r\n this.bonus = bonus;\r\n }", "public void setBonusScore() {\r\n count = count+50;\r\n }", "void bust() {\n\t\t_loses++;\n\t\t//_money -= _bet;\n\t\tclearHand();\n\t\t_bet = 0;\n\t}", "private void obsluga_bonusu()\n {\n if(bonusy_poziomu>0)\n ...
[ "0.6173677", "0.6133668", "0.59916806", "0.59618837", "0.5926145", "0.58837587", "0.5868903", "0.5855544", "0.5769367", "0.5696738", "0.56870717", "0.5681818", "0.56491643", "0.5638793", "0.56344247", "0.5616875", "0.5598541", "0.5591605", "0.5584759", "0.5563449", "0.5557888...
0.62822473
0
Returns the game score
public int score(){ //to be implemented: should return game score for(int i=0; i<10; i++) { score= frames.get(i).score(); } return score + bonusGame; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Integer getGameScore() {\n return gameScore;\n }", "public int getScore() {\n return getStat(score);\n }", "public static int getScore()\n {\n return score;\n }", "public static int getScore()\r\n\t{\r\n\t\treturn score;\r\n\t}", "public static int getScore()\n\t{\n\t\tret...
[ "0.81984", "0.8101938", "0.8098597", "0.80428493", "0.8018435", "0.7944285", "0.7944285", "0.7940277", "0.79085433", "0.79085433", "0.79085433", "0.79085433", "0.7899145", "0.78864896", "0.7832457", "0.7805114", "0.77433264", "0.77377737", "0.77377737", "0.77110326", "0.77027...
0.7966415
5
Creates a new instance of ParallelReceptacle
public ParallelReceptacle() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ForkJoinPoolMgr() {\n }", "Reproducible newInstance();", "Parcelle createParcelle();", "public CreateKonceptWorker() {\n\t\tsuper();\n\t\tthis.koncept = new KoncepteParaula();\n\t}", "public EngineConcurrency() {\n Runtime runtime = Runtime.getRuntime();\n int threads = runtime.avai...
[ "0.5583755", "0.5580329", "0.545744", "0.5393528", "0.53870845", "0.5379442", "0.5363962", "0.5360151", "0.5268811", "0.522092", "0.5170632", "0.50876033", "0.5050741", "0.5050741", "0.5034693", "0.502724", "0.5026381", "0.5026381", "0.5026381", "0.5026381", "0.5026381", "0...
0.87178457
0
TODO Autogenerated method stub
public static void main(String[] args) { Constructor obj = new Constructor(1); }
{ "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 super.run();
@Override public void run() { while(true){ if(ticket>0){ try { Thread.sleep(1000); } catch (InterruptedException e) { // TODO Auto-generated catch block e.printStackTrace(); } ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\t\t\tpublic void run() {\n\t\t\t\tsuper.run();\r\n\t\t\t}", "@Override\n\t\t\tpublic void run() {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void run() {\n\t\t\t\t\n\t\t\t}", "@Override\r\n\t\tprotected void run() {\n\t\t\t\r\n\t\t}", "@Override\n\t\tpublic void run() {\n\t\t\t\n\t\t}", ...
[ "0.8862604", "0.8779649", "0.8779649", "0.8765411", "0.8712561", "0.8712561", "0.8698418", "0.8674107", "0.8636997", "0.8620273", "0.8620273", "0.8595996", "0.85119355", "0.85023195", "0.85023195", "0.84786093", "0.84768283", "0.8472831", "0.8459689", "0.8459689", "0.8459689"...
0.0
-1
TODO Autogenerated method stub
public static void main(String[] args) { MyRunnableThreadTest mt = new MyRunnableThreadTest(); Thread t1 = new Thread( mt,"一号窗口"); Thread t2 = new Thread( mt,"二号窗口"); t1.start(); t2.start(); t2.interrupt(); }
{ "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
public WebDriver driver; one is inheritance create object for loginpage and invoke menthods in it
@Test() public void ValidateNavgation() throws IOException { LandingPage lp=new LandingPage(driver); Assert.assertTrue(lp.getNavbar().isDisplayed()); log.info("Navigated bar is displayed"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public LoginPage(WebDriver driver){\n super(driver);\n PageFactory.initElements(driver, this);\n }", "public LoginPage(WebDriver driver) {\n\t this.driver = driver;\n\t }", "public Loginpage (WebDriver driver) {\n\t\tthis.driver = driver;\n\t\t\n\t\t elementutil = new ElementUtil(driv...
[ "0.8158251", "0.8122732", "0.8087714", "0.80013096", "0.7986625", "0.78919566", "0.7811322", "0.7719459", "0.75834805", "0.7434018", "0.7385264", "0.7340328", "0.73264605", "0.732095", "0.73185414", "0.7311431", "0.7245893", "0.7230845", "0.72015095", "0.719726", "0.7124378",...
0.0
-1
Processes requests for both HTTP GET and POST methods.
protected void processRequest(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.setContentType("text/html;charset=UTF-8"); try (PrintWriter out = response.getWriter()) { /* TODO output your page here. You may use following s...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void doPost(final HttpServletRequest req, final HttpServletResponse resp) throws ServletException, IOException {\n final String method = req.getParameter(METHOD);\n if (GET.equals(method)) {\n doGet(req, resp);\n } else {\n resp.setStatus(HttpServletResponse.SC_METHOD_NOT_...
[ "0.7004024", "0.66585696", "0.66031146", "0.6510023", "0.6447109", "0.64421695", "0.64405906", "0.64321136", "0.6428049", "0.6424289", "0.6424289", "0.6419742", "0.6419742", "0.6419742", "0.6418235", "0.64143145", "0.64143145", "0.6400266", "0.63939095", "0.63939095", "0.6392...
0.0
-1
Handles the HTTP GET method.
@Override protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { doPost(request, response); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void doGet( )\n {\n \n }", "@Override\n\tprotected void executeGet(GetRequest request, OperationResponse response) {\n\t}", "@Override\n\tprotected Method getMethod() {\n\t\treturn Method.GET;\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) thro...
[ "0.7589609", "0.71665615", "0.71148175", "0.705623", "0.7030174", "0.70291144", "0.6995984", "0.697576", "0.68883485", "0.6873811", "0.6853569", "0.6843572", "0.6843572", "0.6835363", "0.6835363", "0.6835363", "0.68195957", "0.6817864", "0.6797789", "0.67810035", "0.6761234",...
0.0
-1
Handles the HTTP POST method.
@Override protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { if (request.getParameter("btnChooseEmployee") != null){ saveEverything(request); }else if (request.getParameter("btnRemoveSki...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void doPost(Request request, Response response) {\n\n\t}", "@Override\n protected void doPost(HttpServletRequest req, HttpServletResponse resp) {\n }", "public void doPost( )\n {\n \n }", "@Override\n public String getMethod() {\n return \"POST\";\n ...
[ "0.73289514", "0.71383566", "0.7116213", "0.7105215", "0.7100045", "0.70236707", "0.7016248", "0.6964149", "0.6889435", "0.6784954", "0.67733276", "0.67482096", "0.66677034", "0.6558593", "0.65582114", "0.6525548", "0.652552", "0.652552", "0.652552", "0.65229493", "0.6520197"...
0.0
-1
Returns a short description of the servlet.
@Override public String getServletInfo() { return "Short description"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getServletInfo()\n {\n return \"Short description\";\n }", "public String getServletInfo() {\n return \"Short description\";\n }", "public String getServletInfo() {\n return \"Short description\";\n }", "public String getServletInfo() {\n return \"Short d...
[ "0.87634975", "0.8732279", "0.8732279", "0.8732279", "0.8732279", "0.8732279", "0.8732279", "0.8732279", "0.8732279", "0.8732279", "0.8732279", "0.8699131", "0.8699131", "0.8699131", "0.8699131", "0.8699131", "0.8699131", "0.8531295", "0.8531295", "0.85282224", "0.85282224", ...
0.0
-1
DesiredCapabilities chromeDesiredcap = DesiredCapabilities.chrome(); WebDriver driver = new RemoteWebDriver(new URL(" chromeDesiredcap);
@Test(groups = {"Activity"},dataProvider = "guanliyuanFilePath",dataProviderClass = DateProvider.class) public void publish_activity(String username,String password,String filePath,String vedioPath) throws Exception { ChromeDriver driver = new ChromeDriver(); Uti.ChromeBrowser_setup(driver, username, password)...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static WebDriver launchChrome()\n\t{\n\t\tif (REMOTE_URL != null && !REMOTE_URL.equals(\"\")) {\n\t\t\tDesiredCapabilities capabilities = DesiredCapabilities.chrome();\n\t\t\ttry {\n\n\t\t\t\treturn new RemoteWebDriver(new URL(System.getProperty(\"RemoteUrl\")), capabilities);\n\t\t\t}\n\n\n\t\t\tcatch (Ma...
[ "0.80990136", "0.7694703", "0.74720854", "0.74507314", "0.72594744", "0.72567165", "0.7230472", "0.71889", "0.71884495", "0.71646863", "0.71358836", "0.711776", "0.71108484", "0.7107543", "0.71067727", "0.70857215", "0.7069713", "0.703702", "0.7028886", "0.70217144", "0.69836...
0.0
-1
Get the image from image registry given the key
public Image getImage(String key) { return imageRegistry.get(key); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static Image getImageFromRegistry(String key){\r\n\t\treturn getDefault().getImageRegistry().get(key);\r\n\t}", "public static ImageDescriptor getImageDescriptorFromRegistry(String key){\r\n\t\treturn getDefault().getImageRegistry().getDescriptor(key);\r\n\t}", "public static Image getImage(Images img)...
[ "0.8656896", "0.76830435", "0.7078479", "0.6830863", "0.6632634", "0.64013183", "0.63642013", "0.61829156", "0.6177488", "0.61594576", "0.6057065", "0.5915559", "0.58988315", "0.5883915", "0.5822265", "0.5680956", "0.5631115", "0.5610847", "0.5567473", "0.5545871", "0.5540562...
0.8362295
1
Assosiate the image with image key
public void setImage(String key, Image image) { imageRegistry.put(key, image); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract public String getImageKey();", "public String getImgKey() {\n return imgKey;\n }", "public native String getImageAttribute(String key) throws MagickException;", "public Image getImage(String key)\n {\n return imageRegistry.get(key);\n }", "Builder addImage(ImageObject value);", "void se...
[ "0.73743916", "0.69769233", "0.6598396", "0.6580987", "0.65701854", "0.64302814", "0.6409466", "0.64012116", "0.6307853", "0.6269159", "0.6251016", "0.62044156", "0.61761045", "0.61530364", "0.6144063", "0.6126562", "0.61118156", "0.6099656", "0.60956454", "0.6077729", "0.606...
0.70059943
1
Inflate the layout for this fragment
@Nullable @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View v = inflater.inflate(R.layout.fragment_perfil, container, false); listaMascotas = (RecyclerView) v.findViewById(R.id.rvMascotas_perfil); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_main_allinfo, container, false);\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup...
[ "0.6739604", "0.67235583", "0.6721706", "0.6698254", "0.6691869", "0.6687986", "0.66869223", "0.6684548", "0.66766286", "0.6674615", "0.66654444", "0.66654384", "0.6664403", "0.66596216", "0.6653321", "0.6647136", "0.66423255", "0.66388357", "0.6637491", "0.6634193", "0.66251...
0.0
-1
Creates the metamodel objects for the package. This method is guarded to have no affect on any invocation but its first.
public void createPackageContents() { if (isCreated) return; isCreated = true; // Create classes and their features tableEClass = createEClass(TABLE); createEReference(tableEClass, TABLE__DATABASE); createEReference(tableEClass, TABLE__COLUMNS); createEReference(tableEClass, TABLE__CONSTRAINTS); table...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void createPackageContents() {\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\tmetadataEClass = createEClass(METADATA);\n\t\tcreateEAttribute(metadataEClass, METADATA__GAMENAME);\n\t\tcreateEAttribute(metadataEClass, METADATA__SHORTNAME);\n\t\tcreateEAttri...
[ "0.68750894", "0.67999244", "0.6684232", "0.66584134", "0.664421", "0.6615679", "0.6605199", "0.66026926", "0.65654874", "0.65492815", "0.65469867", "0.6538529", "0.6532274", "0.6531228", "0.65272456", "0.65124243", "0.6509707", "0.6498398", "0.64864975", "0.64794", "0.645182...
0.6575267
8
Complete the initialization of the package and its metamodel. This method is guarded to have no affect on any invocation but its first.
public void initializePackageContents() { if (isInitialized) return; isInitialized = true; // Initialize package setName(eNAME); setNsPrefix(eNS_PREFIX); setNsURI(eNS_URI); // Obtain other dependent packages CommonPackage theCommonPackage = (CommonPackage)EPackage.Registry.INSTANCE.getEPackage(CommonP...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void initializePackageContents() {\n\t\tif (isInitialized) return;\n\t\tisInitialized = true;\n\n\t\t// Initialize package\n\t\tsetName(eNAME);\n\t\tsetNsPrefix(eNS_PREFIX);\n\t\tsetNsURI(eNS_URI);\n\n\t\t// Obtain other dependent packages\n\t\tEnginePackage theEnginePackage = (EnginePackage)EPackage.Regist...
[ "0.6563573", "0.6461481", "0.6435888", "0.64176077", "0.6406619", "0.640171", "0.639678", "0.6380065", "0.63626564", "0.63521", "0.6340519", "0.6339332", "0.6320037", "0.63173765", "0.63113564", "0.6310654", "0.63026124", "0.62920785", "0.6283156", "0.6268637", "0.62572575", ...
0.6408097
4
Creates a new moveable entity setting the new position.
public MoveableEntity(double posX, double posY, Map map) { super(posX , posY, map); this.newPosX = posX; this.newPosY = posY; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Position createPosition();", "public void setPosition(Point newPosition);", "Position getNewPosition();", "public void move() {\n this.pposX = this.posX;\n this.pposY = this.posY;\n this.posX = newPosX;\n this.posY = newPosY;\n }", "public void setMoveTo(Coordinate coordinate...
[ "0.6693897", "0.64017045", "0.6310413", "0.6260884", "0.61599296", "0.6136949", "0.61283493", "0.61283493", "0.61228514", "0.6090415", "0.6053216", "0.6021864", "0.59691775", "0.59669274", "0.59629244", "0.5953178", "0.5948569", "0.5946906", "0.5938371", "0.5933618", "0.59173...
0.6634947
1
Method that is run if this Entity has collided when moving
public abstract void collided(Collision c);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void onCollision(Entity collidedEntity)\n\t{\n\t\t\n\t}", "public void collided() {\n this.collided = true;\n }", "public abstract boolean isCollided();", "@Override\r\n\tpublic void Collision(Entity e)\r\n\t{\r\n\t\tthis.isAlive = false;\r\n\t}", "public void tick() {\n ...
[ "0.74024737", "0.7133287", "0.6791486", "0.6780047", "0.67460114", "0.6704252", "0.66905886", "0.66563714", "0.6627604", "0.6592925", "0.65752375", "0.65706384", "0.6554483", "0.64472085", "0.64370024", "0.64038944", "0.63902366", "0.63805234", "0.63678336", "0.6338243", "0.6...
0.69423604
2
Abstract method to move the entity This method should only change the newPosX and newPosY variables, and try to avoid changing the posX and posY variables. Should be run before the Collision detection, and the move() method should be run after all calculations are finished.
public abstract void calculateMovement();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void move() {\n this.pposX = this.posX;\n this.pposY = this.posY;\n this.posX = newPosX;\n this.posY = newPosY;\n }", "public abstract void move(int deltaX, int deltaY);", "public void move() {\n spriteBase.move();\n\n Double newX = spriteBase.getXCoordinate(...
[ "0.73655015", "0.70477235", "0.70420945", "0.70390415", "0.6993062", "0.6807574", "0.67621356", "0.67405015", "0.67376685", "0.67162347", "0.670507", "0.6691471", "0.66599375", "0.6651281", "0.66258323", "0.6608867", "0.656711", "0.6557752", "0.65557194", "0.6555128", "0.6547...
0.0
-1
/ Finalising movement after all calculations are done
public void move() { this.pposX = this.posX; this.pposY = this.posY; this.posX = newPosX; this.posY = newPosY; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void finalizeMove() {\n return;\n }", "void ResolveUnreleasedMovements() {\n\t\t// if (isMove_down())\n\t\t// moveDown();\n\t\tif (isMove_left())\n\t\t\tmoveLeft();\n\t\tif (isMove_right())\n\t\t\tmoveRight();\n\t\t// if (isMove_up())\n\t\t// moveUP();\n\t\t// setBlock_down(false);\n\t\t// if (!...
[ "0.7164596", "0.70526266", "0.6649876", "0.65953565", "0.6594512", "0.6589749", "0.6402503", "0.63405836", "0.6260545", "0.62221587", "0.6220703", "0.6211017", "0.62070423", "0.6193146", "0.6149651", "0.6142143", "0.61385006", "0.6132408", "0.61153674", "0.61144024", "0.61108...
0.58317393
75
Checks if the Entity is facing right
public abstract boolean facingRight();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean getFacingRight(){\n return facingRight;\n }", "public boolean isFacingRight() {\n return isFacingRight;\n }", "public boolean isFacingLeft(){\r\n\t\tif(facingLeft == true){\r\n\t\t\treturn true;\r\n\t\t}else{\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "@Override\n\t\tprotecte...
[ "0.7356127", "0.7248328", "0.6861772", "0.68070745", "0.65406656", "0.64898837", "0.6464366", "0.6350409", "0.6293136", "0.62822664", "0.6257752", "0.61133474", "0.611119", "0.60943115", "0.60770124", "0.6053553", "0.601507", "0.600492", "0.5962327", "0.5953543", "0.59401566"...
0.8158236
0
Getter method for the newPosX variable
public double getNewXPosition() { return newPosX; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private double getPosX() {\n\t\treturn this.posX.get();\n\t}", "public int getPosX(){\n\t\treturn this.posX; \n\t}", "public int getPosX() {\n return posX;\n }", "public double getPosX(){\n return posX;\n }", "String getPosX();", "public float getPosX() {\n return posX;\n }"...
[ "0.8360161", "0.8267665", "0.82579404", "0.82563484", "0.8185372", "0.8155906", "0.8061897", "0.8061174", "0.79928446", "0.79677224", "0.7916842", "0.7832961", "0.77998763", "0.7742436", "0.77364725", "0.77184695", "0.7621328", "0.76177984", "0.7575054", "0.7562043", "0.75555...
0.86930215
0
Getter method for the newPosY variable
public double getNewYPosition() { return newPosY; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private double getPosY() {\n\t\treturn this.posX.get();\n\t}", "public double getPosY(){\n return posY;\n }", "@Override\n public double getPosY() {\n return this.pos[1];\n }", "public int getPosY() {\n return posY;\n }", "public float getPosY() {\n return posY;\n ...
[ "0.83249474", "0.8196518", "0.8189283", "0.8062401", "0.8039938", "0.7992638", "0.7945955", "0.7940898", "0.78974485", "0.7879373", "0.7825433", "0.7801388", "0.7700825", "0.7699927", "0.75917935", "0.75482947", "0.7523619", "0.7514791", "0.7514207", "0.75058854", "0.74979985...
0.8721656
0
Returns a record reader for the given row id range.
public GenericRowFileRecordReader getRecordReaderForRange(int startRowId, int endRowId) { return new GenericRowFileRecordReader(_fileReader, startRowId, endRowId, _sortedRowIds); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Record readRecord(Long id);", "public Record readRecord(int recordId) {\n return records[recordId];\n }", "@Override\n\tpublic Record getRecordById(int id) {\n\t\tSession session = HibernateSessionFactory.getSession();\n\t\tTransaction tx = session.beginTransaction();\n\t\tRecordDAO recordDAO ...
[ "0.6400963", "0.57543397", "0.553254", "0.5515685", "0.54509413", "0.53871095", "0.5365542", "0.5357068", "0.53242093", "0.53242093", "0.5287753", "0.5258815", "0.52185243", "0.5193206", "0.5183297", "0.5169315", "0.51070154", "0.5105369", "0.5094977", "0.50720197", "0.506903...
0.809716
0
Reads the data of the given row id into the given buffer row.
public void read(int rowId, GenericRow buffer) { if (_sortedRowIds != null) { rowId = _sortedRowIds[rowId]; } _fileReader.read(rowId, buffer); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Cursor getRowData(long rowId) {\n\n String where = KEY_ROWID + \"=\" + rowId;\n Cursor c = db.query(true, DATA_TABLE, null, where, null, null, null, null, null);\n if (c != null) {\n c.moveToFirst();\n }\n return c;\n\n }", "boolean onReadRow(int rowIndex, ...
[ "0.5973349", "0.58844054", "0.57511467", "0.5609803", "0.5467035", "0.5467035", "0.5463466", "0.54429317", "0.53669375", "0.5365936", "0.5247307", "0.52428323", "0.5223683", "0.5217243", "0.5194585", "0.51690066", "0.5150813", "0.5123035", "0.51178193", "0.510987", "0.5092940...
0.7747312
0
Compares the records at the given row ids.
public int compare(int rowId1, int rowId2) { assert _sortedRowIds != null; return _fileReader.compare(_sortedRowIds[rowId1], _sortedRowIds[rowId2]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean checkRow(Map<String,String> row1, Map<String,String> row2, String rowKey) {\n\t\tfinal BasicDBList countColumns = (BasicDBList) config.get(\n\t\t\t\tContextComparatorMongoReferences.FIELD_COUNT_COLUMNS);\n\t\tfinal BasicDBList refColumns = (BasicDBList) config.get(\n\t\t\t\tContextComparatorMongoRe...
[ "0.60912323", "0.5517007", "0.5329704", "0.5295447", "0.52921784", "0.5281979", "0.52336943", "0.52266073", "0.51218915", "0.509202", "0.50723076", "0.50565946", "0.5044992", "0.5034686", "0.5005355", "0.49684772", "0.49583873", "0.4957448", "0.4891382", "0.48864523", "0.4882...
0.67720646
0
Dispense the specified stack, play the dispense sound and spawn particles.
@Override protected @Nonnull ItemStack dispenseStack(@Nonnull IBlockSource source, @Nonnull ItemStack stack) { ItemStack secondaryResult = Prep.getEmpty(); EnumFacing enumfacing = source.getBlockState().getValue(BlockDispenser.FACING); CapturedMob capturedMob = CapturedMob.create(stack); i...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void spawnDispenseParticles(IBlockSource p_82489_1_, EnumFacing p_82489_2_)\n {\n p_82489_1_.getWorld().playAuxSFX(2000, p_82489_1_.getXInt(), p_82489_1_.getYInt(), p_82489_1_.getZInt(), this.func_82488_a(p_82489_2_));\n }", "public void explosion(){\n explosionEffect.play(pitch, vo...
[ "0.6370101", "0.63040733", "0.59915096", "0.58899826", "0.5812015", "0.5741681", "0.56841624", "0.5625114", "0.56023407", "0.55333805", "0.55279243", "0.5521334", "0.5409155", "0.5381498", "0.5381159", "0.53452176", "0.5340729", "0.5306727", "0.53018206", "0.52904016", "0.528...
0.5484081
12
Mandatory empty constructor for the fragment manager to instantiate the fragment (e.g. upon screen orientation changes).
public DeviceModuleDetailFragment() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public FragmentMy() {\n }", "public RickAndMortyFragment() {\n }", "public MainActivityFragment() {\n }", "public MainActivityFragment() {\n }", "public RegisterFragment() {\n // Required empty public constructor\n }", "public VehicleFragment() {\r\n }", "public EmployeeFragmen...
[ "0.8031511", "0.76991963", "0.7676922", "0.7676922", "0.7538628", "0.7534647", "0.75326765", "0.75220966", "0.75071454", "0.74123853", "0.7406797", "0.737607", "0.73755896", "0.736607", "0.73266673", "0.73027587", "0.73027587", "0.72954965", "0.7287682", "0.728533", "0.728096...
0.71019924
47
Get the last heartbeat for the symbol
public long getHeartbeatForSymbol(final BitfinexStreamSymbol symbol) { synchronized (lastTick) { final Long heartbeat = lastTickTimestamp.get(symbol); if(heartbeat == null) { return -1; } return heartbeat; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "long getLastHeartbeat();", "public BitfinexTick getLastTick(final BitfinexTickerSymbol currencyPair) {\n\t\tsynchronized (lastTick) {\n\t\t\treturn lastTick.get(currencyPair);\n\t\t}\n\t}", "public void updateChannelHeartbeat(final BitfinexStreamSymbol symbol) {\n\t\tsynchronized (lastTick) {\n\t\t\tlastTickTi...
[ "0.73462594", "0.6567853", "0.62292916", "0.6215798", "0.6109383", "0.60173976", "0.6008553", "0.59492236", "0.5928839", "0.591576", "0.5908796", "0.5890724", "0.5874258", "0.57970387", "0.57913744", "0.57913744", "0.57913744", "0.57913744", "0.57913744", "0.5750031", "0.5744...
0.7881815
0
Update the channel heartbeat
public void updateChannelHeartbeat(final BitfinexStreamSymbol symbol) { synchronized (lastTick) { lastTickTimestamp.put(symbol, System.currentTimeMillis()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void channelActive(ChannelHandlerContext ctx) throws Exception {\n ctx.fireChannelActive();\n\n ctx.executor().scheduleAtFixedRate(new Runnable() {\n ...
[ "0.67919916", "0.6728366", "0.6693648", "0.6410582", "0.63875186", "0.63160515", "0.62329805", "0.61322635", "0.59698355", "0.59551036", "0.59009165", "0.58417034", "0.5797959", "0.5767417", "0.5738925", "0.57091343", "0.57060784", "0.56377167", "0.5626365", "0.562496", "0.56...
0.6885871
0
Get a set with active symbols
public Set<BitfinexStreamSymbol> getActiveSymbols() { synchronized (lastTick) { return lastTick.keySet(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public TreeSet < Symbol > getNotRemoveableSymbolsFromAlphabet ()\n {\n TreeSet < Symbol > set = new TreeSet < Symbol > ();\n if ( this.regexNode == null )\n {\n return set;\n }\n for ( LeafNode l : this.regexNode.getTokenNodes () )\n {\n if ( l instanceof TokenNode )\n {\n ...
[ "0.66689605", "0.6554251", "0.6430117", "0.64297456", "0.639236", "0.63237", "0.61554694", "0.6098371", "0.60827416", "0.6078897", "0.60367775", "0.59746087", "0.5961101", "0.59605587", "0.5944862", "0.5942326", "0.589513", "0.5885403", "0.586731", "0.585341", "0.5844108", ...
0.6887529
0
Get the last tick for a given symbol
public BitfinexTick getLastTick(final BitfinexTickerSymbol currencyPair) { synchronized (lastTick) { return lastTick.get(currencyPair); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public long getHeartbeatForSymbol(final BitfinexStreamSymbol symbol) {\n\t\tsynchronized (lastTick) {\n\t\t\tfinal Long heartbeat = lastTickTimestamp.get(symbol);\n\t\t\t\n\t\t\tif(heartbeat == null) {\n\t\t\t\treturn -1;\n\t\t\t}\n\t\t\t\n\t\t\treturn heartbeat;\n\t\t}\n\t}", "int getEndTick();", "int getFina...
[ "0.6558735", "0.63183045", "0.62744737", "0.602073", "0.59615415", "0.59576505", "0.58385164", "0.58385164", "0.58316237", "0.5757324", "0.57407856", "0.5668112", "0.5658486", "0.5654744", "0.56408817", "0.5610593", "0.55856663", "0.5559247", "0.5526638", "0.5526225", "0.5510...
0.7588142
0
Invalidate the ticket heartbeat values
public void invalidateTickerHeartbeat() { // Invalidate last tick timetamps synchronized (lastTick) { lastTickTimestamp.clear(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void invalidate() {}", "@Override\r\n public void invalidate() {\r\n }", "private void resetActiveHeartbeatTimer() {\n\t\tactiveHeartbeatTimer.cancel();\n\t\tstartActiveHeartbeatTimer();\n\t}", "public void invalidate() {\n\t\t\n\t}", "@Override\n\tpublic void invalidate() {\n\n\t}", "public...
[ "0.63265187", "0.61428005", "0.614177", "0.614119", "0.61064893", "0.5990587", "0.59788305", "0.59766877", "0.59043044", "0.5857973", "0.5823628", "0.5823628", "0.5807497", "0.57782376", "0.5757451", "0.57566184", "0.573285", "0.5714731", "0.56288755", "0.55570734", "0.551979...
0.7512672
0