query
stringlengths
7
33.1k
document
stringlengths
7
335k
metadata
dict
negatives
listlengths
3
101
negative_scores
listlengths
3
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
TODO: Implement this method
@Override public CharSequence getPageTitle(int position) { switch(position){ case 0: return TITLE[0]; case 1: return TITLE[1]; case 2: return TITLE[2]; case 3: return TITLE[3]; case 4: return TITLE[4]; case 5: return TITLE[5]; } return super.getPageTitle(position); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void grabar() {\n\t\t...
[ "0.6146684", "0.5972078", "0.5951665", "0.5893627", "0.5893573", "0.58674604", "0.57714313", "0.57463145", "0.5679119", "0.5679119", "0.56602454", "0.5640005", "0.56188494", "0.5614183", "0.5613904", "0.5604922", "0.55885965", "0.5585748", "0.5544809", "0.5542787", "0.5460681...
0.0
-1
[Flow 1] Positive Case : It is checked special character is properly handled via Hibernate.
@Test public void testInsertSpecialChar() { // 1. insert init data SpecialChar soruce = insertSpecialChar(); // 2. select a specialChar data SpecialChar specialChar = (SpecialChar) session.get(SpecialChar.class, new Integer(4491)); // 3. assert result - timeDate...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void caseNameWithSpecialChar() {\n\t\tString caseName = \"le@d\";\n\t\ttry {\n\t\t\tCaseManagerValidator.isCharAllowed(caseName);\n\t\t} catch (ValidationException e) {\n\t\t}\n\t}", "@Test\n public void shouldNotBeAbleToInputSpecialCharactersInTradeInValueField() {\n }", "public static v...
[ "0.7002918", "0.660171", "0.61879474", "0.6160036", "0.5968173", "0.5855161", "0.5849977", "0.58262956", "0.57647645", "0.57453513", "0.56900615", "0.5668698", "0.56573176", "0.56474197", "0.56165355", "0.5613355", "0.5599764", "0.5598863", "0.55820996", "0.5570791", "0.55579...
0.5916417
5
[Flow 2] Positive Case : Data is modified and modification is checked by using defined Entity object
@Test public void testUpdateSpecialChar() { // 1. insert init data insertSpecialChar(); // 2. select a specialChar data SpecialChar specialChar = (SpecialChar) session.get(SpecialChar.class, new Integer(4491)); // 3. update data specialChar.setSpecialCha...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void Update(PersonelContract entity) {\n\n\t}", "public void updateEntity();", "public abstract boolean update(T entity) throws ServiceException;", "public default boolean isAffectingEntity(SpellData dataIn, LivingEntity entityIn){ return false;}", "boolean update(T entity) throws Excep...
[ "0.6760128", "0.6680392", "0.66746926", "0.66465014", "0.66270006", "0.66245806", "0.65951", "0.6567035", "0.6563578", "0.6563578", "0.65532476", "0.6548408", "0.65368605", "0.6490934", "0.6429234", "0.64123565", "0.64114517", "0.64114517", "0.6397003", "0.63935024", "0.63457...
0.0
-1
[Flow 3] Positive Case : Data is deleted and deletion is checked by using defined Entity object
@Test public void testDeleteSpecialChar() { // 1. insert init data insertSpecialChar(); // 2. select a specialChar data SpecialChar specialChar = (SpecialChar) session.get(SpecialChar.class, new Integer(4491)); // 3. remove data session.delete(specialCha...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void delete(Object entity);", "void delete(Entity entity);", "public void delete(Contract entity) {\n\r\n\t}", "void delete(E entity);", "void delete(E entity);", "@Override\n\tpublic int deleteObject(Evaluate entity) {\n\t\treturn evaluateMapper.deleteObject(entity);\n\t}", "void delete(int entityId);...
[ "0.73568183", "0.73509574", "0.72960424", "0.72944885", "0.72944885", "0.7293033", "0.7258173", "0.7220373", "0.72134423", "0.71988744", "0.7195909", "0.71858186", "0.71858186", "0.7153123", "0.7131274", "0.7125546", "0.7112899", "0.7097706", "0.7081933", "0.6990378", "0.6927...
0.0
-1
Data is set with special character and added to DB.
public SpecialChar insertSpecialChar() { SpecialChar specialChar = new SpecialChar(); specialChar.setId(4491); specialChar.setSpecialCharA("! ' , . / : ; ? ^ _ ` | " + " ̄ 、 。 · ‥ … ¨ 〃 ­ ― ∥ \ ∼ ´ ~ ˇ " + "˘ ˝ ˚ ˙ ¸ ˛ ¡ ¿ ː"); specialChar.setSpecialCharB("" ( ) [ ] { } ‘ ’...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final /* synthetic */ void saveToDb() {\n DruidPooledConnection druidPooledConnection;\n DruidPooledConnection druidPooledConnection2;\n block18: {\n block17: {\n StringBuilder stringBuilder;\n PreparedStatement preparedStatement;\n ...
[ "0.6038951", "0.59963405", "0.59249246", "0.57995754", "0.57858485", "0.5751928", "0.5729234", "0.57249594", "0.57246345", "0.57053185", "0.57053185", "0.57053185", "0.5694279", "0.567614", "0.567614", "0.5600499", "0.55747217", "0.54583806", "0.54412633", "0.5403486", "0.539...
0.64317507
0
get all request (TODO: get all public, geocached notes)
@GetMapping("/notes") public List<Note> getAllNotes() { List<Note> temp = noteService.getAllNotes(); return temp; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void getRequests();", "List<SdkHttpRequest> getRequests();", "@Override\r\n\tpublic RequestsTracker getAllRequests() {\r\n\t\treturn allRequestsTracker;\r\n\t}", "@RolesAllowed(\"admin\")\n\t@GetMapping(\"/all\")\n\tpublic List<IncidentModel> getAll(HttpServletRequest request){\n\t\tAuthUtil.getInfo();\n\t\t...
[ "0.73798585", "0.7035877", "0.6862755", "0.659812", "0.654426", "0.6510363", "0.64635646", "0.6347842", "0.6310165", "0.6265049", "0.6148226", "0.6127284", "0.61146915", "0.61044383", "0.6071573", "0.6053419", "0.6031607", "0.6010445", "0.6010445", "0.6010445", "0.6010445", ...
0.0
-1
make return a response body
@DeleteMapping("/notes/{id}") public boolean deleteNote(@PathVariable("id") UUID id) { return noteService.deleteNote(id); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String getBody(CloseableHttpResponse response) throws IOException {\n HttpEntity entity = response.getEntity();\n return EntityUtils.toString(entity, \"UTF-8\");\n }", "public String getBody() {\n\t\tif(body == null) {\n\t\t\ttry {\n\t\t\t\tbody = streamToString(response.getEntity().getC...
[ "0.6797083", "0.6660517", "0.66328144", "0.6609532", "0.6419438", "0.641256", "0.63794404", "0.63794404", "0.63794404", "0.63794404", "0.6376826", "0.6356744", "0.62269276", "0.6217264", "0.6195139", "0.6154737", "0.61479735", "0.6096478", "0.6081816", "0.60524553", "0.604306...
0.0
-1
Just extracts a filter from a parameter string.
public static String[] extractFilterFromParam(final String str) { final Pattern filterPattern = Pattern.compile("^(\\d+)\\_(.+)"); final Matcher m = filterPattern.matcher(str); if (m.matches()) { return new String[] { m.group(1), m.group(2) }; } return null; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getFilter();", "String getFilter();", "String filter(String value);", "String extractParameters ();", "public static ObjectInputFilter createFilter2(String param1String) {\n/* 394 */ Objects.requireNonNull(param1String, \"pattern\");\n/* 395 */ return Global.createFilter(param1...
[ "0.644667", "0.6279341", "0.6125326", "0.60440546", "0.6036383", "0.603458", "0.6023212", "0.6011797", "0.5935289", "0.5844844", "0.5787118", "0.56489205", "0.5562582", "0.54787755", "0.54176897", "0.5356715", "0.53454965", "0.52558345", "0.5238575", "0.5229829", "0.52263594"...
0.6763762
0
TODO Autogenerated method stub
@Test private void get_all_headers() { RestAssured.baseURI = "https://reqres.in"; RequestSpecification httpRequest = RestAssured.given(); Response response = httpRequest.request(Method.GET, "/api/users?page=2"); Headers headers = response.getHeaders(); for (Header header : headers) { System.out.println(he...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
============================ CONTROLLER IMPLEMENTATIONS ============================
@Override public void onCreate(SQLiteDatabase db) { setCreateCourseTable(db); setCreateAssignmentTable(db); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tprotected void setController() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\t\t\tpublic void run() {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void run() {\n\t\t\t\t\n\t\t\t}", "@Override\r\n\tpublic void manage() {\n\t\t\r\n\t}", "public Controller() {\n ...
[ "0.6489889", "0.619252", "0.6122035", "0.6122035", "0.6113193", "0.6029075", "0.6023766", "0.5985836", "0.5985836", "0.5972108", "0.5907439", "0.58846205", "0.5824637", "0.5824637", "0.58078563", "0.578905", "0.578835", "0.5758937", "0.57499593", "0.57383156", "0.5737352", ...
0.0
-1
============================ COURSE TABLE CRUD METHODS ============================ CREATE COURSE
public long createCourse(Course course) { long id = -1; SQLiteDatabase db = this.getWritableDatabase(); ContentValues courseContentValues = new ContentValues(); courseContentValues.put(Config.COLUMN_COURSE_TITLE, course.getCourseTitle()); courseContentValues.put(Config.COLUMN_CO...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void insertCourse(){\n \n }", "public Courses getCourseTable();", "public void setCourseTable(Courses value);", "int insert(courses record);", "public com.ms3.training.services.model.Course create(java.lang.String title);", "int insert(Course record);", "int insert(Course record);", ...
[ "0.7296806", "0.6815541", "0.6806561", "0.6692671", "0.6668977", "0.6663643", "0.6663643", "0.65883905", "0.6522142", "0.6397678", "0.6389914", "0.63255036", "0.62959796", "0.62824684", "0.6271804", "0.62473375", "0.6220126", "0.6214714", "0.62005085", "0.6171907", "0.6124717...
0.6069424
23
============================ ASSIGNMENT TABLE CRUD METHODS ============================ CREATE ASSIGNMENT
public long createAssignment(Assignment assignment) { long id = -1; SQLiteDatabase db = this.getWritableDatabase(); ContentValues assignmentContentValues = new ContentValues(); assignmentContentValues.put(Config.COLUMN_ASSIGNMENT_TITLE, assignment.getAssignmentTitle()); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Assignment createAssignment();", "Assignment createAssignment();", "public Assignment createAssignment(Assignment assignment) throws Exception {\n\t\ttry{ \n\t\t\tLog.d(\"AssignmentDataSource\",\"Create Assignment\");\n\t\t\tContentValues values = new ContentValues();\n\n\t\t\tvalues.put(MySQLiteHelper.ASSIGN...
[ "0.57698685", "0.57698685", "0.566675", "0.5626536", "0.55701596", "0.5299136", "0.52700746", "0.51969063", "0.5123912", "0.50988334", "0.5084074", "0.50796765", "0.5062485", "0.50525117", "0.50146496", "0.49984208", "0.49969608", "0.49848095", "0.4981577", "0.4981117", "0.49...
0.50868356
10
READ ALL ASSIGNMENTS OF A COURSE
public List<Assignment> getCourseAssignments(long c_id) { SQLiteDatabase db = this.getReadableDatabase(); List<Assignment> assignmentList = new ArrayList<>(); Cursor cursor = null; try { cursor = db.query(Config.TABLE_NAME_ASSIGNMENT, null, null, null, nu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public List<Assignment> getAssignment(String courseId) {\n\n Course course = getCourse(courseId);\n MongoCollection<Assignment> assignementMongoCollection = mongoDatabase.getCollection(\"assignment\", Assignment.class);\n List<Assignment> assignments = new LinkedList<>();\n ...
[ "0.64025325", "0.6327709", "0.63084036", "0.62690085", "0.59185416", "0.58656776", "0.58525467", "0.5843139", "0.57989645", "0.57781196", "0.57235533", "0.5703065", "0.5637738", "0.5635807", "0.562496", "0.56182045", "0.5609271", "0.55934685", "0.55418354", "0.5526133", "0.54...
0.62242955
4
============================ CONTROLLER METHODS ============================ GET ASSIGNMENT AVERAGE
public double getAssignmentsAvg(long course_id) { SQLiteDatabase db = this.getReadableDatabase(); double sum = 0.0; double count = 0.0; List<Assignment> assignmentList = new ArrayList<>(); Cursor cursor = null; try { cursor = db.query(Config.TABLE_NAME_ASSIG...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Assessment getAssessment();", "public void getAssignment() {\n \n }", "public Assessment getAssesment() {\n return assessment;\n }", "String getAssignmentApproaches();", "public DataRecord getAssignRecord() {\r\n String[] activeStates = currentProcessInstance.getActiveStates();\r\n ...
[ "0.5733202", "0.5634865", "0.56229", "0.55661154", "0.5291616", "0.5270351", "0.51837486", "0.516032", "0.5039889", "0.4989405", "0.4974069", "0.49604425", "0.49525988", "0.4951118", "0.49468258", "0.49390003", "0.49330685", "0.48934984", "0.48867592", "0.4864157", "0.4860986...
0.0
-1
/ renamed from: d
private void m2192d(String str) { this.f980b.m1158c().getSharedPreferences("com.facebook.login.AuthorizationClient.WebViewAuthHandler.TOKEN_STORE_KEY", 0).edit().putString("TOKEN", str).apply(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void d() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "public int d()\r\n/* 79: */ {\r\n/* 80:82 */ return this.d;\r\n/* 81: */ }", "public String d_()\r\n/* 445: */ {\r\n/* 446:459 */ return \"container.inventor...
[ "0.63810617", "0.616207", "0.6071929", "0.59959275", "0.5877492", "0.58719957", "0.5825175", "0.57585526", "0.5701679", "0.5661244", "0.5651699", "0.56362265", "0.562437", "0.5615328", "0.56114155", "0.56114155", "0.5605659", "0.56001145", "0.5589302", "0.5571578", "0.5559222...
0.0
-1
/ renamed from: f
private static final String m2193f() { StringBuilder stringBuilder = new StringBuilder(); stringBuilder.append("fb"); stringBuilder.append(C0560t.m1253e()); stringBuilder.append("://authorize"); return stringBuilder.toString(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void func_70305_f() {}", "public static Forca get_f(){\n\t\treturn f;\n\t}", "void mo84656a(float f);", "public final void mo8765a(float f) {\n }", "@Override\n public int f() {\n return 0;\n }", "public void f() {\n }", "void mo9704b(float f, float f2, int i);", "void mo56155...
[ "0.7323683", "0.65213245", "0.649907", "0.64541733", "0.6415534", "0.63602704", "0.6325114", "0.63194084", "0.630473", "0.62578535", "0.62211406", "0.6209556", "0.6173324", "0.61725706", "0.61682224", "0.6135272", "0.6130462", "0.6092916", "0.6089471", "0.6073019", "0.6069227...
0.0
-1
/ renamed from: g
private String m2194g() { return this.f980b.m1158c().getSharedPreferences("com.facebook.login.AuthorizationClient.WebViewAuthHandler.TOKEN_STORE_KEY", 0).getString("TOKEN", ""); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void g() {\n }", "public void gored() {\n\t\t\n\t}", "public boolean g()\r\n/* 94: */ {\r\n/* 95:94 */ return this.g;\r\n/* 96: */ }", "public int g()\r\n/* 173: */ {\r\n/* 174:198 */ return 0;\r\n/* 175: */ }", "public void stg() {\n\n\t}", "public xm n()\r\n/* 274: ...
[ "0.678414", "0.67709124", "0.6522526", "0.64709187", "0.6450875", "0.62853396", "0.6246107", "0.6244691", "0.6212993", "0.61974055", "0.61380696", "0.6138033", "0.6105423", "0.6057178", "0.60355175", "0.60195917", "0.59741", "0.596904", "0.59063077", "0.58127505", "0.58101356...
0.0
-1
/ renamed from: a
protected Bundle m2195a(Bundle bundle, Request request) { bundle.putString("redirect_uri", m2193f()); bundle.putString("client_id", request.m1120a()); LoginClient loginClient = this.f980b; bundle.putString("e2e", LoginClient.m1143e()); bundle.putString("response_type", "token,sig...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }", "public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "interface C33292a {\n /* renamed fr...
[ "0.62497115", "0.6242887", "0.61394435", "0.61176854", "0.6114027", "0.60893", "0.6046901", "0.6024682", "0.60201293", "0.5975212", "0.59482527", "0.59121317", "0.5883635", "0.587841", "0.58703005", "0.5868436", "0.5864884", "0.5857492", "0.58306104", "0.5827752", "0.58272064...
0.0
-1
/ renamed from: a
protected void m2196a(Request request, Bundle bundle, C0506l c0506l) { Result a; this.f1784c = null; if (bundle != null) { String str = "e2e"; if (bundle.containsKey(str)) { this.f1784c = bundle.getString(str); } try { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }", "public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "interface C33292a {\n /* renamed fr...
[ "0.62497115", "0.6242887", "0.61394435", "0.61176854", "0.6114027", "0.60893", "0.6046901", "0.6024682", "0.60201293", "0.5975212", "0.59482527", "0.59121317", "0.5883635", "0.587841", "0.58703005", "0.5868436", "0.5864884", "0.5857492", "0.58306104", "0.5827752", "0.58272064...
0.0
-1
/ renamed from: b
protected Bundle m2197b(Request request) { String join; Object obj; Bundle bundle = new Bundle(); if (!C0475Q.m992a(request.m1128h())) { join = TextUtils.join(",", request.m1128h()); String str = "scope"; bundle.putString(str, join); m1175a...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void mo2508a(bxb bxb);", "@Override\n public void func_104112_b() {\n \n }", "@Override\n public void b() {\n }", "public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }", "@Override\n\tpublic void b2() {\n\t\t\n\t}", "v...
[ "0.64558864", "0.6283203", "0.6252635", "0.6250949", "0.6244743", "0.6216273", "0.6194491", "0.6193556", "0.61641675", "0.6140157", "0.60993093", "0.60974354", "0.6077849", "0.6001867", "0.5997364", "0.59737104", "0.59737104", "0.5905105", "0.5904295", "0.58908087", "0.588663...
0.0
-1
/ renamed from: d
protected String mo1606d() { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void d() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "public int d()\r\n/* 79: */ {\r\n/* 80:82 */ return this.d;\r\n/* 81: */ }", "public String d_()\r\n/* 445: */ {\r\n/* 446:459 */ return \"container.inventor...
[ "0.63810617", "0.616207", "0.6071929", "0.59959275", "0.5877492", "0.58719957", "0.5825175", "0.57585526", "0.5701679", "0.5661244", "0.5651699", "0.56362265", "0.562437", "0.5615328", "0.56114155", "0.56114155", "0.5605659", "0.56001145", "0.5589302", "0.5571578", "0.5559222...
0.0
-1
/ renamed from: e
abstract C0451h mo1607e();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void e() {\n\n\t}", "public void e() {\n }", "@Override\n\tpublic void processEvent(Event e) {\n\n\t}", "@Override\n public void e(String TAG, String msg) {\n }", "public String toString()\r\n {\r\n return e.toString();\r\n }", "@Override\n\t\t\t\...
[ "0.72328156", "0.66032064", "0.6412127", "0.6362734", "0.633999", "0.62543726", "0.6232265", "0.6159535", "0.61226326", "0.61226326", "0.60798717", "0.6049423", "0.60396963", "0.60011584", "0.5998842", "0.59709895", "0.59551716", "0.5937381", "0.58854383", "0.5870234", "0.586...
0.0
-1
A field in the data schema
public interface Field { FieldType getType(); FieldCardinality getCardinality(); boolean isRequired(); boolean isOptional(); boolean isRepeated(); String getName(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getField1337();", "java.lang.String getField1015();", "java.lang.String getField1016();", "java.lang.String getField1334();", "java.lang.String getField1406();", "java.lang.String getField1007();", "java.lang.String getField1335();", "java.lang.String getField1005();", "java.lang.S...
[ "0.7091879", "0.7054572", "0.70145804", "0.700956", "0.69811064", "0.69771", "0.6973603", "0.6967089", "0.69608676", "0.6933535", "0.69227934", "0.6911132", "0.6907073", "0.6906759", "0.69028914", "0.6898344", "0.6895386", "0.6894336", "0.6887405", "0.6885523", "0.6877846", ...
0.0
-1
Created by roberto on 11/05/17.
@CustomScope @Component(dependencies = NetworkComponent.class, modules = ComicsModule.class) public interface ComicsComponent { void inject(ComicsFragment comicsFragment); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void interr() {\n\t}", "private void poet...
[ "0.5881158", "0.587289", "0.5788518", "0.5682118", "0.56704587", "0.5667484", "0.5628934", "0.5615649", "0.5615649", "0.55927294", "0.55924433", "0.5582694", "0.5569775", "0.55601144", "0.5558746", "0.5548137", "0.5548137", "0.5548137", "0.5548137", "0.5548137", "0.55443454",...
0.0
-1
Construct a slider to select line thickness
public LineThicknessSelectorSlider(View view, int min, int max) { super(true); JLabel sliderLabel = new JLabel("Line thickness"); this.view = view; this.min = min; this.max = max; this.setLayout(new BorderLayout()); Slider = new Slider(JSlider.HORIZONTAL,min, max, 3); Slider.setPain...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private JSlider thicknessSlider(final DrawingPanel thePanel) {\r\n final JSlider slider = new JSlider(JSlider.HORIZONTAL,\r\n 0, 20, 4);\r\n slider.setMajorTickSpacing(MAJOR_TICK_SPACING);\r\n slider.setMinorTickSpacing(MINOR_TICK_SPACING);\r\n slid...
[ "0.71927303", "0.71018267", "0.68520266", "0.68434554", "0.63872236", "0.61812556", "0.6172312", "0.60703564", "0.6063059", "0.59120953", "0.58925676", "0.5880621", "0.5827768", "0.5663476", "0.5640001", "0.56277686", "0.55923104", "0.5591856", "0.5585696", "0.55794716", "0.5...
0.7662521
0
When the value is changed, change the thickness on down panel. And then ask the PaintPanel to change.
@Override public void setValue(int n) { super.setValue(n); view.getDownpanel().getThicknessStatus().setThickness(n); view.getModel().setThickness(n); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void changed(ObservableValue<? extends Number> observable, Number oldValue, Number newValue) {\n canvasState.changeLineWidth(newValue.doubleValue());\n redrawCanvas();\n }", "@Override\n ...
[ "0.6596822", "0.6565455", "0.63423365", "0.6232964", "0.6175567", "0.6162804", "0.6152597", "0.6054483", "0.6047978", "0.6036891", "0.5989671", "0.5908576", "0.5871268", "0.586566", "0.582068", "0.5819862", "0.57973343", "0.5795522", "0.5792898", "0.5792054", "0.579058", "0...
0.68762165
0
Generate a new id, combined by three parts. The first one represents application instance id. The second one represents thread id. The third one also has two parts, 1) a timestamp, measured in milliseconds 2) a seq, in current thread, between 0(included) and 9999(included)
public static String generate() { return StringUtil.join( '.', PROCESS_ID, String.valueOf(Thread.currentThread().getId()), String.valueOf(THREAD_ID_SEQUENCE.get().nextSeq()) ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static String createPID()\r\n\t{\r\n\t\tunique_count++;\r\n\t\tif(unique_count >= 100) unique_count = 0;\r\n\t\tString str_num = String.format(\"%02d\", unique_count);\r\n\t\t\r\n\t\tSimpleDateFormat dateFormat = new SimpleDateFormat(\"yyMMddHHmmss\");\r\n\t\tString pid = dateFormat.format(new Date()) + str...
[ "0.7265778", "0.7211879", "0.70745915", "0.6973492", "0.6856173", "0.6763352", "0.6706444", "0.66111773", "0.6608937", "0.65964955", "0.65731806", "0.6567424", "0.6535838", "0.6512737", "0.64851326", "0.6475468", "0.64599836", "0.64460796", "0.6431094", "0.64305294", "0.64239...
0.7015465
3
This method was generated by Apache iBATIS ibator. This method returns the value of the database column spreader.tb_user_tag.id
public Long getId() { return id; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Long getTagid() {\n return tagid;\n }", "public Long getTagId() {\r\n return tagId;\r\n }", "public Integer getTagId() {\n return tagId;\n }", "public Integer getTagId() {\n return tagId;\n }", "public Integer getIdUser() {\r\n\t\treturn idUser;\r\n\t}", "pu...
[ "0.66835594", "0.660793", "0.64858395", "0.64858395", "0.62782294", "0.6268367", "0.62250304", "0.62178415", "0.6205112", "0.6123828", "0.6083901", "0.6077776", "0.6072803", "0.6065834", "0.6054984", "0.60425466", "0.60282916", "0.6002883", "0.6002883", "0.6002883", "0.600288...
0.0
-1
This method was generated by Apache iBATIS ibator. This method sets the value of the database column spreader.tb_user_tag.id
public void setId(Long id) { this.id = id; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setAD_User_ID (int AD_User_ID);", "public void xsetIdTag(ocpp.IdToken idTag)\n {\n synchronized (monitor())\n {\n check_orphaned();\n ocpp.IdToken target = null;\n target = (ocpp.IdToken)get_store().find_element_user(IDTAG$0, 0);\n if (targ...
[ "0.6434534", "0.64293027", "0.6152284", "0.6125345", "0.61246353", "0.60171896", "0.59993625", "0.59940845", "0.58947694", "0.5892811", "0.58904284", "0.5849253", "0.58024925", "0.5779033", "0.5775367", "0.5758046", "0.5730726", "0.57170296", "0.57092685", "0.5685033", "0.568...
0.0
-1
This method was generated by Apache iBATIS ibator. This method returns the value of the database column spreader.tb_user_tag.uid
public Long getUid() { return uid; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getUid();", "java.lang.String getUid();", "public Integer getUid() {\r\n return uid;\r\n }", "public Integer getUid() {\r\n return uid;\r\n }", "public Integer getUid() {\r\n return uid;\r\n }", "public Integer getUid() {\r\n return uid;\r\n }", ...
[ "0.67451215", "0.67451215", "0.66950864", "0.66950864", "0.66950864", "0.66950864", "0.66950864", "0.66950864", "0.66511774", "0.66511774", "0.66511774", "0.66511774", "0.66511774", "0.66511774", "0.66511774", "0.6627315", "0.6616125", "0.66154414", "0.6587251", "0.6587251", ...
0.6619533
16
This method was generated by Apache iBATIS ibator. This method sets the value of the database column spreader.tb_user_tag.uid
public void setUid(Long uid) { this.uid = uid; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setUid(Integer uid) {\r\n this.uid = uid;\r\n }", "public void setUid(Integer uid) {\r\n this.uid = uid;\r\n }", "public void setUid(Integer uid) {\r\n this.uid = uid;\r\n }", "public void setUid(Integer uid) {\r\n this.uid = uid;\r\n }", "public void set...
[ "0.6372541", "0.6372541", "0.6372541", "0.6372541", "0.6372541", "0.6372541", "0.6366032", "0.63191044", "0.63191044", "0.63191044", "0.63191044", "0.63191044", "0.63191044", "0.63191044", "0.63187605", "0.62967813", "0.62967813", "0.62967813", "0.62967813", "0.62967813", "0....
0.6245618
22
This method was generated by Apache iBATIS ibator. This method returns the value of the database column spreader.tb_user_tag.tag
public String getTag() { return tag; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getTag() {\n if (mTag == null) {\n try {\n mTag = mSessionBinder.getTag();\n } catch (RemoteException e) {\n Log.d(TAG, \"Dead object in getTag.\", e);\n }\n }\n return mTag;\n }", "public String getTag()\n\t{\n\...
[ "0.6641604", "0.6458654", "0.6458654", "0.644877", "0.644004", "0.64333034", "0.64333034", "0.64258724", "0.64251924", "0.6404535", "0.6404535", "0.6404516", "0.63649476", "0.6333883", "0.63213193", "0.63053435", "0.62885326", "0.62599874", "0.6176731", "0.61683124", "0.61649...
0.64672667
1
This method was generated by Apache iBATIS ibator. This method sets the value of the database column spreader.tb_user_tag.tag
public void setTag(String tag) { this.tag = tag; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setTag(Object tag)\n {\n fTag = tag;\n }", "void setTag(java.lang.String tag);", "public void setTag(String tag);", "public void setTag( String tag )\n {\n this.tag = tag;\n }", "public void setTag(String tagName, Object value);", "public void setTag(int tag) {\n ...
[ "0.67826647", "0.63692504", "0.6368533", "0.6137704", "0.6089473", "0.60346466", "0.6015596", "0.6015596", "0.586984", "0.5862673", "0.58103275", "0.5801061", "0.5799156", "0.57692873", "0.57113075", "0.55975854", "0.5564803", "0.55618984", "0.54994553", "0.54965913", "0.5491...
0.61342764
4
This method was generated by Apache iBATIS ibator. This method returns the value of the database column spreader.tb_user_tag.tag_id
public Long getTagId() { return tagId; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Long getTagid() {\n return tagid;\n }", "public Integer getTagId() {\n return tagId;\n }", "public Integer getTagId() {\n return tagId;\n }", "public String getTagId() {\n return tagId;\n }", "public java.lang.String getIdTag()\n {\n synchronized (mo...
[ "0.72546923", "0.71129316", "0.71129316", "0.68830276", "0.6445624", "0.63508785", "0.6292769", "0.6165703", "0.60809463", "0.6080449", "0.60668254", "0.5970635", "0.5936889", "0.5926277", "0.59052885", "0.5863653", "0.5818886", "0.5801991", "0.5762973", "0.5762973", "0.57136...
0.72289085
1
This method was generated by Apache iBATIS ibator. This method sets the value of the database column spreader.tb_user_tag.tag_id
public void setTagId(Long tagId) { this.tagId = tagId; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void xsetIdTag(ocpp.IdToken idTag)\n {\n synchronized (monitor())\n {\n check_orphaned();\n ocpp.IdToken target = null;\n target = (ocpp.IdToken)get_store().find_element_user(IDTAG$0, 0);\n if (target == null)\n {\n targe...
[ "0.67627364", "0.6510039", "0.63737124", "0.63631576", "0.6231113", "0.6231113", "0.6187734", "0.6157281", "0.61381406", "0.61205053", "0.60831994", "0.6069904", "0.59931594", "0.59610736", "0.59108365", "0.59108365", "0.59063447", "0.58839583", "0.58329374", "0.57969123", "0...
0.64126396
2
creates a parser with persistent, initially empty storage
Butternut(String grammar) { main = selectGrammar(grammar); text = "123CAN Weldoer".toCharArray();//new char[0]; tree = main.parse(0); //experimentalParser("123CAN Weldoer".toCharArray()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Parse createParse();", "public Parser() {}", "public Parser() {\n\t\tpopulateMaps();\n\t}", "private Parser () { }", "public EPPSchemaCachingParser() {\n\t\ttry {\n\t\t\tinit();\n\t\t}\n\t\t catch (EPPParserException e) {\n\t\t\tcat.error(\"Couldn't instantiate parser instance\", e);\n\t\t}\n\t}", "publi...
[ "0.6769237", "0.656269", "0.639053", "0.63247454", "0.6155723", "0.60854125", "0.6010913", "0.5978521", "0.59734213", "0.59543055", "0.5891517", "0.5883108", "0.5836676", "0.57943434", "0.5781591", "0.56785095", "0.56772494", "0.56568885", "0.5650091", "0.5604961", "0.5552305...
0.0
-1
reparse a portion of the text
void setText(int offset, int length, String newText) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void parseRawText() {\n\t\t//1-new lines\n\t\t//2-pageObjects\n\t\t//3-sections\n\t\t//Clear any residual data.\n\t\tlinePositions.clear();\n\t\tsections.clear();\n\t\tpageObjects.clear();\n\t\tcategories.clear();\n\t\tinterwikis.clear();\n\t\t\n\t\t//Generate data.\n\t\tparsePageForNewLines();\n\t\tparseP...
[ "0.58575505", "0.5587159", "0.54598486", "0.54259205", "0.54244024", "0.53809655", "0.53595084", "0.5164649", "0.5156138", "0.5145638", "0.5124083", "0.51001096", "0.5096781", "0.50967777", "0.50810546", "0.5070396", "0.5047517", "0.5036157", "0.50215995", "0.50197643", "0.49...
0.0
-1
private String state; // this is not required
public AuthRequest(String clientId, String requestType, Integer userLoginId) { this.clientId = clientId; this.requestType = requestType; this.userloginId = userLoginId; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getState(){\n return state;\n }", "@Override\n public String getState()\n {\n return state;\n }", "public String getState() { return state; }", "public State getState(){return this.state;}", "public String getState()\n {\n \treturn state;\n }", "private Ob...
[ "0.76688683", "0.7562296", "0.75395525", "0.7440002", "0.72379935", "0.7156776", "0.7147878", "0.7087851", "0.7087851", "0.7070167", "0.6984678", "0.6961004", "0.69575626", "0.69107914", "0.69107914", "0.6879475", "0.6874378", "0.6863501", "0.6861759", "0.6861759", "0.6860107...
0.0
-1
Only need to look at subgrid If a single value appears as a guess in the subgrid, we can confidently say that the value belongs in the cell
public boolean isSpotValidForGuess(int x, int y, int guess) { boolean grid = doesSubGridHaveGuess(x, y, guess); return !grid; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void flagCell(String[] grid, int i, int j) {\r\n\t\tif (j < 0 || j > 127 || i < 0 || i > 127 || grid[i].charAt(j) != '1') return; // boundary test + value test\r\n\t\tStringBuilder sb = new StringBuilder(grid[i]);\r\n\t\tsb.setCharAt(j, 'x');\r\n\t\tgrid[i] = sb.toString();\r\n\t\tflagCell(grid, i, ...
[ "0.66374195", "0.66357976", "0.6540189", "0.6437268", "0.64348596", "0.63456464", "0.62940526", "0.6188278", "0.61845815", "0.61744213", "0.6135788", "0.6117526", "0.6080575", "0.6055399", "0.60445267", "0.60445166", "0.6034764", "0.6020616", "0.60198396", "0.5998529", "0.599...
0.0
-1
User cancelled the dialog
public void onClick(DialogInterface dialog, int id) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void cancelDialog() {dispose();}", "public void cancel() { Common.exitWindow(cancelBtn); }", "@Override\n public void onCancel(DialogInterface dialog) {\n cancel(true);\n }", "@Override\n\t\t\t\t\tpublic void onCancel(DialogInterface dialog) {\n\t\t\t\t...
[ "0.84252524", "0.81816214", "0.81397384", "0.80922073", "0.7927849", "0.79160905", "0.78777075", "0.78763556", "0.7856008", "0.7849157", "0.7848072", "0.7838308", "0.7804249", "0.77992254", "0.7796975", "0.7796975", "0.77921396", "0.7792013", "0.77904165", "0.77860636", "0.77...
0.0
-1
User cancelled the dialog
public void onClick(DialogInterface dialog, int id) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void cancelDialog() {dispose();}", "public void cancel() { Common.exitWindow(cancelBtn); }", "@Override\n public void onCancel(DialogInterface dialog) {\n cancel(true);\n }", "@Override\n\t\t\t\t\tpublic void onCancel(DialogInterface dialog) {\n\t\t\t\t...
[ "0.84252524", "0.81816214", "0.81397384", "0.80922073", "0.7927849", "0.79160905", "0.78777075", "0.78763556", "0.7856008", "0.7849157", "0.7848072", "0.7838308", "0.7804249", "0.77992254", "0.7796975", "0.7796975", "0.77921396", "0.7792013", "0.77904165", "0.77860636", "0.77...
0.0
-1
/ renamed from: a
public void mo3219a(Switch switchR, boolean z) { this.f11001a.a(16, z); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }", "public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "interface C33292a {\n /* renamed fr...
[ "0.62497115", "0.6242887", "0.61394435", "0.61176854", "0.6114027", "0.60893", "0.6046901", "0.6024682", "0.60201293", "0.5975212", "0.59482527", "0.59121317", "0.5883635", "0.587841", "0.58703005", "0.5868436", "0.5864884", "0.5857492", "0.58306104", "0.5827752", "0.58272064...
0.0
-1
Constructor for the GUI, also wanted levels are specified here.
public GUI() { this.game = new Game(); String[] levels = {"assets/TxtTestLevel.txt", "assets/TxtTestLevel2.txt", "assets/TxtTestLevel4.txt", "assets/TxtTestLevel5.txt"}; this.gameLevels = Level.getListOfLevels(levels); this.game.loadLevel(gameLevels.get(0)); this.bottomMenu = new...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public GUI() {\n }", "public GUI() {\n\t\tinitComponents();\n\t}", "public GUI() {\n initComponents();\n }", "public GUI() {\n initComponents();\n }", "public Gui() {\n\t\tsuper();\n\t\tinitGUI();\n\t}", "public MHTYGUI() {\n\t\t\tinitComponents();\n\t\t}", "public MyGUI() {\n ...
[ "0.7101615", "0.7018449", "0.6969329", "0.6969329", "0.69376147", "0.67650336", "0.6755203", "0.6724546", "0.6717779", "0.6674127", "0.6662914", "0.6661006", "0.66401523", "0.6638454", "0.6617582", "0.65913904", "0.65591085", "0.655276", "0.6552457", "0.65314037", "0.65197355...
0.78239626
0
Draws widgets to the frame.
private void drawGui() { this.frame = new JFrame("Find and Seek Game"); this.frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); this.frame.setLayout(new BorderLayout()); frame.addKeyListener(keyListener); initializeFrame(); this.frame.setVisible(true); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void drawGUI() {\n batch.draw(background, 0, 0);\n }", "public void draw() {\n\t\tif (fill) {\n\t\t\tapplet.noStroke();\n\t\t\tapplet.fill(color);\n\t\t} else {\n\t\t\tapplet.noFill();\n\t\t\tapplet.stroke(color);\n\t\t}\n\t\tapplet.rect(position.x, position.y, size.x, size.y);\n\t\tsliderBut...
[ "0.68410015", "0.66745985", "0.659837", "0.6572534", "0.64221334", "0.6399941", "0.6351722", "0.6334731", "0.6321842", "0.6291106", "0.6276059", "0.62139124", "0.6191176", "0.6185625", "0.61072195", "0.60931855", "0.6066829", "0.605994", "0.60496455", "0.60389227", "0.6035930...
0.60877293
16
Initializes frame again, builds all components again. Also Fixed window size can be set here
public void initializeFrame() { frame.getContentPane().removeAll(); createComponents(frame.getContentPane()); // frame.setSize(new Dimension(1000, 600)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void initializeFields() {\r\n myFrame = new JFrame();\r\n myFrame.setSize(DEFAULT_SIZE);\r\n }", "private void initializeFrame()\r\n\t{\r\n\t\tthis.setResizable(false);\r\n\r\n\t\tsetSize(DIMENSIONS); // set the correct dimensions\r\n\t\tsetDefaultCloseOperation(EXIT_ON_CLOSE);\r\n\t\tse...
[ "0.7748612", "0.77205116", "0.748705", "0.74820745", "0.7441032", "0.7409846", "0.74037683", "0.7390264", "0.73888916", "0.7374768", "0.7367179", "0.7351865", "0.73480463", "0.7338964", "0.73271435", "0.7311965", "0.7295903", "0.7288917", "0.72868294", "0.7283224", "0.7264141...
0.79112154
0
Gives possibility to outsideclasses to repaint the frame.
public void repaint() { frame.repaint(); frame.requestFocus(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void repaint() {}", "public void doRepaint() {\n window.getApplication().doRepaint();\n }", "public void repaint() {\n\n\t}", "public void repaint() {\n\t\n}", "public void requestRepaint() {\n }", "public abstract void forceRepaint();", "public void repaint();", "@Override\r\n ...
[ "0.7793435", "0.75694305", "0.7546637", "0.7528167", "0.75020707", "0.7489549", "0.73318976", "0.7217304", "0.6940757", "0.6940757", "0.6911412", "0.689208", "0.6871618", "0.6864229", "0.6738055", "0.6726361", "0.66883767", "0.66846234", "0.66638285", "0.6644589", "0.6621113"...
0.7065932
8
Checks gameStatus if e.g. popUpWindows are wanted to display. This is the method to add interaction after specific game status
public void checkGameStatus() { everyTenthGoalCongrats(); randomPopUpBecauseICan(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void statusCheck() {\n\t\tif(status.equals(\"waiting\")) {if(waitingPlayers.size()>1) status = \"ready\";}\n\t\tif(status.equals(\"ready\")) {if(waitingPlayers.size()<2) status = \"waiting\";}\n\t\tif(status.equals(\"start\")) {\n\t\t\tif(players.size()==0) status = \"waiting\";\n\t\t}\n\t\tview.changeStat...
[ "0.6877081", "0.67330295", "0.668869", "0.6688593", "0.66197985", "0.65889907", "0.651784", "0.6278597", "0.61776316", "0.6156495", "0.61235636", "0.60650945", "0.60546756", "0.60074586", "0.5979216", "0.5863471", "0.5859764", "0.5859254", "0.5843164", "0.58270466", "0.582227...
0.76186323
0
Initializes new Game object, to force gui frame to refresh.
public void initGame() { this.game = new Game(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void InitGame(){\n System.out.format(\"New game initiated ...\");\n Game game = new Game(client_List);\n SetGame(game);\n }", "public Game() {\n initComponents();\n }", "public GameHandler() {\n boardGraph = new BoardGraph();\n reset();\n }", "public Game() {\n\t\t...
[ "0.7919461", "0.7657082", "0.7610951", "0.7570566", "0.7548265", "0.7547258", "0.7516913", "0.74774426", "0.74687517", "0.74649894", "0.73795635", "0.73498344", "0.73464876", "0.7336292", "0.7330136", "0.7326957", "0.7291901", "0.7291757", "0.72910017", "0.72812575", "0.72790...
0.8244393
0
Implementations of this interface are added to Tabber's2
public interface Tab { /** * If the tabber can group tab's, use this method to provide a group name. * This tab will then be grouped together with other tabs of the same name. * * @return context */ public String getTabContext(); /** * Return a large icon to use for this t...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "private Object getTable() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "@Override\r\n\tpubli...
[ "0.64335287", "0.6360062", "0.6330105", "0.62923604", "0.62923604", "0.62304616", "0.6197675", "0.61530054", "0.61159253", "0.61107564", "0.61023736", "0.61023736", "0.6061153", "0.5995108", "0.5989703", "0.5951802", "0.593785", "0.59358937", "0.59210837", "0.5916455", "0.590...
0.62629086
5
If the tabber can group tab's, use this method to provide a group name. This tab will then be grouped together with other tabs of the same name.
public String getTabContext();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addGroup(String name) {\n if(isGroup(name) == false) {\n /* Create a new groupchatpanel */\n GroupChatPanel gcp = new GroupChatPanel(guicontrol, concontrol, name);\n \n /* Add the group to the hashmap */\n grouptabs.put(name, gcp);\n ...
[ "0.6608587", "0.65790355", "0.65351504", "0.6520418", "0.6339708", "0.62237084", "0.61974025", "0.61757797", "0.6161091", "0.61534655", "0.61534655", "0.609409", "0.60420585", "0.6025051", "0.5945687", "0.594357", "0.5931442", "0.59166354", "0.5911446", "0.5902047", "0.589728...
0.0
-1
Return a large icon to use for this tab. null may be returned
public Icon getTabIcon();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getIcon();", "String getIcon();", "java.lang.String getIcon();", "java.lang.String getIcon();", "Icon getIcon();", "public Icon getIcon();", "public String getIcon() {\n\t\treturn \"icon\";\n\t}", "public String getIconURL()\n {\n return null; \n }", "public String getIcon() {\n...
[ "0.74344647", "0.74344647", "0.7421232", "0.7421232", "0.7250341", "0.7223995", "0.7223118", "0.71339595", "0.70685947", "0.70685947", "0.70685947", "0.70685947", "0.7062493", "0.703998", "0.6984021", "0.6971469", "0.6965876", "0.6929058", "0.6925285", "0.6861947", "0.6845835...
0.77191734
0
Return the title of the tab
public String getTabTitle();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n public String getTabTitle()\r\n {\r\n return \"Allgemeine Einstellungen\";\r\n }", "@Override\n public String getTabCaption() {\n return this.name;\n }", "java.lang.String getTitle();", "java.lang.String getTitle();", "java.lang.String getTitle();", "java.lang.S...
[ "0.78459346", "0.7611516", "0.75835973", "0.75835973", "0.75835973", "0.75835973", "0.75835973", "0.75187445", "0.75187445", "0.7501214", "0.7501214", "0.7501214", "0.7501214", "0.7501214", "0.7501214", "0.7501214", "0.7501214", "0.7501214", "0.7501214", "0.7501214", "0.75012...
0.92272353
0
Return the tool tip text
public String getTabToolTipText();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static String getToolTipText() {\n\t\treturn (toolTipText);\n\t}", "public String getToolTipText() {\n return this.toString();\n }", "public String getToolTipText() {\n\t\treturn \"\";\r\n\t}", "public String getToolTipText () {\r\n\tcheckWidget();\r\n\treturn toolTipText;\r\n}", "public a...
[ "0.84799314", "0.8151059", "0.8038571", "0.80292606", "0.78346044", "0.7819294", "0.7745608", "0.7739911", "0.7739711", "0.77337337", "0.76910925", "0.76799655", "0.74999833", "0.74965066", "0.7420388", "0.7308432", "0.73047835", "0.7271787", "0.72437346", "0.70742625", "0.70...
0.7678583
12
Return the component used for rendering this tab.
public Component getTabComponent();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getComponent() {\r\n\t\treturn component;\r\n\t}", "public String getComponent() {\n return this.component;\n }", "public JComponent getComponent() {\n return getGradleUI().getComponent();\n }", "public Component getComponent() {\n return component;\n }", "public JComponent ...
[ "0.7216483", "0.70825636", "0.69080865", "0.68650085", "0.68462014", "0.67889524", "0.6788815", "0.67136735", "0.66747177", "0.6661576", "0.66383684", "0.66278666", "0.65591806", "0.6530358", "0.65299773", "0.64715046", "0.6461242", "0.64267886", "0.63992256", "0.6328551", "0...
0.7808034
0
This may be used to make sure any user input on this tab is correct. The tab may for example show a dialog informing the user of what is wrong, then return false if something is wrong.
public boolean validateTab();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected abstract boolean isInputValid();", "private boolean isInputValid() {\n\t\tString errorMessage = \"\";\n\t\t\n\t\tif(userNameField.getText() == null || userNameField.getText().length() == 0) {\n\t\t\terrorMessage += \"Üres a felhasználó név mező!\\n\";\n\t\t}\n\t\tif(passwordField.getText() == null || p...
[ "0.71078825", "0.7065792", "0.7062263", "0.6995029", "0.6937787", "0.69047904", "0.68979466", "0.68829113", "0.68387175", "0.6837608", "0.6836109", "0.67930835", "0.67871004", "0.67851317", "0.675151", "0.6713989", "0.66164154", "0.6611553", "0.65987796", "0.65869445", "0.658...
0.7356642
0
Apply any user input.
public void applyTab();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void takeUserInput() {\n\t\t\r\n\t}", "private void takeInUserInput(){\n\t\t// only take in input when it is in the ANSWERING phase\n\t\tif(spellList.status == QuizState.Answering){\n\t\t\tspellList.setAnswer(getAndClrInput());\n\t\t\tspellList.status = QuizState.Answered;\n\t\t\tansChecker=spellList.getA...
[ "0.66703355", "0.64029264", "0.6228555", "0.6151986", "0.6118212", "0.611812", "0.61142373", "0.6003329", "0.59912974", "0.5870041", "0.5828846", "0.5828443", "0.5798743", "0.5709423", "0.5634521", "0.55888915", "0.55713904", "0.55713904", "0.55713904", "0.55469114", "0.55289...
0.0
-1
Invoked when the tab is selected.
public void tabSelected();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void onTabSelectionChanged(int tabIndex);", "@Override\n\tpublic void selectTab(Tab tab) {\n\t\t\n\t}", "void onTabReselected(int position);", "@Override\n\tpublic void onTabSelected(Tab tab, FragmentTransaction ft) {\n\t\tvp.setCurrentItem(tab.getPosition());\n\t}", "@Override\n public void onTabResele...
[ "0.7758656", "0.7658743", "0.7403096", "0.72657067", "0.72542155", "0.7247856", "0.71289897", "0.7115571", "0.71088165", "0.70888114", "0.708144", "0.70780134", "0.70573986", "0.7034509", "0.70326304", "0.69707686", "0.69664913", "0.6959915", "0.6936477", "0.68945676", "0.689...
0.81094694
0
Simplest method to talk to a bot.
public ChatSemantic talk(String botName, String input) throws ClientProtocolException, IOException, JSONException, URISyntaxException { return talk(botName, null, input); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void requestBot(String s) {\n\t\tLEDManager.requestConnection(s);\n\t}", "public void action(BotInstance bot, Message message);", "public static void main(String[] args) {\n try {\n Bot bot = new Bot(TOKEN, PREFIX);\n } catch (LoginException exception) {\n exception.p...
[ "0.60895735", "0.60794234", "0.6030405", "0.60053396", "0.59179056", "0.5911396", "0.59000415", "0.58434814", "0.579655", "0.577771", "0.56871116", "0.5665931", "0.56425464", "0.5642204", "0.56071746", "0.5464434", "0.5382417", "0.53606933", "0.52630717", "0.52340126", "0.522...
0.57904744
9
Simplest method to talk to a bot.
public ChatSemantic talk(String botName, String sessionId, String input) throws ClientProtocolException, IOException, JSONException, URISyntaxException { return talk(botName, null, sessionId, input); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void requestBot(String s) {\n\t\tLEDManager.requestConnection(s);\n\t}", "public void action(BotInstance bot, Message message);", "public static void main(String[] args) {\n try {\n Bot bot = new Bot(TOKEN, PREFIX);\n } catch (LoginException exception) {\n exception.p...
[ "0.60895735", "0.60794234", "0.6030405", "0.60053396", "0.59179056", "0.5911396", "0.59000415", "0.58434814", "0.579655", "0.57904744", "0.577771", "0.56871116", "0.5665931", "0.56425464", "0.5642204", "0.56071746", "0.5464434", "0.5382417", "0.53606933", "0.52630717", "0.523...
0.4944621
52
Talk to a bot as a specific client.
public ChatSemantic talk(String botName, String clientName, String sessionId , String input) throws ClientProtocolException, IOException, JSONException, URISyntaxException { return debugBot(botName, clientName, sessionId, input, false, false, false, false, false); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void sendChat(String client, String message) {\n\t\t//enqueue(\"PRIVMSG #\"+myself+\" :.w \"+client + \" imGlitch \" + message); //whisper\n\t\tenqueue(\"PRIVMSG #\"+Executable.targetChannel+\" :imGlitch (@\"+client + \") \" + message);\n\t}", "public void sendMessage(String msg, int client) throws Except...
[ "0.6603197", "0.607574", "0.5838114", "0.58290726", "0.5805931", "0.5804432", "0.57731426", "0.5704403", "0.5699872", "0.56828564", "0.56288177", "0.5495046", "0.54933614", "0.54748976", "0.54722834", "0.5465089", "0.54584086", "0.5433908", "0.54266846", "0.5423643", "0.54080...
0.5154337
45
Most general version of talk method that returns detailed debugging information.
public ChatSemantic debugBot(String botName, String clientName, String sessionId, String input, boolean extra, boolean reset, boolean trace, boolean reload, boolean recent) throws ClientProtocolException, IOException, JSONException, URISyntaxException { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void talk() {\n\n\t}", "public void talk(){\n\t\tSystem.out.println(this.name+\"が話す\");\n\t}", "@Override\n\tpublic void talk() {\n\t\tSystem.out.println(\"黄种人-说\");\n\t}", "private static void print(Object msg){\n if (WAMClient.Debug){\n System.out.println(msg);\n }\n\n }"...
[ "0.67075723", "0.65707386", "0.6419797", "0.60716116", "0.6041021", "0.60286033", "0.5852945", "0.5850862", "0.58426976", "0.58016557", "0.5792884", "0.5750412", "0.5750412", "0.574604", "0.5730029", "0.57190794", "0.56928337", "0.56867707", "0.5675453", "0.5665509", "0.56603...
0.0
-1
helper for composing URI.
private String sep(String path) { return path == null ? "" : "/" + path; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "URI uri();", "URI createURI();", "private String encodeUri(String uri) {\n\t\t\tString newUri = \"\";\n\t\t\tStringTokenizer st = new StringTokenizer(uri, \"/ \", true);\n\t\t\twhile (st.hasMoreTokens()) {\n\t\t\t\tString tok = st.nextToken();\n\t\t\t\tif (\"/\".equals(tok)) {\n\t\t\t\t\tnewUri += \"/\";\n\t\t...
[ "0.69157636", "0.6891295", "0.67294097", "0.66306716", "0.66306716", "0.66169065", "0.65983695", "0.65250033", "0.6506474", "0.6476199", "0.64121276", "0.64119637", "0.6403751", "0.64013344", "0.63646173", "0.63423485", "0.63201207", "0.6318722", "0.631026", "0.6295279", "0.6...
0.0
-1
composing path part of URI.
private String composeUri(String mode, String botName, String kind, String fileName) throws URISyntaxException { String uri = "https://" + host; uri += sep(mode); uri += sep(appId); uri += sep(botName); uri += sep(kind); uri += sep(fileName);...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Uri decryptedPath();", "protected StringBuilder convertPath(final String path) {\n\t\tStringBuilder pathBuffer = new StringBuilder(\"/app:company_home\");\n\t\tString[] parts = path.split(\"/\");\n\n\t\tString subpath;\n\n\t\tfor(String part : parts) {\n\t\t\tsubpath = part.trim();\n\n\t\t\tif(subpath.length() >...
[ "0.6503911", "0.64211106", "0.6331955", "0.61735326", "0.605979", "0.600452", "0.5986248", "0.5986248", "0.5968517", "0.5920393", "0.5918148", "0.5867405", "0.58004314", "0.5785862", "0.57511264", "0.5731294", "0.5707411", "0.5682034", "0.5676805", "0.56532246", "0.56322515",...
0.55155724
33
base parameter for HTTP request.
private List<NameValuePair> baseParams() { List<NameValuePair> params = new ArrayList<NameValuePair>(); params.add(new BasicNameValuePair("user_key", userKey)); return params; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static String getBase(HttpServletRequest request) {\n String fullPath = request.getRequestURI();\n int baseEnd = getDividingIndex(fullPath);\n return fullPath.substring(0, baseEnd + 1);\n }", "protected String getBaseUrl() {\n return requestBaseUrl;\n }", "@Override\n\tprotected String ...
[ "0.7317801", "0.6708322", "0.66925246", "0.66673476", "0.663457", "0.65805215", "0.6569389", "0.645618", "0.63698876", "0.6360639", "0.6305787", "0.6305787", "0.6190524", "0.6189213", "0.61741084", "0.6159642", "0.61416256", "0.61337924", "0.611927", "0.6117725", "0.6107767",...
0.0
-1
composing parameter part of URI.
private String composeParams(List<NameValuePair> params) { List<NameValuePair> baseParams = baseParams(); if (params != null) baseParams.addAll(params); return "?" + URLEncodedUtils.format(baseParams, "UTF-8"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract String toURLParam();", "URISegmentWithParameter createURISegmentWithParameter();", "List<Parameter> uriParameters();", "List<Parameter> baseUriParameters();", "public interface Parametralizable {\n\n /**\n * Gets reprezentation of the contents as the URL parameters.\n * @return repreze...
[ "0.7115185", "0.65799206", "0.63650286", "0.6198095", "0.58638483", "0.58363", "0.5786002", "0.578533", "0.5753352", "0.5578465", "0.5556008", "0.5538392", "0.5525145", "0.5519719", "0.543294", "0.5412644", "0.5367186", "0.5366928", "0.5362357", "0.53588337", "0.53588337", ...
0.5882693
4
composing URI for talking to bot.
private URI talkUri(String botName) throws URISyntaxException { return new URI(composeUri("talk", botName, null, null)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String composeUri(String mode, String botName, String kind,\n String fileName) throws URISyntaxException {\n String uri = \"https://\" + host;\n uri += sep(mode);\n uri += sep(appId);\n uri += sep(botName);\n uri += sep(kind);\n uri += ...
[ "0.710671", "0.65914124", "0.65652895", "0.65652895", "0.64275134", "0.6401909", "0.6220303", "0.6218037", "0.6213053", "0.6130483", "0.604139", "0.6030572", "0.60167646", "0.598775", "0.5972603", "0.5960965", "0.5960965", "0.5960965", "0.59062713", "0.5888721", "0.58883256",...
0.74421376
0
Read response from Pandorabots server.
public String readResponse(HttpResponse httpResp) { String response = ""; try { int code = httpResp.getStatusLine().getStatusCode(); Log("Response code=" + code); InputStream is = httpResp.getEntity().getContent(); BufferedReader inb = new BufferedReader(n...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void readResponse(ClientResponse response)\r\n\t{\r\n\t// Response\r\n\tSystem.out.println();\r\n\tSystem.out.println(\"Response: \" + response.toString());\r\n\r\n\t}", "private static String receiveResponse() {\n String response = null;\n try {\n response = in.readLine()...
[ "0.7133035", "0.6891705", "0.67884725", "0.64638555", "0.62510896", "0.6226623", "0.62046915", "0.6144909", "0.6081408", "0.60668105", "0.59472287", "0.5941451", "0.59215635", "0.5919722", "0.5910656", "0.5897403", "0.5893724", "0.5876145", "0.58544034", "0.5781249", "0.57595...
0.6455758
4
This is a sample web service operation
@WebMethod(operationName = "hello") public String hello(@WebParam(name = "name") String txt) { return "Hello " + txt + " !"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) throws MalformedURLException {\n QName name=new QName(\"urn:com.seo\", \"TestWebService\");\n TestClient t=new TestClient(new URL(\"http://www.ramthoughts.com/TestWS/TestWebService?wsdl\"), name);\n// ((BindingProvider)t.getTestWSPort()).getRequestContext...
[ "0.71093273", "0.69901055", "0.69507986", "0.69194967", "0.68583536", "0.6809707", "0.673142", "0.66993725", "0.668869", "0.66842896", "0.66815275", "0.66606355", "0.66553086", "0.6652048", "0.6650112", "0.6638586", "0.6638005", "0.662354", "0.66149783", "0.66073954", "0.6576...
0.6463059
54
Inflate the menu items for use in the action bar
@Override public boolean onCreateOptionsMenu(Menu menu) { MenuInflater inflater = getMenuInflater(); inflater.inflate(R.menu.main, menu); return super.onCreateOptionsMenu(menu); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.actions, menu);\n }", "public void initializeMenuItems() {\n\t\tuserMenuButton = new MenuButton();\n\t\tmenu1 = new MenuItem(bundle.getString(...
[ "0.67000234", "0.66755563", "0.6634374", "0.66098636", "0.6607402", "0.65983576", "0.65778697", "0.656807", "0.65559876", "0.65559876", "0.6535765", "0.65320796", "0.65249866", "0.64958525", "0.6494181", "0.6484664", "0.64623153", "0.6460416", "0.64570916", "0.64554685", "0.6...
0.62174034
76
Handle presses on the action bar items
@Override public boolean onOptionsItemSelected(MenuItem item) { switch (item.getItemId()) { case android.R.id.home: onBackPressed(); return true; case R.id.scan_menu: onScan(); break; case R.id.opt_about: //onAbout(); break; case R.id.opt_exit: finish(); break; default: return su...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // Handle presses on the action bar items\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n case R.id.action_clear:\n ret...
[ "0.7173379", "0.69227743", "0.69227743", "0.69227743", "0.69227743", "0.6911944", "0.6884609", "0.6881586", "0.68243235", "0.68193024", "0.68051094", "0.6801348", "0.678705", "0.678705", "0.67608094", "0.67543995", "0.6754033", "0.674645", "0.67355984", "0.6727317", "0.672570...
0.66501373
42
Initial state of widgets
public void onScanViewReady() { updateGuiState(); if (!mInitialised) { // Broadcast receiver registerReceiver(mReceiver, mFilter); if (mBtAdapter.isEnabled()) { // Start straight away startBluetoothLeService(); } else { // Request BT adapter to be turned on Intent enableIntent = new In...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void initialState() {\r\n\t\tfor (int i = 0; i < checkBoxes.length; i++) {\r\n\t\t\tamountBoxes[i].setSelectedIndex(0);\r\n\t\t\tcheckBoxes[i].setSelected(false);\r\n\t\t}\r\n\t}", "@Override\n public final void init() {\n super.init();\n UIUtils.clearAllFields(upperPane);\n change...
[ "0.7100952", "0.6977116", "0.68640167", "0.681145", "0.6801576", "0.6779942", "0.6778236", "0.6654641", "0.65347236", "0.64910895", "0.6483942", "0.64775765", "0.64648104", "0.64600194", "0.64447856", "0.64197004", "0.64178413", "0.6412615", "0.6393355", "0.63918203", "0.6368...
0.0
-1
/Log.i(TAG, "Starting Device Activity"); mDeviceIntent = new Intent(this, DeviceActivity.class); mDeviceIntent.putExtra(DeviceActivity.EXTRA_DEVICE, mBluetoothDevice); startActivityForResult(mDeviceIntent, REQ_DEVICE_ACT);
private void startDeviceActivity() { Intent i = new Intent(MainActivity.this, DeviceService.class); i.putExtra(DeviceActivity.EXTRA_DEVICE, mBluetoothDevice); MainActivity.this.startService(i); Toast.makeText(MainActivity.this, "Starting SensorTag tracking in the background", Toast.LENGTH_LONG).show()...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void startDeviceListActivity() {\n\t\tIntent intent = new Intent(this, DeviceListActivity.class);\r\n startActivityForResult(intent, REQUEST_CONNECT_DEVICE); \r\n\t}", "public void execActivityResultDevice( int result, Intent data ) {\n \tlog_d( \"execActivityResultDevice()\" );\n \t// no ac...
[ "0.74685186", "0.74119097", "0.72821194", "0.7235937", "0.71869755", "0.7169298", "0.71298367", "0.703595", "0.7016665", "0.7010156", "0.7005279", "0.6959558", "0.695424", "0.69151133", "0.6856962", "0.685549", "0.6715882", "0.6680001", "0.663665", "0.63944954", "0.63642734",...
0.6713626
17
The creator isn't interested in any further updates
@Override public void deliverResult(ContactData result) { if (mDestroyed) { return; } mContact = result; if (result != null) { if (mObserver == null) { mObserver = new ForceLoadContentObserver(); } getContext().getConte...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void willbeUpdated() {\n\t\t\n\t}", "@Override\n\tpublic boolean update() {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean update() {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean update() {\n\t\treturn false;\n\t}", "@Override\n public boolean canUpdate() { return false; }", "...
[ "0.686052", "0.6772984", "0.6772984", "0.6772984", "0.6618868", "0.65826464", "0.65105593", "0.64300907", "0.64250124", "0.64114684", "0.64114684", "0.63960576", "0.6386318", "0.63729435", "0.6352838", "0.6337663", "0.6318793", "0.6241977", "0.62313926", "0.6206654", "0.61996...
0.0
-1
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.
@SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { weigthImballance = new javax.swing.JButton(); shockDetector = new javax.swing.JButton(); tempImballance = new javax.swing.JButton(); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Form() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public frmRectangulo() {\n initComponents();\n }", "public form() {\n ...
[ "0.7321233", "0.72922724", "0.72922724", "0.72922724", "0.7287021", "0.7250113", "0.7214902", "0.7209478", "0.71973455", "0.71915394", "0.71855843", "0.71602577", "0.7149222", "0.70949143", "0.70813066", "0.70579875", "0.6988272", "0.6978623", "0.6956488", "0.6954857", "0.694...
0.0
-1
TODO Autogenerated method stub
@Override public void addObserver(ObserverListener ob) { vector.add(ob); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public void delObserver(ObserverListener ob) { vector.remove(ob); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public void notifyObserver() { Enumeration<ObserverListener> enumd = vector.elements(); while (enumd.hasMoreElements()) { ObserverListener observerListener = enumd .nextElement(); observerListener.observer(); observerListener.obsupdata(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
Getter for the name field.
public String getName() { return name; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getName(){\n\n //returns the value of the name field\n return this.name;\n }", "public String getName() { return name.get(); }", "public String getName() {\r\n\t\treturn name.get();\r\n\t}", "public String getName() {\n return name.get();\n }", "PropertyName getName();", ...
[ "0.8404591", "0.8180093", "0.8139232", "0.81318563", "0.8063437", "0.80438507", "0.80030763", "0.80014485", "0.8000715", "0.79985684", "0.79748446", "0.7973473", "0.7969857", "0.7969857", "0.7969857", "0.7967183", "0.7958005", "0.7958005", "0.79561895", "0.7943691", "0.793874...
0.0
-1
TODO Autogenerated method stub
@Override public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
This method initializes jTextArea
private JTextField getLector() { if (lector == null) { lector = new JTextField(); lector.setBackground(java.awt.Color.black); lector.setForeground(java.awt.Color.white); lector.setFont(new java.awt.Font("Dialog", java.awt.Font.PLAIN, 10)); lector.addActionListener(new java.awt.event.ActionListene...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void init(RichTextArea textArea, Config config);", "private void setupTextArea() {\n\t\tcourseInfo = new JTextPane();\n\t\tinfoScrollPane = new JScrollPane(courseInfo);\n\t\tinfoScrollPane.setPreferredSize(new Dimension(350, 175));\n\t\tcourseInfo.setEditable(false);\n\t\tdisplay.add(infoScrollPane);\n\t}", "p...
[ "0.780365", "0.76378614", "0.74114007", "0.7370619", "0.72902566", "0.7215291", "0.71703875", "0.70695376", "0.7044251", "0.70259684", "0.69878846", "0.6985574", "0.6887758", "0.6865586", "0.685623", "0.68490547", "0.6809367", "0.67957145", "0.6793258", "0.6789865", "0.668512...
0.0
-1
This method initializes jTextArea1
private JScrollPane getConsole() { if (console == null) { console = new JTextArea(); console.setAutoscrolls(true); console.setBackground(java.awt.Color.black); console.setForeground(java.awt.Color.white); console.setRows(29); console.setEditable(false); console.setFont(new java.awt.Font("...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jScrollPane1 = new javax.swing.JScrollPane();\n jTextArea1 = new javax.swing.JTextArea();\n\n setClosable(true);\n ...
[ "0.77370214", "0.749025", "0.74585783", "0.74072325", "0.73781884", "0.72494507", "0.71718484", "0.7132639", "0.7035302", "0.7025325", "0.70024604", "0.69774485", "0.6966724", "0.6944125", "0.69048995", "0.68514466", "0.68381965", "0.6811738", "0.67967635", "0.67644405", "0.6...
0.0
-1
Returns the actual local thread leasing this lock or null if there is no lease.
public synchronized Thread getThread() { return thread; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public java.lang.String getLocalLock() {\r\n return localLock;\r\n }", "public Lock getLock();", "Thread getLocker();", "public @NotNull ReentrantLock getLock() {\n return lock;\n }", "public abstract ReentrantLock getLock();", "static TinyMT32 getThreadLlocal(final long threadId) {\n...
[ "0.631535", "0.6059686", "0.59145665", "0.5844932", "0.57844526", "0.57025564", "0.56865233", "0.5677705", "0.56749874", "0.5673472", "0.55883247", "0.5585641", "0.5584066", "0.55516636", "0.55404174", "0.5531883", "0.55219764", "0.54347765", "0.5349439", "0.53490746", "0.532...
0.51362395
33
Package accessors Returns the identifying name of this lock. Caller must synchronize on this lock token if instance was deserialized.
Object getName() { return name; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected String getLockManagerName() {\n return getName();\n }", "public String getLockId() {\n return lockId;\n }", "String getLockOwner();", "public java.lang.String getXlock () {\n\t\treturn xlock;\n\t}", "public Long getLockNum() {\n return lockNum;\n }", "public String...
[ "0.74510235", "0.7259135", "0.6918741", "0.6902952", "0.6848684", "0.67446834", "0.67412597", "0.67249167", "0.6568102", "0.655731", "0.65280294", "0.6518709", "0.6463972", "0.64177203", "0.64091897", "0.63905734", "0.6377595", "0.6281283", "0.62399054", "0.6198133", "0.61978...
0.57042867
86
Returns the lease id currently used to hold a lease on this lock or 1 if no thread currently holds this lock. Caller must synchronize on this token.
int getLeaseId() { return leaseId; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Long getLockNum() {\n return lockNum;\n }", "public int getNewNumber() {\r\n int num;\r\n num=unusedLockers.get(0);\r\n unusedLockers.remove(0);\r\n return num;\r\n }", "public String getLockId() {\n return lockId;\n }", "private long acquireActiveLea...
[ "0.6669738", "0.64350617", "0.6416516", "0.6248714", "0.61930424", "0.6160191", "0.61195284", "0.60890245", "0.6053748", "0.600425", "0.59885573", "0.5956599", "0.58937055", "0.589264", "0.58816", "0.58472335", "0.58391064", "0.5788795", "0.5728532", "0.57250214", "0.5696412"...
0.69743454
0
Returns the remotable identity of the thread currently leasing this lock or null if no thread currently holds this lock. Caller must synchronize on this lock token.
RemoteThread getLesseeThread() { return lesseeThread; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public long threadId();", "String getThreadId();", "String getLockOwner();", "long getThreadId();", "public String getLockId() {\n return lockId;\n }", "public String isLockedFor() {\n return (lockId == null ? \"\" : lockId);\n }", "public Long getLockNum() {\n return lockNum;\n ...
[ "0.59736675", "0.5956891", "0.5937961", "0.5881365", "0.5772393", "0.57491076", "0.563353", "0.56299937", "0.56298256", "0.5602942", "0.55955017", "0.55897826", "0.55469847", "0.55349857", "0.55256647", "0.551717", "0.5491891", "0.54628175", "0.54237205", "0.5405969", "0.5398...
0.0
-1
Increment usage count for this lock token. Caller must synchronize on this lock token.
void incUsage() { incUsage(1); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void incrementUsageCount() {\n usageCount++;\n }", "private synchronized void increment() {\n ++count;\n }", "@Override\n public synchronized void increment() {\n count++;\n }", "private synchronized void incrementCount()\n\t{\n\t\tcount++;\n\t...
[ "0.7243278", "0.6844822", "0.67947936", "0.67717046", "0.6770257", "0.6725894", "0.66900176", "0.6685114", "0.6636361", "0.6628884", "0.6460495", "0.6459999", "0.6450588", "0.6431477", "0.64237493", "0.6277629", "0.60977507", "0.6064523", "0.60477036", "0.6020899", "0.6017751...
0.6013421
21
Decrement usage count for this lock token. Caller must synchronize on this lock token.
void decUsage() { incUsage(-1); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void decrease() {\r\n\t\t\tsynchronized (activity.getTaskTracker()) {\r\n\t\t\t\tactivity.getTaskTracker().count--;\r\n\t\t\t\tLog.d(LOGTAG, \"Decremented task count to \" + count);\r\n\t\t\t}\r\n\t\t}", "public void decrement() {\n sync.decrement();\n }", "long decrementAndGet();", "@Override\n\t...
[ "0.6859731", "0.67018825", "0.60725015", "0.6060891", "0.6051171", "0.6035789", "0.6035789", "0.6030967", "0.5995436", "0.59384775", "0.59377956", "0.58907664", "0.5836467", "0.5821156", "0.57721287", "0.57587695", "0.57552797", "0.5700007", "0.5682404", "0.5653485", "0.56421...
0.6408394
2
Returns true if the usage count for this lock token is greater than zero. Caller must synchronize on this lock token.
boolean isBeingUsed() { return usageCount > 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean limitHit() {\r\n return (count >= maxCount);\r\n }", "public boolean getlock()\r\n\t{\r\n\t\tif(cnt > 10)\r\n\t\t{\r\n\t\t\tcnt = 0;\r\n\t\t\treturn unlocked;\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "public boolean hasUsage() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\...
[ "0.63227737", "0.6080102", "0.59576494", "0.5937266", "0.5923507", "0.5894129", "0.588973", "0.58107704", "0.5805997", "0.5790643", "0.5728902", "0.5706911", "0.56913865", "0.5632451", "0.5626983", "0.5613431", "0.5604279", "0.55949914", "0.5563142", "0.5552769", "0.55502236"...
0.64377445
0
Package operations Destroys this lock token.
synchronized void destroy() { destroyed = true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void unLock() {\n\t\t\n\t}", "@Override\r\n\tpublic void removeLockToken(String lt) {\n\t\t\r\n\t}", "void releaseLock(QName lockQName, String lockToken);", "@Override\n public void unlock() {\n }", "private void basicReleaseLock() {\n if (logger.isTraceEnabled(LogMarker.DLS_VE...
[ "0.6409373", "0.6296038", "0.6222796", "0.61327547", "0.60544336", "0.5997308", "0.59364855", "0.5904721", "0.58101785", "0.5787285", "0.5755057", "0.57505083", "0.5742096", "0.5722543", "0.57215196", "0.57215196", "0.57122016", "0.5709677", "0.5698555", "0.56883305", "0.5682...
0.0
-1
Returns the current time in absolute milliseconds for use calculating lease expiration times.
long getCurrentTime() { if (dm == null) { return -1; } return DLockService.getLockTimeStamp(dm); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private long timeNow()\n {\n // The value of 3506716800000000L is the BAT as at midnight on\n // 1-Jan-1970, which is the base of the time that the system\n // gives us. It has to be adjusted for leap seconds though.\n return (System.currentTimeMillis() * 1000L) + DUTC.get() * 100000...
[ "0.7390531", "0.6939927", "0.6849207", "0.6777828", "0.6672378", "0.6651688", "0.66412365", "0.6584683", "0.6527311", "0.6459233", "0.6453705", "0.64355785", "0.6389689", "0.63827145", "0.63633806", "0.63404673", "0.6339247", "0.6338759", "0.6332996", "0.6321068", "0.6314266"...
0.65127
9
Throws LeaseExpiredException if the calling thread's lease on this lock previously expired. The expired lease will no longer be tracked after throwing LeaseExpiredException. Caller must synchronize on this lock token.
void throwIfCurrentThreadHadExpiredLease() throws LeaseExpiredException { if (expiredLeases == null) { return; } if (expiredLeases.containsKey(Thread.currentThread())) { expiredLeases.remove(Thread.currentThread()); throw new LeaseExpiredException( "This thread's lease expired fo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setLeaseExpired(Lease lease) throws DatabaseException, IllegalArgumentException;", "private void noteExpiredLease() {\n if (logger.isTraceEnabled(LogMarker.DLS_VERBOSE)) {\n logger.trace(LogMarker.DLS_VERBOSE, \"[noteExpiredLease] {}\", thread);\n }\n if (expiredLeases == null) {\n ...
[ "0.6668896", "0.6612538", "0.5971227", "0.5923258", "0.5855366", "0.5727839", "0.5664844", "0.5624428", "0.5609926", "0.55942327", "0.55749696", "0.5493292", "0.54331934", "0.5168699", "0.513912", "0.508044", "0.50663257", "0.5064835", "0.505491", "0.5016241", "0.49824923", ...
0.8325207
0
Checks the current lease for expiration and returns true if it has been marked as expired. Caller must synchronize on this lock token.
boolean checkForExpiration() { boolean expired = false; // check if lease exists and lease expire is not MAX_VALUE if (leaseId > -1 && leaseExpireTime < Long.MAX_VALUE) { long currentTime = getCurrentTime(); if (currentTime > leaseExpireTime) { if (logger.isTraceEnabled(LogMarker.DLS_V...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isExpired()\n {\n long dtExpiry = m_dtExpiry;\n return dtExpiry != 0 && dtExpiry < getSafeTimeMillis();\n }", "public boolean isExpired() {\n return getExpiration() <= System.currentTimeMillis() / 1000L;\n }", "public boolean isExpired() {\n\...
[ "0.7620956", "0.7611809", "0.751185", "0.75048465", "0.7481616", "0.7385551", "0.7360541", "0.73601836", "0.7317631", "0.72869724", "0.71920913", "0.71920913", "0.7066882", "0.70478195", "0.7019728", "0.7002315", "0.6997926", "0.697628", "0.6915171", "0.68877393", "0.68586785...
0.87350696
0
Grants new lease to calling thread for this lock token. Synchronizes on this lock token.
synchronized void grantLock(long newLeaseExpireTime, int newLeaseId, int newRecursion, RemoteThread remoteThread) { Assert.assertTrue(remoteThread != null); Assert.assertTrue(newLeaseId > -1, "Invalid attempt to grant lock with leaseId " + newLeaseId); checkDestroyed(); checkForExpiration(); // ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void grant( String lockId ) {\n\t\tSemaphore s = threadPark.get( lockId );\n\t\tif( s != null ) {\n\t\t\ts.release();\n\t\t} else {\n\t\t\tlog.warn( \"Got a lock that nobody wanted ... \");\n\t\t\t// need to release it\n\t\t\tproxy.tell( new ReleaseLock(lockId), ActorRef.noSender());\n\t\t}\n\t}", ...
[ "0.67919713", "0.65333354", "0.6528497", "0.64760673", "0.6380715", "0.6135044", "0.6134988", "0.60962975", "0.60099334", "0.5972467", "0.59331626", "0.5913938", "0.59107625", "0.5902605", "0.58896285", "0.5884454", "0.5881604", "0.5875921", "0.5875852", "0.5875852", "0.58743...
0.7310059
0
Returns true if there's currently a lease on this lock token. Synchronizes on this lock token.
synchronized boolean isLeaseHeld() { return leaseId > -1; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isLock() {\n return isLock;\n }", "public boolean isLocked() {\n return (lockId == null ? false : true);\n }", "boolean isLeaseHeldByCurrentThread() {\n return thread == Thread.currentThread();\n }", "public boolean GetIsLock()\n {\n return this._lock;\n }", "p...
[ "0.7076264", "0.7054855", "0.7033954", "0.69610256", "0.69211817", "0.68920845", "0.68348974", "0.67611337", "0.67587894", "0.6719975", "0.6719975", "0.6600978", "0.6599064", "0.65828335", "0.6570789", "0.6535393", "0.6532406", "0.6525535", "0.6525535", "0.6524647", "0.652325...
0.77147484
0
Returns true if lease on this lock token is held by calling thread or the specified remote thread. Caller must synchronize on this lock token.
boolean isLeaseHeldByCurrentOrRemoteThread(RemoteThread remoteThread) { if (isLeaseHeldByCurrentThread()) { return true; } else { return lesseeThread != null && remoteThread != null && lesseeThread.equals(remoteThread); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean isLeaseHeldByCurrentThread() {\n return thread == Thread.currentThread();\n }", "synchronized boolean isLeaseHeld() {\n return leaseId > -1;\n }", "synchronized boolean releaseLock(int leaseIdToRelease, RemoteThread remoteThread) {\n return releaseLock(leaseIdToRelease, remoteThread, true);\...
[ "0.7739496", "0.7269241", "0.6932396", "0.6778441", "0.67611396", "0.67611396", "0.65058625", "0.6416763", "0.64155173", "0.63804454", "0.63695586", "0.63375634", "0.63190395", "0.6262485", "0.6241186", "0.6149455", "0.61018485", "0.60222363", "0.5995633", "0.5915328", "0.591...
0.8194247
0
Returns true if lease on this lock token is held by calling thread. Caller must synchronize on this lock token.
boolean isLeaseHeldByCurrentThread() { return thread == Thread.currentThread(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "synchronized boolean isLeaseHeld() {\n return leaseId > -1;\n }", "public boolean isLocked() {\n return (lockId == null ? false : true);\n }", "boolean isLeaseHeldByCurrentOrRemoteThread(RemoteThread remoteThread) {\n if (isLeaseHeldByCurrentThread()) {\n return true;\n } else {\n retur...
[ "0.8124494", "0.70425785", "0.7014745", "0.7008698", "0.6986029", "0.6986029", "0.69463897", "0.69015443", "0.68738943", "0.68343574", "0.68082505", "0.67554957", "0.6750553", "0.66747", "0.66453236", "0.6613602", "0.660487", "0.65978336", "0.6576115", "0.6570891", "0.6565193...
0.7968533
1
Returns true if this lock token should be ignored for grantor recovery. Caller must synchronize on this lock token.
synchronized boolean ignoreForRecovery() { return ignoreForRecovery; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic boolean isAccountNonLocked() {\n\t\treturn !locked;\n\t}", "@Override\n public boolean isAccountNonLocked() {\n return Boolean.TRUE;\n }", "@Override\r\n\tpublic boolean isAccountNonLocked() {\n\t\treturn true;\r\n\t}", "@Override\r\n\tpublic boolean isAccountNonLocked() {\n\...
[ "0.725957", "0.7160446", "0.71554005", "0.71554005", "0.71509236", "0.71509236", "0.71509236", "0.71509236", "0.71509236", "0.71509236", "0.71509236", "0.71509236", "0.71509236", "0.71509236", "0.71509236", "0.71509236", "0.71509236", "0.71509236", "0.7137365", "0.7132936", "...
0.6557925
46
Sets whether or not this lock token should be ignored for grantor recovery. Caller must synchronize on this lock token.
void setIgnoreForRecovery(boolean value) { ignoreForRecovery = value; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setAccountNonLocked(boolean accountNonLocked);", "public void setExempt(boolean exempt);", "public void setUnblockable(boolean blockable);", "@Override\r\n public boolean isAccountNonLocked() {\r\n return true;\r\n }", "public DBMaker disableLocking(){\n this.lockingDisabled = true...
[ "0.6683396", "0.6311391", "0.6280707", "0.61538255", "0.61463845", "0.6145591", "0.61389947", "0.61389947", "0.61389947", "0.6077264", "0.6058951", "0.5993178", "0.59556884", "0.5953788", "0.595339", "0.595339", "0.5938631", "0.5930586", "0.5930586", "0.5930586", "0.5930586",...
0.60878277
9
Releases the current lease on this lock token. Synchronizes on this lock token.
synchronized boolean releaseLock(int leaseIdToRelease, RemoteThread remoteThread) { return releaseLock(leaseIdToRelease, remoteThread, true); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void basicReleaseLock() {\n if (logger.isTraceEnabled(LogMarker.DLS_VERBOSE)) {\n logger.trace(LogMarker.DLS_VERBOSE, \"[DLockToken.basicReleaseLock] releasing ownership: {}\",\n this);\n }\n\n leaseId = -1;\n lesseeThread = null;\n leaseExpireTime = -1;\n thread = null;\n ...
[ "0.7202188", "0.7087007", "0.69830066", "0.6674934", "0.656021", "0.64240927", "0.6337076", "0.61936307", "0.61648434", "0.6082766", "0.60497284", "0.5918811", "0.59003013", "0.5899162", "0.5808451", "0.5794609", "0.57485104", "0.5724069", "0.56252384", "0.5609723", "0.560346...
0.62770444
7
Releases the current lease on this lock token. Synchronizes on this lock token.
synchronized boolean releaseLock(int leaseIdToRelease, RemoteThread remoteThread, boolean decRecursion) { if (leaseIdToRelease == -1) { return false; } if (destroyed) { return true; } // return false if not locked by calling thread if (!isLeaseHeld(leaseIdToRelease) || !isLea...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void basicReleaseLock() {\n if (logger.isTraceEnabled(LogMarker.DLS_VERBOSE)) {\n logger.trace(LogMarker.DLS_VERBOSE, \"[DLockToken.basicReleaseLock] releasing ownership: {}\",\n this);\n }\n\n leaseId = -1;\n lesseeThread = null;\n leaseExpireTime = -1;\n thread = null;\n ...
[ "0.7202188", "0.7087007", "0.69830066", "0.6674934", "0.656021", "0.64240927", "0.6337076", "0.62770444", "0.61936307", "0.61648434", "0.6082766", "0.60497284", "0.5918811", "0.59003013", "0.5899162", "0.5808451", "0.5794609", "0.57485104", "0.5724069", "0.56252384", "0.56097...
0.53149736
47