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
parent: set to 720d
@Test public void inspectBakingSoda() { String colVis = "bakingSoda&chocolate"; assertParentAccepts(colVis, TIMESTAMP_IN_FUTURE); assertParentAccepts(colVis, 80 * DAYS_AGO); assertParentAccepts(colVis, 100 * DAYS_AGO); assertParentAccepts(colVis, 370 * DAYS_AGO); assertParentAccepts(colVis, 550 * DAYS_AGO); assertParentRejects(colVis, 750 * DAYS_AGO); assertParentRejects(colVis, VERY_OLD_TIMESTAMP); // child: overrides to 365d String colQual = "1/bakingSoda/chocolate"; assertChildAccepts(colQual, TIMESTAMP_IN_FUTURE); assertChildAccepts(colQual, 80 * DAYS_AGO); assertChildAccepts(colQual, 350 * DAYS_AGO); assertChildRejects(colQual, 400 * DAYS_AGO); assertChildRejects(colQual, VERY_OLD_TIMESTAMP); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void settings() { size(1200, 800); }", "private final void m126208g() {\n int i;\n int i2;\n int i3;\n int i4;\n int i5;\n if (!this.f102568b.mIsFromDraft || !this.f102568b.hasStickers()) {\n boolean a = C39804em.m127437a(this.f102568b.videoWidth(), th...
[ "0.61955243", "0.60001284", "0.59684324", "0.59330976", "0.59277785", "0.58515143", "0.57933086", "0.5725349", "0.56971717", "0.56896937", "0.5684235", "0.5665369", "0.56512547", "0.5647576", "0.5635338", "0.56329453", "0.56122184", "0.5589301", "0.55842537", "0.5576292", "0....
0.0
-1
parent: set to 90d
@Test public void inspectCoffeeGrounds() { assertParentRejects("coffeeGround&chocolate", VERY_OLD_TIMESTAMP); assertParentAccepts("coffeeGround&chocolate", TIMESTAMP_IN_FUTURE); // child: inherits parent's 90d ttl, no override assertChildRejects("2/coffeeGround/chocolate", VERY_OLD_TIMESTAMP); assertChildAccepts("2/coffeeGround/chocolate", TIMESTAMP_IN_FUTURE); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setParent(PsUpdateIf parent) {\n\t\tsuper.setParent(parent);\n\t\tm_pjRoot = (PjRootFinder)parent;\n\t\tm_pFunction.add(m_pjRoot.m_fx.getInfoPanel());\n\t\tm_pBounds.add(m_pjRoot.m_xMin.getInfoPanel());\n\t\tm_pBounds.add(m_pjRoot.m_xMax.getInfoPanel());\n\t\tm_pBounds.add(m_pjRoot.m_discr.getInfoPanel...
[ "0.6568141", "0.655675", "0.64092344", "0.63889116", "0.6366867", "0.62880784", "0.62688917", "0.62310964", "0.62158716", "0.6191949", "0.6189441", "0.61481464", "0.61310405", "0.6045864", "0.60312605", "0.6025783", "0.5990458", "0.5990147", "0.5989274", "0.5971592", "0.59424...
0.0
-1
parent: set to 183d
@Test public void inspectCoffeeWholeBean() { String colVis = "coffeeWholeBean&chocolate"; assertParentAccepts(colVis, TIMESTAMP_IN_FUTURE); assertParentAccepts(colVis, 90 * DAYS_AGO); assertParentAccepts(colVis, 182 * DAYS_AGO); assertParentRejects(colVis, 183 * DAYS_AGO); assertParentRejects(colVis, 365 * DAYS_AGO); assertParentRejects(colVis, VERY_OLD_TIMESTAMP); // child: inherits from parent, no override: 183d String colQual = "1/coffeeWholeBean/chocolate"; assertChildAccepts(colQual, TIMESTAMP_IN_FUTURE); assertChildAccepts(colQual, 90 * DAYS_AGO); assertChildAccepts(colQual, 182 * DAYS_AGO); assertChildRejects(colQual, 183 * DAYS_AGO); assertChildRejects(colQual, 365 * DAYS_AGO); assertChildRejects(colQual, VERY_OLD_TIMESTAMP); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@objid (\"617c2b9e-55b6-11e2-877f-002564c97630\")\n @Override\n protected void setParent(GmCompositeNode parent) {\n if (parent != null && getParent() != parent) {\n getPersistedStyle().setCascadedStyle(parent.getPersistedStyle());\n }\n \n super.setParent(parent);\n ...
[ "0.6359434", "0.63518196", "0.62797195", "0.6117639", "0.61128205", "0.6078185", "0.60672843", "0.60449284", "0.59815776", "0.5971513", "0.592088", "0.59079427", "0.5879926", "0.58691704", "0.5810424", "0.57612675", "0.5743995", "0.5673646", "0.5663219", "0.5659351", "0.56505...
0.0
-1
parent: set to 730d
@Test public void inspectCoffeeInstant() { String colVis = "coffeeInstant&chocolate"; assertParentAccepts(colVis, TIMESTAMP_IN_FUTURE); assertParentAccepts(colVis, 90 * DAYS_AGO); assertParentAccepts(colVis, 365 * DAYS_AGO); assertParentAccepts(colVis, 729 * DAYS_AGO); assertParentRejects(colVis, 730 * DAYS_AGO); assertParentRejects(colVis, 1365 * DAYS_AGO); assertParentRejects(colVis, VERY_OLD_TIMESTAMP); // child override: 365d String colQual = "1/coffeeInstant/chocolate"; assertChildAccepts(colQual, TIMESTAMP_IN_FUTURE); assertChildAccepts(colQual, 90 * DAYS_AGO); assertChildAccepts(colQual, 364 * DAYS_AGO); assertChildRejects(colQual, 365 * DAYS_AGO); assertChildRejects(colQual, 1830 * DAYS_AGO); assertChildRejects(colQual, VERY_OLD_TIMESTAMP); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void onParentSet() {\n\t\t\n\t}", "public void setParentCode(long value) {\n this.parentCode = value;\n }", "public void setParent(Instance parent) {\r\n \t\tthis.parent = parent;\r\n \t}", "public void setParentOne(int parent)\n\t{\n\t\tparentSetOne = parent;\n\t}", "void set...
[ "0.69557256", "0.66582745", "0.6610063", "0.65559614", "0.6524814", "0.64968485", "0.6474852", "0.6438867", "0.6414749", "0.640625", "0.6349118", "0.6347951", "0.63377947", "0.63197887", "0.6285741", "0.6249476", "0.624619", "0.6229371", "0.6227143", "0.62105614", "0.6206967"...
0.0
-1
parent: doesn't have this property
@Test public void inspectMysteryMeat() { String colVis = "mysteryMeat&chocolate"; assertChildAccepts(colVis, TIMESTAMP_IN_FUTURE); assertChildAccepts(colVis, 90 * DAYS_AGO); assertChildAccepts(colVis, 365 * DAYS_AGO); assertChildAccepts(colVis, 729 * DAYS_AGO); assertChildAccepts(colVis, 730 * DAYS_AGO); assertChildAccepts(colVis, 1365 * DAYS_AGO); assertChildAccepts(colVis, VERY_OLD_TIMESTAMP); // child override: 365d String colQual = "1/mysteryMeat/chocolate"; assertChildAccepts(colQual, TIMESTAMP_IN_FUTURE); assertChildAccepts(colQual, 36 * DAYS_AGO); assertChildAccepts(colQual, 364 * DAYS_AGO); assertChildAccepts(colQual, 3649 * DAYS_AGO); assertChildRejects(colQual, 3650 * DAYS_AGO); assertChildRejects(colQual, 36500 * DAYS_AGO); assertChildRejects(colQual, VERY_OLD_TIMESTAMP); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int Parent() { return this.Parent; }", "public Foo getParent() {\n return parent;\n }", "@VTID(7)\r\n void getParent();", "Spring getParent() {\n return parent;\n }", "public Object getParent() {\r\n return this.parent;\r\n }", "@Override\n\tpublic vo...
[ "0.7547863", "0.7345808", "0.72859275", "0.71734023", "0.70917904", "0.70798457", "0.70366585", "0.7021111", "0.7001097", "0.6998338", "0.69951504", "0.69951504", "0.69951504", "0.69934326", "0.69890684", "0.69348305", "0.6924989", "0.6918721", "0.6915238", "0.69084436", "0.6...
0.0
-1
Created by HotSauce on 2017/9/15.
public interface BeeDataDao { /*获取兼职数据*/ BeeJobTime getBeeJobTime(); /*分页获取兼职数据*/ BeeJobTime getBeeJobTimes(@Param("startIndex") int startIndex, @Param("endAmount") int endAmount); /*获取暑期工数据*/ BeeSummerJob getBeeSummerJob(); /*分页获取暑期工数据*/ BeeSummerJob getBeeSummerJobs(@Param("startIndex") int startIndex, @Param("endAmount") int endAmount); /*根据JID获取兼职详细信息*/ BeeJobTimeDetailed getBeeJobTimeDetailed(int jid); /*根据SID获取兼职详细信息*/ BeeSummerJobDetailed getSummerJobDetailed(int sid); /*分页获取兼职报名信息*/ UserMessageList getSignUpJobFairs(@Param("startIndex") int startIndex, @Param("endAmount") int endAmount); /*获取兼职报名List*/ UserMessageList getSignUpJobFair(); /*根据phone查询兼职报名人员*/ UserMessageList selectJobFairUser(String phone); /*兼职报名*/ void putSignUpJobFair(@Param("userMessage") UserMessage userMessage); /*根据UserId查询报名人员*/ String selectSignUpJobFairByUserId(int UserId); /*插入amount*/ void insertAmount(@Param("amount") String amount,@Param("jobNames") String jobNames,@Param("userId") int userId); /*暑期工报名*/ void putSignUpSummerJob(@Param("userMessage") UserMessage userMessage); /*暑期工发布*/ void publishSummerJob(@Param("beeSummerJobDetailed") BeeSummerJobDetailed beeSummerJobDetailed,@Param("tag") String tag); /*兼职发布*/ void publishJobFair(@Param("beeSummerJobDetailed") BeeSummerJobDetailed beeSummerJobDetailed,@Param("tag") String tag); /*分页获取暑期工报名信息*/ UserMessageList getSignUpSummerJobs(@Param("startIndex") int startIndex, @Param("endAmount") int endAmount); /*获取暑期工报名List*/ UserMessageList getSignUpSummerJob(); BeeSummerJobDetailedList AuditingJobFairs(@Param("startIndex") int startIndex, @Param("endAmount") int endAmount); BeeSummerJobDetailedList AuditingJobFair(); BeeSummerJobDetailedList AuditingSummerJob(); BeeSummerJobDetailedList AuditingSummerJobs(@Param("startIndex") int startIndex, @Param("endAmount") int endAmount); String selectSignUpJobFairByJIDS(int userId); UserMessageList selectSummerJobUser(String phone); String selectSignUpSummerJobByJIDS(int userId); String selectSignUpSummerJobByUserId(int userId); void insertAmount1(String jids, String jobNameS, int userId); int getSid(int id); int getJid(int id); void putOpenId(@Param("openId") Object openId,@Param("targetId") int targetId); BeeJobTime getAuditingBeeJobTimeByOpenId(String openId); BeeJobTime getAuditingBeeJobTimesByOpenId(@Param("openId") String openId, @Param("startIndex") int startIndex, @Param("endAmount") int endAmount); BeeJobTime getBeeJobTimesByOpenId(@Param("openId") String openId, @Param("startIndex") int startIndex, @Param("endAmount") int endAmount); BeeJobTime getBeeJobTimeByOpenId(String openId); int selectIsGet(int i); UserMessageList getSignUpJobFairsByJid(); UserMessageList getSignUpJobFairByJid(@Param("jid") String jid,@Param("startIndex") int startIndex, @Param("endAmount") int endAmount); int selectargetId(String openId); BeeJobTimeDetailed getAuditingBeeJobTimeDetailed(int jid); int selectOpenId(Object openId); Object selectOpenIds(Object openId); List<Integer> getJidByOpenId(String openId); void getJobTimeUserByJid(List<Integer> jid); String getJidsByOpenId(String openId); BeeJobTime getJobTimeByOpenId(@Param("jidS") List<String> jidS); BeeJobTime getBeeJobTimesByOpenIds(int startIndex, int endAmount); String getJidsByJid(int i); String[] getJids(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "private stendhal() {\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "public final void mo51373a() {\n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpubl...
[ "0.6081355", "0.5887289", "0.57520205", "0.5743742", "0.5704754", "0.56571007", "0.56501853", "0.56501853", "0.5598718", "0.55429196", "0.55352247", "0.55177057", "0.55107874", "0.5505741", "0.54970086", "0.5482049", "0.54761285", "0.5468178", "0.5468178", "0.5468178", "0.546...
0.0
-1
TODO Autogenerated method stub
private void readAddServices(BufferedReader in) { String line, name = "", opis = ""; Double price = -1.0; StringTokenizer st; try { while ((line = in.readLine()) != null) { line = line.trim(); if (line.equals("") || line.indexOf('#') == 0) continue; st = new StringTokenizer(line, ";"); while (st.hasMoreTokens()) { name = st.nextToken().trim(); opis = st.nextToken().trim(); price = Double.parseDouble(st.nextToken().trim()); } addServices.put(name, new AdditionalService(name, opis, price)); } } catch (Exception ex) { ex.printStackTrace(); } }
{ "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
/ Author Kanishka Date Created 9 July, 2018 Description Services for 'category' feature
@Service public interface CategoryService { void updateCategory(String title,String description); Iterable<Category> getAllCategories(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String category();", "public void setCategory(String category){\n this.category = category;\n }", "@Override\r\n\tpublic void addCategory() {\n\t\tCategory cat=new Category();\r\n\t\tcat.setNameCategory(\"Computing Tools\");\r\n\t\tem.persist(cat);\r\n\t\t\r\n\t}", "public String getCategory() {\n ...
[ "0.68012005", "0.65969825", "0.6596252", "0.65803653", "0.6578198", "0.65700084", "0.6514188", "0.6456795", "0.6456795", "0.644307", "0.6435373", "0.6411837", "0.6410975", "0.6387143", "0.6387143", "0.63818043", "0.63725996", "0.63725996", "0.63671905", "0.6367023", "0.633617...
0.0
-1
Reads the frontend packet.
public FrontendPacketReader(FrontendPacket packet) { this.packet = packet; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void readPayload() throws IOException {\n _data_stream.skipBytes(PushCacheProtocol.COMMAND_LEN);\n int rlen = _data_stream.readInt();\n if (rlen == 0) {\n return;\n }\n _text_buffer = new byte[rlen];\n int sofar = 0;\n int toread = rlen;\n ...
[ "0.64059097", "0.6250965", "0.61974925", "0.60536677", "0.6036177", "0.5865436", "0.5723745", "0.57139474", "0.57092696", "0.5691643", "0.5677828", "0.56656814", "0.5647122", "0.564488", "0.56429", "0.5626769", "0.56253093", "0.5621636", "0.5572465", "0.5569798", "0.55653286"...
0.55265146
23
Gets the requested method.
public String getMethod() { return getParameter("method"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getMethod();", "String getMethod();", "public String getMethod ()\n {\n return method;\n }", "public Method getMethod();", "public String getMethod() {\n\t\treturn method;\n\t}", "public String getMethod() {\n\t\t\treturn method;\n\t\t}", "public String getMethod() {\n return method;...
[ "0.80431086", "0.80431086", "0.79126304", "0.7814824", "0.7812651", "0.7776427", "0.7758311", "0.7758311", "0.7758311", "0.77501434", "0.77352864", "0.77119786", "0.76489925", "0.7639839", "0.7639839", "0.7626757", "0.7614085", "0.7567767", "0.75498015", "0.75498015", "0.7544...
0.8265785
0
Gets the callback flag.
public boolean isCallbackSet() { return getParameter("callback") != null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isCallback() {\n return callback;\n }", "public final AbstractC32522b<Boolean, Unit> getOnCallBack() {\n return this.onCallBack;\n }", "static Handler getCallbackHandler() {\n return sCallbackHandler;\n }", "DeliverTask getCallback()\n {\n synchronized...
[ "0.7538489", "0.71117365", "0.6388582", "0.63696265", "0.6311525", "0.6311001", "0.61909187", "0.6154853", "0.60741216", "0.6061497", "0.60506034", "0.5949601", "0.5939976", "0.59321344", "0.59315807", "0.58978856", "0.586641", "0.5852158", "0.5754695", "0.57505924", "0.57224...
0.6774773
2
Gets the error flag.
public boolean isError() { return packet.isError(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean getError() {\r\n \treturn error;\r\n }", "public boolean getErr() {\n\t\treturn err;\r\n\t}", "public int getError() {\n return error;\n }", "public int error() {\n return this.error;\n }", "int getErrorsMode();", "public boolean getFailOnErr() {\n return ...
[ "0.76020986", "0.7518324", "0.7392972", "0.7236615", "0.7189145", "0.7102896", "0.7087683", "0.70347786", "0.70347786", "0.70347786", "0.7029511", "0.6991554", "0.6913553", "0.68861413", "0.68729824", "0.686365", "0.6861532", "0.68039244", "0.67962205", "0.67822", "0.676594",...
0.0
-1
returns the Veranstaltung identified by the veranstaltungKey.
public Veranstaltung get(VeranstaltungKey veranstaltungKey) throws RuntimeException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "MemberVdusKey getKey();", "String getVorlesungKennung();", "public String getKey() {\n return this.key;\n }", "public String getKey() {\n return this.key;\n }", "public String getKey() {\n return this.key;\n }", "public String getKey() {\n return this.key;\n }", "pu...
[ "0.6190694", "0.58392507", "0.5671207", "0.5612618", "0.5612618", "0.5612618", "0.5612618", "0.5612618", "0.5612618", "0.55938923", "0.55334026", "0.55312604", "0.55312604", "0.55312604", "0.5501338", "0.54992104", "0.54991764", "0.54991764", "0.54988027", "0.54942155", "0.54...
0.8064317
0
saves or updates the veranstaltung.
public void save(Veranstaltung veranstaltung) throws RuntimeException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void save() {\t\n\t\n\t\n\t}", "public void save();", "public void save();", "public void save();", "public void save();", "@Override\n\tpublic void save() {\n\t\tSystem.out.println(\"save method\");\n\t}", "public void save(){\n\t\tlowresModelManager.save();\n\t}", "@Override\r\n\tpublic void...
[ "0.70060515", "0.66292095", "0.66292095", "0.66292095", "0.66292095", "0.6611925", "0.6607626", "0.65931666", "0.6592867", "0.65754837", "0.6530841", "0.65242606", "0.65242606", "0.6520579", "0.6520579", "0.6520579", "0.6513346", "0.65045273", "0.6492461", "0.64860123", "0.64...
0.73892355
0
searches for similarities with the given Veranstaltung in the db
public List search(Veranstaltung veranstatung) throws RuntimeException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void findMatchings(boolean isProtein) {\n\n GraphDatabaseFactory dbFactory = new GraphDatabaseFactory();\n HashSet<String > searchSpaceList = new HashSet<>();\n GraphDatabaseService databaseService = dbFactory.newEmbeddedDatabase(graphFile);\n for (int id: queryGraphN...
[ "0.6305845", "0.5857861", "0.5835054", "0.57618445", "0.5689815", "0.5686084", "0.5676285", "0.55776066", "0.55263346", "0.5524783", "0.5470256", "0.54652303", "0.54471976", "0.5432115", "0.54284894", "0.53834003", "0.534766", "0.5338823", "0.5204541", "0.5199269", "0.5197097...
0.5516619
10
JFormDesigner Component initialization DO NOT MODIFY //GENBEGIN:initComponents
private void initComponents(final int sumprice,final Object[][] tableDate) { textField1 = new JTextField(); label1 = new JLabel(); button1 = new JButton(); //======== this ======== Container contentPane = getContentPane(); contentPane.setLayout(null); contentPane.add(textField1); textField1.setBounds(125, 105, 125, textField1.getPreferredSize().height); //---- label1 ---- label1.setText("\u6761\u5f62\u7801\uff1a"); contentPane.add(label1); label1.setBounds(new Rectangle(new Point(80, 110), label1.getPreferredSize())); //---- button1 ---- button1.setText("\u786e\u5b9a"); contentPane.add(button1); button1.setBounds(new Rectangle(new Point(265, 105), button1.getPreferredSize())); button1.addActionListener( new ActionListener() { @Override public void actionPerformed(ActionEvent e) { String code = textField1.getText(); boolean bool = Main.trade_pay(code,sumprice); if(bool){ System.out.println("支付成功"); //生成orderid String name = Login.username; String orderid = DaoCreate.CreateOutlineOrdid(name); //将订单信息加入到comorder数据库表中 OutlineOrderMes.insertComOrd(name,orderid); //将订单信息加入到detailorder数据库表中 OutlineOrderMes.insertDetailOrd(tableDate,orderid); MerSellFrame.Clear();//付款之后清空购物车 WarnFrame.outlinePoswarnFrame1();//弹出支付成功框 //打印小票 OutlineOrderMes.printOrder(tableDate,name); }else{ System.out.println("支付失败"); WarnFrame.outlinePaywarnFrame(); } } } ); contentPane.setPreferredSize(new Dimension(400, 300)); pack(); setLocationRelativeTo(getOwner()); // JFormDesigner - End of component initialization //GEN-END:initComponents setVisible(true); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void initComponents() {\n\n\t\tsetName(\"Form\"); // NOI18N\n\t\tsetLayout(new java.awt.BorderLayout());\n\t}", "public FormCompra() {\n initComponents();\n }", "public MechanicForm() {\n initComponents();\n }", "public myForm() {\n\t\t\tinitComponents();\n\t\t}", "public Design...
[ "0.7980227", "0.79100174", "0.78056455", "0.77578115", "0.766456", "0.7656488", "0.76562065", "0.7628607", "0.76191956", "0.75570554", "0.75570554", "0.75570554", "0.75432783", "0.75121176", "0.74882853", "0.748563", "0.7464314", "0.7459073", "0.7452996", "0.7452996", "0.7448...
0.0
-1
The RetryContext is used to store any data which carries over from attempt to attempt such as response messages.
public interface RetryContext { String FAILED_RECEIVER = "failedReceiver"; String FAILED_DISPATCHER = "failedDispatcher"; String FAILED_REQUESTER = "failedRequester"; /** * @return a read-only meta-info map or an empty map, never null. */ Map getMetaInfo(); void setMetaInfo(Map metaInfo); MuleMessage[] getReturnMessages(); MuleMessage getFirstReturnMessage(); void setReturnMessages(MuleMessage[] returnMessages); void addReturnMessage(MuleMessage result); String getDescription(); /** * The most recent failure which prevented the context from validating the connection. Note that the method may * return null. Instead, the {@link #isOk()} should be consulted first. * * @return last failure or null */ Throwable getLastFailure(); /** * Typically called by validation logic to mark no problems with the current connection. Additionally, * clears any previous failure set. */ void setOk(); /** * Typically called by validation logic to mark a problem and an optional root cause. * * @param lastFailure the most recent failure, can be null */ void setFailed(Throwable lastFailure); /** * Note that it's possible for an implementation to return false and have no failure specified, thus * the subsequent {@link #getLastFailure()} may return null. * * @return true if no problems detected before */ boolean isOk(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Object doWithRetry(RetryContext context) throws Throwable {\n \t\t\t\t((StringHolder) item).string = ((StringHolder) item).string + (count++);\n \t\t\t\tthrow new RuntimeException(\"Barf!\");\n \t\t\t}", "@Override\n public void onRetry(HttpRequest req, String reason) {\n\n }", "@Override\...
[ "0.6384918", "0.5520524", "0.55019194", "0.5421539", "0.54149896", "0.5405971", "0.5400554", "0.53357923", "0.53357923", "0.53357923", "0.53314394", "0.5318781", "0.531353", "0.531353", "0.531353", "0.5289475", "0.52758235", "0.5269999", "0.5229867", "0.52208984", "0.52208984...
0.71889055
0
Typically called by validation logic to mark no problems with the current connection. Additionally, clears any previous failure set.
void setOk();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void clearValidationError() {\n\n\t\tdataValid = false;\n\n\t\tvalidationErrorPending = false;\n\t\tvalidationErrorParent = null;\n\t\tvalidationErrorTitle = null;\n\t\tvalidationErrorMessage = null;\n\t\tvalidationErrorType = 0;\n\t}", "public void validate() {\n\t\tthis.invalidated = false;\n\t}", "p...
[ "0.67580557", "0.6633133", "0.6619059", "0.6384148", "0.63512427", "0.6290196", "0.62004936", "0.6171993", "0.61710894", "0.6170984", "0.616702", "0.612576", "0.6105677", "0.5996896", "0.597007", "0.59640056", "0.5952259", "0.59397703", "0.5918242", "0.5916723", "0.59079844",...
0.0
-1
Typically called by validation logic to mark a problem and an optional root cause.
void setFailed(Throwable lastFailure);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private RedisSMQException validationException(String cause) {\n\t\treturn new RedisSMQException(\"Value \" + cause);\n\t}", "public XMLParseException(Throwable cause) { super(defaultMessage,cause); }", "private RedisSMQException validationException(Object value, String cause) {\n\t\treturn new RedisSMQExceptio...
[ "0.6417699", "0.61860806", "0.61071444", "0.608697", "0.601043", "0.59935856", "0.5962781", "0.5957237", "0.5948848", "0.5917413", "0.59077585", "0.5889219", "0.5884704", "0.5872375", "0.58437395", "0.58392537", "0.5831068", "0.5829011", "0.5828031", "0.5828031", "0.5789259",...
0.0
-1
Create a new DiaryEntry
public DiaryEntry(Drugs drug, int ammount) { super(); this.drug = drug; this.ammount = ammount; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public DataEntry create(long dataEntryId);", "public ua.org.gostroy.guestbook.model.Entry3 create(long entryId);", "public Entry create(int compoID,\n\t\t\tint entryID,\n\t\t\tString entryName,\n\t\t\tString entryDesc,\n\t\t\tString entryAuthor) throws CreateException, RemoteException;", "TarEntry CreateEntr...
[ "0.74150634", "0.6703055", "0.6387376", "0.62688", "0.6146642", "0.6140357", "0.6130373", "0.59815073", "0.5940852", "0.5882507", "0.5844026", "0.5829653", "0.58203185", "0.575213", "0.5690102", "0.56273496", "0.5588288", "0.55464756", "0.55377054", "0.55177885", "0.5506843",...
0.6144484
5
Create a new DiaryEntry over riding create day
public DiaryEntry(Drugs drug, int ammount, int overRideDay) { super(); this.drug = drug; this.ammount = ammount; this.date.set(date.get(Calendar.YEAR), date.get(Calendar.MONTH), date.get(Calendar.DAY_OF_MONTH) - overRideDay); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public DataEntry create(long dataEntryId);", "public Entry(int day) {\n\t\tthis.day = day;\n\t}", "public DataEntry createEntry(String tableName, DataEntry entry) {\n\t\tDataEntry oldEntry = null;\n\t\tif (tables.containsKey(tableName)) {\n\t\t\tTable table = tables.get(tableName);\n\t\t\toldEntry = table.crea...
[ "0.6931805", "0.6337626", "0.6073801", "0.6030631", "0.5867436", "0.58552194", "0.5741228", "0.57122034", "0.57002884", "0.56887454", "0.5671147", "0.56695807", "0.5637879", "0.56222063", "0.5586339", "0.5579702", "0.55576897", "0.55265766", "0.5509053", "0.5474755", "0.54548...
0.6220944
2
Return the drug of the entry
public Drugs getDrug() { return this.drug; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic Drug getDrugById(Integer id) {\n\t\treturn null;\n\t}", "public String drink(Beverage beverage) {\n return beverage.getDrink();\n }", "public IDrugDAC getDrugDAC()\r\n\t{\r\n\t\treturn drugDAC;\r\n\t}", "@Override\n\tpublic int getDikte() {\n\t\treturn this.dikttte;\n\t}", "pu...
[ "0.6237399", "0.61876714", "0.59923047", "0.5900308", "0.58585596", "0.5678885", "0.560883", "0.55689687", "0.55584484", "0.5550992", "0.5518708", "0.5440249", "0.54121315", "0.5396015", "0.538289", "0.53437215", "0.5340388", "0.5339004", "0.5316116", "0.53152204", "0.5314153...
0.70138854
0
Get the diary drug amount
public int getAmmount() { return this.ammount; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double getDepositAmount()\n\t{\n\t\treturn this.getFlightCosts() + this.totalPrice * this.half;\n\t}", "public BigDecimal getDEAL_AMOUNT() {\r\n return DEAL_AMOUNT;\r\n }", "@Override\n\tpublic double salariDiari() {\n\t\treturn 50.00 + this.Vendes * 1.15;\n\t}", "public Integer getDeposit()...
[ "0.6538823", "0.651854", "0.6498857", "0.6459006", "0.64541745", "0.64351445", "0.6433578", "0.6371429", "0.63447464", "0.63321245", "0.6325652", "0.62944955", "0.6286764", "0.6272858", "0.6271726", "0.6271542", "0.62700456", "0.6269383", "0.6240762", "0.6224226", "0.61812997...
0.0
-1
Return the day of the week this was created
public int GetDay(){ return this.date.get(Calendar.DAY_OF_WEEK); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Weekday getDayOfWeek() {\n\n long utcDays = CALSYS.transform(this);\n return Weekday.valueOf(MathUtils.floorModulo(utcDays + 5, 7) + 1);\n\n }", "public int getWeekDay()\n\t{\n\t\tif (m_nType == AT_WEEK_DAY)\n\t\t\treturn ((Integer)m_oData).intValue();\n\t\telse\n\t\t\treturn -1;\n\t}", ...
[ "0.7565983", "0.7500571", "0.74943477", "0.74192095", "0.72595954", "0.72480226", "0.7172329", "0.7167917", "0.7151275", "0.7106477", "0.70828456", "0.70397836", "0.7028477", "0.6986266", "0.6984418", "0.69737023", "0.69679075", "0.69630706", "0.6958421", "0.69109535", "0.690...
0.754909
1
Return the Month and day of the month this was created
public int[] GetDateMD(){ int[] i = new int[2]; i[0] = this.date.get(Calendar.MONTH); i[1] = this.date.get(Calendar.DAY_OF_MONTH); return i; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getMonthDate()\n\t{\n\t\tif (m_nType == AT_MONTH_DATE)\n\t\t\treturn ((Integer)m_oData).intValue();\n\t\telse\n\t\t\treturn -1;\n\t}", "public int getDayOfMonth();", "public String getMonth()\n {\n SimpleDateFormat newDateFormat = new SimpleDateFormat(\"dd/MM\");\n String MySDate = ...
[ "0.6931418", "0.6929887", "0.68156826", "0.6749124", "0.6737583", "0.67077166", "0.6696636", "0.66604114", "0.6640207", "0.66317314", "0.662445", "0.6614933", "0.65984285", "0.65984285", "0.6565744", "0.65391546", "0.6528221", "0.65154237", "0.6482535", "0.6480102", "0.645341...
0.6324203
34
Return a formatted string of the date and time this was created Returned as "Day name (short), DD/MM/YY hours:minuets:seconds AM/PM"
public String DateFormatted(){ SimpleDateFormat simDate = new SimpleDateFormat("E, dd/MM/yy hh:mm:ss a"); return simDate.format(date.getTime()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getSystemDateTime() {\n\t\tjava.text.SimpleDateFormat sdfDate = new java.text.SimpleDateFormat(\"yyyy/MM/dd\");\n java.text.SimpleDateFormat sdfTime = new java.text.SimpleDateFormat(\"HH:mm\");\n Date now = new Date();\n String strDate = sdfDate.format(now...
[ "0.7468588", "0.743868", "0.73929906", "0.73488814", "0.7321114", "0.72713184", "0.7262414", "0.72524583", "0.7135558", "0.71202385", "0.7107719", "0.7098915", "0.7098915", "0.70958674", "0.7067741", "0.70189065", "0.698659", "0.6972186", "0.69665974", "0.6957059", "0.6952477...
0.71126044
10
Inflate the layout for this fragment
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View v = inflater.inflate(R.layout.fragment_sign_up, container, false); email = (EditText) v.findViewById(R.id.email); password = (EditText) v.findViewById(R.id.password); signup = (Button) v.findViewById(R.id.signup); signin = (TextView) v.findViewById(R.id.signin); cardView = (CardView) v.findViewById(R.id.signcard); firebaseAuth = FirebaseAuth.getInstance(); signup.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { InputMethodManager inputMethodManager = (InputMethodManager)getContext().getSystemService(INPUT_METHOD_SERVICE); assert inputMethodManager != null; inputMethodManager.hideSoftInputFromWindow(v.getApplicationWindowToken(),0); signupuser(); } }); signin.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { signinset(); } }); return v; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_main_allinfo, container, false);\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup...
[ "0.6739604", "0.67235583", "0.6721706", "0.6698254", "0.6691869", "0.6687986", "0.66869223", "0.6684548", "0.66766286", "0.6674615", "0.66654444", "0.66654384", "0.6664403", "0.66596216", "0.6653321", "0.6647136", "0.66423255", "0.66388357", "0.6637491", "0.6634193", "0.66251...
0.0
-1
Created by fifi elshafie on 6/30/2018.
public interface mapSearchPlacesListener { public void onMapPlacesLoaded(mapsPlacesLoaderModel mapsPlacesLoaderModel) ; public void onMapPlacesFailed (int code, String Error) ; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "public final void mo51373a() {\n }", "private stendhal() {\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\t...
[ "0.6038902", "0.57696944", "0.57339174", "0.55740666", "0.555261", "0.555261", "0.55304885", "0.5525051", "0.5520063", "0.5514268", "0.5491396", "0.5482132", "0.54534745", "0.54190886", "0.54190886", "0.54190886", "0.54190886", "0.54190886", "0.54190886", "0.5394374", "0.5392...
0.0
-1
size of the queue
public void linkedListQueue(){ first = null; last = null; N = 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getQueueSize();", "public int size(){\r\n\t\treturn queue.size();\r\n\t}", "public int queueSize() {\n\t\treturn queue.size();\t\n\t}", "public long getQueueSize(){\n return queue.size();\n }", "public abstract int getQueueLength();", "public int size() {\n return _queue.size();\n ...
[ "0.8801278", "0.8659146", "0.8533573", "0.8519495", "0.8318872", "0.8311734", "0.8280461", "0.8261502", "0.8255399", "0.8180142", "0.8118888", "0.8112533", "0.8038127", "0.79066306", "0.7898613", "0.78591096", "0.7696331", "0.76880336", "0.76858604", "0.7645018", "0.7540686",...
0.0
-1
insert add the end
public void enqueue(Item item){ Node<Item> newNode = new Node<Item>(); newNode.item = item; newNode.next = null; if(last == null){ first = newNode; } else last.next = newNode; last = newNode; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void InsertAtEnd(K pk){\n\t\tsuper.append(pk);\n\t}", "public void insertAtEnd(Employee e) {\n\t}", "@Override\n\tpublic void insert() {\n\t\t\n\t}", "public void insertEnd(T data){\n Node<T> node = new Node<T>(data);\n if(this.isEmpty()) {\n this.insertFirst(data);\n }...
[ "0.70471257", "0.6913405", "0.68710405", "0.6849604", "0.66294676", "0.6588789", "0.65875006", "0.6529891", "0.6520225", "0.6519661", "0.6435817", "0.63939327", "0.6359572", "0.6321702", "0.6313381", "0.6308297", "0.6289577", "0.62737626", "0.6262296", "0.624757", "0.62473226...
0.0
-1
TODO Autogenerated method stub
public static void main(String[] args) { linkedListQueue<String> queue = new linkedListQueue<String>(); queue.printQueue(); queue.enqueue("a"); queue.enqueue("b"); queue.enqueue("c"); queue.enqueue("d"); queue.printQueue(); queue.dequeue(); queue.dequeue(); queue.dequeue(); queue.dequeue(); queue.dequeue(); }
{ "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
NE retourne pas le noUtilisateur et l'admin
public Utilisateur selectUtilisateurByPseudo(String pseudo) throws BusinessException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void accionUsuario() {\n\t\t\r\n\t}", "private void checkUser() {\n\t\tlog.info(\"___________checkUser\");\n\t\tList<User> adminUser = userRepository.getByAuthority(AuthorityType.ROLE_ADMIN.toString());\n\t\tif (adminUser == null || adminUser.isEmpty()) {\n\t\t\tgenerateDefaultAdmin();\n\t\t}\n\t}", ...
[ "0.71055365", "0.7057749", "0.7016879", "0.69637996", "0.6859307", "0.680447", "0.6613545", "0.6600362", "0.65576595", "0.6527583", "0.64962596", "0.6487426", "0.6486594", "0.6436128", "0.6428308", "0.6418649", "0.6418649", "0.64185435", "0.64112824", "0.6398844", "0.6389446"...
0.0
-1
Convenience method for calculating the CRC32 checksum of a string.
public static long crc32(String s) { Checksum checksum = new CRC32(); byte[] bytes = s.getBytes(); checksum.update(bytes, 0, bytes.length); return checksum.getValue(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getChecksum();", "private int checksum()\n {\n byte[] data = new byte[size];\n buf.mark();\n buf.seek(offset);\n buf.read(data);\n buf.reset();\n return Checksum.crc32(data);\n }", "public long CRC() {\n long retval = 0;\n retval +=...
[ "0.6466769", "0.6249277", "0.61853033", "0.61226445", "0.6048582", "0.5962258", "0.5844301", "0.56975067", "0.5673417", "0.56521136", "0.56353384", "0.5631488", "0.5612094", "0.5589935", "0.55835766", "0.55523735", "0.55138993", "0.5482586", "0.54704255", "0.5449023", "0.5435...
0.820043
0
TODO Autogenerated method stub
@Override public ActionForWard execute(HttpServletRequest request) { request.setAttribute("list", dao.ListBaseball()); ArrayList<baseballBean> list2=new ArrayList<baseballBean>(); request.getSession().setAttribute("list2", list2); return new ActionForWard(path,redirect); }
{ "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
Private constructor to aboid object creation from outside classes.
public DatabaseAccess(Context context) { this.openHelper = new OlpbhtbDatabase(context); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Instantiation(){}", "private ObjectFactory() { }", "Reproducible newInstance();", "private SingleObject()\r\n {\r\n }", "public ObjectFactory() {\n\t}", "protected abstract void construct();", "private ATCres() {\r\n // prevent to instantiate this class\r\n }", "public ObjectF...
[ "0.77679694", "0.7756255", "0.7588024", "0.7488796", "0.74646866", "0.7445815", "0.74402356", "0.74239516", "0.73085845", "0.7282836", "0.72414684", "0.7211899", "0.7211899", "0.7211899", "0.71954644", "0.71954644", "0.71954644", "0.71954644", "0.71954644", "0.71954644", "0.7...
0.0
-1
Return a singleton instance of DatabaseAccess.
public static DatabaseAccess getInstance(Context context) { if (instance == null) { instance = new DatabaseAccess(context); } return instance; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static DatabaseAccess getInstance(Context context){\n if(instance == null){\n instance=new DatabaseAccess(context);\n }\n return instance;\n }", "public static Database getInstance() {\n if (database == null) database = new Database();\n return database;\n ...
[ "0.8174402", "0.7719373", "0.76436174", "0.7424153", "0.74097955", "0.73617303", "0.7166321", "0.714707", "0.71417207", "0.71146727", "0.709672", "0.70658016", "0.7048328", "0.70239866", "0.7007818", "0.70058185", "0.6992768", "0.6991018", "0.6990035", "0.69881743", "0.698691...
0.8267954
3
Open the database connection.
public void open() { this.database = openHelper.getWritableDatabase(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void openDatabase() {\r\n if ( connect != null )\r\n return;\r\n\r\n try {\r\n // Setup the connection with the DB\r\n String host = System.getenv(\"DTF_TEST_DB_HOST\");\r\n String user = System.getenv(\"DTF_TEST_DB_USER\");\r\n String pa...
[ "0.7780113", "0.76823837", "0.7605202", "0.75779814", "0.757595", "0.7569077", "0.7524684", "0.7453358", "0.74321586", "0.7417203", "0.74119925", "0.7401618", "0.73476315", "0.7338749", "0.7333046", "0.73030436", "0.72949755", "0.7284866", "0.7260335", "0.72271544", "0.722436...
0.72425044
23
Close the database connection.
public void close() { if (database != null) { this.database.close(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void closeDB() {\n\t\ttry {\n\t\t\tconn.close();\n\t\t\tconn = null;\n\t\t} catch (SQLException e) {\n\t\t\tSystem.err.println(\"Failed to close database connection: \" + e);\n\t\t}\n\t}", "public void closeDB() throws SQLException\r\n {\r\n conn.close();\r\n }", "public void close() {\n ...
[ "0.82049865", "0.8109345", "0.80854", "0.8083696", "0.8069195", "0.8038914", "0.79841536", "0.79841536", "0.7964884", "0.79640317", "0.79610175", "0.7958632", "0.7910468", "0.7853626", "0.7845886", "0.77667254", "0.7746259", "0.77236414", "0.77164465", "0.76845366", "0.765075...
0.77006805
22
Instantiates a new Position.
public Position(int x, int y) { this.x = x; this.y = y; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Position createPosition();", "public Position() {\n\n\t}", "public void case4_Position() {\r\n Position testPosition = new Position(0,0);\r\n\r\n }", "Position_Position createPosition_Position();", "public Position() {\n xCoord = 0;\n yCoord = 0;\n zCoord = 0;\n }", "pub...
[ "0.80160177", "0.7936411", "0.75933176", "0.7572091", "0.7385538", "0.7319431", "0.72125715", "0.7101525", "0.7006752", "0.6998246", "0.6994651", "0.6883039", "0.6829375", "0.6751005", "0.6738855", "0.6733462", "0.66585183", "0.6560667", "0.65501904", "0.65197635", "0.6496831...
0.69497955
11
Gets the xcoordinate of the position.
public int getX() { return x; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final int getPositionX() {\r\n return (int) position.x();\r\n }", "public double getPositionX() {\n return positionX_;\n }", "public double getPositionX() {\n return positionX_;\n }", "public double getPositionX() {\n return positionX_;\n }", "public fin...
[ "0.8611098", "0.8410654", "0.8410654", "0.840913", "0.838967", "0.83604515", "0.83604515", "0.83600557", "0.8299216", "0.82937783", "0.8263467", "0.8223405", "0.81993574", "0.8198269", "0.8183627", "0.81653273", "0.81653273", "0.8147532", "0.8129249", "0.8119833", "0.811266",...
0.0
-1
Gets the ycoordinate of the position.
public int getY() { return y; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final int getPositionY() {\r\n return (int) position.y();\r\n }", "public double getY() {\n return position.getY();\n }", "public double getYPosition()\n\t{\n\t\treturn yPosition;\n\t}", "public int getY() {\n\t\t\n\t\treturn yPosition;\t\t// Gets the y integer\n\t}", "public fin...
[ "0.8539257", "0.8493014", "0.8422099", "0.8394794", "0.8393461", "0.837879", "0.83547074", "0.8354503", "0.8326514", "0.8291477", "0.8283801", "0.82705855", "0.8270122", "0.8270122", "0.8270122", "0.82622534", "0.82622534", "0.82556677", "0.82554907", "0.82554907", "0.8237964...
0.0
-1
Checks if the x and y coordinates of this position fall within the corners of the world.
public boolean isIn(Position topLeft, Position bottomRight) { boolean withinTop = this.y <= topLeft.getY(); boolean withinBottom = this.y >= bottomRight.getY(); boolean withinLeft = this.x >= topLeft.getX(); boolean withinRight = this.x <= bottomRight.getX(); return withinTop && withinBottom && withinLeft && withinRight; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean withinWorld(int x, int y) {\n\t\treturn x >= 0 && x < MAX_WIDTH && y >= 0 && y < MAX_HEIGHT;\n\t}", "private boolean verifyBounds() {\r\n\t if((x>RobotController.BOUNDS_X || y>RobotController.BOUNDS_Y)\r\n\t || x<0 || y<0){\r\n\t return false;\r\n\t }\r\n\t return true;\r\n\t }", "public...
[ "0.7031144", "0.69764245", "0.69317245", "0.66774464", "0.66602546", "0.66419303", "0.6600309", "0.65777504", "0.6554439", "0.6548002", "0.6543183", "0.65384424", "0.64836794", "0.64794093", "0.64781266", "0.64572936", "0.6441245", "0.6441245", "0.6441245", "0.64190185", "0.6...
0.0
-1
Inflate the menu; this adds items to the action bar if it is present.
@Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.menu_login, 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.72500116", "0.7204146", "0.71987385", "0.7180757", "0.71107906", "0.7043322", "0.7041613", "0.7015376", "0.7013112", "0.6982869", "0.69475657", "0.6941377", "0.6937569", "0.69213736", "0.69213736", "0.6892679", "0.6887231", "0.6877873", "0.68772626", "0.68644464", "0.68644...
0.0
-1
Handle action bar item clicks here. The action bar will automatically handle clicks on the Home/Up button, so long as you specify a parent activity in AndroidManifest.xml.
@Override public boolean onOptionsItemSelected(MenuItem item) { int id = item.getItemId(); //noinspection SimplifiableIfStatement if (id == R.id.action_settings) { return true; } return super.onOptionsItemSelected(item); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onOptionsItemSelected(MenuItem item) { Handle action bar item clicks here. The action bar will\n // automatically handle clicks on the Home/Up button, so long\n // as you specify a parent activity in AndroidManifest.xml.\n\n //\n // HANDLE BACK BUTTON\n ...
[ "0.79042155", "0.7806028", "0.77664185", "0.77272826", "0.7631844", "0.7621488", "0.75845605", "0.753064", "0.7487905", "0.74575514", "0.74575514", "0.74386317", "0.7421903", "0.7403247", "0.7391723", "0.7386928", "0.73795277", "0.73705643", "0.73629", "0.7356027", "0.7345714...
0.0
-1
max locals in jvm method must >= max locals in local variables
public Frame(JvmThread jvmThread, JvmMethod jvmMethod, LocalVariables localVariables) { if(jvmMethod.getMaxLocals() < localVariables.getMaxLocals()) { String message = String.format( "max locals in jvm method must >= max locals in local variables!! method = %d, local variables = %d", jvmMethod.getMaxLocals(), localVariables.getMaxLocals() ); throw new RuntimeException(message); } // maybe we need to grow local variables if(localVariables.getMaxLocals() < jvmMethod.getMaxLocals()) { localVariables.growMaxLocals(jvmMethod.getMaxLocals()); } this.jvmThread = jvmThread; this.localVariables = localVariables; this.operandStacks = new OperandStacks(jvmMethod.getMaxStack()); this.jvmMethod = jvmMethod; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int maxLocals();", "public void setMaxLocals() {\n/* 292 */ int maxLocals = getMaxLocals();\n/* 293 */ int prevLocals = maxLocals;\n/* */ \n/* */ \n/* 296 */ LocalVariableGen[] localVars = getLocalVariables();\n/* 297 */ if (localVars != null && \n/* 298 */ localVars.leng...
[ "0.83026683", "0.7924686", "0.77981776", "0.6527724", "0.62061816", "0.61191463", "0.61076665", "0.60916334", "0.60500896", "0.5903276", "0.58832604", "0.58737147", "0.58303374", "0.5740071", "0.5711182", "0.56145084", "0.5571604", "0.55583405", "0.5526321", "0.54926866", "0....
0.60531884
8
logger level is trace, frame status
public void traceStatus() { logger.trace("jvmThread: {}, jvmMethod: {}", jvmThread, jvmMethod); logger.trace("localVariables: {}", localVariables); logger.trace("operandStacks: {}", operandStacks); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\t\t\t\t\t\tpublic void log(String msg, int level, Date date, StackTraceElement trace) {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}", "@Test\n\tpublic void test() {\n\t\tLoggerContext lc = (LoggerContext) LoggerFactory.getILoggerFactory();\n\t\t// print logback's internal status\n\t\tStatusPrinter.print(lc)...
[ "0.62424475", "0.61260915", "0.59819275", "0.59767854", "0.5934272", "0.5903281", "0.5857697", "0.58490366", "0.5847623", "0.57940304", "0.57810026", "0.57353824", "0.5688751", "0.5681709", "0.56761926", "0.5667554", "0.56630474", "0.5649819", "0.5625484", "0.56246597", "0.56...
0.6473855
0
read next instruction started by pc register
public Instruction readNextInstruction() { // method -> method's code byte[] bytecode = this.getJvmMethod().getCode(); int pc = this.getNextPc(); BytecodeReader bytecodeReader = new BytecodeReader(Arrays.copyOfRange(bytecode, pc, bytecode.length)); Instruction instruction = Instruction.readInstruction(bytecodeReader); logger.debug("read instruction: {}", instruction); // fetch operands (may fetch nothing) instruction.fetchOperands(bytecodeReader); return instruction; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Addr nextPC() {\n if (inDelaySlotQueue()) {\n // Next address\n return currentAddr.inc();\n }\n\n // If there is a jump scheduled, return it\n if (jump != null) {\n var jumpAddr = jump;\n jump = null;\n return jumpAddr;\n ...
[ "0.6857193", "0.6370143", "0.61840874", "0.6105245", "0.608593", "0.60413927", "0.60318094", "0.59252673", "0.5880416", "0.583751", "0.5821268", "0.5813944", "0.5747107", "0.5746315", "0.57294613", "0.57052225", "0.56616694", "0.5584947", "0.55542636", "0.55356455", "0.552512...
0.678699
1
TODO Autogenerated method stub
public static String highlightString(String input, ArrayList<HighlighterPattern> listOfKeywords) { String output=input; for (HighlighterPattern pattern : listOfKeywords) { String keyword = pattern.getKeyword(); String color = pattern.getColor(); String capitalization = pattern.getCapitalization(); String style = pattern.getStyle(); if (input.contains(keyword)) { if (capitalization.equals("capital")) { if (style.equals("normal")) { output=output.replaceAll(keyword,"["+color+"]"+keyword.toUpperCase()+"["+color+"]"); } else if (style.equals("bold")) { output=output.replaceAll(keyword, "["+color+"]"+"["+style+"]"+keyword.toUpperCase()+"["+style+"]"+"["+color+"]"); } } if (capitalization.equals("lower")) { if (style.equals("normal")) { output=output.replaceAll(keyword,"["+color+"]"+keyword+"["+color+"]" ); } else if (style.equals("bold")) { output=output.replaceAll(keyword, "["+color+"]"+"["+style+"]"+keyword+"["+style+"]"+"["+color+"]"); } } } } return output; }
{ "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
/ Test if spin stop after 20 seconds
@Test public void Stopped20SAfterSpin() { WheelObserver wheelObserver = mock(WheelObserver.class); RouletteWheel wheel = new RouletteWheel(wheelObserver); wheel.spin(20000); wheel.tick(20000); verify(wheelObserver).stopped(anyInt()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void stopSpinning()\n {\n scheduler.shutdown();\n startupLock.lock();\n spinning = false;\n }", "@Override\n public boolean isFinished() {\n return Robot.auton && counter > 50;\n }", "boolean isStop();", "boolean shouldStop();", "static void onSpinWait() {\n }", "void ro...
[ "0.6441382", "0.60025847", "0.59778637", "0.5976485", "0.5930581", "0.5928868", "0.5916601", "0.5902292", "0.5899414", "0.5895956", "0.5885489", "0.5877308", "0.5820713", "0.578367", "0.57834864", "0.57757324", "0.57594365", "0.57491726", "0.5748665", "0.57465476", "0.5744272...
0.62766385
1
/ Test if we have random ball location when wheel stopped
@Test public void RandomBallLocationStopped() { final boolean seenAll[] = new boolean[1]; seenAll[0] = false; WheelObserver wheelObserver = new WheelObserver() { Set<Integer> seen = new HashSet<Integer>(); public void stopped(final int location) { if (location < 0 || location > 36) throw new IllegalArgumentException(); seen.add(location); if (seen.size() == 37) seenAll[0] = true; } }; RouletteWheel wheel = new RouletteWheel(wheelObserver); for (int x = 0; x < 1000; x++) { wheel.spin(0); wheel.tick(20000); } assertTrue(seenAll[0]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void wentOffWall() {\n //random location\n b.numX = r.nextInt(2400) + 100;\n b.numY = r.nextInt(1400) + 100;\n //random speed\n b.xSpeed = this.newSpeed();\n b.ySpeed = this.newSpeed();\n }", "@Test\n public void SpecifyBallLocationOnceStopped() {\n ...
[ "0.712531", "0.69208884", "0.67802846", "0.6676706", "0.63510627", "0.6286359", "0.62824064", "0.6250518", "0.62497675", "0.6191308", "0.6190239", "0.61680645", "0.6107036", "0.6102692", "0.60464025", "0.60237074", "0.6012955", "0.59982485", "0.59779084", "0.59517634", "0.594...
0.7975876
0
/ Test specify ball location when wheel stopped
@Test public void SpecifyBallLocationStopped() { WheelObserver wheelObserver = mock(WheelObserver.class); RouletteWheel wheel = new RouletteWheel(wheelObserver); long spinFor20s = 20000; wheel.spin(spinFor20s); wheel.tick(20000); verify(wheelObserver, times(1)).stopped(anyInt()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void SpecifyBallLocationOnceStopped() {\n WheelObserver wheelObserver = mock(WheelObserver.class);\n RouletteWheel wheel = new RouletteWheel(wheelObserver);\n\n long spinFor20s = 20000;\n wheel.spin(spinFor20s);\n wheel.tick(20000);\n wheel.tick(20001);\n...
[ "0.7367656", "0.71099806", "0.6468796", "0.64120936", "0.6403132", "0.63028026", "0.62488997", "0.6240132", "0.62266845", "0.62260985", "0.6146184", "0.6137354", "0.6064184", "0.60434395", "0.6039352", "0.602083", "0.59839356", "0.5970724", "0.58923846", "0.5882616", "0.58802...
0.7269694
1
/ Test specify ball location once wheel stopped
@Test public void SpecifyBallLocationOnceStopped() { WheelObserver wheelObserver = mock(WheelObserver.class); RouletteWheel wheel = new RouletteWheel(wheelObserver); long spinFor20s = 20000; wheel.spin(spinFor20s); wheel.tick(20000); wheel.tick(20001); verify(wheelObserver, times(1)).stopped(anyInt()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void SpecifyBallLocationStopped() {\n WheelObserver wheelObserver = mock(WheelObserver.class);\n RouletteWheel wheel = new RouletteWheel(wheelObserver);\n\n\n long spinFor20s = 20000;\n wheel.spin(spinFor20s);\n wheel.tick(20000);\n\n verify(wheelObserver...
[ "0.73349446", "0.71999353", "0.6442843", "0.6394309", "0.6332781", "0.63323563", "0.6314354", "0.6287186", "0.62548625", "0.62393445", "0.6212729", "0.61869717", "0.6170592", "0.611617", "0.61081475", "0.60745883", "0.5974279", "0.5925235", "0.59195775", "0.5904968", "0.58777...
0.7482381
0
/ Test never notify stopped before spin end
@Test public void NotNotifyStoppedBeforeSpinEnd() { WheelObserver wheelObserver = mock(WheelObserver.class); RouletteWheel wheel = new RouletteWheel(wheelObserver); long spinFor20s = 20000; wheel.spin(spinFor20s); long timeEndMs = 10000; wheel.tick(timeEndMs); verify(wheelObserver, never() ).stopped(anyInt()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void notifyStop();", "public void notifyStop() {\n\t\tisRunning = false;\n\t}", "@Test\n public void Stopped20SAfterSpin() {\n WheelObserver wheelObserver = mock(WheelObserver.class);\n RouletteWheel wheel = new RouletteWheel(wheelObserver);\n\n wheel.spin(20000);\n wheel.tick(20...
[ "0.71351355", "0.6812706", "0.6637222", "0.64660937", "0.6418606", "0.6364557", "0.63178444", "0.6313808", "0.6301205", "0.6294299", "0.6293007", "0.62704265", "0.6235007", "0.623201", "0.6226116", "0.6224822", "0.62103117", "0.6173027", "0.6171236", "0.61654854", "0.61609876...
0.73929363
0
Read single camera configuration.
public static boolean readCameraConfig(JsonObject config) { CameraConfig cam = new CameraConfig(); // name JsonElement nameElement = config.get("name"); if (nameElement == null) { parseError("could not read camera name"); return false; } cam.name = nameElement.getAsString(); // path JsonElement pathElement = config.get("path"); if (pathElement == null) { parseError("camera '" + cam.name + "': could not read path"); return false; } cam.path = pathElement.getAsString(); // stream properties cam.streamConfig = config.get("stream"); cam.config = config; cameraConfigs.add(cam); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void getCamera() {\n if (camera == null) {\n try {\n camera = Camera.open();\n params = camera.getParameters();\n } catch (RuntimeException e) {\n\n }\n }\n }", "public StreamConfigurationMap getConfiguration(String cameraId)...
[ "0.5948373", "0.5931252", "0.5848615", "0.5801168", "0.57528013", "0.57170635", "0.57117796", "0.5645109", "0.5639492", "0.56303537", "0.5591733", "0.5484621", "0.5474355", "0.54145026", "0.54084074", "0.53254896", "0.5320301", "0.53151745", "0.5266476", "0.52572584", "0.5255...
0.69157314
0
Start running the camera.
public static VideoSource startCamera(CameraConfig config) { System.out.println("Starting camera '" + config.name + "' on " + config.path); CameraServer inst = CameraServer.getInstance(); UsbCamera camera = new UsbCamera(config.name, config.path); MjpegServer server = inst.startAutomaticCapture(camera); Gson gson = new GsonBuilder().create(); camera.setConfigJson(gson.toJson(config.config)); camera.setConnectionStrategy(VideoSource.ConnectionStrategy.kKeepOpen); if (config.streamConfig != null) { server.setConfigJson(gson.toJson(config.streamConfig)); } return camera; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void startCamera()\n {\n startCamera(null);\n }", "public void startCamera()\n \t{\n\t\t// start the video capture\n\t\t//this.capture.open(0);\n\t\tcapture.open(cameraNumber);\n\n\n\n\t\t// is the video stream available?\n\t\tif (capture.isOpened())\n\t\t{\n\t\t\t// grab a frame every 33 ms ...
[ "0.8374139", "0.8197158", "0.7537981", "0.74608034", "0.7426991", "0.7410537", "0.7400445", "0.7225585", "0.72207", "0.71855783", "0.71465284", "0.7103324", "0.7087019", "0.70842576", "0.7005107", "0.6929532", "0.6926884", "0.6911136", "0.6897466", "0.68431085", "0.6825886", ...
0.6152542
74
neu this.shoot thi this la actionFire
@Override public void run(GameObject master) { // master.position.addThis(+5,30); shoot(); this.isDone = true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\t\tpublic void shoot() {\n\t\t\t}", "private void shoot() {\n }", "private void shoot() {\n }", "@Override\n\tpublic void shoot() {\n\t\tthis.fired = true;\n\t\tghost.shot=true;\n\t}", "@Override\r\n\tpublic void actionFly() {\n\t\tSystem.out.println(\"날 수 있다.\");\r\n\t}", "public voi...
[ "0.77188265", "0.74751997", "0.74751997", "0.73360634", "0.6902626", "0.68384117", "0.67470765", "0.66546386", "0.66546386", "0.6530846", "0.6441343", "0.63915014", "0.63874555", "0.63829935", "0.6366156", "0.6358676", "0.632083", "0.6318718", "0.62610745", "0.62594223", "0.6...
0.0
-1
jhipsterneedleentityaddfield JHipster will add fields here, do not remove
public Long getId() { return id; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void addField(\n JavaSymbolName propertyName,\n JavaType propertyType,\n String columnName,\n String columnType,\n JavaType className,\n boolean id,\n boolean oneToOne, boolean oneToMany, boolean manyToOne, boolean manyToMany, String mapp...
[ "0.62933207", "0.59871024", "0.59345496", "0.5807264", "0.57005894", "0.56254286", "0.56229895", "0.56043065", "0.55907774", "0.55277437", "0.55270976", "0.5502147", "0.5449934", "0.5449778", "0.5448262", "0.5438682", "0.5421909", "0.539829", "0.5392975", "0.5386786", "0.5378...
0.0
-1
jhipsterneedleentityaddgetterssetters JHipster will add getters and setters here, do not remove
@Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } Proveedor proveedor = (Proveedor) o; if (proveedor.getId() == null || getId() == null) { return false; } return Objects.equals(getId(), proveedor.getId()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface CommonEntityMethod extends ToJson,GetFieldValue,SetFieldValue{\n}", "static void setPropertiesFromGetters(TableEntity entity, ClientLogger logger) {\n Class<?> myClass = entity.getClass();\n\n // Do nothing if the entity is actually a `TableEntity` rather than a subclass\n i...
[ "0.6329455", "0.610891", "0.5659298", "0.5650563", "0.55329704", "0.54645276", "0.5463555", "0.5449493", "0.54340285", "0.5415549", "0.5387973", "0.5379287", "0.5350966", "0.5341474", "0.5335219", "0.53296864", "0.53243345", "0.5322623", "0.5316597", "0.53026056", "0.5292526"...
0.0
-1
Called when the playbackInfo is clicked
public void onPlaybackInfoClicked(View view) { Intent playbackIntent = getIntent(this, PlaybackActivity.class); this.startActivity(playbackIntent); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void onClickPlayer() {\n carIcon.setOpacity(1);\n playerIcon.setOpacity(1);\n playerList.getSelectionModel().selectedItemProperty().addListener((observable, oldValue, newValue) -> {\n displayUserInfo(newValue);\n });\n MAIN_MENU_AUDIO.play(Double.parseDouble(get...
[ "0.7164249", "0.67283964", "0.67248476", "0.665864", "0.6584236", "0.6564062", "0.6461531", "0.63284373", "0.6323984", "0.63102025", "0.6251768", "0.6235545", "0.62229544", "0.62223595", "0.6220082", "0.62130314", "0.62130314", "0.61926955", "0.61805075", "0.61549324", "0.614...
0.77887446
0
Return the intent defined by the given parameters
private static Intent getIntent(Context context, Class<?> cls) { Intent intent = new Intent(context, cls); intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); return intent; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected abstract Intent getIntent();", "void mo21580A(Intent intent);", "com.google.cloud.dialogflow.cx.v3.Intent getIntent();", "public abstract String getIntentActionString();", "private Intent createIntent() {\n Intent intent = new Intent(this, GameOverActivity.class);\n intent.putExtra(...
[ "0.6911572", "0.6901973", "0.6774242", "0.6459281", "0.6124003", "0.60571915", "0.599265", "0.5951044", "0.5942992", "0.591451", "0.5902513", "0.58694714", "0.58619505", "0.5853964", "0.5809831", "0.5786968", "0.5754334", "0.57495", "0.57390827", "0.57053936", "0.569095", "...
0.0
-1
Sets the playback information
public void setPlaybackInfo(Track track) { RelativeLayout playbackInfoTop = (RelativeLayout) findViewById(R.id.playback_info_top); LinearLayout playbackInfoBottom = (LinearLayout) findViewById(R.id.playback_info_bottom); if (playbackInfoTop != null) playbackInfoTop.setClickable(false); if (playbackInfoBottom != null) playbackInfoBottom.setClickable(false); if (track != null) { ImageView playbackInfoAlbumArtTop = (ImageView) findViewById(R.id.playback_info_album_art_top); TextView playbackInfoArtistTop = (TextView) findViewById(R.id.playback_info_artist_top); TextView playbackInfoTitleTop = (TextView) findViewById(R.id.playback_info_title_top); ImageView playbackInfoAlbumArtBottom = (ImageView) findViewById(R.id.playback_info_album_art_bottom); TextView playbackInfoArtistBottom = (TextView) findViewById(R.id.playback_info_artist_bottom); TextView playbackInfoTitleBottom = (TextView) findViewById(R.id.playback_info_title_bottom); Bitmap albumArt = null; if (track.getAlbum() != null) albumArt = track.getAlbum().getAlbumArt(); if (playbackInfoAlbumArtTop != null && playbackInfoArtistTop != null && playbackInfoTitleTop != null) { if (albumArt != null) playbackInfoAlbumArtTop.setImageBitmap(albumArt); else playbackInfoAlbumArtTop.setImageDrawable(getResources().getDrawable( R.drawable.no_album_art_placeholder)); playbackInfoArtistTop.setText(track.getArtist().toString()); playbackInfoTitleTop.setText(track.getTitle()); playbackInfoTop.setClickable(true); } if (playbackInfoAlbumArtBottom != null && playbackInfoArtistBottom != null && playbackInfoTitleBottom != null) { if (albumArt != null) playbackInfoAlbumArtBottom.setImageBitmap(albumArt); else playbackInfoAlbumArtBottom.setImageDrawable(getResources().getDrawable( R.drawable.no_album_art_placeholder)); playbackInfoArtistBottom.setText(track.getArtist().toString()); playbackInfoTitleBottom.setText(track.getTitle()); playbackInfoBottom.setClickable(true); } } else return; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setPlayer(int sessionId) {\n try {\n mVisualizer = new Visualizer(sessionId);\n mVisualizer.setCaptureSize(Visualizer.getCaptureSizeRange()[1]);\n mVisualizer.setDataCaptureListener(new Visualizer.OnDataCaptureListener() {\n @Override\n ...
[ "0.6511152", "0.6481758", "0.6374141", "0.630986", "0.6302786", "0.63005143", "0.6218025", "0.62178177", "0.6145495", "0.61040694", "0.60471004", "0.6016511", "0.5983913", "0.59545976", "0.59531975", "0.5933981", "0.5916167", "0.5889748", "0.58888036", "0.5881364", "0.5873265...
0.6334539
3
Make the playback info panel invisible, if device is in landscapemode. Otherwise make it visible
public void refreshPlaybackInfoVisibility() { LinearLayout fakeSplitActionBar = (LinearLayout) findViewById(R.id.fake_split_action_bar); final ActionBar actionBar = getSupportActionBar(); if (fakeSplitActionBar != null) { if (getResources().getConfiguration().orientation == Configuration.ORIENTATION_LANDSCAPE) { fakeSplitActionBar.setVisibility(LinearLayout.GONE); actionBar.setDisplayShowCustomEnabled(true); } else { fakeSplitActionBar.setVisibility(LinearLayout.VISIBLE); actionBar.setDisplayShowCustomEnabled(false); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void showPlayerOptions() {\n playStartLinearLayout.setVisibility(View.INVISIBLE);\n timeInfoLinearLayout.setVisibility(View.INVISIBLE);\n gsOpenPlayImage.setVisibility(View.VISIBLE);\n\n\n }", "@Override\n public void makeHidden(Player viewer) {\n \n }", "@Override\...
[ "0.69970036", "0.6167073", "0.59675974", "0.59440106", "0.59232545", "0.58913577", "0.58913577", "0.5890227", "0.5876375", "0.58648163", "0.5860373", "0.5813681", "0.5810353", "0.5806614", "0.5800851", "0.5798625", "0.57790834", "0.5773535", "0.5750317", "0.5750317", "0.57440...
0.7268669
0
Returns this Activities current Collection.
public Collection getCollection() { return mCollection; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Activities activities() {\n return this.activities;\n }", "public java.lang.String getCollection() {\n return instance.getCollection();\n }", "public ArrayList<Activity> getActivities(){\r\n return activities;\r\n }", "private NotesCollection getCollection() {\n\t\t\n\t\tif (collection...
[ "0.7014879", "0.67560375", "0.67466986", "0.65419376", "0.636969", "0.6276034", "0.62376136", "0.6204818", "0.6200518", "0.61277246", "0.61040586", "0.6087185", "0.6035559", "0.60316604", "0.6013315", "0.5972689", "0.5911122", "0.58874965", "0.58718526", "0.58606005", "0.5818...
0.68427473
1
This mainly concerns "hacking" the hyperstructure to be exportable to the MDLV2000 format Thus, giving atoms dummy symbols and bonds dummy orders, is how this works.
public static void configureBondOrders( IQueryAtomContainer qac ) { for( IBond b : qac.bonds() ) { if( b.getOrder() == null || b.getOrder() == Order.UNSET ) { b.setOrder( Order.SINGLE ); } } for( IAtom a : qac.atoms() ) { if( a.getSymbol() == null ) { a.setSymbol( "Si" ); } } /* // remove hydrogens as they cause errors in CDK 1.5.2 upon subgraph matching * No longer needed, using CDK 1.5.4 for( IAtom at : qac.atoms() ) { if( at.getSymbol() != null && at.getSymbol().equals("H") ) { qac = new QueryAtomContainer( AtomContainerManipulator.removeHydrogens( qac ), qac.getBuilder() ); break; } } */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void buildSymbolTables() {\n new SymbolsTableBuilder(data).read(this);//.dump();\n }", "private void createHammed()\n\t{\n\t\tint j=0;\n\t\tboolean skip = false;\n\t\t\n\t\t\n\t\tfor (int i=0;i<binaryCode.length; i++)\n\t\t{\t\n\t\t\t//checks to see if the bit is a parity bit\n\t\t\tfor (int k=0; k<P...
[ "0.53726715", "0.5287759", "0.5137865", "0.51366043", "0.5096067", "0.50504035", "0.50345606", "0.49963197", "0.4991688", "0.49613732", "0.49313593", "0.49256626", "0.491102", "0.4907767", "0.48910886", "0.48904008", "0.4881302", "0.48731208", "0.48705813", "0.48517463", "0.4...
0.47484094
30
If both bonds are in a ring (SMARTS and normal definitions), then the bond is made ringonly. If one is in a ring and the other isn't, the bond is made standard. If both bonds are not in a ring (chain bonds), then it's made chain only. Bond order is still kept into account in this. So is aromaticity, at least as far as rings are concerned (not chains)
private IQueryBond createSMARTSRingChainBond( IAtom translated1, IAtom translated2, IBond hsBond, IBond origBond ) { IQueryBond newBond = null; Boolean bothRings = null; // true = both in rings, false = both in chains, null = exclusive-OR if( hsBond != null && !( hsBond instanceof SmartsBondExpression) ) // if something's been marked as non-topology specific, ignore that bond bothRings = null; if( hsBond != null && ConvenienceTools.isRingBond( origBond ) && ConvenienceTools.isRingBond( hsBond ) ) { // both are in rings bothRings = true; } else if( hsBond != null && ! ConvenienceTools.isRingBond( origBond ) && ! ConvenienceTools.isRingBond( hsBond ) ) { bothRings = false; } else if( hsBond == null ) { // assume that origBond is never null bothRings = ConvenienceTools.isRingBond( origBond ); } //boolean isAromatic = ConvenienceTools.isAromatic(origBond) || ConvenienceTools.isAromatic(translated1) || ConvenienceTools.isAromatic(translated2); Boolean bothAromatic = null; // true = both aromatic, false = both non-aromatic, null = make new bond map both single & aromatic if( hsBond != null && ConvenienceTools.isAromatic( origBond ) && ConvenienceTools.isAromatic( hsBond ) ) { bothAromatic = true; } else if( hsBond != null && ! ConvenienceTools.isAromatic( origBond ) && ! ConvenienceTools.isAromatic( hsBond ) ) { bothAromatic = false; } else if( hsBond == null && ConvenienceTools.isAromatic( origBond ) ) { // non-existent hsBond - default to properties of other bond bothAromatic = true; } else if( ConvenienceTools.isAromatic( translated1 ) && ConvenienceTools.isAromatic( translated2 ) && ConvenienceTools.isAromatic( origBond ) ) { bothAromatic = true; } else if( ! ConvenienceTools.isAromatic( translated1 ) && ! ConvenienceTools.isAromatic( translated2 ) && ! ConvenienceTools.isAromatic( origBond ) ) { bothAromatic = false; } Order order = origBond.getOrder(); if( hsBond != null && hsBond.getOrder() != origBond.getOrder() ) order = null; /*if( bothAromatic != null && bothAromatic == true ) { newBond = new AromaticQueryBond( translated1.getBuilder() ); newBond.setAtom(translated1, 0); newBond.setAtom(translated2, 1); newBond.setOrder( Order.SINGLE ); } else*/ if( bothRings == null ) { if( bothAromatic == null ) { newBond = new SingleOrAromaticBond( translated1.getBuilder() ); newBond.setAtom(translated1, 0); newBond.setAtom(translated2, 1); newBond.setOrder( Order.SINGLE ); } else if( bothAromatic == true ) { newBond = new AromaticQueryBond( translated1.getBuilder() ); newBond.setAtom(translated1, 0); newBond.setAtom(translated2, 1); newBond.setOrder( Order.SINGLE ); } else { if( order != null ) newBond = new OrderQueryBond( (IQueryAtom) translated1, (IQueryAtom) translated2, order, hs.getBuilder() ); else newBond = new AnyOrderQueryBond( (IQueryAtom) translated1, (IQueryAtom) translated2, Order.SINGLE, hs.getBuilder() ); } //newBond.setFlag(CDKConstants.ISINRING, true); } else { System.err.println("RING1 " + origBond + " " + hsBond ); SmartsBondExpression sBond = new SmartsBondExpression( DefaultChemObjectBuilder.getInstance() ); sBond.setAtom(translated1, 0); sBond.setAtom(translated2, 1); sBond.setFlag(CDKConstants.ISINRING, true); if( bothRings == false ) { sBond.tokens.add( SmartsConst.LO + SmartsConst.LO_NOT ); sBond.setFlag(CDKConstants.ISINRING, false); //sBond.setProperty(topologyType, "c"); } else if (bothRings == true) { //sBond.tokens.add( SmartsConst.BT_AROMATIC ); //sBond.setFlag(CDKConstants.ISAROMATIC, true); //sBond.setProperty(topologyType, "r"); } sBond.tokens.add( SmartsConst.BT_RING ); if( bothAromatic != null && bothAromatic == true ) { sBond.tokens.add( SmartsConst.BT_AROMATIC ); sBond.setFlag(CDKConstants.ISAROMATIC, true); sBond.setOrder( Order.SINGLE ); } else if( order != null ) { sBond.tokens.add( SmartsConst.LO + SmartsConst.LO_ANDLO ); if( order == Order.SINGLE ) sBond.tokens.add( SmartsConst.BT_SINGLE ); if( order == Order.DOUBLE ) sBond.tokens.add( SmartsConst.BT_DOUBLE ); if( order == Order.TRIPLE ) sBond.tokens.add( SmartsConst.BT_TRIPLE ); sBond.setOrder( order ); } if( bothAromatic == null ) { //if( order == null ) sBond.tokens.add( SmartsConst.LO + SmartsConst.LO_OR ); //else //sBond.tokens.add( SmartsConst.LO + SmartsConst.LO_ANDLO ); sBond.tokens.add( SmartsConst.BT_AROMATIC ); sBond.setFlag(CDKConstants.ISAROMATIC, true); } newBond = sBond; } return newBond; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testAnOtherRingSystem() throws CDKException {\n \tIAtomContainer mol = sp.parseSmiles(\"o2c1ccccc1c3c2cccc3\");\n \tatasc.decideBondOrder(mol, true);\n \tAssert.assertEquals(mol.getAtom(1).getHybridization(),\n \t\t\tIAtomType.Hybridization.SP2);\n \tint doubleBondCount = 0;\n...
[ "0.57868516", "0.5760927", "0.57555634", "0.56618404", "0.55611175", "0.53267115", "0.53162277", "0.52490944", "0.51969415", "0.5154905", "0.48456767", "0.47888944", "0.47431466", "0.47308445", "0.470763", "0.46787053", "0.46602565", "0.46410915", "0.4604015", "0.4568036", "0...
0.68122095
0
Creates a new bond in the hyperstructure. Generally used when a bond doesn't exist in the MCS
private IQueryBond createHSBond( IAtom translated1, IAtom translated2, IBond origBond, IBond hsBond ) { IQueryBond hsqBond = (IQueryBond) hsBond; // likely to be null IQueryBond newBond = null; boolean matches = true; String bondTopologyType = defineBondTopology(hsBond, origBond); if( hsBond != null ) { if( hsqBond.getProperty( origBondType ) != null ) hsBond = hsqBond.getProperty( origBondType ); if( hsBond instanceof IQueryBond ) { hsqBond = (IQueryBond) hsBond; matches = hsqBond.matches(origBond); System.err.println("BLARG " + hsBond.getAtom(0).getSymbol() + hsBond.getAtom(1).getSymbol() + hsBond.getOrder() + " " + origBond.getOrder() + matches + " " + hsBond + " " + origBond ); } else { matches = (hsBond.getOrder() == origBond.getOrder()) ; System.err.println("HECK " + matches + " " + hsBond ); } } //System.err.println("BLA2RG " + matches + " " + hsBond ); if( ringEnforcement ) { newBond = createSMARTSRingChainBond( translated1, translated2, hsBond, origBond ); } else { if( ConvenienceTools.isAromatic( translated1 ) && ConvenienceTools.isAromatic( translated2 ) && ConvenienceTools.isAromatic( origBond ) ) { newBond = new AromaticQueryBond( (IQueryAtom) translated1, (IQueryAtom) translated2, origBond.getOrder(), hs.getBuilder() ); /*} else if( ConvenienceTools.isAromatic( translated1 ) || ConvenienceTools.isAromatic( translated2 ) ) { //newBond = new AromaticOrSingleQueryBond( (IQueryAtom) translated1, (IQueryAtom) translated2, origBond.getOrder(), hs.getBuilder() ); newBond = new SingleOrAromaticBond(hs.getBuilder() ); newBond.setAtom(translated1, 0); newBond.setAtom(translated2, 1); newBond.setOrder(origBond.getOrder() );*/ } else { if( matches ) { //newBond = new AnyOrderQueryBond( (IQueryAtom) translated1, (IQueryAtom) translated2, origBond.getOrder(), hs.getBuilder() ); if( ! (origBond instanceof IQueryBond) ) { /*if ( translated1 instanceof AtomicNumberAtom || translated2 instanceof AtomicNumberAtom ) { newBond = new AnyOrderQueryBond( (IQueryAtom) translated1, (IQueryAtom) translated2, origBond.getOrder(), hs.getBuilder() ); } else*/ if( ConvenienceTools.isAromatic(translated1) && ConvenienceTools.isAromatic(translated2) && ConvenienceTools.isAromatic( origBond ) ) { newBond = new AromaticQueryBond( hs.getBuilder() ); newBond.setAtom(translated1, 0); newBond.setAtom(translated2, 1); newBond.setOrder( Order.SINGLE ); // Allow aromatic bonds to map in cases where only one atom in the bond is aromatic } else { System.err.println("ORDER1 " + matches + " " + origBond + " | " + hsBond ); //newBond = new AnyOrderQueryBond( (IQueryAtom) translated1, (IQueryAtom) translated2, origBond.getOrder(), hs.getBuilder() ); boolean aromaticRing = ConvenienceTools.isAromatic(origBond) || ConvenienceTools.isAromatic(translated1) || ConvenienceTools.isAromatic(translated2); if( aromaticRing ) { newBond = new SingleOrAromaticBond( translated1.getBuilder() ); newBond.setOrder( Order.SINGLE ); } else { newBond = new OrderQueryBond( (IQueryAtom) translated1, (IQueryAtom) translated2, origBond.getOrder(), origBond.getBuilder() ); } newBond.setAtom(translated1, 0); newBond.setAtom(translated2, 1); } /* else if( ConvenienceTools.isAromatic(translated1) ^ ConvenienceTools.isAromatic(translated2) ) { // if both are ring-enforced bonds, make sure the new bond is also ring-enforced - @&-,: if( bothRings ) { System.err.println("RING1 " + matches + " " + hsBond ); newBond = createSMARTSRingChainBond(translated1, translated2, true, true, Order.SINGLE); } else if( chainOnly ) { System.err.println("CHAIN1 " + matches + " " + hsBond ); newBond = createSMARTSRingChainBond(translated1, translated2, false, true, Order.SINGLE); } else { newBond = new SingleOrAromaticBond( hs.getBuilder() ); } newBond.setAtom(translated1, 0); newBond.setAtom(translated2, 1); newBond.setOrder( Order.SINGLE ); } else { // if both are in rings, change to generic ring bond if( bothRings ) { System.err.println("RING2 " + matches + " " + hsBond ); /* newBond.setAtom(translated1, 0); newBond.setAtom(translated2, 1); newBond.setOrder( Order.SINGLE ); */ /* newBond = createSMARTSRingChainBond(translated1, translated2, true, false, Order.SINGLE); } else if( chainOnly ) { System.err.println("CHAIN1 " + matches + " " + hsBond ); newBond = createSMARTSRingChainBond(translated1, translated2, false, false, Order.SINGLE); } else { newBond = new AnyOrderQueryBond( (IQueryAtom) translated1, (IQueryAtom) translated2, origBond.getOrder(), hs.getBuilder() ); } }*/ } else { // clone the original Query Bond, though unlikely unless SMARTS queries are being mapped to the hyperstructure try { newBond = (IQueryBond) origBond.clone(); newBond.setAtom(translated1, 0); newBond.setAtom(translated2, 1); //System.err.println("Blech"); } catch (CloneNotSupportedException e) { // TODO Auto-generated catch block e.printStackTrace(); } } } else { System.err.println("MATCHES NOT"); if( hsBond instanceof AromaticQueryBond && origBond.getOrder() == Order.SINGLE && ! ConvenienceTools.isAromatic( origBond ) ) { System.out.println("asoidjsao"); newBond = new SingleOrAromaticBond( DefaultChemObjectBuilder.getInstance() ); newBond.setAtom(translated1, 0); newBond.setAtom(translated2, 1); newBond.setOrder( Order.SINGLE ); } else { newBond = new AnyOrderQueryBond( (IQueryAtom) translated1, (IQueryAtom) translated2, origBond.getOrder(), hs.getBuilder() ); } } } } if( bondFrequencies ) { setBondFrequencyAttributes(hsBond, newBond, false); newBond.setProperty( topologyType, bondTopologyType ); } return newBond; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void bond(Bond bond) {\n this.bond = bond; \n }", "public Bond() {\n this(null, null, null, CDKConstants.STEREO_BOND_NONE);\n }", "public static native int OpenMM_AmoebaBondForce_addBond(PointerByReference target, int particle1, int particle2, double length, double quadraticK);", "pub...
[ "0.6702663", "0.6128939", "0.57677245", "0.5742196", "0.53645873", "0.53316903", "0.52643144", "0.52622783", "0.52482146", "0.5188172", "0.51773775", "0.51762676", "0.51347244", "0.50806904", "0.50659436", "0.5047053", "0.5034863", "0.50342673", "0.5033825", "0.49976102", "0....
0.5636158
4
Update bond origin information (and frequency information) for a hyperstructure
private void setBondFrequencyAttributes( IBond hsBond, IBond newBond, boolean increment ) { if( hsBond != null /*&& hsBond.getProperty(bondFrequencyType) != null*/ ) { if( increment ) { int freq = (Integer) hsBond.getProperty(bondFrequencyType); newBond.setProperty(bondFrequencyType, freq + 1 ); hsBond.setProperty(bondFrequencyType, freq + 1 ); } else { newBond.setProperty(bondFrequencyType, (Integer) hsBond.getProperty(bondFrequencyType) ); } } else { newBond.setProperty(bondFrequencyType, 1 ); //System.err.println("HSB null freq"); } //newBond.setProperty( topologyType, bondTopologyType ); if( queryMolId > 0 ) { List<Integer> molOrigins = null; if( hsBond != null && hsBond.getProperty(bondMolOriginType) != null ) { molOrigins = (List<Integer>) hsBond.getProperty(bondMolOriginType); if( increment ) molOrigins.add( queryMolId ); //System.out.println("molOrigins - " + molOrigins); } else { molOrigins = new ArrayList<Integer>(10); molOrigins.add( queryMolId ); } newBond.setProperty(bondMolOriginType, molOrigins); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract void updateStructure();", "void bond(Bond bond) {\n this.bond = bond; \n }", "public void attachStructure(CrosswordStructure structure);", "@Override\n public final void updateOrigin() {\n }", "public void update()\n {\n tick++;\n if (this.part != null)\n ...
[ "0.5640273", "0.5371883", "0.53204954", "0.50554734", "0.5054403", "0.49163374", "0.48883006", "0.4868693", "0.48159754", "0.4778463", "0.47709763", "0.4768476", "0.47675282", "0.47021586", "0.46975878", "0.46935394", "0.46810663", "0.46705362", "0.46600854", "0.46255866", "0...
0.58680594
0
Finds out bonds in current mapping that have been mapped Append any bonds that are not in the mapping to the hyperstructure. For all bonds in the query, if the bond is not in the mapping then add it to the hyperstructure. To find a bond in the hyperstructure from the query, get the 2 atoms from the bond, put into the atom map, then see if there's a bond between the 2 translated atoms in the hyperstructure. If bond not found: both atoms exist but there's no bond add a bond both atoms exist but with a different bond add degenerate bond type one of the atoms doesn't exist add the "null" atom to the hyperstructure and connect with a bond. Add the new atom as a corresponding pair to the supplied "mapping" argument both atoms don't exist add them to the hyperstructure & connect them, adding both atoms to the mapping argument. In the case of adding to the mapping argument, this means that any unused atoms we look through later on can be reconnected.
public IQueryAtomContainer createHyperstructure( Map<IAtom, IAtom> mapping ) { /* * Construct a hash which translates the "old" index from the chromosome to the newly assigned * index in the hyperstructure, for an unmapped atom that's been added to the hyperstructure */ Map<IBond, IBond> mappedBonds = ConvenienceTools.makeBondMapOfAtomMap(queryMol, hs, mapping, false); // bad practice, not the same as the actual bond mapping return createHyperstructure( mapping, mappedBonds ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static Map<Integer,Integer> mapAtomsOfAlignedStructures(IAtomContainer firstAtomContainer, \n IAtomContainer secondAtomContainer, Map<Integer,Integer> mappedAtoms) throws CDKException {\n //logger.debug(\"**** GT MAP ATOMS ****\");\n //Map atoms onto each other\n if (firstAto...
[ "0.49239206", "0.48988202", "0.48134562", "0.47994092", "0.4760023", "0.47091302", "0.4674002", "0.4631995", "0.45576894", "0.45310715", "0.45108035", "0.45006087", "0.4477764", "0.44743603", "0.44662791", "0.44609112", "0.445688", "0.44436723", "0.44397843", "0.44342744", "0...
0.60769045
0
Returns a sample radiologist VistA user.
public static VistaPerson radiologistPerson() { return new VistaPerson("500", "11716", "RADIOLOGIST,ONE", Optional.of("Physicians (M.D. and D.O.)")); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getUser();", "String getUser();", "String getUser();", "public static User getRandomDeveloperUser() {\n String name =\n userNames[RandomNumberGenerator.getRandomInt(0, userNames.length - 1)]\n + RandomNumberGenerator.getRandomInt(0, 10000);\n long oidcId = name.hashCo...
[ "0.59909743", "0.59776926", "0.59776926", "0.5768648", "0.57480574", "0.5738044", "0.5736349", "0.5707474", "0.5707474", "0.57026726", "0.5693659", "0.5688723", "0.5648119", "0.55795604", "0.5574028", "0.55611664", "0.5560845", "0.5558551", "0.5558551", "0.55208135", "0.55098...
0.0
-1
Returns a sample patient with minimal attributes populated.
public static Patient dummyPatient(final int dfn) { return new Patient(dfn, "Zach Smith", Gender.Male, 40); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private MolecularSample createTestSample() {\n testMolecularSample = new MolecularSample();\n testMolecularSample.setName(TEST_MOLECULAR_SAMPLE_NAME_CREATE);\n testMolecularSample.setMaterialSample(TEST_MATERIAL_SAMPLE_UUID);\n testMolecularSample.setSampleType(TEST_MOLECULAR_SAMPLE_SAMPLE_TYPE);\n ...
[ "0.6411895", "0.6161775", "0.584228", "0.57780397", "0.575946", "0.56910765", "0.56640536", "0.5649482", "0.5627053", "0.5616773", "0.5568839", "0.5535615", "0.5514804", "0.55141485", "0.550194", "0.5499667", "0.54699266", "0.545253", "0.5448629", "0.5437559", "0.54216504", ...
0.5677495
6
Returns a sample patient with vitals (height, weight, bmi) populated.
public static Patient dummyPatientWithVitals(final int dfn) { final Patient patient = dummyPatient(dfn); final DateTime vitalsMeasureDate = new DateTime(2014, 5, 12, 13, 21); patient.setBmi(new RetrievedValue(20.0, vitalsMeasureDate.toDate(), "")); patient.setHeight(new RetrievedValue(100.0, vitalsMeasureDate.toDate(), "in")); patient.setWeight(new RetrievedValue(190.0, vitalsMeasureDate.toDate(), "lbs.")); patient.setWeight6MonthsAgo(new RetrievedValue( 180.0, vitalsMeasureDate.minusMonths(4).toDate(), "lbs.")); return patient; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "org.hl7.fhir.SampledData getValueSampledData();", "@Override\n public double calculateBMI(Patient patient) {\n double height = patient.getHeight()*0.01;\n double bmi = patient.getWeight() /(height*height);\n return bmi;\n }", "private Citation getSampleCitation() {\n Citation ...
[ "0.5883795", "0.57166976", "0.56248385", "0.54890037", "0.53265345", "0.53257674", "0.53213996", "0.53207886", "0.52738035", "0.5270786", "0.52372295", "0.5224469", "0.5209603", "0.51167053", "0.50763124", "0.50756335", "0.506495", "0.5053669", "0.5048705", "0.5029236", "0.50...
0.61854917
0
Returns a collection of variable values for a thoracic calculation.
public static ImmutableMap<AbstractVariable, Value> thoracicValues() { final BooleanVariable dnrVar = SampleModels.dnrVariable(); final NumericalVariable ageVar = SampleModels.ageVariable(); final MultiSelectVariable fsVar = SampleModels.functionalStatusVariable(); final ProcedureVariable procVar = SampleModels.procedureVariable(); try { return ImmutableMap.of( dnrVar, new BooleanValue(dnrVar, false), ageVar, new NumericalValue(ageVar, 45.0f), fsVar, new MultiSelectValue(fsVar, new MultiSelectOption("Independent")), procVar, new ProcedureValue(procVar, SampleModels.repairLeftProcedure())); } catch (final InvalidValueException ex) { throw new RuntimeException("test data had an invalid value", ex); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Iterable<Map.Entry<String,Double>> getVariables() {\r\n return Collections.unmodifiableMap(variables).entrySet();\r\n }", "List<IVariableDef> getVariables();", "public List allVariables() {\r\n\t\tArrayList vars = new ArrayList();\r\n\t\tfor (int i = 0; i < elements.size(); ++i) {\r\n\t\t\tObject ...
[ "0.6710768", "0.600843", "0.60071635", "0.59145105", "0.58027446", "0.57578635", "0.57340944", "0.5730106", "0.5727052", "0.5633595", "0.5632331", "0.55187607", "0.5501834", "0.54937124", "0.5489734", "0.5485584", "0.5478449", "0.5468876", "0.5466938", "0.54465836", "0.544071...
0.60167235
1
Create a new calculation for a dummy patient, set the specialty, and then perform the calculation using the a custom set of values.
public static CalculationResult thoracicResult() { final Calculation calc = Calculation.forPatient(dummyPatient(1)); calc.setSpecialty(SampleModels.thoracicSpecialty()); try { return calc.calculate(thoracicValues().values(), radiologistPerson()); } catch (final MissingValuesException ex) { throw new RuntimeException("test data did not provide all values", ex); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract double calcular();", "public abstract double calculateTax();", "public void calculateCommission(){\r\n commission = (sales) * 0.15;\r\n //A sales Person makes 15% commission on sales\r\n }", "Calcul createCalcul();", "protected abstract Object doCalculations();"...
[ "0.54418385", "0.5220795", "0.51517135", "0.5111757", "0.5110795", "0.50471544", "0.5001578", "0.49347654", "0.48908466", "0.48907274", "0.4845575", "0.4839436", "0.4834963", "0.48332337", "0.4832556", "0.4827975", "0.48266503", "0.4824791", "0.48238665", "0.48205635", "0.481...
0.4516253
68
Complete the missingNumbers function below.
static int[] missingNumbers(int[] arr, int[] brr) { Map<Integer, Integer> map=new HashMap(); int size = brr.length; for(int i=0;i<size;i++) { if(map.containsKey(brr[i])) { map.put(brr[i],map.get(brr[i])+1); //System.out.println(brr[i] + " " + map.get(brr[i])); } else { map.put(brr[i],1); //System.out.println(brr[i] + " " + map.get(brr[i])); } } int arrSize = arr.length; for(int i=0;i<arrSize;i++) { map.put(arr[i],map.get(arr[i])-1); } Set<Integer> set = new HashSet<Integer>(); for(int i=0;i<size;i++) { //System.out.println(brr[i] + " " + map.get(brr[i])); if(map.get(brr[i])>0) { set.add(brr[i]); } } List<Integer> sortedList = new ArrayList<>(set); Collections.sort(sortedList); int[] sortedArr = new int[set.size()]; for(int i=0;i<sortedList.size();i++) { sortedArr[i] = sortedList.get(i); } return sortedArr; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static int getMissingNumber(int[] numbers, int totalCount) {\n int expectedSum = totalCount * ((totalCount + 1) / 2);\n int actualSum = 0;\n for (int i : numbers) {\n actualSum += i;\n }\n return expectedSum - actualSum;\n }", "private static void printMis...
[ "0.69105375", "0.67965984", "0.676443", "0.6697023", "0.6638462", "0.6634013", "0.658047", "0.65382475", "0.650519", "0.64129835", "0.6402166", "0.6318609", "0.6304551", "0.6286676", "0.62785256", "0.6276727", "0.62342894", "0.6179456", "0.6166905", "0.6146273", "0.6118461", ...
0.5659978
37
checks email and password
public static String longChecker(String email, String password) { if (!emailCheck(email)) { return "E-mail wrong format"; } if (password.length() < 6) { return "Password too short"; } if (password.length() > 128) { return "Password too long"; } else { return "no_error"; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic boolean authisValid(String email, String password) {\n\t\treturn false;\n\t}", "public boolean CheckLogin(String email, String password){\n\n boolean status = false;\n if(this.email.equalsIgnoreCase(email) && this.password.equals(password)){\n status = true;\n ...
[ "0.74564224", "0.7419499", "0.72474635", "0.7225224", "0.7165763", "0.7150488", "0.71333784", "0.7078669", "0.7063118", "0.70479494", "0.70087177", "0.6982168", "0.69339967", "0.68919265", "0.68808275", "0.6859721", "0.6853962", "0.681995", "0.6785783", "0.67808944", "0.67545...
0.0
-1
The maximum number of streams that we store priority information for
public Http2PriorityTree() { this.rootNode = new Http2PriorityNode(0, 0); nodesByID.put(0, this.rootNode); this.evictionQueue = new int[10]; //todo: make this size customisable }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getNumStreams() {\n return numStreams;\n }", "public int getNumStreams()\r\n {\r\n return this.numStreams;\r\n }", "int getMaxCount();", "int getMaxCount();", "public int getMaxCount() {\n return maxCount_;\n }", "private int getMaxReconsumeTimes() {\n if ...
[ "0.6598126", "0.6581548", "0.6458129", "0.6458129", "0.64471734", "0.6408209", "0.6316748", "0.6294144", "0.6291252", "0.6279059", "0.62479484", "0.62433964", "0.6203316", "0.6189783", "0.6163033", "0.61540157", "0.6146478", "0.6143229", "0.6134546", "0.61034906", "0.60949975...
0.0
-1
Resisters a stream, with its dependency and dependent information
public void registerStream(int streamId, int dependency, int weighting, boolean exclusive) { final Http2PriorityNode node = new Http2PriorityNode(streamId, weighting); if(exclusive) { Http2PriorityNode existing = nodesByID.get(dependency); if(existing != null) { existing.exclusive(node); } } else { Http2PriorityNode existing = nodesByID.get(dependency); if(existing != null) { existing.addDependent(node); } } nodesByID.put(streamId, node); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void removeStreamManager(String name);", "public void streamSubscriberClose(ISubscriberStream stream);", "public void closeStream() {\n output.close();\n input.close();\n }", "protected void closeStream ()\n {\n stream.close ();\n }", "private void doRelease(Stream stream, bool...
[ "0.58557385", "0.57895106", "0.578877", "0.5786866", "0.5616186", "0.5538953", "0.54564434", "0.54066896", "0.53765434", "0.53507715", "0.5349179", "0.5327608", "0.5267683", "0.5236218", "0.5190972", "0.5177242", "0.51593196", "0.514049", "0.512126", "0.5115117", "0.509884", ...
0.0
-1
Method that is invoked when a stream has been removed
public void streamRemoved(int streamId) { Http2PriorityNode node = nodesByID.get(streamId); if(node == null) { return; } if(!node.hasDependents()) { //add to eviction queue int toEvict = evictionQueue[evictionQueuePosition]; evictionQueue[evictionQueuePosition++] = streamId; Http2PriorityNode nodeToEvict = nodesByID.get(toEvict); //we don't remove the node if it has since got dependents since it was put into the queue //as this is the whole reason we maintain the queue in the first place if(nodeToEvict != null && !nodeToEvict.hasDependents()) { nodesByID.remove(toEvict); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void removeListener(StreamListener listener) {\n streamListeners.remove(listener);\n }", "public boolean remove (RandomStream stream) {\n return streams.remove (stream);\n }", "private synchronized void removeStreams() {\n Iterator<Map.Entry<Query, Long>> it = shed...
[ "0.6741331", "0.6741229", "0.66288096", "0.6399487", "0.63570106", "0.63559055", "0.6124196", "0.6045088", "0.60290706", "0.59986174", "0.5984584", "0.5934795", "0.5910281", "0.5888026", "0.58112884", "0.5804547", "0.58010507", "0.57776886", "0.5765225", "0.5760941", "0.57609...
0.6358303
4
Creates a priority queue
public Comparator<Integer> comparator() { return new Comparator<Integer>() { @Override public int compare(Integer o1, Integer o2) { Http2PriorityNode n1 = nodesByID.get(o1); Http2PriorityNode n2 = nodesByID.get(o2); if(n1 == null && n2 == null) { return 0; } if(n1 == null) { return -1; } if(n2 == null) { return 1; } //do the comparison //this is kinda crap, but I can't really think of any better way to handle this double d1 = createWeightingProportion(n1); double d2 = createWeightingProportion(n2); return Double.compare(d1, d2); } }; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public MyQueue() {\n queue = new PriorityQueue<>();\n }", "private PQHeap makeQueue(){\n \tPQHeap queue = new PQHeap(frequency.length);\n \tfor (int i = 0; i < frequency.length; i++) {\n \t\tqueue.insert(new Element(frequency[i], new HuffmanTempTree(i)));\n \t}\n ...
[ "0.77558047", "0.73686117", "0.73092765", "0.7210868", "0.7125462", "0.7054632", "0.69179296", "0.68827957", "0.68458253", "0.6790757", "0.67204374", "0.67012024", "0.66999745", "0.66938114", "0.6689479", "0.6658183", "0.66422254", "0.66387075", "0.66332513", "0.6591734", "0....
0.0
-1
Start Constructor Start New Game Constructor
public Game() { generatePort(); status = Status.ATTENTE; generateGameID(); name = "GameG4B"; players = new ArrayList<>(); maxRealPlayer = 0; maxVirtualPlayer = 0; realPlayerNb = 0; virtualPlayerNb = 0; rounds = new ArrayList<>(); currentRound = 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public GameStart() {\n\t\tsuper(\"First 2D Game\");\n\t}", "private void startGame() {\n\t\tmain.next_module = new Game(main, inputs, gameSelectionData);\n\t}", "public MiniGame() {\n\n\t}", "public Game() {}", "public playGame()\n {\n // initialise instance variables\n //no constructor\n ...
[ "0.749403", "0.7490696", "0.74897677", "0.74713707", "0.7448373", "0.74166614", "0.73995525", "0.7378532", "0.73310226", "0.7310561", "0.7279944", "0.7256075", "0.7229401", "0.72107387", "0.71988696", "0.7194202", "0.7170222", "0.7138496", "0.7068723", "0.7051712", "0.7051712...
0.0
-1
End New Game Constructor Start Restart Game Constructor
public Game(int port, String name, List<Player> players, int maxRealPlayer, int maxVirtualPlayer, int realPlayerNb, int virtualPlayerNb) { this.port = port; status = Status.ATTENTE; generateGameID(); this.name = name; this.players = players; this.maxRealPlayer = maxRealPlayer; this.maxVirtualPlayer = maxVirtualPlayer; this.realPlayerNb = realPlayerNb; this.virtualPlayerNb = virtualPlayerNb; rounds = new ArrayList<>(); currentRound = 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void RestartGame()\n {\n \n }", "public static void end() {\n\t\tif(firstTime)\r\n\t\t\tfirstTime=false;\r\n\t\tif (over) {\r\n\t\t\treset();\r\n\t\t\tover = false;\r\n\t\t}\r\n\t\tGUI.panel.changeGame();\r\n\t}", "public void finishGame(){\r\n\t\t\t\tgameStarted = false;\r\n\t\t\t}", "pu...
[ "0.7569531", "0.7250054", "0.7245173", "0.7226178", "0.71145904", "0.7029338", "0.6921156", "0.687967", "0.68480605", "0.6791868", "0.67667794", "0.6687909", "0.667659", "0.66705483", "0.6658775", "0.66338634", "0.6626903", "0.65763384", "0.6571791", "0.6555393", "0.6553292",...
0.0
-1
End Round Attributes End Attributes Start Methods Start Getter & Setter Start Getter
public int getPort() { return port; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Attributes getAttributes()\r\n\t{\r\n\t return attributes;\r\n\t}", "public int getLength(){ // getter method\n return length; // return the value of the class attribute radius\n }", "protected abstract Set method_1559();", "@Override\npublic void setAttributes() {\n\t\n}", "public Att...
[ "0.61539185", "0.5908756", "0.5869436", "0.586836", "0.58681494", "0.58299124", "0.5779928", "0.57287264", "0.57245016", "0.57191", "0.57032156", "0.56979644", "0.56875914", "0.56565076", "0.5648693", "0.5641536", "0.56266695", "0.56124437", "0.5601262", "0.55959284", "0.5594...
0.0
-1
End Getter Start Setter
public void setnbMaxJR(int n) { // TODO Remove //System.err.println("MAX PLAYER R "+n); this.maxRealPlayer = n; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void get() {\n\t\t\r\n\t}", "@Override\n public void get() {}", "protected abstract Set method_1559();", "public String setter() {\n\t\treturn prefix(\"set\");\n\t}", "public void get() {\n }", "@Override\n String get();", "public String getValor()\n/* 17: */ {\n/* 18:27...
[ "0.6526987", "0.64893025", "0.6389806", "0.63460803", "0.62474954", "0.6207025", "0.61693245", "0.60793805", "0.60575676", "0.60550463", "0.6054694", "0.60438514", "0.6027143", "0.600779", "0.59970194", "0.5986904", "0.5986904", "0.5982933", "0.59731275", "0.5965552", "0.5953...
0.0
-1
TODO Remove System.err.println("MAX PLAYER V "+n);
public void setnbMaxJV(int n) { this.maxVirtualPlayer = n; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setnbMaxJR(int n) {\n // TODO Remove\n //System.err.println(\"MAX PLAYER R \"+n);\n this.maxRealPlayer = n;\n }", "public int getMaxPlayers() {\n return maxPlayers;\n }", "public int getMaximumPlayers() {\n return maximumPlayers;\n }", "private void getNumPlayers()...
[ "0.6916418", "0.6711837", "0.6639096", "0.66222686", "0.66216475", "0.6429163", "0.63803744", "0.6330667", "0.62925804", "0.62829876", "0.6258053", "0.6173929", "0.6169904", "0.61648715", "0.6098788", "0.60610896", "0.60225874", "0.5928207", "0.58810496", "0.58396983", "0.582...
0.68718135
1
End Setter End Getter & Setter Start ID Generation
private int generateRandomNb(int min, int max) { Random random = new Random(); return random.nextInt((max - min) + 1) + min; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected int getID(){\r\n\t\treturn this.ID;\r\n\t}", "@Override public String getID() { return id;}", "public int getID(){\r\n return this.ID;\r\n }", "@Override\n\tpublic void set(int id, Generator generator) {\n\t}", "public int getID(){\n return this.ID;\n }...
[ "0.6951847", "0.6930096", "0.69067985", "0.6835578", "0.6816153", "0.68029433", "0.678947", "0.678947", "0.67889565", "0.6769761", "0.6751655", "0.6750723", "0.6742566", "0.67394435", "0.67356557", "0.6720719", "0.6709361", "0.67075235", "0.67058", "0.6705743", "0.66779226", ...
0.0
-1
End ID Generation Start Game Control Methods
public void startGame() { status = Status.COMPLETE; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void endGeneration();", "public static void end() {\n\t\tif(firstTime)\r\n\t\t\tfirstTime=false;\r\n\t\tif (over) {\r\n\t\t\treset();\r\n\t\t\tover = false;\r\n\t\t}\r\n\t\tGUI.panel.changeGame();\r\n\t}", "@Override\n\tpublic void endGame() {\n\t\tsuper.endGame();\n\t}", "public synchronized void setEndGame...
[ "0.6863826", "0.64877445", "0.6398343", "0.6335909", "0.6297671", "0.6281394", "0.6274871", "0.6119523", "0.60943586", "0.60834503", "0.6083336", "0.6031885", "0.6017036", "0.5992779", "0.5976919", "0.5965796", "0.5963141", "0.594919", "0.59408486", "0.5923981", "0.59233737",...
0.5829783
33
regarde si ce n'est pas la fin de la partie
public boolean gameContinue() { for (Player player : players) { if (player.getPoints() > END_GAME_POINTS) { return false; } } return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean finPartie(long idPartie) {\n Partie p = daocrud.findOne(idPartie);\r\n boolean partieFini = false;\r\n int nbJoueursPerdus = 0;\r\n boolean someonewon = false;\r\n for (int i = 0; i < p.getJoueurs().size(); i++) {\r\n if (p.getJoueurs().get(i).getEtat() ...
[ "0.6710342", "0.6626739", "0.6458783", "0.6315439", "0.62772775", "0.61752886", "0.6168911", "0.61292875", "0.6115921", "0.61018515", "0.6067295", "0.60577184", "0.60577184", "0.60498846", "0.60498846", "0.60265267", "0.60181254", "0.5996929", "0.59850544", "0.5975155", "0.59...
0.0
-1
End Game Control Methods Start Round Control Methods
public int getRoundID() { return rounds.get(currentRound).getRoundID(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void end() {\n\t\tif(firstTime)\r\n\t\t\tfirstTime=false;\r\n\t\tif (over) {\r\n\t\t\treset();\r\n\t\t\tover = false;\r\n\t\t}\r\n\t\tGUI.panel.changeGame();\r\n\t}", "public void stopGame()\r\n\t{\r\n\t\tthis.inProgress = false;\r\n\t\tif(this.round == 0)\r\n\t\t{\r\n\t\t\t++this.round;\r\n\t\t}\r...
[ "0.72635746", "0.7122931", "0.7008179", "0.69390094", "0.69166017", "0.6880421", "0.68486094", "0.6841317", "0.6834345", "0.68216014", "0.6803454", "0.6790852", "0.6752046", "0.67511463", "0.6742662", "0.67341876", "0.6720813", "0.6711805", "0.67098933", "0.67059404", "0.6704...
0.0
-1
End Round Control Methods Start Turn Control Methods
public int getCurrentTurnID() { return rounds.get(currentRound).getTurnID(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void buttonEndTurn() {\n\t\tendTurn();\n\t\t}", "public void toEndingTurn() {\n }", "public void endOfTurn();", "private void endTurn() {\n\t\t\n\t\tif (roundChanger == 1) {\n\t\t\tString currentPlayer = textFieldCurrentPlayer.getText();\n\t\t\tif (currentPlayer.equals(\"Player1\")) {\n\t\t\t\ttext...
[ "0.69183236", "0.67186546", "0.6714252", "0.6681303", "0.66338766", "0.6605682", "0.65653735", "0.65619016", "0.6549593", "0.65384674", "0.65187263", "0.64395463", "0.63823766", "0.635612", "0.6353389", "0.633085", "0.6327788", "0.6327195", "0.62891185", "0.6287861", "0.61924...
0.0
-1
End Turn Control Methods Start Player Control Methods
public int incrementMaxRealPlayer() { if ((maxRealPlayer + maxVirtualPlayer) >= MAX_GAME_PLAYER) { return -1; } maxRealPlayer++; return maxRealPlayer; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void endOfTurn();", "public void endTurn() {\n }", "@Override\r\n\tpublic void endTurn() {\n\t\t\r\n\t}", "public void buttonEndTurn() {\n\t\tendTurn();\n\t\t}", "private void endTurn() {\n currentTurn = getNextPlayer();\n }", "public void endTurn() {\n controller.endTurn();\n ...
[ "0.7860583", "0.7820568", "0.7705569", "0.7683991", "0.76570207", "0.7579376", "0.7477723", "0.7379392", "0.73484755", "0.73016554", "0.723453", "0.72269654", "0.71580786", "0.71279883", "0.71139973", "0.71008784", "0.70950335", "0.70712656", "0.706345", "0.70598584", "0.7036...
0.0
-1
End Player Control Methods Start Status Methods
public String getStatusName() { return status.getText(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void endTurnCurrent() {\n playerStatus.nActionsDone = 0;\n playerStatus.isActive = false;\n playerStatus.isFirstTurn = false;\n }", "public static void end() {\n\t\tif(firstTime)\r\n\t\t\tfirstTime=false;\r\n\t\tif (over) {\r\n\t\t\treset();\r\n\t\t\tover = false;\r\n\t\t}\r\n\t\tG...
[ "0.7195756", "0.6736016", "0.67259276", "0.66800666", "0.66536134", "0.6627352", "0.66244584", "0.6614624", "0.6602201", "0.65572405", "0.65165395", "0.65110946", "0.64612216", "0.64590037", "0.6454001", "0.6450948", "0.6443531", "0.64428794", "0.64174074", "0.64029557", "0.6...
0.0
-1
End Status Methods Start Hand Control Methods
public void givePlayerHand(int playerPosition, List<Card> playerHand) { rounds.get(currentRound).givePlayerHand(playerPosition, playerHand); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void end() {\n \tRobot.hand.setWrist(0.0);\n }", "protected void end() {\n \n \tRobotMap.motorLeftOne.set(com.ctre.phoenix.motorcontrol.ControlMode.PercentOutput, 0);\n \tRobotMap.motorLeftTwo.set(com.ctre.phoenix.motorcontrol.ControlMode.PercentOutput, 0);\n \t\n \tRobotMap.motorR...
[ "0.7092679", "0.6778434", "0.6627545", "0.6574886", "0.65746593", "0.6503251", "0.6497217", "0.6463606", "0.6439204", "0.64377916", "0.6437264", "0.6422847", "0.641112", "0.64090955", "0.64080685", "0.63915575", "0.6382436", "0.63575554", "0.63540447", "0.6342763", "0.6331633...
0.0
-1
End Hand Control Methods Start Herd Control Method
public void pickUpHerd() { rounds.get(currentRound).currentPlayerPickUpHerd(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void end() {\n \tRobot.hand.setWrist(0.0);\n }", "protected void end() {\n \n \tRobotMap.motorLeftOne.set(com.ctre.phoenix.motorcontrol.ControlMode.PercentOutput, 0);\n \tRobotMap.motorLeftTwo.set(com.ctre.phoenix.motorcontrol.ControlMode.PercentOutput, 0);\n \t\n \tRobotMap.motorR...
[ "0.7657912", "0.7187876", "0.6983431", "0.6904795", "0.69023895", "0.6887546", "0.68451023", "0.6831001", "0.68243766", "0.67984873", "0.6790755", "0.67865485", "0.6775789", "0.6756612", "0.6728563", "0.6723462", "0.67161787", "0.67082715", "0.6687245", "0.66696984", "0.66635...
0.0
-1
End Herd Control Methods End Methods
public void finalizeRoundPickUpHerdHand() { rounds.get(currentRound).finalizeRoundPickUpHerdHand();; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void end() {\r\n\t \tRobotMap.armarm_talon.changeControlMode(CANTalon.ControlMode.PercentVbus);\r\n\t }", "protected void end() {\n\r\n\t}", "protected void end()\n\t{\n\t}", "protected void end() {\n \n \n }", "protected void end() {\n\t}", "protected void end() {\n\t}",...
[ "0.76253563", "0.7597522", "0.75370073", "0.7493848", "0.7418472", "0.7418472", "0.7418472", "0.7418472", "0.7418472", "0.7418472", "0.73870903", "0.73870903", "0.73870903", "0.73870903", "0.7332505", "0.7332505", "0.7332505", "0.7332505", "0.7332505", "0.7332505", "0.7332505...
0.0
-1
TODO fetch url data do bg process.
@Override protected Configration doInBackground(String... params) { return TerminalDatabase.getInstance(ConfigrationActivity.this).daoAccess().fetchConfigration("1"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\t\t\tprotected String doInBackground(String... url) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tdata = downloadUrl(url[0]);\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\tLog.d(\"Background Task\", e.toString());\r\n\t\t\t\t}\r\n\t\t\t\treturn data;\r\n\t\t\t}", "@Override\n\t\tprotected String doInBackground...
[ "0.71519977", "0.7045945", "0.6971592", "0.6971592", "0.6876353", "0.687243", "0.6853705", "0.68227327", "0.6813367", "0.68079", "0.67943764", "0.67943764", "0.67943764", "0.6733268", "0.6733268", "0.6733268", "0.6733268", "0.67137116", "0.6636633", "0.66241825", "0.6619706",...
0.0
-1
url.setEnabled(enabled); Termianalid.setEnabled(enabled); Client.setEnabled(enabled); TMK.setEnabled(enabled); Audit.setEnabled(enabled); bankName.setEnabled(enabled); merchantName.setEnabled(enabled); merchantAddress.setEnabled(enabled);
public void editEnabled(boolean enabled){ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void enableSet(){\n addSubmit.setDisable(true);\n removeSubmit.setDisable(true);\n setSubmit.setDisable(false);\n addCS.setDisable(true);\n removeCS.setDisable(true);\n setCS.setDisable(false);\n addIT.setDisable(true);\n removeIT.setDisable(true);\n ...
[ "0.72329086", "0.6850695", "0.6592287", "0.65662897", "0.65662897", "0.65662897", "0.65662897", "0.6547189", "0.6532589", "0.64801174", "0.6448072", "0.6438847", "0.6438847", "0.6394278", "0.63855857", "0.6384169", "0.6383121", "0.6361253", "0.6361163", "0.6346367", "0.634356...
0.616753
29
calculates the pivot of rotation
protected void interpolatePath(Vector3f startPosition, Vector3f endPosition, float turnAngle, boolean turnLeft, List<Vector3f> interpolatedPositions, List<Vector3f> interpolatedHeadings) { Vector3f pivot = calculatePivotPoint(startPosition, endPosition, turnLeft); // interpolates intermediate positions (circular path) for(float i = 0; i <= FastMath.HALF_PI; i = i + FastMath.HALF_PI / INTERPOLATION_STEPS) { Vector3f normal = startPosition.subtract(pivot); Vector3f point = rotatedVector(normal, i, turnLeft); Vector3f position = pivot.add(point); interpolatedPositions.add(position); interpolatedHeadings.add(getOrtonormalVector(pivot.subtract(position), !turnLeft)); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public PointF getRotationPivot()\n {\n return rotationPivot;\n }", "public void setRotate() {\r\n\t\tint npoints = xpoints.length;\r\n\t\tdouble[] tempxpoints = new double[xpoints.length];\r\n\t\tdouble[] tempypoints = new double[xpoints.length];\r\n\t\tdouble radians = Math.toRadians(angle%360);...
[ "0.75696164", "0.6573938", "0.6311127", "0.6279861", "0.6163093", "0.60928637", "0.6049834", "0.59874", "0.5797658", "0.57752854", "0.572328", "0.56437665", "0.56411237", "0.5574097", "0.5555204", "0.5553182", "0.5494425", "0.5493759", "0.54731584", "0.5454551", "0.5448101", ...
0.0
-1
Gets the origin position to which the vehicle should be moved
public Vector3f getStartPosition() { return startPosition; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Vector3f getOrigin() {\r\n\t\treturn new Vector3f(mOrigin);\r\n\t}", "public Point2D getOrigin() {\n Point2D resultOrigin;\n resultOrigin = new Point2D(this.origin.getX(), this.origin.getY());\n return resultOrigin;\n\n }", "godot.wire.Wire.Vector3 getOrigin();", "public Point getOrigin() {\...
[ "0.7307791", "0.7236967", "0.7181786", "0.71213144", "0.70610106", "0.70339787", "0.6955929", "0.6888817", "0.6835375", "0.68135434", "0.6793247", "0.6773938", "0.67474324", "0.6704252", "0.6688774", "0.6685368", "0.6670985", "0.66408837", "0.6640879", "0.66137797", "0.660946...
0.6176627
58
Gets the destination position to which the vehicle should be moved
public Vector3f getEndPosition() { return endPosition; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Coordinate getDestination() {\n return cDestination;\n }", "public Location getDestination() {\r\n return destination;\r\n }", "public int getDestination() {\r\n\t\treturn destination;\r\n\t}", "public Location getDestination(){\n\t\treturn destination;\n\t}", "public Location ge...
[ "0.7136114", "0.6913578", "0.68778455", "0.6851876", "0.68466395", "0.6790967", "0.6771654", "0.6690872", "0.66800165", "0.66762316", "0.6658802", "0.66348755", "0.6514291", "0.6466554", "0.644292", "0.6427994", "0.6422383", "0.6399855", "0.6363064", "0.63439345", "0.6325433"...
0.0
-1
Gets the interpolated list of path positions
public List<Vector3f> getInterpolatedPositions() { return interpolatedPositions; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract List<Point2D> getInterpolatedPoints();", "java.util.List<org.openxmlformats.schemas.drawingml.x2006.main.CTPath2D> getPathList();", "public Position[] getPath() {\n\t\treturn path;\n\t}", "public ArrayList<Integer> findPathList() {\n ArrayList<Integer> pathList = new ArrayList<>();\n ...
[ "0.6983229", "0.6429947", "0.6219407", "0.6207446", "0.6186478", "0.6123447", "0.59924877", "0.5972205", "0.5946618", "0.593139", "0.59239286", "0.58524126", "0.5824491", "0.57706684", "0.5729921", "0.5692912", "0.5686025", "0.56775755", "0.56761837", "0.5675294", "0.56404316...
0.7051142
0