query_id
stringlengths
32
32
query
stringlengths
7
129k
positive_passages
listlengths
1
1
negative_passages
listlengths
88
101
74e6de8984ba2d2a460cf06f5a15058e
Generate a random Enum for SortType
[ { "docid": "4df14f024000929ac538ec5c711b6001", "score": "0.7755593", "text": "public static SortType random() {\n return values()[(int) (Math.random() * values().length)];\n }", "title": "" } ]
[ { "docid": "b49d89c70b41d6c6376e4cca29aec892", "score": "0.7231979", "text": "static private <T extends Enum<?>> T randomEnum(Class<T> en) {\n return en.getEnumConstants()[random.nextInt(en.getEnumConstants().length)];\n }", "title": "" }, { "docid": "570e61aa560537e326a1ebb33a9c47...
542dd977aebf68e02ddb9c59a5936086
constructor that get passes an IncidentFetcher initialises the class variables Position them and add them
[ { "docid": "017e8cd9cfe172d3b8e108d47360dc6c", "score": "0.0", "text": "public StateGroup(IncidentsFetcher fetcher){\t//add states to list\r\n\t\tthis.fetcher = fetcher;\r\n\t\tupdateSightings();//updates the minimum number of sightings out of all states\r\n\t\t\r\n\t\tWA = new State(200, 125, \"WA\", f...
[ { "docid": "dce18aa08b57defa71e51b595fc972dc", "score": "0.5880939", "text": "private void init()\r\n\t{\r\n\t\t//int[] locations = {BWAPICoop.LOC_NE, BWAPICoop.LOC_NW};\r\n\t\t_agents = new HashMap<String,Agent>();\r\n\t\t\r\n\t\t_listener = new CoopEventListener(this);\r\n\t\t_bwapi = new BWAPICoop(_l...
1b544633c2886b0d8ef18c775c81cd06
/ renamed from: b
[ { "docid": "f09519ff79c88f74e7d66f1b4f04c5aa", "score": "0.0", "text": "private synchronized SSLSocketFactory m62321b() {\n if (this.f42513c == null && !this.f42514d) {\n this.f42513c = m62322c();\n }\n return this.f42513c;\n }", "title": "" } ]
[ { "docid": "dad0e5f2871b1cb3bb5be4a851aa49c0", "score": "0.6336056", "text": "@Override\r\n\tpublic void operatorB() {\n\t\t\r\n\t}", "title": "" }, { "docid": "da0c4ac2bb0ebbc548180f9ebaee4c39", "score": "0.62674177", "text": "@Override\n\tpublic void b() {\n\t\t\n\t}", "title":...
8c83dac1f4f01afb98c6878e6ce79be0
adds the new PersonEntity object, which is posted via Rest Interface to file or database.
[ { "docid": "aa4d055f42cc393b3d8238141a80ca5a", "score": "0.6981852", "text": "@Override\n @Transactional\n public void add(PersonEntity personEntity) {\n personRepository.add(personEntity);\n }", "title": "" } ]
[ { "docid": "9831f0e5bdd8484add379ae39a43075b", "score": "0.71400714", "text": "@PostMapping\r\n\tpublic void addPerson (@RequestBody Person person) {\r\n\t\tpersonService.addPerson(person);\r\n\t}", "title": "" }, { "docid": "444098f70f38613057e9e752303521fe", "score": "0.6822996", "...
d34d04d2b07bf4a72604c90c74e1f282
ActionListener methods Invoked when the blink timer fires. This is called asynchronously. The simply changes the visibility and repaints the rectangle that last bounded the caret.
[ { "docid": "c850724c5a19efd2361ec831d2b0f411", "score": "0.52955437", "text": "public void actionPerformed(ActionEvent e) {\n if (!visible && (width == 0 || height == 0)) {\n setVisible(true);\n }\n else {\n visible = !visible;\n repaint(...
[ { "docid": "0da88d99050976d2f9dea1efffd507dc", "score": "0.61417955", "text": "@Override\n public void ballChange(int i, boolean visible) {\n onSwingThreadDo(new Runnable() {\n @Override\n public void run() {\n board.setBallVisible(i,visible);\n ...
6d8f71ea55839de2dbd2be07f131d278
Method called when the user make the final decision to close the app.
[ { "docid": "f9e749bef1a792573095d7b2f5321abe", "score": "0.0", "text": "public void exit() {\n \t\tfor (FrontlineMessage m : messageFactory.getMessages(Type.OUTBOUND, Status.PENDING)) {\n \t\t\tm.setStatus(Status.OUTBOX);\n \t\t}\n \t\tdoClose();\n \t}", "title": "" } ]
[ { "docid": "be39bda31bfc08a5f88759dc47d7c09b", "score": "0.7789117", "text": "@Override\r\n\t\t\t\t\t\t\tpublic void quitApplication() {\n\t\t\t\t\t\t\t\tmenuDialog.dismiss();\r\n\t\t\t\t\t\t\t\tfinish();\r\n\t\t\t\t\t\t\t}", "title": "" }, { "docid": "060bf807ba071f90ec5ccbcba32cd4bf", ...
c78ed7eff8eda893a6a5bbcdc0dd5639
Creates an object assigned to specified Game class instance. Object is represented by an image in a game window.
[ { "docid": "4907ef247eb030a425b4602e0f24b914", "score": "0.70243794", "text": "GameObject(Game game, ID id, Image image) {\n this.game = game;\n this.boardWidth = game.getWindowWidth();\n this.boardHeight = game.getWindowHeight();\n this.id = id;\n this.image = image;\...
[ { "docid": "5d26008bd21e0c342687baef0d4503e4", "score": "0.64522254", "text": "public abstract Game getNewInstance();", "title": "" }, { "docid": "e4d45e9a59be85fc02cb916a09520027", "score": "0.6381695", "text": "public GameObject(Image image) {\n this.image = image;\n }", ...
922cd0d8155337312677c7798c48ac34
Retrieves representation of an instance of ws.GenericResource
[ { "docid": "3a0ff8f1ae13546d01ce58c142d5e4f1", "score": "0.0", "text": "@GET\n @Path(\"/listar\")\n @Produces(MediaType.APPLICATION_JSON)\n public String listar() {\n DaoUsuario daoUsuario = new DaoUsuario();\n Gson gson = new GsonBuilder().excludeFieldsWithoutExposeAnnotation().c...
[ { "docid": "3db08932d5aa458cb85a0530f0edb522", "score": "0.69974357", "text": "@Internal\n @JsonCreator(mode = JsonCreator.Mode.DELEGATING)\n static Resource deserialize(GenericResource genericResource) {\n return genericResource;\n }", "title": "" }, { "docid": "a1d18d1add8d...
c658bf1f64ec1195b7a81a1f10989377
This method was generated by MyBatis Generator. This method corresponds to the database table litemall_account_withdraw
[ { "docid": "ce40af132d3f5eb64d7826883e612629", "score": "0.52686137", "text": "public Criteria andIdGreaterThanOrEqualToColumn(LitemallAccountWithdraw.Column column) {\n addCriterion(new StringBuilder(\"id >= \").append(column.getEscapedColumnName()).toString());\n return (Criteria...
[ { "docid": "a2544049c827546c09ce5e8cc05ea59a", "score": "0.6265366", "text": "public LitemallAccountWithdrawExample() {\n oredCriteria = new ArrayList<Criteria>();\n }", "title": "" }, { "docid": "972fd1338e78bdcd17a7bfa98e1f018e", "score": "0.6105959", "text": "Collection<...
78e78b135ad2e6c8e38b011e79e6cc68
Get Facility Type Category.
[ { "docid": "d7d04c5c5d8a7ff70ae63637e42c2cb7", "score": "0.79460496", "text": "public String getfacility_type_cat () \n\t{\n\t\treturn (String)get_Value(COLUMNNAME_facility_type_cat);\n\t}", "title": "" } ]
[ { "docid": "ab9b96f73321bddec14af2f1f7105cd1", "score": "0.7300054", "text": "public java.lang.Integer getCategoryType() {\n return category_type;\n }", "title": "" }, { "docid": "0e3577c8b9ec1d98bfa296499090eb6e", "score": "0.72623706", "text": "public java.lang.Integer getCateg...
42439edefba8a6ad06207752ffbdcc0b
POST /airplanemodelseats : Create a new airplaneModelSeat.
[ { "docid": "bf99699e249fcbfe7e263503fff35077", "score": "0.80858004", "text": "@RequestMapping(value = \"/airplane-model-seats\",\n method = RequestMethod.POST,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public ResponseEntity<AirplaneModelSeat> createAirplaneModelSeat(...
[ { "docid": "ebb7aac278994b2dc7f3b1e7e260f2df", "score": "0.632959", "text": "@RequestMapping(value = \"/airplane-models\",\n method = RequestMethod.POST,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public ResponseEntity<AirplaneModel> createAirplaneModel(@Valid @Request...
d9e58562327934b2ebeb478c849440d8
Inserts text to the iframe and insures that the text was entered
[ { "docid": "952e992ec384ca432329a3ee02c01624", "score": "0.758973", "text": "public void InsertText(String txt){\n driver.switchTo().frame(driver.findElement(IFRAMEID));\n WebElement inputBox = find(BOXID);\n inputBox.clear();\n inputBox.sendKeys(txt);\n\n }", "title":...
[ { "docid": "bcd3843880996006690428b8f85321a7", "score": "0.605224", "text": "@Override\n public void add_content() {\n Scanner _thisText = new Scanner(System.in);\n System.out.println(\"Enter Ad text:\");\n _adContent = _thisText.nextLine();\n }", "title": "" }, { "docid": "e72f83...
908418649e6b66f22cbb4a1251864fb2
When the user clicks "run":
[ { "docid": "f175545c6e50e80cc62a5205e17b146b", "score": "0.0", "text": "public void actionPerformed(ActionEvent arg0) {\n processRunAlgorithmCommandFromGUI();\n\n }", "title": "" } ]
[ { "docid": "f097a0438491e179f970f0a1bfc05eee", "score": "0.7238196", "text": "public void run() {\n inRun=true;\n }", "title": "" }, { "docid": "af9c15e3d0aad00010c69c523a9540d7", "score": "0.7224847", "text": "private void runButtonActionPerformed(java.awt.event.ActionEvent evt)...
25197b4cf814864ecd440f23b9149cb3
TODO Autogenerated method stub
[ { "docid": "6b5a679181badeb10b85a6094d5efa39", "score": "0.0", "text": "@Override\n public void onSetDevInfoFailed() {\n handler.sendEmptyMessage(GeneralInfoAcy.MSG_SET_FAILED);\n }", "title": "" } ]
[ { "docid": "da34ed11fe7c5649b3cd0bdad6dca5df", "score": "0.7115143", "text": "@Override\n\t\tpublic void 비행() {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "99cfe01c5035e9a9ca6dafada0e4a005", "score": "0.67343336", "text": "@Override\r\n\tpublic void caminar() {\r\n\t\t// TODO Auto-g...
9e45a07d575804f80f6b87dce9da0a27
getter for Column COMMERCIAL_TENANT_BASIC_COPY.N_COMMERCIAL_COPY_ID
[ { "docid": "f3add0c8198cc059494070d8c4dbaea8", "score": "0.6625089", "text": "public BigDecimal getnCommercialCopyId() {\r\n return nCommercialCopyId;\r\n }", "title": "" } ]
[ { "docid": "8046c13a5e8139a275f4d5f25dd2b5ca", "score": "0.58695364", "text": "public StrColumn getCompId() {\n return delegate.getColumn(\"comp_id\", DelegatingStrColumn::new);\n }", "title": "" }, { "docid": "e0e4e02ddbf26600cad5240e8b65fb62", "score": "0.58025384", "text...
1a924c2e8e2211ee04b62bf4a6d18fe6
/ Get Average Benchmark
[ { "docid": "d3db8ace5735177908687f4d67a6c8f7", "score": "0.66937494", "text": "public double getBenchmark(Scenario s) {\n double total = 0;\n int length = mResult.length;\n for (int i = 0; i < length; i++) {\n double second = (mResult[i] / 1000f);\n double fps ...
[ { "docid": "e8d8d5ed4220309127df8becdc5e30e9", "score": "0.71806425", "text": "float getAvgTime();", "title": "" }, { "docid": "f5bfdcebdd7bb6cdbf97882f39d6fe92", "score": "0.7138214", "text": "int getAvgFrameMs();", "title": "" }, { "docid": "4f5fead91ab80b656b55f85eca26...
ac8f824476747353ddfd2609899cedc4
Build a string for describing the effect
[ { "docid": "f02fd8a1208449a834e72b85baede891", "score": "0.0", "text": "@Override\n public String toScreen(){\n return \"Add 3 military points and 2 coins\";\n }", "title": "" } ]
[ { "docid": "b48634e9ff303bf91790f1261c29bb19", "score": "0.7395245", "text": "@Override\n public String getEffectDescription() {\n return \"Puts \" + getName() + \" on the battlefield. \";\n }", "title": "" }, { "docid": "ce7b66d8dca027c0892fb7af5b9fee36", "score": "0.730282...
5e185150f8b61ce5105970ef4a853eb6
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.
[ { "docid": "4fe4a20fe7af2336114ef86823d11aa1", "score": "0.0", "text": "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jPanel1 = new javax.swing.JPanel();\n jLabel1...
[ { "docid": "98e3f367d20a60eb829a633a5ff465e6", "score": "0.7293092", "text": "public LeTanForm() {\n initComponents();\n }", "title": "" }, { "docid": "2901c5027f800c57f8efe188557aec1f", "score": "0.7290383", "text": "public MainForm() {\n initComponents();\n }", ...
98a4a1e081e42b5da55d36f6337c631b
Clears the value of the 'taxiID' field.
[ { "docid": "b7999563d495f32d095a09116f22fcef", "score": "0.79432344", "text": "public model.avro.TrajSegmentAvro.Builder clearTaxiID() {\n taxiID = null;\n fieldSetFlags()[2] = false;\n return this;\n }", "title": "" } ]
[ { "docid": "b370672fb4a38e2e1ba748352fe77e07", "score": "0.7578894", "text": "public void clearTaxonId() {\n // Override in proxy if lazily loaded; otherwise does nothing\n }", "title": "" }, { "docid": "97af45bddc58cb45b53afe38c26c3947", "score": "0.66653514", "text": "public vo...
abe9d9016fca9c6f16fad6f42598ade0
Add by Devendra June 2
[ { "docid": "01048a4c415d6ecc41ebd61e16b572a8", "score": "0.0", "text": "public List<ReportInfoGetter> getComponentDetail() {\r\n\t\treturn componentDetail;\r\n\t}", "title": "" } ]
[ { "docid": "29d68e3bd3c7867e29ab592227875732", "score": "0.70555747", "text": "private void adds() {\n }", "title": "" }, { "docid": "9208773f8d675a45ef2786d0cb668514", "score": "0.69411194", "text": "@Override\n\tpublic void addiion() {\n\t\t\n\t}", "title": "" }, { "...
091ece60ad34e261f17a393b5e703af9
.................................. Construct a new DFloat32.
[ { "docid": "c93b60733f22390c0d2b1cd67d1116cb", "score": "0.808548", "text": "public DFloat32 newDFloat32() {\n return new asciiF32();\n }", "title": "" } ]
[ { "docid": "123e5c2c951102a89b3393253a315ddd", "score": "0.74424034", "text": "public DFloat32 newDFloat32(String n) {\n return new asciiF32(n);\n }", "title": "" }, { "docid": "111ce9831c605772eb602408721e949f", "score": "0.62095374", "text": "@Override\n\tpublic default Float32...
f01382f1870fb8ef44082c812cac82e6
/tv_score.setText("LAST SCORE: " + String.valueOf(lastScore) + "\n" + "BEST1: " + String.valueOf(best1) + "\n" + "BEST2: " + String.valueOf(best2) + "\n" + "BEST3: " + String.valueOf(best3));
[ { "docid": "a7812ad798780dfa9938235952b38488", "score": "0.0", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch(item.getItemId()){\n case R.id.share:\n Intent sharingIntent = new Intent(Intent.ACTION_SEND);\n sharingIn...
[ { "docid": "fccb0a3654ccc0ccf2b1274c082a4fe5", "score": "0.7391412", "text": "public void scoreUpdate(){\n //update score textView\n scoreView = (TextView) findViewById( R.id.scores); //associate scores field with variable scoreView\n String message = \"Score is: \\nPlayer: \" + pla...
ea4bb3547914fed76aa3b64acbb30118
get initial connection and create the table
[ { "docid": "98bce0825be4adadbabbc311f5906c15", "score": "0.7273927", "text": "public Connection initialise()\r\n\t{\r\n\t\tConnection connInit = getConnection();\r\n\t\tcreateBookingTable();\r\n\t\treturn connInit;\r\n\t}", "title": "" } ]
[ { "docid": "9d80e50167aaffc87786bac3c7f16905", "score": "0.71858084", "text": "public static void createTable() {\n\n if(isConnected()) {\n try {\n // con.createStatement().executeUpdate(\"CREATE TABLE IF NOT EXISTS Stats (Spielername VARCHAR(100), UUID VARCHAR(100), Kill...
b8831c5d9f1f8dae1b8272a91c799463
1. load the driver
[ { "docid": "8880b44f1beaed1761a9bff182f5b7e5", "score": "0.0", "text": "public static DishEntry read(long dishId) throws ClassNotFoundException, SQLException {\n Class.forName(\"org.postgresql.Driver\");\n\n // 2. obtain a connection\n Connection conn = DriverManager.getConnection(U...
[ { "docid": "eda4cc63d757ed7933c7c4a2a456a4b1", "score": "0.7837472", "text": "private void LoadDriver() {\n try {\n// The newInstance() call is a work around for some\n// broken Java implementations\n Class.forName(\"com.mysql.jdbc.Driver\").newInstance();\n } catch (Exception e...
ee09ab921b5ac58ba73342e766afea9e
Fetch records that have product_id IN (values)
[ { "docid": "97228458e1479c02ac7237bc46c68540", "score": "0.50890553", "text": "public List<cn.zyj.dbexporter.jooq.db_mall.tables.pojos.TOfferGoods> fetchByProductId(Long... values) {\n return fetch(TOfferGoods.T_OFFER_GOODS.PRODUCT_ID, values);\n }", "title": "" } ]
[ { "docid": "8f6668e3c7bb526540a96aba3fd51839", "score": "0.5625434", "text": "public void setProductIds(Set<Long> productIdsIn) {\n productIds = productIdsIn;\n }", "title": "" }, { "docid": "5b5b73371c705b844fd33e0677b36bbb", "score": "0.556777", "text": "@Query(value = \"...
7bce22164ffc1b1a5f2fc369e6d0f7f8
class for cropping spritesheet
[ { "docid": "b5fcf8ed4b62f08cfeab5f7e97f1c011", "score": "0.608414", "text": "public BufferedImage crop(int x, int y, int w, int h){\n return sheet.getSubimage(x, y, w, h);\n }", "title": "" } ]
[ { "docid": "f0122010080dbd2c44e23f2889232c0f", "score": "0.62973857", "text": "public Bitmap crop() {\n\r\n int left = leftDraw * bitmap.getWidth() / this.getWidth();\r\n int top = topDraw * bitmap.getHeight() / this.getHeight();\r\n int right = rightDraw * bitmap.getWidth() / this....
c4060f1e6814d7f61bd473ffcf712d73
Registra um bairro na cidade referente
[ { "docid": "30d1bfeaa56e531edab0300188881ece", "score": "0.6628902", "text": "public void regBairro(Bairro bairro)\n\t{\n\t\tbairros.put(bairro.nome(), bairro);\n\t}", "title": "" } ]
[ { "docid": "2313a01e7341d549e5abc11f6cc17ddc", "score": "0.6241176", "text": "@Override\n public void registrar()\n {\n \n new CRegistrarProveedor(user);\n ventana.dispose();\n \n }", "title": "" }, { "docid": "3048e50eff095006ee50566b5596c8a9", "score...
949887726dab628a4866ce71e6510087
LEARN TO WRITE JUNIT TEST
[ { "docid": "9b896124794eb7a6a2fab52faf57ae6e", "score": "0.0", "text": "@Test\n public void fluxTest() {\n Flux<String> stringFlux = Flux.just(\"sammidev\",\"adisti\",\"aditya\")\n// .concatWith(Flux.error(new RuntimeException(\"exception\")))\n .concatWith(Flux.j...
[ { "docid": "1d680380ebc42e3a10e18bcb2b66adee", "score": "0.78430516", "text": "@Test\r\n\tpublic void main(){\n\t\t\r\n\t}", "title": "" }, { "docid": "476e0094a53e4d3752e2d24c42e8130e", "score": "0.778322", "text": "@Test\n\t public void test() {\n\t }", "title": "" }, ...
a18a5726a38704631d32cdbee576d97d
Gets the other market data needed.
[ { "docid": "236ec82ccf674973518a5876314f9a83", "score": "0.53143495", "text": "public SnapshotDataBundle getOtherData() {\n return _otherData;\n }", "title": "" } ]
[ { "docid": "c0991b746e99e14f7a713de6115b8a53", "score": "0.6235971", "text": "public MarketData getUnderlying2() {\n return underlying2;\n }", "title": "" }, { "docid": "b4ff7b461ab00fb340f60436ba532ea2", "score": "0.60308874", "text": "public String getMarket() {\r\n retu...
a2cdbb82ba2321108c85af3be05e9ad5
init path after both fillRule and path have been set
[ { "docid": "c68803f998fe89858afe0f299e189062", "score": "0.83303416", "text": "protected void setupPath() {\n if (mFillRuleSet && mD != null) {\n mPath = new Path();\n mPath.setFillType(mFillRule);\n super.createPath(mD, mPath);\n }\n }", "title": "" } ]
[ { "docid": "27f7850616cd3d8a213542af4225515a", "score": "0.64801073", "text": "private void init(){\n drawStrokeWidth = getResources().getInteger(R.integer.stroke_width);\n eraseStrokeWidth = drawStrokeWidth + ERASE_STROKE_PADDING;\n\n drawPath = new Path();\n drawPaint = new...
3a40df9f922af5f2dba14f0abb563a51
Function used to write the updated data into the database file
[ { "docid": "c492a0cff5479c64db8bcdb70540532a", "score": "0.56873006", "text": "public void SaveData(ArrayList<String> Data) {\n try(FileWriter fw = new FileWriter(\"C:\\\\Users\\\\Citrine\\\\Desktop\\\\School Stuff\\\\Comp Math\\\\Java\\\\JavaProject\\\\Database.txt\");\r\n Pri...
[ { "docid": "dd7f0c9caaafb6e06a64df104b151205", "score": "0.7705043", "text": "public void writeToDatabase() throws SQLException {\n\t\twriteNumLines();\n\t\twriteToErrorDatabaseTable();\n\t\twriteToResultDatabaseTable();\n\t\tcon.createStatement().execute(\"UPDATE files SET end_time = '\"\n\t\t\t\t+ new...
3e0a39f5bde66e572cb896cd4d243ee6
Set number of tasks.
[ { "docid": "60b27eb4a0b339449ee8287a1e2a844a", "score": "0.0", "text": "public void setLongTasks(IntegerRange longTasks) {\n this.longTasks = longTasks;\n }", "title": "" } ]
[ { "docid": "880759a53d8b6c1015a0fab64cf07aac", "score": "0.69588", "text": "public void setThreadPoolSize(int nroOfThreads);", "title": "" }, { "docid": "6b0bee663c8eece2b0945648d6748de8", "score": "0.67695034", "text": "public void setNumberOfThreads(Integer numberOfThreads) {\n ...
12b00d445687199aaa48e9eef48fdc3e
applying salt (take pw and salt = salt + pw)
[ { "docid": "e038f96bbac872f9eda3eb258e4b86f9", "score": "0.80570865", "text": "static String applySalt(String pw, String salt){\n String Salted = \"\";\n\n Salted += salt.substring(0, salt.length()/2);\n Salted += pw;\n Salted += salt.substring(salt.length()/2);\n\n re...
[ { "docid": "8ff16c3c91782065677c4c1491e29ce9", "score": "0.78500086", "text": "private String saltPassword(String password, String salt) {\n return password + salt;\n }", "title": "" }, { "docid": "3787cfd5fd1470b31b3b40e433537693", "score": "0.7073973", "text": "public String ad...
192c3909fe7ec3009b0f2c8dc55a0149
Noargs constructor, using all default settings.
[ { "docid": "dbfe6f121fdd0bb5427b4404e88b6ace", "score": "0.0", "text": "public DefaultColumnRenderer() {\r\n // Empty implementation.\r\n }", "title": "" } ]
[ { "docid": "e6d0857c9df300e6725f2632463912ff", "score": "0.72403026", "text": "public Constructor() {\n }", "title": "" }, { "docid": "3d4262e77f4d69dd5fba6ef5ff2682bc", "score": "0.71975577", "text": "public ConstructorUtils() {\n\t\tsuper();\n\t}", "title": "" }, { "...
accd7d85a92ed4e6caf4b63111a94e0e
Gets the seek bar change listener.
[ { "docid": "2fe712bfa5fbcc0d6130fd71021dd2f9", "score": "0.8144064", "text": "public OnSeekChangeListener getSeekBarChangeListener() {\n return mListener;\n }", "title": "" } ]
[ { "docid": "8aa741e09f0908bf53f07560eb1968a9", "score": "0.73046964", "text": "public static SeekBar.OnSeekBarChangeListener getListener(SeekBar seekBar) {\n Field listenerInfoField = null;\n try {\n listenerInfoField = Class.forName(\"android.widget.SeekBar\").getDeclaredField(...
97691828645a4c808388a8875b4642c8
================================================================================ OnCheckedChangeListener Implementation ================================================================================
[ { "docid": "473756a52fff4fa7f0d392e0c552aa7c", "score": "0.0", "text": "@Override\n public void onCheckedChanged(CompoundButton buttonView, boolean isChecked)\n {\n willRememberGotenna = isChecked;\n SharedPreferences prefs = getSharedPreferences(BuildConfig.APPLICATION_ID, Context.M...
[ { "docid": "24688e5708d1f326006e78b6350107cf", "score": "0.7654196", "text": "public static interface OnCheckedChangeListener {\n\n /**\n * Called when the checked state of a compound button has changed.\n *\n * @param checkableView The view whose state has changed.\n ...
5e1f89a971eff6e36cb0a90a82dc5f76
private final Logger logger = LoggerFactory.getLogger(this.getClass());
[ { "docid": "51467976482bb37d0d0b6a06932aa003", "score": "0.0", "text": "@GetMapping(\"/hello\")\n public String hello() {\n return \"hello\";\n }", "title": "" } ]
[ { "docid": "f99f2882027576ffd17d55709c679ece", "score": "0.8310591", "text": "private Logger getLogger() {\n return LoggerFactory.getLogger(getClass());\n }", "title": "" }, { "docid": "3f96b05d7c1d7a67e63a0052105de6f7", "score": "0.77316207", "text": "@Override\n public...
cea47846501423a13cb3a8d52e26a95b
Returns the kind of type being visited.
[ { "docid": "8a204feb873767646d656624ec5e4393", "score": "0.0", "text": "private int getType() {\n return (typeStack.peek()).intValue();\n }", "title": "" } ]
[ { "docid": "ccf91bcc270a75346b6959f8a05e86e5", "score": "0.7197626", "text": "Class getType();", "title": "" }, { "docid": "09f69b8624583ede07fe77ce5428e57a", "score": "0.7113271", "text": "Type getType();", "title": "" }, { "docid": "09f69b8624583ede07fe77ce5428e57a", ...
949a446d8de6e8501682b24adcab2705
Specifies the media type for the stream that this description element represents, such as "audio" or "video".
[ { "docid": "c320d7539fc2f4490bd7ce0aa8d53d10", "score": "0.58435464", "text": "public void setMedia(String media)\n {\n super.setAttribute(MEDIA_ATTR_NAME, media);\n }", "title": "" } ]
[ { "docid": "0c8659c74d7076bae72cc631192d8bcc", "score": "0.66253006", "text": "public void setType(MediaType type) {\n this.type = type;\n }", "title": "" }, { "docid": "63140cb5c47aab10912821827d297019", "score": "0.646367", "text": "public String getMediaType() {\n ...
635ab4157a17e0fe52b0f529b19ae89f
////////////////////////////////////////////////////////////////////////// convenience methods, may be moved ///////////////////////////////////////
[ { "docid": "6fdfcc81a7690db0b2c75904e8b53e8f", "score": "0.0", "text": "public void dump(final OutputStream out) throws RepositoryException, RDFHandlerException {\n RDFFormat format = RDFFormat.TRIG;\n LOGGER.info(\"dumping triple store in format \" + format.getName() + \" to output stre...
[ { "docid": "132ebee1d663aa8e1c0ab776375c437a", "score": "0.6432521", "text": "Support support();", "title": "" }, { "docid": "2b2c76cb338654ad1be7624777cf25f2", "score": "0.62974817", "text": "private HelperMethods(){}", "title": "" }, { "docid": "b4074a0ee84b41daa041fd64...
0f67b126d492045fbda3cff817046e54
Application Alert Dialog to show
[ { "docid": "fd768ed48aab7fe97ca4d6250fffcd56", "score": "0.0", "text": "public void showAlertDialog(String title, String message, String buttonText,\n final boolean shouldCloseActivityOnDismiss, final OnOkClickListner onOkClickListner) {\n AlertDialog alertDialog;\n...
[ { "docid": "05fca4ddfeccf67600aa5210edddfc15", "score": "0.7246718", "text": "private void showAlert() {\r\n\t\tDisplay.getDisplay(this).setCurrent(screenAlert, Display.getDisplay(this).getCurrent());\r\n\t}", "title": "" }, { "docid": "aeabc7803c9ea9f5a430eb4b46a148ea", "score": "0.7072...
25197b4cf814864ecd440f23b9149cb3
TODO Autogenerated method stub
[ { "docid": "fbc98df4b3d254ae966ee91efacab5e6", "score": "0.0", "text": "@Override\n\tpublic void afterCompletion(HttpServletRequest request, HttpServletResponse response, Object handler, Exception ex)\n\t\t\tthrows Exception {\n\t\t\n\t}", "title": "" } ]
[ { "docid": "74a4209c94e08d9f5eb0b60e580f5e04", "score": "0.68867725", "text": "@Override\r\n\tpublic void comit() {\n\t\t\r\n\t}", "title": "" }, { "docid": "b645eacb329adc01490ab5013a6c4f7f", "score": "0.67295986", "text": "@Override\n\t\t\tpublic void perfom() {\n\n\t\t\t}", "t...
76e2f70981fdafc9c55a3f4c46890c91
Check if there is an existing list item view (called convertView) that we can reuse, otherwise, if convertView is null, then inflate a new list item layout.
[ { "docid": "259c9edf58a2149da21b6a433ec52126", "score": "0.0", "text": "@Override\n public View getView(int position, View convertView, ViewGroup parent) {\n View listItemView = convertView;\n if (listItemView == null) {\n listItemView = LayoutInflater.from(getContext())....
[ { "docid": "1a675cf9cb5f83c50f6fcf70128042fe", "score": "0.7563752", "text": "public View reuseOrInflateView(View convertView, ViewGroup parent, AdapterType type) {\n int itemLayout = getItemLayoutResId();\n switch (type) {\n case SINGLE_RECIPIENT:\n itemLayout = ...
82b310074b5a53685063e03a7a478fc8
Marks the leaf "zerorelcapduration" with operation "merge".
[ { "docid": "1d245f98849e4c3e2b97718c9142700a", "score": "0.77604663", "text": "public void markZeroRelCapDurationMerge() throws JNCException {\n markLeafMerge(\"zeroRelCapDuration\");\n }", "title": "" } ]
[ { "docid": "01b89e1e363aba92062f9fd2a0257be7", "score": "0.70598036", "text": "public void markOvldStartDurationMerge() throws JNCException {\n markLeafMerge(\"ovldStartDuration\");\n }", "title": "" }, { "docid": "ff4efa8a89ea83830413f41a8978d478", "score": "0.6090452", "t...
1308bb8bb3777773ef88bf67e93931fa
This is called through reflection.
[ { "docid": "31c2dbd88e2be9b7ccb198c76adc5c7c", "score": "0.0", "text": "public SurfaceHeightFacetLayer(Config config) {\n super(SurfaceHeightFacet.class, config);\n }", "title": "" } ]
[ { "docid": "6b39647d4d2f9edb1da3a3c06bf01364", "score": "0.6579031", "text": "private Reflection() {}", "title": "" }, { "docid": "27bc40cf2c5e26e0bf8b70807e0bcaed", "score": "0.6004349", "text": "@Override\r\n\tpublic void caminar() {\n\t\t\r\n\t}", "title": "" }, { "doc...
630991564300a146f43c59bb9219c628
Constructors go here. Copy over your constructors from the previous exercise. Check out StudentTester.java for an example of how to use this constructor. Make sure your code matches the call in the tester.
[ { "docid": "1e88c4f28a0f74b8972a7012059b2663", "score": "0.0", "text": "public String getFirstName(){\r\n return firstName;\r\n }", "title": "" } ]
[ { "docid": "47bde0d3969c32eb1f9cbe28b6a903ec", "score": "0.7891295", "text": "public StudentTest()\r\n {\r\n }", "title": "" }, { "docid": "aafb5a886facbdd89e91af751e8fa9b7", "score": "0.76432186", "text": "public Student(String firstName, String lastName, int studentNumber,\n ...
2d5e26d2462d02affa582628d6922457
Called every time user clicks on a menu item
[ { "docid": "b2628fe256cac4733dcf702132df7c24", "score": "0.0", "text": "@Override \n public boolean onOptionsItemSelected(MenuItem item) {\n \tToast toast = Toast.makeText(this, item.getItemId() + \"\", Toast.LENGTH_LONG);\n \t\ttoast.show();\n \treturn true;\n }", "title": "" } ]
[ { "docid": "e052fa19244c06a3ced2bad649befaab", "score": "0.7765827", "text": "public void setOnMenuItemClickListener();", "title": "" }, { "docid": "2d0d13a9cd823d1d591a1d9fa8896989", "score": "0.7570293", "text": "@Override\n\t\t\tpublic void menuSelected(MenuItem selectedItem) {\n\...
f2c58f49dc66743a67f0fbbee5081888
JMX Attribute for average nice time across all CPUs.
[ { "docid": "515e7714a1bf02821d62a3c9d68d64f2", "score": "0.5932055", "text": "@JMXAttribute(description=\"Percentage of CPU utilization that occurred while executing at the user level with nice priority.\", name=\"Nice\")\t\r\n\tpublic float getNice() {\r\n\t\treturn nice;\r\n\t}", "title": "" } ]
[ { "docid": "8cc16ed5177b619ece8e8c96a278cea3", "score": "0.6910428", "text": "double getCpuexectime();", "title": "" }, { "docid": "0278dedfcd25dc95007042b74df8aece", "score": "0.6688486", "text": "public abstract double getTotalUtilizationOfCpu(double time);", "title": "" }, ...
41a057b48e0fc2628e0e8c869250a6df
Retourne la composante (classe) d'une exception dans une string
[ { "docid": "34ae5f86fefb457977781172c9ab7d80", "score": "0.60336536", "text": "private static String eClassToString(Throwable e)\n\t{\n\t\treturn new StringBuffer(32).append(PREFIX_CLASS).append('[').append(e.getClass().getName()).append(']').toString();\n\t}", "title": "" } ]
[ { "docid": "7a6aaaf3de633e86c161845b7507a006", "score": "0.7529337", "text": "java.lang.String getException();", "title": "" }, { "docid": "7b5245a5238f0129d171c5c44309ffc2", "score": "0.7144261", "text": "public String getExceptionType();", "title": "" }, { "docid": "62b...
6a0c50da98727f840c205671ca730f69
Set the value of a node which id is passed as parameter with and object
[ { "docid": "fd5b25fc437333494c7275caa193a09d", "score": "0.65382624", "text": "@Override\n public void updateNodeValue(Integer i, T object) {\n assertNodeExist(i);\n nodes[i] = object;\n }", "title": "" } ]
[ { "docid": "07baa57279ae53b00981915b86134027", "score": "0.725006", "text": "void setNode(int key, String value);", "title": "" }, { "docid": "97b42da0233d948ebd6a4235b7efe24d", "score": "0.69846386", "text": "public void setPropertyValue(Object id, Object value) {\n\t\t\n\t\tif (id....
1bbee8f536becb3439cd33c7bb14a8ff
Get (bound) identifiers in PatternParameters.
[ { "docid": "b91f87eaf6aa4a42f63c2b240750f8f1", "score": "0.4766802", "text": "public void visitPatternParameters(GNode n) {\n for (int i = 0; i < n.size(); i++) {\n dispatch(n.getGeneric(i));\n } \n }", "title": "" } ]
[ { "docid": "895a31f4d3c4bc30e25192de87f754ab", "score": "0.6167566", "text": "public List<ParameterBinder> getPrimaryKeyParameterBinders() {\n if (cacheParameterID == null) {\n cacheParameterID = new ArrayList<ParameterBinder>();\n for (ParameterBinder pb : parameters) {\n if (pb.isP...
f34aaee3fcd94a992f97f4e1372c3cb8
True if has "het" element
[ { "docid": "eb9cc2b580938ebdf90153625be97793", "score": "0.6057122", "text": "boolean isSetHet();", "title": "" } ]
[ { "docid": "ef4c4e12f78a0f4cc9ca514c77e05cad", "score": "0.66196734", "text": "boolean hasMonsterElement();", "title": "" }, { "docid": "ef4c4e12f78a0f4cc9ca514c77e05cad", "score": "0.66196734", "text": "boolean hasMonsterElement();", "title": "" }, { "docid": "d2b099cf31...
151325ac2c26281b45b43fe70fe0c709
optional string mediumType = 7;
[ { "docid": "883d3a1db2ccc4e2128d5221f656fa9a", "score": "0.6478664", "text": "public Builder setMediumType(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000040;\n mediumType_ = value;\n onChanged();\n retur...
[ { "docid": "35577b2e689cf3335c1b730f6e711012", "score": "0.64268434", "text": "default String type() {\n return \"simple\";\n }", "title": "" }, { "docid": "783ef356b884e0cc55a2dc6c3abfd41e", "score": "0.63722557", "text": "public void setMedium(String medium) {\r\n this.m...
2b17185aec59e58bb997f28e4eeb9a3c
A provider/creator of devices of certain types. Each registered implementation has an identifier to find it.
[ { "docid": "76a19cf0c535462c2926071c5cb2ab26", "score": "0.68730104", "text": "public interface DeviceInterface {\n\n /**\n * Finds a registered implementation for the given ID which matches the wanted type.\n * Once the implementation is found, a constructor is matched to the given arguments...
[ { "docid": "fb29965295cae3fdc75842ba185f99dc", "score": "0.7226243", "text": "public interface AbstractDeviceFactory {\n public InterTV ManufactureTV();\n public InterPhone ManufacturePhone();\n public InterTablet ManufactureTablet();\n\n}", "title": "" }, { "docid": "11170623ec7300...
552e06372bfa01c8f6ed91c6964ef869
Constructor(used as basic pattern copy)
[ { "docid": "278694b8850d3408db2dc83e60e6ffd7", "score": "0.70471936", "text": "public BasicPattern(BasicPattern fromPattern)\n {\n data = fromPattern.getBasicPatternByteArray();\n basicPattern_length = fromPattern.getLength();\n basicPattern_offset = 0;\n fldCnt = fromPattern.n...
[ { "docid": "a50e225049de5302e22a2a0c0cc041a3", "score": "0.6704229", "text": "protected abstract void construct();", "title": "" }, { "docid": "a50e225049de5302e22a2a0c0cc041a3", "score": "0.6704229", "text": "protected abstract void construct();", "title": "" }, { "docid...
38b4db6c6ada624ff5dc7e9d7f7eac66
Creates a Node containing SP.
[ { "docid": "e36247125af0d48fe08e4bc5b7344a88", "score": "0.5927846", "text": "Node(String sp) {\n s = sp;\n }", "title": "" } ]
[ { "docid": "8c1db29993cf9e45dd7bb1bae25f4c27", "score": "0.61276174", "text": "public void createNode(Poset P){\n\t\t\n\t}", "title": "" }, { "docid": "d6a0578e8fca28e898c92ff5d85a1fbb", "score": "0.590098", "text": "Node createNode();", "title": "" }, { "docid": "ea0a1d8...
b7e0059bbd82665f874402097c5d538f
Dont do anything as this was set initially
[ { "docid": "e387548643ee848a9b1fa80b0bc86121", "score": "0.0", "text": "@Override\r\n\t\t\t\t\t\tpublic void onNothingSelected(AdapterView<?> arg0) {\n\t\t\t\t\t\t}", "title": "" } ]
[ { "docid": "853cf59e719bf5a6dda91eae7144d369", "score": "0.69323546", "text": "@Override\n\t\t\tpublic void reset() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "853cf59e719bf5a6dda91eae7144d369", "score": "0.69323546", "text": "@Override\n\t\t\tpublic void reset() {\n\t\t\t\t\n\...
2c8ec8eecf2d793b5b07dd1774f73f1c
Returns the maximum fine this resource can reach.
[ { "docid": "afa527ebbf15815a58e1c3565fa537eb", "score": "0.74186724", "text": "public double getMaxFine() {\n\t\treturn this.MAX_FINE;\n\t}", "title": "" } ]
[ { "docid": "cafada8708ab12e9cfe7c80cadd67d92", "score": "0.70559305", "text": "public double getMaxFineAmount() {\n return this.maxFineAmount;\n }", "title": "" }, { "docid": "cafada8708ab12e9cfe7c80cadd67d92", "score": "0.70559305", "text": "public double getMaxFineAmount(...
b4bdc265edbcfde2bc7a80337bef759f
Create a fistp qword [dstReg+dstDisp]
[ { "docid": "f484a444fc3c5720a27676915e13e732", "score": "0.5170563", "text": "public abstract void writeFISTP64(GPR dstReg, int dstDisp);", "title": "" } ]
[ { "docid": "4dc3fc2666d1c41b61bad62bccec035c", "score": "0.572117", "text": "public abstract void writeMOVSD(X86Register.XMM dst, X86Register.GPR src,\n int srcDisp);", "title": "" }, { "docid": "33fd908f4a5f18c010bfa04c15432b58", "score": "0.57131225",...
a16b60ac97495fe656657eb7916e7d82
This method was generated by MyBatis Generator. This method corresponds to the database table ecs_goods_tag
[ { "docid": "a7ba2e72844efa71270adb832c05bc8a", "score": "0.0", "text": "public void setDistinct(boolean distinct) {\n this.distinct = distinct;\n }", "title": "" } ]
[ { "docid": "36108da36d8df0c0492225d46ef6bb04", "score": "0.5872097", "text": "public String getTagColumnName() {\n return \"serverTag\";\n }", "title": "" }, { "docid": "d5df6dcde917df82b0e2b43950992e99", "score": "0.5489718", "text": "public List<Tag> getAllTags() {\n ...
154223ed34f95bd33f7446d8ce461d59
Organize the list by numerology order.
[ { "docid": "9a41cfb50b0f60d21d3313cb67738b72", "score": "0.0", "text": "private String organizeClassifyResult(String[][] array) {\n\t\tint[][] result = new int[array.length][2];\n\t\t\n\t\tfor (int i = 0; i < array.length; i++) {\n\t\t\t\n\t\t\tchar[] temp = array[i][0].toCharArray();\n\t\t\tresult[i][0...
[ { "docid": "84320a91274ccc0450cbd11ae7342993", "score": "0.66463774", "text": "public void orderList(String title,Integer number);", "title": "" }, { "docid": "325bf65b11ee425bcba10fc75d377fee", "score": "0.61872244", "text": "public void orderDataStructure(List<String> bar) {\n ...
3685c4a017366b48f7c477721e3e8193
$ANTLR end "rule__FactProperty__Group__1" $ANTLR start "rule__FactProperty__Group__1__Impl" InternalContextML.g:4426:1: rule__FactProperty__Group__1__Impl : ( '.get' ) ;
[ { "docid": "f665feb27abc17cb3daa0a087497800a", "score": "0.8386482", "text": "public final void rule__FactProperty__Group__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalContextML.g:4430:1: ( ( '.get' ) )\n ...
[ { "docid": "ac6854371e2ca11f737cbc6a0535d22e", "score": "0.7959669", "text": "public final void rule__Fact__Group__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalContextML.g:4241:1: ( ( '.get' ) )\n //...
ec7d4d18363e39b59f40855dd68e7cc7
Sets marker at given location on map
[ { "docid": "62649479ad93e16ee6b423a322da107c", "score": "0.61510915", "text": "public void ShowMarker(Double LocationLat, Double LocationLong, String LocationName, Integer LocationIcon) {\n LatLng Coord = new LatLng(LocationLat, LocationLong);\n\n if (ContextCompat.checkSelfPermission(acti...
[ { "docid": "f757ee72fb0db0e5038a2d9b521aeee0", "score": "0.76956415", "text": "public void setMarker(LatLng latLng) {\n mMap.clear();\n mMap.addMarker(new MarkerOptions().position(latLng).title(\"Location\"));\n float zoomLevel = 16.0f;\n mMap.moveCamera(CameraUpdateFactory.n...
78a5a288de1adc59831803ae5f75ae46
to stop the mg bike you paddle w/your feet backwards handPaddleBackwards();
[ { "docid": "398375d0a12d0e375c88c65b65cbe343", "score": "0.0", "text": "public void stopMotion()\r\n\t{\n\t\tSystem.out.print(\"GMBicycleImpl stopping motion\\n\");\r\n\t}", "title": "" } ]
[ { "docid": "9810bc4f18d295becb3514e43af39adf", "score": "0.7337948", "text": "public void bounceOffPaddle() {\n deltaY *= -1;\n }", "title": "" }, { "docid": "08bfbea4effc94890f255e634c484ed7", "score": "0.6876911", "text": "public void pressBrake() {\n \n speed =...
0abdfecbca707f7128c5f495167fcf1f
Convert an Long object to a boolean
[ { "docid": "bbc7fb455273505bf65977a22da87889", "score": "0.78259635", "text": "public static boolean long2Boolean(Long i) {\n return (i == null) ? false : i == 1; \n }", "title": "" } ]
[ { "docid": "8a1915c0cc032a87edaeadd395bafe4d", "score": "0.8093108", "text": "boolean hasLongValue();", "title": "" }, { "docid": "e329f5b0145049d382e5a3d68a3df0f7", "score": "0.762366", "text": "boolean hasValLong();", "title": "" }, { "docid": "f834d801a2fb65b534379fee0...
67c9490e1d4f4c5750c0e6260f8a974a
/ / / / / /
[ { "docid": "f24d551c4660cb57019a90aed1a0966f", "score": "0.0", "text": "public void setBlockBoundsForItemRender() {\n/* 43 */ float var1 = 0.375F;\n/* 44 */ float var2 = var1 / 2.0F;\n/* 45 */ setBlockBounds(0.5F - var2, 0.0F, 0.5F - var2, 0.5F + var2, var1, 0.5F + var2);\n/* */ }",...
[ { "docid": "11a1c2dfff9a8b20b789ac0b102932b4", "score": "0.52802354", "text": "public float circuit()\r\n { \r\n \treturn (2*width + 2*height); \r\n }", "title": "" }, { "docid": "785f839822f847fb68d932ffd1b6fbf8", "score": "0.52685195", "text": "public static void main(Stri...
25197b4cf814864ecd440f23b9149cb3
TODO Autogenerated method stub
[ { "docid": "66fa97c48cbca0dcc3a5e9b91ab16511", "score": "0.0", "text": "public List<Event> getEventsRSVP(int id) {\n\t\tSessionFactory sf = emf.unwrap(SessionFactory.class);\n\t\ttry (Session session = sf.openSession()) {\n\t\t\tCriteriaBuilder cb = session.getCriteriaBuilder();\n\t\t\tCriteriaQuery<Bus...
[ { "docid": "81005989525ec80103fbaf46f9c37779", "score": "0.6694239", "text": "@Override\n\tpublic void agit() {\n\n\t}", "title": "" }, { "docid": "0b5b11f4251ace8b3d0f5ead186f7beb", "score": "0.65686274", "text": "@Override\n\tpublic void comer() {\n\t\t\n\t}", "title": "" }, ...
962d7bf5c83f4ec4e4a6e78662066d91
Is AND or OR?
[ { "docid": "2fb5e6b257d75819b89abfb37a70cde7", "score": "0.6543262", "text": "public boolean isBoolean(){\n switch(this){\n case AND:\n case OR:\n return true;\n default:\n return false;\n }\n }", "title": "" } ]
[ { "docid": "bf2d752b82b1f4813cf18365d1e28a91", "score": "0.7692029", "text": "And and();", "title": "" }, { "docid": "d02d85ec5200b268e9a17fe8420d1c8b", "score": "0.74621284", "text": "private Expr logicalAnd() {\n return leftAssociativeBinary(Parser::equality, AND);\n }", ...
3cc21096b6eca779a688539d1968913e
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.
[ { "docid": "891447f7f23422712d82585fd352f912", "score": "0.0", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == R.id.action_logout) {\n startActivity(new Inten...
[ { "docid": "d771bdd1ab23e43342c528d79498f394", "score": "0.772733", "text": "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t switch (item.getItemId()) {\n\t case android.R.id.home:\n\t // app icon in action bar clicked; go home\n\t Intent intent = n...
fc18aac7f6bbe49a7e31aec46cedba77
Returns the main text part from the given Javadoc.
[ { "docid": "dbd4c1a53f270b1847a641c2b929f324", "score": "0.72599596", "text": "protected static String getJavadocMainText(Javadoc aJavadoc) {\n \t\tfor (Object tempTagObject : aJavadoc.tags()) {\n \t\t\tTagElement tempTag = (TagElement) tempTagObject;\n \t\t\tif (tempTag.getTagName() == null) {\n \t\t\t...
[ { "docid": "7b597c0832f9ac84d119ffb085e94228", "score": "0.6359458", "text": "ExternalDocumentation getExternalDocs();", "title": "" }, { "docid": "2c2215132f7249db2c52b85f02bc27ff", "score": "0.6090817", "text": "String getContentString() throws DocmaException;", "title": "...
fe0cec536c33336b646c99fb34efa08d
required string errorInfo = 4;
[ { "docid": "d4520615f50ef0873b3ed724e738a401", "score": "0.6061637", "text": "public String getErrorInfo() {\n Object ref = errorInfo_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s ...
[ { "docid": "c669d36b354470e9fc983c44c61891e7", "score": "0.72008514", "text": "public String error(){ return err.toString(); }", "title": "" }, { "docid": "d89d6d2bd7330c68c4900284ec70a667", "score": "0.7191633", "text": "java.lang.String getError();", "title": "" }, { "d...
1b0db9a86fbc30535f4932272842fb48
/ renamed from: a
[ { "docid": "4349f6b7468286f97638ac17a46701fe", "score": "0.0", "text": "private void m122680a() {\n setOnTouchListener(new C34033b(1.2f, 200, null));\n }", "title": "" } ]
[ { "docid": "e8b407e15e709133d36c40b376c5772b", "score": "0.6288352", "text": "@C4056a\n /* renamed from: a */\n public abstract Object mo18472a(String str);", "title": "" }, { "docid": "b7e8cbc10834bded8ca03375afdf1d79", "score": "0.6287218", "text": "public interface C35231a {...
3c5b5a0e56fd1020f5797d12434dcfc8
Get a set containing the list of keys (fields) in this particular data update
[ { "docid": "78782727f77c98cc6710432d6de711d8", "score": "0.0", "text": "public Set<String> getFieldNames ()\n\t{\n\t\treturn m_Fields.keySet();\n\t}", "title": "" } ]
[ { "docid": "f3e9291555ceaaab9032c87df54bbd60", "score": "0.6978803", "text": "public Set<FieldInfo> getKeyFieldInfos() {\n return new LinkedHashSet<FieldInfo>(_keys);\n }", "title": "" }, { "docid": "3b364f36e5d1df6c9010339f5c371059", "score": "0.67399216", "text": "Set<Str...
a3b72dd6f8d84addeaa93654cf0dc127
Retunrs true if archive contains meter Made to improve readability in rest of class
[ { "docid": "afe8d99f4d25eadff57ff575e454dce5", "score": "0.6762254", "text": "private boolean archiveContains(int id)\n {\n if (meters.containsKey(id))\n return true; \n return false; \n }", "title": "" } ]
[ { "docid": "31a0f729beac9a7a6cd2c709c2b9051b", "score": "0.6256169", "text": "boolean hasTotalMile();", "title": "" }, { "docid": "a82cfd02e515f85e3c5f17b279b67649", "score": "0.6175783", "text": "boolean hasMeasurementInfo();", "title": "" }, { "docid": "2d4f0270b14fec2d...
16d06b913557a7d9581d3f1a9022b4a1
Singleton pattern using to create instanse of CommandFactory class
[ { "docid": "1a5382f21d23ff947ba2dec55e6fc878", "score": "0.83815783", "text": "public synchronized static CommandFactory createCommandFactory(){\r\n if(commandFactory==null){\r\n commandFactory = new CommandFactory();\r\n }\r\n return commandFactory;\r\n }", "title...
[ { "docid": "170b853a729a4404df27eef84e1dcbf7", "score": "0.8079923", "text": "public static CommandFactory getInstance() {\n synchronized (CommandFactory.class) {\n if (inst == null) {\n inst = new CommandFactory();\n }\n }\n return inst; //retur...
6e15e8af24dff047db6db134a3eefbb1
return the user's payment methods
[ { "docid": "3f6a258521e3a35f82c005ac381e2965", "score": "0.6603871", "text": "private int getPaymentMethod() {\n return 2;\n }", "title": "" } ]
[ { "docid": "e009f5d449f4bffd1d1dcf9554750799", "score": "0.66652286", "text": "@JsonGetter(\"accepted_payment_methods\")\r\n public List<String> getAcceptedPaymentMethods ( ) { \r\n return this.acceptedPaymentMethods;\r\n }", "title": "" }, { "docid": "9fb3e7e59f421ab0018f995505...
ee4f8c7d80f63b6b09ff183aabdfd464
Sets the neighborhood value for this MerchantItemAttributes.
[ { "docid": "96e6e42aecf27235effa6acb799e7ba0", "score": "0.6460772", "text": "public void setNeighborhood(java.lang.String neighborhood) {\n this.neighborhood = neighborhood;\n }", "title": "" } ]
[ { "docid": "b8d12d04662698ec4cf72cfc55382366", "score": "0.61055845", "text": "public void setNeighbourhood(Region region, List<Integer> neighbourhood) {\n mNeighbourhoods.put(region, neighbourhood);\n onNeighbourhoodSet(region, neighbourhood);\n }", "title": "" }, { "docid": "90a0e60...
13de80600141b80a3b8a792b7e141c1d
Retrieve the nonlocalized displayable label for the feature reference.
[ { "docid": "25bf158c397710cb24255d5993547046", "score": "0.70176864", "text": "public String getLabelNonLocalized() {\r\n \t\treturn label;\r\n \t}", "title": "" } ]
[ { "docid": "8735c948399b534926505bfb2b4ef7b4", "score": "0.70051384", "text": "public String getLabel() {\r\n \t\tdelayedResolve();\r\n \t\tif (localizedLabel != null)\r\n \t\t\treturn localizedLabel;\r\n \t\telse\r\n \t\t\treturn label;\r\n \t}", "title": "" }, { "docid": "aae36e634bee581f5...
11b57155f77160baafa90ad9fcc9b4c4
/UserIO io = new UserIOConsoleImpl(); ClassRosterView view = new ClassRosterView(io); ClassRosterDao dao = new ClassRosterDaoFileImpl(); ClassRosterAuditDao auditDao = new ClassRosterAuditDaoFileImpl(); ClassRosterService service = new ClassRosterServiceImpl(dao, auditDao); ClassRosterController controller = new ClassR...
[ { "docid": "035e659c3a862d0424948a084e4961e0", "score": "0.5411621", "text": "public static void main(String[] args) throws ClassRosterPersistenceException {\n \n ApplicationContext ctx = \n new ClassPathXmlApplicationContext(\"applicationContext.xml\");\n ClassRoster...
[ { "docid": "ff88fbb58373ed3974412fa60603ff07", "score": "0.71948117", "text": "public static void main(String[] args) {\n UserIO myIo = new UserIOConsoleImpl();\n // Instantiate the View and wire the UserIO implementation into it\n ClassRosterView myView = new ClassRosterView(myIo);...
37acc42e1888c80fb9af4a559247a1f8
Sets criteria for which values have to be permanently filtered
[ { "docid": "20a1eadeab0bd0d4d4c7949afa4ecb31", "score": "0.6355312", "text": "public void setFilterCriteria(ImogJunctionProxy criteria) {\r\n\t\tisFiltered = true;\r\n\t\tfilterCriteria = criteria;\r\n\t}", "title": "" } ]
[ { "docid": "cbc62bbd7d2c8d13b0bdf47d160f1cb4", "score": "0.63162404", "text": "void setFixedFilter(QueryFilter filter);", "title": "" }, { "docid": "50b28b49abfb981e8434f9e7bf91a7d2", "score": "0.60113335", "text": "@Override\n\tprotected void resetFilterConditions() {\n\t\tif (start...
2fbd609f44d414fda590ba7f61cd0d15
The text is set using invokeLater, so the scrolltotop must also be done using invokeLater. [Jon Aquino]
[ { "docid": "ff5432b3784c9212b053bed9b2391a6b", "score": "0.0", "text": "public void scrollToTop() {\n SwingUtilities.invokeLater(new Runnable() {\n public void run() {\n editorPane.setCaretPosition(0);\n }\n });\n }", "title": "" } ]
[ { "docid": "7b9a91ace504ba0a93c89b207d8e24e9", "score": "0.6699384", "text": "void updateText() {\n if (mStatus != SCROLLER_RUNNING) {\n return;\n }\n\n removeMessages(SCROLLER_MSG_TICK);\n\n final TextView textView = mView.get();\n i...
101e0c966af121e349d30cb41caf73d1
Returns the result of interpreting the object as an instance of 'Positive'. This implementation returns null; returning a nonnull result will terminate the switch.
[ { "docid": "f4bdb05b988c0b52f5c4a62275d48502", "score": "0.77657336", "text": "public T casePositive(Positive object) {\n\t\treturn null;\n\t}", "title": "" } ]
[ { "docid": "bd750278a09e06f8480d08a534317d7d", "score": "0.6476746", "text": "public Integer getPositive() {\n return positive;\n }", "title": "" }, { "docid": "6eb2e87d4f0a2b6087aacb1821cd47ff", "score": "0.6300678", "text": "PositiveInt getValuePositiveInt();", "title": "" ...
5cb296604ee4ae21c48f836f3a3f0b6a
constructor of the class
[ { "docid": "12892ed61fe88b20b7f14fb2380a4843", "score": "0.0", "text": "KeyboardLayout() {\n\n //***************************SET UP KEYBOARD SIZE AND HEADER*************\n firstRowKeysWidth = Settings.keyboardSize;\n //the height of the first row key is X% of the firstRowKeyWidth wid...
[ { "docid": "311cbdaf08781f33ac6d90a4e691ebb6", "score": "0.8408814", "text": "public Constructor () {\r\n }", "title": "" }, { "docid": "25ab68331daa53baabd4a84e3a2ccc57", "score": "0.7838692", "text": "public void construir() {\n\t\t\n\t}", "title": "" }, { "docid": "...
9d00e7025f961f9ee6e874c1cdb8e09d
Delete the commentary by id.
[ { "docid": "3fa5b56bcecf33ae0be64c7a518cef55", "score": "0.8487912", "text": "public void delete(Long id) {\n log.debug(\"Request to delete Commentary : {}\", id);\n commentaryRepository.delete(id);\n }", "title": "" } ]
[ { "docid": "504a3fc2a2236b6186dab953b608d302", "score": "0.82060826", "text": "void deleteComment(Long id) throws ServiceException;", "title": "" }, { "docid": "291007bea0fa29f0f1cf17ecfce1d865", "score": "0.8109486", "text": "@Override\r\n\tpublic int delete(Long id) {\n\t\treturn c...
afc94734eddd12c968599e28053f875c
Implements a dynamic programming solution to find the length of the longest Palindromic subsequence of the given string.
[ { "docid": "f00f640814eb45cd8195f90dda14381c", "score": "0.72033846", "text": "public static int getLengthLongestPalindrome(String x){\r\n\r\n /** Answer array will look like this:\r\n * [ 0 | X | X | X ...]\r\n * [ 0 | 0 | X | X ...]\r\n * [ 0 | 0 | 0 | X ...]\r\n ...
[ { "docid": "401d77f06fee8588736a5fcfaacd8d82", "score": "0.84944195", "text": "public int longestPalindromeSubseqDp(String s) {\n int len = s.length();\n int[][] DP = new int[len+2][len+1];//for i-2 and j+1\n for(int i = 0; i < len;i++) {\n DP[1][i] = 1;\n }\n ...
ab08c3c31d2d3f4e907f6e850a7a2243
Created by y1247 on 2017/1/8.
[ { "docid": "a2271a665890e2b9646f8d40b5decc72", "score": "0.0", "text": "public interface IMovieView {\n public void setMovieList(List<Movie> ls);\n void showProgress();\n void hideProgress();\n void showLoadFailMsg(String error);\n}", "title": "" } ]
[ { "docid": "76a80470fd21f5a9092c258ed3a8a632", "score": "0.6497735", "text": "private static void 로또번호리스트() {\n\t\t\r\n\t}", "title": "" }, { "docid": "9969c2cd0a26f223be9eea348d1c6160", "score": "0.63498133", "text": "private static void 로또수동생성() {\n\t\t\r\n\t}", "title": "" }...
e05695faab075fe5e4be4d2cbb4a061d
Efetuando busca de Pessoa por email
[ { "docid": "acbf937c3ba97558970bbb5720bae4b1", "score": "0.0", "text": "public Optional<Perfil> buscarPessoaPorNome(String nome){\n\t\tTypedQuery<Perfil> q2 =\n\t\t\t\tentityManager.createQuery(\" select p from Perfil p where p.nome=:nome\", Perfil.class);\n\t\tq2.setParameter(\"nome\", nome);\n\t\tretu...
[ { "docid": "09870636713ee3b4f18819f8e49bf68d", "score": "0.7707467", "text": "public Encuesta buscar(String email);", "title": "" }, { "docid": "607faecf37865d8f6eda9012225cc9f0", "score": "0.7117869", "text": "public String buscarExistenciaEmail(){\n\t\tregistrado = commonService.bu...
e4e1af4dede861e403b7f31fde89288c
set up the connection to the server that will run the simulation
[ { "docid": "bb06b0d8fb61dfe0549d8b9b3f76cb47", "score": "0.0", "text": "public static void main(String[] args) {\n\n try (RemoteServer server = RemoteServer.create(\"http://localhost:8080\")) {\n ViewProcessor viewProcessor = server.getViewProcessor();\n ConfigSource configSource = server.g...
[ { "docid": "469bc981848bfacbb8ac6662ada3f89b", "score": "0.7046261", "text": "public void initSimulation() {\n serverPool.submit(new simulationRunner());\n }", "title": "" }, { "docid": "cc88c24a583eef667df321a602445ff3", "score": "0.6936038", "text": "private void setUpSer...
0ea235d9056574d37abf92d689674dc9
end getPosition Get the jerseyNo of a player by inputting their name
[ { "docid": "5529dc352320ea42ac93e71b672da632", "score": "0.72191167", "text": "public String getJerseyNo(String playerName) {\n\t\tString jerseyNo = null;\n\t\tDocumentReference docRef = db.collection(\"information\").document(\"players\");\n\t\tApiFuture<DocumentSnapshot> future = docRef.get();\n\t\tDo...
[ { "docid": "7a8695ba4454096283bc3aa070b14870", "score": "0.6961088", "text": "public String getPosition(String jerseyNo) {\n\t\tString posName = null;\n\t\tDocumentReference docRef = db.collection(\"information\").document(\"players\");\n\t\tApiFuture<DocumentSnapshot> future = docRef.get();\n\t\tDocume...
35b58670d78433c4716288c3e549418a
/ Find a random peer to connect and remove him from the list of online clients.
[ { "docid": "1462a09df16fecb59df337617479e4ab", "score": "0.76224566", "text": "private Map.Entry<InetAddress, Integer> randomPeer() {\n\t\tMap.Entry<InetAddress, Integer> randomPeer = null;\n\t\tboolean isFound = false;\n\t\twhile (!isFound) {\n\t\t\tfor (Map.Entry<InetAddress, Integer> entry : onlineCl...
[ { "docid": "3bedf04320dc23a952db5c2b7654630c", "score": "0.6049211", "text": "public void maintain_list(Socket peer) {\n\t\ttry {\n\t\t\tPeerData pData = new PeerData();\n\t\t\tdout = new DataOutputStream(peer.getOutputStream());\n\t\t\tInetAddress addr = peer.getInetAddress();\n\t\t\t//pInfo.hostname=a...
34bc32b0e66dd49a4b5da87d5494f49d
Candidates for an automated Test: TODO Bug 665118 Refresh pools will not notice change in provided products Configuration methods
[ { "docid": "cad180b37809a519cf802be0879a76a9", "score": "0.0", "text": "@BeforeGroups(value=\"VerificationFixForBug725535_Test\",groups={\"setup\"})\n \t@AfterGroups(value=\"VerificationFixForBug725535_Test\",groups={\"setup\"})\n \tpublic void removeRhsmUpdateFileAfterGroups () {\n \t\tif (clienttasks=...
[ { "docid": "91d181f156816b7d6a95b542a3b5e174", "score": "0.58572274", "text": "protected void populateConfigurationProvider(MockConfigurationProvider inProvider)\n {\n }", "title": "" }, { "docid": "d40b984babd42c3b795f9ba484256895", "score": "0.5838257", "text": "@Test\n pu...
ee6fa33793cc7a56f02b560a65d09fa4
Removes a film from the film database.
[ { "docid": "591bdf20b32989ce712b0de58b32885e", "score": "0.7226155", "text": "public void deleteFilm(String title) {\n filmEdit.deleteFilm(title);\n }", "title": "" } ]
[ { "docid": "e297eac0a05d6c270bb52a254d68661a", "score": "0.8074629", "text": "public void removeFilm(Film film){\r\n\t\t// Make sure the film actually exists in the database\r\n\t\tif(cinema_film_list.contains(film)){\r\n\t\t\t// Remove the film from the internal database\r\n\t\t\tthis.cinema_film_list....
b23de43f9972643656f413fec796a3ba
Add a transaction to the transaction pool
[ { "docid": "a0dd2b1ad0eedf21f0caf35dd631ae88", "score": "0.685566", "text": "public void addTransaction(Transaction tx) {\n // IMPLEMENT THIS\n this.transactions.add(tx);\n }", "title": "" } ]
[ { "docid": "a15f03cd4ab6e1872c8e57562b9fb47d", "score": "0.84116346", "text": "public void addTransaction(Transaction tx) {\n // IMPLEMENT THIS\n t_pool.addTransaction(tx);\n }", "title": "" }, { "docid": "d0c5f0d1b2b7dc02f3990f1868a7d1f4", "score": "0.73645633", "te...
b4f9d14b89c7af477077170a6aa1ca04
Returns the value of the 'Returns Many' attribute. If the meaning of the 'Returns Many' attribute isn't clear, there really should be more of a description here...
[ { "docid": "35c26a2b420156c93661024cd25ed5d4", "score": "0.72537476", "text": "boolean isReturnsMany();", "title": "" } ]
[ { "docid": "b4bd020932205d3d7cc35690c7c146bd", "score": "0.5987484", "text": "public java.lang.String getManyTable()\n {\n return this._manyTable;\n }", "title": "" }, { "docid": "274e1e208c044fe9e37a2654dfb45075", "score": "0.58173764", "text": "boolean isMany();", ...
8a0afba9209dd5e51ea2c66fbe568a57
/ / / / / / / / / / / /
[ { "docid": "fad166b0c43ae453851f68925cc42b93", "score": "0.0", "text": "public SQLQueryParser parse(XConnection xconn, String query, int override) {\n/* 123 */ SQLQueryParser parser = new SQLQueryParser(query);\n/* */ \n/* */ \n/* */ \n/* 127 */ parser.parse(xconn, override);\n/*...
[ { "docid": "c61388d045f281e569684f6194e34606", "score": "0.52770025", "text": "public long getWidth() { return this.right - this.left; }", "title": "" }, { "docid": "0022fd8a33c9a06ec94d5eca80a9a8b1", "score": "0.5151046", "text": "public void divide() {\n\t\t\n\t}", "title": "" ...
48c5c946381f99d732c8eb02ed6db3e7
Sets whether or not the duck sound effects are enabled
[ { "docid": "1a2439bcf3ad045210672481eae533ef", "score": "0.74495566", "text": "public void setSoundDuck(final boolean sDuck) { soundDuck = sDuck; }", "title": "" } ]
[ { "docid": "c92cc98584e7921a3d967f0fb32b9286", "score": "0.7206088", "text": "public void enableSound() {\n soundToggle = true;\n }", "title": "" }, { "docid": "24807512648e521e2c69bccec479e0ee", "score": "0.7195923", "text": "public void setSound(Boolean sound_on){\n this...
b9ffdb3c936458d72dde67071112b916
check for required fields check for substruct validity
[ { "docid": "f656ae2e53a7448eb1a1ae59d10aa6ae", "score": "0.0", "text": "public void validate() throws org.apache.thrift.TException {\n }", "title": "" } ]
[ { "docid": "3a964c5d0b5546786f0172ee07ab457f", "score": "0.763282", "text": "public void validate() throws org.apache.thrift.TException {\n if (constraintId == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'constraintId' was not present! Struct: \" + toString...
273c1eb680651fe2577d2cfe943f03b9
Switches back to the main menu view Destroys current view
[ { "docid": "546755ad23e2137c8abc4ca0646d7aae", "score": "0.74941474", "text": "@FXML\n public void pressBackToMainMenu(ActionEvent event) {\n mainWindow.switchView(MainWindow.ViewEnum.MAINMENU);\n GameManager gm = ConfigData.getInstance().getGameManager();\n gm.destroy();\n }"...
[ { "docid": "5e8831b65144acc56cd8672f0e1982c5", "score": "0.7658204", "text": "private void backToMenu ()\n\t\t{\n\t\t\t// switch to menu screen\n\t\t\tgame.setScreen(new MenuScreen(game));\n\t\t}", "title": "" }, { "docid": "b9fa260a943f485eddaa603ee78c7f94", "score": "0.74637747", "...
a547b7a7ba54d49de70d28467ee0abf7
Reconstructs an Object from ByteArray.
[ { "docid": "1e6558698675c8b30242e7359f87ca1e", "score": "0.0", "text": "public static <T> T deserialize(String fileName, Class<T> type) {\n T obj;\n File inFile = new File(fileName);\n try {\n ObjectInputStream inp =\n new ObjectInputStream(new FileInpu...
[ { "docid": "2cb46e7f86f6874fd2d81e8dbc89fb49", "score": "0.72404534", "text": "Object deserialize(byte[] bytes) throws Exception;", "title": "" }, { "docid": "8c6ce3d169cc186337cbbf0e2a0d2174", "score": "0.69664294", "text": "Object decode(byte[] encoded);", "title": "" }, { ...
4ce12d7d4843e5aca610479c665f85aa
Calculates the user's total daily energy expenditure based on weight, height, age, gender
[ { "docid": "f07b9c3433cac34a3aa99ee6a95b1549", "score": "0.7263428", "text": "private static double calcTDEE(double weight, double height, int age, String gender){\n double weightInKG = weight*0.45359237;\n double heightInCM = height*2.54;\n\n double TDEE = (10.0*weightInKG) + (6.25...
[ { "docid": "dd5d82e0f230ae2dcc6bbec6f47fc8fb", "score": "0.6426329", "text": "public double earnings() { return wage * hours; }", "title": "" }, { "docid": "e6d3c3751aa8636bbb25f8c9c3165138", "score": "0.6066952", "text": "private double computeAverageGrowRate()\r\n\t{\r\n\t\t/*\r\n\...