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 |
|---|---|---|---|---|---|---|
Constructor for shop costumer without subscription. | public ShopCostumerRow(Integer shopCostumerID, String shopCostumerSubscription, String creditCard,
Float cumulativePrice)
{
super();
m_shopCostumerID = shopCostumerID;
m_shopCostumerSubscription = shopCostumerSubscription;
m_subscriptionStartDate = null;
m_creditCard = creditCard;
m_cumulativePrice = cu... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Shop(String uname, String pass)\n {\n super(uname, pass);\n stock = new AllItems();\n bills = new ArrayList<>();\n id = Utilities.SHOP_CTR;\n Utilities.SHOP_CTR++;\n }",
"public Merchant() {}",
"public Merchant() {\n\n\t}",
"public Shopper() {\r\n cart =... | [
"0.689751",
"0.68837535",
"0.67690194",
"0.6749763",
"0.67117286",
"0.6675672",
"0.6540707",
"0.64609545",
"0.6452118",
"0.6448225",
"0.642079",
"0.64108706",
"0.6324847",
"0.6259048",
"0.6257737",
"0.6254291",
"0.6229304",
"0.62255436",
"0.62060416",
"0.6193567",
"0.6191836"... | 0.58140224 | 68 |
Constructor for shop costumer without credit card. | public ShopCostumerRow(Integer shopCostumerID, String shopCostumerSubscription, Date subscriptionStartDate,
Float cumulativePrice)
{
super();
m_shopCostumerID = shopCostumerID;
m_shopCostumerSubscription = shopCostumerSubscription;
m_subscriptionStartDate = subscriptionStartDate;
m_cumulativePrice = cumul... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public CashPayment()\n {\n super();\n }",
"public Merchant() {}",
"public Merchant() {\n\n\t}",
"public CreditCard ()\r\n\t{\r\n\t\t\r\n\t}",
"public MageTowerCard() {\n\t\tsuper(cardName, cardId, cardCost);\n\t}",
"public Shop(String uname, String pass)\n {\n super(uname, pass);\n... | [
"0.7469243",
"0.7147544",
"0.6981325",
"0.69738656",
"0.6757597",
"0.66636014",
"0.66156304",
"0.65341187",
"0.6523619",
"0.65233225",
"0.64740634",
"0.6457387",
"0.64573866",
"0.6414178",
"0.64103264",
"0.63989276",
"0.63949215",
"0.6385527",
"0.6362288",
"0.6351623",
"0.632... | 0.0 | -1 |
Connect to MongoDB Since 2.10.0, uses MongoClient | public static void main(final String[] args) throws Exception {
MongoClient mongo = new MongoClient("localhost", 27017);
/**** Get database ****/
// if database doesn't exists, MongoDB will create it for you
DB db = mongo.getDB("enron");
DBCollection table = db.getCollection("demo... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static MongoClient initMongoClient() {\n\n\t\tServerAddress sa = new ServerAddress(DomainConstans.mongodb_host, DomainConstans.mongodb_port);\n\t\tList<MongoCredential> mongoCredentialList = Lists\n\t\t\t\t.newArrayList(MongoCredential.createCredential(DomainConstans.mongodb_userName, DomainConstans.mongod... | [
"0.7997245",
"0.7691039",
"0.7675858",
"0.7643252",
"0.7426161",
"0.735735",
"0.7207496",
"0.7157996",
"0.71064955",
"0.6917947",
"0.6777921",
"0.66360193",
"0.65404254",
"0.6512759",
"0.6449177",
"0.6415161",
"0.6290896",
"0.62562734",
"0.6222606",
"0.6197318",
"0.6122615",
... | 0.6020135 | 25 |
[METHODS] Gets the user with the specified username and password | public static User login(String username, String password) throws Exception{
logger.log(LoggerManager.INFO, "Logging in user with username = " + username + " and password = " + password + "." );
//map the username and password passed in to their respective columns in the USERS table
HashMap<String, Obj... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public User getUser(String userName, String password);",
"public User queryUserByUsernameAndPassword(String username, String password);",
"@Override\n public User getUser(String username, String password) {\n User optionalUser;\n try {\n optionalUser = userRepository.usernamePasswor... | [
"0.84483486",
"0.7859583",
"0.7798673",
"0.77488905",
"0.77312624",
"0.76376575",
"0.7624162",
"0.7511265",
"0.74233484",
"0.7423134",
"0.73921096",
"0.73795855",
"0.7348816",
"0.7324572",
"0.7295382",
"0.7272121",
"0.7260602",
"0.72252053",
"0.7215397",
"0.71867436",
"0.7128... | 0.0 | -1 |
Sends an email to the specified email addresses with the specified subject and message content. | public static void sendEmail(String[] recipientAddresses, String subject, String message) throws Exception{
logger.log(LoggerManager.INFO, "Sending an email to " + recipientAddresses + ".");
Session session = Session.getDefaultInstance(
EMAIL_SESSION_PROPERTIES,
new MailAuthenticator(SENDER_EMAIL... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void sendCommonMail(String to, String subject, String content);",
"public void sendMail(String address, String content) {\n }",
"public void sendMail(String to, String subject, String text);",
"public void sendMail(String to, String cc, String bcc, String subject, String text);",
"public void sendMail(S... | [
"0.7642277",
"0.763872",
"0.7389345",
"0.73256004",
"0.731404",
"0.7283244",
"0.71404696",
"0.70949256",
"0.69486374",
"0.6933601",
"0.6912713",
"0.68983597",
"0.6868443",
"0.6828585",
"0.6805822",
"0.6790585",
"0.6721595",
"0.6703774",
"0.66747785",
"0.6665836",
"0.6659069",... | 0.6832615 | 13 |
Main method Used for testing | public static void main(String[] args){
User user = new User(3, "nickar", "testpass", "Nick", "Roberts", "nickar0b3rts@gmail.com", "Faculty");
AbstractDatabaseManager.insertRow(user);
try {
createAndVerifyPurchaseOrder("Nick Roberts", "nickar0b3rts@gmail.com", "6", true, false, "Best Buy", "Ins... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\n public void main() {\n MainApp.main(new String[] {});\n }",
"public static void main(String[] args) {\r\n// Use for unit testing\r\n }",
"public static void main() {\n \n }",
"public static void main(String[] args) {\n // PUT YOUR TEST CODE HERE\n }",
"@Test\n ... | [
"0.7694237",
"0.7645737",
"0.76218104",
"0.76180196",
"0.7597068",
"0.7567436",
"0.7516174",
"0.7446597",
"0.73894095",
"0.72948796",
"0.72592735",
"0.7259078",
"0.7239053",
"0.7201088",
"0.72010404",
"0.71995735",
"0.71978635",
"0.7181161",
"0.71501786",
"0.7148798",
"0.7132... | 0.0 | -1 |
gets cookie with the given name from the cookie list. if cookie doesn't exist, return null | private Cookie getCookie(HttpServletRequest request,String name) {
Cookie[] cookies=request.getCookies();
for(Cookie c:cookies){
if(c.getName().equals(name))
return c;
}
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private Cookie getCookieByName(String name) {\n Cookie[] cookies = VaadinService.getCurrentRequest().getCookies();\n\n // Iterate to find cookie by its name\n for (Cookie cookie : cookies) {\n if (name.equals(cookie.getName())) {\n return cookie;\n }\n ... | [
"0.8256482",
"0.8082575",
"0.7988786",
"0.76689696",
"0.7303983",
"0.72985727",
"0.70957464",
"0.7090154",
"0.7050319",
"0.7040053",
"0.7039862",
"0.6927843",
"0.6760931",
"0.63948107",
"0.6362043",
"0.63598824",
"0.630726",
"0.62731177",
"0.6187933",
"0.60423243",
"0.6025083... | 0.7553766 | 4 |
validates access to servlet. if user isn't allowed to view content, we will simply redirect him to the login screen. if he has just logged in, we will create cookies to maintain his session. | private boolean validateAccess(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException{
/*institutionalEmail=request.getParameter("institutional_email");
password=request.getParameter("password");*/
//check if user has cookies with a logged session
if(institutiona... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n protected void doPost(HttpServletRequest req,\n HttpServletResponse resp)\n throws ServletException, IOException {\n\n String requestBody = \"\";\n requestBody = IOUtils.toString(req.getReader());\n String[] usernameAndPassword = requestBody... | [
"0.71269774",
"0.71150744",
"0.70322907",
"0.697243",
"0.6960261",
"0.69488907",
"0.692152",
"0.6909765",
"0.6865112",
"0.6748667",
"0.66768765",
"0.6671971",
"0.6596167",
"0.6568793",
"0.6555185",
"0.6532492",
"0.6528727",
"0.6505289",
"0.6498749",
"0.6497772",
"0.6483487",
... | 0.75034076 | 0 |
set message to be displayed when page is loaded | private void setOnLoadMessage(HttpServletRequest request,String message){
request.setAttribute("display_message", "true");
request.setAttribute("message", message);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void showMessage(){\n\t jsfMessageHelper.addInfo(\"Mesaj:\", (messageTxt==null?\"?\":messageTxt));\r\n\t}",
"public void setLoadingPanel(String msg){\n this.loadingPanel.add(getLoadingMessage(msg));\n }",
"public void setLoadingMessage(String loadingMessage);",
"public void observeRenderV... | [
"0.6742919",
"0.67220545",
"0.65820473",
"0.63963956",
"0.63327265",
"0.63266045",
"0.63069683",
"0.6279801",
"0.62674713",
"0.62463844",
"0.6239673",
"0.6207321",
"0.61915797",
"0.6186097",
"0.6182841",
"0.61816853",
"0.6171035",
"0.616388",
"0.6097128",
"0.6080384",
"0.6066... | 0.7664735 | 0 |
TODO Autogenerated method stub | @Override
public String getProblem() {
return "Le circuit est vide";
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public String getSolution() {
return "Ajouter des composants au circuit";
} | {
"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 |
The consumer using this factory. | Consumer getConsumer(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Consumer getConsumer() {\n return consumer;\n }",
"public ConsumerFactory<K, V> getConsumerFactory() {\n return consumerFactory;\n }",
"@Override\n public ConsumerNode getConsumer(){\n return super.getConsumer();\n }",
"private static Consumer<String, JsonNode> createConsume... | [
"0.7078561",
"0.69178116",
"0.67084825",
"0.66142124",
"0.63963646",
"0.6362181",
"0.62955916",
"0.61238235",
"0.60568804",
"0.6039383",
"0.6034618",
"0.60162234",
"0.6005685",
"0.5986693",
"0.59768844",
"0.5962711",
"0.5935071",
"0.5918333",
"0.58675826",
"0.5852914",
"0.583... | 0.7471905 | 0 |
Releases the exchange back into the pool | default boolean release(Exchange exchange) {
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void release() {\r\n return;\r\n }",
"@Override\r\n\tpublic void release()\r\n\t{\n\t}",
"void release(PooledObject<T> t);",
"@Override\n public void release() {\n }",
"public void release() {\n }",
"public void release() {\n\t\t\n\t}",
"@Override\n\tpubli... | [
"0.65906346",
"0.6576951",
"0.6534461",
"0.6484983",
"0.64754844",
"0.6467797",
"0.6452554",
"0.6450531",
"0.643639",
"0.643235",
"0.6426469",
"0.64242023",
"0.64242023",
"0.6408167",
"0.6380277",
"0.634864",
"0.634864",
"0.63323075",
"0.63301325",
"0.6326355",
"0.63172483",
... | 0.7042699 | 0 |
Returns true since renderable operation is supported. | public boolean isRenderableSupported() {
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract boolean isRendered();",
"public boolean isRenderable() {\n return vboIdList != null;\n }",
"public boolean isReadyToRender() {\n return mHasSwapChain;\n }",
"public final boolean isRendered() {\n return rendered;\n }",
"public boolean isRendered() {\r\n\t\tretu... | [
"0.72575665",
"0.69935495",
"0.67705595",
"0.67679733",
"0.670808",
"0.662936",
"0.6619848",
"0.658567",
"0.65453744",
"0.649501",
"0.63653696",
"0.62989306",
"0.62172496",
"0.6199739",
"0.6162223",
"0.6120182",
"0.6064239",
"0.60450137",
"0.60014045",
"0.6001002",
"0.5991043... | 0.7974506 | 0 |
Save exercise classification integer. | Integer saveExerciseClassification(SaveExerciseClassificationPayload payload); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Integer getClassify() {\n return classify;\n }",
"public int save() {\n\t\treturn 0;\n\t}",
"public void setClassify(Integer classify) {\n this.classify = classify;\n }",
"@Override\n\tpublic double saveNumber()\n\t{\n\t\treturn num;\n\t}",
"public void save() {\n settingS... | [
"0.5797717",
"0.57377577",
"0.5670548",
"0.5499611",
"0.5489778",
"0.5414332",
"0.5364592",
"0.5312679",
"0.5307111",
"0.52523863",
"0.52318287",
"0.52284753",
"0.52200145",
"0.52196354",
"0.5210569",
"0.5209191",
"0.51941776",
"0.5186197",
"0.5182167",
"0.5137336",
"0.513187... | 0.73111385 | 0 |
Gets exercise by id. | ExercisePo getExerciseById(Long id); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Exercise getCertainExercise(int ID) {\n\n Exercise exercise = new Exercise();\n\n sqLiteDatabase = getReadableDatabase();\n Cursor results = sqLiteDatabase.rawQuery(\"SELECT * FROM \" + EXERCISES_TABLE + \" WHERE \" + ID_COL + \" = \" + ID, null);\n\n if (results.moveToFirst()... | [
"0.6926947",
"0.68750095",
"0.68750095",
"0.6841192",
"0.68311334",
"0.675584",
"0.6754443",
"0.6711581",
"0.66998005",
"0.6608423",
"0.6598497",
"0.65945953",
"0.64575726",
"0.6439138",
"0.6416297",
"0.6412583",
"0.6396554",
"0.6394322",
"0.63934994",
"0.6386593",
"0.6374204... | 0.7908245 | 0 |
Update exercise gif integer. | Integer updateExerciseGif(ExercisePo exercisePo); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void act() {\n setImage(myGif.getCurrentImage());\n }",
"public void playerAnimation(){\r\n \r\n switch (gif) {\r\n case 5:\r\n j= new ImageIcon(getClass().getResource(\"/\" + Character.choosen_char + \"_1.png\"));\r\n img = j.getImage().ge... | [
"0.61887085",
"0.6113231",
"0.6005371",
"0.5951085",
"0.5934017",
"0.58607626",
"0.57329017",
"0.57222396",
"0.56759554",
"0.5669682",
"0.560894",
"0.55674684",
"0.55486375",
"0.5538101",
"0.54625803",
"0.54428583",
"0.54190886",
"0.53937197",
"0.5387084",
"0.5341119",
"0.533... | 0.79748243 | 0 |
Save exercise gif integer. | Integer saveExerciseGif(Long exerciseId, MultipartFile exerciseGif) throws IOException; | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Integer updateExerciseGif(ExercisePo exercisePo);",
"public GIFMaker to(String path);",
"public int savePicture() {\n if (path == null || name == null || author == null || dating == null || location == null\n || typeId == 0 || artPeriodId == 0 || typeId == -1 || artPeriodId == -1\n ... | [
"0.71387357",
"0.5849781",
"0.56282324",
"0.5468936",
"0.537526",
"0.53592354",
"0.5328642",
"0.5283078",
"0.52608603",
"0.5252053",
"0.51938814",
"0.5182617",
"0.5170973",
"0.51582545",
"0.51388407",
"0.5133304",
"0.51146036",
"0.5110195",
"0.51053005",
"0.50927955",
"0.5073... | 0.719791 | 0 |
/ Converts Pool Manager Flag from 'Y' to '(Pool Mgr)' | public String convertPoolManager(String poolManagerFlag){
String poolManagerDesc = null;
if(poolManagerFlag.contains("Y")){
poolManagerDesc = "(Pool Mgr)";
}
return poolManagerDesc;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setPool(boolean mPool) {\r\n this.mPool = mPool;\r\n }",
"boolean isSetPoolNumber();",
"boolean isSetPoolName();",
"private String convertBoolean(boolean booToConv) {\n\t\tString convText = \"\";\n\t\tif (booToConv) {\n\t\t\tconvText = \"Yes\";\n\t\t} else {\n\t\t\tconvText = \"No\";\n\... | [
"0.525536",
"0.50787127",
"0.49917492",
"0.49011913",
"0.48618364",
"0.48217556",
"0.47707346",
"0.47637853",
"0.47424582",
"0.47188643",
"0.4687509",
"0.4681945",
"0.46742174",
"0.46741432",
"0.46417546",
"0.46206838",
"0.46197346",
"0.46028396",
"0.45936465",
"0.458752",
"0... | 0.8247696 | 0 |
/Hallar perimetro triangulo Equilatero | @Override
public void hallarPerimetro() {
this.perimetro = this.ladoA*3;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public double calculaTributos() {\n // TODO Auto-generated method stub\n return 10;\n }",
"public void triangulo() {\n fill(0);\n stroke(255);\n strokeWeight(5);\n triangle(width/2, 50, height+100, 650, 350, 650);\n //(width/2, height-100, 350, 150, 900, 150);\n }",
"S... | [
"0.6553284",
"0.64306855",
"0.63779837",
"0.6211101",
"0.6164292",
"0.60937995",
"0.6085636",
"0.6074618",
"0.6047214",
"0.6045527",
"0.6045333",
"0.60419595",
"0.6038593",
"0.6001902",
"0.5997346",
"0.5984868",
"0.5845572",
"0.5796625",
"0.5794012",
"0.5785713",
"0.57848465"... | 0.5500582 | 53 |
/Hallar perimetro triangulo Isosceles | public void hallarPerimetroIsosceles() {
this.perimetro = 2*(this.ladoA+this.ladoB);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"static int[] triDeShell(int tableau[]) {\r\n\r\n\t\tfinal Logger logger = LogManager.getLogger(TriDeShell.class.getName());\r\n\r\n\t\tif (logger.isDebugEnabled())\r\n\t\t\tlogger.debug(\"Entrée dans la fonction tri de shell\");\r\n\r\n\t\tint pas = 0;\r\n\t\tint valIns = 0;\r\n\r\n\t\twhile (pas < tableau.length)... | [
"0.6313598",
"0.6171583",
"0.61074436",
"0.586515",
"0.5809563",
"0.57888085",
"0.57843983",
"0.5779634",
"0.5751837",
"0.57406354",
"0.57388777",
"0.57379144",
"0.57220554",
"0.57217",
"0.57154995",
"0.56985706",
"0.5662111",
"0.56617206",
"0.5649337",
"0.56420106",
"0.56386... | 0.579265 | 5 |
/Hallar perimetro triangulo Escaleno | public void hallarPerimetroEscaleno() {
this.perimetro = this.ladoA+this.ladoB+this.ladoC;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void BigE_and_Truana()\r\n\t{\r\n\t\t/* ____________ First get an approximate value of BIGE ______________________*/\r\n\t\t\r\n\t\tTANE = Trig.DegTAN ( EM ) / ( Trig.DegCOS ( EM ) - E );\r\n\t BIGE = Math.atan ( TANE ) * TRGVAR.R_to_D;\r\n\t E0 = E * TRGVAR.R_to_D;\r\n\t \r\n\t BIGE = B... | [
"0.59775674",
"0.59571755",
"0.59472126",
"0.5942916",
"0.5926536",
"0.58972746",
"0.58632827",
"0.5827373",
"0.57987195",
"0.5783889",
"0.5700498",
"0.56821203",
"0.56539994",
"0.5646663",
"0.5635698",
"0.56338227",
"0.5633016",
"0.56184536",
"0.5611465",
"0.56090343",
"0.56... | 0.61881906 | 0 |
Inflate the layout for this fragment | @Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
View view= inflater.inflate(R.layout.fragment_add_budget, container, false);
//inisialize interface
etMonthBudget = (EditText) view.findViewById(R.id... | {
"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 |
TODO Autogenerated method stub | @Override
public void onClick(View v) {
showDatePicker();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void onSuccess(List<Dish> arg0) {
if (arg0.size() > 0) {
for (Dish dish : arg0) {
dishlist.add(dish);
}
dishadapter.notifyDataSetChanged();
curPage++;
//toast("第" + (page + 1) + "页数据加载完成");
} else {
toast("没有更多数据了");
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void onError(int arg0, String arg1) {
toast("失败");
Log.i("info", "arg1");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void onClick(View v) {
switch (v.getId()) {
case R.id.button_chao:
intentFenlei("1");
break;
case R.id.button_dun:
intentFenlei("2");
break;
case R.id.button_meng:
intentFenlei("3");
break;
case R.id.button_sao:
intentFenlei("4");
break;
case R.id.button_hui:
int... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void onPause() {
super.onPause();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void onResume() {
super.onResume();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void onStop() {
super.onStop();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub new Example().sample1(); new Example().sample2(); new Example().sample3(); | public static void main(String[] args) {
new Example().sample4();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public List<MExampleCall> getRandomExampleCalls();",
"public static void example1() {\n // moved to edu.jas.application.Examples\n }",
"public static void main(String[] args) {\n\r\n\t\tsample3 obj1=new sample3();\r\n\t\tobj1.display1();\r\n\t\tobj1.display2();\r\n\t}",
"static void SampleItinerary... | [
"0.64999145",
"0.6200733",
"0.61780846",
"0.61077976",
"0.60247135",
"0.59861016",
"0.5981868",
"0.59577346",
"0.58965653",
"0.5884575",
"0.5817678",
"0.5817384",
"0.5770048",
"0.5708149",
"0.5679948",
"0.56706524",
"0.56467897",
"0.55876184",
"0.5584859",
"0.55597454",
"0.55... | 0.6027903 | 4 |
Main screen with play, options and leaderboard buttons | public MainScreen(Game game) {
this.game = game;
create();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void startProgram() {\n this.displayBanner();\n// prompt the player to enter their name Retrieve the name of the player\n String playersName = this.getPlayersName();\n// create and save the player object\n User user = ProgramControl.createPlayer(playersName);\n// Display a personalized ... | [
"0.69859916",
"0.6906824",
"0.6887848",
"0.678033",
"0.67049366",
"0.6680307",
"0.65909547",
"0.6555202",
"0.6521169",
"0.646871",
"0.644437",
"0.6422763",
"0.64129436",
"0.6373053",
"0.6372672",
"0.63626957",
"0.63538516",
"0.6341257",
"0.6339925",
"0.6334781",
"0.63294166",... | 0.0 | -1 |
From screen interface, called when this screen is set | public void show() {
// TODO Auto-generated method stub
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setScreen(GameScreen screen);",
"public void setScreen(final Rect screen)\n {\n this.screen = screen;\n }",
"protected void onScreenActivate() {\r\n }",
"public void updateScreen(){}",
"public void setScreen(AbstractStrictScreen scr) {\n this.scr = scr;\n }",
"@O... | [
"0.7447479",
"0.7386069",
"0.7134887",
"0.6986361",
"0.6960802",
"0.69129455",
"0.6869392",
"0.6810824",
"0.6785726",
"0.6758053",
"0.67234105",
"0.66996574",
"0.66903466",
"0.6647935",
"0.664523",
"0.6640798",
"0.66318804",
"0.65953624",
"0.65839493",
"0.65666485",
"0.654596... | 0.0 | -1 |
Runs every frame, draws updated stage and sets background color | public void render(float delta) {
// TODO Auto-generated method stub
Gdx.gl.glClearColor(Constants.red, Constants.blue, Constants.green, 1);
Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT); // Don't know why but you need this
stage.act(); // Starts button functionality
stage.draw(); // Draws buttons
Gdx.gl.glClear... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void render(float delta) {\n\t\tbatch.begin();\n\t\tbatch.draw(background, 0, 0);\n\t\tbatch.end();\n\t\t\n\t\tstage.act(delta);\n\t\tstage.draw();\n\t\t\n\t}",
"@Override\n public void render(float delta) {\n Gdx.gl.glClearColor(0.8f, 0.3f, 0.3f, 1);\n Gdx.gl.glClear(GL20.GL... | [
"0.75676453",
"0.721364",
"0.7101249",
"0.70441145",
"0.7014665",
"0.69984883",
"0.6984985",
"0.69420487",
"0.69088507",
"0.6892816",
"0.68905437",
"0.6841967",
"0.68157023",
"0.67950976",
"0.67407465",
"0.6720228",
"0.66915995",
"0.6653349",
"0.66390634",
"0.6633885",
"0.663... | 0.59961104 | 98 |
TODO Autogenerated method stub | @Override
public void resize(int width, int height) {
create();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void pause() {
} | {
"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 |
Describes button functionality and position | public void create() {
// TODO Auto-generated method stub
skin = new Skin(Gdx.files.internal("uiskin.json"));
stage = new Stage();
final TextButton playButton = new TextButton("Play", skin, "default"); // Creates button with label "play"
final TextButton leaderboardButton = new TextButton("Leaderboards", skin... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Button(){\n id=1+nbrButton++;\n setBounds(((id-1)*getDimX())/(Data.getNbrLevelAviable()+1),((id-1)*getDimY())/(Data.getNbrLevelAviable()+1),getDimX()/(2*Data.getNbrLevelAviable()),getDimY()/(2*Data.getNbrLevelAviable()));\n setText(id+\"\");\n setFont(Data.getFont());\n addMouseList... | [
"0.7212522",
"0.69758606",
"0.6961959",
"0.69313455",
"0.6880749",
"0.6870682",
"0.6856885",
"0.67281425",
"0.6680116",
"0.6627352",
"0.6567596",
"0.6527939",
"0.65145344",
"0.6493913",
"0.6456568",
"0.6455852",
"0.64396155",
"0.6428685",
"0.6424578",
"0.6413793",
"0.63977045... | 0.0 | -1 |
When Sign in/Sing out is pressed in the top right | @Override
public void clicked(InputEvent event, float x, float y) {
if (Constants.userID == 0) { // If no one is signed in
dispose();
game.setScreen(new UserInfoScreen(game));
} else { // If a user is currently signed in
Constants.userID = 0;
Constants.user = "Temporary User";
create... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void signIn() {\n }",
"void onSignInButtonClicked();",
"@Override\r\n public void onSign(SignEvent event){\n if (event.getAction().equals(SignEvent.Action.SIGNED_IN)) {\r\n //write cookies if keep signed in\r\n if (event.getAccountKey()... | [
"0.72791576",
"0.70691544",
"0.70546484",
"0.69929296",
"0.6977288",
"0.6907223",
"0.6903216",
"0.67571354",
"0.6746944",
"0.673597",
"0.67176414",
"0.67008495",
"0.6588242",
"0.6526669",
"0.6509515",
"0.6500386",
"0.6486299",
"0.6469594",
"0.6449549",
"0.6441905",
"0.643398"... | 0.6487414 | 16 |
This tells button what to do when clicked | @Override
public void clicked(InputEvent event, float x, float y) {
dispose();
game.setScreen(new LobbyScreen(game)); // Switch over to lobby screen
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void buttonClicked();",
"public void buttonClicked() {\n mSanitizorGame.buttonClicked();\n }",
"@Override\n\tprotected void OnClick() {\n\t\t\n\t}",
"@Override\n\tprotected void on_button_pressed(String button_name) {\n\n\t}",
"@Override\n public void onClick() {\n System.out.pri... | [
"0.8269599",
"0.7749436",
"0.7594815",
"0.75854063",
"0.7472478",
"0.74619347",
"0.74511975",
"0.74277806",
"0.74250376",
"0.74250376",
"0.74178064",
"0.74147606",
"0.7377651",
"0.7375337",
"0.73279846",
"0.73181117",
"0.73138386",
"0.72801626",
"0.7257633",
"0.7257633",
"0.7... | 0.0 | -1 |
Do some stuff when clicked | @Override
public void clicked(InputEvent event, float x, float y) {
dispose();
game.setScreen(new OptionsScreen(game));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void onClicked();",
"public void mouseClicked(MouseEvent e) {\n\t\t\t\t\t\t\n\t\t\t\t\t}",
"public void mouseClicked(MouseEvent e) {\n\t\t\t\t\t\t\n\t\t\t\t\t}",
"public void mouseClicked(MouseEvent e) {\n\t\t\t\t\t\t\n\t\t\t\t\t}",
"public void mouseClicked(MouseEvent e) \t{\n\t\t\t\t\r\n\t\t\t}",
... | [
"0.7923876",
"0.77491677",
"0.77491677",
"0.77491677",
"0.7708382",
"0.7706386",
"0.76994836",
"0.76994836",
"0.76994836",
"0.76994836",
"0.76994836",
"0.76994836",
"0.76994836",
"0.76915514",
"0.76885265",
"0.76885265",
"0.76858544",
"0.7685639",
"0.7685639",
"0.7678458",
"0... | 0.0 | -1 |
Created by gxy on 2016/8/25. | @FunctionalInterface
public interface UseInstance<T, X extends Throwable> {
void accept(T instance) throws X;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void perish() {\n \n }",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"private sta... | [
"0.61001223",
"0.601658",
"0.59819454",
"0.59658134",
"0.59658134",
"0.5928201",
"0.58795327",
"0.587294",
"0.5848468",
"0.5793232",
"0.57917666",
"0.57866293",
"0.57814306",
"0.57750916",
"0.5762951",
"0.5760484",
"0.5752491",
"0.57247496",
"0.5723297",
"0.5716098",
"0.56795... | 0.0 | -1 |
/ / / / / | public SingleCertificateResolver(X509Certificate paramX509Certificate) {
/* 45 */ this.certificate = paramX509Certificate;
/* */ } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void divide() {\n\t\t\n\t}",
"private int parent(int i){return (i-1)/2;}",
"public abstract void bepaalGrootte();",
"public void zeichneQuadrate(){\n for (int i=0; i<10;i++)\n rect (50+i*25,50,25,25);\n }",
"public void gored() {\n\t\t\n\t}",
"public static void bottomHalf() {\n\n ... | [
"0.5654086",
"0.5282051",
"0.5270874",
"0.5268489",
"0.5230159",
"0.5229372",
"0.5205559",
"0.51923394",
"0.51524484",
"0.50993294",
"0.50948834",
"0.5071109",
"0.5043058",
"0.5009983",
"0.5006536",
"0.49739555",
"0.49691963",
"0.4959123",
"0.49568397",
"0.49425906",
"0.49421... | 0.0 | -1 |
/ / / / / / / | public InternalIterator(X509Certificate param1X509Certificate) {
/* 70 */ this.certificate = param1X509Certificate;
/* */ } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private int parent(int i){return (i-1)/2;}",
"private int leftChild(int i){return 2*i+1;}",
"public void divide() {\n\t\t\n\t}",
"public void zeichneQuadrate(){\n for (int i=0; i<10;i++)\n rect (50+i*25,50,25,25);\n }",
"private int rightChild(int i){return 2*i+2;}",
"public abstract void b... | [
"0.54567957",
"0.53680295",
"0.53644985",
"0.52577376",
"0.52142847",
"0.51725817",
"0.514088",
"0.50868535",
"0.5072305",
"0.504888",
"0.502662",
"0.50005764",
"0.49740013",
"0.4944243",
"0.4941118",
"0.4937142",
"0.49095523",
"0.48940238",
"0.48719338",
"0.48613623",
"0.486... | 0.0 | -1 |
/ / / / / | public void remove() {
/* 91 */ throw new UnsupportedOperationException("Can't remove keys from KeyStore");
/* */ } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void divide() {\n\t\t\n\t}",
"private int parent(int i){return (i-1)/2;}",
"public abstract void bepaalGrootte();",
"public void zeichneQuadrate(){\n for (int i=0; i<10;i++)\n rect (50+i*25,50,25,25);\n }",
"public void gored() {\n\t\t\n\t}",
"public static void bottomHalf() {\n\n ... | [
"0.5654086",
"0.5282051",
"0.5270874",
"0.5268489",
"0.5230159",
"0.5229372",
"0.5205559",
"0.51923394",
"0.51524484",
"0.50993294",
"0.50948834",
"0.5071109",
"0.5043058",
"0.5009983",
"0.5006536",
"0.49739555",
"0.49691963",
"0.4959123",
"0.49568397",
"0.49425906",
"0.49421... | 0.0 | -1 |
Not necessary to add a check to make sure that the segment code matches the enum object name. If we get to this point, my design assures that there is a match. | public EdifactStates actionRoutine( String seg )
{ Not necessary to add a check to make sure that the segment code matches
// the enum object name. If we get to this point, my design assures
// that there is a match.
//
Element elem = new Element( "segment" );
elem.addAttribute( new Attribute( "code", seg.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private PatternType matchPatternEnum(String s){\n s = s.toLowerCase();\n switch(s){\n case \"factory method\":\n return PatternType.FACTORY_METHOD;\n case \"prototype\":\n return PatternType.PROTOTYPE;\n case \"singleton\":\n r... | [
"0.5710726",
"0.55936456",
"0.5517276",
"0.55162305",
"0.5451135",
"0.5423389",
"0.5419316",
"0.54042894",
"0.5401422",
"0.5347475",
"0.5323912",
"0.5305669",
"0.5289685",
"0.5263006",
"0.52453285",
"0.5232039",
"0.52203566",
"0.52122647",
"0.5207311",
"0.5197285",
"0.5163762... | 0.48505998 | 57 |
checks duplicate priority as well as checks both featured and prioritized restrictions | private Boolean checkDuplicatePriorities(List<StoresBrandEntity> storesBrands) throws Exception{
Set<Integer> priorities = new HashSet<Integer>();
for(StoresBrandEntity storesBrand: storesBrands){
if(storesBrand.getPriority() != null){
if(storesBrand.getFeatured() != null && ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"boolean hasPriority();",
"boolean hasPriority();",
"boolean hasPriority();",
"public abstract int priority();",
"int priority();",
"int priority();",
"@Test\n public void priorityTest() {\n // TODO: test priority\n }",
"public boolean isPriority()\r\n/* 49: */ {\r\n/* 50:47 */ re... | [
"0.6434944",
"0.6434944",
"0.6434944",
"0.5641389",
"0.56234896",
"0.56234896",
"0.56044644",
"0.55908465",
"0.55454165",
"0.55454165",
"0.55454165",
"0.55454165",
"0.55454165",
"0.55454165",
"0.55454165",
"0.55454165",
"0.55403084",
"0.55319446",
"0.5449125",
"0.54162997",
"... | 0.5912421 | 3 |
Create the image cache. Uses Memory Cache by default. Change to Disk for a Disk based LRU implementation. | private void createImageCache(){
ImageCacheManager.getInstance().init(this,
this.getPackageCodePath()
, DISK_IMAGECACHE_SIZE
, DISK_IMAGECACHE_COMPRESS_FORMAT
, DISK_IMAGECACHE_QUALITY
, ImageCacheManager.CacheType.MEMORY);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private ImageCache(Context context) {\n int memClass = ((ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE)).getMemoryClass();\n memClass = memClass > 32 ? 32 : memClass;\n\n final int cacheSize = 1024 * 1024 * memClass / 8;\n memoryCache = new LruCache<String, Bitmap>(... | [
"0.7768373",
"0.70156264",
"0.68666685",
"0.67147434",
"0.6626781",
"0.65939707",
"0.6531033",
"0.6389752",
"0.6351288",
"0.63412744",
"0.6298577",
"0.62693775",
"0.6217802",
"0.6190342",
"0.610886",
"0.60555214",
"0.60518265",
"0.6027971",
"0.60246503",
"0.60138166",
"0.5948... | 0.81444347 | 0 |
Load batch of items. This version aligns the loads according to batch size, in order to enable a significant optimization in getItemIds(). | @SuppressWarnings("unchecked")
@Override
public List<Item> loadItems(final int startIndex, final int count) {
List<Item> items = new ArrayList<Item>();
if (count <= 0) {
return items;
}
TypedQuery<Tuple> selectQuery = getSelectQuery();
adjust... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic List<Item> loadItems(int start, int count) {\n\t\treturn null;\n\t}",
"protected abstract void loadItemsInternal();",
"@Override\n public void loadData(final List<Integer> allCommerceItemIds) {\n if (allCommerceItemIds.size() == 0) {\n return;\n }\n int po... | [
"0.63824034",
"0.63324225",
"0.6295844",
"0.6208806",
"0.5768603",
"0.56930107",
"0.56026596",
"0.5580323",
"0.5565939",
"0.5518053",
"0.5500107",
"0.54948664",
"0.53681487",
"0.53232616",
"0.5260575",
"0.5249057",
"0.5241736",
"0.5226818",
"0.5188961",
"0.51804346",
"0.51785... | 0.6192146 | 4 |
Constructs new item based on QueryDefinition. | @Override
public Item constructItem() {
try {
@SuppressWarnings("unchecked")
T entity = (T) entityClass.newInstance();
BeanInfo info = Introspector.getBeanInfo(entityClass);
for (PropertyDescriptor pd : info.getPropertyDescriptors()) {
for ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"TSearchQuery createSearchQuery(SearchQueryDefinitionAPI searchQueryDefinition);",
"public abstract List createQuery(String query);",
"QueryType createQueryType();",
"public static QueryInterface createQuery() {\n return new XmlQuery();\n }",
"Query createQuery(final String query);",
"public voi... | [
"0.6188191",
"0.5925705",
"0.5819311",
"0.57195425",
"0.56961685",
"0.5658857",
"0.5657337",
"0.5568562",
"0.55360574",
"0.5511902",
"0.5507237",
"0.5487963",
"0.54820764",
"0.54589796",
"0.5443077",
"0.5428597",
"0.5427818",
"0.5401196",
"0.5385045",
"0.53836954",
"0.5377425... | 0.6356917 | 0 |
Saves the modifications done by container to the query result. Query will be discarded after changes have been saved and new query loaded so that changed items are sorted appropriately. | @Override
public void saveItems(final List<Item> addedItems, final List<Item> modifiedItems, final List<Item> removedItems) {
if (applicationTransactionManagement) {
entityManager.getTransaction().begin();
}
try {
for (Item item : addedItems) {
if ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void Save() {\r\n //solo se salvara el container\r\n vc.getContainer();\r\n }",
"@Override\n\tpublic String updateOutStorage(String hql) {\n\t\treturn super.updateByHql(hql);\n\t}",
"public void saveResults();",
"@SuppressWarnings(\"serial\")\n\t@Test\n\tpublic void updateCollection()... | [
"0.5630096",
"0.5524004",
"0.53521425",
"0.5266097",
"0.5263605",
"0.52537",
"0.5218686",
"0.51851445",
"0.5174999",
"0.51722264",
"0.5153957",
"0.513924",
"0.5130048",
"0.5086905",
"0.50852805",
"0.50796837",
"0.5069729",
"0.50269544",
"0.502464",
"0.50077474",
"0.500002",
... | 0.4668189 | 76 |
Converts bean to Item. | @SuppressWarnings({ "unchecked", "rawtypes" })
protected Item toItem(final T entity) {
BeanItem<T> beanItem = new NestedBeanItem<T>(entity);
for (Object propertyId : queryDefinition.getPropertyIds()) {
if (beanItem.getItemProperty(propertyId) == null) {
beanItem.ad... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@SuppressWarnings(\"unchecked\")\r\n private Object fromItem(final Item item) {\r\n return (Object) ((BeanItem<T>) item).getBean();\r\n }",
"public Item convertToItem(Object value, XQItemType type) throws XQException;",
"Item convertToItem(Object value) throws XQException;",
"@Override\n publ... | [
"0.7016855",
"0.6484842",
"0.6307588",
"0.622236",
"0.622236",
"0.60880345",
"0.598954",
"0.5867392",
"0.5701314",
"0.5661639",
"0.5622526",
"0.5606415",
"0.55988914",
"0.558868",
"0.55501884",
"0.55453014",
"0.55344474",
"0.5405104",
"0.5395837",
"0.53440315",
"0.53311265",
... | 0.6644678 | 1 |
Converts item back to bean. | @SuppressWarnings("unchecked")
private Object fromItem(final Item item) {
return (Object) ((BeanItem<T>) item).getBean();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void refineItem(JavaBeanMarshaller marshaller, Item item);",
"private ItemDTO convertIntoItemDTO(Item item) {\n if (null == item) {\n return null;\n }\n ItemDTO itemDTO = new ItemDTO();\n itemDTO.setObjectID(item.getObjectID());\n itemDTO.setTitle(item.getTitle());\n... | [
"0.6493891",
"0.63466704",
"0.6271447",
"0.6114357",
"0.5740282",
"0.57140756",
"0.5699327",
"0.5699327",
"0.559078",
"0.55784273",
"0.5571169",
"0.5534527",
"0.55234843",
"0.54994386",
"0.54393023",
"0.5391353",
"0.5391194",
"0.53790736",
"0.5376921",
"0.5357314",
"0.5349151... | 0.7566931 | 0 |
This method was created in VisualAge. | public void deleteVersionable(Connection con, User user, VersionableType vType, KeyValue vKey)
throws DependencyException, ObjectNotFoundException,
SQLException,DataAccessException,PermissionException {
deleteVersionableInit(con, user, vType, vKey);
if (vType.equals(VersionableType.Simulation)){
d... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void perish() {\n \n }",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bica... | [
"0.63027483",
"0.60542685",
"0.60428476",
"0.6039986",
"0.6021428",
"0.6021428",
"0.5988154",
"0.5948575",
"0.5926166",
"0.59258944",
"0.5911478",
"0.590118",
"0.5871462",
"0.5810943",
"0.57510513",
"0.57441413",
"0.5736879",
"0.57268476",
"0.5725842",
"0.57219875",
"0.571507... | 0.0 | -1 |
This method was created in VisualAge. | private Simulation getSimulationSQL(QueryHashtable dbc, Connection con,User user, KeyValue simKey)
throws SQLException,DataAccessException,ObjectNotFoundException {
String sql;
Field[] f = {userTable.userid,new cbit.sql.StarField(simTable)};
Table[] t = {simTable,userTable};
String condition = simTable.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void perish() {\n \n }",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bica... | [
"0.63027483",
"0.60542685",
"0.60428476",
"0.6039986",
"0.6021428",
"0.6021428",
"0.5988154",
"0.5948575",
"0.5926166",
"0.59258944",
"0.5911478",
"0.590118",
"0.5871462",
"0.5810943",
"0.57510513",
"0.57441413",
"0.5736879",
"0.57268476",
"0.5725842",
"0.57219875",
"0.571507... | 0.0 | -1 |
This method was created in VisualAge. | public Versionable getVersionable(QueryHashtable dbc, Connection con, User user, VersionableType vType, KeyValue vKey)
throws ObjectNotFoundException, SQLException, DataAccessException {
Versionable versionable = (Versionable) dbc.get(vKey);
if (versionable != null) {
return versionable;
} else {
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void perish() {\n \n }",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bica... | [
"0.63027483",
"0.60542685",
"0.60428476",
"0.6039986",
"0.6021428",
"0.6021428",
"0.5988154",
"0.5948575",
"0.5926166",
"0.59258944",
"0.5911478",
"0.590118",
"0.5871462",
"0.5810943",
"0.57510513",
"0.57441413",
"0.5736879",
"0.57268476",
"0.5725842",
"0.57219875",
"0.571507... | 0.0 | -1 |
This method was created in VisualAge. | private void insertSimulationSQL(InsertHashtable hash, Connection con, User user, Simulation simulation, KeyValue updatedMathKey,
Version newVersion, boolean bVersionChildren)
throws SQLException, DataAccessException, RecordChangedException {
String sql = null;
Object[] o = {simulation, updatedMat... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void perish() {\n \n }",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bica... | [
"0.63027483",
"0.60542685",
"0.60428476",
"0.6039986",
"0.6021428",
"0.6021428",
"0.5988154",
"0.5948575",
"0.5926166",
"0.59258944",
"0.5911478",
"0.590118",
"0.5871462",
"0.5810943",
"0.57510513",
"0.57441413",
"0.5736879",
"0.57268476",
"0.5725842",
"0.57219875",
"0.571507... | 0.0 | -1 |
This method was created in VisualAge. | public KeyValue insertVersionable(InsertHashtable hash, Connection con, User user, Simulation simulation, KeyValue updatedMathDescriptionKey, String name, boolean bVersion, boolean bMathematicallyEquivalent)
throws DataAccessException, SQLException, RecordChangedException {
SimulationVersion newSimulat... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void perish() {\n \n }",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bica... | [
"0.63027483",
"0.60542685",
"0.60428476",
"0.6039986",
"0.6021428",
"0.6021428",
"0.5988154",
"0.5948575",
"0.5926166",
"0.59258944",
"0.5911478",
"0.590118",
"0.5871462",
"0.5810943",
"0.57510513",
"0.57441413",
"0.5736879",
"0.57268476",
"0.5725842",
"0.57219875",
"0.571507... | 0.0 | -1 |
This method was created in VisualAge. | protected SimulationVersion insertVersionableInit(InsertHashtable hash, Connection con, User user, Versionable versionable, String name, String annot, boolean bVersion, boolean bMathematicallyEquivalent)
throws DataAccessException, SQLException, RecordChangedException{
SimulationVersion dbSimulationVersion = (... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void perish() {\n \n }",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bica... | [
"0.63027483",
"0.60542685",
"0.60428476",
"0.6039986",
"0.6021428",
"0.6021428",
"0.5988154",
"0.5948575",
"0.5926166",
"0.59258944",
"0.5911478",
"0.590118",
"0.5871462",
"0.5810943",
"0.57510513",
"0.57441413",
"0.5736879",
"0.57268476",
"0.5725842",
"0.57219875",
"0.571507... | 0.0 | -1 |
This method was created in VisualAge. | public KeyValue updateVersionable(InsertHashtable hash, Connection con, User user, Simulation simulation, KeyValue updatedMathDescriptionKey, boolean bVersion, boolean bMathematicallyEquivalent)
throws DataAccessException, SQLException, RecordChangedException {
SimulationVersion newSimulationVersion = upda... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void perish() {\n \n }",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bica... | [
"0.63027483",
"0.60542685",
"0.60428476",
"0.6039986",
"0.6021428",
"0.6021428",
"0.5988154",
"0.5948575",
"0.5926166",
"0.59258944",
"0.5911478",
"0.590118",
"0.5871462",
"0.5810943",
"0.57510513",
"0.57441413",
"0.5736879",
"0.57268476",
"0.5725842",
"0.57219875",
"0.571507... | 0.0 | -1 |
This method was created in VisualAge. | protected SimulationVersion updateVersionableInit(InsertHashtable hash, Connection con, User user, Versionable versionable, boolean bVersion, boolean bMathematicallyEquivalent)
throws DataAccessException, SQLException, RecordChangedException{
SimulationVersion dbSimulationVersion = ((Simulation)versionable).ge... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void perish() {\n \n }",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bica... | [
"0.63027483",
"0.60542685",
"0.60428476",
"0.6039986",
"0.6021428",
"0.6021428",
"0.5988154",
"0.5948575",
"0.5926166",
"0.59258944",
"0.5911478",
"0.590118",
"0.5871462",
"0.5810943",
"0.57510513",
"0.57441413",
"0.5736879",
"0.57268476",
"0.5725842",
"0.57219875",
"0.571507... | 0.0 | -1 |
returns the full name. | public String getName(){
return this.firstName + " " + this.surname;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String fullName();",
"public String provideFullName( )\r\n {\r\n return String.format( \"%s %s\",\r\n getFirstNm( ),\r\n getLastNm( ) );\r\n }",
"String getFullName();",
"private String fullName(){\n\t\tFullName=firstName+\" \"+lastName;\n\t\treturn (initi... | [
"0.8614263",
"0.8145852",
"0.803626",
"0.80257946",
"0.79558486",
"0.79495424",
"0.7904588",
"0.7881055",
"0.7865547",
"0.7832564",
"0.77897024",
"0.7755232",
"0.7715505",
"0.76734334",
"0.7649709",
"0.76150227",
"0.76052123",
"0.757372",
"0.7550254",
"0.7546125",
"0.7531324"... | 0.73128575 | 94 |
returns the first name. | public String getFirstName(){
return this.firstName;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getNameFirst() {\n\t\t\treturn nameFirst;\n\t\t}",
"public String getFirstname() {\r\n\t\treturn firstname;\r\n\t}",
"public String getFirstname() {\n\t\treturn firstname;\n\t}",
"public java.lang.String getFirst_name() {\n return first_name;\n }",
"public String getFirstname() {\n ... | [
"0.8789239",
"0.8709733",
"0.86603224",
"0.86362034",
"0.8603275",
"0.84883684",
"0.84621614",
"0.84621614",
"0.8454955",
"0.84405047",
"0.83688533",
"0.830154",
"0.8298222",
"0.8290692",
"0.822526",
"0.8213146",
"0.8211878",
"0.81973517",
"0.8181016",
"0.8164511",
"0.8159182... | 0.7926576 | 65 |
TODO Autogenerated method stub | @Override
public int insert(Model model) throws ServiceException {
try {
return getDao().insert(model);
} catch (Exception e) {
// TODO: handle exception
logger.error(e.getMessage());
throw new ServiceException(ResultCode.DB_ERROR);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public int update(Model model) throws ServiceException {
try {
return getDao().updateByID(model);
} catch (Exception e) {
// TODO: handle exception
logger.error(e.getMessage());
throw new ServiceException(ResultCode.DB_ERROR);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public Model findByID(PK id) throws ServiceException {
Model model = getModel();
Method method = null;
try {
method = model.getClass().getMethod("setId", new Class[]{ Integer.class });
method.setAccessible(true);
method.invoke(model, new Object[]{ id });
} catch (Excepti... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public PageInfo findPageInfo(Integer pageSize, Model model) throws ServiceException {
if (model == null)
getModel();
int allRow = 0;
try {
allRow = getDao().findCountByCondition(model);
} catch (Exception e) {
// TODO: handle exception
logger.error(e.getMessage());... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public List<Model> findList(Integer currentPage, Integer pagesize, Model model) throws ServiceException {
if (model == null)
getModel();
List<Model> resultList = null;
List<Map<String, Object>> mapList = null;
Integer startpos = null;
if (currentPage != null && pagesize != null) {... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public PageData<Model> findPageData(Integer currentPage, Integer pageSize, Model model) throws ServiceException {
PageData<Model> pageData = null;
PageInfo pageInfo = this.findPageInfo(pageSize, model);
List<Model> modelList = this.findList(currentPage, pageSize, model);
pageData = new PageData<>(... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public Model findOne(Model model) throws ServiceException {
Map<String, Object> result = getDao().findOne(model, null);
model = buildModel(result);
return model;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public Model findOne(Model model, List<SQLOrderbyModel> orderbyList) throws ServiceException {
Map<String, Object> result = getDao().findOne(model, orderbyList);
model = buildModel(result);
return model;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | public static <JavascriptExcutor> void main(String[] args) throws Exception {
System.setProperty("webdriver.firefox.marionette",".\\Tools\\geckodriver.exe");
// System.setProperty("webdriver.gecko.driver","\\Tools\\geckodriver.exe");
WebDriver driver = new FirefoxDriver();
driver.manage().window().maximize();
... | {
"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 |
Column currently containing the disturbance. The main program creates the window, fills it with random colors, and then moves the disturbance in a random walk around the window as long as the window is open. | public static void main( String[] args ) {
Mosaic.open( ROWS, COLUMNS, SQUARE_SIZE, SQUARE_SIZE );
fillWithRandomColors();
currentRow = ROWS / 2; // Start at the center of the window.
currentColumn = COLUMNS / 2;
while ( true ) {
changeToRandomColor( currentRow, cur... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void makeWindows()\r\n {\r\n int spacingX = random.nextInt( 3 ) + 3;\r\n int spacingY = random.nextInt( 5 ) + 3;\r\n int windowsX = random.nextInt( 3 ) + 4;\r\n int windowsY = random.nextInt( 3 ) + 5;\r\n int sizeX = ( building.getWidth() - spacingX * ( windowsX + 1 ) )... | [
"0.56578225",
"0.5601952",
"0.5566552",
"0.5560942",
"0.5555759",
"0.55472356",
"0.5528815",
"0.5486119",
"0.5427222",
"0.5413295",
"0.5369514",
"0.53620726",
"0.53564835",
"0.53131163",
"0.53029233",
"0.5299978",
"0.5283946",
"0.52590746",
"0.52437997",
"0.52035165",
"0.5195... | 0.5683709 | 0 |
end of main(). Fills the window with randomly colored squares. Precondition: The mosaic window is open. Postcondition: Each square has been set to a random color. | static void fillWithRandomColors() {
for ( int row = 0; row < ROWS; row++ ) {
for ( int column = 0; column < COLUMNS; column++ ) {
changeToRandomColor( row, column );
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void main( String[] args ) {\n Mosaic.open( ROWS, COLUMNS, SQUARE_SIZE, SQUARE_SIZE );\n fillWithRandomColors();\n currentRow = ROWS / 2; // Start at the center of the window.\n currentColumn = COLUMNS / 2;\n\n while ( true ) {\n changeToRandomColor( cur... | [
"0.74587435",
"0.66321605",
"0.6400162",
"0.6297755",
"0.6196621",
"0.6189333",
"0.6026638",
"0.5990569",
"0.5989577",
"0.5953023",
"0.5944678",
"0.5943579",
"0.59232455",
"0.59204775",
"0.58978236",
"0.5874126",
"0.5864398",
"0.58454514",
"0.5838262",
"0.58367604",
"0.581828... | 0.6124512 | 6 |
end of fillWithRandomColors. Changes one square to a new randomly selected color. Precondition: The specified rowNum and colNum are in the valid range of row and column numbers. Postcondition: The square in the specified row and column has been set to a random color. | static void changeToRandomColor( int rowNum, int colNum ) {
int red = ( int )( Math.random() * 256 );
int green = ( int )( Math.random() * 256 );
int blue = ( int )( Math.random() * 256 );
Mosaic.setColor( rowNum, colNum, red, green, blue );
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"static void fillWithRandomColors() {\n\n for ( int row = 0; row < ROWS; row++ ) {\n for ( int column = 0; column < COLUMNS; column++ ) {\n changeToRandomColor( row, column );\n }\n }\n }",
"private void setRandomColors() {\n for(int i = 0; i< noOfColum... | [
"0.7431319",
"0.65903926",
"0.6391238",
"0.61553234",
"0.6036277",
"0.5933624",
"0.5891311",
"0.587455",
"0.58382905",
"0.58348006",
"0.58342814",
"0.58114046",
"0.57309705",
"0.57216465",
"0.5718298",
"0.5691546",
"0.5684709",
"0.56790084",
"0.5674464",
"0.56411576",
"0.5628... | 0.7420181 | 1 |
end of changeToRandomColor. Move the disturbance. Precondition: The global variables currentRow and currentColumn are within the legal range of row and column numbers. Postcondition: currentRow or currentColumn is changed to one of the neighboring positions in the grid up, down, left, or right from the current position... | static void randomMove() {
int directionNum; // Randomly set to 0, 1, 2, or 3 to choose direction.
directionNum = ( int )( Math.random() * 4 );
switch ( directionNum ) {
case 0: // Move up.
currentRow--;
if ( currentRow < 0 )
cur... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void step()\n {\n\t int rows = grid.length-1;\n\t int cols = grid[0].length-1;\n\t int direction = (int) (Math.random()*3);\n\t direction--;\n\t int row = (int) (Math.random()*rows);\n\t //System.out.println(row);\n\t int col = (int) (Math.random()*cols);\n\t //System.out.println(col);\n\t if(grid... | [
"0.6295168",
"0.61709595",
"0.6096094",
"0.59810895",
"0.5961655",
"0.59477955",
"0.5874487",
"0.58510154",
"0.5831691",
"0.58005905",
"0.5800101",
"0.578547",
"0.5779965",
"0.57525015",
"0.5751951",
"0.57192385",
"0.57151866",
"0.56994563",
"0.56781185",
"0.5600434",
"0.5579... | 0.6085849 | 3 |
Generate a random position in the wordsoup | public static int[] generateCords(int size){
int[] cords = new int[2];
Random r = new Random();
cords[0] = r.nextInt(size);
Random s = new Random();
cords[1] = s.nextInt(size);
return cords;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n public int positionRandom() {\r\n int random = ((int) (Math.random() * arrayWords.length - 1) + 1);//define a random number with lengt more one for not getout the number zero\r\n return random;\r\n }",
"public String getRandom() {\n\t return word.get(new Random().nextInt(... | [
"0.82077056",
"0.6930351",
"0.68196136",
"0.6726248",
"0.6593901",
"0.6496339",
"0.64864564",
"0.6445861",
"0.64417404",
"0.6387762",
"0.63753396",
"0.63417685",
"0.6325727",
"0.6322527",
"0.6309769",
"0.6263833",
"0.6246264",
"0.6218243",
"0.6216511",
"0.6212829",
"0.6212643... | 0.0 | -1 |
Generate a random orientation in the wordsoup | public static String generateOri(){
String Orientation[] = {"DownLeft","Down","DownRight","UpLeft","Up","UpRight","Left","Right"};
Random r = new Random();
int n = r.nextInt(8);
return Orientation[n];
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void RandomOrientation(){\n\n\t\tfor (int i=0;i<population.length;i++){\n\t\t\tpopulation[i].RandomOrientation();\n\t\t}\n\n\t}",
"@Override\r\n public int positionRandom() {\r\n int random = ((int) (Math.random() * arrayWords.length - 1) + 1);//define a random number with lengt more one for not... | [
"0.69814277",
"0.6353791",
"0.633031",
"0.6285253",
"0.6068461",
"0.60520905",
"0.60470676",
"0.6009844",
"0.6008898",
"0.5930937",
"0.58258396",
"0.58188707",
"0.5783317",
"0.5776379",
"0.57746184",
"0.5763314",
"0.57044435",
"0.5695495",
"0.56805795",
"0.56379884",
"0.55907... | 0.65454316 | 1 |
Save data in file | public static void saveData(ArrayList<String> dataList, char[][]wordSoup){
// Create File
try {
File myObj = new File("sdl_01.txt");
myObj.createNewFile();
} catch (IOException e) {
System.out.println("An error occurred.");
e.printStackTrace();
}
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void save() {\n UTILS.write(FILE.getAbsolutePath(), data);\n }",
"private void saveData() {\n\t\tdataSaver.save(data);\n\t}",
"public void save() {\n\t\tWriteFile data = new WriteFile( this.name + \".txt\" );\n\t\ttry {\n\t\t\t data.writeToFile(this.toString());\n\t\t}\n\t\tcatch (IOException ... | [
"0.86642206",
"0.7716806",
"0.75317943",
"0.7446501",
"0.74400544",
"0.7433536",
"0.73966503",
"0.73923844",
"0.73656124",
"0.73415744",
"0.73392653",
"0.73172706",
"0.7302838",
"0.7279666",
"0.72661954",
"0.7234281",
"0.72203267",
"0.7204516",
"0.71649075",
"0.7160135",
"0.7... | 0.0 | -1 |
/ options: i: file to be used s: size of the wod soup to be made | public static void main(String[] args) {
int argc = args.length;
// Given only the words file
if(argc == 2 && args[0].charAt(0) == '-' && args[0].charAt(1) == 'i'){
String fileName = args[1];
int size = 1;
ArrayList<String> wordList = new ArrayList<Str... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void showFileSize(long size);",
"private Document parseFile() throws IOException {\n\tString contents = instream_to_contents();\n\tDocument doc = Jsoup.parse(contents);\n\treturn doc;\n }",
"public static void main(String[] args) {\n String fileName = \"voca.html\";\n// String url = \"h... | [
"0.53198546",
"0.5291306",
"0.5242856",
"0.5190792",
"0.51624274",
"0.51311207",
"0.5102258",
"0.49753565",
"0.49467728",
"0.4943219",
"0.49196613",
"0.49071455",
"0.4878091",
"0.487583",
"0.4873408",
"0.48647434",
"0.48402902",
"0.4838597",
"0.48302308",
"0.48279917",
"0.479... | 0.4781752 | 22 |
Sets the completion items to a list property. A change event will be triggered. | public void setCompletionItems(List<CompletionItem> items) {
this.textItemsProperty.setValue(FXCollections.observableArrayList(items));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setCurrentListToBeDoneList();",
"@Test\r\n public void testListPropertyAdapterSetListOnObjectProperty() {\r\n ObservableList<String> list = createObservableList(true);\r\n ObjectProperty<ObservableList<String>> objectProperty = new SimpleObjectProperty<>(list);\r\n ListPropert... | [
"0.6318668",
"0.6212623",
"0.6195845",
"0.60799223",
"0.60501575",
"0.5975851",
"0.5940497",
"0.5919864",
"0.5807295",
"0.5789353",
"0.5786598",
"0.5776848",
"0.57656556",
"0.5732237",
"0.5720038",
"0.57002157",
"0.56851643",
"0.56782365",
"0.56129575",
"0.5605305",
"0.557047... | 0.68155646 | 0 |
Gets candidate completion items. Applies grouping when there are groupings (for example a.1, a.2 are a group of a). | public CandidateCompletionItems getCandidateCompletionItems(CursorWord cursorWord) {
CandidateCompletionItems result;
Set<CompletionItem> preliminary = this.getPreliminaryCandidatesAsSet(cursorWord);
Set<CompletionItem> items = this.applyGrouping(preliminary);
List<CompletionItem> itemsList = this.c... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public List<Object> retrieveIncrementalGroups() {\n List<Object> result = new ArrayList<Object>();\n for (ProvisioningGroupWrapper provisioningGroupWrapper : this.provisioningGroupWrappers) {\n \n if (provisioningGroupWrapper.getGrouperTargetGroup() != null) {\n result.add(provisioningGroupW... | [
"0.5541274",
"0.5344795",
"0.52659845",
"0.52044636",
"0.5062035",
"0.50278187",
"0.4993539",
"0.49818435",
"0.49658176",
"0.4936943",
"0.49192828",
"0.49157548",
"0.49111417",
"0.49103078",
"0.48852992",
"0.4876608",
"0.48057333",
"0.47963583",
"0.47919726",
"0.47458607",
"0... | 0.59112424 | 0 |
Toast.makeText(getActivity(), "Failed to add brooder feeding record to web", Toast.LENGTH_SHORT).show(); | @Override
public void onFailure(int statusCode, Header[] headers, Throwable throwable, String rawJsonResponse, Object response){
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void displayMessage(String message) {\n Toast.makeText(getActivity(),message,Toast.LENGTH_SHORT).show();\n }",
"@Override\n public void onFailure(@NonNull Exception exception) {\n Toast.makeText(getApplicationContext(), exception.g... | [
"0.6788191",
"0.66531646",
"0.6628413",
"0.66257334",
"0.6605623",
"0.6593082",
"0.6593082",
"0.653208",
"0.6513137",
"0.650569",
"0.64690703",
"0.64665157",
"0.64462245",
"0.6442885",
"0.64416045",
"0.6435658",
"0.63977915",
"0.638589",
"0.63529897",
"0.63507754",
"0.6338893... | 0.0 | -1 |
Toast.makeText(getApplicationContext(), "Failed to fetch Brooders Inventory from web database ", Toast.LENGTH_SHORT).show(); | @Override
public void onFailure(int statusCode, Header[] headers, Throwable throwable, String rawJsonResponse, Object response){
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\t\t\t\t\t\t public void run() {\n\t\t\t\t\t\t\tToast.makeText(\r\n\t\t\t\t\t\t\t\tactivityContext,\r\n\t\t\t\t\t\t\t\tR.string.unable_to_fetch_the_details,\r\n\t\t\t\t\t\t\t\t2000);\r\n\r\n\t\t\t\t\t\t }",
"private void sendToCatTheater()\n {\n Toast.makeText(getApplicationContext()... | [
"0.71609217",
"0.7155293",
"0.7012654",
"0.69812745",
"0.69711506",
"0.69507766",
"0.6899983",
"0.6877033",
"0.6818806",
"0.6785702",
"0.67584896",
"0.67584896",
"0.67180777",
"0.67153764",
"0.6687331",
"0.6682534",
"0.66699684",
"0.66335166",
"0.6558053",
"0.652815",
"0.6527... | 0.0 | -1 |
Returns new URL object from the given string URL. | public static URL createURL(String stringURL, final Context context) {
URL url = null;
try {
url = new URL(stringURL);
} catch (MalformedURLException e) {
//use a handler to create a toast on the UI thread
Handler handler = new Handler(Looper.getMainLooper());... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static URL stringToUrl(String stringUrl) throws MalformedURLException{\r\n\t\treturn new URL(stringUrl);\r\n\t}",
"private static URL createURL(String urlString) {\n\n // Create an empty url\n URL url = null;\n\n try {\n // Try to make a url from urlString param\n ... | [
"0.7393641",
"0.7377555",
"0.7281861",
"0.72374487",
"0.72127926",
"0.72127926",
"0.7199948",
"0.71360546",
"0.7127599",
"0.7083861",
"0.7062112",
"0.6744751",
"0.6743828",
"0.66651833",
"0.6656008",
"0.65968347",
"0.65944374",
"0.6502286",
"0.6437796",
"0.6249654",
"0.620651... | 0.66642255 | 14 |
Make an HTTP request to the given URL and return a String as the response. | public static String makeHTTPRequest(URL url, Context context) throws IOException {
// If the url is empty, return early
String jsonResponse = null;
if (url == null) {
return jsonResponse;
}
final Context mContext = context;
HttpURLConnection urlConnection = n... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static String getHTTPResponse(URL url){\n\t\t\n\t\tStringBuilder response = new StringBuilder();\n\t\t\n\t\ttry{\n\t\t\tURLConnection connection = url.openConnection();\n\t\t\tBufferedReader res = new BufferedReader(new InputStreamReader(connection.getInputStream()));\n\t\t\tString responseLine;\n\t\t\t\n\... | [
"0.7588554",
"0.74719566",
"0.73666817",
"0.7298077",
"0.71523833",
"0.71420467",
"0.700661",
"0.69952714",
"0.691461",
"0.6898827",
"0.6898273",
"0.6897492",
"0.68913054",
"0.68853784",
"0.6879528",
"0.6840855",
"0.68196535",
"0.6812248",
"0.6811214",
"0.67705256",
"0.676585... | 0.666631 | 27 |
Read input stream as received from API and convert to String. | public static String readFromInputStream(InputStream inputStream) throws IOException {
StringBuilder streamOutput = new StringBuilder();
if (inputStream != null) {
InputStreamReader inputStreamReader = new InputStreamReader(inputStream, Charset
.forName("UTF-8"));
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private String readStream(InputStream in) {\n try {\n ByteArrayOutputStream bo = new ByteArrayOutputStream();\n int i = in.read();\n while(i != -1) {\n bo.write(i);\n i = in.read();\n }\n return bo.toString();\n } ca... | [
"0.7233408",
"0.71741813",
"0.70836866",
"0.7047844",
"0.7047355",
"0.7014694",
"0.6989124",
"0.6982196",
"0.69813806",
"0.6977176",
"0.69618726",
"0.6895256",
"0.6866383",
"0.68459356",
"0.6840051",
"0.68342274",
"0.6820157",
"0.67931014",
"0.67912424",
"0.67633",
"0.6753587... | 0.6298583 | 79 |
Al entrar en esta ruta se obtendran los datos de la lista y se pasaran a la vista proporcionada | @GetMapping(path = "/consultar")
public String consultarCompraMinorista(Model model){
try {
model.addAttribute("compraMinorista", compraMinoristaServiceImpl.consultarCompraMinorista());
model.addAttribute("comprasMinorista",new CompraMinorista());
model.addAttribute("mat... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void caricaLista() {\n /** variabili e costanti locali di lavoro */\n ArrayList unaLista = null;\n CampoDati unCampoDati = null;\n CDBLinkato unCampoDBLinkato = null;\n //@todo da cancellare\n try { // prova ad eseguire il codice\n /* recupera il camp... | [
"0.74459827",
"0.687766",
"0.6803483",
"0.6708397",
"0.6685179",
"0.6655058",
"0.66390866",
"0.66130525",
"0.6595928",
"0.65915716",
"0.6577686",
"0.6577295",
"0.65738004",
"0.6561585",
"0.6526014",
"0.6503839",
"0.64961296",
"0.64952207",
"0.6466831",
"0.64407253",
"0.642388... | 0.0 | -1 |
/Metodo utilizado para entrar en la vista del formulario | @GetMapping(path = "/realizar")
public ModelAndView getForm(){
return new ModelAndView(ViewConstant.MANTCOMPRASMINO).addObject("compraMinorista", new CompraMinorista());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void refrescarFormulario() {\n\t\t\r\n\t}",
"private void guardarComo() {\r\n\t\tJFileChooser guardar = new JFileChooser();\r\n\t\tFileNameExtensionFilter filtro = new FileNameExtensionFilter(\"obj\",\"obj\");\r\n\t\tguardar.setFileFilter(filtro);\r\n\t\tif(guardar.showSaveDialog(guardar) =... | [
"0.6315831",
"0.62686545",
"0.6260459",
"0.6234735",
"0.6219467",
"0.62136155",
"0.62054557",
"0.61823267",
"0.61744684",
"0.6132998",
"0.6126477",
"0.6115517",
"0.6114233",
"0.6108328",
"0.60908604",
"0.60878277",
"0.6075568",
"0.6069178",
"0.604084",
"0.60018",
"0.5970368",... | 0.0 | -1 |
save an Object to a byte array; | public static byte[] save(Object obj) {
byte[] bytes = null;
ByteArrayOutputStream baos = new ByteArrayOutputStream();
ObjectOutputStream oos = null;
try {
oos = new ObjectOutputStream(baos);
oos.writeObject(obj);
oos.flush();
bytes... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"byte[] serialize(Serializable object);",
"protected byte[] objectToBytes(O object) throws OBException {\r\n try {\r\n return object.store();\r\n\r\n } catch (IOException e) {\r\n throw new OBException(e);\r\n }\r\n ... | [
"0.79712844",
"0.78248394",
"0.76883763",
"0.7509373",
"0.7390928",
"0.73555243",
"0.73470074",
"0.71071553",
"0.7103108",
"0.70752394",
"0.70405906",
"0.6987496",
"0.69817835",
"0.6875322",
"0.68611723",
"0.68454874",
"0.6838904",
"0.6830774",
"0.680569",
"0.6790781",
"0.675... | 0.8316964 | 0 |
read an Object from a byte array, note that this mehtod will read from the beginning of the byte array, if no Object is read from the array, then null value is returned; | public static Object load(byte[] bytes) {
Object obj = null;
ByteArrayInputStream bais = new ByteArrayInputStream(bytes);
try {
ObjectInputStream ois = new ObjectInputStream(bais);
obj = ois.readObject();
} catch (IOException e) {
e.printStackTr... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static Object getObject(byte[] byteArr) throws IOException, ClassNotFoundException {\n\t\tObject object = SerializationUtils.deserialize(byteArr);\n\t\tByteArrayInputStream bis = new ByteArrayInputStream(byteArr);\n\t\tObjectInput in = new ObjectInputStream(bis);\n\t\t//return in.readObject();\n\t\treturn ... | [
"0.7779915",
"0.74097425",
"0.734447",
"0.72293097",
"0.69576246",
"0.67548066",
"0.6671326",
"0.6669605",
"0.66637707",
"0.6610141",
"0.65612334",
"0.65536547",
"0.6552",
"0.65503746",
"0.65503746",
"0.65503746",
"0.6542443",
"0.6538951",
"0.6511589",
"0.6491333",
"0.6474331... | 0.7214564 | 4 |
When dialog is created, attach UI components to their respective objects | @NonNull
@Override
public Dialog onCreateDialog(Bundle savedInstanceState) {
AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());
LayoutInflater inflater = getActivity().getLayoutInflater();
View rootView = inflater.inflate(R.layout.fragment_message_dialog, null);
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void makeDialog()\n\t{\n\t\tfDialog = new ViewOptionsDialog(this.getTopLevelAncestor());\n\t}",
"private void initDialog() {\n }",
"private void initializeUI() {\r\n this.parentFrame = game.getFrame();\r\n parentFrame.setEnabled(false); // Disable main game UI during the ending dialog.\r\n ... | [
"0.7185375",
"0.70677197",
"0.673856",
"0.6715098",
"0.65425664",
"0.6525858",
"0.64949185",
"0.6485693",
"0.6411037",
"0.6397749",
"0.6357916",
"0.6331307",
"0.63182795",
"0.63079745",
"0.6297974",
"0.6292725",
"0.62718636",
"0.6257895",
"0.62532437",
"0.6252384",
"0.6236434... | 0.0 | -1 |
Checks the number received from parent fragment and it sends the bundle back to the fragment that matches the number. | private void sendResult(int REQUEST_CODE) {
Intent intent = new Intent();
Bundle b = new Bundle();
b.putString(MESSAGE, msg.getText().toString());
intent.putExtras(b);
if(REQUEST_CODE == HomeFragment.REQUEST_CODE)
HomeFragment.onFragmentResult(getTargetRequestCode(),... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_phone_number, container, false);\n\n phoneEditText = view.findViewById(R.id.phone_number_edit_text_sign_in... | [
"0.56064117",
"0.54874414",
"0.53392464",
"0.5261875",
"0.52609605",
"0.5237886",
"0.5217204",
"0.5207635",
"0.5205883",
"0.51847106",
"0.51727",
"0.5169624",
"0.50801384",
"0.506955",
"0.505226",
"0.5042044",
"0.5031188",
"0.502808",
"0.5014431",
"0.5012941",
"0.49783325",
... | 0.0 | -1 |
if this is run in browser or as application override method to run own code for applet | @Override
public void init() {
//add the JLabel into the applet
add(labelShowNumberOfUsers);
//try and catch IOException for creating sockets and streams
try {
//connect to host on port 8000
socket = new Socket(host, 8000); //socket for creating a connection
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void initApplet() {\n\t}",
"public void init(){\n System.out.println(\"SampleApplet.init() executed\");\r\n }",
"static void setApp(PApplet _app){\n app = _app;\n }",
"private void startSubApplet(){\r\n try {\r\n subApplet = (Applet)Class.forName(subApple... | [
"0.69516736",
"0.61466473",
"0.6139145",
"0.60890263",
"0.6036929",
"0.602774",
"0.5931984",
"0.5866415",
"0.5800926",
"0.5793422",
"0.56782883",
"0.5669139",
"0.5613329",
"0.56107646",
"0.55896735",
"0.5574033",
"0.55339044",
"0.55227995",
"0.54956794",
"0.54774165",
"0.5464... | 0.0 | -1 |
try and catch IOException du to streams | @Override
public void run() {
while (true) {
try {
numberOfUsers = fromServer.readInt(); //readInt will pause/block code underneath till read
//write the number of users onto the JLabel
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void ensureOpen() throws IOException {\n if (out == null) {\n throw new IOException(\n/* #ifdef VERBOSE_EXCEPTIONS */\n/// skipped \"Stream closed\"\n/* #endif */\n );\n }\n }",
"OutputStream getOutputStream() throws IOException;",
"public vo... | [
"0.64326537",
"0.6141113",
"0.6134575",
"0.60422015",
"0.5981761",
"0.59373003",
"0.5910156",
"0.5892264",
"0.5892264",
"0.5892264",
"0.58887845",
"0.58519447",
"0.5766763",
"0.5696265",
"0.5682648",
"0.567267",
"0.5618782",
"0.5614565",
"0.5591683",
"0.5556278",
"0.552993",
... | 0.0 | -1 |
main method to run code | public static void main(String[] args) {
//Create a JFrame to show content
JFrame frame = new JFrame();
//create an instance of the applet
final ClientDisplayNumberOfUsers applet = new ClientDisplayNumberOfUsers();
applet.isStandAlone = true;
//get the host
if (... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void main() {\n \n }",
"public static void main()\n\t{\n\t}",
"public static void main(){\n\t}",
"public static void main(String... args) {\n doMain().run();\n }",
"public static void main() {\n }",
"public static void main(String[] args) {\n\t\t\n\t\tSystem.out.println(\"m... | [
"0.77315533",
"0.77311766",
"0.7652339",
"0.7494686",
"0.7351668",
"0.73153436",
"0.7286091",
"0.72584456",
"0.724482",
"0.7227878",
"0.7193885",
"0.71844345",
"0.71642196",
"0.71635413",
"0.71498454",
"0.7149374",
"0.7129279",
"0.71071845",
"0.7103308",
"0.70996875",
"0.7099... | 0.0 | -1 |
TODO Autogenerated method stub | private static String cal(int x, int y) {
int max =0;
if(Math.abs((int)x) > Math.abs((int)y)) max= Math.abs((int)x);
else max = Math.abs((int)y);
int max_code= max;
max = 2*max+1;
int n = max;
max = (int)Math.pow((double)max, (double)2);
int start = max;
int res;
if( x==max_code && y>... | {
"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 |
Find all with query. | @Test
void findAllWithQuery() {
DomainUser user0 = DomainUser.builder()
.userName("user0")
.build();
DomainUser user1 = DomainUser.builder()
.userName("user1")
.groups(Collections.singletonList("group1"))
.build();
when(ldaptiveTemplate.findAll(any(), any()))
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Collection<T> findAll();",
"List<E> queryAll(String namedQuery);",
"List<T> findAll() ;",
"List<T> findAll();",
"List<T> findAll();",
"List<T> findAll();",
"Iterable<T> findAll();",
"public static List<FoundObject> findAll() {\n\t\treturn getPersistence().findAll();\n\t}",
"public <T> List<T> findB... | [
"0.7277255",
"0.7188833",
"0.71183944",
"0.708716",
"0.708716",
"0.708716",
"0.6996576",
"0.69963443",
"0.6913323",
"0.6869588",
"0.6845248",
"0.6823126",
"0.672002",
"0.66989523",
"0.6692674",
"0.6692527",
"0.66588724",
"0.66588724",
"0.66588724",
"0.66497254",
"0.6632172",
... | 0.0 | -1 |
Find avatar and expect not found. | @Test
void findAvatarAndExpectNotFound() {
when(ldaptiveTemplate.findOne(any())).thenReturn(Optional.of(new LdapEntry()));
assertFalse(userRepository.findAvatar("somebody", AvatarDefault.NOT_FOUND, 20).isPresent());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\n void findAvatarAndExpectNoEmailAvatar() {\n when(ldaptiveTemplate.findOne(any())).thenReturn(Optional.of(new LdapEntry()));\n Optional<byte[]> actual = userRepository.findAvatar(\"somebody\", AvatarDefault.ROBOHASH, 20);\n assertTrue(actual.isPresent());\n }",
"@Test\n void findAvatarFromGrav... | [
"0.7597497",
"0.7048746",
"0.6400261",
"0.6400261",
"0.61623234",
"0.59734815",
"0.591204",
"0.57569665",
"0.575157",
"0.5717638",
"0.56967384",
"0.5696162",
"0.5696162",
"0.5685579",
"0.56838393",
"0.5676868",
"0.56691486",
"0.55884",
"0.5585869",
"0.5562392",
"0.5562176",
... | 0.7594248 | 1 |
Find avatar and expect no email avatar. | @Test
void findAvatarAndExpectNoEmailAvatar() {
when(ldaptiveTemplate.findOne(any())).thenReturn(Optional.of(new LdapEntry()));
Optional<byte[]> actual = userRepository.findAvatar("somebody", AvatarDefault.ROBOHASH, 20);
assertTrue(actual.isPresent());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Optional<String> avatar() {\n this.use();\n\n return Optional.ofNullable(avatar);\n }",
"@Test\n void findAvatarFromGravatar() {\n LdapEntry ldapEntry = new LdapEntry();\n ldapEntry.addAttribute(new LdapAttribute(\"mail\", \"someone@example.org\"));\n when(ldaptiveTemplate.findO... | [
"0.70973057",
"0.6955434",
"0.6828047",
"0.666283",
"0.662465",
"0.662465",
"0.6470886",
"0.6470886",
"0.6470886",
"0.6470886",
"0.64393663",
"0.64393663",
"0.6392953",
"0.6382362",
"0.6346599",
"0.6300981",
"0.6272963",
"0.6268095",
"0.6237248",
"0.6236135",
"0.6199889",
"... | 0.7466249 | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.