query
stringlengths
8
1.54M
document
stringlengths
9
312k
negatives
listlengths
19
20
metadata
dict
TODO : put here the extra columns + add their getters and setters & add them to constructor Constructors
public UserMovie() {}
[ "public DBColumnValues() {\n }", "private ColumnMapper () {}", "public GamColumnsVORowImpl() {\n }", "abstract public void initColumnValues();", "private void addMetadata()\n {\n\n addMetadata(ID, ColumnMetadata.named(\"ID\").ofType(Types.INTEGER)); // .withSize(0).withNotNull()); // until d...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
get the Sim Card Serial Number
public static String getSimSerial(Context context,boolean encode) { TelephonyManager telephonyMgr = (TelephonyManager) context.getSystemService(Context.TELEPHONY_SERVICE); String sn = telephonyMgr.getSimSerialNumber(); if(encode) { sn = MD5.md5Base64(sn.getBytes()); } return sn==null? "" : sn; ...
[ "private String getSimSerialNumber() {\n\t\tif (SHOW_LOGS) {\n\t\t\tLog.i(\"LOG_I: (SimCardCheckService)\" + \" getSimSerialNumber() \");\n\t\t}\n\t\tTelephonyManager mTelephoneManager = (TelephonyManager) getSystemService(Context.TELEPHONY_SERVICE);\n\t\tString str = mTelephoneManager.getSimSerialNumber();\n\t\tre...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
// end handlers. /////////////////////////////notify game server/////////////////////////////////////////////////////////
public void notifyGameServerAdjustTimeOffset(int session, int timeOffset) { as.getLogger().debug("notify session " + session + " gs adjust time offset " + timeOffset); tas.sendPacket(session, new Packet.Auction2S.AdjustTimeOffset(timeOffset)); }
[ "@Override\r\n\tpublic void onEventReceived(GameEvent event) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void OnServerDown() {\n\t\tSystem.out.println(name+\" has recieved the Notification\");\r\n\r\n\t}", "@Override\n public void onGameOverMessageReceived(Server server, GameOverMessage message) {\n \n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method generates a port of the total order price that depends on order route and zone of the delivery.
@Override public BigDecimal routeToPrice(OrderDTO orderDTO) { BigDecimal priceFrom = BigDecimal.valueOf(0); BigDecimal priceTo = BigDecimal.valueOf(0); BigDecimal priceResult = BigDecimal.valueOf(0); switch (orderDTO.getRouteFrom().getDeliveryZone()) { case 1: ...
[ "public final double getOrderCost(){\n\t\tdouble cost = 0;\n\t\tint quantity = (int) this.Pizza.get(0);\n\t\t\n\t\tthis.calculateCostPerPizza();\n\t\tcost = (double) this.Pizza.get(5);\n\t\tcost *= quantity;\n\n\t\treturn cost;\n\t}", "public void calculateOrderTotal() {\n\t\tint priceTag = 1;\n\t\tif (type == PR...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
public static void main(String[] args) { try { File file = new File("/home/kliffom//Documenti/test-file.txt"); if(!file.exists()) { file.createNewFile(); } // Così scrive in append FileWriter fw = new FileWriter(file, true); BufferedWriter bw = new BufferedWriter(fw); bw.write("...
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Provides a connection to the database.
public Connection getConnection() throws DbException { return getConfigManagerSql().getConnection(); }
[ "public static Connection getConnection(){\n return db.connection;\n }", "public Connection dbConnection() {\n\t\tString url = \"jdbc:hsqldb:file:\"+props.getProperty(\"prop.database.path\");\n\t\tConnection dbConn = DAOFactory.connection(url, props.getProperty(\"prop.database.user\"), props.getProperty...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
public static int Count(Class item) { int count = 0; try { String sql = "SELECT count(*) FROM "+ item.getField("TABLE_NAME").get(item); PreparedStatement ps = null; Connection conn = null; ResultSet rs = null; conn = DbcpConnectionPool.getConnection(); ps = conn.prepareStatement(sql); rs ...
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Return true if and only if getMaximum () and getMinimum () should return null.
public boolean scalingFlag () { return max_min_disabled; }
[ "public boolean isEmpty(){\n\t\treturn !Lib.isNull(min) && !Lib.isNull(max) && min.cmp(BinaryOp.GREATER, max);\n\t}", "public boolean isNull() {\n\t\treturn maxx < minx;\n\t}", "@SuppressWarnings(\"rawtypes\")\n @Override\n public boolean emptyValueSpace() {\n if (getNumeric()) {\n // re...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Called when the activity is first created.
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE); final Intent myIntent = new Intent(DemoMainActivit...
[ "protected void onCreate() {}", "@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\t\t\n\t\tinitData();\n\t\n\t}", "@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\t\tULog.i(this, \"onCreate() \");\n\t\tinitData();\n\t}", "@Override\n public void onCreate () {\n super.onC...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Convert bytes in a human readable format.
public static String humanReadableBytes(long bytes, boolean iec) { // Are we using xB or xiB? int byteUnit = iec ? 1024 : 1000; float newBytes = bytes; int exp = 0; // Calculate the file size in the best readable way while (newBytes > byteUnit) { newBytes = n...
[ "public static String parseByte(long bytes) {\n //TODO: verify correctness of base1000\n return humanReadableByteCount(bytes, true);\n }", "private static String convertBytes(byte[] array) {\n StringBuffer result = new StringBuffer();\n for (byte b : array) result.append(Integer.toS...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get the artist's disbandment date.
public LocalDate getDisbandmentDate();
[ "public M256Date getDob()\n {\n return dob;\n }", "public String getFdcDate() {\n return fdcDate;\n }", "java.util.Calendar getDepartdate();", "public DateEntreprise getDate(){\r\n return this.d;\r\n }", "public long getDuedate() {\n return duedate_;\n }", "public java...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This interface contains abstract methods for calculatable classes
public interface Calculatable { void sum(String[] args); void difference(String[] args); void multiplicate(String[] args); void division(String[] args); void exponent(String[] args); float getResult(); void clearResult(); }
[ "public interface Calculator {\n public double calculate();\n}", "interface Calculate {\n float calculate(float s, float d, float t);\n }", "public abstract int calculation();", "public interface FiguraCalculable {\n\n public double calcularArea();\n public double calcularPerimetro();\n}", ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
this is main method
public static void main(String[] args) { //following statement print below pattern System.out.println("J a v v a"); System.out.println("J a a v v a a"); System.out.println("J J aaaaa V V aaaaa"); System.out.println("J J a a V a a"); }
[ "public static void implementMain(){\r\n\t\tif(type.equals(\"excel\")){\r\n\t\t\ttry {\r\n\t\t\t\treadExcel(inFile);\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}else readTxt(inFile);\r\n\t\tSystem.out.println(list.size());\r\n\t...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get Particular Test Area With in Cell Value
public WebElement GetCellEditor(int rowIdx,int cellIdx,int editorItx) { try { List<WebElement> rowsCnt = _webTable.findElements(By.tagName("tr")); WebElement particularRow = rowsCnt.get(rowIdx-1); List<WebElement> cellCnt = particularRow.findElements(By.tagName("td")); WebElement particularCell = cellCnt.get(...
[ "String getAreaValueAsString();", "String getFunctionalArea();", "@Test\n public void areaTest() {\n assertEquals(\"Returned incorrect area\", 19.634954085, \n c.getArea(), 0.000000001);\n }", "@Test\n public void testGetArea() {\n assertEquals(\"Returned incorrect area\"...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Created by Ming on 2016/6/16.
public interface IRechargeView extends IBaseView { void createPayment(RechargeResponse.DataBean data); }
[ "@Override\n public void extornar() {\n \n }", "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "private static void EX5() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Don't edit text here.
@Override public void onTextChanged(CharSequence s, int start, int before, int count) { }
[ "public void forbidInput() {\r\n\t\teditText.setEnabled(false);\r\n\t}", "@Override\r\n public String edit() {\n return null;\r\n }", "@Override\n public void afterTextChanged(Editable s) {\n editBoxWithText = true;\n\n }", "public void markEntireText()\n/* ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
returns a uniformly distributed float in the range [min, max)
public static float Float( float min, float max ) { return min + Float(max - min); }
[ "public float random() {\r\n return (float) (min + Math.random() * (max - min));\r\n }", "public static float rand(float min, float max) {\n return new Random().nextInt((int) (max - min + 1)) + min;\n }", "public static float rand(float max, float min) {\n\t\treturn min + (int) (Math...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test whether is possible to find data schema for node which is specified as dirrect subnode of choice (case without CASE key word).
@Test public void nodeSchemasInCaseNotDefinedWithCaseKeyword() throws Exception { final String json = getJson("/nn-to-json/choice/xml/data_case_defined_without_case.xml"); assertTrue(json.contains("cont")); assertTrue(json.contains("\"lf2b\":\"lf2b val\"")); assertTrue(json.contains...
[ "void checkDifferenceBetweenSchemaDescription(TreeNode<Object> actualSchemaTree, TreeNode<Object> schemaToCompareTree);", "public void testHasDataMatrixNodeAsChild() {\n }", "public void caseASchema(ASchema node)\n {\n String name = node.getIdentifier().getText();\n if(fSchemasNames.contains...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
required string c2s_npcId = 1;
public com.google.protobuf.ByteString getC2SNpcIdBytes() { java.lang.Object ref = c2SNpcId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); c2SNpcId_ = b;...
[ "private String createGameID(String string) {\n\treturn null;\r\n}", "public String getHC_AltID2();", "int getNpcNumber();", "public void setSpc2(String spc2) {\r\n\t\tthis.spc2 = spc2;\r\n\t}", "void mo47714a(int i, String str, AbstractC7496c cVar);", "public abstract String mo23549d0(C7150c cVar, C7173i...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the cache directory.
public static File getURICacheDir() { return cachedir; }
[ "public static String getCacheDirectory() {\n return Paths.getHomeDirectory() + File.separator + \"Cache\"\n + File.separator;\n }", "public static File getCacheDirectory() {\n/* 307 */ return getCacheInfo().getCacheDirectory();\n/* */ }", "public static String g...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test case number: 253 /Coverage entropy=2.1112165458116356
@Test(timeout = 4000) public void test253() throws Throwable { ErrorPage errorPage0 = new ErrorPage(); Radio radio0 = new Radio(errorPage0, ",qiaA?B^*", ",qiaA?B^*"); // Undeclared exception! try { radio0.fieldset(); fail("Expecting exception: RuntimeException"); ...
[ "@Test(timeout = 4000)\n public void test147() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0, (CostMatrix) null);\n String string0 = ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get all users in a given studio membership. ListStudioMembers only returns admin members.
java.util.concurrent.Future<ListStudioMembersResult> listStudioMembersAsync(ListStudioMembersRequest listStudioMembersRequest);
[ "@Override\n public Set<ServiceUser> getAllUsers() {\n try {\n Slack slack = Slack.getInstance();\n Set<ServiceUser> users =\n slack\n .methods()\n .usersList(UsersListRequest.builder().token(token).build())\n .getMembers()\n .stream()\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Make sure we can get the root Entity
@Test public void testQueryForRoot() throws SynapseException, JSONException{ QueryRunnerImpl queryRunner = new QueryRunnerImpl(synapse); EntityData root = queryRunner.getRootEntity(); assertNotNull(root); System.out.println(root); assertNotNull(root.getEntityId()); assertNotNull(root.geteTag()); a...
[ "public Entity getRoot() {\n\t\treturn root;\n\t}", "AccessTree getRoot() throws UnexpectedException;", "@Override\n\t\tpublic boolean hasEntity() {\n\t\t\treturn false;\n\t\t}", "@Override\r\n public final _Bean getRoot() {\r\n _Bean result = null;\r\n // parent is always null for Entitie...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Constructors Create a detached DictColumnIndiInfoRecord
public DictColumnIndiInfoRecord() { super(DictColumnIndiInfo.DICT_COLUMN_INDI_INFO); }
[ "public DictIndiRuleColumnInfoRecord() {\n super(DictIndiRuleColumnInfo.DICT_INDI_RULE_COLUMN_INFO);\n }", "public DictColumnRuleInfoRecord() {\n super(DictColumnRuleInfo.DICT_COLUMN_RULE_INFO);\n }", "public ColumnInfo(ColumnInfo other) {\n __isset_bitfield = other.__isset_bitfield;\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
leaveChannel and Destroy the RtcEngine instance
@Override public void onDestroy() { if (engine != null) { engine.leaveChannel(); engine.stopPreview(); } engine = null; super.onDestroy(); handler.post(RtcEngine::destroy); }
[ "public void leaveChannel() {\n bot.sendRawMessage(\"PART \" + getChannel());\n }", "public void shutdown() {\n this.channel.shutdown();\n }", "@Override\n protected void onDestroy() {\n super.onDestroy();\n {//* Release RtcClient\n mRtclient.Leave();\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
seta o valor de dores_pernas_bracos_intensidade
public void setDores_pernas_bracos_intensidade(String pDores_pernas_bracos_intensidade) { this.dores_pernas_bracos_intensidade = pDores_pernas_bracos_intensidade; }
[ "public void setPlazoDias(int value) {\n this.plazoDias = value;\n }", "public void setBrojPodnetih(int value) {\n this.brojPodnetih = value;\n }", "public void setAnnoCorrente(int AnnoCorrente);", "public void setBrojPodnetih(int value) {\n this.brojPodnetih = value;\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Calls Player class constructor with random name from name list and random number of chips. Also sets difficulty of AIPlayer
public AIPlayer(int diff) { // Make new 'empty' player super(); // Give AIPlayer random name and random number of chips name = names[ThreadLocalRandom.current().nextInt(0, names.length)]; chips = 100; difficulty = diff; }
[ "private void constructPlayer() {\n sql.startSQL();\n player.setStrength(sql.getStat(\"strength\"));\n player.setDexterity(sql.getStat(\"dexterity\"));\n player.setMagic(sql.getStat(\"magic\"));\n player.setVitality(sql.getStat(\"vitality\"));\n play...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ If the activity moves into the foreground again, the onResume() method gets called.
@Override public void onResume() { super.onResume(); Log.d(TAG, "onResume"); if (wasRunning) { running = true; } }
[ "@Override\n\tprotected void onResume() {\n\t\tsuper.onResume();\n\t\t\n\t\tactStopped = false;\n\t}", "@Override\r\n\tpublic void onResume(Activity activity) {\n\r\n\t}", "@Override\n\tprotected void onResume()\n\t{\n\t\tflag=true;\n\t\tsuper.onResume();\n\t}", "@Override\n public void onResume() {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override protected void onStart() { super.onStart(); fileService = new FileService(getApplicationContext()); isFromHistory = getIntent().getBooleanExtra( "broadcast-is-from-history", false); // if (!isFromHistory) { // read file readFile(); // save file String saveMessage = getIntent().getExtras...
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test cached vs uncached sequence reads.
@Test public void testCache() { try { String chr = "chr7"; int start = 55054464; int end = start + 10000; byte[] cachedSeq = helper.getSequence(chr, start, end, true); SequenceWrapper.setCacheSequences(false); byte[] uncachedSeq = he...
[ "@Test(enabled = false)\n public void testLazyNonOrdered() {\n try (CloseableIterator<Person> ignored = cacheQuery.iterator()) {\n assertEquals(10, cacheQuery.execute().count().value());\n }\n StaticTestingErrorHandler.assertAllGood(cacheAMachine1, cacheAMachine2);\n }", "@Test\n @In...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "ELLIPSIS" $ANTLR start "ELSE"
public final void mELSE() throws RecognitionException { try { int _type = ELSE; int _channel = DEFAULT_TOKEN_CHANNEL; // ./src/main/java/hero/antlr/Java.g:43:6: ( 'else' ) // ./src/main/java/hero/antlr/Java.g:43:8: 'else' { match("el...
[ "public final void mELSE() throws RecognitionException {\n\t\ttry {\n\t\t\tint _type = ELSE;\n\t\t\tint _channel = DEFAULT_TOKEN_CHANNEL;\n\t\t\t// C:\\\\Users\\\\darfores\\\\git\\\\asup_0_9_0\\\\org.smeup.sys.db.syntax.ibmi\\\\src\\\\org\\\\smeup\\\\sys\\\\db\\\\syntax\\\\ibmi\\\\parser\\\\ddl\\\\DDL.g:255:6: ( E ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Add page encoding data for JSP pages given a list of patterns.
public void addPageEncoding(LinkedList<String> patterns, String encoding, boolean isxml) { for (String pattern: patterns) { addPageEncoding(pattern, encoding, isxml); } }
[ "public void setContentTypePatterns(Map<String, List<String>> patterns) {\n\t\tfor(String contentType:patterns.keySet()) {\n\t\t\tif(!contentTypePatterns.containsKey(contentType)) {\n\t\t\t\tcontentTypePatterns.put(contentType, new LinkedList<Pattern>());\n\t\t\t}\n\t\t\tList<Pattern> l = contentTypePatterns.get(co...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
creates tables in DB
public void createTables() { Connection connection = new ConnectionDb().getConnection(); try { Statement statement = connection.createStatement(); String sql = "CREATE TABLE IF NOT EXISTS weather(date VARCHAR(50), clouds VARCHAR(50), id INT, humidity DOUBLE, pressure DOUBLE, tem...
[ "public void createDatabase() {\n\t\ttry {\n\t\t\tConnection con = DriverManager.getConnection(url);\n\t\t\tcon.setAutoCommit(false);\n\t\t\tStatement stm = con.createStatement();\n\t\t\tcreateUserTable(stm);\n\t\t\tcreateSignatureTable(stm);\n\t\t\tcreateUserSignatureTable(stm);\n\t\t\tcreateFieldTable(stm);\t\n\t...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
can replace this with a login logic, or user preference logic
public static void checkUserStatus(MyCallback b) { b.result(true); }
[ "private static void login() {\n\t\t\n\t}", "private void CheckLoggedInOrNot()\n {\n CallDBForAccountUID();\n }", "public void checkLogin() {\n \t\tif(getCurrentUser() == null){\n \t\t\tgoToLoginActivity();\n \t\t} else{\n \t\t\tmodel.setCurrentPlayer();//TODO should this be removed after we have c...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Not implemented as yet.
public int insert(SiteCatalogEntry entry) throws SiteCatalogException { throw new UnsupportedOperationException("Not supported yet."); }
[ "@Override\n }", "@Override\n public void extornar() {\n \n }", "protected void method_5557() {}", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "protected void mo4791d() {\n }", "private static void EX5() {\n\t\t\r\n\t}", "@Override\n\t\tprotected void ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ update Position und Kollision
public void update(Ball b) { // update Position y = Game.ensureRange(y + vel, 0, Game.HEIGHT - height); // Kollisionen int ballY = b.getY(); int ballX = b.getX(); if (left) { if (ballX <= width + x && ballY + Ball.SIZE >= y && ballY <= y + height) b.changeXDir(); } else { if (ballX...
[ "public void updatePosition() {\n\t\ttransform.setPosition(transform.getPosition().add(new Vector3f(velocity).mul(Voxelmine.getDeltaTime())));\n\t}", "public void updatePosition() {\n\t\tx += velX;\n\t\ty += velY;\n\t}", "public void updatePosition() {\r\n\t\tposition[0] += velocity[0];\r\n\t\tposition[1] += ve...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public void run() { for(int i=0; i<10 ; i++) { System.out.println("\t\tPONG"); try { Thread.sleep(400); } catch (InterruptedException e) { // TODO Auto-generated catch block e.printStackTrace(); } } }
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method checks whether the range specified for category attribute is a valid subset of range specified for its attribute.
public static void checkRangeAgainstAttributeValueRange(AttributeInterface attribute, Map<String, Object> rules) throws DynamicExtensionsSystemException, ParseException { if (attribute == null) { throw new DynamicExtensionsSystemException(ApplicationProperties .getValue(CategoryConstants.CRE...
[ "public boolean contains (AttributeRange range) {\n if (range.isContradictory())\n return true;\n if (contradict)\n return false;\n if (!(range instanceof DiscreteGroupRange))\n return false;\n\n DiscreteGroupRange r = (DiscreteGroupRange) range;\n\n // since there is no a priori infor...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sends list of all tickets from a specific user to the client
public void sendAllCustumerTickets() throws IOException, ClassNotFoundException, IllegalBlockSizeException, BadPaddingException{ SealedObject ting = (SealedObject) oin.readObject(); Customer cu = encryp.deccryptCustumer(ting); // Customer cu = (Customer) oin.readObject(); List<Ti...
[ "private void handleSendAllUsers(){\n JSONObject sendToClient = new JSONObject();\n JSONArray allUsers = GameHandler.getUsers();\n sendToClient.put(\"type\", \"usersList\");\n sendToClient.put(\"users\", allUsers);\n this.ps.println(sendToClient.toJSONString());\n }", "public...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method sets the value of the database column FMSPAYPLANDET_JOINT_CIF.CHEQUE_NUMBER
public void setCHEQUE_NUMBER(String CHEQUE_NUMBER) { this.CHEQUE_NUMBER = CHEQUE_NUMBER == null ? null : CHEQUE_NUMBER.trim(); }
[ "public void setNPF_CIF(BigDecimal NPF_CIF) {\r\n this.NPF_CIF = NPF_CIF;\r\n }", "private void setFclContainerNumber() throws Exception {\n PreparedStatement bsStatement = null;\n ResultSet bsResult = null;\n try {\n String askfld = data.getString(\"askfld\");\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Method which provide the actions when view created
@Override public void onCreateView() { }
[ "protected void setupView() {}", "@Override\r\n public void createActions() {\r\n createActionRecord();\r\n createActionCancel();\r\n\r\n }", "protected void creatActions () {\n\t\t\n\t}", "protected void createActions() {\n\t\t\n\t\tfCopyToClipboardAction = new AsyncCopyTableRenderingActi...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
optional int32 Type = 7;
public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000040); type_ = 0; onChanged(); return this; }
[ "default int getType() {\n return INVALID_TYPE;\n }", "public void setType(int value)\r\n/* 40: */ {\r\n/* 41: 90 */ this.type = value;\r\n/* 42: */ }", "public Integer getType();", "public int getType()\r\n{return -1;}", "public int getRequiredTyp...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Event handler for inq2A_rb1 ("No" button):
public void intakeQ2ARB1Handler(View view) { whoTextBox.setVisibility(View.INVISIBLE); whoTextBoxInstructions.setVisibility(View.INVISIBLE); }
[ "public void clickedNo() {\n\t\t\n\t\t// Get rid of Yes/No buttons now that they have been clicked\n\t\tgetObject(\"yes\").setVisible(false);\n\t\tgetObject(\"no\").setVisible(false);\n\t\t\n\t\tif (gameState == 5) {\n setText(\"Okay, your turn is over.\");\n\t\t\t\n\t\t\tendPlayerTurn();\n\t\t} // Answ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Main method to run the program
public static void main(String args[]) { /* Printing out the first argument */ System.out.println( "You entered:::"+args[0]); }
[ "public static void main (String[]args){//Start of method main.\r\n launch(args);\r\n }", "public static void main (String [] args ) {\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t}", "public static void main(String [] args) {\n\t \n\t \n\t \n\t \n\t \n\t \n\t \n\t \n\t \n\t \n\t \n\t \n\t \n\t \n\t \n\t \n\t \n\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ access modifiers changed from: protected
public void setFollowButtonStyle(int i) { if (i == -1) { this.f78313a.setPadding(0, 0, 0, 0); this.f78313a.setGravity(17); this.f78313a.setCompoundDrawables(null, null, null, null); return; } Drawable drawable = getContext().getResources().getDrawa...
[ "@Override\n }", "protected void method_5557() {}", "@Override\n public void extornar() {\n \n }", "@Override\r\n public void publicando() {\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "pro...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
recursive solution using array (using the fact that max levels is 10^4)
public int maxLevelSum_v4(TreeNode root) { int[] sums = new int[(int) Math.pow(10, 4) + 1]; helper(sums, root, 1); int maxLevel = 1; for (int level = 1; level < sums.length; level++) { if (sums[maxLevel] < sums[level]) { maxLevel = level; } } return maxLevel; }
[ "public boolean solve() {\n // read and sort values (do a quick return if there's just a single\n // element)\n for (int i1 = 0; i1 < inVals.length; i1++) {\n inVals[i1] = in.nextInt();\n }\n \n if (n == 1) {\n levels = 1;\n aLevels = new int[1][1];\n aLevels[0][0] = inVals[0];\n return true;\n }\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Method to perform all out attack from a country to another country till either the attacking country has only 1 army or till the defending country has no armies remaining.
public void performAllOutAttack(final Country fromCountry, final Country toCountry, final Player player, final List<Country> countriesOwnedByPlayer){ int attackingDiceRoll = 0; PhaseViewController.getInstance().addAction("\nAttacking country: "+fromCountry.getNameOfCountry()); PhaseViewControlle...
[ "public void attack(String attack_country, int i, List<List<String>> country_per_player, File file, String defend_country,ArrayList<String> country_list,int attacker_armies,int defender_armies,int attacker_armies1,int defender_armies1,HashMap<String, Integer> army_per_country,HashMap<String, Integer> cards,HashMap<...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Compares source resources to destination files to see if they should be copied.
protected Map<Resource, String[]> scan(final Resource[] fromResources, final File toDir) { writeline("/home/ubuntu/results/coverage/Copy/Copy_2_10.coverage", "e0b3642c-50ca-46fa-8c7e-855d58ae8ba5"); return buildMap(fromResources, toDir, getMapper()); }
[ "boolean copy (final File srcFile, final File destFile) {\r\n\tif (!check (srcFile, false)) return false;\r\n\tif (srcFile.isFile ()) {\r\n\t\tFileInputStream in = null;\r\n\t\tFileOutputStream out = null;\r\n\t\ttry {\r\n\t\t\tin = new FileInputStream (srcFile);\r\n\t\t\tout = new FileOutputStream (destFile);\r\n\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public Artikel berechne() { return null; }
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
user remove unwanted food
@RequestMapping(value="/user/user-unwanted-food/remove", method=RequestMethod.POST) public String removeUserUnwantedFood(HttpServletRequest request){ User user = (User) request.getSession().getAttribute("user"); String unwantedFoodId = request.getParameter("unwantedFoodId"); for (int i=0;i<user.getUnwantedFoo...
[ "public void removeFood() {\r\n\r\n\t\tSystem.out.println(\"What food would you like to remove from the Promotion Package?\");\r\n\t\tint i=0;\r\n\t\tfor (Food fd : foodSet)\r\n\t\t\tSystem.out.println(i++ + \": \" + fd.getMenuName());\r\n \tint index = ScannerExt.nextInt(\" Enter the number of your choice: \...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
CM48184 Set the search value of NBANK.
public void setBank(int nbank) { setValue(NBANK, nbank); }
[ "public void setLBR_NumberInBank (String LBR_NumberInBank);", "public void setNbankCollect()\n\t{\n\t\tsetCollect(_Prefix + BankSelect.NBANK.toString(), \"\");\n\t}", "public void setBANKN(java.lang.String BANKN) {\n this.BANKN = BANKN;\n }", "public void setBankAccountNo(String bankAccountNo);", ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override protected Void doInBackground(Integer... params) { try { Jsoup.connect("http://www.dek-d.com/" + niyayTable.get(listItemName)[2]).cookies(sessionId).timeout(3000).get(); } catch (IOException e) { //Toast.ma...
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Push element x onto stack.
public void push(int x) { if(q1.isEmpty()){ q1.add(x); for(int i = 0;i < q2.size();i ++){ q1.add(q2.poll()); } }else { q2.add(x); for(int i = 0;i < q1.size();i ++){ q2.add(q1.poll()); } ...
[ "public void push(int x) {\n stack.add(x);\n }", "public void push(int x) {\n inputStack.push(x);\n }", "public void push(int x) {\n size++;\n stack.push(x);\n }", "public void push(int x) {\n inStack[++inTop] = x;\n }", "@SuppressWarnings(\"u...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
DECFSZ 00 1011 dfff ffff
public static void asm_decfsz(Integer akt_Befehl, Prozessor cpu) { Integer f = getOpcodeFromToBit(akt_Befehl, 0, 6); // zum speichern PIC_Logger.logger.info("[DECFSZ]: Speicheradresse=" + Integer.toHexString(f)); PIC_Logger.logger.info("[DECFSZ]: Speicherzelleninhalt=" + Integer.toHexString(cpu.getSpeic...
[ "int getDword() {\n return ((payload[offset++] & 0xFF) << 24) | \n ((payload[offset++] & 0xFF) << 16) | \n ((payload[offset++] & 0xFF) << 8) | \n (payload[offset++] & 0xFF);\n }", "public void parserDta(byte[] msg) {\n HR = msg[4] & 0xff;\n SP = (...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the active powerup
PowerupType getActivePowerup() { return this.activePowerup; }
[ "public int getPowerUpType() {\n return currentPowerUp;\n }", "public List<PowerUp> getActivatedPowerUps() {\n\t\treturn activatedPowerUps;\n\t}", "public void pickPowerUp() {\n\n\t}", "PowerState getCurrPowerState();", "public void powerUp() {\r\n\t\tenable();\r\n\t\trest();\r\n\r\n\t\tif (ear !=...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
optional string key = 1;
public com.google.protobuf.ByteString getKeyBytes() { java.lang.Object ref = key_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); key_ = b; retu...
[ "public void setKey(String key1) {\r\n this.key = key1;\r\n }", "public String getKey () {\n return key; \n }", "int getKey1();", "@Override\n public void setKey(String str) {\n }", "public String getKey2AsString () ;", "@NotNull\n String makeKey();", "public void setValue(String key) {...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "SUPPORT" $ANTLR start "CLOSURES"
public final void mCLOSURES() throws RecognitionException { try { int _type = CLOSURES; int _channel = DEFAULT_TOKEN_CHANNEL; // src/bigraphspace/parser/antlr/BigraphTerm.g:29:10: ( 'closures' ) // src/bigraphspace/parser/antlr/BigraphTerm.g:29:12: 'closures'...
[ "@Converted(kind = Converted.Kind.MANUAL_COMPILATION,\n source = \"${LLVM_SRC}/llvm/tools/clang/lib/Sema/SemaDeclObjC.cpp\", line = 1315,\n FQN=\"clang::Sema::actOnObjCTypeArgsOrProtocolQualifiers\", NM=\"_ZN5clang4Sema37actOnObjCTypeArgsOrProtocolQualifiersEPNS_5ScopeENS_9OpaquePtrINS_8QualTypeEEENS_14SourceLocati...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
required string app_version_regix = 7;
com.google.protobuf.ByteString getAppVersionRegixBytes();
[ "public @AAFString String getApplicationVersionString();", "public int getPackageVersionInt(){\n return 1;\n }", "String getServerVersion() {\n/* 1058 */ return this.serverVersion;\n/* */ }", "int getClientPackageVersion();", "public void m58406a(String str) {\n m58410a(\"bnc_app...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method returns the value of the database column dev_op_log.auto_stop
public Boolean getAutoStop() { return autoStop; }
[ "public int getStop() {\n\t\treturn this.stop_interval;\n\t}", "public String stop() {\n return this.stop;\n }", "public final long mo96161a() {\n Long l = (Long) m122708a(\"auto_stop_time\");\n if (l == null) {\n return 0;\n }\n return l.longValue();\n }", ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public Object visit(ASTAssignmentStatement node, Object data) { return node.childrenAccept(this, data); }
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
detect long click on group(parent) item and return true to prevent other listeners from firing
@Override public boolean onItemLongClick(AdapterView<?> parent, View view, final int position, long id) { if (ExpandableListView.getPackedPositionType(id) == ExpandableListView.PACKED_POSITION_TYPE_GROUP) { view = LayoutInflater.from(GarageActivity.this).inflate(R.layout....
[ "@Override\n public boolean onGroupClick(ExpandableListView parent, View v,\n int groupPosition, long id) {\n Toast.makeText(getApplicationContext(), \"Group is Clicked\", Toast.LENGTH_LONG).show();\n return false;\n }", "@...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Look up a contact's name by phone number
public static String getContactName(Context context, String phoneNumber) { ContentResolver cr = context.getContentResolver(); Uri uri = Uri.withAppendedPath(ContactsContract.PhoneLookup.CONTENT_FILTER_URI, Uri.encode(phoneNumber)); Cursor cursor = cr.query(uri, new String[]{ContactsContract.Phon...
[ "public String lookup(String name)\n\t{\n\t\tfor(Contact c : contacts)\n\t\t\tif(c.getName().equals(name))\n\t\t\t\treturn c.getPhoneNumber();\n\t\treturn null;\n\t}", "public String getDisplayNameByNumber(String number) {\n Uri uri = Uri.withAppendedPath(ContactsContract.PhoneLookup.CONTENT_FILTER_URI, Ur...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ JADX WARNING: Removed duplicated region for block: B:14:0x004f / JADX WARNING: Removed duplicated region for block: B:14:0x004f / Code decompiled incorrectly, please refer to instructions dump. / renamed from: a
public static void m89795a(Context context, HashMap<String, String> hashMap) { boolean z; boolean z2 = true; AppMethodBeat.m2504i(85377); if (ASD == null) { ASD = new C46946n(context); } if (!XWalkEnvironment.isTestVersion(XWalkEnvironment.getInstalledNewstVer...
[ "protected synchronized void a(int r19, byte[] r20, com.tencent.bugly.beta.upgrade.a r21, boolean r22, java.lang.String r23) {\n /*\n r18 = this;\n monitor-enter(r18);\n r1 = com.tencent.bugly.crashreport.common.info.a.b();\t Catch:{ all -> 0x0255 }\n r2 = com.tencent.bugly.beta.g...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Applies the controls to the FXML autoFillButton button Applies a set of values to the text field based on a random number generated Use this to autofill a random customer for testing purposes comment out the autoFill button in the customerAdd.FXML to remove the button / comment this button out in the customerAdd.FXML i...
@FXML private void autoFillButton() { //autofill fields based on random number //print out number generated if no positive comparison is met switch (getRandomNumber(1, 5)) { case 1 -> { cAddNameField.setText("Jack Nicholson"); cAddAddressFie...
[ "@FXML\n private void applyButton() throws IOException, ClassNotFoundException, SQLException\n {\n String username = textFieldUsername.getText();\n String password = textFieldPassword.getText();\n String userID = textFieldUserID.getText();\n String email = textFieldEmail.getText();...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Created by xuning on 2018/6/14.
public interface SysLogService { public void saveDeptLog(SysDept before, SysDept after); public void saveUserLog(SysUser before, SysUser after) ; public void saveAclModuleLog(SysAclModule before, SysAclModule after) ; public void saveAclLog(SysAcl before, SysAcl after); public void saveRoleLog(...
[ "@Override\n public void extornar() {\n \n }", "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "private static void EX5() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n public int utilite() {\n ret...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Makes the sprite visible and user interactable
public void setSpriteVisibilityAndInput() { userInputIsDisabled = false; for (ImageView vineComponent : vineComponents) { vineComponent.setVisibility(View.VISIBLE); } }
[ "public void enable() {\n\t\t//mSprite.setVisible( true );\n\t\tvisible = true;\t// will allow stage to call draw on this\n\t\tmBody.setActive( true );\n\t\t\n\t}", "public void make_Sprite(){\n\t\tsprite = true;\n\t}", "public void updateSprite() {\r\n\t\tthis.controller.updateSprite();\r\n\t}", "@Override\r...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Student stu1 = new Student();
public static void main(String[] args){ Customer c = new Customer(); /* System.out.println(c.age); c.age = 10; System.out.println(c.age); stu1.id=100; stu1.name="张三"; stu1.age=19; stu1.sex=false; stu1.adder="北京"; System.out.println("id:" +st...
[ "public Student() {\r\n }", "public Student(){\n\t \n }", "Student()\n\t{ // start of constructor\n\n\t}", "public Student (Student O){\n name=O.name;\n city=O.city;\n cgpa=O.cgpa;\n }", "public student()\n {\n this.iD = 0;\n }", "public Student() {\n\t\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Check arguments length value
public static void main(String[] args) throws Exception{ if(args.length == 0){ System.out.println("Enter topic name"); return; } System.out.println("Topic passed"); //Assign topicName to string variable String topicName = args[0].toString(); Syst...
[ "@Override\r\n public void checkNumArgs() throws InvalidArgumentSizeException {\n\r\n }", "protected boolean checkArgLength(CommandSender sender, String[] args, int low, int high) {\n\t\tif(args.length < low || args.length > high) {\n\t\t\tsender.sendMessage(ChatColor.RED + \"Wrong number of arguments; expected...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
how much is allocated
long size();
[ "long getTotalCapacity();", "long getFreeSize();", "public long getMemoryAllocated();", "public final synchronized int getSize() { return free.size() + used.size(); }", "int getAllocatedResourcesCount();", "int memSize() {\n return BASE_NODE_SIZE + 3 * 4;\n }", "public long getSmallAllocations...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the type value for this RemoteAvatar.
public java.lang.String getType() { return type; }
[ "public String getType() throws RemoteException{\n\t\treturn this.type;\n\t}", "@javax.annotation.Nullable\n @Schema(description = \"Type of the gif. By default, this is almost always gif\")\n @JsonProperty(JSON_PROPERTY_TYPE)\n @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)\n public TypeEnum ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
check for required fields
public void validate() throws TException { }
[ "boolean hasRequiredFields();", "protected boolean _validateRequired(){\n\n Object value;\n Method method;\n boolean isValid = true;\n boolean fieldInvalid;\n String fieldName;\n for (DataBaseField field : _fields.values()) {\n fieldInvalid = false;\n\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public void execute(GameObject gameObject) { }
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
El numero de la direccion.
public int getnDireccion() { return nDireccion; }
[ "public void setDireccion(int x) {\n direccion = x;\n }", "public void setDirecao(int direcao){\n \tthis.direcao = obterDirecao(direcao);\n }", "public int getDireccion(){\r\n return direccion;\r\n }", "public int getDir(){\n String strDir = (String)dir.getSelectedIt...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the password from the account
public String getPassword() { return password; }
[ "public static String getPassword() {\n\t\tMyLogger.info(\"Retrieving PASSWORD from Account\");\n\t\treturn PASSWORD;\n\t}", "public final String getAccountPassword() {\n\t\tString line = null;\n\t\tString[] splitAccountLine;\n\t\tString password = null;\n\t\t\n\t\ttry {\n\t\t\tline = br.readLine();\n\t\t\tsplitA...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates new form M6_act1_ModificarAlumne
public M6_act1_ModificarAlumne() throws SQLException, ClassNotFoundException { this.conection = connect.conexioJDBC(); initComponents(); mostrarTabla(); }
[ "public void newPersona() {\n\t\tcleanForm();\n\t\tthis.action = Action.NEW;\n\t\tthis.stateNewEdit();\n\t\tthis.addMessage(\"Hice click en Nuevo\");\n\t}", "public void CrearNew(ActionEvent e) {\n List<Departamento> R1 = ejbFacade.existeDeptoID(super.getSelected().getIddepartamento());\n List<Depar...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Establece el dinero que el equipo dispondra para fichajes.
public final void setDineroDisponible(Integer dineroDisponible) { this.dineroDisponible = dineroDisponible; }
[ "public void recibirArchivo(){\n try {\n byte[] buffer = new byte[1024*5];\n for (int e = 0; (e=dis.read(buffer,0,buffer.length)) != -1;buffer=new byte[1024*100]) {\n rafarchivo.write(buffer,0, e);\n for(Destination d:destinos)d.sendBytes(buffer, e);\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Stuff to do on a separate thread
@Override protected Void doInBackground(Void... v) { CpuStateMonitor monitor = cpuSpyApp.getCpuStateMonitor(); try { monitor.updateStates(); } catch (CpuStateMonitor.CpuStateMonitorException e) { Log.e(TAG, "FrequencyTable: Problem getting CPU ...
[ "@Override\n\t\tpublic void run() {\n\t\t\tLooper.prepare();\n\t\t\t// Get a message object to be sent to our handler.\n\t\t\tMessage myMsg = new Message();\n\n\t\t\tmyMsg.what = GUI_THREADING;\n\t\t\tsetonMap(type, myMsg);\n\n\t\t\t// Set the data into our handler message.\n\t\t\tmyMsg.what = GUI_COMPLETE;\n\t\t\t...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TreeNode root = new TreeNode(1); root.right = new TreeNode(2); root.right.left = new TreeNode(3); TreeNode root = new TreeNode(1); root.left = new TreeNode(2); root.right = new TreeNode(3); root.left.left = new TreeNode(4); root.left.right = new TreeNode(5); root.left.right.left = new TreeNode(6); root.left.right.right...
public static void main(String[] args) { TreeNode root = new TreeNode(1); List<Integer> res = inorderTraversal(root); System.out.println(res); }
[ "public static void main(String[] args) {\n\n TreeNode root = new TreeNode(3);\n TreeNode val9 = new TreeNode(9);\n TreeNode val20 = new TreeNode(20);\n TreeNode val15 = new TreeNode(15);\n TreeNode val7 = new TreeNode(7);\n\n root.left = val9;\n root.right = val20;\n val20.left = val15;\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gives access to the identifier value of the element.
public String getResourceIdentifier() { return mResourceIdentifier; }
[ "public Integer getIdentifier();", "public int getId() {\n return element.getId();\n }", "public String getIdentifer() {\r\n\t\treturn this.identifier;\r\n }", "public String getIdent()\n\t{\n\t\tString ident = \"\";\n\t\tString xpath = basePath;\n\t\tList list = this.selectNodes(xpath);\n\t\tif(...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
String ss = System.getProperty("user.dir");
@Test public void assertionExample() throws IOException { LandingPage lp = new LandingPage(driver); Assert.assertEquals(lp.featuredCorses.getText(),"FEATURED COURSES123"); lp.signInButton.click(); log.info("Assertion test successfully passed"); }
[ "public static String getUserDir() {\n\n return System.getProperty( \"user.dir\" );\n }", "public static File getUserDirectory() {\n String dir = System.getProperty(\"user.dir\");\n return dir == null ? null : new File(System.getProperty(\"user.dir\"));\n }", "public String userWorking() { retu...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
getting values from selected ListItem
@Override public void onItemClick(AdapterView<?> parent, View view, int position, long id) { selectedChal = chalListIn.getChal(position); int chalID = selectedChal.getChalID(); // Starting single contact activity Intent in = new Intent(getApplicationContext(), MakeChalConfirmation.class);...
[ "@SuppressWarnings(\"unchecked\")\n\tpublic List<String> GetPickListValues() {\t\t\n\t\t\n\t\tList<String> values = new ArrayList<String>();\n\t\t\n\t\ttry {\n\t\t\t\n\t\t\tList<WebElement> elements = driver.findElementsByXPath(\".//android.widget.ListView[@resource-id='android:id/list']/android.widget.LinearLayout...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Writes an Identity in the DB
@Override public void write(Identity identity) { logger.info("Writing Identiy: " + identity.getFirstName() + " " + identity.getLastName() + " : " + identity.getEmail()); Session session = factory.openSession(); Transaction transaction = session.beginTransaction(); session.saveOrUpdate(identity); ...
[ "private void insert(){\n int rc;\n \n try {\n for (int i = 0; i < identity.getSize(); i++){\n OysterIdentityRecord o = identity.getOysterIdentityRecord(i);\n pstmt.setString(1, identity.getOysterID());\n \n for (Iterator<In...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the head flag of the specific constituent node.
abstract protected int getHeadFlag(CTNode child);
[ "public boolean isHead() { return (nodeIndex == 0); }", "public AbstractNode getHead(){\n\t\treturn this.head;\n\t}", "public Node getHead() {\n\t\t\treturn head;\n\t\t}", "public Polynomial.Node getHeadNode(){\n return this.headNode;\n }", "@Specialization\n public ProloGraalBoolean returnHead(...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
this function serves to change the input text for an "other" button, and store that as the item
protected void changeclient3(View view) { Intent intent = new Intent(this, clientedit.class); //initialize database DBHandler db = new DBHandler(this); //write all database to list called "clients" List<ClientFormat> clients = db.getLastClients(offset); id = clients.get(2...
[ "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\ttexto += btn2.getText();\n\t\t\t\ttextField.setText(texto);\n\t\t\t}", "private void addPressed(){\r\n\t\tsetPresentsDefaultValue(false);\r\n\t\tString[] newInputObject = getNewInputObject();\r\n\t\tif (newInputObject != null) {\r\n\t\t\tTableIte...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
gets the blue color found by the color sensor
public int blue(){ return colorSensor.blue(); }
[ "public double getBlueFromhHex (int color) {\n\t\t\n\t\treturn (color & 0xFF) / 255.0;\n\t}", "public int getColorB() {\n return colorB_;\n }", "public int getBlue(int x, int y){\n\treturn image.getRGB(x,y) & 0xff;\n }", "public int getColorB() {\n return colorB_;\n }", "publi...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Add new tags for a workActivity. Adds a tag to an existing workActivity.
public ApiResponse<Void> addWorkActivityTagWithHttpInfo(Integer workActivityId, String workActivityTag) throws ApiException { com.squareup.okhttp.Call call = addWorkActivityTagValidateBeforeCall(workActivityId, workActivityTag, null, null); return apiClient.execute(call); }
[ "public void addTag(String tag) {\n // Put up the logic here to add a tag to this task.\n }", "public void addTag(String tag, String value){\n tags.put(tag, value);\n }", "public void addTag(String tag) {\n this.tagList.add(tag);\n }", "void addTag(Tag tag) throws DuplicateTagException...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Clear out all HTML associated with the widget
public void clear() { browser.setText(""); }
[ "public void resetWidget();", "private void clearWidgets(){\n edName.setText(null);\n rgSport.clearCheck();\n }", "@Override\n\tpublic void clear() {\n\t\tgetWebElement().clear();\n\n\t}", "void cleanContentPanel();", "public void clear()\r\n\t{\r\n\t\tint choice = 0;\r\n\t\tchoice = JOptio...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Instantiates a new snowflake application
public SnowflakeQueueApp() { this.lines = new LinkedListQueue<Line>(); this.done = new SinglyLinkedList<Line>(); setTitle("Fractal Snowflake"); setSize(400, 400); addWindowListener(new WindowAdapter() { @Override public void windowClosing(WindowEvent event) { System.exit(0); } }); }
[ "public void createApplication() {\n }", "T createInstance(SimpleApplication application);", "public static void main(String[] args) {\n application app = new application();\n }", "public static void main(String[] args) throws ApplicationAlreadyExistsException\r\n {\r\n \tInitializeApplicatio...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Definitions used for interacting with the Keypadtable
public interface KeyPad { /** * Data row MIME type */ static final String MIME_TYPE = "aef-keypad"; /** * Path segment */ static final String KEYPADS_PATH = "keypad"; /** * Content URI ...
[ "private void handleKeyPad() {\n keyPad.getQ().getButton().setOnAction(event -> keyPad.setDisplayText(keyPad.getDisplayText().concat(keyPad.getQ().getValue())));\n keyPad.getW().getButton().setOnAction(event -> keyPad.setDisplayText(keyPad.getDisplayText().concat(keyPad.getW().getValue())));\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
updating the values when user logged in
@RequestMapping("/updatecart") public String updatethecart(){ User user = (User)SecurityContextHolder.getContext().getAuthentication().getPrincipal(); String username = user.getUsername(); Iterator<Product> il = norepeat.iterator(); while(il.hasNext()){ Product s = (Product)il.next();...
[ "public void updateWhenLoggedIn() {\n // When there is no user logged in, there is no information to display, so show the user a login button and hide the views\n TextView UserInformationView = findViewById(R.id.UserInformationView);\n TextView UserFavoritesView = findViewById(R.id.UserFavorite...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test get answer for a forum API.
private static void testGetAnswer() { JSONObject request = new JSONObject(); Gson gson = new Gson(); try { request.put("type", "get_answer"); request.put("forum_title", "First Forum"); request.put("answer_id", 0); System.out.println("Request = " + ...
[ "private static void testGetAnswer() {\n JSONObject request = new JSONObject();\n Gson gson = new Gson();\n try {\n request.put(\"type\", \"get_answer\");\n request.put(\"forum_title\", \"First Forum\");\n System.out.println(\"Request = \" + request.toString());...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
public static void main(String[] args) { }
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Si la posicion del drone es igual a la posicion del victimario
@Override public boolean isGoalState (AgentState agentState) { if (((EstadoDrone)agentState).getvictimario() == true) { return true;// OBJETIVO CUMPLIDO: VICTIMARIO IDENTIFICADO! } //Si se recorrieron todas las esquinas //(Aunque no se haya encontrado el victima...
[ "boolean hasAttackerxPosition();", "private int checkMove(int[] from, int[] to) {\n if (gamePanel.getBoard()[to[1]][to[0]] == 0) { //eğer bulunduğu yer d\n if (gamePanel.getBoard()[from[1]][from[0]] == 1 && to[1] > from[1]) {\n return 0;\n }\n \n i...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates new form ModalNuevoUsuario1
public ModalNuevoUsuario() { initComponents(); User Conexion = new User(); int tipoU = CurrentUser.idTipoUsuario; User CargarUsuario = new User(); if (tipoU == 1) { cbxTipoUsuarioModal.setModel(CargarUsuario.obtenerTipoUsuarioSuperAdministrador()); cbxEsta...
[ "public Crear_Usuario(java.awt.Frame parent, boolean modal, Usuario usuario) {\n super(parent, modal);\n initComponents();\n this.setLocationRelativeTo(null);\n if (usuario != null) {\n this.usuario = usuario;\n cargarUsuario();\n }\n }", "public GUIMues...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
write a terrain map to a file
public void writeTMap(String fname) { try { FileWriter writer = new FileWriter(fname, true); writer.write(mno + "\n"); writer.write(width + " "); writer.write(depth + "\n"); writer.write(height + "\n"); for (int i = 0; i < depth; ++i) { ...
[ "public void writeFile(){\n try {\n\n FileWriter myWriter = new FileWriter(\"Maps.txt\");\n myWriter.write(\"Rows=\" + Integer.toString(rowMax)+\"\\n\");\n myWriter.write(\"Columns=\"+ Integer.toString(columnMax)+\"\\n\");\n myWriter.write(\"Black Position:\\n\");\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
konstrukor klase PregledDnevnika u kojem se postavlja broj za stranicenje iz konfiguracije
public PregledDnevnika() { BP_Konfiguracija bpk = (BP_Konfiguracija) SlusacAplikacije.getKontekst().getAttribute("BP_Konfig"); brojPodatakaZaPrikaz = Integer.valueOf(bpk.getTableNumRowsToShow()); }
[ "public void ucitajKonfiguraciju() {\n try {\n Class.forName(driver);\n } catch (ClassNotFoundException e) {\n System.out.println(\"Nema prikladnog drivera\" + e);\n }\n try (Connection conn = DriverManager.getConnection(baza, korisnik, lozinka)) {\n if (...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the SQL for altering the database schema so that it match the given model.
public String getAlterTablesSql(Database desiredDb) throws DatabaseOperationException;
[ "public String modifySql(String sql, Database database) {\n if (database instanceof MySQLDatabase) {\r\n sql += MYSQL_MODIFICATION; \r\n }\r\n \r\n return sql;\r\n }", "public String getUpdateQuery() {\n\t\t\n\t\tStringBuilder sql = new StringBuilder(\"UPDATE \" + mModelName + \" SET \");\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method will mutate the list of scores.
public void setScores(ArrayList<Integer> scores) { this.scores = scores; }
[ "private void updateScore(Dice value) {\r\n scoreList.add(value);\r\n for (Dice n : scoreList){\r\n\r\n }\r\n }", "public void setScoreList(Set<ScoresNew> scoreList) {\n\t\tthis.scoreList = scoreList;\n\t}", "public void update()\n {\n score.addToScore();\n }", "@Overr...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Auto generated setter method
public void setPrimaryFilter(FilterType param) { localPrimaryFilterTracker = param != null; this.localPrimaryFilter = param; }
[ "abstract protected void set(Object value);", "@Override\n protected void doSetValue(Object value) {\n super.doSetValue(value);\n }", "@Override\n \t\t@SuppressWarnings(\"unchecked\")\n \t\tpublic Object setValue(Object value) {\n \t\t\twrite();\n \t\t\treturn me.setValue( value );\n \t\t}", ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
It changes the quantity of a product in user's cart
public void updateCart(Cart cart,int userId,int prodId) throws CartException,ProductException,UserException { User user = userService.getUserById(userId); Product product = productService.getProductById(prodId); cart.setUser(user); cart.setProduct(product); cart.setModified(DateU...
[ "public void setQuantity (int qty, String productId) {\n int quantity = 0; \n int index = 0;\n \n /* Check if the item is already present. If yes, just increment its quantity. */\n for (CartItem item : cartlist) {\n if (productId.equals(item.getProduct().getProduct...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }