query
stringlengths
7
33.1k
document
stringlengths
7
335k
metadata
dict
negatives
listlengths
3
101
negative_scores
listlengths
3
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
TODO Autogenerated method stub
@Override public List<Courseschedule> getCourseschedulesByCourseId(int courseId) { session = sessionFactory.openSession(); Transaction tran = session.beginTransaction(); String hql = "from Courseschedule where courseId=:courseId and state=:state"; List<Courseschedule> lists = session.createQuery(hql).setInteger("courseId", courseId).setInteger("state", 0).list(); tran.commit(); session.close(); logger.debug("use the method named :getCourseschedulesByCourseId(int courseId)"); if (lists.size() > 0) { return lists; } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public List<Courseschedule> getCourseschedulesByCourseState(int courseState) { session = sessionFactory.openSession(); Transaction tran = session.beginTransaction(); String hql = "from Courseschedule where State=:courseState and state =:state"; List<Courseschedule> lists = session.createQuery(hql).setInteger("courseState", courseState).setInteger("state", 0).list(); tran.commit(); session.close(); logger.debug("use the method named :getCourseschedulesByCourseState(int courseState) "); if (lists.size() > 0) { return lists; } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public void deleteCoursescheduleById(int id) { session = sessionFactory.openSession(); Transaction transaction = session.beginTransaction(); //session.delete(getCoursescheduleById(id)); String hql = "update Courseschedule set state =:state ,modifiedTime=:modifiedTime where id=:id"; int deleteNumber= session .createQuery(hql) .setInteger("state", 1) .setInteger("id", id) .setTimestamp("modifiedTime",new Date()) .executeUpdate(); if(deleteNumber>0){ logger.debug("use the method named :deleteCourseschedule(Courseschedule courseschedule) ,delete success!"); } transaction.commit(); session.close(); }
{ "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 modifyCourseschedule(Courseschedule courseschedule) { session = sessionFactory.openSession(); Transaction transaction = session.beginTransaction(); String hql="update Courseschedule set teacherId=:teacherId" +", courseId=:courseId" +", classroomId=:classroomId" +", scheduleDate=:scheduleDate" +", startTime=:startTime" +", endTime=:endTime" +", reservationStartTime=:reservationStartTime" +", reservationEndTime=:reservationEndTime" +", cancellationStartTime=:cancellationStartTime" +", cancellationEndTime=:cancellationEndTime" +", checkinEndTime=:checkinEndTime" +", modifiedTime=:modifiedTime" +" where id=:id"; int rtn=session.createQuery(hql) .setInteger("teacherId", courseschedule.getTeacherId()) .setInteger("courseId", courseschedule.getCourseId()) .setInteger("classroomId", courseschedule.getClassroomId()) .setDate("scheduleDate", courseschedule.getScheduleDate()) .setString("startTime", courseschedule.getStartTime()) .setString("endTime",courseschedule.getEndTime()) .setTimestamp("reservationStartTime", courseschedule.getReservationStartTime()) .setTimestamp("reservationEndTime", courseschedule.getReservationEndTime()) .setTimestamp("cancellationStartTime", courseschedule.getCancellationStartTime()) .setTimestamp("cancellationEndTime", courseschedule.getCancellationEndTime()) .setString("checkinEndTime", courseschedule.getCheckinEndTime()) .setTimestamp("modifiedTime", new Date()) .setInteger("id", courseschedule.getId()) .executeUpdate(); //session.saveOrUpdate(Courseschedule); if(rtn>0){ logger.debug("use the method named :modifyCourseschedule(Courseschedule Courseschedule)"); } transaction.commit(); session.close(); //logger.debug("use the method named :modifyCourseschedule(Courseschedule Courseschedule)"); }
{ "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 List<Courseschedule> getCourseschedulesByTeacherId(int teacherId) { session = sessionFactory.openSession(); Transaction tran = session.beginTransaction(); String hql = "from Courseschedule where teacherId=:teacherId and state=:state"; @SuppressWarnings("unchecked") List<Courseschedule> lists = session.createQuery(hql).setInteger("teacherId", teacherId).setInteger("state", 0).list(); tran.commit(); session.close(); logger.debug("use the method named :getCourseschedulesByTeacherId(int teacherId)"); if (lists.size() > 0) { return lists; } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public List<Integer> getAllTeacherId() { session = sessionFactory.openSession(); Transaction tran = session.beginTransaction(); String hql = "select id from Teacher where state=:state"; @SuppressWarnings("unchecked") List<Integer> lists = session.createQuery(hql).setInteger("state", 0).list(); tran.commit(); session.close(); logger.debug("use the method named :getAllTeacherId()"); if (lists.size() > 0) { return lists; } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override //得到任一都是老师对应的课程种类Id public List<Integer> getAllcourseCategoryIDsFormTeacher(int teacherId) { session = sessionFactory.openSession(); Transaction tran = session.beginTransaction(); String hql = "select courseCategoryIds from Teacher where state=:state and id=:teacherId"; @SuppressWarnings("unchecked") List<String> lists = session.createQuery(hql).setInteger("state", 0).setInteger("teacherId",teacherId).list(); tran.commit(); session.close(); List<Integer> list =new ArrayList<Integer>(); logger.debug("use the method named :getAllcourseCategoryIDsFormTeacher(int teacherId)"); if (lists.size() > 0) { String[] target= lists.get(0).split(","); for(int i=0;i<target.length;i++){ list.add(Integer.parseInt(target[i])); } } return list; }
{ "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 //得到老师对应的课程Id public List<Integer> getAllCourseIdOfTeacherFromCourse(List<Integer> courseCategoryIDs) { session = sessionFactory.openSession(); Transaction tran = session.beginTransaction(); String hql = "select iD from CourseEntry where state=:state and id in(:list)"; @SuppressWarnings("unchecked") List<Integer> lists = session.createQuery(hql).setInteger("state", 0).setParameterList("list", courseCategoryIDs).list(); tran.commit(); session.close(); logger.debug("use the method named :getAllcourseCategoryIDsFormTeacher(int teacherId)"); if (lists.size() > 0) { return lists; } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override //得到任一课程对应的教室ID public List<Integer> getAllClassroomIdOfCourse(int courseId) { session = sessionFactory.openSession(); Transaction tran = session.beginTransaction(); String hql = "select id from Classroom where state=:classroomState and yogaCludId=( select yogaClubID from CourseEntry where id=(:courseId) and state=:courseState )"; @SuppressWarnings("unchecked") List<Integer> lists = session.createQuery(hql).setInteger("classroomState", 0).setInteger("courseId", courseId).setInteger("courseState", 0).list(); tran.commit(); session.close(); logger.debug("use the method named :getAllClassroomIdOfCourse(int courseId)"); if (lists.size() > 0) { return lists; } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
Validate if Add place Api is working as expected given > All Input Details when > Submit the APIresource, http method Then > Validate the response Content of the file to String > Content of file can convert into Byte> And then convert Byte data to String
public static void main(String[] args) throws IOException { RestAssured.baseURI="https://rahulshettyacademy.com"; String response=given().log().all().queryParam("key", "qaclick123").header("Content-Type","application/json") //.body(Payload.AddPlace()).when().post("maps/api/place/add/json") /*This will help to convert the file to an byte format first and then it coverts the byte format to String */ .body(new String(Files.readAllBytes(Paths.get("C:\\Users\\swath\\eclipse-workspace\\RestAssured_Rahul\\InputFiles\\Files.json")))) .when().post("maps/api/place/add/json") .then().assertThat().statusCode(200).body("scope",equalTo("APP")) .header("Server", "Apache/2.4.18 (Ubuntu)").extract().response().asString(); System.out.println(response); JsonPath js=new JsonPath(response);//JsonPath is used for Parsing JSON String placeid=js.getString("place_id"); String id=js.getString("id"); System.out.println("Placeid is :"+placeid); System.out.println("Id is"+id); //Update Place String newAddress="Summer Walk, Africa"; given().log().all().queryParam("Key", "qaclick123").header("Content-Type","application/json") .body("{\r\n" + "\"place_id\":\""+placeid+"\",\r\n" + "\"address\":\""+newAddress+"\",\r\n" + "\"key\":\"qaclick123\"\r\n" + "}\r\n" + "") .when().put("maps/api/place/update/json") .then().assertThat().log().all().statusCode(200).body("msg", equalTo("Address successfully updated")); //Get Place String getPlaceResponse=given().log().all().queryParam("key", "qaclick123") .queryParam("place_id",placeid) .when().get("maps/api/place/get/json") .then().assertThat().log().all().statusCode(200).extract().response().asString(); System.out.println("GetPlaceResponse"+getPlaceResponse); JsonPath js1=ReUsableMethods.rawToJson(getPlaceResponse); String actual=js1.getString("address"); System.out.println("Actualaddress"+actual); Assert.assertEquals(actual, newAddress); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Multipart\n @POST(\"/SaveServiceRequest\")\n void saveServicesDetailsWithoutbpFile(@Part(\"tabella\") TypedString tabella,\n @Part(\"action\") TypedString action,\n @Part(\"idDIP\") TypedString idDIP,\n ...
[ "0.59463495", "0.5910216", "0.5905575", "0.58228755", "0.5702593", "0.5558897", "0.55446875", "0.5521165", "0.5506193", "0.55031866", "0.54221123", "0.53675777", "0.5363752", "0.53504866", "0.5344989", "0.5321443", "0.5300718", "0.5295092", "0.5282748", "0.52823085", "0.52787...
0.5615844
5
Default constructor in JavaBean style. Needed to ensure compatibility with thirdparty frameworks such as Spring.
public QueueSenderSession () { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Bean() {\n\t}", "public SampleBean() {\n }", "public PersonBean() {\n\t}", "public PapelBean() {\n }", "public CampingBean() {\n }", "public JavaBeans() {\r\n\t\tsuper();\r\n\t}", "defaultConstructor(){}", "public userBean() {\r\n }", "public ProxyBean() {\n }", "public ...
[ "0.7390116", "0.73346114", "0.72934073", "0.70250773", "0.7001048", "0.69705266", "0.69478667", "0.68892574", "0.6849018", "0.68038994", "0.6797275", "0.679239", "0.679239", "0.6775534", "0.6772583", "0.6772583", "0.67668", "0.67527074", "0.66679", "0.6630015", "0.6584477", ...
0.0
-1
If this session is used for sending request/reply messages, then this property indicates the queue to where the replies are to be sent (optional). The session uses this to set the JMSReplyTo header accordingly. This property can be omitted if no reply is needed. The replyToQueue should be in the same JMS vendor domain as the send queue. To cross domains, configure a bridge for both the request and the reply channels.
public void setReplyToQueue ( Queue queue ) { setReplyToDestination ( queue ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getReplyTo() {\n return replyTo;\n }", "public void setReplyTo(String tmp) {\n this.replyTo = tmp;\n }", "@Override\n\t\t\tpublic Optional<IAMQPQueue> replyTo() {\n\t\t\t\treturn null;\n\t\t\t}", "@Override\n\t\t\tpublic Optional<IAMQPQueue> replyTo() {\n\t\t\t\treturn null;\n\t\t\t}", ...
[ "0.64353496", "0.64204633", "0.62783176", "0.62783176", "0.6130315", "0.6063206", "0.6055024", "0.5901737", "0.5757297", "0.5757297", "0.5740015", "0.5595942", "0.5482496", "0.54706275", "0.5300185", "0.5271372", "0.52660143", "0.49452835", "0.4805789", "0.4805789", "0.474985...
0.73554856
0
Gets the queue where replies are expected, or null if not applicable (or if the replyToDestination is not a queue but a topic).
public Queue getReplyToQueue () { Queue ret = null; Destination dest = getReplyToDestination(); if ( dest instanceof Queue ) { ret = ( Queue ) dest; } return ret; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\t\tpublic Optional<IAMQPQueue> replyTo() {\n\t\t\t\treturn null;\n\t\t\t}", "@Override\n\t\t\tpublic Optional<IAMQPQueue> replyTo() {\n\t\t\t\treturn null;\n\t\t\t}", "default String replyQueue() {\n return (String) metadata().get(\"x-reply-queue\");\n }", "@Override\n\t\t\tpu...
[ "0.6899815", "0.6899815", "0.67064315", "0.5909166", "0.5909166", "0.5759679", "0.573385", "0.573385", "0.5732849", "0.568869", "0.5662355", "0.54191905", "0.5346587", "0.5315862", "0.5315862", "0.5313898", "0.5260778", "0.52601016", "0.525571", "0.5240786", "0.5235067", "0...
0.7584012
0
Set the queue to use for sending (required).
public void setQueue ( Queue queue ) { setDestination ( queue ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setRequestQueue(BlockingQueue q)\n {\n queue = q;\n }", "public void declareQueue() {\n try {\n mChannel.queueDeclare();\n } catch (IOException e) {\n e.printStackTrace();\n }\n \n }", "public void setReplyToQueue ( Queue queue )\r\n ...
[ "0.7272996", "0.6863424", "0.67504793", "0.65345037", "0.6425495", "0.63380605", "0.62954205", "0.6276279", "0.62543905", "0.62543905", "0.6210886", "0.61969036", "0.6191321", "0.6166212", "0.6129712", "0.6129712", "0.6078642", "0.6006602", "0.59809345", "0.59693664", "0.5910...
0.78047097
0
Set the queue connection factory, needed to create or refresh connections (required).
public void setQueueConnectionFactoryBean ( QueueConnectionFactoryBean bean ) { setAbstractConnectionFactoryBean ( bean ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setConnectionFactory(AbstractConnectionFactory connectionFactory) {\n\t\tif (connectionFactory instanceof AbstractClientConnectionFactory) {\n\t\t\tthis.clientConnectionFactory = connectionFactory;\n\t\t} else {\n\t\t\tthis.serverConnectionFactory = connectionFactory;\n\t\t\tconnectionFactory.registerS...
[ "0.6280804", "0.6230362", "0.61843115", "0.6162698", "0.60856354", "0.608113", "0.6036011", "0.6033309", "0.5912113", "0.5747734", "0.5714532", "0.57087123", "0.57076436", "0.56895", "0.5668726", "0.5660457", "0.56358093", "0.560821", "0.5544954", "0.5541321", "0.5498612", ...
0.6646671
0
An object that has a type
public interface ITypeable { public Type getType(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract boolean isObject(T type);", "@Override\n public Class<?> getObjectType() {\n return this.type;\n }", "abstract public Type getType();", "public abstract Type getType();", "type getType();", "abstract public Type type();", "public abstract String getObjectType();", "public...
[ "0.7320125", "0.7019329", "0.6844432", "0.68095934", "0.6805549", "0.6714365", "0.66643256", "0.66613764", "0.6640202", "0.6640202", "0.663831", "0.663831", "0.663831", "0.663831", "0.663831", "0.663831", "0.663831", "0.663831", "0.663831", "0.663831", "0.663831", "0.662830...
0.0
-1
JDBC driver name and database URL
public Map<String, Map<String, List<String>>> dbMatch (Map<String, Map<String, List<String>>> outputVal) { final String DB_URL = "jdbc:mysql://localhost/extractor"; // Database credentials final String USER = ""; final String PASS = ""; Connection conn = null; Statement stmt = null; ArrayList<String> auditorResultsFromDB = new ArrayList<String>(); Map<String, Map<String, List<String>>> dbMatchofAuditor = new HashMap<String, Map<String,List<String>>>(); Map<String, List<String>> filteredValForSynonymMatchingInDB = new HashMap<String, List<String>>(); List<String> filteredValues = new ArrayList<String>(); for (Map.Entry<String, Map<String, List<String>>> entry : outputVal.entrySet()) { String dataPoint = entry.getKey(); Map<String, List<String>> InnerMap = entry.getValue(); for (Map.Entry<String, List<String>> innerMapEntry : InnerMap.entrySet()) { String keyword = innerMapEntry.getKey(); for (String value : innerMapEntry.getValue()) { if (auditorResultsFromDB.contains(value)) { filteredValues.add(value); } } filteredValForSynonymMatchingInDB.put(keyword, filteredValues); } dbMatchofAuditor.put(dataPoint, filteredValForSynonymMatchingInDB); } try { // STEP 2: Register JDBC driver Class.forName("com.mysql.jdbc.Driver"); // STEP 3: Open a connection System.out.println("Connecting to database..."); conn = DriverManager.getConnection(DB_URL, USER, PASS); // STEP 4: Execute a query System.out.println("Creating statement..."); stmt = conn.createStatement(); String sql; sql = "select name from auditors"; ResultSet rs = stmt.executeQuery(sql); // STEP 5: Extract data from result set while (rs.next()) { auditorResultsFromDB.add(rs.getString("name")); } // STEP 6: Clean-up environment rs.close(); stmt.close(); conn.close(); } catch (SQLException se) { // Handle errors for JDBC se.printStackTrace(); } catch (Exception e) { // Handle errors for Class.forName e.printStackTrace(); } finally { // finally block used to close resources try { if (stmt != null) stmt.close(); } catch (SQLException se2) { } // nothing we can do try { if (conn != null) conn.close(); } catch (SQLException se) { se.printStackTrace(); } // end finally try } // end try return dbMatchofAuditor; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getDriver() {\n return jdbcDriver;\n }", "public String getJdbcDriver()\n {\n return getDriverDobj() == null ? \"\" : getDriverDobj().getDriver();\n }", "String getJdbcDriverClassName();", "public String getJdbcDriver() {\n if(isJakartaNamespace()) {\n r...
[ "0.73956764", "0.7342531", "0.7333962", "0.7298274", "0.7284385", "0.7235141", "0.69932944", "0.6884775", "0.679971", "0.67953837", "0.67878413", "0.67778766", "0.67016804", "0.66884553", "0.6671249", "0.6665197", "0.6665007", "0.66462743", "0.6639862", "0.6632562", "0.662515...
0.0
-1
Intent intent = new Intent(MainActivity.this, ForgotPasswordActivity.class); startActivity(intent);
@Override public void onClick(View v) { mAuth.sendPasswordResetEmail(email) .addOnCompleteListener(new OnCompleteListener<Void>() { @Override public void onComplete(@NonNull Task<Void> task) { if (task.isSuccessful()) { Log.d(TAG, "Email sent."); messageDisplay.setText("Reset Email Sent Successfully!"); Toast.makeText(ForgotPasswordActivity.this, "Reset Email Sent Successfully!", Toast.LENGTH_SHORT).show(); } else { //display some message here messageDisplay.setText("User Does Not Exist"); Toast.makeText(ForgotPasswordActivity.this, "User Does Not Exist", Toast.LENGTH_SHORT).show(); } } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void onClick(View v) {\n Intent i = new Intent(getApplicationContext(), ForgotPassword.class);\r\n startActivity(i);\r\n }", "private void onForgetPwd() {\n Intent intent = new Intent(this, ForgotPasswordActivity.class);\n startActivity(intent);\n ...
[ "0.89392394", "0.845883", "0.80393296", "0.7930714", "0.7810733", "0.7678914", "0.7636769", "0.76188624", "0.76049984", "0.73865485", "0.73826855", "0.73490715", "0.73178935", "0.73178935", "0.7288033", "0.7284945", "0.72805184", "0.725085", "0.72384316", "0.7219992", "0.7132...
0.0
-1
Gets the Citizen NPC instance
public NPC getNPC(){ return CitizensAPI.getNPCRegistry().getById(id); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static NPC createNPC(){\n\t\treturn new NPC();\n\t}", "public NPC GetStartingNPCInstance() {\n\t\t//load up starting NPC information\n\t\tSimpleQuestStartNPC startingNPC = null;\n\t\tif (!config.contains(QuestConfigurationField.START.getKey())) {\n\t\t\tQuestManagerPlugin.questManagerPlugin.getLogger().in...
[ "0.7756492", "0.6249996", "0.591108", "0.5794599", "0.57132643", "0.56808996", "0.5637352", "0.5605238", "0.5512991", "0.55042166", "0.55033976", "0.5502015", "0.5492664", "0.54857814", "0.54624325", "0.5456288", "0.54528296", "0.5452085", "0.5449492", "0.5443133", "0.5433973...
0.80361456
0
Add an item to collectedItems (BYPASSING limits)
public void collect(int amount){ this.collectedItems += amount; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void addItem(ItemType item) {\n if (curArrayIndex > items.length - 1) {\n System.out.println(item.getDetails() + \" - This bin is full. Item cannot be added!\");\n }\n else if (item.getWeight() + curWeight <= maxWeight) {\n curWeight += item.getWeigh...
[ "0.65428144", "0.6529451", "0.64860743", "0.6470641", "0.6444791", "0.637822", "0.6372789", "0.63401663", "0.63212055", "0.6266036", "0.62245613", "0.6218878", "0.6168588", "0.6153211", "0.61428267", "0.6091831", "0.60843086", "0.6072436", "0.6064035", "0.6057313", "0.6042947...
0.68200535
0
Reward function for each delay
public void reward(){ setLastDrop(System.currentTimeMillis()); collect(1); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void giveReward(BPlayer bPlayer, int tier, int status);", "public double getDelay();", "public abstract int delay();", "double getTotalReward();", "public abstract int getReward(int initialState, int initialAction);", "public void createExpReward() {\n try {\n int exp = RandomBenefitMod...
[ "0.6454999", "0.6233673", "0.62176406", "0.6090945", "0.5969436", "0.5909049", "0.58888775", "0.5798584", "0.5791707", "0.5710346", "0.5706744", "0.5685913", "0.5670717", "0.56495214", "0.56342626", "0.5622211", "0.56096154", "0.55837435", "0.55836445", "0.5561599", "0.555008...
0.6852294
0
Checks if the NPC is ready to reward
public boolean canDrop(){ return this.collectedItems < STORAGE_AMOUNT && System.currentTimeMillis() - lastDrop >= delayInMillis; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean hasReward() {\n return result.hasReward();\n }", "boolean hasGemReward();", "public boolean checkToProceed(){\n return getGame().getCurrentPlayer().getRemainingActions() > 0;\n }", "public void checkGameStatus() {\n everyTenthGoalCongrats();\n randomPopUpBec...
[ "0.66810423", "0.6643277", "0.6602941", "0.65881366", "0.6555362", "0.6444684", "0.64036673", "0.6326595", "0.6310027", "0.6284341", "0.6280721", "0.6243485", "0.6242625", "0.6185673", "0.6185673", "0.6185673", "0.61310494", "0.61096805", "0.61096805", "0.6071609", "0.6071182...
0.0
-1
Creates a cache with the given parameters.
public ICache(int delay, int size, String name) { this(null, delay, size, name); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private CacheWrapper<AccessPointIdentifier, Integer> createCache() {\n return new CacheWrapper<AccessPointIdentifier, Integer>() {\n \n @Override\n public void put(AccessPointIdentifier key, Integer value) {\n cache.put(key, value);\n }\n ...
[ "0.73877287", "0.729058", "0.71364546", "0.6917031", "0.6615808", "0.6340602", "0.6319634", "0.62726855", "0.6263993", "0.6248641", "0.6236268", "0.6213177", "0.6212474", "0.6187425", "0.61762965", "0.6137488", "0.6114412", "0.6101004", "0.60637283", "0.60598063", "0.604083",...
0.0
-1
Allow to continue the search for a key in another instance.
public final synchronized void setParent(final ICache<K, V, D> parent) { ICache<K, V, D> current = parent; while (current != null) { if (current == this) throw new IllegalArgumentException("Cycle detected, cannot set parent to " + parent); current = current.getParent(); } this.parent = parent; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public V search(K key);", "public abstract boolean lookup(Key key);", "public ServiceInstance queryInstanceByKey(ServiceInstanceQuery query);", "protected void setSearchKey(Key key)\n\t{\n\t\tint last_idx = _searchKeyList.size() - 1 ;\n\t\t_searchKeyList.set(last_idx, key) ;\n\t}", "public String getFoundK...
[ "0.57904524", "0.578458", "0.57463574", "0.568326", "0.5578584", "0.55723447", "0.5544699", "0.54415226", "0.5390093", "0.53494436", "0.533322", "0.5323163", "0.5308947", "0.5284808", "0.52628326", "0.5262176", "0.5236281", "0.5232994", "0.52319074", "0.5209356", "0.51927006"...
0.0
-1
Tell this cache that we're in process of getting the value for key, so if someone else ask have them wait. ATTN after calling this method you MUST call put() or removeRunning(), otherwise get() will always block for key.
private final synchronized boolean addRunning(final CacheItem<K, V, D> val) { if (!this.isRunning(val.getKey())) { // ATTN this can invalidate val val.addToWatchers(); if (val.getRemovalType() == null) { this.running.put(val.getKey(), val); return true; } } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n protected ICacheElement<K, V> processGet(final K key)\r\n {\r\n if (!isAlive())\r\n {\r\n log.error(\"{0}: No longer alive so returning null for key = {1}\",\r\n logCacheName, key);\r\n return null;\r\n }\r\n\r\n log.debug(\"{...
[ "0.6628994", "0.62559396", "0.6209665", "0.6129318", "0.60727876", "0.6055649", "0.601326", "0.5896277", "0.58916426", "0.58859015", "0.5865594", "0.5832625", "0.58170176", "0.57894653", "0.56786674", "0.5678465", "0.5662511", "0.56545585", "0.5635882", "0.56202656", "0.55821...
0.52844495
59
return null if the item wasn't added to this
final CacheItem<K, V, D> getRunningValFromRes(final CacheResult<V> cacheRes) { if (cacheRes.getState() != CacheResult.State.NOT_IN_CACHE) throw new IllegalArgumentException("Wrong state : " + cacheRes.getState()); if (cacheRes.getVal() == null) { // happens when check() is called and ICacheSupport is dead, i.e. this.running was not // modified and CacheResult.getNotInCache() was returned assert cacheRes == CacheResult.getNotInCache(); } else { if (cacheRes.getVal().getCache() != this) throw new IllegalArgumentException("Not running in this cache"); assert cacheRes.getVal().getState() == CacheItem.State.RUNNING || cacheRes.getVal().getState() == CacheItem.State.INVALID; } @SuppressWarnings("unchecked") final CacheItem<K, V, D> res = (CacheItem<K, V, D>) cacheRes.getVal(); return res; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\t\tpublic Item getItem() {\n\t\t\treturn null;\r\n\t\t}", "public boolean hasItem() {\n return null != item;\n }", "public boolean hasItem() {\n return (this.curItem != null);\n }", "public boolean hasItem() {\n return this.item != null;\n }", "@Override\n\tprotected b...
[ "0.6440792", "0.6270039", "0.62111247", "0.61784226", "0.6093627", "0.60468215", "0.6045158", "0.5975305", "0.5975305", "0.5975305", "0.5975305", "0.5975305", "0.5975305", "0.5975305", "0.5975305", "0.5950667", "0.59148663", "0.59148663", "0.58989924", "0.58945054", "0.588449...
0.0
-1
Check if key is in cache, in that case returns the value otherwise adds key to running and returns NOT_IN_CACHE.
public final CacheResult<V> check(K key) { return this.check(key, Collections.<D> emptySet()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean inCache(String key);", "boolean isKeyInCache(Object key);", "public boolean isStoredInCache() {\r\n return lockValueStored == IN_CACHE;\r\n }", "private final synchronized boolean addRunning(final CacheItem<K, V, D> val) {\n if (!this.isRunning(val.getKey())) {\n //...
[ "0.76800317", "0.68858236", "0.6585182", "0.63484406", "0.62794983", "0.627604", "0.6229067", "0.5974194", "0.59286743", "0.5924476", "0.59131044", "0.5900657", "0.58935636", "0.5819131", "0.5807906", "0.5786939", "0.57499313", "0.5739096", "0.5715144", "0.56964356", "0.56782...
0.0
-1
Put a result which doesn't depend on variable data in this cache.
public final CacheItem<K, V, D> put(K sel, V res) { return this.put(sel, res, Collections.<D> emptySet()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void cacheResult(DataEntry dataEntry);", "public void cacheResult(PlanoSaude planoSaude);", "public void cacheResult(ua.org.gostroy.guestbook.model.Entry3 entry3);", "public static void cacheResult(Term term) {\n\t\tgetPersistence().cacheResult(term);\n\t}", "public void cacheResult(Todo todo);", ...
[ "0.7400988", "0.675053", "0.658428", "0.6577154", "0.65648127", "0.6491804", "0.6455264", "0.63985866", "0.63057846", "0.628407", "0.6279037", "0.6248926", "0.62419665", "0.62014604", "0.6157452", "0.6119122", "0.6102586", "0.6101728", "0.609935", "0.60578275", "0.6046127", ...
0.0
-1
Put a result in this cache.
public final CacheItem<K, V, D> put(K sel, V res, Set<? extends D> data) { return this.put(sel, res, data, this.delay * 1000); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void cacheResult(DataEntry dataEntry);", "public void putAResult(Result result) {\n restTemplate.exchange(\n queueUrl + \"/putAResult\",\n HttpMethod.POST,\n new HttpEntity<>(result),\n String.class);\n }", "public void add(R result) ...
[ "0.7002123", "0.6686644", "0.66595316", "0.6613794", "0.65100175", "0.6497364", "0.6450506", "0.63674575", "0.6340503", "0.6329023", "0.6295024", "0.6279141", "0.6273766", "0.6258748", "0.6252927", "0.6240423", "0.6215263", "0.62125945", "0.6193365", "0.61894727", "0.6171255"...
0.0
-1
Get the remaining time before the passed key will be removed.
public final long getRemainingTime(K key) { final CacheItem<K, V, D> val; synchronized (this) { val = this.cache.get(key); } if (val == null) return -1; return val.getRemainingTimeoutDelay(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Duration getRemainingTime();", "Double getRemainingTime();", "public float getRemainingTime () {\n\t\treturn duration - timer < 0 ? 0 : duration - timer;\n\t}", "public int decr(int curtTime, int key, int delta) {\n if (!cache.containsKey(key)) {\n return Integer.MAX_VALUE;\n }\n ...
[ "0.6810434", "0.675777", "0.6468604", "0.64015067", "0.63057375", "0.6258551", "0.6245234", "0.6188537", "0.61763334", "0.59008765", "0.58897936", "0.587811", "0.5784445", "0.5775105", "0.57161677", "0.57008994", "0.56980604", "0.5665224", "0.5588048", "0.5583846", "0.5549795...
0.75368845
0
do the toString() on subject only if necessary
private final void log(String msg, Object subject) { if (Log.get().isLoggable(LEVEL)) Log.get().log(LEVEL, msg + ": " + subject); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String toString() {\n return subjectName;\n }", "java.lang.String getSubject();", "java.lang.String getSubject();", "java.lang.String getSubject();", "public String toString()\r\n {\r\n return super.toString() + \", subject: \" + mySubject + \", salary: \"\r\n + mySala...
[ "0.6633979", "0.65103513", "0.65103513", "0.65103513", "0.62735087", "0.62351334", "0.6075583", "0.6075583", "0.6058775", "0.6039119", "0.6039119", "0.6039119", "0.6039119", "0.6039119", "0.6039119", "0.6039119", "0.6039119", "0.6039119", "0.6039119", "0.6039119", "0.6039119"...
0.0
-1
TODO: Rename and change types and number of parameters
public static MatchFragment newInstance(String timA, String timB, int quarter, int scoreTeamA, int scoreTeamB) { MatchFragment fragment = new MatchFragment(); Bundle args = new Bundle(); args.putString(Constant.KEY_TEAM_A_NAME, timA); args.putString(Constant.KEY_TEAM_B_NAME, timB); args.putInt(Constant.KEY_QUARTER, quarter); args.putInt(Constant.KEY_SCORE_TEAM_A, scoreTeamA); args.putInt(Constant.KEY_SCORE_TEAM_B, scoreTeamB); fragment.setArguments(args); return fragment; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void getParameters(Parameters parameters) {\n\n }", "@Override\n\tprotected void initParams() {\n\t\t\n\t}", "public abstract String paramsToString();", "protected void setupParameters() {\n \n \n\n }", "public abstract Result mo5059a(Params... paramsArr);", "public void getParame...
[ "0.5992595", "0.5977314", "0.5734909", "0.567308", "0.5637329", "0.56227446", "0.5617872", "0.55687135", "0.5549605", "0.5527076", "0.5461738", "0.5446342", "0.54380584", "0.54107237", "0.5382544", "0.537371", "0.5370862", "0.53685945", "0.53596246", "0.5358685", "0.5346237",...
0.0
-1
Inflate the layout for this fragment
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View view = inflater.inflate(R.layout.fragment_match, container, false); nextBtn = view.findViewById(R.id.next_button); plusOneTeamABtn = view.findViewById(R.id.plus_one_team_a_button); plusTwoTeamABtn = view.findViewById(R.id.plus_two_team_a_button); plusThreeTeamABtn = view.findViewById(R.id.plus_three_team_a_button); plusOneTeamBBtn = view.findViewById(R.id.plus_one_team_b_button); plusTwoTeamBBtn = view.findViewById(R.id.plus_two_team_b_button); plusThreeTeamBBtn = view.findViewById(R.id.plus_three_team_b_button); quarterTV = view.findViewById(R.id.quarter_textview); timATV = view.findViewById(R.id.tim_a_textview); timBTV = view.findViewById(R.id.tim_b_textview); scoreTeamATV = view.findViewById(R.id.team_a_score_textview); scoreTeamBTV = view.findViewById(R.id.team_b_score_textview); nextBtn.setOnClickListener(this); plusOneTeamABtn.setOnClickListener(this); plusTwoTeamABtn.setOnClickListener(this); plusThreeTeamABtn.setOnClickListener(this); plusOneTeamBBtn.setOnClickListener(this); plusTwoTeamBBtn.setOnClickListener(this); plusThreeTeamBBtn.setOnClickListener(this); switch (quarter) { case 1: quarterTV.setText("1st"); break; case 2: quarterTV.setText("2nd"); break; case 3: quarterTV.setText("3rd"); break; case 4: quarterTV.setText("4th"); break; } timATV.setText(timAName); timBTV.setText(timBName); scoreTeamATV.setText(scoreTeamA + ""); scoreTeamBTV.setText(scoreTeamB + ""); return view; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_main_allinfo, container, false);\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup...
[ "0.6740675", "0.6725193", "0.67224836", "0.6699259", "0.6691596", "0.668896", "0.6687658", "0.66861755", "0.667755", "0.66756433", "0.6667425", "0.66667783", "0.6665166", "0.66614723", "0.66549766", "0.665031", "0.6643759", "0.6639389", "0.66378653", "0.66345453", "0.6626348"...
0.0
-1
TODO Autogenerated method stub
public static void main(String[] args) { Date d = new Date(); SimpleDateFormat sdf = new SimpleDateFormat ("dd.mm.yyyy"); String s = sdf.format(d); System.out.println(s); JOptionPane.showMessageDialog(null, (s)); }
{ "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
We can't inherit the constructor
public ConStructorInheritance(){ System.out.println("Parent Class Constructor"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "_ExtendsNotAbstract() {\n super(\"s\"); // needs this if not default ctor;\n }", "protected abstract void construct();", "defaultConstructor(){}", "Reproducible newInstance();", "O() { super(null); }", "public Constructor(){\n\t\t\n\t}", "@SuppressWarnings(\"unused\")\n public NoConstr...
[ "0.75216013", "0.74365723", "0.72219455", "0.71981806", "0.7197551", "0.7170312", "0.71575093", "0.7122531", "0.7081712", "0.70551145", "0.70097375", "0.7000936", "0.6986969", "0.6978267", "0.697285", "0.6954666", "0.6912212", "0.68924314", "0.6870092", "0.68311733", "0.68286...
0.6557914
43
/ ket qua tra ve
private static <T> List<T> convert2ClassVO(Class<T> clazz, List<Object> listTmp) throws InstantiationException, IllegalAccessException, NoSuchFieldException, NoSuchMethodException, InvocationTargetException { List<T> listResults = new ArrayList<>(); /* Danh sach cac thuoc tinh cua class */ Field[] fields = clazz.getDeclaredFields(); if (listTmp.size() != 0) { for (Object object : listTmp) { /* Tao instance cua class dynamic */ T subClazz = clazz.newInstance(); /* Lay tung dong du lieu */ Map row = (Map) object; /* Lay thuoc tinh cua object trong list data */ Set keySet = row.keySet(); /**/ List<DynamicVO> tmpDynamicVOs = new ArrayList<>(); for (Object key : keySet) { String tmp = GeneralUtil.hasInFields(key, fields); if (tmp != null) { Object tmpKey = row.get(key); if (tmpKey == null) { GeneralUtil.applyValue2Property(subClazz, tmp, ""); } else { GeneralUtil.applyValue2Property(subClazz, tmp, row.get(key).toString()); } } else { if (!key.toString().startsWith("not_view_")) { DynamicVO tmpDynamicVO = new DynamicVO(); tmpDynamicVO.setKey(key.toString()); tmpDynamicVO.setValue(row.get(key)); tmpDynamicVOs.add(tmpDynamicVO); } } } for (Field f : fields) { java.lang.reflect.Type type = f.getGenericType(); // Tim thuoc tinh kieu List<DynamicVO> trong Class if (type instanceof ParameterizedType) { ParameterizedType stringListType = (ParameterizedType) f.getGenericType(); Class<?> stringListClass = (Class<?>) stringListType.getActualTypeArguments()[0]; if (stringListClass.equals(DynamicVO.class)) { // Thuoc tinh kieu List<DynamicVO> String proName = f.getName(); Class<?> clz = subClazz.getClass().getDeclaredField(proName).getType(); String proNameUpperFirst = proName.substring(0, 1).toUpperCase() + proName.substring(1); Method setMethod = subClazz.getClass().getMethod("set" + proNameUpperFirst, clz); setMethod.invoke(subClazz, tmpDynamicVOs); break; } } } listResults.add(subClazz); } } return listResults; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tdouble dienTich() {\n\t\tdouble p = chuVi() / 2;\n\t\treturn Math.sqrt(p*(p-canhA)*(p-canhB)*(p-canhC));\n\t}", "public int kiemTraquyenDN(){\r\n\t\tHttpSession session = (HttpSession) FacesContext.getCurrentInstance().getExternalContext().getSession(false);\r\n\t NhanVien x= new NhanVien();\r\n...
[ "0.63347906", "0.61019903", "0.60827494", "0.60464716", "0.5916077", "0.5881088", "0.58329177", "0.5816993", "0.58054", "0.57960045", "0.57891333", "0.5784533", "0.5740517", "0.5737792", "0.5733012", "0.5709023", "0.5685741", "0.56811243", "0.56740755", "0.56738335", "0.56689...
0.0
-1
ObjectMapper oMapper = new ObjectMapper(); Henv[] obj = new Henv[2]; obj[0] = new Henv(); obj[0].setName("mkyong"); obj[0].setAge(34); obj[1] = new Henv(); obj[1].setName("mkyong1"); obj[1].setAge(35); Map map = oMapper.convertValue(obj[0], Map.class); Object a = (Object) map; // System.out.println(map); List lst = new ArrayList(); lst.add(a); map = oMapper.convertValue(obj[1], Map.class); a = (Object) map; lst.add(a); List lstTemp = (List) lst;
public static void main(String[] args) { Map map = new HashMap<>(); // map.put("name", "mykong"); // map.put("age", 12); List<Object> lstTemp = new ArrayList<Object>(); // lstTemp.add(map); // map = new HashMap<>(); // map.put("name", "henv"); // map.put("age", "2"); // lstTemp.add(map); map = new HashMap<>(); map.put("name", "henv3"); map.put("age", "100"); List<DynamicVO> lstDynamic = new ArrayList<DynamicVO>(); DynamicVO d = new DynamicVO(); d.setKey("dKey"); d.setValue("dValue"); lstDynamic.add(d); map.put("charactor", lstDynamic); lstTemp.add(map); try { List<Henv> listResults = convert2ClassVO(Henv.class, lstTemp); for(int i = 0; i < listResults.size(); i++) { for(int j = 0; j < listResults.get(i).getLstDynamic().size(); j++) { DynamicVO dn = (DynamicVO) listResults.get(i).getLstDynamic().get(j); System.out.println(dn.getKey()+ dn.getValue()); } // System.out.println(listResults.get(i).getLstDynamic().get(i).getKey()); // System.out.println(listResults.get(i).getLstDynamic().get(i).getValue()); } System.out.println(); } catch (InstantiationException | IllegalAccessException | NoSuchFieldException | NoSuchMethodException | InvocationTargetException e) { e.printStackTrace(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static Object mapValueToJava(Object value) {\n if (value instanceof Map) {\n value = ((Map<?, ?>) value).toMap();\n } else if (value instanceof Sequence) {\n value = ((Sequence<?>) value).toMappedList();\n } else if (value instanceof net.ssehub.easy.instantiation....
[ "0.60205257", "0.5621173", "0.547257", "0.54019153", "0.53014576", "0.5296372", "0.52915066", "0.5247334", "0.524472", "0.52018654", "0.51880866", "0.51517284", "0.5139084", "0.5116442", "0.5096754", "0.5084344", "0.50822186", "0.5030982", "0.49969974", "0.49921882", "0.49917...
0.563691
1
Creates new form Server
public Server() { initComponents(); listModel = new DefaultListModel<>(); listModel2 = new DefaultListModel<>(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public FormaServer() {\n initComponents();\n srediFormu();\n \n }", "public void addServerManually() {\n JTextField address = new JTextField();\n address.setText(client.getIpv4());\n JTextField port = new JTextField();\n port.setText(\"2019\");\n\n JPane...
[ "0.66624117", "0.644837", "0.6087739", "0.5977793", "0.5902894", "0.58585125", "0.575697", "0.5734655", "0.56976295", "0.5666491", "0.5647677", "0.5603899", "0.55901134", "0.5545658", "0.54663825", "0.5451528", "0.5450062", "0.5431443", "0.5418813", "0.53784275", "0.53696764"...
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() { jButton1 = new javax.swing.JButton(); jLabel1 = new javax.swing.JLabel(); serverPortText = new javax.swing.JTextField(); jLabel2 = new javax.swing.JLabel(); jLabel3 = new javax.swing.JLabel(); jTextField2 = new javax.swing.JTextField(); jScrollPane1 = new javax.swing.JScrollPane(); jList1 = new javax.swing.JList<>(); jButton2 = new javax.swing.JButton(); setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); jButton1.setText("Start Listenining"); jButton1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton1ActionPerformed(evt); } }); jLabel1.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N jLabel1.setText("Port :"); jLabel2.setFont(new java.awt.Font("Tahoma", 0, 16)); // NOI18N jLabel2.setText("Online Useres"); jLabel3.setText("Status "); jTextField2.setEditable(false); jTextField2.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jTextField2ActionPerformed(evt); } }); jList1.setModel(new javax.swing.AbstractListModel<String>() { String[] strings = {}; public int getSize() { return strings.length; } public String getElementAt(int i) { return strings[i]; } }); jList1.addContainerListener(new java.awt.event.ContainerAdapter() { public void componentAdded(java.awt.event.ContainerEvent evt) { jList1ComponentAdded(evt); } }); jList1.addAncestorListener(new javax.swing.event.AncestorListener() { public void ancestorAdded(javax.swing.event.AncestorEvent evt) { jList1AncestorAdded(evt); } public void ancestorMoved(javax.swing.event.AncestorEvent evt) { } public void ancestorRemoved(javax.swing.event.AncestorEvent evt) { } }); jList1.addInputMethodListener(new java.awt.event.InputMethodListener() { public void caretPositionChanged(java.awt.event.InputMethodEvent evt) { } public void inputMethodTextChanged(java.awt.event.InputMethodEvent evt) { jList1InputMethodTextChanged(evt); } }); jList1.addPropertyChangeListener(new java.beans.PropertyChangeListener() { public void propertyChange(java.beans.PropertyChangeEvent evt) { jList1PropertyChange(evt); } }); jList1.addVetoableChangeListener(new java.beans.VetoableChangeListener() { public void vetoableChange(java.beans.PropertyChangeEvent evt)throws java.beans.PropertyVetoException { jList1VetoableChange(evt); } }); jList1.addListSelectionListener(new javax.swing.event.ListSelectionListener() { public void valueChanged(javax.swing.event.ListSelectionEvent evt) { jList1ValueChanged(evt); } }); jScrollPane1.setViewportView(jList1); jButton2.setText("Hi"); jButton2.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton2ActionPerformed(evt); } }); javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); getContentPane().setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addGap(19, 19, 19) .addComponent(jLabel1) .addGap(31, 31, 31) .addComponent(serverPortText, javax.swing.GroupLayout.PREFERRED_SIZE, 160, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(34, 34, 34) .addComponent(jButton1) .addGap(0, 0, Short.MAX_VALUE)) .addGroup(layout.createSequentialGroup() .addContainerGap() .addComponent(jLabel3) .addGap(27, 27, 27) .addComponent(jTextField2))) .addContainerGap()) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup() .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabel2) .addGap(43, 43, 43) .addComponent(jButton2) .addGap(24, 24, 24)) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup() .addContainerGap() .addComponent(jScrollPane1) .addContainerGap()) ); layout.setVerticalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addContainerGap() .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel1) .addComponent(jButton1) .addComponent(serverPortText, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addGap(19, 19, 19) .addComponent(jLabel2)) .addGroup(layout.createSequentialGroup() .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(jButton2))) .addGap(17, 17, 17) .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 59, Short.MAX_VALUE) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel3) .addComponent(jTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addContainerGap()) ); pack(); }
{ "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.7319396", "0.7290941", "0.7290941", "0.7290941", "0.7285927", "0.7248002", "0.72139066", "0.72086275", "0.71958303", "0.718997", "0.7184516", "0.7159095", "0.71481097", "0.709288", "0.70806605", "0.70578784", "0.6986726", "0.6977067", "0.6955257", "0.6954392", "0.6945326",...
0.0
-1
GENFIRST:event_jButton1ActionPerformed TODO add your handling code here: server start listening
private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) { try{ listenSocket = new ServerSocket(Integer.parseInt(serverPortText.getText())); Runnable helloRunnable = new Runnable() { public void run() { try { while(true){ connection = listenSocket.accept(); inFromClient = new BufferedReader(new InputStreamReader(connection.getInputStream())); sentence = inFromClient.readLine(); String arr[] = sentence.split(","); if(arr[0].equals("offline")){ listModel.removeElement(arr[1]); for(int i = 0 ; i < listModel2.getSize() ;i++){ if(listModel2.get(i).getPort() == Integer.parseInt(arr[2])){ listModel2.removeElementAt(i); } } sendClient("offline" , connection); Client.listModel.removeAllElements(); } else{ listModel.addElement(arr[1]); listModel2.addElement(connection); Client.listModel.removeAllElements(); jList1.setModel(listModel); sendClient("online" , connection); } } } catch(Exception ex){ ex.printStackTrace(); } } }; ScheduledExecutorService executor = Executors.newScheduledThreadPool(1); executor.scheduleAtFixedRate(helloRunnable, 0, 1, TimeUnit.SECONDS); //} } catch(Exception ex){ ex.printStackTrace(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void jButton4ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton4ActionPerformed\r\n try {\r\n\r\n if (isServing) {\r\n isServing = false;\r\n connection.listen(false);\r\n jButton5.setEnabled(true);\r\n jB...
[ "0.7770945", "0.7387913", "0.7184053", "0.71053797", "0.70891315", "0.7043925", "0.6978611", "0.6955398", "0.68664694", "0.6835224", "0.68236667", "0.68227965", "0.6767184", "0.6764022", "0.676332", "0.675894", "0.67504853", "0.6744069", "0.67275596", "0.6726012", "0.6718062"...
0.0
-1
/ Get the cached ident if it matches null otherwise
static CssIdent getMatchingIdent(CssIdent ident) { for (CssIdent id : allowed_values) { if (id.equals(ident)) { return id; } } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public String getIdentityId() {\n\n // Load the identityId from the cache\n// identityId = cachedIdentityId;\n\n if (identityId == null) {\n // Call to your backend\n identityId = mFirebaseRef.getAuth().getUid();\n }\n return identityId;\n ...
[ "0.6116872", "0.5891406", "0.58716154", "0.582939", "0.57788783", "0.5773547", "0.5753039", "0.57148665", "0.57130975", "0.5710805", "0.57090884", "0.56772214", "0.56130004", "0.56035507", "0.55502605", "0.55370206", "0.5505864", "0.5478488", "0.5461885", "0.5460729", "0.5447...
0.6192582
0
Create a new CssBorderWidth
public CssBorderWidth() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Border createBorder();", "@Override\n public float getBorderWidth() {\n return mBorderWidth;\n }", "IOverlayStyle borderThickness(int thick);", "public XSSFBorderFormatting createBorderFormatting(){\n CTDxf dxf = getDxf(true);\n CTBorder border;\n if(!dxf.isSetBorder()) {\n ...
[ "0.72842515", "0.6849676", "0.6399695", "0.63866186", "0.63468", "0.61963975", "0.61922574", "0.6185557", "0.6158515", "0.6071322", "0.60570073", "0.6021536", "0.5993507", "0.5969436", "0.58114016", "0.577514", "0.57614857", "0.5638081", "0.5619565", "0.556354", "0.55578345",...
0.8389917
0
Set the value of the property Does not check the number of values
public CssBorderWidth(ApplContext ac, CssExpression expression) throws InvalidParamException { this(ac, expression, false); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\t\tpublic void setPropertyValue(Object value) {\n\t\t\t\t\n\t\t\t}", "public void setValue(Object value) { this.value = value; }", "void setMyProperty1(Integer a) {}", "public abstract void setValue(Context c, Object v) throws PropertyException;", "@Override\n public boolean visit(JsProper...
[ "0.6908357", "0.65899223", "0.6536673", "0.6516916", "0.6497344", "0.6392351", "0.6340574", "0.62914294", "0.6287267", "0.6253453", "0.62236446", "0.6196936", "0.61830366", "0.6181197", "0.6177082", "0.6168403", "0.61598027", "0.61471623", "0.6146715", "0.6127276", "0.6122081...
0.0
-1
Set the value of the property
public CssBorderWidth(ApplContext ac, CssExpression expression, boolean check) throws InvalidParamException { if (check && expression.getCount() > 4) { throw new InvalidParamException("unrecognize", ac); } setByUser(); CssValue val; char op; ArrayList<CssValue> res = new ArrayList<CssValue>(); while (res.size() < 4 && !expression.end()) { val = expression.getValue(); op = expression.getOperator(); switch (val.getType()) { case CssTypes.CSS_NUMBER: val = ((CssNumber) val).getLength(); case CssTypes.CSS_LENGTH: CssLength length = (CssLength) val; if (!length.isPositive()) { throw new InvalidParamException("negative-value", expression.getValue(), getPropertyName(), ac); } res.add(length); break; case CssTypes.CSS_IDENT: if (inherit.equals(val)) { res.add(inherit); break; } CssIdent match = getMatchingIdent((CssIdent) val); if (match == null) { throw new InvalidParamException("value", expression.getValue(), getPropertyName(), ac); } res.add(match); break; default: throw new InvalidParamException("unrecognize", ac); } expression.next(); if (op != SPACE) { throw new InvalidParamException("operator", Character.toString(op), ac); } } // check that inherit is alone if (res.size() > 1 && res.contains(inherit)) { throw new InvalidParamException("unrecognize", ac); } value = (res.size() == 1) ? res.get(0) : new CssValueList(res); // now assign the computed values... top = new CssBorderTopWidth(); right = new CssBorderRightWidth(); bottom = new CssBorderBottomWidth(); left = new CssBorderLeftWidth(); switch (res.size()) { case 1: top.value = left.value = right.value = bottom.value = res.get(0); break; case 2: top.value = bottom.value = res.get(0); right.value = left.value = res.get(1); break; case 3: top.value = res.get(0); right.value = left.value = res.get(1); bottom.value = res.get(2); break; case 4: top.value = res.get(0); right.value = res.get(1); bottom.value = res.get(2); left.value = res.get(3); break; default: // can't happen throw new InvalidParamException("unrecognize", ac); } shorthand = true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setProperty(String name,Object value);", "public void setProperty(String property) {\n }", "@Override\n\t\t\tpublic void setPropertyValue(Object value) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\tpublic void setProperty(String key, Object value) {\n\n\t\t}", "@Override\n\tpublic void setProperty(...
[ "0.7785578", "0.754723", "0.75211984", "0.7449537", "0.74310356", "0.73989826", "0.7374525", "0.7374525", "0.7289398", "0.7223506", "0.7219366", "0.7197649", "0.7166939", "0.71648264", "0.714694", "0.71058273", "0.70809144", "0.70596886", "0.7055503", "0.7036984", "0.70288074...
0.0
-1
Check the borderwidth and returns a value. It makes sense to do it only once for all the sides, so by having the code here.
protected static CssValue checkBorderSideWidth(ApplContext ac, CssProperty caller, CssExpression expression, boolean check) throws InvalidParamException { if (check && expression.getCount() > 1) { throw new InvalidParamException("unrecognize", ac); } CssValue retval = null; CssValue val = expression.getValue(); switch (val.getType()) { case CssTypes.CSS_NUMBER: val = ((CssNumber) val).getLength(); case CssTypes.CSS_LENGTH: CssLength length = (CssLength) val; if (!length.isPositive()) { throw new InvalidParamException("negative-value", expression.getValue(), caller.getPropertyName(), ac); } retval = length; break; case CssTypes.CSS_IDENT: if (inherit.equals(val)) { retval = inherit; } else { retval = getMatchingIdent((CssIdent) val); } if (retval == null) { throw new InvalidParamException("value", expression.getValue(), caller.getPropertyName(), ac); } break; default: throw new InvalidParamException("unrecognize", ac); } expression.next(); return retval; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public float getBorderWidth() {\n return mBorderWidth;\n }", "private int getBorderWidthValue( IStyle style, int borderNum )\n \t{\n \t\tif ( null == style )\n \t\t{\n \t\t\treturn 0;\n \t\t}\n \t\tif ( IStyle.STYLE_BORDER_TOP_WIDTH != borderNum\n \t\t\t\t&& IStyle.STYLE_BORDER_RIGHT_WIDTH != bo...
[ "0.7175901", "0.69395185", "0.68457353", "0.6630758", "0.66182005", "0.65407115", "0.64935327", "0.64375293", "0.6366679", "0.6364248", "0.6330423", "0.6303322", "0.6300069", "0.62478274", "0.6224773", "0.6193846", "0.6191087", "0.6136787", "0.6108949", "0.61076385", "0.60973...
0.67700475
3
We've bound to LocalService, cast the IBinder and get LocalService instance
@Override public void onServiceConnected(ComponentName className, IBinder service) { TranscriptDownService.LocalBinder binder = (TranscriptDownService.LocalBinder) service; mService = binder.getService(); mBound = true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onServiceConnected(ComponentName className,\n IBinder service) {\n LocalService.LocalBinder binder = (LocalService.LocalBinder) service;\n mService = binder.getService();\n mBound = true;\n }", "@Override...
[ "0.68455195", "0.68455195", "0.68020105", "0.6636603", "0.65344197", "0.63164216", "0.6282109", "0.62757915", "0.6232286", "0.62178916", "0.62082255", "0.6196293", "0.6168822", "0.6128185", "0.60704297", "0.6054859", "0.6040194", "0.60335386", "0.6016123", "0.59048504", "0.59...
0.5916557
19
each AngelFish has same movement type but different speeds
public Fish create(){ MovementStyle style = new NoMovement(); return new Shark(style); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void move() {\n for (EnemyFish currEnemyFish : fEnemyFishList) {\n int movespeed = currEnemyFish.getMoveSpeed();\n if (currEnemyFish.isLefty()) {\n currEnemyFish.getSprite().updateX(movespeed);\n } else {\n currEnemyFish.getSprite().updateX(-movespeed);\n }\n }\n }",...
[ "0.6057381", "0.59857535", "0.5963258", "0.5956815", "0.5952489", "0.5927467", "0.57824254", "0.5775948", "0.57618827", "0.5752324", "0.57182544", "0.57143956", "0.5710888", "0.56568885", "0.5649519", "0.5635208", "0.56300306", "0.56207496", "0.55971146", "0.55880857", "0.557...
0.0
-1
/ / / 21
public Integer getId() { return this.id; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void mo33732Px();", "public int mo36g() {\n return 8;\n }", "public int mo36g() {\n return 4;\n }", "public int method_2436() {\r\n return 16;\r\n }", "public static void main(String[] args) {\n\n\n\n System.out.println(4 * (1.0 - (1 / 3) + (1 / 5) - (1 / 7) + (1 / 9) - (1...
[ "0.59364945", "0.58247393", "0.5745974", "0.56981057", "0.5697326", "0.5590757", "0.55090636", "0.54516745", "0.53949577", "0.53792757", "0.53767216", "0.53593737", "0.5350314", "0.53461957", "0.5343195", "0.5328934", "0.5326459", "0.5324843", "0.52966255", "0.5289437", "0.52...
0.0
-1
/ / / 24
public void setTitle(String title) { this.title = title; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static int offset_group() {\n return (24 / 8);\n }", "Period mo20733e();", "void milestone4(int inputSeconds){\n int days = inputSeconds / 86400;\n int seconds = inputSeconds % 86400;\n int hours = seconds / 3600;\n seconds = seconds % 3600;\n int minutes = s...
[ "0.6265805", "0.5836749", "0.56123763", "0.5595692", "0.5578146", "0.55172974", "0.5399103", "0.5392262", "0.5374761", "0.5354566", "0.5345554", "0.53156906", "0.5301398", "0.52983236", "0.52783424", "0.52727604", "0.5261885", "0.5236045", "0.5225205", "0.520582", "0.51975775...
0.0
-1
/ / / 27
public String getTitle() { return this.title; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int mo36g() {\n return 8;\n }", "public int mo36g() {\n return 4;\n }", "public void ex() {\n int inches = 86; \n int pie = 12; //1 pie = 12 inches \n //Operaciones para obtener la cantidad de pies e inches\n int cant = inches / pie; \n int res = in...
[ "0.6025523", "0.5852501", "0.58475053", "0.5843898", "0.5797092", "0.57640415", "0.5709149", "0.5693485", "0.56819", "0.5617289", "0.561607", "0.55778205", "0.5546362", "0.55394846", "0.5537905", "0.5535624", "0.55339026", "0.55154705", "0.5512783", "0.5485383", "0.5478505", ...
0.0
-1
/ / / 30
public void setContent(String content) { this.content = content; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void divide() {\n\t\t\n\t}", "public int interval() {\n return 30;\n }", "Period mo20733e();", "@Override\n public double tuition(){\n return 2500;\n }", "public int mo36g() {\n return 8;\n }", "public void division() {\n\t\tx=1;\n\t\ty=0;\n\t\tz=x/y;\n\t\t\t\t\n\t...
[ "0.5707488", "0.56833297", "0.5516704", "0.5482045", "0.54394376", "0.5434856", "0.5419945", "0.5398018", "0.53814495", "0.5379977", "0.5345742", "0.53107125", "0.5290585", "0.525873", "0.525579", "0.5245156", "0.52350944", "0.52235395", "0.5220073", "0.52169496", "0.52166957...
0.0
-1
/ / / 33
public String getContent() { return this.content; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\n\n\n\n System.out.println(4 * (1.0 - (1 / 3) + (1 / 5) - (1 / 7) + (1 / 9) - (1 / 11)));\n\n System.out.println(4 * (1.0 - (1/3) + (1/5) - (1/7)\n + (1 / 9) - (1/11) + (1/13)));\n }", "void mo33732Px();", "public void division() {\n\t\tx...
[ "0.57624924", "0.57621294", "0.57491076", "0.5696428", "0.5637861", "0.56081116", "0.55254966", "0.55145997", "0.5513974", "0.5466578", "0.54258233", "0.54247475", "0.54063255", "0.5391035", "0.5385419", "0.53741115", "0.5346605", "0.53176945", "0.53006864", "0.52919084", "0....
0.0
-1
/ / / 36
public void setCreateDate(Date createDate) { this.createDate = createDate; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int mo36g() {\n return 8;\n }", "public int mo36g() {\n return 4;\n }", "public int mo36g() {\n return 2;\n }", "short digits();", "public int method_2436() {\r\n return 16;\r\n }", "int baseHash(int hashKey,int length)\n\t{\n\t\tdouble constant = (Math.sqrt(3)...
[ "0.67188364", "0.6581289", "0.6266193", "0.5744244", "0.5728869", "0.5591897", "0.55487394", "0.55289245", "0.5510911", "0.54702413", "0.54396033", "0.5426483", "0.5359879", "0.53525764", "0.5319623", "0.5277746", "0.52647674", "0.52222687", "0.5221784", "0.52149796", "0.5199...
0.0
-1
/ / / 39
public Date getCreateDate() { return this.createDate; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int mo36g() {\n return 8;\n }", "public int mo36g() {\n return 4;\n }", "public int mo9774x() {\n /*\n r5 = this;\n int r0 = r5.f9082i\n int r1 = r5.f9080g\n if (r1 != r0) goto L_0x0007\n goto L_0x0...
[ "0.5820443", "0.57957643", "0.57157147", "0.5677129", "0.5629663", "0.5602155", "0.55527914", "0.5526402", "0.5520554", "0.5508676", "0.55078256", "0.5505151", "0.54938406", "0.5450792", "0.5443235", "0.543074", "0.5429083", "0.5424219", "0.5417409", "0.54143476", "0.54140776...
0.0
-1
/ / / 42
public User getUser() { return this.user; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void doStuff() {\n System.out.println(7/0);\r\n }", "BaseNumber divide(BaseNumber operand);", "public static void main(String[] args) {\n\t\tSystem.out.println(123/10);\n\t}", "public void divide() {\n\t\t\n\t}", "public int division(){\r\n return Math.round(x/y);\r\n }", "public vo...
[ "0.6410335", "0.6385688", "0.6094578", "0.6070742", "0.5913504", "0.5808621", "0.5693914", "0.5656744", "0.5650933", "0.56401724", "0.56105244", "0.5609944", "0.56056094", "0.5602036", "0.5557424", "0.5552898", "0.5551081", "0.55435497", "0.55191994", "0.54857683", "0.5485332...
0.0
-1
/ / / 45
public void setUser(User user) { this.user = user; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "double perimeter();", "double getPerimeter(){\n return 2*height+width;\n }", "AngleScalarDivide createAngleScalarDivide();", "public void divide() {\n\t\t\n\t}", "public static void main(String[] args) {\n\n\n\n System.out.println(4 * (1.0 - (1 / 3) + (1 / 5) - (1 / 7) + (1 / 9) - (1 / 11)));\n\...
[ "0.56275284", "0.55287117", "0.55107856", "0.5507206", "0.549168", "0.5460777", "0.5449278", "0.54353917", "0.54228246", "0.5405971", "0.53935325", "0.5370325", "0.5338844", "0.53322047", "0.5328619", "0.5306321", "0.53014433", "0.529938", "0.5295998", "0.5295057", "0.5289387...
0.0
-1
TODO: Warning this method won't work in the case the id fields are not set
@Override public boolean equals(Object object) { if (!(object instanceof Compra)) { return false; } Compra other = (Compra) object; if ((this.compraPK == null && other.compraPK != null) || (this.compraPK != null && !this.compraPK.equals(other.compraPK))) { return false; } return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setId(Integer id) { this.id = id; }", "private Integer getId() { return this.id; }", "public void setId(int id){ this.id = id; }", "public void setId(Long id) {this.id = id;}", "public void setId(Long id) {this.id = id;}", "public void setID(String idIn) {this.id = idIn;}", "public void se...
[ "0.6896568", "0.6839589", "0.6705305", "0.66411185", "0.66411185", "0.6592062", "0.65784657", "0.65784657", "0.65749544", "0.65749544", "0.65749544", "0.65749544", "0.65749544", "0.65749544", "0.6561728", "0.6561728", "0.6545076", "0.65248877", "0.651606", "0.6488212", "0.647...
0.0
-1
Adds a column to the query.
public SQLQueryBuilder field(@Nullable String fieldName) { if (fieldName == null) { return this; } fields.add(new Field(fieldName)); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addColumn(String columnName);", "public void addColumn(DatabaseColumn column) {\n addColumn(-1, column);\n }", "public void addColumn(Column column) {\n\t\t// Start of user code for method addColumn\n\t\t// End of user code\n\t}", "IColumnBinding addColumn(String spec);", "public void addCo...
[ "0.76541585", "0.7650642", "0.73075926", "0.7203969", "0.71663433", "0.71330196", "0.6930331", "0.6855684", "0.68224865", "0.68034315", "0.6694324", "0.66219723", "0.65894127", "0.65260196", "0.6507231", "0.64959025", "0.64700186", "0.6395275", "0.6328384", "0.62800497", "0.6...
0.0
-1
Adds a column to the query.
public SQLQueryBuilder field(@Nullable String fieldName, @Nullable String alias) { if (fieldName == null) { return this; } fields.add(new Field(fieldName, alias)); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addColumn(String columnName);", "public void addColumn(DatabaseColumn column) {\n addColumn(-1, column);\n }", "public void addColumn(Column column) {\n\t\t// Start of user code for method addColumn\n\t\t// End of user code\n\t}", "IColumnBinding addColumn(String spec);", "public void addCo...
[ "0.7655362", "0.7650501", "0.730796", "0.7204131", "0.7167696", "0.713472", "0.69309425", "0.68545556", "0.68214965", "0.68033224", "0.66926676", "0.6622545", "0.6590906", "0.6525741", "0.65040386", "0.6495317", "0.64675075", "0.6397174", "0.6329679", "0.62792474", "0.6275739...
0.0
-1
Adds a column to the query.
public SQLQueryBuilder field(@Nullable String tablename, @Nullable String fieldName, @Nullable String alias) { if (fieldName == null) { return this; } fields.add(new Field(tablename + "." + fieldName, alias)); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addColumn(String columnName);", "public void addColumn(DatabaseColumn column) {\n addColumn(-1, column);\n }", "public void addColumn(Column column) {\n\t\t// Start of user code for method addColumn\n\t\t// End of user code\n\t}", "IColumnBinding addColumn(String spec);", "public void addCo...
[ "0.7652055", "0.76496315", "0.73056096", "0.7201874", "0.71656424", "0.71314937", "0.6928335", "0.68548137", "0.68191135", "0.68032867", "0.6692506", "0.66191506", "0.6588002", "0.65244913", "0.65053797", "0.6493917", "0.6467602", "0.6394188", "0.6328188", "0.62767166", "0.62...
0.0
-1
Getter for property selectClause.
public java.lang.String getSelectClause() { if (selectClause.length() == 0) { buildQuery(); } return selectClause; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Expression getSelectExpression() {\n return select;\n }", "public java.lang.String getPostSelectClause() {\n return postSelectClause;\n }", "private String getSelectQuery() {\n String query = null;\n try {\n query = crudQueryComposer.composeReadQuery();\n ...
[ "0.72216964", "0.69368094", "0.68967754", "0.6719169", "0.6687693", "0.6667108", "0.6570212", "0.6497655", "0.64270234", "0.63465244", "0.6232852", "0.61918247", "0.61918247", "0.6158816", "0.6148258", "0.6148258", "0.6106914", "0.60856724", "0.6074335", "0.5997435", "0.59466...
0.80057126
0
Getter for property postSelectClause.
public java.lang.String getPostSelectClause() { return postSelectClause; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Expression getSelectExpression() {\n return select;\n }", "public java.lang.String getSelectClause() {\n if (selectClause.length() == 0) {\n buildQuery();\n }\n\n return selectClause;\n }", "@Override\r\n\tpublic String getSelect() {\n\t\treturn SQL;\r\n\t}",...
[ "0.57408917", "0.57154006", "0.5500983", "0.5458803", "0.5451621", "0.5380341", "0.53347653", "0.52780724", "0.50781673", "0.5074578", "0.5018335", "0.5011723", "0.49860185", "0.49061942", "0.4886059", "0.48414594", "0.48200735", "0.4808717", "0.48029274", "0.47565264", "0.47...
0.8784249
0
file = new File(classLoader.getResource(FrameworkConstants.DESKTOPCONFIG.get("CHROME_DRIVER")).getFile()); System.setProperty("webdriver.chrome.driver", file.getAbsolutePath());
private DesiredCapabilities getChromeCapabilities(DesiredCapabilities chromeCapabilities) { System.setProperty("webdriver.chrome.driver", "G:\\workspace\\Jarvis\\src\\test\\resources\\lib\\chromedriver.exe"); chromeCapabilities.setCapability(CapabilityType.ACCEPT_SSL_CERTS, true); chromeCapabilities.setCapability(CapabilityType.SUPPORTS_ALERTS, true); chromeCapabilities.setCapability(CapabilityType.UNEXPECTED_ALERT_BEHAVIOUR, UnexpectedAlertBehaviour.ACCEPT); return chromeCapabilities; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setChromeDriver(){\n System.setProperty(\"webdriver.chrome.driver\", browserDriverPath);\n seleniumDriver = new ChromeDriver();\n }", "public static void setChromeDriverProperty() {\n\t\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"C:\\\\automation_new_code\\\\onfs.alip.accoun...
[ "0.8280106", "0.8031673", "0.7536459", "0.7506838", "0.7191679", "0.7070325", "0.7052819", "0.7006547", "0.6933209", "0.6911618", "0.6903367", "0.68787074", "0.6813705", "0.67820096", "0.67385906", "0.67181355", "0.6697601", "0.66689944", "0.6622751", "0.6622255", "0.6614988"...
0.0
-1
TODO Autogenerated method stub
public int compare(String o1, String o2) { if(base.get(o1) > base.get(o2)){ return 1; } else return -1; //return base.get(o1) - base.get(o2); }
{ "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 room location.
public Point getXyLocation() { return playerxy; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final Coord getLocation() {\n return location;\n }", "public Coordinate getLocation() {\n return location;\n }", "public String getLocation() {\n return mLocation;\n }", "public Location getLocation() {\n return loc;\n }", "public Location getLocation() {\n r...
[ "0.76186657", "0.7450142", "0.7336142", "0.72580004", "0.72580004", "0.72519505", "0.7240585", "0.72025204", "0.7198494", "0.7181277", "0.7175659", "0.7175659", "0.71748656", "0.7165243", "0.7164849", "0.71598244", "0.71579325", "0.71579325", "0.71579325", "0.71579325", "0.71...
0.0
-1
Getter for room that player currently in.
public Room getCurrentRoom() { return playerRoom; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Room getRoom() {\n return currentRoom;\n }", "public Room getCurrentRoom() {\r\n return player.getCurrentRoom();\r\n }", "public Room getRoom()\n {\n return currentRoom;\n }", "public Room room() {\r\n\t\treturn this.room;\r\n\t}", "public Room getCurrentRoom()\n ...
[ "0.82606995", "0.8239529", "0.8098367", "0.8002343", "0.7972966", "0.7931768", "0.7923895", "0.7899642", "0.7880547", "0.7880168", "0.7864957", "0.78642607", "0.786106", "0.78015316", "0.76731545", "0.76714957", "0.7558032", "0.75527364", "0.75527364", "0.74311554", "0.742705...
0.8495997
0
Setter for room that player currently in.
public void setCurrentRoom(Room newRoom) { playerRoom = newRoom; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setRoom(Room room) {\n currentRoom = room;\n }", "private void setPlayerRoom(){\n player.setRoom(currentRoom);\n }", "public void setRoom(Room room) {\r\n\t\tthis.room = room;\r\n\t}", "public void setRoom(Room room) {\n this.selectedRoom = room;\n }", "public synchron...
[ "0.8048906", "0.79309785", "0.7675166", "0.7500601", "0.7439509", "0.72201014", "0.71877104", "0.70982206", "0.7061179", "0.70137745", "0.7006097", "0.69148666", "0.69020075", "0.68722594", "0.68382245", "0.67259425", "0.66666013", "0.6663558", "0.6636961", "0.6630684", "0.66...
0.76400965
3
Created by mac on 2018/12/3.
@Keep public interface JdCallback extends OpenAppAction{ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "@Override\n public void perish() {\n \n }", "public final void mo51373a() {\n }", "private static void cajas() {\n\t\t\n\t}", "@Override\n public int describeContents() { return 0; }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n ...
[ "0.5895966", "0.5750789", "0.555883", "0.552658", "0.5501781", "0.54990286", "0.54392016", "0.541927", "0.5418032", "0.5401427", "0.5386929", "0.53821945", "0.53821945", "0.53821945", "0.53821945", "0.53821945", "0.53821945", "0.53793347", "0.5375524", "0.537283", "0.5370496"...
0.0
-1
Created by hack on 25.01.16.
public interface ProfileInterface { @GET("/api/profile/getUser") Call<UserResponse> getUser(@Header("Authorization") String authorizationToken); @GET("/api/profile/getProfile") Call<ProfileResponse> getProfile(@Header("Authorization") String authorizationToken); @GET("/api/profile/getImages") Call<ProfileImagesResponse> getImages(@Header("Authorization") String authorizationToken); @GET("/api/profile/getImagesById") Call<ProfileImagesResponse> getImages(@Header("Authorization") String authorizationToken, @Query("userId") String userId); @POST("/api/profile/update") @FormUrlEncoded Call<ProfileResponse> updateProfile(@Header("Authorization") String authorizationToken, @FieldMap Map<String, String> args); @POST("/api/profile/updatePhoto") @FormUrlEncoded Call<PhotoResponse> updatePhoto(@Header("Authorization") String authorizationToken, @Field("upload") String upload); @POST("/api/profile/updateWallpaper") @FormUrlEncoded Call<PhotoResponse> updateWallPaper(@Header("Authorization") String authorizationToken, @Field("upload") String upload); @GET("/api/profile/getProfileStatus") Call<ProfileStatusResponse> getProfileStatus(@Header("Authorization") String authorizationToken); @GET("/api/profile/getProfileById") Call<ProfileResponse> getProfileById(@Header("Authorization") String authorizationToken, @Query("id") String userId); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "private stendhal() {\n\t}", "private static void cajas() {\n\t\t\n\t}", "protected boolean func_70814_o() { return true; }", "@Override\n public void func_104112_b() {\n \n }", "private void kk12() {\n\n\t}", "private void strin() {\n\n\t}"...
[ "0.5574176", "0.5546907", "0.5501024", "0.5477636", "0.5474857", "0.54627895", "0.54591733", "0.5424188", "0.541572", "0.5391382", "0.5382326", "0.53626204", "0.5353117", "0.535215", "0.53336126", "0.53336126", "0.531043", "0.52903336", "0.52903336", "0.52903336", "0.52903336...
0.0
-1
Created by Oleksii_Kovetskyi on 4/23/2018.
public interface BookingFacadeService { double getTicketsPrice(Long eventId, LocalDateTime dateTime, Long userId, Set<Integer> seats); Set<Integer> getAvailableSeats(Long eventId, LocalDateTime dateTime); Set<Integer> bookTickets(Long eventId, LocalDateTime dateTime, Long userId, Set<Integer> seats); void refillAccount(Long userId, double sum); Set<Ticket> getTickets(String userLogin, Long eventId, Long time, boolean onlyMyTickets); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "private stendhal() {\n\t}", "public final void mo51373a() {\n }", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic...
[ "0.6002975", "0.5824072", "0.56434715", "0.5635853", "0.5623899", "0.5592317", "0.55833584", "0.55833584", "0.5565889", "0.55544454", "0.55543697", "0.55479133", "0.553048", "0.5492468", "0.5481305", "0.54591167", "0.54544514", "0.5389954", "0.5389542", "0.5383243", "0.538225...
0.0
-1
LazySingleton lazySingleton = LazySingleton.getInstance(); System.out.println(Thread.currentThread().getName()+" "+lazySingleton);
@Override public void run() { System.out.println(ThreadLocalInstance.getInstance()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static SingletonEager get_instance(){\n }", "private LazySingleton(){}", "public static void main(String[] args) throws IOException, ClassNotFoundException, NoSuchMethodException, IllegalAccessException, InvocationTargetException, InstantiationException {\n\n Class objectClass = LazyMethodSingle...
[ "0.76665986", "0.75870883", "0.7442177", "0.7306461", "0.72648746", "0.72640926", "0.7224052", "0.71089035", "0.71089035", "0.71037066", "0.7099469", "0.70700294", "0.7061089", "0.69417286", "0.68697035", "0.68531305", "0.6848142", "0.683563", "0.67443424", "0.6698327", "0.66...
0.6256462
41
Para evitar org.hibernate.HibernateException: identifier of an instance of com.algaworks.algafood.domain.model.Cozinha was altered from 1 to 2
public void copyToDomainObject(RestauranteInput restauranteInput, Restaurante restaurante) { restaurante.setCozinha(new Cozinha()); if (restaurante.getEndereco() != null) { restaurante.getEndereco().setCidade(new Cidade()); } this.modelMapper.map(restauranteInput, restaurante); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void actualizar(Dia dia) {\n Session session = sessionFactory.openSession();\n //la transaccion a relizar\n Transaction tx = null;\n try {\n tx = session.beginTransaction();\n //actualizar el Dia\n session.update(dia);\n \n tx...
[ "0.6157848", "0.6130774", "0.6024299", "0.5922222", "0.5908833", "0.59072965", "0.57822114", "0.576071", "0.5752423", "0.57388103", "0.5738429", "0.57084346", "0.5661254", "0.5660288", "0.56573445", "0.56375927", "0.5627562", "0.5621096", "0.56177247", "0.5606206", "0.5598759...
0.0
-1
show in edit mode only
@Override public void focusGained(FocusEvent e) { if (myTargetEditor.isShowing()) { showRemoteSelector(myRemoteRenderer, new Point(myRemoteRenderer.getLocation())); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void editMode() {\n\t\t// Set the boolean to true to indicate in edit mode\n\t\teditableEditTexts();\n\t\thideEditDelete();\n\t\thideEmail();\n\t\tshowSaveAndAdd();\n\t\tshowThatEditable();\n\t}", "public void toggleEdit()\n {\n \tif (editMode == false) {\n \t\teditMode = true;\n \t} else {\n...
[ "0.81949335", "0.8001045", "0.78280693", "0.7710307", "0.74690115", "0.7392819", "0.7366061", "0.7346547", "0.73297167", "0.73289233", "0.7276382", "0.72610724", "0.720991", "0.7199656", "0.71858907", "0.7103717", "0.7103717", "0.71022713", "0.7093525", "0.7062215", "0.705490...
0.0
-1
any changes are senselessly if no remotes
@Override public void fireOnChange() { if (myError != null || myRepository.getRemotes().isEmpty()) return; String remoteName = myRemoteRenderer.getText(); String branchName = myTargetEditor.getText(); try { GitPushTarget target = GitPushTarget.parse(myRepository, remoteName, branchName); if (!target.equals(myCurrentTarget)) { myCurrentTarget = target; myTargetRenderer.updateLinkText(branchName); if (!myEventFromRemoteChooser) { myBranchWasUpdatedManually = true; } } } catch (ParseException e) { LOG.error("Invalid remote name shouldn't be allowed. [" + remoteName + ", " + branchName + "]", e); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean updated() {\n return (!getText().equals(\"0.0.0.0\"));\n }", "boolean updateBaseIncludeNull(TRemoteHostOperateVo source, TRemoteHostOperateVo target);", "private boolean userMadeChanges() {\n\t\treturn userMadeChanges(null);\n\t}", "@Override\n\tpublic boolean isRemote() {\n\t\tretur...
[ "0.57638574", "0.5680488", "0.56168526", "0.5573161", "0.5531132", "0.54918724", "0.5476311", "0.5468477", "0.5436257", "0.54224634", "0.5409135", "0.5406751", "0.5405556", "0.53951055", "0.53889537", "0.53801537", "0.5366642", "0.53507274", "0.53226227", "0.53226227", "0.532...
0.5187515
30
fire only about user's changes
private void processActiveUserChanges(@NotNull PushTargetEditorListener listener) { if (myTargetEditor.isShowing()) { listener.onTargetInEditModeChanged(myTargetEditor.getText()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean userMadeChanges() {\n\t\treturn userMadeChanges(null);\n\t}", "@Override\r\n\t\tpublic void userModelChanged() \r\n\t\t{\n\t\t\t\r\n\t\t}", "@Override\r\n\tpublic boolean updateUser() {\n\t\treturn false;\r\n\t}", "Long getUserUpdated();", "void setUserUpdated(final Long userUpdated);", "...
[ "0.698416", "0.6533813", "0.6355951", "0.6326525", "0.6294662", "0.6272503", "0.6269966", "0.6237715", "0.61789745", "0.6168017", "0.6155238", "0.61422193", "0.6133573", "0.60602486", "0.6041602", "0.6035174", "0.6008814", "0.5993118", "0.5991276", "0.59791696", "0.5964073", ...
0.6016555
16
if targetEditor is now editing by user, it shouldn't be force updated
@Override public void forceUpdateEditableUiModel(@NotNull String forcedText) { if (!myTargetEditor.isShowing()) { myTargetEditor.setText(forcedText); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic boolean execute(IEditorPart target) {\n\t\treturn false;\n\t}", "@Override\n public void checkEditing() {\n }", "protected boolean isEdit(){\n\t\treturn getArguments().getBoolean(ARG_KEY_IS_EDIT);\n\t}", "private void processActiveUserChanges(@NotNull PushTargetEditorListener listen...
[ "0.6751142", "0.6355802", "0.6281155", "0.62263054", "0.62059534", "0.6148289", "0.609022", "0.60603404", "0.6058918", "0.60500324", "0.6033965", "0.6004242", "0.6002083", "0.5973952", "0.597061", "0.5959139", "0.5959139", "0.5948185", "0.5942344", "0.5939649", "0.5916312", ...
0.63045645
2
TODO Autogenerated method stub
@Override public void run() { for(int i = 0 ; i < 5; i++) { System.out.println(getName()); //currentThread(); //Thread 객체 참조를 리턴 } }
{ "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
Insert/update CL with current timestamp
public static int insert(Connection connection, CLRequestHistory cl) { List<CLRequestHistory> list = new ArrayList<CLRequestHistory>(1); list.add(cl); return insertAll(connection, list); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void updateTimeStamp() {\n\t\tthis.timeStamp = new Timestamp(System.currentTimeMillis());\n\t}", "public void insertLog (int logId,\r\n String clientName,\r\n String initialCallDate,\r\n String letterMailDate,\r\n ...
[ "0.6069209", "0.5847758", "0.5818551", "0.5798638", "0.57595164", "0.5747024", "0.5715293", "0.56482553", "0.5620982", "0.55882996", "0.55507225", "0.55384815", "0.5488927", "0.5429387", "0.5411797", "0.54117453", "0.5374442", "0.53490466", "0.53261775", "0.5322151", "0.53135...
0.0
-1
Insert/update CL with current timestamp
public static int insertAll(Connection connection, List<CLRequestHistory> cls) { PreparedStatement statement = null; try { // commit at once. final boolean ac = connection.getAutoCommit(); connection.setAutoCommit(false); // execute statement one by one int numUpdate = 0; statement = connection.prepareStatement(INSERT); for (CLRequestHistory cl : cls) { statement.setInt(1, cl.mCL); statement.setInt(2, cl.mState); numUpdate += statement.executeUpdate(); } // commit all changes above connection.commit(); // restore previous AutoCommit setting connection.setAutoCommit(ac); // Close Statement to release all resources statement.close(); return numUpdate; } catch (SQLException e) { Utils.say("Not able to insert for CLs : " + cls.size()); } finally { try { if (statement != null) statement.close(); } catch (SQLException e) { e.printStackTrace(); } } return 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void updateTimeStamp() {\n\t\tthis.timeStamp = new Timestamp(System.currentTimeMillis());\n\t}", "public void insertLog (int logId,\r\n String clientName,\r\n String initialCallDate,\r\n String letterMailDate,\r\n ...
[ "0.60706323", "0.5847619", "0.58199733", "0.57991767", "0.57600373", "0.574833", "0.57177746", "0.5649418", "0.5621378", "0.55892646", "0.5552101", "0.5538956", "0.54895085", "0.5429817", "0.5412054", "0.5411813", "0.5374249", "0.53507733", "0.5328281", "0.5322267", "0.531284...
0.0
-1
return CLRequestHistory object with CL and corresponding Timestamp if exist
public static CLRequestHistory query(Connection connection, int cl) { ResultSet rs = null; Statement statement = null; try { final String query = String.format(QUERY, "*", ""); statement = connection.createStatement(); rs = statement.executeQuery(query); while (rs.next()) { final Timestamp ts = rs.getTimestamp(Columns.TIMESTAMP); final int state = rs.getInt(Columns.STATE); return new CLRequestHistory(cl, ts, state); } } catch (SQLException e) { Utils.say("Not able to query for " + cl); } finally { try { if (rs != null) rs.close(); } catch (SQLException e) { e.printStackTrace(); } try { if (statement != null) statement.close(); } catch (SQLException e) { e.printStackTrace(); } } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static List<CLRequestHistory> query(Connection connection) {\n ResultSet rs = null;\n Statement statement = null;\n try {\n final String query = String.format(QUERY, \"*\", \"\");\n statement = connection.createStatement();\n rs = statement.executeQuery(...
[ "0.6015792", "0.54648876", "0.5348478", "0.53085876", "0.53002435", "0.52616864", "0.52252614", "0.5148663", "0.5110756", "0.50974095", "0.50806814", "0.50602114", "0.50412315", "0.500692", "0.4986915", "0.49311283", "0.48761004", "0.48689964", "0.484372", "0.4842585", "0.480...
0.6600989
0
return list of CLRequestHistory object if exist any
public static List<CLRequestHistory> query(Connection connection) { ResultSet rs = null; Statement statement = null; try { final String query = String.format(QUERY, "*", ""); statement = connection.createStatement(); rs = statement.executeQuery(query); List<CLRequestHistory> list = new ArrayList<>(); while (rs.next()) { final int cl = rs.getInt(Columns.CL); final Timestamp ts = rs.getTimestamp(Columns.TIMESTAMP); final int state = rs.getInt(Columns.STATE); list.add(new CLRequestHistory(cl, ts, state)); } return list; } catch (SQLException e) { Utils.say("Not able to query anything"); } finally { try { if (rs != null) rs.close(); } catch (SQLException e) { e.printStackTrace(); } try { if (statement != null) statement.close(); } catch (SQLException e) { e.printStackTrace(); } } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List getAccessRequestHistoryExternal() {\n List sortedList = new ArrayList(getAccessRequestHistory());\n Collections.sort(sortedList);\n return Collections.unmodifiableList(sortedList);\n }", "protected Set getAccessRequestHistory() {\n if (this.accessRequestHistory == null)...
[ "0.662128", "0.65055346", "0.63623226", "0.6133018", "0.6060295", "0.6060018", "0.5956444", "0.5901758", "0.58956546", "0.5883587", "0.58332145", "0.57861316", "0.57194287", "0.567779", "0.56599826", "0.56552255", "0.5650624", "0.56138206", "0.55993515", "0.55963147", "0.5534...
0.6470565
2
implements rules for prey type, passes State s of the type of state to reproduce if necessary
private void cellPreyRules(State s) { if (!incrementAge(s)) { moveToOpen(new WaTorCell(this.getBlock(), new WaTorState(State.EMPTY_STATE), this.age, this.baseEnergy)); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "StateType createStateType();", "public abstract ExplicitMachineState convertToExplicitMachineState(MachineState state);", "void mo15871a(StateT statet);", "<C, S> StateExp<C, S> createStateExp();", "State.Builder<E, S, A> to(S state);", "abstract State refinePseudoState (String kind, String name, String ...
[ "0.6219285", "0.6188396", "0.5881676", "0.5871339", "0.5831309", "0.5736826", "0.56073684", "0.5562583", "0.55280495", "0.5457815", "0.5450735", "0.5314063", "0.5288265", "0.5283666", "0.52530926", "0.5234005", "0.522843", "0.52080506", "0.5197226", "0.5191482", "0.5175648", ...
0.0
-1
increment age, and reproduce if necessary
private boolean incrementAge(State s) { this.age++; if (this.age >= this.ageToReproduce) { this.age = 0; reproduce(s); return true; } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void incrementAge()\n {\n age++;\n if(age > max_age) {\n setDead();\n }\n }", "public void incrementAge(int dogAge) {\n this.age = this.age + 1;\n }", "public static void updateAge() {\n\t\tfor (int i =0; i < data.size(); i++){\n\t\t\tdata.get(i).setAge...
[ "0.8395905", "0.76863486", "0.75365925", "0.7440608", "0.7426606", "0.732709", "0.71665454", "0.7123301", "0.70533717", "0.7010445", "0.6903069", "0.68699944", "0.68699944", "0.68699944", "0.68699944", "0.68699944", "0.6851901", "0.6818387", "0.6806985", "0.6798635", "0.67753...
0.7003717
10
reproduces with offspring of type s reproduces by moving to open space and leaving behind offspring in old location
private void reproduce(State s) { moveToOpen(new WaTorCell(this.getBlock(), s, this.ageToReproduce, this.baseEnergy)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void swim() {\r\n\t\tif(super.getPosition()[0] == Ocean.getInstance().getWidth()-71){\r\n\t\t\tinvX = true;\r\n\t\t} else if(super.getPosition()[0] == 0){\r\n\t\t\tinvX = false;\r\n\t\t}\r\n\t\tif(super.getPosition()[1] == Ocean.getInstance().getDepth()-71){\r\n\t\t\tinvY = true;\r\n\t\t} else if(super.getP...
[ "0.56739163", "0.54800475", "0.54121", "0.5360855", "0.5294327", "0.5239403", "0.5209869", "0.518649", "0.51728725", "0.51649815", "0.51625234", "0.51625234", "0.5161159", "0.51529497", "0.5146517", "0.5098689", "0.5092998", "0.50843745", "0.5081607", "0.50604385", "0.5053753...
0.55228233
1
rules for predator type
private void cellPredatorRules() { if (this.energy <= 0) { // Issue with energy this.setNextState(new WaTorState(WaTorState.EMPTY_STATE)); this.setNextBlock(this.getBlock()); this.getBlock().setNextCell(this); return; } this.energy--; int food = this.getBlock().getAdjacent(prey, "2457").size(); if (food > 0) { if (!incrementAge(new WaTorState(WaTorState.WATOR_PREDATOR))) { eat(); } } else { cellPreyRules(new WaTorState(WaTorState.WATOR_PREDATOR)); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public TypeCheckerProofRule getRule ( ) ;", "private LogicPredicate(Type type, Predicate... predicates)\n {\n this.type = type;\n this.predicates = predicates;\n }", "boolean hasHasRestraintType();", "Rule createRule();", "Rule createRule();", "Rule createRule();", "protected abstract Class<? e...
[ "0.6157412", "0.5710414", "0.5473248", "0.5450233", "0.5450233", "0.5450233", "0.54425967", "0.5434086", "0.54271394", "0.5411347", "0.53664786", "0.5321251", "0.5207265", "0.5205043", "0.5191723", "0.51831204", "0.5179797", "0.51399785", "0.51306605", "0.509575", "0.508454",...
0.46514902
88
implements a predator eating prey
private void eat() { this.energy = this.baseEnergy; ArrayList<Block> foodNeighbors = (ArrayList<Block>)this.getBlock().getAdjacent(prey, "2457"); while (foodNeighbors.size() > 0) { int randomNeighbor = r.nextInt(foodNeighbors.size()); Block b = this.getBlock(); Block t = foodNeighbors.get(randomNeighbor); if (!t.getNextCell().getNextState().equals(predator)) { moveCell(this, b, t, new WaTorCell(this.getBlock(), new WaTorState(State.EMPTY_STATE), this.ageToReproduce, this.baseEnergy)); return; } foodNeighbors.remove(t); } cellPreyRules(new WaTorState(WaTorState.WATOR_PREDATOR)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Predator reproduce() {\n if(eaten < 2) return null;\n else {\n if ((int) (Math.random() * 100) >= 80) {\n predatorsSpawned++;\n return new Predator(((int) ((speed + Math.random()) * 5)), ((int) (maxEnergy + Math.random()\n * 50)),...
[ "0.62752724", "0.59364843", "0.57857037", "0.5750977", "0.5717967", "0.5665923", "0.5653738", "0.56462437", "0.5587891", "0.5493652", "0.5493614", "0.54358596", "0.5423067", "0.5330311", "0.5329748", "0.5295974", "0.5287044", "0.52834964", "0.5269887", "0.52551657", "0.523283...
0.531726
15
moves this to open adjacent cell and leaves behind Cell leaveBehind
private void moveToOpen(Cell leaveBehind) { ArrayList<Block> EmptyNeighbors = (ArrayList<Block>)this.getBlock().getAdjacent(empty, "2457"); while (EmptyNeighbors.size() > 0) { int choose = r.nextInt(EmptyNeighbors.size()); Block b = this.getBlock(); Block t = EmptyNeighbors.get(choose); if (t.getNextCell().getNextState().isEmpty()) { moveCell(this, b, t, leaveBehind); return; } else { EmptyNeighbors.remove(choose); } } cellEmptyRules(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public HexCell getAdjacentCell(HexCell currentCell, MyValues.HEX_POSITION position){\n int cellX = currentCell.x;\n int cellY = currentCell.y;\n HexCell adjacentCell = null;\n switch (position){\n case TOP:\n if(isInBound(cellY-1, y)){\n adja...
[ "0.5458887", "0.5458378", "0.5420736", "0.5407276", "0.53969306", "0.5363865", "0.5349115", "0.53342456", "0.53342456", "0.530964", "0.52845263", "0.52759767", "0.52684283", "0.52565", "0.525641", "0.5255414", "0.52543914", "0.52295333", "0.52141523", "0.52014434", "0.5175554...
0.70472735
0
Gets the X position of the icon
public int getX() { return this.x; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getXPosition(){\n\t\treturn xPosition;\n\t}", "public int getX() { return position.x; }", "public int getXPosition() {\n return xPosition;\n }", "public int getXPosition()\n {\n return xPosition;\n }", "public int getXPosition()\n {\n return xPosition;\n }", ...
[ "0.7408002", "0.7388564", "0.7380897", "0.7352509", "0.7352509", "0.7316932", "0.7316862", "0.72786206", "0.72501963", "0.72358173", "0.72343415", "0.7233907", "0.7214241", "0.72087175", "0.7202298", "0.7177501", "0.7148513", "0.71378773", "0.7134144", "0.7132338", "0.7128103...
0.0
-1
Gets the Y position of the icon
public int getY() { return this.y; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getY() {\n return (int) yPos;\n }", "public int getYOffset();", "public double getPositionY() {\n\t\treturn this.tilePositionY;\n\t}", "public int getY() { return loc.y; }", "public int getY() {\n return pos_y;\n }", "public int getY()\r\n {\r\n return yLoc;\r\n ...
[ "0.7520913", "0.7512522", "0.75032055", "0.74731153", "0.7425135", "0.7421983", "0.7419619", "0.73938787", "0.73834884", "0.73822284", "0.73780954", "0.7372746", "0.73520875", "0.7326238", "0.73211294", "0.7309599", "0.7295679", "0.72896856", "0.7289186", "0.72776836", "0.727...
0.695144
92
Gets the standard sprite for the icon
public int getSpriteStandard() { return this.spriteStandard; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getIcon();", "java.lang.String getIcon();", "String getIcon();", "String getIcon();", "Icon getIcon();", "public Icon getIcon();", "public abstract Drawable getIcon();", "public String getIcon() {\n\t\treturn \"icon\";\n\t}", "java.lang.String getGameIconUrl();", "public Icon get...
[ "0.74877167", "0.74877167", "0.74757695", "0.74757695", "0.7446266", "0.7290095", "0.7243748", "0.71274745", "0.7089194", "0.7048103", "0.7019019", "0.69554204", "0.6950828", "0.6939813", "0.6931182", "0.69276434", "0.6922114", "0.690689", "0.69063306", "0.69063306", "0.69063...
0.6524246
52
Gets the sprite for the hovering state of this icon
public int getSpriteHover() { return this.spriteHover; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getHover() { return (String)get(\"Hover\"); }", "public Sprite getSprite() {\n\t\treturn image;\n\t}", "@Override\n\tpublic final Sprite getSprite() {\n\t\treturn this.sprite;\n\t}", "public Sprite getSprite() {\n\t\tlong currTime = System.currentTimeMillis();\n\t\tif(currTime - lastUpdate > t...
[ "0.6348278", "0.62979543", "0.6281388", "0.62791187", "0.6261917", "0.6153202", "0.6148432", "0.6122777", "0.6122777", "0.61071026", "0.60846055", "0.6047927", "0.6006144", "0.59502107", "0.58879495", "0.58669543", "0.58668387", "0.58590275", "0.5824478", "0.58195335", "0.581...
0.779189
0
add edge to verties
void addEdge(int v, int w) { adj[v].add(w); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void addEdge(int x, int y);", "boolean addEdge(V v, V w);", "public void addEdge(int u, int v, double w) {\n\t\t\n\t}", "public void addEdge(int start, int end);", "public void addEdge(){\n Node[] newAdjacent = new Node[adjacent.length + 1];\n for (int i = 0; i < adjacent.length; i++)...
[ "0.8029599", "0.7903319", "0.780303", "0.75492316", "0.75373715", "0.74362504", "0.7421864", "0.7367415", "0.7358071", "0.73569787", "0.7350379", "0.7327743", "0.731986", "0.7303922", "0.7258716", "0.7252712", "0.7241559", "0.723967", "0.7226953", "0.7226953", "0.722494", "...
0.7127659
24
Assert that the element is attached.
public static TextArea wrap(Element element, boolean isHTMLFormElement) { assert Document.get().getBody().isOrHasChild(element); TextArea textArea = new TextArea(element); // Mark it attached and remember it for cleanup. textArea.onAttach(); if(!isHTMLFormElement){ RootPanel.detachOnWindowClose(textArea); } // return textArea; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void assertElementPresent(final String elementLocator);", "public void verifyElementIsVisible(String elementName) {\n wait.forElementToBeDisplayed(5, returnElement(elementName), elementName);\n Assert.assertTrue(\"FAIL: Yellow Triangle not present\", returnElement(elementName).isDisplayed())...
[ "0.6153751", "0.6081664", "0.6006531", "0.59907377", "0.5980759", "0.59399015", "0.5883858", "0.5788095", "0.57579374", "0.5717095", "0.5702106", "0.5685356", "0.56754833", "0.5630157", "0.5592454", "0.5590096", "0.5571639", "0.553636", "0.5516924", "0.55130285", "0.54787624"...
0.0
-1
USED AS AN INTERMEDIARY BETWEEN THE DISK FREE SPACE MANAGER AND ANY FUNCTION WITHIN THIS CLASS THAT ASKS FOR A FREE BLOCK
private int requestBlock() throws InodeNotEnoughDiskSpaceExcepcion{ int blockAddr; if((blockAddr = DiskFreeSpaceManager.getInstance().firstFreeBlock()) == -1){ throw new InodeNotEnoughDiskSpaceExcepcion("Not enough disk space."); } return blockAddr; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic long getFreeBlocks() {\n\t\treturn 0;\n\t}", "int getTotalFree();", "public void act()\n {\n // if (claimer ==null){\n // this.setClaim(false);\n //}\n if(claimer == null){\n setClaim(false);\n }\n if (energy>0){\n \n ...
[ "0.5688606", "0.55634195", "0.5524139", "0.5383076", "0.53700066", "0.53700066", "0.52834177", "0.52828", "0.5249912", "0.5246184", "0.5216958", "0.5214238", "0.51920295", "0.5191517", "0.5190071", "0.5169392", "0.5147791", "0.5147048", "0.5142325", "0.51412135", "0.5104277",...
0.5121295
20
TODO Autogenerated method stub
@Override public void validate() { }
{ "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
/ Override constructor with registered directives
public MainEvent() { super.register(new HelloWorld()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Implementation\n protected void __constructor__(IDisplayManager dm) {\n }", "Directive createDirective();", "public PSRelation()\n {\n }", "public CustomAnnotationParanamer() {\n super(new AdaptiveParanamer());\n }", "public Tags() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }...
[ "0.62190765", "0.6207371", "0.61647785", "0.6140337", "0.6125759", "0.60179734", "0.5998956", "0.59708226", "0.5958952", "0.59471315", "0.593201", "0.5914333", "0.59120196", "0.59120196", "0.5893871", "0.58884615", "0.58631074", "0.5846714", "0.5841951", "0.5833245", "0.58184...
0.0
-1
TODO Autogenerated method stub
public List<Todos> fetchTodos(User user) { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
Inflate the layout for this fragment
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View view = inflater.inflate(R.layout.fragment_idp_callback, container, false); message = view.findViewById(R.id.message); message.setText("redirecting..."); progressBar = view.findViewById(R.id.loading); progressBar.setVisibility(View.VISIBLE); proceed(); return view; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_main_allinfo, container, false);\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup...
[ "0.6742135", "0.6726157", "0.6724717", "0.67012674", "0.66944426", "0.66910595", "0.66888237", "0.668751", "0.66790944", "0.667782", "0.66679764", "0.66676605", "0.6667572", "0.6663008", "0.66553324", "0.66510403", "0.6644715", "0.6641966", "0.6639501", "0.66363883", "0.66273...
0.0
-1
When true, the offer is fulfilled by Amazon.
public Boolean isIsAmazonFulfilled() { return isAmazonFulfilled; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean acceptedTradeOffer()\n\t{\n\t\treturn m_isReadyToTrade;\n\t}", "boolean hasIsAmazon();", "public boolean isBuyable();", "public boolean conditionFulfilled();", "public boolean isCompleted() {\r\n\r\n\t\treturn (getAmount() - offeredQuantity) == 0 || isAborted();\r\n\r\n\t}", "boolean getIs...
[ "0.67797166", "0.6548357", "0.61954254", "0.6015426", "0.599745", "0.596959", "0.59680945", "0.594904", "0.59469855", "0.59414524", "0.5905538", "0.587792", "0.5874033", "0.58677363", "0.5856577", "0.57897353", "0.57852596", "0.5771779", "0.57634324", "0.5738331", "0.57031393...
0.7964637
0
The product price that the fee estimate is based on.
public PriceToEstimateFees getPriceToEstimateFees() { return priceToEstimateFees; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public BigDecimal getPriceActual();", "public double getPrice(){\n\t\treturn Price; // Return the product's price\n\t}", "public double getPrice() {\n double price = BASE_PRICE;\n for (Topping topping : toppings) {\n if (topping.isPremium()) {\n price += 1.25;\n } else {\n price +...
[ "0.77504736", "0.7739596", "0.77242476", "0.76515627", "0.7637362", "0.75946254", "0.7573409", "0.7572959", "0.756705", "0.7557503", "0.7557503", "0.755348", "0.7551684", "0.753835", "0.7526213", "0.75067484", "0.7505688", "0.7505688", "0.7505688", "0.7505688", "0.7505688", ...
0.0
-1