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
Checks that the total count of the item with the specified aggregation key in the represented aggregation conforms to the expected value.
void assertTotalCntEquals(T key, int expected);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void assertTotalCntPctEquals(T key, double expected);", "void assertTotalTimePctEquals(T key, double expected);", "void assertSelfCntPctEquals(T key, double expected);", "void checkConsumption()\n {\n assertEquals(\"Consumption doesn't match\", keyEventPair.getKey().isConsumed(), keyEventPa...
[ "0.631295", "0.57322544", "0.54222304", "0.53904593", "0.5311208", "0.5249086", "0.4945039", "0.49088702", "0.48854735", "0.48621103", "0.47793826", "0.4776", "0.47348648", "0.47107667", "0.47021475", "0.4701219", "0.46998623", "0.4695865", "0.46781296", "0.46773115", "0.4675...
0.63087445
1
Checks that the self time of the item with the specified aggregation key in the represented aggregation conforms to the expected value.
void assertSelfTimeEquals(T key, long expected);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void assertSelfTimePctEquals(T key, double expected);", "void assertTotalTimeEquals(T key, long expected);", "void assertSelfCntPctEquals(T key, double expected);", "void assertTotalTimePctEquals(T key, double expected);", "void assertSelfCntEquals(T key, int expected);", "private static boolean shouldAg...
[ "0.67086345", "0.5873598", "0.57381564", "0.5527006", "0.5278109", "0.5247289", "0.5229858", "0.519102", "0.5156332", "0.5114891", "0.5105299", "0.50783867", "0.5022258", "0.49421933", "0.49209967", "0.49187204", "0.48880515", "0.48813045", "0.48793507", "0.48687795", "0.4862...
0.68983984
0
Checks that the total time of the item with the specified aggregation key in the represented aggregation conforms to the expected value.
void assertTotalTimeEquals(T key, long expected);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void assertTotalTimePctEquals(T key, double expected);", "void assertSelfTimePctEquals(T key, double expected);", "void assertTotalCntPctEquals(T key, double expected);", "void assertSelfTimeEquals(T key, long expected);", "private static boolean shouldAggregate(TimedDataAggregator aggregator) {\n l...
[ "0.67444086", "0.62114614", "0.59209764", "0.59095484", "0.5737646", "0.5654846", "0.55847234", "0.55164057", "0.5428082", "0.53776664", "0.5283508", "0.52439684", "0.5175826", "0.5140133", "0.5083552", "0.5074793", "0.49887192", "0.49746904", "0.49066302", "0.49058807", "0.4...
0.6798601
0
Checks that the self count percent of the item with the specified aggregation key in the represented aggregation conforms to the expected value.
void assertSelfCntPctEquals(T key, double expected);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void assertTotalCntPctEquals(T key, double expected);", "void assertSelfTimePctEquals(T key, double expected);", "void assertTotalTimePctEquals(T key, double expected);", "void assertTotalCntEquals(T key, int expected);", "void assertSelfCntEquals(T key, int expected);", "@Test\n\tpublic void testSingleS...
[ "0.67802197", "0.67211515", "0.6383156", "0.5632197", "0.5596592", "0.53572845", "0.5235747", "0.51501375", "0.51053435", "0.50943154", "0.50811344", "0.5064232", "0.50527805", "0.50259477", "0.5020743", "0.49666408", "0.49048287", "0.48910263", "0.48847935", "0.4855486", "0....
0.70918083
0
Checks that the total count percent of the item with the specified aggregation key in the represented aggregation conforms to the expected value.
void assertTotalCntPctEquals(T key, double expected);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void assertTotalTimePctEquals(T key, double expected);", "void assertSelfCntPctEquals(T key, double expected);", "void assertSelfTimePctEquals(T key, double expected);", "void assertTotalCntEquals(T key, int expected);", "@Ignore\n @Test\n public void It_should_selected_percent_correctly() {\...
[ "0.67386883", "0.6371209", "0.5828116", "0.580996", "0.54744136", "0.5310735", "0.5304313", "0.52675277", "0.52622724", "0.52380997", "0.5082254", "0.5080256", "0.5066706", "0.50530577", "0.49867326", "0.49752262", "0.49578184", "0.49469858", "0.49428442", "0.4927319", "0.489...
0.71597755
0
Checks that the self time percent of the item with the specified aggregation key in the represented aggregation conforms to the expected value.
void assertSelfTimePctEquals(T key, double expected);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void assertSelfCntPctEquals(T key, double expected);", "void assertTotalTimePctEquals(T key, double expected);", "void assertSelfTimeEquals(T key, long expected);", "void assertTotalCntPctEquals(T key, double expected);", "void assertTotalTimeEquals(T key, long expected);", "void checkConsumption()\n ...
[ "0.6934243", "0.6766008", "0.6255286", "0.61135423", "0.57761425", "0.5224572", "0.52121407", "0.51348805", "0.5008231", "0.49546334", "0.49349466", "0.48608634", "0.48040384", "0.4798662", "0.4791204", "0.4771396", "0.4766047", "0.47654453", "0.4761875", "0.47608975", "0.475...
0.75723463
0
Checks that the total time percent of the item with the specified aggregation key in the represented aggregation conforms to the expected value.
void assertTotalTimePctEquals(T key, double expected);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void assertTotalCntPctEquals(T key, double expected);", "void assertSelfTimePctEquals(T key, double expected);", "void assertSelfCntPctEquals(T key, double expected);", "void assertTotalTimeEquals(T key, long expected);", "void checkConsumption()\n {\n assertEquals(\"Consumption doesn't m...
[ "0.6949206", "0.6800056", "0.6466897", "0.62271947", "0.5521596", "0.54055935", "0.52451926", "0.51960075", "0.51295567", "0.5074061", "0.50676936", "0.50639397", "0.49659193", "0.49534014", "0.49481565", "0.49457735", "0.4916721", "0.48700976", "0.48014244", "0.4784566", "0....
0.75083596
0
Called when the tab close button has been clicked. This callback is used to do special actions before tab close. You can prevent the close operation by returning false.
public boolean tabClosing(int index, String title);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void closeTab(Tab tab) {\n if (tab == mTabControl.getCurrentTab()) {\n closeCurrentTab();\n } else {\n removeTab(tab);\n }\n }", "public void close(TabbedEvent te) {\n\n\t}", "private void tabCloseEvent(Tab tab) {\n final String tabName...
[ "0.6735842", "0.64335245", "0.6381465", "0.6357051", "0.6309498", "0.6214137", "0.61585206", "0.6121752", "0.60304", "0.5977401", "0.59759533", "0.59642386", "0.5934456", "0.5906328", "0.58973557", "0.5892603", "0.5892603", "0.5883523", "0.5881839", "0.58761364", "0.5855031",...
0.7031497
0
Called when the tab has been closed.
public void tabClosed(int index, String title);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void close(TabbedEvent te) {\n\n\t}", "public void closeTab() {\n\t\tclose();\n\t\t\n\t\tfor(int i = 0; i < Main.gameTabs.getTabs().size(); i++) {\n\t\t\tif(Main.gameTabs.getTabs().get(i).getId().equals(hostName)) {\n\t\t\t\tMain.gameTabs.getTabs().remove(i);\n\t\t\t}\n\t\t}\n\t\tfor (int i=0; i<Main.game...
[ "0.73154396", "0.7021017", "0.70026314", "0.6998471", "0.69738835", "0.6949443", "0.68955743", "0.6861231", "0.6827358", "0.67921084", "0.6759506", "0.6722445", "0.67217153", "0.67217153", "0.67217153", "0.6717434", "0.6705843", "0.67040884", "0.67037755", "0.6702017", "0.670...
0.7164898
1
Returns the 'closable' state of tab component at index.
public boolean isTabClosable(int index) { return ((CloseableTabComponent) getTabComponentAt(index)).isClosable(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setTabClosable(int index, boolean value)\r\n {\r\n ((CloseableTabComponent) getTabComponentAt(index)).setClosable(value);\r\n }", "public void tabClosed(int index, String title);", "public boolean tabClosing(int index, String title);", "public JComponent getComponentAtIndex(int i) {\...
[ "0.59768033", "0.581309", "0.55667466", "0.5490395", "0.5043372", "0.49991804", "0.4959589", "0.4953923", "0.4891273", "0.48764116", "0.478299", "0.4782778", "0.47730568", "0.4766626", "0.47659987", "0.47651264", "0.4676537", "0.46642336", "0.46566874", "0.46527836", "0.46527...
0.6643132
0
Set the 'closable' state of tab component at index.
public void setTabClosable(int index, boolean value) { ((CloseableTabComponent) getTabComponentAt(index)).setClosable(value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void tabClosed(int index, String title);", "public boolean isTabClosable(int index)\r\n {\r\n return ((CloseableTabComponent) getTabComponentAt(index)).isClosable();\r\n }", "public boolean tabClosing(int index, String title);", "public void afterIndexClosed(Index index) {\n\n }", ...
[ "0.6778461", "0.63367367", "0.59277225", "0.55161595", "0.5446172", "0.5365153", "0.53410274", "0.52455956", "0.52363235", "0.51709324", "0.51655537", "0.5074181", "0.50241196", "0.50119036", "0.49912766", "0.49684948", "0.4930041", "0.49221042", "0.49136695", "0.48943356", "...
0.77418256
0
The Base query is extended by all other queries
public BaseStudentsQuery(DataSource ds, String sql) { super(ds, sql); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Query advancedQuery() \n {\n return null;\n }", "private DbQuery() {}", "Query query();", "public void Query() {\n }", "SelectQuery createSelectQuery();", "public abstract Statement queryToRetrieveData();", "protected void reflectRelationOnUnionQuery(ConditionQuery baseQueryAsSuper, Cond...
[ "0.6755647", "0.66282403", "0.6461582", "0.6452558", "0.6387257", "0.6289042", "0.62664986", "0.6259718", "0.620723", "0.61824393", "0.6156575", "0.61504644", "0.6127494", "0.61165553", "0.6105992", "0.610184", "0.60696584", "0.606097", "0.60318005", "0.60166675", "0.601107",...
0.0
-1
Fetches all students from table
public Query_GetAllStudentsOrderMatnr(DataSource ds) { super(ds, sql_getAllStudents + " order by matnr"); compile(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "List<Student> getAllStudents();", "public List <Student> getAllStudents();", "@Override\n\tpublic List<Student> retrieveAllStudents() {\n\t\tTypedQuery<Student> query = em.createQuery(\"select s from Student s\",\n\t\t\t\tStudent.class);\n\t\treturn query.getResultList();\n\t}", "@Override\n\t//查询所有数据\n\tpub...
[ "0.76061475", "0.748243", "0.74736106", "0.7457012", "0.74488026", "0.7397483", "0.7346437", "0.7259301", "0.72469234", "0.72381705", "0.72312135", "0.7217646", "0.71637297", "0.7142682", "0.7078335", "0.7074806", "0.7072423", "0.70188195", "0.69912964", "0.6973413", "0.69732...
0.0
-1
Fetches all students from table.
public Query_GetAllStudentsOrderNachname(DataSource ds) { super(ds, sql_getAllStudents + " order by nachname"); compile(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic List<Student> retrieveAllStudents() {\n\t\tTypedQuery<Student> query = em.createQuery(\"select s from Student s\",\n\t\t\t\tStudent.class);\n\t\treturn query.getResultList();\n\t}", "@Override\r\n\tpublic List<Student> getAll() {\n\t\treturn dao.getAll();\r\n\t}", "@Override\n\t//查询所有数据\n\t...
[ "0.756952", "0.7506273", "0.74146324", "0.73832226", "0.73212874", "0.7286871", "0.7277316", "0.7266815", "0.7196707", "0.7134216", "0.7128638", "0.7124244", "0.7113564", "0.7050756", "0.70054704", "0.69975746", "0.69939077", "0.6967345", "0.69576734", "0.69475716", "0.694574...
0.0
-1
Fetches only ONE student from database.
public Query_GetStudent(DataSource ds) { super(ds, sql_getStudent); super.declareParameter(new SqlParameter("id", Types.INTEGER)); compile(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Student selectByPrimaryKey(Integer id);", "Student get(long id);", "Student getStudentById(Long id);", "Student selectByPrimaryKey(Integer studentId);", "public Student findStudent(int id);", "Student selectByPrimaryKey(Integer userid);", "Student fetchBy(String name);", "public student getstudent(In...
[ "0.7131014", "0.7115716", "0.7048302", "0.7030778", "0.6946343", "0.69384325", "0.6931114", "0.6913412", "0.6879789", "0.68710726", "0.68000454", "0.67963713", "0.6743414", "0.67342305", "0.6713452", "0.66469294", "0.66113824", "0.6602994", "0.6554243", "0.6530295", "0.652865...
0.58606386
62
Retrieves the ID of the student added to database.
public Query_InsertStudent(DataSource ds) { super.setDataSource(ds); setSql(sql_insertStudent); declareParameter(new SqlParameter("matnr", Types.VARCHAR)); declareParameter(new SqlParameter("firstname", Types.VARCHAR)); declareParameter(new SqlParameter("lastname", Types.VARCHAR)); declareParameter(ne...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getId() \r\n {\r\n return studentId;\r\n }", "public int getId() {\n\n\t\treturn id; // returns student id\n\n\t}", "public long getStudentID();", "public int getStudentId();", "static int createStudentGetId(Database db, String login, String first, String last, String email) throws ...
[ "0.71962607", "0.7185579", "0.71074146", "0.6941773", "0.6928332", "0.68080854", "0.6794975", "0.6788151", "0.6737685", "0.66868407", "0.6657216", "0.6639182", "0.6548947", "0.6548947", "0.6478475", "0.64476556", "0.64255595", "0.6423889", "0.64058137", "0.63905644", "0.63802...
0.0
-1
Create and initialises the SQLQuery for updating a student.
public Query_UpdateStudent(DataSource ds) { super.setDataSource(ds); setSql(sql_updateStudent); declareParameter(new SqlParameter("id", Types.INTEGER)); declareParameter(new SqlParameter("matnr", Types.VARCHAR)); declareParameter(new SqlParameter("firstname", Types.VARCHAR)); declareParameter(new SqlP...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Update(\"UPDATE student SET name = #{name}, gpa = #{gpa} WHERE npm = #{npm}\")\n\tvoid updateStudent(StudentModel student);", "public static int executePreparedStatement(String query, Student student){\n\t\tPreparedStatement statement = null;\n\t\ttry{\n\t\t\tconnectDatabase();\n\t\t\tstatement = connection.pre...
[ "0.64211684", "0.63804024", "0.626808", "0.6244508", "0.600576", "0.6004957", "0.5991882", "0.59572804", "0.5939559", "0.59363306", "0.5917217", "0.58262205", "0.5770806", "0.5767232", "0.57285994", "0.57285994", "0.57285994", "0.5715139", "0.57121104", "0.5698166", "0.568031...
0.70618385
0
Creates and initializes the SQLQuery for deleting a student.
public Query_DeleteStudent(DataSource ds) { super.setDataSource(ds); setSql(sql_deleteStudent); declareParameter(new SqlParameter("id", Types.INTEGER)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setSql_deleteStudent(String sql_deleteStudent) {\n\t\tthis.sql_deleteStudent = sql_deleteStudent;\n\t}", "@Override\n\tpublic boolean delete() {\n\t\tString sql=\"DELETE FROM tc_student where id=\"+id;\n\t\t//`\n\t\t\n\t\tSystem.out.println(sql);\n\t\treturn mysql.execute(sql);\n\t}", "public stati...
[ "0.64588755", "0.6166267", "0.61582863", "0.61243993", "0.6093056", "0.60133684", "0.59655344", "0.595163", "0.5929633", "0.59030557", "0.5900875", "0.5876063", "0.58463186", "0.5797083", "0.5782419", "0.57751393", "0.57596755", "0.5756833", "0.5750961", "0.5701004", "0.56849...
0.69871527
0
Retrieves the ID of the student added to database.
public Query_GetStudentID(DataSource ds) { super(ds, sql_getInsertId); compile(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getId() \r\n {\r\n return studentId;\r\n }", "public int getId() {\n\n\t\treturn id; // returns student id\n\n\t}", "public long getStudentID();", "public int getStudentId();", "static int createStudentGetId(Database db, String login, String first, String last, String email) throws ...
[ "0.71962607", "0.7185579", "0.71074146", "0.6941773", "0.6928332", "0.68080854", "0.6794975", "0.6788151", "0.6737685", "0.66868407", "0.6657216", "0.6639182", "0.6548947", "0.6548947", "0.6478475", "0.64476556", "0.64255595", "0.6423889", "0.64058137", "0.63905644", "0.63802...
0.61577314
41
/ C O N S T R U C T O R
public JdbcObjectStudentDAO() { super(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private USI_TRLT() {}", "private static void cajas() {\n\t\t\n\t}", "public void mo21879u() {\n }", "public void baocun() {\n\t\t\n\t}", "public void xuat() {\n\n\t}", "private void strin() {\n\n\t}", "public abstract void mo20899UO();", "public UCharacterThreadTest()\n {\n }", "private ch...
[ "0.5564753", "0.5526796", "0.5269235", "0.5253753", "0.52490085", "0.51642406", "0.5126508", "0.5094987", "0.50553775", "0.5054199", "0.5045128", "0.49820563", "0.49512893", "0.49091667", "0.4887229", "0.4880155", "0.4859293", "0.48469606", "0.4831854", "0.4801409", "0.479934...
0.0
-1
The Initialise Method must be called after all bean values are set, particularly the datasource and the transaction manager. This is actually performed by the Spring Framework, which sets first of all, all Java Bean Properties and eventually calls this init method (see bean definition in beans.xml configuration file)
public void init() { log.info("Initialise StudentDAO"); query_getStudent = new Query_GetStudent(dataSource); query_insertStudent = new Query_InsertStudent(dataSource); query_getStudentId = new Query_GetStudentID(dataSource); query_updateStudent = new Query_UpdateStudent(dataSource); query_deleteStudent = ne...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void init() {\n\r\n\t\ttry {\r\n\r\n\t\t\t//// 등록한 bean 에 있는 datasource를 가져와서 Connection을 받아온다\r\n\t\t\tcon = ds.getConnection();\r\n\r\n\t\t} catch (Exception e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t}", "@Override\r\n\tpublic void afterPropertiesSe...
[ "0.7362285", "0.7355758", "0.7225416", "0.70653313", "0.70421505", "0.70363814", "0.68108004", "0.6789009", "0.6760614", "0.6718574", "0.6718574", "0.6715856", "0.6715856", "0.67063046", "0.66992337", "0.667629", "0.6669164", "0.6617939", "0.6603974", "0.6589146", "0.65834177...
0.0
-1
The Destroy Method is called by the Spring Framework to end the lifecycle of this bean, but only when the bean is created as singleton. Check the bean definition in beans.xml configuration file for details.
public void destroy() { log.info("Destroy StudentDAO"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void destroy() {\r\n\t\tsuper.destroy();\r\n\t\ttry {\r\n\t\t\tspringContext.close();\r\n\t\t} catch (Exception e) {\r\n\t\t\tlogger.warn(e);\r\n\t\t}\r\n\t}", "@Override\n\tpublic void destroy() throws Exception {\n\t\t\n\t\tSystem.out.println(\"Bean distroy completed from class !!\");\n\t...
[ "0.75402355", "0.7416986", "0.7185129", "0.71396595", "0.7121044", "0.6920413", "0.68529844", "0.68529844", "0.6838936", "0.67712575", "0.67609173", "0.6685348", "0.6629003", "0.6573708", "0.6543543", "0.6539163", "0.6500867", "0.6500867", "0.6500867", "0.64956313", "0.649563...
0.0
-1
/ BEAN SETTERS FOR DEPENDENCY INJECTION Dependency Injection is a design pattern in which the responsibility for object creation and object linking is removed from the objects themselves and transferred to a factory object. It is a way to achieve loose coupling between objects and results in highly testable objects (co...
public void setSql_getAllStudents(String sql_getAllStudents) { this.sql_getAllStudents = sql_getAllStudents; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Student createStudent();", "public interface IStudentDao {\r\n //查询student表中的数据\r\n //使用@Param进行多个参数查询操作\r\n List<Student> selectStudentsParam(@Param(\"studentName\") String name,\r\n @Param(\"studentAge\") int age);\r\n //使用对象进行多个参数查询操作\r\n List<Student> selectStud...
[ "0.68468803", "0.6813533", "0.67371786", "0.6703859", "0.66137505", "0.6595481", "0.65837127", "0.65749156", "0.65479577", "0.6508323", "0.64307487", "0.6426107", "0.6367408", "0.63636106", "0.6342212", "0.63261926", "0.6305503", "0.6295905", "0.6291553", "0.62573874", "0.625...
0.0
-1
Sets the SQL String to get one student with one SQL parameter.
public void setSql_getStudent(String sql_getStudent) { this.sql_getStudent = sql_getStudent; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\tpublic String queryStudent(int no) throws RemoteException {\n\t\t\treturn queryString(no);\n\t\t}", "public E returnStudent(String studentID){}", "public Query_GetStudent(DataSource ds) {\n\t\t\tsuper(ds, sql_getStudent);\n\t\t\tsuper.declareParameter(new SqlParameter(\"id\", Types.INTEGER));\n\...
[ "0.69884574", "0.6377487", "0.6280059", "0.60532767", "0.58353347", "0.5824998", "0.57665753", "0.57550347", "0.5718482", "0.5708014", "0.5679893", "0.5648716", "0.5629407", "0.560918", "0.559586", "0.5585827", "0.557468", "0.55730414", "0.5568424", "0.55525124", "0.55491173"...
0.6558815
1
Sets the SQL String to insert one student into the database.
public void setSql_insertStudent(String sql_insertStudent) { this.sql_insertStudent = sql_insertStudent; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Query_InsertStudent(DataSource ds) {\n\t\t\tsuper.setDataSource(ds);\n\t\t\tsetSql(sql_insertStudent);\n\t\t\tdeclareParameter(new SqlParameter(\"matnr\", Types.VARCHAR));\n\t\t\tdeclareParameter(new SqlParameter(\"firstname\", Types.VARCHAR));\n\t\t\tdeclareParameter(new SqlParameter(\"lastname\", Types.VA...
[ "0.7018613", "0.6764705", "0.6635508", "0.653103", "0.6358671", "0.6355493", "0.6241051", "0.620597", "0.61536616", "0.60971147", "0.60865974", "0.6060302", "0.6056138", "0.60433334", "0.6029394", "0.6009557", "0.59496534", "0.59445494", "0.5932488", "0.59231985", "0.577624",...
0.7141957
0
Sets the SQL String to retrieve the ID of the last executed SQL Statement.
public void setSql_getInsertId(String sql_getInsertId) { this.sql_getInsertId = sql_getInsertId; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getSQLString () {\n \treturn statementString;\n }", "int getStatementId();", "int getStatementId();", "int getStatementId();", "public int getStatementId() {\n return statementId_;\n }", "public int getStatementId() {\n return statementId_;\n }", "public int getStatement...
[ "0.64554423", "0.6194769", "0.6194769", "0.6194769", "0.6063102", "0.6063102", "0.6063102", "0.5934898", "0.5934898", "0.5934898", "0.5911142", "0.5888259", "0.58405393", "0.583979", "0.58346945", "0.5802449", "0.5802078", "0.57452595", "0.5720621", "0.5687965", "0.56414133",...
0.0
-1
Sets the SQL String to update a student.
public void setSql_updateStudent(String sql_updateStudent) { this.sql_updateStudent = sql_updateStudent; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Query_UpdateStudent(DataSource ds) {\n\t\t\tsuper.setDataSource(ds);\n\t\t\tsetSql(sql_updateStudent);\n\t\t\tdeclareParameter(new SqlParameter(\"id\", Types.INTEGER));\n\t\t\tdeclareParameter(new SqlParameter(\"matnr\", Types.VARCHAR));\n\t\t\tdeclareParameter(new SqlParameter(\"firstname\", Types.VARCHAR)...
[ "0.71084934", "0.70761395", "0.70476204", "0.660087", "0.6587703", "0.65737057", "0.6471135", "0.6385836", "0.63770854", "0.62922484", "0.6171793", "0.6167782", "0.6158897", "0.611412", "0.6096181", "0.6084002", "0.60660404", "0.6059276", "0.6055122", "0.5995996", "0.5967663"...
0.7516
0
Sets the SQL String to delete a student.
public void setSql_deleteStudent(String sql_deleteStudent) { this.sql_deleteStudent = sql_deleteStudent; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Query_DeleteStudent(DataSource ds) {\n\t\t\tsuper.setDataSource(ds);\n\t\t\tsetSql(sql_deleteStudent);\n\t\t\tdeclareParameter(new SqlParameter(\"id\", Types.INTEGER));\n\t\t}", "public void deleteStudent(String theStudentId) {\n\t\tConnection myConn=null;\n\t\tPreparedStatement myStmt=null;\n\t\ttry\n\t\...
[ "0.67133737", "0.64796394", "0.64205915", "0.6407247", "0.639681", "0.63718885", "0.6225464", "0.61652446", "0.6113757", "0.6055071", "0.60409135", "0.6036997", "0.60245323", "0.5988496", "0.59839034", "0.5951362", "0.5911729", "0.5891915", "0.588982", "0.5889129", "0.5820595...
0.7517024
0
Sets the Datasource to connect to database.
public void setDataSource(DataSource dataSource) { this.dataSource = dataSource; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setDataSource(DataSource ds) throws SQLException {\n\t\tthis.ds = ds;\n\t\tthis.con = ds.getConnection();\n\t}", "public void setDatasource(DataSource source) {\n datasource = source;\n }", "public void setDatasource( String ds )\n {\n datasource = ds;\n }", "public void se...
[ "0.71117675", "0.70646477", "0.7005161", "0.69431204", "0.6917225", "0.6910004", "0.6728475", "0.6725198", "0.67228174", "0.6655803", "0.66516143", "0.66516143", "0.66516143", "0.66516143", "0.66516143", "0.66516143", "0.6629374", "0.6625587", "0.6585172", "0.6585172", "0.658...
0.64166087
33
Sets the transaction manager.
public void setTransactionManager( PlatformTransactionManager transactionManager) { this.transactionManager = transactionManager; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setTransactionManager(Object transactionManager)\n\t{\n\t\tthis.transactionManager = transactionManager;\n\t}", "public void setTransactionManager(TransactionManager tm)\n {\n _tm = tm;\n }", "public void setTransactionManager(Object txnMgr) {\r\n \r\n // RB: At this stage not...
[ "0.8203415", "0.7766002", "0.7724087", "0.71076906", "0.69151", "0.6559011", "0.6497221", "0.64789456", "0.64789456", "0.64470154", "0.64230597", "0.6393534", "0.63874024", "0.6385861", "0.630853", "0.6275494", "0.6272079", "0.6265455", "0.6252467", "0.6249081", "0.6225129", ...
0.77925694
1
/ DAO METHODS A Data Access Object (DAO) is a component which provides a common interface between the application and one or more data storage devices, such as a database or a file. The advantage of using data access objects is that any business object (which contains application or operation specific details) does not...
public Student getStudent(int id) { log.info("Get Student ID = " + id); List<?> students = query_getStudent.execute(id); if (students.size() == 1) { Student s = (Student) students.get(0); log.debug("Returning Student \"" + s.getFirstname() + " " + s.getLastname() + "\""); return s; } else { log...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface RightInfoDAO extends BaseDAO {\n /** The name of the DAO */\n public static final String NAME = \"RightInfoDAO\";\n\n\t/**\n\t * Insert one <tt>RightInfoDTO</tt> object to DB table <tt>azdai_right_info</tt>, return primary key\n\t *\n\t * <p>\n\t * The sql statement for this operation is ...
[ "0.7460573", "0.74070466", "0.7343727", "0.72358966", "0.7184613", "0.7167866", "0.7129536", "0.71094346", "0.7086987", "0.70148516", "0.7012114", "0.6984018", "0.69593173", "0.6947765", "0.694688", "0.6927029", "0.6910418", "0.6892987", "0.68855137", "0.6883343", "0.6859122"...
0.0
-1
Inserts one Student into the database. This method uses a transaction manager for performing two queries in one transaction: the insert statement is performed adding the dataset to the database (first query) the database then automatically generates a unique ID for this dataset, the second query asks the database which...
public Student saveStudent(Student student) { log.info("Add Student Name = " + student.getFirstname() + " " + student.getLastname()); log.debug("Initialise SQL Parameters"); final Object[] param = new Object[] { student.getMatnr(), student.getFirstname(), student.getLastname(), student.getEmail() }; log...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void insert(Student student) {\t\t\r\n\t\tdao.insertStudent(student); \r\n\t}", "public Student addStudent(AddOrUpdateStudentDTO student) throws SQLException {\n\n\t\t// try with resources: used when we want for our applicaton to automatically\n\t\t// call the .close() method on whatever \"resource\"\n\t\...
[ "0.7712758", "0.74467826", "0.7233247", "0.7192314", "0.71276206", "0.70673", "0.69715714", "0.69715714", "0.69715714", "0.69607437", "0.6954456", "0.6897769", "0.6894352", "0.6803749", "0.6754141", "0.67419606", "0.66500926", "0.6637818", "0.66347957", "0.6627561", "0.662639...
0.7844922
0
The transaction is run from here
public Object doInTransaction(TransactionStatus status) { log.debug("Start Transaction"); query_insertStudent.update(param); /* * activate the following error line to create an Error which * terminates this method. One will see, that the complete * transaction is rolled back, hence the inser...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void commitTx() {\n \n }", "public void beginTransaction() {\n\r\n\t}", "public void commitTransaction() {\n\r\n\t}", "@Override\n public void startTx() {\n \n }", "Transaction beginTx();", "void beginTransaction();", "void startTransaction();", "void commitTransaction();...
[ "0.74436325", "0.7259099", "0.7201227", "0.7086668", "0.7066577", "0.705249", "0.69823915", "0.6977295", "0.69656914", "0.6964142", "0.6940614", "0.68326145", "0.6829245", "0.6823623", "0.68159103", "0.6728315", "0.6724929", "0.6717846", "0.6689444", "0.66719985", "0.6669477"...
0.6127225
96
Retrieves all students from the database. Warning: this type of DAO method would not be used in a real world application because there may be thousands of students in the database and this method would retrieve them all. This is usually not needed: it will generate a huge load on the database and also require enormous ...
@SuppressWarnings("unchecked") public List<Student> getStudents(String order) { log.info("Get all Students order = " + order); List<Student> students = new ArrayList<Student>(); if (order.equals("Matrikelnummer")) { students = query_getAllStudentsOrderMatnr.execute(); } else if(order.equals("Nachname")) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic List<Student> retrieveAllStudents() {\n\t\tTypedQuery<Student> query = em.createQuery(\"select s from Student s\",\n\t\t\t\tStudent.class);\n\t\treturn query.getResultList();\n\t}", "List<Student> getAll() {\n\t\tSessionFactory sessionFactory = null;\n\t\tStandardServiceRegistry registry = ne...
[ "0.8179467", "0.8067904", "0.798294", "0.77892065", "0.7774739", "0.77731925", "0.7768181", "0.7717931", "0.76604074", "0.7633885", "0.7557578", "0.75138134", "0.7449886", "0.7447354", "0.7411876", "0.73930454", "0.73589414", "0.7244138", "0.7236899", "0.7205628", "0.7205098"...
0.0
-1
TODO Autogenerated method stub TODO Implement this method
public Student getStudentByMatrNr(String arg0) { 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\n\tpublic void anular() {\n\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tprotected void getExras() {\...
[ "0.68623984", "0.67189527", "0.65640235", "0.65415823", "0.6486089", "0.644276", "0.6408988", "0.63695633", "0.6338786", "0.6338283", "0.6334787", "0.63328546", "0.63328546", "0.6293376", "0.62798893", "0.6274015", "0.62629825", "0.6240243", "0.6231503", "0.61662495", "0.6135...
0.0
-1
TODO Autogenerated method stub
public List<StudentExam> getRegisteredExams(Student student) { 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 Player getPlayerByDob(Date dob) throws BusinessException { Player player = new Player(); try { Connection connection = PostgresqlConnection.getConnection(); String sql = "select playerid, playername, teamid, age, position, dob from \"Test\".player where dob = ?"; PreparedStatement prepare...
{ "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<Player> getPlayersByPosition(String position) throws BusinessException { List<Player> playersByPosition = new ArrayList<>(); try { Connection connection = PostgresqlConnection.getConnection(); String sql = "select playerid, playername, teamid, age, position, dob from \"Test\".player whe...
{ "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
Reads the schema from the parquet file. This is different from ParquetUtils as it uses the twitter parquet to support hive 1.1.0
private static MessageType readSchema(Configuration conf, Path parquetFilePath) { try { return ParquetFileReader.readFooter(conf, parquetFilePath).getFileMetaData() .getSchema(); } catch (IOException e) { throw new HoodieIOException("Failed to read footer for parq...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@java.lang.Override\n public com.google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchemaOrBuilder\n getParquetOrBuilder() {\n if (schemaCase_ == 4) {\n return (com.google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchema) schema_;\n }\n return com.google.cloud.datacatalog.v1.PhysicalSchema.Par...
[ "0.6391483", "0.63701797", "0.6288558", "0.62734723", "0.62032837", "0.6164487", "0.61312157", "0.58108926", "0.5718967", "0.5659571", "0.5533093", "0.5529231", "0.55055684", "0.55049926", "0.5441715", "0.5344095", "0.53158116", "0.5287273", "0.5281648", "0.52446866", "0.5241...
0.6607007
0
Goes through the log files and populates a map with latest version of each key logged, since the base split was written.
private void readAndCompactLog() throws IOException { Schema writerSchema = new AvroSchemaConverter().convert(baseFileSchema); List<String> projectionFields = orderFields( jobConf.get(ColumnProjectionUtils.READ_COLUMN_NAMES_CONF_STR), jobConf.get(ColumnProjectionUtils.READ_COLUMN...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "HashMap<String, Pair<Long, Long>> recoverLogFiles(\n DataInputStream in) throws IOException {\n HashMap<String, Pair<Long, Long>> logFiles = new HashMap<>();\n long totalEntries = in.readLong();\n for (long i = 0; i < totalEntries; i++) {\n Text attemptDirName = new Text();\n attemptDirName...
[ "0.6182892", "0.5957837", "0.5941577", "0.57983077", "0.57784736", "0.5688182", "0.5516371", "0.5466014", "0.5465907", "0.5402225", "0.5374776", "0.53580225", "0.53409487", "0.53377527", "0.53057575", "0.5273281", "0.5217747", "0.5215457", "0.5210665", "0.5181117", "0.517839"...
0.6134148
1
Given a comma separated list of field names and positions at which they appear on Hive, return a ordered list of field names, that can be passed onto storage.
public static List<String> orderFields(String fieldNameCsv, String fieldOrderCsv, String partitioningFieldsCsv) { String[] fieldOrders = fieldOrderCsv.split(","); Set<String> partitioningFields = Arrays.stream(partitioningFieldsCsv.split(",")) .collect(Collectors.toSet()); L...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<String> get_field_from_table(String table, String field, String order);", "protected List<OrderByInf> parseOrderBys(String fields)\n {\n List<OrderByInf> result = new ArrayList<>();\n if(fields == null || fields.isEmpty()) return result;\n String[] split = fields.split(\",\");...
[ "0.60715955", "0.5927664", "0.56236345", "0.5407409", "0.53997386", "0.5333027", "0.52517104", "0.52471364", "0.5212303", "0.51997405", "0.51745033", "0.5102587", "0.509815", "0.5091401", "0.50395894", "0.503743", "0.5029443", "0.50027615", "0.49976194", "0.49896398", "0.4989...
0.66695184
0
Generate a reader schema off the provided writeSchema, to just project out the provided columns
public static Schema generateProjectionSchema(Schema writeSchema, List<String> fieldNames) { List<Schema.Field> projectedFields = new ArrayList<>(); for (String fn: fieldNames) { Schema.Field field = writeSchema.getField(fn); if (field == null) { throw new HoodieE...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Object deserialize(List<String> columnNames, List<TypeInfo> columnTypes,\n Writable writable, Schema readerSchema) throws AvroSerdeException {\n if(!(writable instanceof AvroGenericRecordWritable)) {\n throw new AvroSerdeException(\"Expecting a AvroGenericRecordWritable\")...
[ "0.56653076", "0.5343704", "0.5096224", "0.5041749", "0.49927858", "0.49758217", "0.4967704", "0.49288273", "0.4865377", "0.4848612", "0.48340964", "0.4832072", "0.47836518", "0.4775856", "0.4757036", "0.47324178", "0.47312674", "0.47111878", "0.47079647", "0.46263066", "0.46...
0.5873674
0
Convert the projected read from delta record into an array writable
public static Writable avroToArrayWritable(Object value, Schema schema) { // if value is null, make a NullWritable if (value == null) { return NullWritable.get(); } switch (schema.getType()) { case STRING: return new Text(value.toString()); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Object[] toRawArray();", "public Object[] toArray() {\r\n\t\treturn this.records.toArray();\r\n\t}", "@Override\n\t\tpublic Object[] toArray() {\n\t\t\treturn snapshot().toArray();\n\t\t}", "JAVATYPE [] convertArray(JAVATYPE [] oldArray, final METATYPE meta);", "@Override\n\tpublic Object[] toArray(...
[ "0.57134295", "0.56353664", "0.5599941", "0.55920136", "0.5555813", "0.55413556", "0.5520187", "0.54599386", "0.531416", "0.5304223", "0.5296861", "0.52966213", "0.52888936", "0.52855873", "0.5249535", "0.52384585", "0.523652", "0.52307683", "0.5167574", "0.5167275", "0.51464...
0.0
-1
Call the underlying parquetReader.next which may replace the passed in ArrayWritable with a new block of values
@Override public boolean next(Void aVoid, ArrayWritable arrayWritable) throws IOException { boolean result = this.parquetReader.next(aVoid, arrayWritable); if(!result) { // if the result is false, then there are no more records return false; } else { // TO...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean next(LongWritable key, BowtieAlignmentWritable value) throws IOException {\n if (position > end) {\n return false;\n }\n\n try {\n key.set(position);\n int read = lr.readLine(line);\n if (read == 0) {\n re...
[ "0.5231279", "0.4941833", "0.48275888", "0.48021972", "0.472142", "0.46864644", "0.4675658", "0.46743667", "0.46329832", "0.4630657", "0.46247795", "0.46099713", "0.45916384", "0.4581419", "0.45711908", "0.45625162", "0.45526844", "0.4547871", "0.4547337", "0.45408422", "0.45...
0.6181088
0
Inflate the menu; this adds items to the action bar if it is present.
@Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.activity_statistics, menu); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tMenuInflater inflater = getMenuInflater();\n \tinflater.inflate(R.menu.main_activity_actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {...
[ "0.7246102", "0.7201358", "0.7194834", "0.7176498", "0.71066517", "0.7039537", "0.7037961", "0.70112145", "0.70094734", "0.69807225", "0.6944953", "0.69389373", "0.6933199", "0.6916928", "0.6916928", "0.6891486", "0.68831646", "0.68754137", "0.68745375", "0.68621665", "0.6862...
0.0
-1
Get the phoneNumbers property: Represents a list of phone numbers.
public List<PurchasedPhoneNumber> getPhoneNumbers() { return this.phoneNumbers; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<String> getPhoneNumbers() {\n return phoneNumbers;\n }", "public java.util.List<cb.Careerbuilder.Company.PhoneNumber> getPhoneList() {\n return phone_;\n }", "public Set<DBMSPhoneNumber> getPhoneNumbers() {\r\n return phoneNumbers;\r\n }", "public java.util.List<com.de...
[ "0.84874207", "0.79072887", "0.78245753", "0.7795304", "0.7736354", "0.77178586", "0.7544955", "0.7508289", "0.74989295", "0.73682153", "0.72268504", "0.72229296", "0.7184129", "0.7110473", "0.70947385", "0.70887727", "0.7047734", "0.7038812", "0.7038812", "0.69205177", "0.68...
0.76089394
6
Set the phoneNumbers property: Represents a list of phone numbers.
public PurchasedPhoneNumbers setPhoneNumbers(List<PurchasedPhoneNumber> phoneNumbers) { this.phoneNumbers = phoneNumbers; return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Set<DBMSPhoneNumber> getPhoneNumbers() {\r\n return phoneNumbers;\r\n }", "public void setPhonenumbers(List<Phonenumber> phonenumbers) {\r\n\r\n this.phonenumbers = phonenumbers;\r\n\r\n }", "public List<String> getPhoneNumbers() {\n return phoneNumbers;\n }", "public Set...
[ "0.7215664", "0.6931307", "0.67584896", "0.63624656", "0.6304128", "0.62370646", "0.61117536", "0.6097218", "0.60787606", "0.607322", "0.6022217", "0.5942754", "0.59280425", "0.590333", "0.58898515", "0.5883546", "0.58576053", "0.5857417", "0.5857417", "0.5857417", "0.5857417...
0.76685596
0
Get the nextLink property: Represents the URL link to the next page of phone number results.
public String getNextLink() { return this.nextLink; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String nextLink() {\n return this.nextLink;\n }", "public String nextLink() {\n return this.nextLink;\n }", "public String nextLink() {\n return this.nextLink;\n }", "public String nextLink() {\n return this.nextLink;\n }", "public PurchasedPhoneNumbers setNex...
[ "0.7762115", "0.7762115", "0.7762115", "0.7762115", "0.7566592", "0.6258512", "0.6209306", "0.6178952", "0.6005109", "0.59529585", "0.58905834", "0.58381295", "0.57517993", "0.5732324", "0.5675547", "0.5650692", "0.56145173", "0.56062406", "0.5585672", "0.5585672", "0.5581937...
0.76582205
4
Set the nextLink property: Represents the URL link to the next page of phone number results.
public PurchasedPhoneNumbers setNextLink(String nextLink) { this.nextLink = nextLink; return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setNext(Cell link)\n { next = link; }", "public void setNext(Linkable nextObject);", "public String nextLink() {\n return this.nextLink;\n }", "public String nextLink() {\n return this.nextLink;\n }", "public String nextLink() {\n return this.nextLink;\n }", "pu...
[ "0.7088815", "0.684045", "0.6790299", "0.6790299", "0.6790299", "0.6790299", "0.6749275", "0.6676659", "0.66185373", "0.6598088", "0.65717125", "0.6553753", "0.6514508", "0.6443817", "0.6436896", "0.63903165", "0.63725585", "0.63690317", "0.6363517", "0.63575184", "0.63383806...
0.84797394
0
Represent city data as a String for printed display
public String toString(){ return ("new City(" + this.zipFormat.format(this.zip) + ", " + this.name + ", " + this.state + ", " + this.longitude + ", " + this.latitude + ")"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getCity() {\n\n return \" \\n\" +\n \" B BB \\n\" +\n \" BB BBBB \\n\" +\n \" BBBB BBB BBBBBBB \\n\" +\n \" BBBbBBBB BBBBbbbbBBBBB \\n\" +\n \...
[ "0.75493336", "0.7525546", "0.74439424", "0.7320283", "0.72787344", "0.70715123", "0.6980279", "0.6970798", "0.69214046", "0.6916526", "0.6915159", "0.6814012", "0.6791834", "0.6703354", "0.6671211", "0.6611284", "0.6603348", "0.6564625", "0.6551248", "0.65151834", "0.6488951...
0.7508939
2
Atualizar a LIsta de Livros Ativos no Combox
public void updateListLivro() throws IOException { try { for (int i = 0; i < livro.getListLivros().size(); i++) { String[] temp_livro = livro.getListLivros().get(i).split(";"); jComboBoxLivros.addItem(temp_livro[1]); } } catch (IOExceptio...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void atualizarBotoes() {\r\n\t\tbtIncluir.setDisable(cliente.getId() != null);\r\n\t\tbtAlterar.setDisable(cliente.getId() == null);\r\n\t\tbtExcluir.setDisable(cliente.getId() == null);\r\n\t}", "public void limpiar() {\n\t\taut_empleado.limpiar();\n\t\tutilitario.addUpdate(\"aut_empleado\");// limpia y...
[ "0.6126431", "0.6110309", "0.6053929", "0.599201", "0.59763104", "0.59257656", "0.57676095", "0.5745645", "0.5719956", "0.5710289", "0.5652766", "0.56481296", "0.5639427", "0.5631974", "0.5619766", "0.5575295", "0.55746233", "0.5572746", "0.5552709", "0.5544274", "0.55299914"...
0.5514426
21
Atualizar a Lista de Exemplares Selecionados
public void updateListExemplar(String titulo) { listExemplares_Temp.removeAll(listExemplares_Temp); try { ArrayList<String> listExemplares = exemplar.getListExemplar(); DefaultTableModel model = (DefaultTableModel) jTableExemplar.getModel(); model.setNumRows(0); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void listar() throws Exception{\n int resId=1;\n List<PlatoDia> lista = this.servicioRestaurante.listarMenuDia(resId);\n this.modelListEspecial.clear();\n lista.forEach(lse -> {\n this.modelListEspecial.addElement(\"ID: \" + lse.getId() \n + \" NOMB...
[ "0.69136417", "0.6612332", "0.6562476", "0.64486414", "0.63789016", "0.6377725", "0.63705236", "0.6314673", "0.6309608", "0.6220441", "0.6219359", "0.61834425", "0.6172241", "0.6152576", "0.6139027", "0.6120435", "0.61017114", "0.60996443", "0.60903883", "0.6071752", "0.60663...
0.6086529
19
Obtendo o Codigo do Livro
public String getCodigoLivro() throws IOException { ArrayList<String> listLivros = livro.getListLivros(); String codigo = null; for (int i = 0; i < listLivros.size(); i++) { if (listLivros.get(i).contains(jComboBoxLivros.getSelectedItem().toString())) { String[] ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Livro() {\n\n\t}", "public Libro() {\r\n }", "private RepositorioOrdemServicoHBM() {\n\n\t}", "private void limpiarDatos() {\n\t\t\n\t}", "public Libro(String codigo, String titulo, String autor, int editorial, String ISBN, String anioEdicion, int numEdicion, int pais, int idioma, String materia,...
[ "0.6112611", "0.6013969", "0.590092", "0.581073", "0.57948613", "0.57547116", "0.57525223", "0.57254326", "0.56514513", "0.56446284", "0.56130207", "0.5603637", "0.5596419", "0.5592299", "0.5582863", "0.5567333", "0.5565293", "0.55580777", "0.55480206", "0.55377656", "0.54931...
0.0
-1
Obtendo Codigo do Exemplar
public String getCodigoExemplar(int select) throws IOException { ArrayList<String> listExemplar = exemplar.getListExemplar(); ArrayList<String> templist = new ArrayList<String>(); for (int i = 0; i < listExemplar.size(); i++) { if (listExemplar.get(i).contains(getCodigoLivro())...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface ExceInte {\n /**\n * \n * Se crea este metodo para realizar la escritura de un archivo en excel, \n * apartir de un formato o plantilla existente en la hoja de EXCEL\n * @param pathPlan ruta de la plantilla\n * @param pathDeex ruta destino donde se va almacenar la plantilla...
[ "0.6045414", "0.5795894", "0.5792654", "0.57114017", "0.57114017", "0.57112664", "0.5679808", "0.5658761", "0.5615636", "0.5612198", "0.5609359", "0.5591333", "0.55906045", "0.55863875", "0.5576736", "0.55649716", "0.55645514", "0.5549967", "0.5543382", "0.55386776", "0.55312...
0.0
-1
NOI18N Creates a new instance of TomcatModuleConfiguration
public TomcatModuleConfiguration(J2eeModule j2eeModule, TomcatVersion tomcatVersion, TomEEVersion tomeeVersion) { this.j2eeModule = j2eeModule; this.tomcatVersion = tomcatVersion; this.tomeeVersion = tomeeVersion; this.contextXml = j2eeModule.getDeploymentConfigurationFile("META-INF/cont...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void initDynamicI18NBindings() {\n }", "public void init(){\n\t\tcfg = new Configuration();\r\n\t\tcfg.setServletContextForTemplateLoading(getServletContext(), \"WEB-INF/templates\");\r\n }", "public DeploymentModule() {\n\t\tsuper(DeploymentModule.class.getSimpleName());\n\t}", "private Localiz...
[ "0.52586377", "0.5104362", "0.5041592", "0.49468046", "0.48324367", "0.4793573", "0.47790268", "0.47476768", "0.4725581", "0.46912783", "0.46535397", "0.46397603", "0.46397603", "0.45731628", "0.4492784", "0.44517007", "0.4447895", "0.444742", "0.44414175", "0.4439437", "0.44...
0.5415585
0
WebappConfiguration initialization. This method should be called before this class is being used.
private void init(File contextXml) { //this.contextXml = contextXml; try { getContext(); } catch (ConfigurationException e) { LOGGER.log(Level.INFO, null, e); } if (contextDataObject == null) { try { contextDataObject = DataObje...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void applicationInitalize() throws OwConfigurationException, OwServerException\r\n {\n OwConfiguration.applicationInitalize(this);\r\n }", "protected Configuration(ServletContext ctx) {\r\n ctx.log(\"configuring cewolf app..\");\r\n ctx.setAttribute(KEY, this);\r\n\r\n ...
[ "0.64832747", "0.6350839", "0.62217516", "0.6163228", "0.60797995", "0.6010018", "0.5994898", "0.59895533", "0.59748536", "0.5945407", "0.59427565", "0.59393483", "0.5938095", "0.5934479", "0.588815", "0.58308315", "0.5829526", "0.5808343", "0.5790258", "0.57227093", "0.56979...
0.0
-1
Return Context graph. If it was not created yet, load it from the file and cache it. If the file does not exist, generate it.
public synchronized Context getContext() throws ConfigurationException { if (context == null) { if (contextXml.exists()) { // load configuration if already exists try { context = Context.createGraph(contextXml); } catch (IOException...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void createGraphFromFile() {\n\t\t//如果图未初始化\n\t\tif(graph==null)\n\t\t{\n\t\t\tFileGetter fileGetter= new FileGetter();\n\t\t\ttry(BufferedReader bufferedReader=new BufferedReader(new FileReader(fileGetter.readFileFromClasspath())))\n\t\t\t{\n\t\t\t\tString line = null;\n\t\t\t\twhile((line=bufferedReader.r...
[ "0.5632669", "0.55660367", "0.5517515", "0.5478782", "0.53845114", "0.5270657", "0.52672017", "0.5137868", "0.5123452", "0.51106477", "0.50648504", "0.5057721", "0.49993908", "0.49925244", "0.496301", "0.49301338", "0.4918907", "0.49186367", "0.49168593", "0.48710138", "0.487...
0.4999752
12
Get the module datasources defined in the context.xml file.
@Override public Set<Datasource> getDatasources() throws ConfigurationException { Context context = getContext(); Set<Datasource> result = new HashSet<>(); int length = context.getResource().length; if (tomcatVersion.isAtLeast(TomcatVersion.TOMCAT_55)) { // Tomcat 5.5.x o...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static Map<Integer, DataSource> getAvailableDataSources() {\n\t\tLoadRessources lr;\n\t\ttry {\n\t\t\tlr = new LoadRessources();\n\t\t} catch (JDOMException e1) {\n\t\t\tSystem.err\n\t\t\t\t\t.println(\"The configuration file dataSource.xml is corrupted. Please check that this file is a valid XML file!\");\...
[ "0.7102428", "0.66649896", "0.6622493", "0.6601556", "0.65284514", "0.6516644", "0.6504089", "0.6381845", "0.63569605", "0.6246808", "0.60380673", "0.60349774", "0.6015843", "0.59771657", "0.59313565", "0.5924781", "0.5876227", "0.5856588", "0.5838823", "0.58245724", "0.58054...
0.6879947
1
check whether a resource of the given name is not already defined in the module
@Override public Datasource createDatasource(final String name, final String url, final String username, final String password, final String driverClassName) throws ConfigurationException, DatasourceAlreadyExistsException { List<Datasource> conflictingDS = new ArrayList<>(); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean hasResource();", "boolean isHasResources();", "boolean hasResourceType();", "private boolean examineName(String name) {\r\n resourceName = null;\r\n resourceIsClass = false;\r\n\r\n if (name.endsWith(\".java\")) {\r\n return false;\r\n }\r\n\...
[ "0.7085188", "0.6682282", "0.6672217", "0.6466132", "0.63598454", "0.6284729", "0.6114332", "0.60596997", "0.60128546", "0.598891", "0.597055", "0.59307134", "0.59077096", "0.5840381", "0.5830257", "0.5816755", "0.5801373", "0.5732285", "0.57267094", "0.57198274", "0.5712138"...
0.0
-1
PropertyChangeListener listener Listen to context.xml document changes.
@Override public void propertyChange(PropertyChangeEvent evt) { if (evt.getPropertyName() == DataObject.PROP_MODIFIED && evt.getNewValue() == Boolean.FALSE) { // dataobject has been modified, context graph is out of sync synchronized (this) { context =...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void addPropertyChangeListener(PropertyChangeListener listener);", "@Override\n public void addPropertyChangeListener(PropertyChangeListener listener) {\n\n }", "public void addPropertyChangeListener(PropertyChangeListener listener);", "public void addPropertyChangeListener(PropertyChangeListener l);",...
[ "0.66095614", "0.656535", "0.6485976", "0.64528346", "0.63678885", "0.6328451", "0.6328451", "0.6305035", "0.6297024", "0.62853885", "0.6268224", "0.6268064", "0.6230035", "0.62094486", "0.61887115", "0.6187906", "0.6117861", "0.60382026", "0.60354763", "0.60306686", "0.60208...
0.5697947
34
private helper methods Genereate Context graph.
private Context genereateContext() { Context newContext = new Context(); String path = ""; // NOI18N newContext.setAttributeValue(ATTR_PATH, path); // if tomcat 5.0.x generate a logger if (tomcatVersion == TomcatVersion.TOMCAT_50) { // generate default logger ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void makeContexts() {\n \n // make map of ContextTreeNode objects for all taxonomic contexts, indexed by root node name\n HashMap<String, ContextTreeNode> contextNodesByRootName = new HashMap<String, ContextTreeNode>();\n for (ContextDescription cd : ContextDescription.values...
[ "0.7374027", "0.6714791", "0.6510107", "0.62278926", "0.6154905", "0.6154905", "0.61370623", "0.60237354", "0.6017747", "0.5863032", "0.5854676", "0.5807838", "0.57431066", "0.57431066", "0.5737335", "0.57237905", "0.5702888", "0.56809413", "0.56727725", "0.5619303", "0.56072...
0.6094969
7
Perform context changes defined by the context modifier. Update editor content and save changes, if appropriate.
private void modifyContext(final ContextModifier modifier) throws ConfigurationException { TomcatModuleConfiguration.<Context>modifyConfiguration(contextDataObject, new ConfigurationModifier<Context>() { @Override public void modify(Context configuration) { modifier.modi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void updateContext(Context context) {\n\t}", "public void update() {\n\t\tthis.editorView.update();\n\t}", "public static void commitChanges(Context context) {\r\n\t\tensurePreferencesEditor(context);\r\n\t\tsPreferencesEditor.commit();\r\n\t}", "private void changeContext(){\n ...
[ "0.6396215", "0.61732256", "0.58565027", "0.5770488", "0.5648219", "0.5533247", "0.5440358", "0.5435529", "0.5404365", "0.5398431", "0.53711843", "0.5334181", "0.5315675", "0.524886", "0.52480036", "0.52312744", "0.5217565", "0.519759", "0.5182135", "0.51645344", "0.5164111",...
0.56235564
5
Compute logger prefix based on context path. Cut off leading slash and escape other slashes, use ROOT prefix for empty context path.
private static String computeLoggerPrefix(String contextPath) { return contextPath.length() > 0 ? contextPath.substring(1).replace('/', '_').concat(".") // NOI18N : "ROOT."; // NOI18N }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String prefix()\n\t {\n\t \t// create an empty string builder // \n\t \tStringBuilder sb = new StringBuilder();\n\t \t\n\t \t// fill the string builder//\n\t \tprefix(root, sb);\n\t \t\n\t \treturn sb.toString().trim();\n\t }", "public static String getLoggerPrefix(String level)...
[ "0.5844421", "0.54350424", "0.54218316", "0.54194826", "0.53561866", "0.53526825", "0.5286513", "0.50985515", "0.5042745", "0.49929616", "0.49808386", "0.49267372", "0.49211055", "0.4903919", "0.48938537", "0.48895594", "0.48652488", "0.48652488", "0.48652488", "0.48652488", ...
0.80378586
0
Replace the content of the document by the graph.
private static void replaceDocument(final StyledDocument doc, BaseBean graph) { final StringWriter out = new StringWriter(); try { graph.write(out); } catch (Schema2BeansException | IOException ex) { Logger.getLogger(TomcatModuleConfiguration.class.getName()).log(Level.IN...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void updateGraphicalContent(Engine en) {\n\t\t\n\t}", "public void parseCGXMLCG( Graph graph ) {\n if ( graph == null ) {\n _topLevelGraph = new Graph(); // never used\n } else {\n _topLevelGraph = graph;\n }\n Element docelem = doc.getD...
[ "0.6216003", "0.59299654", "0.56617165", "0.5565391", "0.55530113", "0.55464065", "0.5529385", "0.5428233", "0.53939366", "0.53704107", "0.53563577", "0.53061014", "0.52930737", "0.525038", "0.5209401", "0.5186303", "0.513986", "0.5133181", "0.5113776", "0.50795555", "0.50768...
0.7223216
0
TODO: this contextPath fix code will be removed, as soon as it will be moved to the web project
private boolean isCorrectCP(String contextPath) { boolean correct=true; if (!contextPath.equals("") && !contextPath.startsWith("/")) { correct=false; //NOI18N } else if (contextPath.endsWith("/")) { correct=false; //NOI18N } else if (contextPath.indexOf("//")>=0) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\tpublic String getContextPath() {\n\t\t\treturn null;\n\t\t}", "@Override\n public String getContextPath() {\n return null;\n }", "@Override\n public String getContextPath() {\n return null;\n }", "String getContextPath();", "String getContext...
[ "0.6986755", "0.6976336", "0.6976336", "0.66737455", "0.66737455", "0.66737455", "0.6563925", "0.6563925", "0.6540075", "0.64273685", "0.6000956", "0.5948985", "0.5805979", "0.5802695", "0.57151634", "0.567705", "0.56672317", "0.56345004", "0.56182003", "0.5607827", "0.555835...
0.5690157
15
time: O(n), sapce: O(height)
public TreeNode LCA(TreeNode root, TreeNode one, TreeNode two) { // base case if (root == null || root == one || root == two) { return root; } // recursion rules TreeNode lchild = LCA(root.left, one, two); TreeNode rchild = LCA(root.right, one, two); if(lchild == null && rchild == null)...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static int f2(int N) { \n int x = 0; //O(1)\n for(int i = 0; i < N; i++) // O(n)\n // O(n)`\n for(int j = 0; j < i; j++) \n x++;\n return x;\n }", "public int[] squareUp(int n) {\r\n int[]arreglo=new int[(n*n)]; // O(1)\r\n if(n==0){ // O...
[ "0.65633655", "0.6103944", "0.60887593", "0.60410005", "0.5770102", "0.5684776", "0.5619036", "0.5617727", "0.549413", "0.54829305", "0.54813915", "0.54773194", "0.54588777", "0.53377414", "0.5331777", "0.5325868", "0.53134763", "0.5308531", "0.5307239", "0.52782845", "0.5269...
0.0
-1
This method is called after the server itself has initialized, so use this for most of your changes.
public abstract void init();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void initialize(ServerConfiguration config) {\n }", "public static void initializeServer() {\n\t\tServer.initializeServerGUI();\n\t}", "public void init() {\r\n\t\tthis.initWebAndSocketServer();\r\n\r\n\t\t/*\r\n\t\t * Set/update server info\r\n\t\t */\r\n\t\ttry {\r\n\t\t\tServerInfo ...
[ "0.6803341", "0.6773016", "0.6618842", "0.6601598", "0.6580855", "0.6533351", "0.6479309", "0.6454452", "0.6454452", "0.6452753", "0.64213717", "0.64213717", "0.64155537", "0.64084715", "0.6343404", "0.63295233", "0.6328148", "0.63259387", "0.6325548", "0.63238305", "0.628931...
0.0
-1
Post Initialization. This happens after every other plugin has initialized. If you are checking for other plugins, this is the ideal place to do so.
public abstract void postInit();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void postInit() {\n }", "@Override public void postInit()\n\t\t{\n\t\t}", "protected void pluginInitialize() {}", "void postInit();", "void postInit();", "@Override\n protected void pluginInitialize() {\n // init();\n }", "@Override\n\tpublic void postInit() {\n\t\t\n\t}", "publi...
[ "0.7837218", "0.7663608", "0.7637564", "0.7635803", "0.7635803", "0.7545994", "0.7490638", "0.74819666", "0.73336697", "0.73336697", "0.680135", "0.6797532", "0.66528136", "0.6610928", "0.6584741", "0.65581167", "0.65581167", "0.651994", "0.65042996", "0.6436111", "0.6435744"...
0.73268884
10
Delivers the only instance of this class.
public static DbManager getInstance() { return INSTANCE; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected Shingle copy() {\n return new Shingle(this);\n }", "public abstract Instance duplicate();", "@Override\n\tpublic Manager copy() {\n\t\treturn new Fire();\n\t}", "@Override\n public ForwardStrategy clone() {\n return new ForwardStrategy(this);\n }", "protected Enemy copy()\r...
[ "0.61086524", "0.5934257", "0.5828072", "0.57938045", "0.5772989", "0.5681732", "0.56516284", "0.5613941", "0.55932593", "0.55827945", "0.5545754", "0.5532188", "0.54840523", "0.5473557", "0.5465664", "0.5441923", "0.54381907", "0.5436966", "0.5427677", "0.54179597", "0.53725...
0.0
-1
Instantiates a new UserQuestionAnswerManager.
private DbManager() { questions = new ArrayList<Question>(); answers = new ArrayList<Answer>(); comments = new ArrayList<Comment>(); users = new ArrayList<User>(); tags = new ArrayList<String>(); this.userCounterIdCounter = 0; this.questionIdCounter = 0; this.answerIdCounter = 0; this.comment...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private UserManagerImpl()\r\n\t{\r\n\t\tsuper();\r\n\t\t\r\n\t\t// set the singleton instance of UserManagerImpl class in the UserManager so that\r\n\t\t// UserManager.getInstance() also points to the singleton instance of UserManagerImpl \r\n\t\tsetInstance(this);\r\n\t}", "public Answer() {\n\t\t// TODO Auto-g...
[ "0.55764884", "0.55239713", "0.5490633", "0.54832673", "0.5446126", "0.5434565", "0.54116684", "0.53710496", "0.5297799", "0.52859074", "0.5240502", "0.5238733", "0.52135646", "0.5209915", "0.51976997", "0.5185046", "0.5165171", "0.5032877", "0.5029907", "0.5012194", "0.50093...
0.50732654
17
Checks if a username is already occupied.
public boolean checkUserNameIsOccupied(String name) { if (users.size() != 0) { for (int i = 0; i < users.size(); i++) { if (name.equals(users.get(i).getName())) { return true; } } } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static boolean checkUsernameAvailable(String username) {\n if (username.length() <= 6) {\n return false; // Username too short.\n } else {\n if (!patients.isEmpty()) {\n for (Patient patient : patients\n ) {\n if (patient....
[ "0.69994444", "0.6910092", "0.6899454", "0.68312824", "0.67998374", "0.67998374", "0.67998374", "0.67998374", "0.67998374", "0.67998374", "0.6647249", "0.663114", "0.66015697", "0.65901583", "0.6576294", "0.65743417", "0.6532442", "0.6532019", "0.65297544", "0.64935994", "0.6...
0.72694
0
Check if there's already a question with a certain content.
public boolean checkQuestionDuplication(String content) { if (questions.size() != 0) { for (int i = 0; i < questions.size(); i++) { if (content.equals(questions.get(i).getContent())) { return true; } } } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean hasContent();", "boolean hasContent();", "boolean hasContent();", "boolean hasContent();", "boolean hasContent();", "boolean hasContent();", "boolean hasContent();", "private boolean thisAnswerExist(String description){\n \tboolean exist = false;\n \tif(answers.isEmpty() == false){\n\t ...
[ "0.6231106", "0.6231106", "0.6231106", "0.6231106", "0.6231106", "0.6231106", "0.6231106", "0.61492974", "0.5803711", "0.57626456", "0.57387215", "0.56977195", "0.5667533", "0.5636833", "0.5618551", "0.5611704", "0.55905986", "0.5550617", "0.5550617", "0.55068445", "0.5494601...
0.7868672
0
Deletes a user and all entries he or she wrote.
public void deleteUser(String username){ if(!DbManager.users.contains(this.getUserByName(username))) throw new NoSuchElementException(); User deleteUser= getUserByName(username); ArrayList<Question> updatedQuestions= new ArrayList<Question>(); ArrayList<Answer> updatedAnswers= new ArrayList<Answ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void deleteUser(User userToDelete) throws Exception;", "@Override\n\tpublic void deleteUser(User user)\n\t{\n\n\t}", "@Override\r\n\tpublic int deleteUser(Users user) {\n\t\treturn 0;\r\n\t}", "public void deleteUser(User user) {\n\t\tdelete(user);\r\n\t}", "@Override\n\tpublic void deleteUser(user ...
[ "0.7928466", "0.78278065", "0.77845955", "0.77807516", "0.7762337", "0.7705981", "0.7688186", "0.7685106", "0.7681141", "0.76805705", "0.7664035", "0.7625193", "0.76176804", "0.7617267", "0.76083416", "0.758528", "0.75743634", "0.75623864", "0.75576663", "0.7554972", "0.75447...
0.71110314
84
Gets a user by his name.
public User getUserByName(String name) { for (User user : users) { if (user.getName().equals(name)) return user; } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public User retrieveUser(String name)\r\n\t{\r\n\t\t\r\n\t\treturn users.get(name);\r\n\t}", "User get(String name);", "@Override\n\tpublic User getByName(String name) {\n\t\treturn userDao.getByName(name);\n\t}", "public MsUser getUser(final String name) {\n return users.get(name);\n }", "public...
[ "0.82176137", "0.8029887", "0.7991637", "0.7859399", "0.7858732", "0.7858732", "0.7844622", "0.7757032", "0.76947886", "0.76134545", "0.752701", "0.7478402", "0.7428693", "0.7421445", "0.7419975", "0.7408748", "0.73960054", "0.7368171", "0.7344574", "0.7344574", "0.7316395", ...
0.7589565
10
Gets the all answers to the question with a certain id.
public ArrayList<Answer> getAllAnswersByQuestionId(int id) { ArrayList<Answer> questionAnswers = new ArrayList<Answer>(); for (Answer answer : answers) { if (answer.getQuestionId() == id) { questionAnswers.add(answer); } } return questionAnswers; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic List<ZyAnswer> getAnswersByQuestion(int questionId) {\n\t\treturn answerDao.getAnswersByquestion(questionId);\r\n\t}", "QuestionResponse getResponses(String questionId);", "public Answer getAnswerById(int id) {\n \t\tfor (Answer answer : answers)\n \t\t\tif (answer.getId() == id)\n \t\t\t...
[ "0.7751912", "0.72405535", "0.7115966", "0.70987546", "0.6856709", "0.6715496", "0.66510636", "0.65934664", "0.6585168", "0.6558968", "0.6519336", "0.6489638", "0.64665776", "0.64431447", "0.6439255", "0.64364845", "0.642133", "0.6372408", "0.63097644", "0.6305478", "0.630496...
0.8284567
0
Gets the question with a certain id.
public Question getQuestionById(int id) { for (Question question : questions) if (question.getId() == id) return question; return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Question getQuestion(String questionId) {\r\n Question[] questions = currentProcessInstance.getQuestions();\r\n Question foundQuestion = null;\r\n \r\n for (int i = 0; foundQuestion == null && i < questions.length; i++) {\r\n if (questions[i].getId().equals(questionId))\r\n foundQu...
[ "0.8021684", "0.782883", "0.7416182", "0.7402191", "0.7309528", "0.73055375", "0.7237396", "0.71605635", "0.7122082", "0.7075541", "0.70484775", "0.6782578", "0.677375", "0.6754072", "0.67454857", "0.66755813", "0.66502607", "0.6647767", "0.6597271", "0.65239775", "0.65239775...
0.81592864
0
Gets the answer with a certain id.
public Answer getAnswerById(int id) { for (Answer answer : answers) if (answer.getId() == id) return answer; return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic Answer findById(String id) {\n\t\treturn answerRepository.findById(id).get();\n\t}", "@GetMapping (\"/getOneAnswer\")\n @ResponseBody\n public Answer getOneAnswer(long id){\n Optional<Answer> oanswer = this.answerRepository.findById(id);\n if(oanswer.isPresent()){\n ...
[ "0.74777114", "0.71905804", "0.6903531", "0.6845739", "0.684315", "0.6837213", "0.6821742", "0.681239", "0.66013265", "0.66000384", "0.6543321", "0.6532258", "0.6423634", "0.6414843", "0.63826895", "0.6360925", "0.63217866", "0.6314407", "0.63023436", "0.62933755", "0.6249326...
0.77856743
0
Gets all questions sorted by score.
public ArrayList<Question> getQuestionsSortedByScore() { ArrayList<Question> sortedQuestions = questions; Collections.sort(sortedQuestions, Collections.reverseOrder(new ScoreComparator())); return sortedQuestions; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void sort() {\n ScoreComparator comparator = new ScoreComparator();\n Collections.sort(scores, comparator);\n }", "public List<Question> getQuestionsByPoints() {\n List<Membership> memberships = (ArrayList<Membership>) this.getMemberships();\n List<Question> questions = new ArrayLis...
[ "0.65544", "0.6521936", "0.62113667", "0.620258", "0.59426284", "0.5910993", "0.58131045", "0.58054775", "0.57809556", "0.5757605", "0.57490355", "0.574645", "0.57119805", "0.5667113", "0.5644819", "0.5641901", "0.5618509", "0.56112874", "0.56043", "0.55873275", "0.5538275", ...
0.8222129
0
Gets the answers to a certain question sorted by their score.
public ArrayList<Answer> getAnswersSortedByScore(int id) { ArrayList<Answer> sortedAnswers = this.getAllAnswersByQuestionId(id); Collections.sort(sortedAnswers, Collections.reverseOrder(new ScoreComparator())); return sortedAnswers; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ArrayList<Question> getQuestionsSortedByScore() {\n \t\tArrayList<Question> sortedQuestions = questions;\n \n \t\tCollections.sort(sortedQuestions, Collections.reverseOrder(new ScoreComparator()));\n \t\t\n \t\treturn sortedQuestions;\n \t}", "public List<Answer> getAnswersByPoints(Question q) {\n \tLi...
[ "0.7662145", "0.68554914", "0.6184139", "0.61459917", "0.59648794", "0.59205467", "0.59199435", "0.58885044", "0.58808833", "0.5874403", "0.576256", "0.569598", "0.56884724", "0.5683992", "0.5647679", "0.5641412", "0.5592065", "0.55673915", "0.5558985", "0.55564594", "0.55023...
0.668868
2
Gets all questions sorted by date.
public ArrayList<Question> getQuestionsSortedByDate() { ArrayList<Question> sortedQuestions = this.getQuestions(); Collections.sort(sortedQuestions, new DateComparator()); return sortedQuestions; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ArrayList<Question> getQuestionsSortedByLastChangedDate() {\n \t\tArrayList<Question> sortedQuestions = this.getQuestions();\n \n \t\tCollections.sort(sortedQuestions, new ChangedDateComparator());\n \n \t\treturn sortedQuestions;\n \t}", "public ArrayList<Comment> getAllCommentsByQuestionIdSortedByDate(\...
[ "0.74824274", "0.6400547", "0.63625824", "0.619887", "0.61325765", "0.61183554", "0.6109486", "0.60929036", "0.6079897", "0.60704875", "0.60467327", "0.60112566", "0.5945997", "0.5916953", "0.59096444", "0.587529", "0.58089256", "0.5770059", "0.5735104", "0.56619257", "0.5643...
0.85543096
0
Gets all question sorted by the date of their latest change (means adding of answers, comments, votes)
public ArrayList<Question> getQuestionsSortedByLastChangedDate() { ArrayList<Question> sortedQuestions = this.getQuestions(); Collections.sort(sortedQuestions, new ChangedDateComparator()); return sortedQuestions; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ArrayList<Question> getQuestionsSortedByDate() {\n \t\tArrayList<Question> sortedQuestions = this.getQuestions();\n \n \t\tCollections.sort(sortedQuestions, new DateComparator());\n \n \t\treturn sortedQuestions;\n \t}", "public ArrayList<Comment> getAllCommentsByQuestionIdSortedByDate(\n \t\t\tint questi...
[ "0.78409714", "0.6781766", "0.6467638", "0.6175103", "0.5931423", "0.5922969", "0.5855384", "0.57085", "0.5632723", "0.5628468", "0.5557728", "0.5552624", "0.55493397", "0.5541756", "0.5537157", "0.5428777", "0.5417914", "0.54121083", "0.5373183", "0.5364927", "0.53259015", ...
0.8367895
0
Gets all comments to a certain question sorted by date.
public ArrayList<Comment> getAllCommentsByQuestionIdSortedByDate( int questionId) { ArrayList<Comment> sortedComments = new ArrayList<Comment>(); Question currentQuestion = this.getQuestionById(questionId); for (Comment currentComment : this.getComments()) { if (currentComment.getCommentedVotable().equ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ArrayList<Comment> getAllCommentsByAnswerIdSortedByDate(int answerId) {\n \t\tArrayList<Comment> sortedComments = new ArrayList<Comment>();\n \t\tAnswer currentAnswer = this.getAnswerById(answerId);\n \t\tfor (Comment currentComment : this.getComments()) {\n \t\t\tif (currentComment.getCommentedVotable().eq...
[ "0.71176517", "0.68966365", "0.6484039", "0.6305879", "0.62911546", "0.62351155", "0.5869746", "0.5837747", "0.57742125", "0.57732165", "0.5727163", "0.5711982", "0.56793827", "0.5653443", "0.5639269", "0.55464745", "0.5522344", "0.55139977", "0.5509211", "0.5491677", "0.5477...
0.77211213
0
Gets all comments to a certain answer sorted by date.
public ArrayList<Comment> getAllCommentsByAnswerIdSortedByDate(int answerId) { ArrayList<Comment> sortedComments = new ArrayList<Comment>(); Answer currentAnswer = this.getAnswerById(answerId); for (Comment currentComment : this.getComments()) { if (currentComment.getCommentedVotable().equals(currentAnswer...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ArrayList<Comment> getAllCommentsByQuestionIdSortedByDate(\n \t\t\tint questionId) {\n \t\tArrayList<Comment> sortedComments = new ArrayList<Comment>();\n \t\tQuestion currentQuestion = this.getQuestionById(questionId);\n \t\tfor (Comment currentComment : this.getComments()) {\n \t\t\tif (currentComment.get...
[ "0.7248343", "0.6511445", "0.60329497", "0.6016647", "0.5843593", "0.5836479", "0.57868326", "0.56959754", "0.56511205", "0.56282043", "0.54408157", "0.5407556", "0.53831255", "0.5379151", "0.5364398", "0.533852", "0.53235185", "0.53162324", "0.5291255", "0.5268536", "0.52641...
0.7883044
0
Gets the user log of a certain user by his/her username.
public ArrayList<String> getUserLog(String username) { return this.getUserByName(username).getActivities(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Users getLogUser(String userName){\n\t\ttry {\n\t\t\tStatement stat = conn.createStatement();\n\t\t\tResultSet rs = stat.executeQuery(\"SELECT * FROM users where UserName = '\"+userName+\"'\");\n\t\t\t if(rs.next()){ \n return new Users(rs.getString(\"FirstName\"), rs.getString(\"LastName\"), u...
[ "0.6981661", "0.64973533", "0.6372995", "0.6320023", "0.6306257", "0.6267697", "0.625254", "0.6219647", "0.61974967", "0.61254066", "0.61237705", "0.610304", "0.6097193", "0.6083162", "0.6064703", "0.59895134", "0.59891176", "0.5981827", "0.5979519", "0.596024", "0.59601605",...
0.6791748
1
Gets all Object of the type votable a certain user created.
public ArrayList<Post> getVotablesByUserId(int userId) { ArrayList<Post> usersVotables = new ArrayList<Post>(); for (Question currentQuestion : questions) { if (currentQuestion.getOwner().getId() == userId) { usersVotables.add(currentQuestion); } } for (Answer currentAnswer : answers) { if ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<ReservationDrive> findByUser(User user){\n\n try{\n return reservationDriveRepository.findByUser(user);\n }catch (NullPointerException e){\n e.printStackTrace();\n return null;\n }\n }", "List<ObjectType> getObjectTypes() throws AccessDeniedExc...
[ "0.57701886", "0.56985426", "0.5643581", "0.553713", "0.5519114", "0.5484607", "0.54762167", "0.54760927", "0.5473991", "0.54708993", "0.5437023", "0.5429115", "0.5411758", "0.5406922", "0.54027206", "0.5384349", "0.536052", "0.53342974", "0.53229475", "0.5296407", "0.5293000...
0.6009137
0
Adds a tag to the list of all tags that have been used.
public void addTag(String singleTag) { if (!this.tags.contains(singleTag)) this.tags.add(singleTag); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void addTag(String tag){tags.add(tag);}", "public void addTag(Tag tag) {\n this.tags.add(tag);\n }", "public void addTag(AtomTag tag) {\n \tif(!tags.contains(tag)) {\n \t\tthis.tags.add(tag);\n \t}\n }", "public void addTag(Tag t);", "void addToAllTags(Tag T){\r\n this.allTags....
[ "0.7996634", "0.732548", "0.73042995", "0.72728497", "0.7248885", "0.7164607", "0.70862687", "0.6823427", "0.6613135", "0.65680736", "0.6521622", "0.64632004", "0.6451855", "0.6429836", "0.6417635", "0.6311839", "0.61720634", "0.61625254", "0.6128603", "0.61088175", "0.610777...
0.6519696
11
Gets the count newest questions in the knowledgeBase.
public ArrayList<Question> getRecentQuestionsByNumber(int count) { // The list of which the newest questions are picked out. ArrayList allQuestions = getQuestionsSortedByLastChangedDate(); ArrayList recentQuestions = new ArrayList<String>(); int size = allQuestions.size(); // Pick last '#count' questio...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getQuestionCount() {\r\n\t\treturn this.question.size();\r\n\t}", "int getNumberOfAllQuestions();", "int getNumberOfQuestions();", "public int getCount() {\n return questionList.size();\n }", "public int numberOfQuestions() {\n\t\treturn getQuestions().size();\n\t}", "List<Pl...
[ "0.6833311", "0.6817412", "0.66904527", "0.66307473", "0.66097206", "0.660154", "0.6553579", "0.6487068", "0.642806", "0.6420589", "0.63960826", "0.6338775", "0.62169534", "0.6187385", "0.60780424", "0.6070657", "0.6034533", "0.6019072", "0.597636", "0.5955456", "0.5936438", ...
0.0
-1
Ads a new created user to user ArrayList, sets the id in the user and increments the userIdCounter.
public void addUser(User user) { user.setId(userCounterIdCounter); users.add(user); userCounterIdCounter++; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addUser() {\n\t\tthis.users++;\n\t}", "public void addUser(TIdentifiable user) {\r\n\t // make sure that the user doesn't exists already\r\n\t if (userExists(user)) return;\r\n\t \r\n\t // check to see if we need to expand the array:\r\n\t if (m_current_users_count == m_current_max_use...
[ "0.7279286", "0.70722985", "0.68832994", "0.6670272", "0.6634002", "0.66209817", "0.66065747", "0.65580076", "0.65237546", "0.64602745", "0.6440177", "0.64187413", "0.63828045", "0.6379895", "0.6310107", "0.6269624", "0.6262943", "0.6208904", "0.62033594", "0.6175302", "0.616...
0.7020182
2
Ads a new created question to question ArrayList, sets the id in the question and increments the questionIdCounter.
public void addQuestion(Question question) { question.setId(questionIdCounter); questions.add(question); questionIdCounter++; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void addQuestions(String surveyId, List<Question> questions);", "public void addAnswer(Answer answer) {\n \t\tanswer.setId(answerIdCounter);\n \t\tanswers.add(answer);\n \t\tanswerIdCounter++;\n \t}", "public void addQuestion(Question question);", "public void addAnsweredQuestions (int index) {\n\n\t\t_answe...
[ "0.6745911", "0.64525867", "0.63572645", "0.6327649", "0.6321581", "0.6233081", "0.620244", "0.6158239", "0.6147124", "0.60861933", "0.60845566", "0.6080782", "0.6023761", "0.6013601", "0.600912", "0.59982264", "0.59753317", "0.59401786", "0.5931847", "0.59280056", "0.5919062...
0.6871129
0
Ads a new created answer to answer ArrayList, sets the id in the answer and increments the answerIdCounter.
public void addAnswer(Answer answer) { answer.setId(answerIdCounter); answers.add(answer); answerIdCounter++; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void addAnswer(Answer answer);", "void addQuestionAnswer(Answer answer);", "public void setAnswerId(int answerId) {\r\n this.answerId = answerId;\r\n }", "public void setAnswerid(Integer answerid) {\n this.answerid = answerid;\n }", "private void setAnswer() {\n DbHelper dbhelper...
[ "0.6873948", "0.675397", "0.6466539", "0.6281254", "0.62523276", "0.6243799", "0.6237182", "0.61853397", "0.6125829", "0.6092239", "0.6038043", "0.5929551", "0.59080476", "0.5888975", "0.5822186", "0.5765469", "0.5761485", "0.57436645", "0.56844217", "0.56649154", "0.56632435...
0.7505767
0
Ads a new created comment to comment ArrayList, sets the id in the comment and increments the commentIdCounter.
public void addComment(Comment comment) { comment.setId(commentIdCounter); comments.add(comment); commentIdCounter++; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setCommentId(int commentId);", "public ThreeDSecureRequest addComment(String comment) {\n //create new comments array list if null\n if (null == this.comments) {\n this.comments = new ArrayList<Comment>();\n }\n\n int size = comments.size();\n this.commen...
[ "0.6673589", "0.637692", "0.63295335", "0.6298271", "0.6260641", "0.6240209", "0.61632174", "0.61213535", "0.61204314", "0.6073667", "0.60682434", "0.60671926", "0.60226995", "0.60202986", "0.6001738", "0.59767276", "0.59669894", "0.5957892", "0.5948992", "0.59246796", "0.592...
0.6853467
0
Resets all counters to 0
public void resetAllIdCounts() { this.userCounterIdCounter = 0; this.questionIdCounter = 0; this.answerIdCounter = 0; this.commentIdCounter = 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void reset() {\n\t\tfor(int i=0; i<mRemainedCounters; i++){\n\t\t\tfinal ICounter counter = this.mCounters.getFirst();\n\t\t\tcounter.reset();\n\t\t\tthis.mCounters.removeFirst();\n\t\t\tthis.mCounters.addLast(counter);\n\t\t}\n\t\tthis.mRemainedCounters = this.mCounters.size();\n\t}", "publi...
[ "0.8490489", "0.8484281", "0.8356323", "0.8323801", "0.8323801", "0.83095723", "0.8278824", "0.8196986", "0.81295", "0.80979055", "0.80662286", "0.7971836", "0.79699737", "0.7882836", "0.78484446", "0.7656709", "0.7655967", "0.7651392", "0.76423305", "0.7605553", "0.7560397",...
0.7908636
13
Saves a reputation from a specific user and day
public void addReputation(User user, Date time, int reputation) { reputations[0].add(user); reputations[1].add(time); reputations[2].add(reputation); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void saveSnippetToDB(String countryName,\r\n String date, Integer totalCases, Integer totalDeaths,\r\n Integer newCases) {\r\n\r\n UserDetail userDetail = (UserDetail) SecurityContextHolder.getContext().getAuthentication().getPrincipal();\...
[ "0.5764426", "0.5489025", "0.53924954", "0.53651774", "0.53557444", "0.5276125", "0.5247018", "0.5239267", "0.5182776", "0.5181049", "0.5147559", "0.51475483", "0.5133924", "0.5127304", "0.51269746", "0.5125587", "0.51162463", "0.5114277", "0.5111736", "0.51015073", "0.507905...
0.67525315
0
scalar for an affine pentagon
@Override public AlgebraicNumber getAffineScalar() { return getUnitTerm( 1 ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Double productoEscalar(Pixel p){\r\n\t\treturn this.getXDouble()*p.getXDouble() + this.getYDouble()*p.getYDouble(); \r\n\t}", "AngleScalarMultiply createAngleScalarMultiply();", "public abstract Vector computeCenter();", "abstract double area();", "abstract double area();", "abstract double area()...
[ "0.6820596", "0.60480356", "0.59514564", "0.58337104", "0.58337104", "0.58337104", "0.58337104", "0.5832739", "0.5770992", "0.5755521", "0.5741689", "0.56283903", "0.5613794", "0.5609457", "0.5575099", "0.5561029", "0.55522925", "0.55505407", "0.5526858", "0.5518593", "0.5515...
0.5820837
8
Extract as many packet out of buffer as possible Then compact the buffer so that we can read new data into the buffer When the function begins, position should be 0 When the function finishes, position should be the last byte available
private void extractProcessMessagesFromBufferIntoQueue(ByteBuffer byteBuffer){ // when this function is called, byte buffer is ready for being read // i.e. position should point to the last byte written ProcessMessage procMsg; while((procMsg = extractProcessMessageFromByteBuffer(byteBuff...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Buffer slice();", "private void checkBuffer() {\r\n\t\tint startpacket = 0;\r\n\t\tfor(int i=1; i<inBuffer.length-1; i++) {\r\n\t\t if(inBuffer[i] == (byte) 'A' && inBuffer[i+1] == (byte) '4') {\r\n\t\t byte[] onePart = PApplet.subset(inBuffer, startpacket, i-startpacket);\r\n\t\t parseInput(onePart);...
[ "0.654325", "0.6209917", "0.58149683", "0.5713138", "0.57025164", "0.56605184", "0.5652482", "0.5611056", "0.5587316", "0.55794334", "0.5501702", "0.54951686", "0.5484962", "0.5476642", "0.54719007", "0.54691195", "0.5443398", "0.543115", "0.5430237", "0.5420074", "0.53997856...
0.60863674
2
Extract a ProcessMessage packet from buffer if possible
private ProcessMessage extractProcessMessageFromByteBuffer(ByteBuffer byteBuffer){ // mark current position byteBuffer.mark(); // probe if a CandidateMessageContent is available if(! quickProbeByteBuffer(byteBuffer)){ // restore value of position byteBuffer.reset...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void extractProcessMessagesFromBufferIntoQueue(ByteBuffer byteBuffer){\n // when this function is called, byte buffer is ready for being read\n // i.e. position should point to the last byte written\n ProcessMessage procMsg;\n while((procMsg = extractProcessMessageFromByteBuffer...
[ "0.68499744", "0.6077053", "0.6075965", "0.6036361", "0.57735264", "0.57584244", "0.56723046", "0.5622842", "0.5587204", "0.55461174", "0.55166304", "0.55038273", "0.5488871", "0.54872096", "0.545207", "0.5446622", "0.5409513", "0.5399987", "0.5393174", "0.5382583", "0.537730...
0.7408289
0
Assign // return this
public Vector2 Assign(Vector2 vector2){ x = vector2.x; y = vector2.y; return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void assignment() {\n\n\t\t\t}", "abstract void assignOne();", "Assign createAssign();", "public KSMemberBaseAssignment assignment() {\n return assignment;\n }", "abstract void assign(int i);", "public abstract void assign(Object value) throws IllegalStateException, InterruptedException...
[ "0.70228857", "0.65622526", "0.6214175", "0.60762715", "0.6072286", "0.6049068", "0.6035843", "0.6009496", "0.5938244", "0.5930034", "0.5930034", "0.5918132", "0.58826596", "0.5873191", "0.57279974", "0.57000107", "0.56958604", "0.5694926", "0.56824416", "0.5680484", "0.56249...
0.554497
29
Add // return new Vector2
public static Vector2 Add(Vector2 a, Vector2 b) { return new Vector2(a.x + b.x, a.y + b.y); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Vector add(Vector v2){\n return new Vector(this.getX() + v2.getX(), this.getY() + v2.getY());\n }", "public Vector2f add (Vector2f other)\n {\n return add(other, new Vector2f());\n }", "public void add(Vec2 v) {\r\n\t\tx += v.x;\r\n\t\ty += v.y;\r\n\t}", "public Vector2f add ...
[ "0.78101945", "0.7513456", "0.7317503", "0.7296821", "0.71269083", "0.70430064", "0.70408714", "0.70330536", "0.7026585", "0.70020485", "0.69991755", "0.6990955", "0.6986407", "0.6969089", "0.69570225", "0.69438684", "0.6918929", "0.68902355", "0.6833485", "0.6815528", "0.681...
0.7022074
9
Sub // return new Vector2
public static Vector2 Sub(Vector2 a, Vector2 b) { return new Vector2(a.x - b.x, a.y - b.y); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void sub(Vec2 v) {\r\n\t\tx -= v.x;\r\n\t\ty -= v.y;\r\n\t}", "public Vector2f sub(Vector2f vec) {\n this.x -= vec.x;\n this.y -= vec.y;\n return this;\n }", "Position V2Sub(Position a, Position b){\r\n\t\tdouble x = a.getX() - b.getX();\r\n\t\tdouble y = a.getY() - b.getY();\r\...
[ "0.7657484", "0.7543683", "0.75103974", "0.7320305", "0.7252845", "0.71511126", "0.71211785", "0.70797974", "0.7045854", "0.6980581", "0.69768393", "0.6946613", "0.69114566", "0.68912494", "0.6874146", "0.68074024", "0.6759684", "0.6745909", "0.6735138", "0.67220384", "0.6709...
0.74601644
3
Mult // return new Vector2
public static Vector2 MultScalar(Vector2 a, float scalar){ return new Vector2(a.x * scalar, a.y * scalar); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Vector2f mult (Vector2f other)\n {\n return mult(other, new Vector2f());\n }", "public vec2 mul( vec2 o){\n vec2 R = new vec2 ();\n R.x += this._M[ 0 ] * o.x ;\n R.x += this._M[ 1 ] * o.y ;\n R.y += this._M[ 4 ] * o.x ;\n R.y += this._M[ 5 ] * o.y ;\n ...
[ "0.78101844", "0.7534776", "0.7465725", "0.73539865", "0.734091", "0.7273888", "0.7105027", "0.7070048", "0.69787014", "0.68933094", "0.6858727", "0.68266547", "0.68141717", "0.67901343", "0.67541945", "0.6694305", "0.6691794", "0.66762465", "0.66690177", "0.66549146", "0.663...
0.6233359
49