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
Set a property indicating whther that the credit card verification is required. This is used in the store during checkout.
public void setRequireCreditCardVerification(boolean pRequireCreditCardVerification) { mRequireCreditCardVerification = pRequireCreditCardVerification; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setRequired(boolean value) {\r\n this.required = value;\r\n }", "void setRequired(boolean required);", "final void setProtection(boolean required)\r\n {\r\n requires_PRO = required;\r\n }", "public void setRequired(boolean required);", "public void setRequired(boolean required) {...
[ "0.66857433", "0.6545964", "0.65381855", "0.6523049", "0.64767265", "0.6460119", "0.6449443", "0.6361603", "0.63110757", "0.6308858", "0.62904644", "0.6167898", "0.5937487", "0.58501714", "0.5842784", "0.5836084", "0.58328104", "0.58032125", "0.57623976", "0.5745649", "0.5714...
0.7572623
0
Determines whether debug logging has been configured to be enabled.
public boolean isDojoDebug() { return mDojoDebug; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static boolean isDebugEnabled() {\n\n return debugLogger.isDebugEnabled();\n }", "public final boolean isDebugOn()\n {\n return this.getPropertyValue(GUILoggerSeverityProperty.DEBUG);\n }", "public boolean isDebugEnabled()\n/* */ {\n/* 250 */ return getLogger().isDebugEn...
[ "0.8148127", "0.7913323", "0.7884066", "0.76556915", "0.7640169", "0.75231427", "0.7471137", "0.74099535", "0.74099535", "0.7392321", "0.73897547", "0.73142684", "0.72735715", "0.7272979", "0.7272979", "0.7251527", "0.71533054", "0.7140585", "0.7126818", "0.7120144", "0.70933...
0.64437777
52
Sets a property stating that debug logging should be enable in the Dojo Toolkit.
public void setDojoDebug(boolean pDojoDebug) { mDojoDebug = pDojoDebug; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final void setDebug() {\r\n setLevel(org.apache.log4j.Level.DEBUG);\r\n }", "void setDebugEnabled(boolean value) {\r\n debug_enabled = value;\r\n }", "public void enableDebug() {\n this.debug = true;\n }", "public void setDebug(boolean b) { debug = b; }", "public void setDebug(bool...
[ "0.75484914", "0.7395852", "0.7273516", "0.7244237", "0.72195005", "0.71109647", "0.70828885", "0.69610935", "0.6936882", "0.6925744", "0.6918478", "0.68916196", "0.68449545", "0.68366873", "0.6810533", "0.6810533", "0.6806169", "0.6788544", "0.67859066", "0.67679375", "0.676...
0.7052499
7
Returns the list of configured country codes that are mandatory. Used when shopper creates billing and shipping addresses. These indicate when the state property of the address is a mandatory field.
public List<String> getMandatoryStateCountryList() { return mMandatoryStateCountryList; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setMandatoryStateCountryList(List<String> pMandatoryStateCountryList) {\n mMandatoryStateCountryList = pMandatoryStateCountryList;\n }", "public List<String> supportedCountries() {\n final List<String> countryCodes = new ArrayList<>(bbanStructures.size());\n for (BbanStructureDTO st...
[ "0.6075835", "0.5903679", "0.57933605", "0.5681221", "0.5681221", "0.5679605", "0.5567092", "0.5567092", "0.5510834", "0.5510834", "0.54772466", "0.54578567", "0.5450284", "0.54227924", "0.53993005", "0.53982306", "0.53982306", "0.53439134", "0.53307486", "0.5317962", "0.5317...
0.7152223
0
Sets the list of configured country codes that are mandatory. Used when shopper creates billing and shipping addresses. These indicate when the state property of the address is a mandatory field.
public void setMandatoryStateCountryList(List<String> pMandatoryStateCountryList) { mMandatoryStateCountryList = pMandatoryStateCountryList; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setCountries(List<Country> countries)\n {\n this.countries = countries;\n\n countriesMap = countries.stream().\n filter(c -> !\"-99\".equals(c.getIsoCode())).\n collect(Collectors.toMap(Country::getIsoCode, Function.identity()));\n\n LOGGER.info(\"Stored {}...
[ "0.6290617", "0.61745256", "0.61718386", "0.61245537", "0.6113221", "0.6105057", "0.60961986", "0.60566026", "0.60223436", "0.60195994", "0.60029083", "0.60004306", "0.59165627", "0.5911476", "0.5864404", "0.5851967", "0.5851967", "0.58473176", "0.58067375", "0.5786351", "0.5...
0.70305467
0
Sets the name of the HTTP server.When running of an internal facing instance this should be configured to the production instance. It's used for the generation of external links e.g. those that are sent out in email.
public void setSiteHttpServerName(String pSiteHttpServerName) { mSiteHttpServerName = pSiteHttpServerName; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setName (String name) {\n this.name = name;\n NameRegistrar.register (\"server.\"+name, this);\n }", "public void setServerName(String serverName){\n this.serverName = serverName;\n }", "public void setServerName(final String serverName) {\n this.serverName = serverNam...
[ "0.7285146", "0.6908866", "0.68128484", "0.6797455", "0.6729238", "0.6718365", "0.6674059", "0.65759003", "0.64467824", "0.6433057", "0.6430243", "0.63709426", "0.6247993", "0.62353826", "0.61710435", "0.6140272", "0.6140272", "0.6117464", "0.60892606", "0.60883296", "0.60745...
0.6557678
8
Returns the name of the HTTP server. When running of an internal facing instance this should be configured to the production instance. It's used for the generation of external links e.g. those that are sent out in email.
public String getSiteHttpServerName() { return mSiteHttpServerName; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getServername() {\r\n return servername;\r\n }", "public String getServerName() {\n if (server == null) {\n final String version = OpenEjbVersion.get().getVersion();\n final String os = System.getProperty(\"os.name\") + \"/\" + System.getProperty(\"os.version\...
[ "0.74535936", "0.73156667", "0.730189", "0.7197111", "0.7181156", "0.71589714", "0.7150648", "0.7139653", "0.7126989", "0.7126989", "0.7107937", "0.7023816", "0.701307", "0.6964551", "0.69366586", "0.69124466", "0.68849325", "0.68822336", "0.6876154", "0.68070203", "0.6773892...
0.7266547
3
Sets the port number of the HTTP server. When running of an internal facing instance this should be configured to the production instance. It's used for the generation of external links e.g. those that are sent out in email. Sets the port of the HTTP server.
public void setSiteHttpServerPort(int pSiteHttpServerPort) { mSiteHttpServerPort = pSiteHttpServerPort; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setServerPort(int serverPort) {\n this.serverPort = serverPort;\n }", "public void setServer(int port) {\n this.server = port;\n }", "@Parameter(optional=true, description=\"Port number for the embedded Jetty HTTP server, default: \\\\\\\"\" + ServletEngine.DEFAULT_PORT ...
[ "0.8017567", "0.7959048", "0.79269797", "0.78195745", "0.78049415", "0.7735967", "0.7721644", "0.75833416", "0.7526686", "0.7508343", "0.750116", "0.750116", "0.750116", "0.750116", "0.750116", "0.750116", "0.74819773", "0.74819773", "0.74652624", "0.7453089", "0.74507", "0...
0.74411464
22
Returns the port number of the HTTP server. When running of an internal facing instance this should be configured to the production instance. It's used for the generation of external links e.g. those that are sent out in email.
public int getSiteHttpServerPort() { return mSiteHttpServerPort; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getHttpPort() {\n return httpServer.getPort();\n }", "public static int getServerPort() {\n return _serverPort;\n }", "public int getServerPortNumber(){\n return this.serverPortNumber;\n }", "public static int getServerPort() {\n return serverPort;\n }", "...
[ "0.8235176", "0.8224679", "0.8212177", "0.8205399", "0.8193774", "0.8164073", "0.8114819", "0.81011146", "0.80822825", "0.8002187", "0.7991916", "0.79383415", "0.7897936", "0.7896748", "0.7886073", "0.7791272", "0.7766935", "0.77581185", "0.77521366", "0.77449393", "0.7686146...
0.7565145
21
Sets the location of the default resource bundle. This is used if no resource bundle is defined in the site configuration repository item.
public void setDefaultResourceBundle(String pDefaultResourceBundle) { mDefaultResourceBundle = pDefaultResourceBundle; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setBundleLocation(String bundleLocation) {\n this.bundleLocation = bundleLocation;\n }", "private void loadDefaultConfig() {\r\n ResourceBundle bundle = ResourceLoader.getProperties(DEFAULT_CONFIG_NAME);\r\n if (bundle != null) {\r\n putAll(bundle);\r\n } els...
[ "0.612458", "0.61179566", "0.5898209", "0.58385974", "0.571081", "0.5682681", "0.56149644", "0.5592436", "0.5572433", "0.5571669", "0.5531163", "0.5514842", "0.55016553", "0.55016553", "0.55016553", "0.55016553", "0.55016553", "0.55016553", "0.55016553", "0.55016553", "0.5479...
0.6591862
0
Returns the location of the default resource bundle. This is used if no resource bundle is defined in the site configuration repository item.
public String getDefaultResourceBundle() { return mDefaultResourceBundle; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getDefaultResourceFileName() \n {\n return null; \n }", "public String getBundleLocation() {\n return bundleLocation;\n }", "abstract public ResourceManager getDefaultConfig();", "public String getResourceLocation() {\n return resourceLocation;\n }", "...
[ "0.63783073", "0.6349521", "0.60589707", "0.60071737", "0.59383506", "0.5762777", "0.57169867", "0.56857115", "0.56560993", "0.56515795", "0.56289345", "0.5554605", "0.55322766", "0.54937273", "0.5452751", "0.5448953", "0.5447714", "0.54336524", "0.5389006", "0.5388627", "0.5...
0.6481286
0
Sets the location of the default css file(s). This is used if no CSS location is defined in the site configuration repository item
public void setDefaultCssFile( String pDefaultCssFile ) { mDefaultCssFile = pDefaultCssFile; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getDefaultCssFile() {\n return mDefaultCssFile;\n }", "public abstract String getDefaultStylesheet ();", "public void setDefaultStylesheet() {\n\n\t\tsetAttribute(\"stylesheet\", \"node { \"\n\t\t\t//\t+ \"size: 10px;\"\n\t\t\t\t+ \"size: 10px, 10px;\"\n\t\t\t\t+ \"fill-mode: dyn-plain; \"\n\...
[ "0.63323987", "0.59085536", "0.5636047", "0.552781", "0.54041064", "0.5285788", "0.51634276", "0.5134439", "0.50845134", "0.5062416", "0.5040475", "0.50128037", "0.50092006", "0.5003422", "0.4912006", "0.48440123", "0.48439786", "0.48134932", "0.4812016", "0.4804904", "0.4803...
0.7016285
0
Gets the location of the default css file(s). This is used if no CSS location is defined in the site configuration repository item
public String getDefaultCssFile() { return mDefaultCssFile; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract String getDefaultStylesheet ();", "public static File getFileToLoad() {\n\t\treturn new File(System.getProperty(\"user.home\") + File.separatorChar + \"Documents\" + File.separatorChar + \"main.css\");\n\t\t//return null;\n\t}", "public void setDefaultCssFile( String pDefaultCssFile ) {\n mD...
[ "0.61377907", "0.60731274", "0.59283346", "0.57097375", "0.5528884", "0.5463841", "0.5436381", "0.5254272", "0.5239819", "0.5220789", "0.5195823", "0.51841676", "0.51092446", "0.50667083", "0.50646645", "0.5044017", "0.5007519", "0.49794745", "0.4973279", "0.49673223", "0.496...
0.7431559
0
Sets the store epoch date. The epochDate property must follow the epochDatePattern property format.
public void setEpochDate( String pEpochDate ) { mEpochDate = pEpochDate; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getEpochDate() {\n return mEpochDate;\n }", "public void setEpochDatePattern( String pEpochDatePattern ) {\n mEpochDatePattern = pEpochDatePattern;\n }", "String getDate() { return epoch; }", "public Date getEpochDateAsDate() {\n if ( mEpochDateAsDate == null ) {\n SimpleDateFor...
[ "0.71228033", "0.68441814", "0.66339815", "0.6545384", "0.6378003", "0.61734056", "0.58793676", "0.58679944", "0.58565235", "0.5775789", "0.5768164", "0.57426924", "0.5680984", "0.56523454", "0.5616766", "0.55866647", "0.5584218", "0.55745643", "0.55082226", "0.54363847", "0....
0.7830946
0
Returns the store epoch date represented as a String object.
public String getEpochDate() { return mEpochDate; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getDate() { return epoch; }", "public Date getEpochDateAsDate() {\n if ( mEpochDateAsDate == null ) {\n SimpleDateFormat dateFormat = new SimpleDateFormat( getEpochDatePattern() );\n mEpochDateAsDate = dateFormat.parse( getEpochDate(), \n new ParsePos...
[ "0.79494256", "0.6556745", "0.6223795", "0.621902", "0.6057662", "0.5893859", "0.5859103", "0.5857407", "0.5842112", "0.58055204", "0.58055204", "0.5773712", "0.57657874", "0.57236856", "0.57151943", "0.57126564", "0.56998736", "0.5647415", "0.5635377", "0.557787", "0.5572299...
0.7392802
1
Sets the date pattern defining the date format for the epochDate property. The epochDate property must follow the epochDatePattern property format.
public void setEpochDatePattern( String pEpochDatePattern ) { mEpochDatePattern = pEpochDatePattern; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getEpochDatePattern() {\n return mEpochDatePattern;\n }", "public void setEpochDate( String pEpochDate ) {\n mEpochDate = pEpochDate;\n }", "public void setDatePattern(String datePattern)\r\n\t{\r\n\t\tthis.datePattern = datePattern;\r\n\t}", "public ValidatorFactory setDateFormat(Strin...
[ "0.754276", "0.6404532", "0.59109175", "0.58051497", "0.5340756", "0.5317811", "0.50434744", "0.49914798", "0.4952493", "0.48987582", "0.4793559", "0.47897542", "0.4670383", "0.46531254", "0.4631563", "0.46027386", "0.45906606", "0.45787096", "0.45495963", "0.45391345", "0.45...
0.87037635
0
Returns the date pattern defining the date format for the epochDate property. The epochDate property must follow the epochDatePattern property format.
public String getEpochDatePattern() { return mEpochDatePattern; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setEpochDatePattern( String pEpochDatePattern ) {\n mEpochDatePattern = pEpochDatePattern;\n }", "public Date getEpochDateAsDate() {\n if ( mEpochDateAsDate == null ) {\n SimpleDateFormat dateFormat = new SimpleDateFormat( getEpochDatePattern() );\n mEpochDateAsDate = dateFormat.pars...
[ "0.7633993", "0.6328775", "0.6077979", "0.5822296", "0.56914556", "0.5562822", "0.5539703", "0.5260872", "0.5259708", "0.50449336", "0.49171558", "0.49029654", "0.47963732", "0.473992", "0.4712679", "0.46424034", "0.46393594", "0.46226814", "0.46219358", "0.45929575", "0.4531...
0.8115381
0
Returns the epochDate property represented as a Date object.
public Date getEpochDateAsDate() { if ( mEpochDateAsDate == null ) { SimpleDateFormat dateFormat = new SimpleDateFormat( getEpochDatePattern() ); mEpochDateAsDate = dateFormat.parse( getEpochDate(), new ParsePosition(0) ); } return mEpochDateAsDate; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getEpochDate() {\n return mEpochDate;\n }", "String getDate() { return epoch; }", "public void setEpochDate( String pEpochDate ) {\n mEpochDate = pEpochDate;\n }", "@Test\n public void getEpochDay() {\n assertEquals(MinguoDate.of(110, 5, 19), MinguoChronology.INSTANCE.dateEpoc...
[ "0.7953154", "0.77948105", "0.68942094", "0.664256", "0.63219905", "0.6198622", "0.61662084", "0.61185586", "0.60400414", "0.599565", "0.5983839", "0.5849158", "0.57881933", "0.5748884", "0.57410496", "0.57181156", "0.5716049", "0.5710214", "0.5710214", "0.569491", "0.5688569...
0.8180149
0
Returns the list of supported credit card types.
public List<String> getSupportedCreditCardTypes() { return mSupportedCreditCardTypes; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String setCardTypes()\n\t{\n\t\tString creditCards = \"vi-mc\";\n\t\tcreditCards = (DISCOVER_IMAGE == \"discvr.gif\") ? (creditCards + \"-di\") : creditCards;\n\t\tcreditCards = (AMEX_IMAGE == \"amex.gif\") ? (creditCards + \"-am\") : creditCards;\n\t\treturn creditCards;\n\t}", "public void setSupportedC...
[ "0.72178316", "0.7051966", "0.689042", "0.6473996", "0.62994933", "0.6287921", "0.6268604", "0.62111926", "0.6199311", "0.6049129", "0.60266566", "0.60073715", "0.5993732", "0.5954985", "0.58866465", "0.5828697", "0.5827354", "0.58161366", "0.58005214", "0.5783326", "0.577540...
0.8500915
0
Sets the list of supported credit card types.
public void setSupportedCreditCardTypes(List<String> pSupportedCreditCardTypes) { mSupportedCreditCardTypes = pSupportedCreditCardTypes; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String setCardTypes()\n\t{\n\t\tString creditCards = \"vi-mc\";\n\t\tcreditCards = (DISCOVER_IMAGE == \"discvr.gif\") ? (creditCards + \"-di\") : creditCards;\n\t\tcreditCards = (AMEX_IMAGE == \"amex.gif\") ? (creditCards + \"-am\") : creditCards;\n\t\treturn creditCards;\n\t}", "public List<String> getSu...
[ "0.6845029", "0.6797601", "0.67631316", "0.6216405", "0.6048768", "0.56479585", "0.562239", "0.5561732", "0.55073094", "0.5457847", "0.5393803", "0.5349167", "0.5335542", "0.5291529", "0.5227879", "0.5211833", "0.52023727", "0.5198312", "0.5196268", "0.51907843", "0.5145643",...
0.81278086
0
It's easier on the eyes to use single quotes rather than escaped double quotes; this then converts into valid JSON
public static String replaceQuotes(String orig) { return orig.replaceAll("'", "\""); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static String getStringJsonEscaped(String str) {\n JsonStringEncoder e = JsonStringEncoder.getInstance();\n StringBuilder sb = new StringBuilder();\n e.quoteAsString(str, sb);\n return sb.toString();\n }", "public static String jsonQuote(String value) {\n\tif (value == null)\n\t ...
[ "0.71248883", "0.6960841", "0.67515093", "0.6631659", "0.64434", "0.6430687", "0.6398738", "0.6396943", "0.62905496", "0.6144118", "0.6137283", "0.6105194", "0.60143983", "0.5954792", "0.5907591", "0.5869652", "0.5845897", "0.58385354", "0.5833602", "0.5832891", "0.5828346", ...
0.0
-1
write your code here
public static void main(String[] args) { String inputFile = "data/input.txt"; String outputFile = "data/output.txt"; String studentInfo = "data/students_info.txt"; String studentData = ""; BufferedReader reader = null; String[] data = null; boolean sex = false; try { reader = new BufferedReader(new FileReader(studentInfo)); studentData = reader.readLine(); data = studentData.split(" "); } catch (Exception e) { e.printStackTrace(); } if (data[3].equals("1")) { sex = true; } Student testStudent1 = new Student(Integer.parseInt(data[0]),data[1],sex,Integer.parseInt(data[3])); testStudent1.doHomework(inputFile,outputFile,"Со"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void logic(){\r\n\r\n\t}", "public static void generateCode()\n {\n \n }", "@Override\n\tprotected void logic() {\n\n\t}", "private static void cajas() {\n\t\t\n\t}", "void pramitiTechTutorials() {\n\t\n}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\r\n\tpub...
[ "0.61019534", "0.6054925", "0.58806974", "0.58270746", "0.5796887", "0.56999695", "0.5690986", "0.56556827", "0.5648637", "0.5640487", "0.56354505", "0.56032085", "0.56016207", "0.56006724", "0.5589654", "0.5583692", "0.55785793", "0.55733466", "0.5560209", "0.55325305", "0.5...
0.0
-1
Here we are returning an object of type 'Vets' rather than a collection of Vet objects so it is simpler for ObjectXml mapping
@GetMapping("/vets.html") public String showVetList(Map<String, Object> model) { Vets vets = new Vets(); List<Vet> allVets = (List<Vet>) vetRepository.findAll(); Collections.sort(allVets, Comparator.comparing(vet -> vet.getFirstName())); vets.getVetList().addAll(allVets); model.put("vets", vets); return "vets/vetList"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<Vet> getAllVets() {\n\t\tentityManager = JPAUtils.getEntityManager();\n\t\tentityManager.getTransaction().begin();\n\t\tvets = entityManager.createQuery(\"from Vet\", Vet.class).getResultList();\n\t\tentityManager.getTransaction().commit();\n\t\tentityManager.close();\n\t\treturn vets;\n\t}", "privat...
[ "0.6116283", "0.5738142", "0.5654772", "0.5521792", "0.53627324", "0.5218932", "0.5217166", "0.51861906", "0.5108026", "0.50675154", "0.50363404", "0.5031501", "0.50308686", "0.50226676", "0.5012794", "0.49960205", "0.49731633", "0.49593535", "0.4953455", "0.4950011", "0.4925...
0.5237089
5
Here we are returning an object of type 'Vets' rather than a collection of Vet objects so it is simpler for JSon/Object mapping
@GetMapping({ "/vets" }) public @ResponseBody Vets showResourcesVetList() { Vets vets = new Vets(); vets.getVetList().addAll(this.vetRepository.findAll()); return vets; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<Vet> getAllVets() {\n\t\tentityManager = JPAUtils.getEntityManager();\n\t\tentityManager.getTransaction().begin();\n\t\tvets = entityManager.createQuery(\"from Vet\", Vet.class).getResultList();\n\t\tentityManager.getTransaction().commit();\n\t\tentityManager.close();\n\t\treturn vets;\n\t}", "protec...
[ "0.6013566", "0.5838809", "0.56907684", "0.5644434", "0.5498723", "0.54599965", "0.52851695", "0.5281442", "0.52071726", "0.520484", "0.5168463", "0.5128191", "0.5126084", "0.5103975", "0.50827897", "0.5053932", "0.5044547", "0.5001348", "0.49978402", "0.49793583", "0.4967961...
0.58106714
2
we declare and initialize an array
public static void main(String[] args) { int [] array = {10,20,30,40}; // index starts with 0 1 2 3 .... System.out.println(array[2]); // find the size of the array System.out.println(array.length); // 4 ( because 4 values in the [] ) // create string of names - 5; // we can access them based on indexes... String [] names = { "John", "Mike", "Jane", "Alexaneru", "Olga"}; System.out.println("there are " + names.length + " values in my array of my names"); System.out.println(names[2]); //int[] numbers; // numbers = {2,3,4,5}; ---> wrong // when we are using curly braces, we need to be in the same line; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Array() {\n\t\tarray = new int[0];\n\t}", "Array createArray();", "public static void arrayDeclarationInitialization() {\n\n double[] arrayOfDoubles = new double[] { 12.56, 45.87, 14.85 };\n\n // This is also ok.\n\n int[] arrayOfInts = { 12, 21, 0, 5, 7 };\n\n int[] i = new int[10 ...
[ "0.72762716", "0.71360165", "0.71168375", "0.6993478", "0.69000804", "0.68937343", "0.68539745", "0.6768475", "0.6748332", "0.67366266", "0.6731465", "0.66953915", "0.66871613", "0.66848737", "0.6653957", "0.66375613", "0.6613288", "0.6597463", "0.65932155", "0.65692466", "0....
0.0
-1
Method helps to switch the window
public boolean isEquellContentPage() throws Exception { flag = false; try { logInstruction("LOG INSTRUCTION : CHECKING FOR EQUELLA CONTENT PAGE "); uiDriver.getUIWindowLocator().switchToNewWindow(); uiDriver.getUIFrameLocator().selectFrame("popupcontent"); uiDriver.waitToBeDisplayed(isEquella, waitTime); String data = isEquella.getText().trim(); if (data.contains("Add Content from Equella")) flag = true; uiDriver.close(); uiDriver.getUIWindowLocator().switchToFirstWindow(); } catch (Exception e) { throw new Exception("UNABLE TO GET THE TEXT OF HEADER \n METHOD :isEquellContentPage"); } return flag; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void SwitchToWindow(String handle)\n\t{\n\t}", "public void switchToDefaultWindow() {\n\n\t}", "public void switchToWindow(int index) {\n\t\ttry {\r\n\t\t\tSet<String> allWindows = getter().getWindowHandles();\r\n\t\t\tList<String> allhandles = new ArrayList<String>(allWindows);\r\n\t\t\tString windowIn...
[ "0.7737788", "0.7686098", "0.7405624", "0.69962937", "0.68120444", "0.6780441", "0.6728211", "0.6716508", "0.6640086", "0.6609914", "0.6604348", "0.65612215", "0.6560508", "0.6542208", "0.6518286", "0.6502044", "0.6494237", "0.64927214", "0.64859354", "0.6485916", "0.64833605...
0.0
-1
Returns the value of the 'Inizialized Function Name' attribute.
String getInizializedFunctionName();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getName() {\n return m_function.getName();\n }", "public String getName()\n {\n return m_functionName;\n }", "public String getFuncName() {\n return funcName;\n }", "public String getFuncname() {\r\n return funcname;\r\n }", "public String getFunctionName() {\...
[ "0.72020525", "0.7196345", "0.7066486", "0.7048547", "0.69796985", "0.6882234", "0.68327427", "0.65793365", "0.6491991", "0.6446226", "0.6374833", "0.6313709", "0.6292487", "0.6256273", "0.61155266", "0.61134803", "0.6104449", "0.60694844", "0.60117424", "0.6009666", "0.59959...
0.78643095
0
Returns the value of the 'Body' containment reference.
Term getBody();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getBody() {\r\n\t\treturn mBody;\r\n\t}", "public Object getBody() {\n return body;\n }", "public Body getBody() {\n return body;\n }", "public String getBody() {\n\t\treturn Body;\n\t}", "public String getBody () {\n\t\treturn body;\n\t}", "public String getBody...
[ "0.74174863", "0.7411203", "0.7341126", "0.7333961", "0.7109697", "0.70849067", "0.707255", "0.707255", "0.707255", "0.70511365", "0.70282793", "0.7000054", "0.69719815", "0.69646245", "0.6925693", "0.6841236", "0.6841089", "0.6834172", "0.683019", "0.6786219", "0.6691088", ...
0.5882312
72
Returns a constant from Suits enumeration that represents the color of the card.
public Suits getSuit() { return suit; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Color color(){\n return PackedCard.color(this.nbCard);\n }", "public Card.Color color() {\n return PackedCard.color(packedCard);\n }", "public CardColor getColor() {\n return this.color;\n }", "public static interface CardColors{\n public static final Color RGBA_0 = new ...
[ "0.74053407", "0.72094756", "0.7096034", "0.7022566", "0.6884925", "0.6884925", "0.6884925", "0.6884925", "0.6884925", "0.6868904", "0.686137", "0.6852164", "0.67999583", "0.67999583", "0.6738134", "0.67375755", "0.67335504", "0.6717178", "0.6693136", "0.6693136", "0.6685832"...
0.0
-1
Returns card value, a number between 1 and 13.
public int getValue() { return value; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getValue() {\n\t\tif (!this.isCard()) {\n\t\t\tSystem.out.println(\"Error! \" + id + \" isn't a card!\");\n\t\t\treturn 0;\n\t\t} else if (id % 13 != 0)\n\t\t\treturn id % 13;\n\t\telse\n\t\t\treturn 13;\n\t}", "public int getCardValue(int card) {\n\t\tint result = card;\n\t\tswitch (card) {\n\t\tcase...
[ "0.8043214", "0.7811249", "0.7739293", "0.7366592", "0.7304593", "0.72570676", "0.71784556", "0.6992145", "0.6774263", "0.6698647", "0.66808", "0.6655587", "0.65983325", "0.6524373", "0.65098095", "0.64711666", "0.6452075", "0.6439822", "0.64188236", "0.6417608", "0.62601495"...
0.0
-1
Shows enumeration value in lower case with first letter capitalized
@Override public String toString() { String strSuit = suit.toString().substring(0, 1); strSuit += suit.toString().toLowerCase() .substring(1, suit.toString().length()); return strSuit + value; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String out_name(Enum<?> e) {\n return e.name().toLowerCase();\n }", "public static String formatEnumName(String name) {\n String[] words = name.replace('_', ' ').split(\"\\\\s\");\n StringBuilder formatted = new StringBuilder(name.length());\n for (String word : words) {\n ...
[ "0.74256194", "0.6678963", "0.65261835", "0.6484679", "0.6289981", "0.62747943", "0.6255845", "0.6238478", "0.62372345", "0.62230396", "0.61936074", "0.6182525", "0.61672753", "0.6095422", "0.6092653", "0.6045336", "0.60422707", "0.6037866", "0.6019482", "0.5993813", "0.59804...
0.0
-1
Creates an instance of AzureStorageContainer class.
public AzureStorageContainer() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static CloudBlobContainer getContainer() throws Exception {\n\r\n CloudStorageAccount storageAccount = CloudStorageAccount\r\n .parse(storageConnectionString);\r\n\r\n // Create the blob client.\r\n CloudBlobClient blobClient = storageAccount.createCloudBlobClient();\r\n...
[ "0.6074796", "0.60450405", "0.5934523", "0.58448666", "0.5601915", "0.5543166", "0.54045945", "0.5289281", "0.5261513", "0.5205695", "0.5195398", "0.51771986", "0.51766044", "0.51158947", "0.5087757", "0.5063495", "0.50542355", "0.50479543", "0.50433785", "0.50385445", "0.503...
0.83575225
0
Get the sourceResourceId property: Fully qualified ARM url.
public String sourceResourceId() { return this.sourceResourceId; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String sourceUri() {\n return this.sourceUri;\n }", "public String getSource() {\n\t\treturn this.uri.toString();\n\t}", "public String getSourceResource() {\r\n\t\treturn requestSource;\r\n\t}", "@Path(\"sourceId/\")\n public SourceResource getSourceIdResource() {\n SourceIdResour...
[ "0.7120448", "0.69930464", "0.689941", "0.6885025", "0.6829965", "0.6817238", "0.6790123", "0.6790123", "0.6777356", "0.67756736", "0.65881133", "0.65830934", "0.65752214", "0.6568482", "0.6488338", "0.64865273", "0.6478008", "0.6451986", "0.64398146", "0.6437151", "0.6416364...
0.79498273
1
Set the sourceResourceId property: Fully qualified ARM url.
public AzureStorageContainer withSourceResourceId(String sourceResourceId) { this.sourceResourceId = sourceResourceId; return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String sourceResourceId() {\n return this.sourceResourceId;\n }", "public String sourceResourceId() {\n return this.sourceResourceId;\n }", "public void setSourceId(String source) {\n this.sourceId = sourceId;\n }", "public void setResourceId(String resourceId) {\n ...
[ "0.68866706", "0.68866706", "0.63972545", "0.6323735", "0.6323735", "0.63081175", "0.6233019", "0.62195504", "0.6192526", "0.6192526", "0.6159623", "0.6096179", "0.6071099", "0.6042285", "0.60332185", "0.60194993", "0.6017391", "0.5996373", "0.5957562", "0.5929128", "0.592020...
0.57467663
38
Get the storageAccountVersion property: Storage account version.
public String storageAccountVersion() { return this.storageAccountVersion; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String storageAccount() {\n return this.storageAccount;\n }", "public StorageAccount storageAccount() {\n return this.storageAccount;\n }", "public StorageAccount storageAccount() {\n return this.storageAccount;\n }", "public int getVersion()\n {\n return encryp...
[ "0.61893815", "0.60275733", "0.60275733", "0.59326553", "0.5848152", "0.5815192", "0.5728959", "0.5728959", "0.5728959", "0.5728959", "0.5710245", "0.5710245", "0.5710245", "0.5710245", "0.5710245", "0.5710245", "0.57082605", "0.5675631", "0.5660537", "0.5660537", "0.56569374...
0.8646335
0
Set the storageAccountVersion property: Storage account version.
public AzureStorageContainer withStorageAccountVersion(String storageAccountVersion) { this.storageAccountVersion = storageAccountVersion; return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String storageAccountVersion() {\n return this.storageAccountVersion;\n }", "public void setVersion(int version)\n {\n encryptionDictionary.setInt( \"V\", version );\n }", "public final void setVersion(String version) {\n this.version = version;\n }", "public void setV...
[ "0.66304547", "0.6111134", "0.5690452", "0.5671488", "0.5663193", "0.5652311", "0.5652311", "0.56423914", "0.56423914", "0.56423914", "0.56423914", "0.56423914", "0.56423914", "0.5628513", "0.5624613", "0.5622232", "0.56049615", "0.5590721", "0.55693555", "0.55693555", "0.556...
0.6885689
0
Get the resourceGroup property: Resource group name of Recovery Services Vault.
public String resourceGroup() { return this.resourceGroup; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Schema(description = \"name of the linked resource group, if there is a link\")\n public String getResourceGroupName() {\n return resourceGroupName;\n }", "@Required\n public ResourceGroupResource getResourceGroup() {\n return resourceGroup;\n }", "String resourceGroupName();", "String res...
[ "0.6907299", "0.6791356", "0.6643724", "0.6643724", "0.6643724", "0.6643724", "0.6643724", "0.6549782", "0.6375448", "0.6330586", "0.6268721", "0.62596136", "0.62405336", "0.62316555", "0.62316555", "0.6210558", "0.6208289", "0.6189037", "0.6189037", "0.6184322", "0.61622304"...
0.7649839
0
Set the resourceGroup property: Resource group name of Recovery Services Vault.
public AzureStorageContainer withResourceGroup(String resourceGroup) { this.resourceGroup = resourceGroup; return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String resourceGroup() {\n return this.resourceGroup;\n }", "@Required\n public ResourceGroupResource getResourceGroup() {\n return resourceGroup;\n }", "public void setGroupname(java.lang.String newGroupname) {\n\tgroupname = newGroupname;\n}", "public void setGroupName(String ...
[ "0.6121891", "0.5938587", "0.57397366", "0.5702268", "0.5639146", "0.56356734", "0.5625641", "0.56219083", "0.5537648", "0.55142146", "0.5414958", "0.539285", "0.5334615", "0.5295633", "0.528541", "0.5275282", "0.5268634", "0.5244341", "0.5244341", "0.52322006", "0.5189119", ...
0.5857808
2
Get the protectedItemCount property: Number of items backed up in this container.
public Long protectedItemCount() { return this.protectedItemCount; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Integer getTotalItemCount() {\n return totalItemCount;\n }", "public AzureStorageContainer withProtectedItemCount(Long protectedItemCount) {\n this.protectedItemCount = protectedItemCount;\n return this;\n }", "public int getItemsCount() {\n return items_.size();\n }",...
[ "0.70415944", "0.69993436", "0.680884", "0.680884", "0.6802272", "0.6796758", "0.67068535", "0.66406167", "0.66303396", "0.6600612", "0.65914106", "0.65506476", "0.6544392", "0.65017456", "0.6476313", "0.6464716", "0.6459021", "0.64583975", "0.64583975", "0.6444198", "0.64340...
0.86882615
0
Set the protectedItemCount property: Number of items backed up in this container.
public AzureStorageContainer withProtectedItemCount(Long protectedItemCount) { this.protectedItemCount = protectedItemCount; return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Long protectedItemCount() {\n return this.protectedItemCount;\n }", "public void setTotalItemCount(Integer totalItemCount) {\n this.totalItemCount = totalItemCount;\n }", "public void setPageItemCount(Integer pageItemCount) {\n this.pageItemCount = pageItemCount;\n }", "p...
[ "0.7371295", "0.6106742", "0.5872875", "0.58551633", "0.56514627", "0.55503863", "0.554048", "0.5409785", "0.53982556", "0.53982556", "0.53982556", "0.5255959", "0.52387923", "0.52252424", "0.5210488", "0.5174071", "0.51708305", "0.514955", "0.5149433", "0.5149433", "0.514161...
0.7927125
0
Get the acquireStorageAccountLock property: Whether storage account lock is to be acquired for this container or not.
public AcquireStorageAccountLock acquireStorageAccountLock() { return this.acquireStorageAccountLock; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "LockStorage getLockStorage();", "public Lock getLock() {\n return lock;\n }", "public AzureStorageContainer withAcquireStorageAccountLock(AcquireStorageAccountLock acquireStorageAccountLock) {\n this.acquireStorageAccountLock = acquireStorageAccountLock;\n return this;\n }", "publi...
[ "0.6449969", "0.6003888", "0.5971392", "0.5910408", "0.58773017", "0.5853716", "0.5790235", "0.5732046", "0.5589428", "0.55805063", "0.5577632", "0.55497104", "0.5495123", "0.54612565", "0.54179996", "0.54168767", "0.54168767", "0.54168767", "0.5398495", "0.53818184", "0.5357...
0.7944835
0
Set the acquireStorageAccountLock property: Whether storage account lock is to be acquired for this container or not.
public AzureStorageContainer withAcquireStorageAccountLock(AcquireStorageAccountLock acquireStorageAccountLock) { this.acquireStorageAccountLock = acquireStorageAccountLock; return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public AcquireStorageAccountLock acquireStorageAccountLock() {\n return this.acquireStorageAccountLock;\n }", "public void setLockEnabled(boolean lockEnabled) {\r\n\t\tthis.lockEnabled = lockEnabled;\r\n\t}", "public void SetIsLock(boolean isLock)\n {\n this._lock = isLock;\n }", "@Ove...
[ "0.66581136", "0.60749286", "0.56118697", "0.54700965", "0.5222175", "0.5163634", "0.5124443", "0.510799", "0.51010156", "0.50884813", "0.50882214", "0.5084642", "0.5013334", "0.49807593", "0.49610958", "0.4913178", "0.48920727", "0.48893115", "0.4844648", "0.4844648", "0.484...
0.69975615
0
Main method for testing
public static void main(String[] args) { String[] documents = readDocuments("data/collection.txt"); System.out.println("Shakespeare's Sonnets"); for (int i = 0; i < documents.length; i++) { System.out.println(i + "> " + documents[i]); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void main() {\n MainApp.main(new String[] {});\n }", "public static void main(String[] args) {\n // PUT YOUR TEST CODE HERE\n }", "@Test\n public void testMain() {\n System.out.println(\"main\");\n String[] args = null;\n GOL_Main.main(args);\n }...
[ "0.7799056", "0.77874213", "0.76932955", "0.7666802", "0.7611093", "0.757639", "0.74970156", "0.7496197", "0.7367972", "0.7329825", "0.7298581", "0.72750217", "0.72648335", "0.72605103", "0.72511375", "0.7203502", "0.71987534", "0.71808213", "0.71754104", "0.71677196", "0.716...
0.0
-1
I think this is the builder pattern
private static SentimentEngine getSentimentEngine() { // Done like this to facilitate replacement later by a more complex engine. return new SimpleSentimentEngine(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Builder() {\n\t\t}", "private Builder() {}", "public static Builder builder(){ return new Builder(); }", "abstract Object build();", "private Builder() {\n }", "private Builder() {\n }", "Object build();", "private Builder()\n {\n }", "public Builder() {}", "pu...
[ "0.74355125", "0.74329054", "0.72631747", "0.70374537", "0.69789267", "0.69789267", "0.69727206", "0.6921029", "0.68441176", "0.68441176", "0.68441176", "0.683554", "0.68293536", "0.68246776", "0.6793517", "0.6765059", "0.6748439", "0.6736682", "0.67276984", "0.672058", "0.67...
0.0
-1
The sentiment score will be positive if the sentiment is positive, negative if negative, and the magnitude will larger the more positive or negative it is.
public abstract double sentimentScore(Message message);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static int normalize(int sentimentValue) {\n\t\treturn sentimentValue - 2;\n\t}", "int getAnnotationSentimentValue();", "@Test\n void getSentimentScore() {\n NLPAnalyser np = new NLPAnalyser();\n List<CoreMap> sentences = np.nlpPipeline(\"RT This made my day; glad @JeremyKappell is sta...
[ "0.5968024", "0.57291174", "0.5651946", "0.55279136", "0.5449055", "0.54227006", "0.5357489", "0.5219842", "0.5128748", "0.50912863", "0.5076391", "0.5070985", "0.5057561", "0.5053007", "0.50236374", "0.5006121", "0.50032264", "0.49839956", "0.49801987", "0.49734026", "0.4948...
0.6127142
0
select some bounds around the node and limit them by the global bounding box
private void jump(INode node, PointD originalPosition) { double windowSize = configurator.maxStepSize.getValue(); double halfWindowSize = windowSize / 2; double minX = Math.max(originalPosition.getX() - halfWindowSize, boundingBox.getMinX()); double minY = Math.max(originalPosition.getY() - halfWindowSize, boundingBox.getMinY()); RectD bounds = new RectD( minX, minY, Math.min(minX + windowSize, boundingBox.getMaxX()) - minX, Math.min(minY + windowSize, boundingBox.getMaxY()) - minY ); Stream .generate(() -> { double x = random.nextDouble() * bounds.getWidth() + bounds.getX(); double y = random.nextDouble() * bounds.getHeight() + bounds.getY(); PointD point = new PointD(x, y); if (configurator.onlyGridPositions.getValue()) { return LayoutUtils.round(point); } else { return point; } }) .filter(position -> !configurator.onlyGridPositions.getValue() || LayoutUtils.overlapFree(position, positions, node, graph)) .limit(configurator.numSamplesForJumping.getValue()) .max(Comparator.comparingDouble(position -> { positions.setValue(node, position); return getAngleForNode(positions, node, graph); })) .ifPresent(pointD -> positions.setValue(node, pointD)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract Node getBoundingNode();", "Rectangle getBounds();", "public void setBounds(Rectangle b);", "RectangleLatLng getBounds();", "public int getBound();", "@Override\n public void getLocalBounds(Vector3 min, Vector3 max) {\n\n // Maximum bounds\n max.setX(radius + margin);\n ...
[ "0.6726267", "0.6600637", "0.6400237", "0.6395376", "0.6369754", "0.6348616", "0.62945074", "0.6265723", "0.6262396", "0.6243867", "0.6243867", "0.623398", "0.62194204", "0.62194204", "0.62194204", "0.62019235", "0.6200483", "0.61987925", "0.61975867", "0.61819607", "0.616663...
0.0
-1
ammo isn't included in the chat
public String ChatName() { return ""; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void shootGun() {\n\t\tammo--;\n\t}", "public void setAmmo(int ammo) {\n\t\tthis.ammo = ammo;\n\t}", "public void baptism() {\n for (Card targetCard : Battle.getInstance().getActiveAccount().getActiveCardsOnGround().values()) {\n if (targetCard instanceof Minion) {\n tar...
[ "0.5987843", "0.5699547", "0.56804955", "0.56626004", "0.56508195", "0.56400853", "0.56210107", "0.56071717", "0.5584513", "0.5583543", "0.5583465", "0.5569838", "0.55419", "0.5522955", "0.5503981", "0.54847443", "0.54714245", "0.5470685", "0.5451312", "0.54258525", "0.541870...
0.0
-1
returns the base printname for cloning purposes
public String GetBaseCritName() { return CritName; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic String getPrintName() {\n\t\treturn null;\r\n\t}", "public String getBaseName() {\n return baseName;\n }", "public String getPrinterName() {\n return \"Printer Name is: \" + name;\n }", "public String getPrintTitle();", "private String printName() {\n \t\treturn GP...
[ "0.70857996", "0.64415544", "0.6350474", "0.62159634", "0.61344516", "0.6114211", "0.6095232", "0.6093808", "0.60662663", "0.60239315", "0.5913721", "0.5886344", "0.58720374", "0.58506906", "0.58477795", "0.5843964", "0.584113", "0.58083105", "0.57681715", "0.5757987", "0.573...
0.0
-1
ammunition only ever takes up one critical slot
public int NumCrits() { return 1; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@RequiresLock(\"SeaLock\")\r\n protected void invalidate_internal() {\n }", "private final void maintain(){\n\t\tif(host.getStrength()>MAINTENANCE_COST){\n\t\t\thost.expend(MAINTENANCE_COST);\n\t\t}\n\t\telse{\n\t\t\tkill();\n\t\t}\n\t}", "synchronized void endCriticalUse(){\nSC = false;\nJeton=false;\n\nif ...
[ "0.6131251", "0.61260396", "0.6079337", "0.59858066", "0.5947715", "0.5830227", "0.5806132", "0.57402843", "0.5727257", "0.5674507", "0.5614685", "0.56083304", "0.5579825", "0.55742925", "0.55557597", "0.55329734", "0.5531468", "0.5524861", "0.5503468", "0.55000615", "0.54930...
0.0
-1
this returns 0 because ammo is handled by the CV much differently
@Override public int NumCVSpaces() { return 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getMineActualAmmo() {\r\n\t\t\r\n\t\t// Code kann nur bei Verwendung von eea verwendet werden, sonst muss er geloescht werden!\r\n\t\t// Auch bei Verwendung von eea muss diese Methode erweitert werden.\r\n\r\n\t\tList<Entity> entities = new ArrayList<Entity>();\r\n\r\n\t\tentities = StateBasedEntityMana...
[ "0.7376756", "0.6908925", "0.6400199", "0.6397247", "0.6284707", "0.6211691", "0.62116843", "0.6148518", "0.61304224", "0.6098353", "0.6073918", "0.6068305", "0.60584366", "0.6020802", "0.6018135", "0.5994435", "0.59705764", "0.59594303", "0.59054655", "0.5902032", "0.5901588...
0.0
-1
Only certain types of ammo comes in less or more than one ton lots but we'll have to set this regardless
public double GetTonnage() { if( LotSize != CurLotSize ) { double TonsPerShot = Tonnage / (double) LotSize; return CommonTools.RoundFractionalTons( TonsPerShot * (double) CurLotSize ); } return Tonnage; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean checkGreedyEnergy() {\r\n return myTotal.get(2) < 10 || (myTotal.get(2) < 13 && myTotal.get(2) <= enTotal.get(2));\r\n }", "public void setAmmo(final boolean x) {\n int ammodif = 0;\n switch (Engine.currentWeapon) {\n\n case 2:\n ammodif = maxshot...
[ "0.63473946", "0.6289316", "0.6254407", "0.6063038", "0.5991585", "0.59613097", "0.58447206", "0.5833726", "0.5739304", "0.57295716", "0.5718021", "0.5668171", "0.5643365", "0.56398064", "0.56376815", "0.55845046", "0.5567403", "0.5558565", "0.5525118", "0.5497878", "0.546222...
0.0
-1
return the cost of the item
public double GetCost() { if( LotSize != CurLotSize ) { double CostPerShot = Cost / (double) LotSize; return CommonTools.RoundFractionalTons( CostPerShot * (double) CurLotSize ); } return Cost; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "double getCost();", "double getCost();", "@Pure\n\tdouble getCost();", "int getCost();", "int getCost();", "int getCost();", "@Override\r\n\tpublic double cost() {\n\t\treturn this.cost;\r\n\t}", "@Override\n\tpublic double cost() {\n\t\tdouble price = good.cost();\n\t\treturn price+price/2;\n\t}", ...
[ "0.8238948", "0.8238948", "0.8053952", "0.8033242", "0.8033242", "0.8033242", "0.79712266", "0.79342264", "0.7932334", "0.792491", "0.792444", "0.7916955", "0.7894079", "0.7868785", "0.78635836", "0.784681", "0.7825445", "0.7819919", "0.781798", "0.780999", "0.78097916", "0...
0.0
-1
BV will not change for this item, so just return the normal value
public double GetCurOffensiveBV( boolean UseRear, boolean UseTC, boolean UseAES, boolean UseRobotic ) { return GetOffensiveBV(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected V getValue() {\n return this.value;\n }", "public ArmCurrency getOriginalVATAmount() {\n ArmCurrency rtnVal = this.itemOriginalVat;\n if (isReturn && rtnVal != null) {\n rtnVal = rtnVal.multiply( -1).round();\n }\n return (rtnVal);\n }", "@Override\n public ...
[ "0.6490702", "0.638209", "0.628346", "0.62298596", "0.6221059", "0.61899614", "0.61569536", "0.6120374", "0.61037785", "0.60555756", "0.6053516", "0.60244155", "0.59951866", "0.5988546", "0.5983581", "0.59697366", "0.59697366", "0.5962308", "0.5961704", "0.5947348", "0.594407...
0.0
-1
some ammo can explode and CASE is needed
public boolean IsExplosive() { return Explosive; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private com.mytechia.robobo.framework.hri.emotion.Emotion mappingEmotions(Emotion emotion){\n switch(emotion)\n {\n case Normal:\n return com.mytechia.robobo.framework.hri.emotion.Emotion.NORMAL;\n case Happy:\n return com.mytechia.robobo.framework....
[ "0.54060745", "0.5099665", "0.49691078", "0.49686787", "0.49589077", "0.49127376", "0.48846433", "0.4860086", "0.48526555", "0.4815425", "0.47709516", "0.47696084", "0.4753003", "0.47505355", "0.47498786", "0.4719675", "0.47034895", "0.46797356", "0.4676954", "0.46662897", "0...
0.0
-1
Ammunition can never be armored
@Override public boolean CanArmor() { return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract void isASRRejection(long ms);", "@Test\n\tpublic void testArmingBypassed() {\n\t\tSet<String> armed = addressesOf(addContactSensor(true, false));\n\t\tSet<String> bypassed = addressesOf(addMotionSensor(true, true));\n\t\tstageArmingBypassed(SecuritySubsystemCapability.ALARMMODE_ON, armed, bypasse...
[ "0.61762255", "0.61607003", "0.6061006", "0.59609455", "0.58393824", "0.57929593", "0.57041746", "0.56837124", "0.56753314", "0.55709845", "0.5562885", "0.5561603", "0.5546941", "0.552557", "0.55158335", "0.5493775", "0.54737043", "0.54712844", "0.54693913", "0.54642624", "0....
0.0
-1
First Time Creating Database
@Override public void onCreate(SQLiteDatabase db) { String createTableStatement = "CREATE TABLE " + pass_store + " (SID INTEGER PRIMARY KEY AUTOINCREMENT, " + column_url + " TEXT, " + column_password + " TEXT, " + column_status + " BOOLEAN )"; db.execSQL(createTableStatement); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Database createDatabase();", "public void dbCreate() {\n Logger.write(\"INFO\", \"DB\", \"Creating database\");\n try {\n if (!Database.DBDirExists())\n Database.createDBDir();\n dbConnect(false);\n for (int i = 0; i < DBStrings.createDB.length; i++)\...
[ "0.80304235", "0.79829556", "0.77069634", "0.7702506", "0.7699672", "0.7598459", "0.759321", "0.757035", "0.7550693", "0.7539468", "0.749423", "0.74455905", "0.7413429", "0.7390367", "0.7361162", "0.7336579", "0.7323002", "0.73070943", "0.729925", "0.7270507", "0.72704077", ...
0.0
-1
On Version Upgrade eg. Adding New Parameters Etc.
@Override public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void upgrade() {\n log.trace(\">upgrade\");\n if (Float.compare(LATEST_VERSION, getVersion()) != 0) {\n // Does nothing currently\n data.put(VERSION, new Float(LATEST_VERSION));\n }\n log.trace(\"<upgrade\");\n }", "@Override\n\t\t\t\t\tp...
[ "0.67265517", "0.6696736", "0.6678774", "0.6537166", "0.6529547", "0.6485667", "0.6443911", "0.64418876", "0.6437799", "0.6368527", "0.63413996", "0.6306851", "0.6284071", "0.62688625", "0.62565094", "0.62513053", "0.6224447", "0.61094934", "0.6075127", "0.6072519", "0.605983...
0.0
-1
If the file name already exists within the current directory, throws FileExistsException Otherwise, does nothing
public void checkMakeFile(String name) throws FileExistsException { Iterable<Position<FileElement>> toCheck = fileSystem.children(currentFileElement); if (toCheck != null) { for (Position<FileElement> fe : toCheck ) { if (fe.toString().equals(name)) { throw new FileExistsException(name); } } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public MethodOutcome fileAlreadyExistsOutcome() {\n return new MethodOutcome(MethodOutcome.Type.THROWS_EXCEPTION, IOException.class);\n }", "private static void addFile(File filedir) throws Exception {\n String fileName = getFileNameInput();\n File newFile = new File(filedir.toStri...
[ "0.6848694", "0.6750128", "0.67309684", "0.66965294", "0.6624252", "0.656458", "0.65523344", "0.64794767", "0.63517976", "0.63200295", "0.628772", "0.6278257", "0.6237214", "0.6147892", "0.60901517", "0.60380924", "0.60276604", "0.60241485", "0.6019731", "0.59528375", "0.5932...
0.6757272
1
Prints all the children of the current directory
public String ls() { String toReturn = ""; Iterable<Position<FileElement>> kids = fileSystem.children(currentFileElement); if (kids == null) return "Nothing to list"; { for (Position<FileElement> fe : kids) { toReturn += fe.toString() + ", "; } } return toReturn; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void print(){\n for(int i = 0; i < rootDir.length; i++){\n System.out.println(rootDir[i]);\n }\n }", "private void printTree(File directory, int level, Environment env) {\n\t\tfor (int i = 0; i < level; i++) {\n\t\t\tenv.write(\" \"); // shift output\n\t\t}\n\n\t\tif (director...
[ "0.7602099", "0.68889016", "0.6783531", "0.6734723", "0.66721404", "0.64841145", "0.64034826", "0.6336371", "0.6317314", "0.62527645", "0.62388057", "0.61805165", "0.6156174", "0.61553764", "0.615265", "0.6147484", "0.613802", "0.61091566", "0.6077291", "0.60708773", "0.60257...
0.59594095
25
Add new file child node to current directory Throw exception if already exists
public void touch(String name) throws FileExistsException { checkMakeFile(name); FileElement add = new FileElement(name, false); fileSystem.addChild(currentFileElement, add); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void addFileToNode(DefaultMutableTreeNode node, FileInfo givenFile){\r\n\t\t//check that there are files in this folder\r\n\t\t// replace existing file if one is present with the same name\r\n\t\tif(!node.isLeaf()){\r\n\t\t\tFileInfo index = (FileInfo) node.getFirstChild();\r\n\t\t\t//look through all the ...
[ "0.71449137", "0.70891213", "0.70224065", "0.67290884", "0.66561943", "0.6561695", "0.6555385", "0.6372927", "0.6359078", "0.62846464", "0.6238431", "0.62292445", "0.61485404", "0.61215186", "0.6051992", "0.60272884", "0.5971541", "0.596792", "0.5967294", "0.59532684", "0.595...
0.5425552
55
Add new directory child node to current directory Throw exception if already exists
public void mkdir(String name) throws FileExistsException { checkMakeFile(name); FileElement add = new FileElement(name, true); fileSystem.addChild(currentFileElement, add); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addChild(DirectoryNode node) throws FullDirectoryException, NotADirectoryException {\n if(isFile)\n throw new NotADirectoryException(\"Error: This node is a file\");\n if(left != null && middle != null && right != null)\n throw new FullDirectoryException(\"This direc...
[ "0.70142174", "0.6689088", "0.66367555", "0.6529625", "0.6361221", "0.6291162", "0.6271071", "0.6267874", "0.6207514", "0.6180977", "0.6167495", "0.6090451", "0.6056203", "0.6028376", "0.5994834", "0.59827274", "0.59670097", "0.59485215", "0.5929456", "0.5913058", "0.58955324...
0.0
-1
Print full path name of current directory starting with root
public String pwd() { StringBuilder toPrint = new StringBuilder(""); StackLinked<String> theStack = new StackLinked<>(); Position<FileElement> current = currentFileElement; do { theStack.push("/" + current.getValue().toString()); current = fileSystem.parent(current);} while (fileSystem.parent(current) != null); while (theStack.size() > 0) { toPrint.append(theStack.pop()); } return toPrint.toString(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String formatRootPathForDisplay(File root) {\n\t\t\tString s = root.getPath();\n\t\t\treturn s.length() > 1 && s.endsWith(\"\\\\\") ? s.substring(0, s.length() - 1) : s;\n\t\t}", "public static String findCurrentDirectory() {\n\t\tString absolutePath = new File(\"\").getAbsolutePath();\n\t return abso...
[ "0.74257874", "0.69712746", "0.6916307", "0.6862887", "0.68288505", "0.6772075", "0.6716262", "0.66737235", "0.6673562", "0.66636926", "0.65510976", "0.6540911", "0.6528916", "0.64800066", "0.644543", "0.6348151", "0.6325765", "0.6263269", "0.62107015", "0.6178859", "0.613284...
0.66038257
10
Changes directory to specified name of new directory If the current directory doesn't have a child directory with this name, throws
public void cd(String name) throws NoSuchDirectoryException { Iterable<Position<FileElement>> toCheck = fileSystem.children(currentFileElement); if (toCheck != null) { for (Position<FileElement> fe : toCheck ) { if (fe.toString().equals(name) && fe.getValue().isDirectory() ) { currentFileElement = fe; } } } else {throw new NoSuchDirectoryException();} }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\r\n public void moveToDirWithSameName() {\r\n Dir sameName = new Dir(\"child\", \"/\");\r\n currentDirectory.addNewDirectory(sameName);\r\n command.executeCommand(\"/parent/child/\", \"/\", root, currentDirectory);\r\n currentDirectory = currentDirectory.getSubDirectoryByName(\"child\");\r\n ...
[ "0.6975805", "0.6963803", "0.66689783", "0.65526646", "0.6480391", "0.64651054", "0.6429315", "0.63442266", "0.6343012", "0.633613", "0.62055355", "0.61427635", "0.61133766", "0.6075952", "0.60227555", "0.6009326", "0.6000873", "0.5963595", "0.5935294", "0.5924341", "0.585955...
0.6195604
11
Removes the file "name" from the currentDirectory Throws if "name" refers to a directory or doesn't exist
public void rm(String name) throws IsDirectoryException, NoSuchFileException { Iterable<Position<FileElement>> toCheck = fileSystem.children(currentFileElement); if (toCheck != null) { for (Position<FileElement> fe : toCheck ) { if (fe.toString().equals(name) && fe.getValue().isDirectory() ) { throw new IsDirectoryException(); } if (fe.toString().equals(name) && fe.getValue().isDirectory() == false) { fileSystem.remove(fe); } } } else {throw new NoSuchFileException();} }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void delete(String name) {\n File f = new File(name);\n if (f.exists()) {\n f.delete();\n }\n }", "private static void removeFromWorking(String fileName) {\n for (File file : WORKING_DIR.listFiles()) {\n if (!file.isDirectory()) {\n if (...
[ "0.7174625", "0.70642823", "0.6889217", "0.6631869", "0.6614861", "0.6594878", "0.6572267", "0.6510752", "0.63726395", "0.63694644", "0.6169391", "0.61398333", "0.6063596", "0.60617733", "0.60494965", "0.60192424", "0.5999878", "0.5988149", "0.59590495", "0.5955164", "0.59189...
0.7483324
0
Removes the directory "name" from the currentDirectory Throws if "name" refers to a file or doesn't exist
public void rmdir(String name) throws NoSuchDirectoryException, IsFileException, DirectoryNotEmptyException { Iterable<Position<FileElement>> toCheck = fileSystem.children(currentFileElement); if (toCheck != null) { for (Position<FileElement> fe : toCheck ) { if (fe.toString().equals(name) && fe.getValue().isDirectory() == false) { throw new IsFileException(); } else if (fe.toString().equals(name) && fe.getValue().isDirectory()) { if (fileSystem.remove(fe) == false) { throw new DirectoryNotEmptyException(); } } } } else {throw new NoSuchDirectoryException();} }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void rm(String name) throws IsDirectoryException, NoSuchFileException\n\t{\n\t\tIterable<Position<FileElement>> toCheck = fileSystem.children(currentFileElement);\n\t\tif (toCheck != null)\n\t\t{\n\t\t\tfor (Position<FileElement> fe : toCheck )\n\t\t\t{\n\t\t\t\tif (fe.toString().equals(name) && fe.getValue...
[ "0.7544898", "0.66567403", "0.65870893", "0.6410504", "0.63709486", "0.6208937", "0.6083008", "0.60785216", "0.6065324", "0.6031468", "0.59682053", "0.59289485", "0.58594465", "0.5848219", "0.5843619", "0.5812143", "0.5787979", "0.5778303", "0.5771718", "0.5753137", "0.575309...
0.717407
1
Pretty print the tree rooted at currentDirectory using preOrder traversal
public void tree() { Iterable<Position<FileElement>> toPrint = fileSystem.PreOrder(); for (Position<FileElement> p : toPrint) { int depth = fileSystem.getDepth(p); for (int i = 0; i < depth; i++) { System.out.print(" "); } System.out.println(p.getValue()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void preorderTraverse(){\n\t\tpreorderHelper(root);\n\t\tSystem.out.println();\n\t}", "public void printPreorder() {\n System.out.print(\"preorder:\");\n printPreorder(overallRoot);\n System.out.println();\n }", "public void printPreorder() {\n if (myRoot == null) {\n ...
[ "0.7535496", "0.7449991", "0.7388696", "0.7388696", "0.7314519", "0.72482085", "0.71984655", "0.71575165", "0.70331734", "0.7008216", "0.6953659", "0.69163734", "0.68668604", "0.6826947", "0.68135357", "0.68094015", "0.67969275", "0.67896354", "0.6779093", "0.67653257", "0.67...
0.7729624
0
Create (and eventually set up) Jetty's HttpClient:
private void doHandshake()throws Exception { HttpClient httpClient = new HttpClient(); // Here set up Jetty's HttpClient, for example: // httpClient.setMaxConnectionsPerDestination(2); httpClient.start(); // Prepare the transport Map<String, Object> options = new HashMap<String, Object>(); ClientTransport transport = new LongPollingTransport(options, httpClient); // Create the BayeuxClient ClientSession client = new BayeuxClient("http://localhost:8080/childrenguard-server/cometd", transport); client.handshake(null,new ClientSessionChannel.MessageListener() { public void onMessage(ClientSessionChannel channel, Message message) { System.out.println("fail to connect to server."); if (message.isSuccessful()) { System.out.println(message); // Here handshake is successful } } }); // Here set up the BayeuxClient, for example: //client.getChannel(Channel.META_CONNECT).addListener(new ClientSessionChannel.MessageListener() { }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static HttpClient createClient() {\n return HttpClients.createMinimal();\n }", "public static final DefaultHttpClient createHttpClient() {\n\t\treturn createHttpClient(3);\n\t}", "private DefaultHttpClient createHttpClient()\n throws IOException\n {\n XCapCredentialsProvider creden...
[ "0.722009", "0.7015862", "0.68510276", "0.6819384", "0.67843246", "0.67748064", "0.6722789", "0.6713689", "0.65962064", "0.65805036", "0.6566783", "0.65261465", "0.6480919", "0.64414006", "0.64104307", "0.6407213", "0.6328126", "0.6316086", "0.6314708", "0.61748654", "0.61374...
0.0
-1
/ renamed from: me.iwf.photopicker.event.OnPhotoClickListener
public interface OnPhotoClickListener { void onClick(View view, int i, boolean z); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void onClick(View v, Photo photo);", "void onPhotoTap(View view, float x, float y);", "@Override\n public void onClick(View v) {\n handlePhoto();\n }", "public interface OnImageSingleClickListener {\n void onImageSingleClick(int position, String path, PhotoView ...
[ "0.78242636", "0.7628958", "0.7572948", "0.7393481", "0.7295968", "0.71898305", "0.7185074", "0.71696824", "0.7137492", "0.7073428", "0.6894558", "0.68262076", "0.68173945", "0.67829245", "0.67710286", "0.6762498", "0.6698892", "0.6677614", "0.66509414", "0.66356325", "0.6622...
0.7471549
3
int[] idades = new int[];
public static void main(String[] args) { Object[] contas = new Object[5]; Object cc1 = new ContaCorrente(22, 11); contas[0]=cc1; Object cc2 = new ContaPoupanca(22, 98); contas[1]=cc2; Object ref = contas[1]; System.out.println(((Conta) cc2).getNumero()); System.out.println(((Conta) ref).getNumero()); Cliente clienteNormal = new Cliente(); clienteNormal.setNome("Flavio"); Cliente clienteVip = new Cliente(); clienteVip.setNome("Romulo"); Object[] refs = new Object[5]; refs[0] = clienteNormal; refs[1] = clienteVip; System.out.println(((Cliente) refs[1]).getNome()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public TumpukanInteger(int kapasitas){\r\n elemen = new int[kapasitas];\r\n }", "public ulsinArray(int length) {\n intArr = new int[length];\n }", "int[] getInts();", "int[] mo56160d();", "int[] mo56159c();", "public Integer[] createArray() {\n Integer[] value = new Integer[defaultLaenge...
[ "0.69701076", "0.6672672", "0.66588837", "0.6484588", "0.64610887", "0.6458903", "0.6390784", "0.63458914", "0.6314455", "0.6283087", "0.62791014", "0.6222218", "0.62103736", "0.61997586", "0.61955583", "0.6178472", "0.6117336", "0.6107577", "0.610598", "0.6063208", "0.606277...
0.0
-1
TestVO vo = sqlSessionTemplate.selectOne("tripnote_test.selectTest");
public int insertMember(MemberVO vo) { int row = mapper.insertMember(vo); // logger.info(vo.toString()); return row; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "TCpySpouse selectOneByExample(TCpySpouseExample example);", "List<PayLogInfoPo> selectByExample(PayLogInfoPoExample example);", "SysNotice selectOneByExample(SysNoticeExample example);", "List<ProcRecInvoice> selectByExample(ProcRecInvoiceExample example);", "@Override\n\tpublic Object selectOne2(Object p_...
[ "0.7176131", "0.661703", "0.6557233", "0.65056247", "0.6504089", "0.64846903", "0.641263", "0.6399761", "0.6396022", "0.6384737", "0.6362829", "0.633049", "0.63237613", "0.6322953", "0.63206834", "0.6293734", "0.6291435", "0.6290559", "0.62779146", "0.62747383", "0.6265793", ...
0.0
-1
Takes filename and number of clusters as input from user. And while total clusters is not equal to required number of clusters, we merge two and finally it prints the clusters and jacard coeefficient for output set.
public static void main(String[] args) { Scanner sc = new Scanner(System.in); System.out.println("Enter file name"); String file = sc.nextLine(); fileRead(file); System.out.println("Enter required number of clusters"); reqNoOfClusters =Integer.parseInt(sc.nextLine()); makeInitialDistanceMatrix(); while(totalCluster != reqNoOfClusters) { mergeNext(); } printClusters(); double jac = getJaccard(); System.out.println("Jaccard coefficient = "+jac); // double rand = getRand(); // System.out.println("rand = "+rand); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int run(String[] args) throws Exception {\n\t\t\n\t\tint zipNumLines = -1;\n\n\t\tList<String> otherArgs = new ArrayList<String>();\n\t\tJob job = new Job(getConf(), \"merge-clusters\");\n\t\tConfiguration conf = job.getConfiguration();\n\t\tfor (int i = 0; i < args.length; ++i) {\n\t\t\ttry {\n\t\t\t\tif (...
[ "0.6023202", "0.5974817", "0.5971047", "0.5887524", "0.58731186", "0.5863829", "0.5802474", "0.5786755", "0.5728521", "0.56097686", "0.55808645", "0.55616605", "0.55390173", "0.5526497", "0.5523453", "0.5519576", "0.54915696", "0.5479819", "0.5477373", "0.5472218", "0.5435305...
0.63448554
0
Reads the file and stores the ground truth and feature attributes
private static void fileRead(String file) { try { BufferedReader br = new BufferedReader(new FileReader(file)); String line = ""; while((line=br.readLine())!=null) { String data[] = line.split("\\t"); int id = Integer.parseInt(data[0]); int groundTruth = Integer.parseInt(data[1]); actualClusters.put(id, groundTruth); ArrayList<Double> temp = new ArrayList<>(); for(int i=2;i<data.length;i++) { temp.add(Double.parseDouble(data[i])); } cols = data.length-2; geneAttributes.put(id, temp); allClusters.add(id+""); totalGenes++; } totalCluster = totalGenes; br.close(); } catch(Exception e) { e.printStackTrace(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void readTrainingFile() {\n\t\ttry {\n\t\t\tFile file = new File(trainingFile);\n\t\t\tBufferedReader reader = new BufferedReader(new FileReader(file));\n\t\t\tSystem.out.print(\"Read training data >>>\\t\");\n\t\t\t// read first line to get attribute names\n\t\t\tString line = reader.readLine();\n\t\t\t// ...
[ "0.71274203", "0.68559545", "0.65826863", "0.61214036", "0.5950146", "0.5877428", "0.58368504", "0.58025056", "0.5801011", "0.5770509", "0.5744325", "0.5697273", "0.5642944", "0.5638859", "0.56103486", "0.5565951", "0.55193144", "0.5502011", "0.5453952", "0.54459375", "0.5441...
0.6063297
4
Create a matrix for each cluster, and plots the output using imported PCA implementation
public static void printClusters() { int count = 0; double[][] matrix = null; for(String s:allClusters) { count++; System.out.println(s); String points[] = s.split(","); matrix = new double[points.length][cols]; int k=0; for(String p:points) { resultClusters.put(Integer.parseInt(p), count); ArrayList<Double> features = geneAttributes.get(Integer.parseInt(p)); double[] arr = new double[cols]; for(int i=0;i<features.size();i++) arr[i] = features.get(i); matrix[k++] = arr; } pca_list.add(matrix); } Plot plot = new Plot((ArrayList<double[][]>) pca_list, "HAC"); plot.plot(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void viewPCAChart(int pcaI, int pcaII) {\r\n DivaClientService.computePCA(pcaI, pcaII,\r\n new AsyncCallback<PCAImageResult>() {\r\n @Override\r\n public void onFailure(Throwable caught) {\r\n Selection_Manager.connError();...
[ "0.6035538", "0.5909992", "0.57451266", "0.56329906", "0.5601707", "0.55872834", "0.5539201", "0.55278546", "0.5487739", "0.5448122", "0.5441196", "0.54399794", "0.54361486", "0.541576", "0.5413163", "0.54015386", "0.5357619", "0.5325333", "0.5324938", "0.52456653", "0.522862...
0.7540509
0
Creates the initial distance matrix by calculating euclidean matrix between each points
private static void makeInitialDistanceMatrix() { try { for(int i=1;i<=totalGenes;i++) { TreeMap<String, Double> temp1 = new TreeMap<>(); if(distanceMatrix.containsKey(i+"")) temp1 = distanceMatrix.get(i+""); for(int j=i+1;j<=totalGenes;j++) { double dist = getDist(i, j); TreeMap<String, Double> temp2 = new TreeMap<>(); if(distanceMatrix.containsKey(j+"")) temp2 = distanceMatrix.get(j+""); temp2.put(i+"", dist); distanceMatrix.put(j+"", temp2); temp1.put(j+"", dist); updateMinMatrix(i+"",j+"",dist); } distanceMatrix.put(i+"", temp1); } } catch(Exception e) { e.printStackTrace(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Double[][] makeAdjacencyMatrix()\n {\n Double[][] matrix = new Double[this.numIntxns][this.numIntxns];\n\n for (int i = 0; i < this.numIntxns; i++)\n {\n for (int j = 0; j < this.numIntxns; j++)\n {\n // if the indices are the same the distance i...
[ "0.6071057", "0.6009269", "0.59006923", "0.582869", "0.58004725", "0.575729", "0.5695122", "0.5680566", "0.55614185", "0.55571693", "0.55315614", "0.54693353", "0.5443908", "0.539081", "0.5379529", "0.5366954", "0.52358764", "0.5224007", "0.5216435", "0.51281995", "0.5118363"...
0.6832015
0
find the minimum distance from the matrix and merges those two clusters and updates corresponding distance by taking the minimum distance between two points from either clusters update the number of clusters.
private static void mergeNext() { String ids[] = getMinGeneIds(); String minI = ids[0]; String minJ = ids[1]; String newEntry = createNewEntry(minI, minJ); TreeMap<String, Double> prevI = distanceMatrix.remove(minI); TreeMap<String, Double> prevJ = distanceMatrix.remove(minJ); minMatrix.remove(minI);minMatrix.remove(minJ); allClusters.remove(minI);allClusters.remove(minJ); TreeMap<String, Double> newTemp = new TreeMap<String, Double>(); for(String c: allClusters) { TreeMap<String, Double> temp = distanceMatrix.get(c); temp.remove(minI);temp.remove(minJ); double dist1 = prevI.get(c); double dist2 = prevJ.get(c); if(dist1 < dist2) { newTemp.put(c,dist1); updateMinMatrix(newEntry, c, dist1); temp.put(newEntry, dist1); String minData[] = minMatrix.get(c).split(";"); if(minData[0].equals(minI) || minData[0].equals(minJ)) { minMatrix.remove(c); createMinMatrixAfterRemoval(c); } updateMinMatrix(c, newEntry, dist1); } else { newTemp.put(c,dist2); updateMinMatrix(newEntry, c, dist2); temp.put(newEntry, dist2); String minData[] = minMatrix.get(c).split(";"); if(minData[0].equals(minI) || minData[0].equals(minJ)) { minMatrix.remove(c); createMinMatrixAfterRemoval(c); } updateMinMatrix(c, newEntry, dist2); } distanceMatrix.put(c, temp); } distanceMatrix.put(newEntry, newTemp); allClusters.add(newEntry); totalCluster = allClusters.size(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void connectClusters() {\n\t\tif (clusters.size() == 2) { // once have only two clusters\n\t\t\tSystem.out.println(\"DONE!\");\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t\n\t\tcluster close1 = clusters.get(0),\n\t\t\t\tclose2 = clusters.get(1);\n\t\tdouble closestCluster = computeDistance(close1, close2);\n\t\t\n\t\t...
[ "0.6301736", "0.62014365", "0.6146969", "0.6090013", "0.6064633", "0.59684366", "0.5967493", "0.5959441", "0.5848342", "0.5842815", "0.5814147", "0.5811335", "0.5666473", "0.56541586", "0.5634452", "0.5621878", "0.561433", "0.5614295", "0.5555766", "0.55281264", "0.55273247",...
0.7049068
0
if the removed cluster was in min distance for other clusters, we remove that entry
private static void createMinMatrixAfterRemoval(String c) { TreeMap<String, Double> temp = distanceMatrix.get(c); for(String s:allClusters) { if(!s.equals(c)) { double dist = temp.get(s); updateMinMatrix(c,s,dist); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Centroid removeCentroid();", "public void deleteMin();", "public void deleteMin()\t\t\t\t//delete smallest key\n\t{\n\t\troot=deleteMin(root);\n\t}", "private static void mergeNext() {\n\t\tString ids[] = getMinGeneIds();\n\t\tString minI = ids[0];\n\t\tString minJ = ids[1];\n\t\tString newEntry = cre...
[ "0.6525471", "0.63876647", "0.62954897", "0.62759703", "0.6241879", "0.6241879", "0.6175996", "0.6095031", "0.6026908", "0.5981368", "0.59510946", "0.59359246", "0.579662", "0.57815886", "0.577193", "0.5754532", "0.5749173", "0.5748879", "0.571352", "0.5709522", "0.5694528", ...
0.6559551
0
it check for current minimum distance for cluster i and j. If given distance is less than current stored distance, it updates.
private static void updateMinMatrix(String i, String j, double dist) { if(minMatrix.containsKey(i)) { String minData[] = minMatrix.get(i).split(";"); double prevDist = Double.parseDouble(minData[1]); if(dist < prevDist) minMatrix.put(i+"", j+";"+dist); } else { minMatrix.put(i+"", j+";"+dist); } if(minMatrix.containsKey(j)) { String minData[] = minMatrix.get(j).split(";"); double prevDist = Double.parseDouble(minData[1]); if(dist < prevDist) minMatrix.put(j, i+";"+dist); } else { minMatrix.put(j, i+";"+dist); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int minCost(int[][] distance) {\n Map<Index, Integer> minCostDP = new HashMap<>();\n Map<Index, Integer> parent = new HashMap<>();\n\n List<Set<Integer>> allSets;\n\n for (Set<Integer> set : allSets) {\n for (int currentVertex = 1; currentVertex < distance.lengt...
[ "0.6862464", "0.6354226", "0.6310704", "0.62822247", "0.62309456", "0.6189486", "0.6048455", "0.6044129", "0.59392965", "0.5909016", "0.58603746", "0.5807418", "0.5783012", "0.5763171", "0.57573074", "0.57352513", "0.5734545", "0.5708995", "0.56676316", "0.5648943", "0.562697...
0.6517766
1
creates a new cluster from two given clusters in lexicographical order
private static String createNewEntry(String minI, String minJ) { String first[] = minI.split(","); String second[] = minJ.split(","); ArrayList<Integer> arr = new ArrayList<>(); for(int i=0;i<first.length;i++) arr.add(Integer.parseInt(first[i])); for(int j=0;j<second.length;j++) arr.add(Integer.parseInt(second[j])); Collections.sort(arr); String result = arr.get(0)+""; for(int i=1;i<arr.size();i++) { result = result + "," + arr.get(i); } return result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void makeCluster(cluster c1, cluster c2) {\n\t\tColor newC = Color.black;\n\t\twhile (true) {\n\t\t\tnewC = colors.get(rand());\n\t\t\tif (!usedcolors.contains(newC)) { // if color hasn't been used\n\t\t\t\tusedcolors.add(newC); // add color to the used colors list\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tArray...
[ "0.6448355", "0.63659596", "0.62588483", "0.61228687", "0.60986423", "0.60627776", "0.60453707", "0.59786993", "0.58659744", "0.5864086", "0.5850054", "0.58381194", "0.58071893", "0.5707428", "0.56870514", "0.5565338", "0.5487596", "0.5442949", "0.53926927", "0.53123885", "0....
0.0
-1
finds minimum from minmatrix where key is each cluster and value is min distance to any cluster
private static String[] getMinGeneIds() { String []output = new String[2]; String minI = "", minJ = ""; double min = Double.MAX_VALUE; for (Map.Entry<String, String> entry : minMatrix.entrySet()) { String minData[] = entry.getValue().split(";"); double currDist = Double.parseDouble(minData[1]); if(currDist < min) { minI = entry.getKey(); minJ = minData[0]; min = currDist; } } output[0] = minI;output[1] = minJ; return output; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int minCost(int[][] distance) {\n Map<Index, Integer> minCostDP = new HashMap<>();\n Map<Index, Integer> parent = new HashMap<>();\n\n List<Set<Integer>> allSets;\n\n for (Set<Integer> set : allSets) {\n for (int currentVertex = 1; currentVertex < distance.lengt...
[ "0.7086165", "0.68995804", "0.6888722", "0.6610021", "0.65470886", "0.6403021", "0.63770545", "0.63676083", "0.6252671", "0.6247706", "0.6234645", "0.6228699", "0.61906654", "0.6180418", "0.6125848", "0.6125807", "0.6110644", "0.61104035", "0.60939306", "0.60937285", "0.60931...
0.0
-1
Calculates the euclidean distance between two points
public static double getDist(int id1, int id2) { ArrayList<Double> gA1 = geneAttributes.get(id1); ArrayList<Double> gA2 = geneAttributes.get(id2); double dist = 0; for(int i=0;i<gA1.size();i++) { dist += ( (gA1.get(i) - gA2.get(i)) * (gA1.get(i) - gA2.get(i)) ); } dist = Math.sqrt(dist); return dist; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Double euclidean(LatitudeLongitude point1, LatitudeLongitude point2) {\n return Double.valueOf(Math.sqrt(Math.pow(point1.getLatitude() - point2.getLatitude(), 2)\n + Math.pow(point1.getLongitude() - point2.getLongitude(), 2)));\n }", "private static double EuclideanDistance(Point p1, Point p2)...
[ "0.8051838", "0.7971306", "0.7806096", "0.77365065", "0.7729238", "0.7688141", "0.7586136", "0.75584406", "0.75579476", "0.75359845", "0.74778175", "0.7399622", "0.73989415", "0.7390973", "0.7386147", "0.7379352", "0.73702574", "0.7366829", "0.7337556", "0.73208123", "0.73083...
0.0
-1
/ Calculates and returns the external index(Jacard) using the given ground truth and resultant clusterc obtained above.
public static double getJaccard() { double match = 0; double unmatch = 0; for(int i = 1;i<=totalGenes;i++) { int c1 = actualClusters.get(i); int r1 = resultClusters.get(i); for(int j=1;j<=totalGenes;j++) { int c2 = actualClusters.get(j); int r2 = resultClusters.get(j); if(c1 == c2 && r1 == r2) match++; else if( (c1 == c2 && r1 != r2) || (c1 != c2 && r1 == r2)) unmatch++; } } double jacard = match/(match+unmatch); return jacard; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double[][] findJaccardIndex(int[] idx, int[] class_idx) {\n\t\t// find domain for membership vector\n\t\tUniqueResult<Integer> idxUR = utils.findUnique(idx);\n\t\tint numClusters = idxUR.domain.length;\n\t\t\n\t\t// find domain for class distribution\n\t\tUniqueResult<Integer> class_idxUR = utils.findUnique...
[ "0.59268117", "0.55176276", "0.55075204", "0.54425555", "0.52222866", "0.51913303", "0.5191169", "0.51555234", "0.51544094", "0.5106042", "0.5053124", "0.49960068", "0.49948123", "0.49855486", "0.49760833", "0.49749827", "0.49749827", "0.49749827", "0.49749827", "0.49749827", ...
0.60031796
0
Constructs a new image style. All attributes are optional except type.
@JsonCreator public ImageStyle ( final @JsonProperty ("type") String type, final @JsonProperty ("opacity") Double opacity, final @JsonProperty ("rotateWithView") Boolean rotateWithView, final @JsonProperty ("rotation") Double rotation, final @JsonProperty ("scale") Double scale, final @JsonProperty ("snapToPixel") Boolean snapToPixel, final @JsonProperty ("radius") Double radius, final @JsonProperty ("fill") FillStyle fill, final @JsonProperty ("stroke") StrokeStyle stroke) { this.type = type; this.opacity = opacity; this.rotateWithView = rotateWithView; this.rotation = rotation; this.scale = scale; this.snapToPixel = snapToPixel; this.radius = radius; this.fill = fill; this.stroke = stroke; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Image() {\n\t\tsuper();\n\t\taddNewAttributeList(NEW_ATTRIBUTES);\n\t\taddNewResourceList(NEW_RESOURCES);\n\t}", "STYLE createSTYLE();", "public abstract TC createStyle();", "public S create() {\n\t\tS style = createDefault();\n\t\tint id = nextID();\n\t\tstyle.setId(id);\n\t\taddStyle(style);\n\t\tre...
[ "0.63695836", "0.6108497", "0.6066603", "0.5932366", "0.57701916", "0.57445806", "0.57208383", "0.56590843", "0.56293565", "0.56258905", "0.54159117", "0.54015416", "0.54015416", "0.54010844", "0.53605473", "0.5313467", "0.529545", "0.5288382", "0.5279513", "0.5277118", "0.52...
0.72512436
0
Don't call getName() directly since it will just return the name given to this thread, not the name of the actual thread running the code.
@Override public void run() { String name = currentThread().getName(); System.out.println(ANSI_BLUE + "Hello from " + name + "."); // Let the main thread exit and continue outputting to console. if (currentThread().getName().equals("main")) { return; } try { Thread.sleep(3000); } catch (InterruptedException e) { System.out.println(ANSI_BLUE + name + " was prematurely woken up."); return; // Sine it doesn't make sense to output the next message if it's already woken up. } // Not guaranteed to run after three seconds since another thread might wake this thread up, // and because the timing is operating system / JVM dependant. System.out.println(ANSI_BLUE + "Three seconds have passed and " + name + " is awake."); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getThreadName() {\n return threadName;\n }", "public String getThreadName() {\n return null;\n }", "public String toString()\n\t{\n\t\treturn threadName;\n\t}", "@Override\n public void run(){\n System.out.println(\"Running thread name: \"+Thread.currentThread().ge...
[ "0.78908616", "0.77201647", "0.7247608", "0.719185", "0.7090519", "0.7064872", "0.69618875", "0.69361037", "0.6930654", "0.6898677", "0.68906", "0.68906", "0.68906", "0.68906", "0.68906", "0.68906", "0.68906", "0.68906", "0.68906", "0.68906", "0.68906", "0.68906", "0.6890...
0.0
-1
The main program adds tools.jar and runs build
public static void main(java.lang.String[] args) throws java.lang.Exception { java.lang.System.out.println("Bootstrapping mutant"); java.net.URL bootstrapURL = org.apache.ant.init.ClassLocator.getClassLocationURL(org.apache.ant.bootstrap.Bootstrap.class); java.net.URL builderURL = new java.net.URL(bootstrapURL, "../builder/"); java.net.URL toolsJarURL = org.apache.ant.init.ClassLocator.getToolsJarURL(); java.net.URL[] urls = new java.net.URL[]{ builderURL, toolsJarURL }; java.lang.ClassLoader builderLoader = new java.net.URLClassLoader(urls); // org.apache.ant.init.LoaderUtils.dumpLoader(System.out, // builderLoader); java.lang.Class builderClass = java.lang.Class.forName("org.apache.ant.builder.Builder", true, builderLoader); final java.lang.Class[] param = new java.lang.Class[]{ java.lang.Class.forName("[Ljava.lang.String;") }; final java.lang.reflect.Method main = builderClass.getMethod("main", param); final java.lang.Object[] argument = new java.lang.Object[]{ args }; main.invoke(null, argument); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "default void buildMainSpace() throws Exception {\n buildMainBuildModules();\n buildMainCheckModules();\n buildMainGenerateAPIDocumentation();\n buildMainGenerateCustomRuntimeImage();\n }", "protected void addJDKToolsJar(ClassPathBuilder cpb) {\n try {\n\n File jdkToolsJar = helper....
[ "0.6349391", "0.6135693", "0.59528357", "0.5910785", "0.59091824", "0.5844861", "0.56910104", "0.5670798", "0.5627073", "0.5608749", "0.5592133", "0.5475898", "0.5462547", "0.53992414", "0.5394016", "0.5384833", "0.5363209", "0.532423", "0.53233236", "0.5304557", "0.5285875",...
0.6195713
1
The class holding records for this type
@Override public Class<QuestionForBuddysRecord> getRecordType() { return QuestionForBuddysRecord.class; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public RecordRecord() {\n\t\tsuper(org.jooq.examples.cubrid.demodb.tables.Record.RECORD);\n\t}", "public Class<?> getRecordClass() \n\t{\n\t return recordClass ;\n\t}", "public DataRecord() {\n super(DataTable.DATA);\n }", "@Override\n public Class<Record> getRecordType() {\n return Re...
[ "0.68004626", "0.66954035", "0.64103794", "0.6398801", "0.6398801", "0.6398801", "0.6398801", "0.6393993", "0.6354873", "0.6192012", "0.61258304", "0.61258304", "0.61258304", "0.6104736", "0.60470754", "0.60470754", "0.60470754", "0.6040716", "0.6029211", "0.6020949", "0.6008...
0.5851545
40
Create a public.question_for_buddys table reference
public QuestionForBuddys() { this(DSL.name("question_for_buddys"), null); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public QuestionsRecord() {\n\t\tsuper(sooth.entities.tables.Questions.QUESTIONS);\n\t}", "public void createSurvey(int tid);", "public QuestionForBuddys(Name alias) {\n this(alias, QUESTION_FOR_BUDDYS);\n }", "public static void createTable(SQLiteDatabase db, boolean ifNotExists) {\n String ...
[ "0.56218797", "0.5476367", "0.5443071", "0.5421309", "0.53949034", "0.53949034", "0.5385732", "0.5377326", "0.53391826", "0.5336067", "0.5326431", "0.53141594", "0.5292226", "0.5231184", "0.5228019", "0.5227332", "0.52142996", "0.5183955", "0.5149179", "0.5140587", "0.5129713...
0.64965016
0
Create an aliased public.question_for_buddys table reference
public QuestionForBuddys(String alias) { this(DSL.name(alias), QUESTION_FOR_BUDDYS); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public QuestionForBuddys(Name alias) {\n this(alias, QUESTION_FOR_BUDDYS);\n }", "public QuestionForBuddys() {\n this(DSL.name(\"question_for_buddys\"), null);\n }", "public static final String getTopicTableCreationSQL(String shortname) {\r\n\t\tString crTopicTableSQL = \"CREATE TABLE IF NO...
[ "0.5754421", "0.574136", "0.5151576", "0.5148992", "0.49183482", "0.4905059", "0.48708302", "0.48262215", "0.4781196", "0.4692668", "0.46828917", "0.46744254", "0.46607614", "0.46338826", "0.4551627", "0.45216897", "0.4509388", "0.4478113", "0.44743243", "0.44710883", "0.4465...
0.57656044
0
Create an aliased public.question_for_buddys table reference
public QuestionForBuddys(Name alias) { this(alias, QUESTION_FOR_BUDDYS); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public QuestionForBuddys(String alias) {\n this(DSL.name(alias), QUESTION_FOR_BUDDYS);\n }", "public QuestionForBuddys() {\n this(DSL.name(\"question_for_buddys\"), null);\n }", "public static final String getTopicTableCreationSQL(String shortname) {\r\n\t\tString crTopicTableSQL = \"CREATE...
[ "0.57637644", "0.57401437", "0.5151099", "0.5148677", "0.49183524", "0.4904905", "0.48715234", "0.482641", "0.47813696", "0.46933076", "0.46850222", "0.46746317", "0.46621054", "0.46363825", "0.45532832", "0.45235723", "0.4510264", "0.44791076", "0.4474819", "0.4473546", "0.4...
0.57528895
1
INSTACIAR PREFERENCES PARA PEGAR VALOR
@Override public void onClick(DialogInterface dialog, int which) { Preferences preferences = new Preferences(TelaPet.this); String identificadorUsuarioLogado = preferences.getIdentificador(); //EXCLUIR CONVERSAS DatabaseReference databaseReference = FirebaseDatabase.getInstance().getReference(); databaseReference = databaseReference.child("PETs") .child(identificadorUsuarioLogado) .child(idPet); //Pegando id do pet startActivity(new Intent(TelaPet.this, ListarPets.class)); Toast.makeText(getApplicationContext(), "Pet excluido com sucesso!!", Toast.LENGTH_SHORT).show(); databaseReference.removeValue(); finish(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void savingVariablesWebConfig(){\n SharedPreferences prefs = getSharedPreferences(Constants.PREFERENCES_NAME, Context.MODE_PRIVATE);\n //Save data of user in preferences\n SharedPreferences.Editor editor = prefs.edit();\n\n editor.putString(Constants.PREF_VALUE_MAX_ORDERS_ACCEPTE...
[ "0.5964694", "0.5935109", "0.5933346", "0.5891508", "0.58092827", "0.5787585", "0.57673115", "0.5693001", "0.56549", "0.5653248", "0.5638543", "0.56073725", "0.5598858", "0.55935866", "0.55694735", "0.55669636", "0.55516326", "0.54967004", "0.54633516", "0.5456514", "0.545212...
0.0
-1
/ //Using PhantomJS DesiredCapabilities caps = new DesiredCapabilities(); caps.setJavascriptEnabled(true); caps.setCapability(PhantomJSDriverService.PHANTOMJS_EXECUTABLE_PATH_PROPERTY, "C:/phantomjs2.1.1windows/bin/phantomjs.exe"); driver = new PhantomJSDriver(caps); using firefox
@BeforeClass public static void setUpClass() throws Exception { driver = new FirefoxDriver(); baseUrl = "http://localhost/"; driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected WebDriver createPhantomJSDriver() {\n DesiredCapabilities desiredCapabilities = new DesiredCapabilities();\n String[] phantomArgs = new String[]{\n \"--webdriver-loglevel=\"\n + Resources.base().webDriverLogLevel()\n };\n desiredCapabiliti...
[ "0.7216055", "0.68454695", "0.6836505", "0.6548202", "0.6294509", "0.6241417", "0.6239782", "0.62354946", "0.6145016", "0.61364806", "0.6119824", "0.6116706", "0.6059395", "0.60326374", "0.6031917", "0.60243267", "0.5992876", "0.596968", "0.5965476", "0.5960569", "0.5954111",...
0.5683094
53
assertText | css=img[alt="Actif"] |
protected void assertUtilisateurActif() { assertTrue( ((DoliUserPage)_currentPage).isUtilisateurActif()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testImageFiltering()\n { \n String html = header + \"<img src=\\\"file://path/to/local/image.png\\\"/>\" + footer;\n Document doc = wysiwygHTMLCleaner.clean(new StringReader(html));\n NodeList nodes = doc.getElementsByTagName(\"img\");\n Assert.assertEqu...
[ "0.58485526", "0.56754243", "0.5487901", "0.5478162", "0.5448396", "0.54064333", "0.53817135", "0.53681356", "0.53573936", "0.53461844", "0.53321373", "0.5314191", "0.5285441", "0.5277879", "0.524006", "0.523332", "0.5211143", "0.5208792", "0.52022505", "0.5198242", "0.519327...
0.0
-1
click | link=Nouveau client |
protected void clickOnNouveauClient() { _currentPage = ((DoliTiersPage)_currentPage).clickOnNouveauClient(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void clickOnCreerClient() {\n\t\t\t_currentPage = ((DoliNouveauTiersPage)_currentPage).clickOnCreerClient();\n\t\t}", "HtmlPage clickLink();", "HtmlPage clickSiteLink();", "public void AdminLink(){\n\t\tAdminLink.click();\n\t}", "@Override\r\n\t\tpublic void onClick(ClickEvent event) {\n\t\t\tcli...
[ "0.68572885", "0.6706976", "0.63808554", "0.63673127", "0.63296163", "0.62224036", "0.60803545", "0.60668606", "0.60214776", "0.59102905", "0.58192503", "0.58155143", "0.5804207", "0.5800836", "0.5786893", "0.5751543", "0.574301", "0.5736859", "0.5723695", "0.5718649", "0.570...
0.7501469
0
click | css=center > input.button |
protected void clickOnCreerClient() { _currentPage = ((DoliNouveauTiersPage)_currentPage).clickOnCreerClient(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void clickSearchButton() {\n\t\tsearchButton.click();\n\t}", "public void clickOnEditButton() {\r\n\t\tsafeClick(addMarkerOkButton.replace(\".ant-modal-footer button.ant-btn.ant-btn-primary\",\r\n\t\t\t\t\".ant-btn.ant-btn-primary.ant-btn-circle\"), SHORTWAIT);\r\n\t}", "@WebElementLocator(webDesktop =...
[ "0.591391", "0.58722806", "0.58314735", "0.58255154", "0.5760596", "0.5736589", "0.5707859", "0.57071596", "0.5700977", "0.5697649", "0.56138754", "0.56000394", "0.5545196", "0.5540852", "0.5497452", "0.5477141", "0.5476695", "0.5467649", "0.54627013", "0.54317135", "0.542780...
0.0
-1
TODO Autogenerated method stub
@Override protected void onActivityResult(int requestCode, int resultCode, Intent data) { super.onActivityResult(requestCode, resultCode, data); if (resultCode == RESULT_OK) { if (requestCode == CommenString.TAKE_PHOTO) { cameraUtil.photoZoomFromTake(CropperImageScale.square); } else if (requestCode == CommenString.LOCAL_PHOTO) { List<String> selectedImage = data.getStringArrayListExtra("paths"); cameraUtil.photoZoomFromMapStorage(selectedImage.get(0), CropperImageScale.square); } else if (requestCode == CommenString.PHOTO_RESULT) { Bundle extras = data.getExtras(); if (extras != null) { headBitmap = extras.getParcelable("data"); image_up.setImageBitmap(headBitmap); } } else { } } }
{ "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
Deny requests with no image ID
@GET @Path("image") @Produces(MediaType.TEXT_PLAIN) public Response voidImage() { return Response.status(Response.Status.NOT_FOUND).build(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean hasImageByHandler();", "@Override\n protected String getRequestedImage(HttpServletRequest req) {\n\treturn null;\n }", "public boolean isImageAllowed() {\n return mIsImageAllowed;\n }", "public boolean hasImageByHandler() {\n return ((bitField0_ & 0x00001000) == 0x00001000);\n ...
[ "0.5890951", "0.57765955", "0.5624362", "0.54121274", "0.5333215", "0.53148717", "0.53147477", "0.53018653", "0.53003913", "0.5274974", "0.5244217", "0.5217026", "0.52121764", "0.5194779", "0.51867986", "0.5161428", "0.51180947", "0.51042175", "0.5104152", "0.5097398", "0.509...
0.54173523
3
JAVA Generics to Create and return a New Page
public <TPage extends BasePage> TPage GetInstance(Class<TPage> pageClass) { try { return pageClass.getDeclaredConstructor(WebDriver.class, WebDriverWait.class).newInstance(this.driver, this.wait); }catch(Exception e) { e.printStackTrace(); return null; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Page createPage();", "public PageData createPageBean( HttpServletRequest request, Object actionResult ) throws ServletException;", "@Override\n public String createRecord(String creatingPage) {\n return creatingPage;\n }", "public interface Page {\n\n public abstract String createTitle();\n ...
[ "0.80644596", "0.6753358", "0.67081803", "0.6596044", "0.6530627", "0.6378633", "0.6368049", "0.63570005", "0.62558156", "0.61405176", "0.61231625", "0.61155856", "0.60791224", "0.6078911", "0.59994906", "0.5996156", "0.59832597", "0.59402084", "0.586944", "0.586258", "0.5857...
0.56393546
40
Don't construct, allow inheritance
protected HadoopUtils() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected abstract void construct();", "_ExtendsNotAbstract() {\n super(\"s\"); // needs this if not default ctor;\n }", "protected ChildType() {/* intentionally empty block */}", "O() { super(null); }", "Reproducible newInstance();", "private ATCres() {\r\n // prevent to instantiate thi...
[ "0.69784", "0.6888036", "0.67381084", "0.66753334", "0.64418054", "0.6400845", "0.6360677", "0.6354851", "0.62108976", "0.62038696", "0.62038696", "0.62038696", "0.62038696", "0.62038696", "0.62038696", "0.62038696", "0.62038696", "0.62038696", "0.62038696", "0.62038696", "0....
0.0
-1
Set Configuration if object is Configurable
public static void setConfIfPossible(Object object, Configuration conf) { if (object instanceof Configurable) { ((Configurable) object).setConf(conf); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface Configurable {\n void setConf(Configuration conf);\n Configuration getConf();\n}", "public void\t\tsetConfiguration(Object obj);", "abstract Configurable<?> getConfigurable();", "public interface Configurable {\n\n void configure(Properties properties);\n}", "public abstract void ...
[ "0.73894143", "0.73873013", "0.71150565", "0.7039677", "0.66550285", "0.6559196", "0.64902765", "0.6342369", "0.63278323", "0.6107082", "0.6064918", "0.6030355", "0.59945977", "0.5993128", "0.59178334", "0.59052384", "0.58824915", "0.5857691", "0.58546424", "0.5825903", "0.58...
0.70211303
4
Set JobConf if object is JobConfigurable
public static void setJobConfIfPossible(Object object, JobConf jobConf) { if (object instanceof JobConfigurable) { ((JobConfigurable) object).configure(jobConf); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void configure(JobConf arg0) {\n\t\t\n\t}", "protected JobConf createJobConf() \n {\n return new JobConf();\n }", "JobConf getJobConf() {\n return jobConf;\n }", "public interface Configurable {\n void setConf(Configuration conf);\n Configuration getConf();\n}", "ab...
[ "0.67648625", "0.61353", "0.606248", "0.6054276", "0.59415066", "0.57366127", "0.5723305", "0.5688792", "0.5660034", "0.56461763", "0.55784094", "0.55567276", "0.55255884", "0.53805065", "0.52785474", "0.5235495", "0.52131724", "0.5195234", "0.51659197", "0.51366943", "0.5112...
0.7460002
0
Hack to configure InputFormats before they get used.
public static void configureInputFormat(InputFormat inputFormat, Configuration conf) { JobConf jobConf = new JobConf(conf); setJobConfIfPossible(inputFormat, jobConf); // TextInputFormat is not always JobConfigurable, so we need to explicitly // call this here to make sure it gets configured with the // compression codecs. if (inputFormat instanceof TextInputFormat) { ((TextInputFormat) inputFormat).configure(jobConf); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public Format[] getSupportedInputFormats()\n {\n return supportedInputFormats;\n }", "public Format setInputFormat(Format input) {\n inputFormat = input;\n return input;\n }", "@Override\n public Format getInputFormat()\n {\n return super.getInpu...
[ "0.7533632", "0.6643867", "0.628379", "0.62673193", "0.6157912", "0.60493934", "0.6037915", "0.5909583", "0.5906032", "0.5884652", "0.58549535", "0.5828536", "0.5827143", "0.57675785", "0.57464343", "0.57387906", "0.57324797", "0.5720535", "0.5681908", "0.56708276", "0.565644...
0.575503
14