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
Asigna el valor que tiene la variable timeout.
public void setTimeout(double timeout){ this.timeout = timeout; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "long getTimeout();", "final Long getTimeoutValue()\n/* */ {\n/* 137 */ return this.timeout;\n/* */ }", "public long getTimeout() { return timeout; }", "public long GetTimeout() { return timeout; }", "public int getTimeout();", "int getTimeout();", "public int getTimeout() {\r\n r...
[ "0.7931364", "0.78780055", "0.7862992", "0.78387564", "0.7809909", "0.77927965", "0.77678746", "0.7703726", "0.76490563", "0.75297004", "0.750819", "0.750819", "0.750819", "0.7468566", "0.74351496", "0.7344381", "0.7334647", "0.72886854", "0.72718304", "0.7237564", "0.7234674...
0.73814225
15
TODO Autogenerated method stub
public static void main(String[] args) { Scanner in = new Scanner(System.in); { System.out.print("Enter the amount of oil ordered, in gallons: "); //output to ask user test oil double oil = in.nextDouble(); //program waits and asks user for input if (oil >= 100) //if statement for oil greater than equal to 100 { int discount = 1; //Displays prompt if user enters a value 100 or greater double pricePerGallon = 325.00; double pricePerGallon2 = 3.25; System.out.println("Number of gallons ordered: " + oil + " - $" + pricePerGallon); System.out.println("Discount: " + discount + "% - $" + pricePerGallon2); double total = pricePerGallon - pricePerGallon2; System.out.println("Your total charge is: $" + total); } else if (oil >= 200) //if statement for oil greater than or equal to 200 { int discount2 = 2; //Displays prompt if user enters a value of 200 or greater double pricePerGallon = 650.00; double pricePerGallon2 = 6.50; System.out.println("Number of gallons ordered: " + oil + " - $" + pricePerGallon); System.out.println("Discount: " + discount2 + "% - $" + pricePerGallon2); double total = pricePerGallon - pricePerGallon2; System.out.println("Your total charge is: $" + total); } else if (oil >= 300) //if statement for oil greater than or equal to 300 { int discount3 = 3; //Displays prompt if user enters a value 300 or greater double pricePerGallon = 975.00; double pricePerGallon2 = 9.75; System.out.println("Number of gallons ordered: " + oil + " - $" + pricePerGallon); System.out.println("Discount: " + discount3 + "% - $" + pricePerGallon2); double total = pricePerGallon - pricePerGallon2; System.out.println("Your total charge is: $" + total); } else if (oil >= 400) //if statement for oil greater than or equal to 400 { int discount4 = 4; //Displays prompt if user enters a value 400 or greater double pricePerGallon = 1300.00; double pricePerGallon2 = 13; System.out.println("Number of gallons ordered: " + oil + " - $" + pricePerGallon); System.out.println("Discount: " + discount4 + "% - $" + pricePerGallon2); double total = pricePerGallon - pricePerGallon2; System.out.println("Your total charge is: $" + total); } else if (oil >= 500) //if statement for oil greater than or equal to 500 { int discount5 = 5; //Displays prompt if user enters a value 500 or greater double pricePerGallon = 1625.00; double pricePerGallon2 = 16.25; System.out.println("Number of gallons ordered: " + oil + " - $" + pricePerGallon); System.out.println("Discount: " + discount5 + "% - $" + pricePerGallon2); double total = pricePerGallon - pricePerGallon2; System.out.println("Your total charge is: $" + total); } else { System.out.print("Have a great day"); //Displays message if the input of oil is less than 100 } } }
{ "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
Map section = ConfigProvider.getConfigSectionValue(this.config.get("teams." + team + ".generators"), true);
public Location getGeneratorLocation(String team) { double x = this.getDouble("teams." + team + ".generator.x"); double y = this.getDouble("teams." + team + ".generator.y"); double z = this.getDouble("teams." + team + ".generator.z"); return new Location(BedWars.world, x, y, z); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getConfigName();", "ConfigBlock getConfig();", "public IConfigurationElement getCommandLineGeneratorElement();", "public String getConfig();", "public Config getConfig();", "String[] getGenerators();", "public abstract String getConfig();", "public IConfigurationElement getDependencyGeneratorE...
[ "0.57564366", "0.5705942", "0.5703285", "0.5617329", "0.55519915", "0.55169654", "0.54723406", "0.54313934", "0.5375008", "0.53265274", "0.53252095", "0.5296902", "0.5285202", "0.52802354", "0.5276687", "0.5275544", "0.5275544", "0.5275544", "0.5275544", "0.52556545", "0.5209...
0.0
-1
If true, adds the value of the `address` argument to the Terraform process environment.
public Optional<String> addAddressToEnv() { return Codegen.stringProp("addAddressToEnv").config(config).get(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setAddress(java.lang.String param) {\r\n localAddressTracker = param != null;\r\n\r\n this.localAddress = param;\r\n }", "public void setExternalAddress(String address);", "public void setAddress(String address) { this.address = address; }", "public boolean setAddress...
[ "0.59775436", "0.58945465", "0.5815727", "0.5814472", "0.5798578", "0.578938", "0.57761633", "0.5765887", "0.5760096", "0.5760096", "0.5760096", "0.5756777", "0.5756777", "0.5711265", "0.5698616", "0.5698616", "0.5697431", "0.56916696", "0.5680162", "0.5671112", "0.5671112", ...
0.6703582
0
URL of the root of the target Vault server.
public String address() { return Codegen.stringProp("address").config(config).require(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getRootServerBaseUrl();", "private String getRootUrl(String path){\n return \"http://localhost:\" + port + \"/api/v1\" + path;\n }", "private String getRootUrl() {\n\t\treturn \"http://localhost:\" + port;\n\t}", "private String getRootUrl() {\n\t\treturn \"http://localhost:\" + port;\n\t}",...
[ "0.7705045", "0.7007577", "0.6916749", "0.6916749", "0.68601", "0.680182", "0.6777382", "0.67489684", "0.6734411", "0.6708374", "0.6634317", "0.65809655", "0.6489701", "0.6436521", "0.6375516", "0.6355159", "0.63316256", "0.63307124", "0.631469", "0.6250944", "0.622125", "0...
0.0
-1
Login to vault with an existing auth method using auth//login
public Optional<AuthLogin> authLogin() { return Codegen.objectProp("authLogin", AuthLogin.class).config(config).get(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected synchronized void login() {\n\t\tauthenticate();\n\t}", "public void login () {\n\t\tGPPSignIn.sharedInstance().authenticate();\n\t}", "public User doAuthentication(String account, String password);", "protected Response login() {\n return login(\"\");\n }", "public abstract void login(...
[ "0.6455401", "0.6312018", "0.61904866", "0.61766434", "0.6167265", "0.616163", "0.6155467", "0.6136926", "0.60745466", "0.60275394", "0.6027443", "0.6010199", "0.60049236", "0.6002678", "0.5967003", "0.59452826", "0.5891631", "0.5841141", "0.5810358", "0.5760842", "0.57372034...
0.0
-1
Login to vault using the AWS method
public Optional<AuthLoginAws> authLoginAws() { return Codegen.objectProp("authLoginAws", AuthLoginAws.class).config(config).get(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public AdbLoginResponse loginScoinFromAdb(AdbLoginScoinRequest adbLoginScoinRequest);", "SqlVirtualMachineManager authenticate(AzureTokenCredentials credentials, String subscriptionId);", "public void loginAsUser() {\n vinyardApp.navigateToUrl(\"http://localhost:8080\");\n vinyardApp.fillUsername...
[ "0.5738282", "0.5507398", "0.54317737", "0.53890514", "0.5386339", "0.53692824", "0.53357494", "0.529501", "0.52750415", "0.5267303", "0.5218932", "0.51669127", "0.5095082", "0.5067939", "0.5066096", "0.5057388", "0.5041901", "0.50212556", "0.5019289", "0.5019199", "0.5005775...
0.4833177
39
Login to vault using the azure method
public Optional<AuthLoginAzure> authLoginAzure() { return Codegen.objectProp("authLoginAzure", AuthLoginAzure.class).config(config).get(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "SqlVirtualMachineManager authenticate(AzureTokenCredentials credentials, String subscriptionId);", "private static void authenticateToAzure() {\n ApplicationTokenCredentials credentials = new ApplicationTokenCredentials(AZURE_CLIENT_ID,\r\n AZURE_TENANT_ID, AZURE_CLIENT_SECRET, AzureEnviron...
[ "0.6678755", "0.6639221", "0.5834142", "0.5834142", "0.5807505", "0.569161", "0.5614148", "0.5594924", "0.55104953", "0.5492428", "0.5482306", "0.5367023", "0.5362736", "0.5362736", "0.5273855", "0.5252134", "0.52071166", "0.520027", "0.51954734", "0.5189538", "0.518234", "...
0.53765464
11
Login to vault using the cert method
public Optional<AuthLoginCert> authLoginCert() { return Codegen.objectProp("authLoginCert", AuthLoginCert.class).config(config).get(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void login () {\n\t\tGPPSignIn.sharedInstance().authenticate();\n\t}", "protected synchronized void login() {\n\t\tauthenticate();\n\t}", "public AdbLoginResponse loginScoinFromAdb(AdbLoginScoinRequest adbLoginScoinRequest);", "public Reply login(String hostname) throws ThingsException, InterruptedExc...
[ "0.573131", "0.55913854", "0.5509606", "0.5474442", "0.5331562", "0.53301245", "0.5279328", "0.5274508", "0.5255032", "0.520103", "0.5190993", "0.5181305", "0.51715153", "0.5149033", "0.5146134", "0.51348376", "0.51035404", "0.50970495", "0.5057134", "0.5049156", "0.5034625",...
0.0
-1
Login to vault using the gcp method
public Optional<AuthLoginGcp> authLoginGcp() { return Codegen.objectProp("authLoginGcp", AuthLoginGcp.class).config(config).get(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void login () {\n\t\tGPPSignIn.sharedInstance().authenticate();\n\t}", "public void loginAsUser() {\n vinyardApp.navigateToUrl(\"http://localhost:8080\");\n vinyardApp.fillUsername(\"user\");\n vinyardApp.fillPassord(\"123\");\n vinyardApp.clickSubmitButton();\n }", "priva...
[ "0.6530903", "0.59050465", "0.59035337", "0.5699965", "0.56697285", "0.5551532", "0.54651254", "0.5420195", "0.5408027", "0.53934515", "0.538774", "0.53856665", "0.5346215", "0.53004575", "0.52953404", "0.52953404", "0.5291406", "0.52899957", "0.5289239", "0.5271152", "0.5261...
0.0
-1
Login to vault using the jwt method
public Optional<AuthLoginJwt> authLoginJwt() { return Codegen.objectProp("authLoginJwt", AuthLoginJwt.class).config(config).get(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected Response login() {\n return login(\"\");\n }", "public void loginAsUser() {\n vinyardApp.navigateToUrl(\"http://localhost:8080\");\n vinyardApp.fillUsername(\"user\");\n vinyardApp.fillPassord(\"123\");\n vinyardApp.clickSubmitButton();\n }", "public void logi...
[ "0.6336322", "0.62115496", "0.6106165", "0.6102047", "0.6082504", "0.60657823", "0.60485005", "0.6027204", "0.6003208", "0.59825605", "0.5968519", "0.59165007", "0.5906494", "0.59041387", "0.58898485", "0.5878947", "0.5878505", "0.5876011", "0.58633244", "0.58548343", "0.5835...
0.0
-1
Login to vault using the kerberos method
public Optional<AuthLoginKerberos> authLoginKerberos() { return Codegen.objectProp("authLoginKerberos", AuthLoginKerberos.class).config(config).get(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Reply login(String hostname) throws ThingsException, InterruptedException;", "protected synchronized void login() {\n\t\tauthenticate();\n\t}", "String login(String userName, String password) throws RemoteException, InterruptedException;", "public void doLogin() throws IOException {\n if (princ...
[ "0.62391126", "0.5903808", "0.582325", "0.5776788", "0.57286775", "0.55966115", "0.55799186", "0.55051106", "0.5489457", "0.54891956", "0.5486492", "0.5432225", "0.5423138", "0.54060256", "0.53711444", "0.5360851", "0.5341339", "0.5327908", "0.5319925", "0.5318342", "0.531834...
0.5683098
5
Login to vault using the OCI method
public Optional<AuthLoginOci> authLoginOci() { return Codegen.objectProp("authLoginOci", AuthLoginOci.class).config(config).get(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void login(String cuid, String pass)\n throws RemoteException;", "public com.sun.jna.PointerType login(Credentials c) throws RelationException;", "String login(String userName, String password) throws RemoteException, InterruptedException;", "public abstract void login(String userName, String password) th...
[ "0.60738194", "0.6071216", "0.6062153", "0.60240203", "0.57252437", "0.5685769", "0.56572384", "0.55718684", "0.55368966", "0.5536489", "0.55114806", "0.55062413", "0.55033076", "0.5478512", "0.54741335", "0.54331684", "0.5427766", "0.54035205", "0.53889704", "0.53793174", "0...
0.0
-1
Login to vault using the oidc method
public Optional<AuthLoginOidc> authLoginOidc() { return Codegen.objectProp("authLoginOidc", AuthLoginOidc.class).config(config).get(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected synchronized void login() {\n\t\tauthenticate();\n\t}", "public AdbLoginResponse loginScoinFromAdb(AdbLoginScoinRequest adbLoginScoinRequest);", "public void login () {\n\t\tGPPSignIn.sharedInstance().authenticate();\n\t}", "public void loginAsUser() {\n vinyardApp.navigateToUrl(\"http://loc...
[ "0.58869016", "0.58367467", "0.58017945", "0.5752768", "0.56833625", "0.5667112", "0.5658028", "0.56495136", "0.5646221", "0.5644723", "0.5618529", "0.5586276", "0.55767304", "0.5574636", "0.5569276", "0.55533326", "0.55326355", "0.5511637", "0.5509141", "0.5492902", "0.54658...
0.0
-1
Login to vault using the radius method
public Optional<AuthLoginRadius> authLoginRadius() { return Codegen.objectProp("authLoginRadius", AuthLoginRadius.class).config(config).get(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void loginAsUser() {\n vinyardApp.navigateToUrl(\"http://localhost:8080\");\n vinyardApp.fillUsername(\"user\");\n vinyardApp.fillPassord(\"123\");\n vinyardApp.clickSubmitButton();\n }", "public void login () {\n\t\tGPPSignIn.sharedInstance().authenticate();\n\t}", "priva...
[ "0.6194595", "0.6172504", "0.6101661", "0.60233116", "0.60224426", "0.60152143", "0.600175", "0.5989436", "0.5951228", "0.5913772", "0.5909098", "0.59056354", "0.5864548", "0.58620954", "0.5853213", "0.58430314", "0.58218145", "0.5811605", "0.5799396", "0.5776659", "0.5772787...
0.0
-1
Login to vault using
public Optional<AuthLoginTokenFile> authLoginTokenFile() { return Codegen.objectProp("authLoginTokenFile", AuthLoginTokenFile.class).config(config).get(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void loginAsUser() {\n vinyardApp.navigateToUrl(\"http://localhost:8080\");\n vinyardApp.fillUsername(\"user\");\n vinyardApp.fillPassord(\"123\");\n vinyardApp.clickSubmitButton();\n }", "private void loginAsAdmin() {\n vinyardApp.navigateToUrl(\"http://localhost:808...
[ "0.64736617", "0.62114394", "0.6126528", "0.6109893", "0.6085969", "0.60588527", "0.60279745", "0.59955025", "0.5970518", "0.5970341", "0.59693766", "0.59662783", "0.5927412", "0.59242296", "0.59021205", "0.5869405", "0.5866831", "0.5861245", "0.5831453", "0.5818742", "0.5813...
0.0
-1
Login to vault using the userpass method
public Optional<AuthLoginUserpass> authLoginUserpass() { return Codegen.objectProp("authLoginUserpass", AuthLoginUserpass.class).config(config).get(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void login(String user, String password);", "void login(String cuid, String pass)\n throws RemoteException;", "private void authenticate(String user, String pass) {\n }", "public void loginAsUser() {\n vinyardApp.navigateToUrl(\"http://localhost:8080\");\n vinyardApp.fillUsername(\"user\"...
[ "0.681498", "0.6680694", "0.66718906", "0.66315794", "0.6440902", "0.64019567", "0.6394346", "0.63456345", "0.62955236", "0.62767804", "0.62434673", "0.62334436", "0.6141401", "0.611455", "0.6109048", "0.61058766", "0.608491", "0.6039153", "0.6038306", "0.60301787", "0.600259...
0.0
-1
Path to directory containing CA certificate files to validate the server&39;s certificate.
public Optional<String> caCertDir() { return Codegen.stringProp("caCertDir").config(config).get(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getUserCertificatesPath();", "public ValidationResult validate(CertPath certPath);", "public Optional<String> caCertFile() {\n return Codegen.stringProp(\"caCertFile\").config(config).get();\n }", "private void assignCAPath()\n {\n this.caPath = CA_PATH.get(conf);\n\n if ...
[ "0.6393428", "0.6220943", "0.58161604", "0.5591156", "0.5552555", "0.54726195", "0.5417516", "0.53545606", "0.53479385", "0.53064275", "0.5200306", "0.51888734", "0.5162791", "0.5064825", "0.5064702", "0.5057189", "0.505357", "0.50478715", "0.50179166", "0.5006945", "0.499988...
0.62538683
1
Path to a CA certificate file to validate the server&39;s certificate.
public Optional<String> caCertFile() { return Codegen.stringProp("caCertFile").config(config).get(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ValidationResult validate(CertPath certPath);", "private static final CertificateValidationContext getCertContextFromPath(String pemFilePath)\n throws IOException {\n return CertificateValidationContext.newBuilder()\n .setTrustedCa(\n DataSource.newBuilder().setFilename(TestUtils...
[ "0.66154706", "0.5861481", "0.580025", "0.56686467", "0.56006366", "0.55422693", "0.54730517", "0.54653794", "0.545231", "0.54104525", "0.5408147", "0.5350186", "0.52931327", "0.526799", "0.52550703", "0.5254804", "0.51919407", "0.515991", "0.51261085", "0.5113809", "0.509336...
0.6621814
0
The headers to send with each Vault request.
public Optional<List<Headers>> headers() { return Codegen.objectProp("headers", TypeShape.<List<Headers>>builder(List.class).addParameter(Headers.class).build()).config(config).get(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "RequestHeaders headers();", "public VersionedMap getHeaders ()\n {\n return headers;\n }", "private HttpHeaders getHeaders() {\n\t\tHttpHeaders headers = new HttpHeaders();\n\t\theaders.setAccept(Arrays.asList(MediaType.APPLICATION_JSON));\n\t\treturn headers;\n\t}", "public abstract...
[ "0.71020675", "0.6997531", "0.68097866", "0.68024987", "0.67940414", "0.6792962", "0.6792962", "0.677315", "0.67030096", "0.67030096", "0.6669572", "0.6669408", "0.6656029", "0.6638157", "0.6637932", "0.6631435", "0.6624495", "0.6599793", "0.659766", "0.6584925", "0.65823346"...
0.0
-1
Maximum TTL for secret leases requested by this provider.
public Optional<Integer> maxLeaseTtlSeconds() { return Codegen.integerProp("maxLeaseTtlSeconds").config(config).env("TERRAFORM_VAULT_MAX_TTL").def(1200).get(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getTTL()\r\n {\r\n return TTL;\r\n }", "long getTTL();", "public long maxStakeRewarded() {\n return stakingMaxStakeRewarded;\n }", "public int getSessionMaxAliveTime();", "public int getMaxInactiveInterval();", "public int getConnectionMaxTokens() {\n return zks.c...
[ "0.5923776", "0.59077746", "0.5662367", "0.5640297", "0.56245685", "0.5619553", "0.56067693", "0.5580499", "0.5559867", "0.5548733", "0.5494898", "0.5476381", "0.54712", "0.54683834", "0.54604363", "0.5451768", "0.5443642", "0.54434013", "0.542454", "0.5421598", "0.5416064", ...
0.6853419
0
Maximum number of retries when a 5xx error code is encountered.
public Optional<Integer> maxRetries() { return Codegen.integerProp("maxRetries").config(config).env("VAULT_MAX_RETRIES").def(2).get(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected short maxRetries() { return 15; }", "protected int retryLimit() {\n return DEFAULT_RETRIES;\n }", "static public int getMaxAsyncPollingRetries() {\n return maxAsyncPollingRetries;\n }", "protected int getMaxRetries()\n {\n return heartbeat.getMaxRetries();\n }", "publ...
[ "0.8175113", "0.76407427", "0.72639096", "0.7232953", "0.7231864", "0.7143289", "0.688596", "0.682089", "0.6815401", "0.67574257", "0.6648795", "0.663482", "0.6590453", "0.6523154", "0.6462368", "0.64481735", "0.6369393", "0.6357083", "0.6348692", "0.6320361", "0.63104486", ...
0.6786413
9
Maximum number of retries for Client Controlled Consistency related operations
public Optional<Integer> maxRetriesCcc() { return Codegen.integerProp("maxRetriesCcc").config(config).get(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected short maxRetries() { return 15; }", "protected int getMaxRetries()\n {\n return heartbeat.getMaxRetries();\n }", "protected int retryLimit() {\n return DEFAULT_RETRIES;\n }", "static public int getMaxAsyncPollingRetries() {\n return maxAsyncPollingRetries;\n }", "publ...
[ "0.7955949", "0.74327904", "0.74215233", "0.72578067", "0.72538626", "0.7132607", "0.7053853", "0.6908257", "0.6884619", "0.68834597", "0.68099356", "0.6730807", "0.65785706", "0.64696753", "0.6459009", "0.64450955", "0.64212775", "0.6319326", "0.62786746", "0.627782", "0.627...
0.6375137
17
The namespace to use. Available only for Vault Enterprise.
public Optional<String> namespace() { return Codegen.stringProp("namespace").config(config).get(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getNamespace() {\n return namespace;\n }", "public String getNamespace()\n {\n return NAMESPACE;\n }", "@Updatable\n public String getNamespace() {\n return namespace;\n }", "public String getNamespace() {\n return namespace;\n }", "public Strin...
[ "0.76492566", "0.7630527", "0.7614426", "0.76124626", "0.76124626", "0.76124626", "0.760906", "0.760906", "0.760906", "0.75985044", "0.7580913", "0.7580744", "0.7460457", "0.744617", "0.7428694", "0.7355499", "0.7181361", "0.69971514", "0.69781315", "0.6954493", "0.69411117",...
0.7202758
16
Set this to true to prevent the creation of ephemeral child token used by this provider.
public Optional<Boolean> skipChildToken() { return Codegen.booleanProp("skipChildToken").config(config).get(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public PersistentChildToken() {\n this.Id = UUID.randomUUID();\n this.owner = \"\";\n this.issuer = \"\";\n this.amount = 0;\n this.persistentToken = null;\n this.childProof = \"I am a child\";\n this.listOfPersistentGrandChildTokens = nu...
[ "0.55763066", "0.5407206", "0.5390175", "0.52868474", "0.5264609", "0.5220743", "0.5157669", "0.5109565", "0.50975275", "0.5052242", "0.50321406", "0.49886903", "0.49700147", "0.4968929", "0.49232802", "0.4923116", "0.49115658", "0.4882043", "0.4880917", "0.48574772", "0.4851...
0.5793482
0
Skip the dynamic fetching of the Vault server version.
public Optional<Boolean> skipGetVaultVersion() { return Codegen.booleanProp("skipGetVaultVersion").config(config).get(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Optional<String> vaultVersionOverride() {\n return Codegen.stringProp(\"vaultVersionOverride\").config(config).get();\n }", "@Override\n public void onNoNewVersionDetected() {\n\n }", "public Optional<Boolean> skipTlsVerify() {\n return Codegen.booleanProp(\"skipTlsVerify\").confi...
[ "0.56455564", "0.5414893", "0.52861476", "0.52617294", "0.51944643", "0.49235612", "0.48449114", "0.48394495", "0.48246995", "0.48213202", "0.47810608", "0.47443682", "0.47210598", "0.47149712", "0.4710502", "0.4698284", "0.4684302", "0.46685445", "0.464462", "0.46411404", "0...
0.6441363
0
Set this to true only if the target Vault server is an insecure development instance.
public Optional<Boolean> skipTlsVerify() { return Codegen.booleanProp("skipTlsVerify").config(config).env("VAULT_SKIP_VERIFY").get(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static boolean isDevEnv() {\n return (Boolean) Launch.blackboard.get(\"fml.deobfuscatedEnvironment\");\n }", "private void checkProductionMode() {\n if (getApplicationOrSystemProperty(SERVLET_PARAMETER_DEBUG, \"true\")\n .equals(\"false\")) {\n // \"Debug=true...
[ "0.66566765", "0.6516824", "0.64727795", "0.6337339", "0.6230058", "0.6178492", "0.60633254", "0.60114264", "0.60114264", "0.600435", "0.5965679", "0.59656566", "0.59407586", "0.58919114", "0.5861207", "0.58453685", "0.58435136", "0.58435136", "0.5839771", "0.580786", "0.5803...
0.5660896
32
Name to use as the SNI host when connecting via TLS.
public Optional<String> tlsServerName() { return Codegen.stringProp("tlsServerName").config(config).get(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String name () {\n return \"tls\";\n }", "String getHostName();", "String getHostName();", "public String getHostName();", "String getRemoteHostName();", "String getHostname();", "String getHostname();", "public String getServername() {\r\n return servername;\r\n }", "pub...
[ "0.6556287", "0.6544177", "0.6544177", "0.65433776", "0.64536065", "0.63699096", "0.63699096", "0.63046753", "0.6293422", "0.6266543", "0.62525105", "0.62031853", "0.61855155", "0.618374", "0.618374", "0.6172959", "0.6172959", "0.61697775", "0.6162579", "0.61436194", "0.61260...
0.62357354
11
Token to use to authenticate to Vault.
public String token() { return Codegen.stringProp("token").config(config).require(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String getVaultToken(MagnoliaConfigurationProperties magnoliaConfigurationProperties) {\n return magnoliaConfigurationProperties.getProperty(PROPERTY_VAULT_TOKEN);\n }", "public String getToken();", "Pokemon.RequestEnvelop.AuthInfo.JWT getToken();", "public static String getToken() {\n ...
[ "0.7127441", "0.6746648", "0.6503431", "0.6425657", "0.6402556", "0.6402556", "0.6402556", "0.6402556", "0.6402556", "0.6402556", "0.6377366", "0.6360293", "0.6351713", "0.6332273", "0.6332273", "0.6332273", "0.6332273", "0.6332273", "0.6327812", "0.6327812", "0.6304202", "...
0.6144382
48
Token name to use for creating the Vault child token.
public Optional<String> tokenName() { return Codegen.stringProp("tokenName").config(config).get(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "TokenTypes.TokenName getName();", "public Token getName()\n {\n if (isVersion())\n {\n return getVersion();\n }\n\n return getModule();\n }", "@Override\r\n\tpublic Token createToken() {\n\t\tToken token = new Token();\r\n\t\treturn token;\r\n\t}", "public String ...
[ "0.66298413", "0.6477666", "0.6331196", "0.6029376", "0.59981096", "0.59294677", "0.5916345", "0.58921075", "0.58779997", "0.58662647", "0.58277744", "0.582459", "0.57948154", "0.57948154", "0.57948154", "0.5775557", "0.5757189", "0.5756824", "0.5749178", "0.5749178", "0.5749...
0.6264751
3
Override the Vault server version, which is normally determined dynamically from the target Vault server
public Optional<String> vaultVersionOverride() { return Codegen.stringProp("vaultVersionOverride").config(config).get(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getServerVersion();", "public Long getServerVersion() {\n\t\treturn serverVersion;\n\t}", "@GetMapping()\n public String getServerVersion() {\n return versionProperties.getVersion();\n }", "public String getServerVersion() throws IOException {\n\t\treturn Core.getServerVersion(getH...
[ "0.69903433", "0.6421012", "0.6144509", "0.61157197", "0.60530853", "0.600078", "0.5996463", "0.5910492", "0.5910492", "0.5887728", "0.58806115", "0.58806115", "0.58806115", "0.58806115", "0.58806115", "0.58806115", "0.58806115", "0.58806115", "0.5880282", "0.5878691", "0.586...
0.72772473
0
testEnumMethod(); testEnumMethod2(); testEnumMethod3(); testSwitchEnum();
public static void main(String[] args) { for (OperateTypeEnum test : OperateTypeEnum.values()) { System.out.println(test.name()+" "+test.ordinal()); } EnumMap<OperateTypeEnum, String> enumMap = new EnumMap<OperateTypeEnum, String>(OperateTypeEnum.class); enumMap.put(OperateTypeEnum.DELETE, "dddddddddddddd"); enumMap.put(OperateTypeEnum.UPDATE, "uuuuuuuuuuuuuu"); for (Map.Entry<OperateTypeEnum, String> entry : enumMap.entrySet()) { System.out.println(entry.getValue() + entry.getKey().getEnumDesc()); } // EnumSet<OperateTypeEnum> enumSets = EnumSet.of(OperateTypeEnum.DELETE); // EnumSet<OperateTypeEnum> enumSets = EnumSet.allOf(OperateTypeEnum.class); // EnumSet<OperateTypeEnum> enumSets = EnumSet.range(OperateTypeEnum.DELETE,OperateTypeEnum.UPDATE); EnumSet<OperateTypeEnum> enumSet = EnumSet.noneOf(OperateTypeEnum.class); enumSet.add(OperateTypeEnum.DELETE); enumSet.add(OperateTypeEnum.UPDATE); for (Iterator<OperateTypeEnum> it = enumSet.iterator(); it.hasNext();) { System.out.println(it.next().getEnumDesc()); } for (OperateTypeEnum enumTest : enumSet) { System.out.println(enumTest.getEnumDesc() + " ..... "); } EnumSet<OperateTypeEnum> enumSets = EnumSet.copyOf(enumSet); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) throws Exception {\n testEnum();\r\n }", "public static void main( String[] args ) {\n\t\tEnumUnderTest[] enumValues = EnumUnderTest.values();\n\t\t// this converts a string to an enum value\n\t\tEnumUnderTest stringConvertedEnumValue = EnumUnderTest.valueOf( \"EN...
[ "0.6643009", "0.6627", "0.6589795", "0.61185366", "0.61053467", "0.60977936", "0.5988162", "0.5936658", "0.5909773", "0.58904505", "0.5807953", "0.5712071", "0.5711919", "0.56456804", "0.5613351", "0.55596244", "0.5534644", "0.55179447", "0.54855347", "0.5455321", "0.54273826...
0.5691194
13
Return the diagrams that ought to be opened when first opening the project right after its creation
@objid ("8716539d-59a0-4e88-8366-8d78d836652f") public List<MRef> getDiagramsToOpen() { return this.diagrams; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tprotected Collection<Diagram> getDiagrams() {\n\t\treturn null;\n\t}", "public String getExistingDiagnoses(){\n \treturn existingDiagnoses;\n }", "public List<Concept> getDiagnoses(){\n \treturn diagnoses;\n }", "Diagram getDiagram();", "Diagram getDiagram();", "protected Diagram...
[ "0.6435871", "0.5920553", "0.5367176", "0.53551966", "0.53551966", "0.5310435", "0.5263362", "0.52059877", "0.51850647", "0.5073732", "0.5004903", "0.50021833", "0.5001252", "0.49481055", "0.4918452", "0.48662126", "0.48474243", "0.4844576", "0.48254254", "0.4821765", "0.4804...
0.68061244
0
Find the ModelerModule, if not found : abort as this module is mandatory.
@objid ("3e9074cc-ba08-40be-ac20-9f2456c7e329") private IModuleHandle getModelerModule(IModuleCatalog moduleCatalog, IModelioProgress monitor) throws IOException, FileSystemException { IModuleHandle modelerModule = moduleCatalog.findModule("ModelerModule", /* * latest * version */null, monitor); if (modelerModule == null) { final String errMsg = AppProjectCore.I18N.getString("ModelerModuleMissing.Message"); throw new FileNotFoundException(errMsg); } return modelerModule; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Module findModule(String moduleName) {\n if(modules.containsKey(moduleName))\n return modules.get(moduleName);\n //TODO: search in joined mobiles\n return null;\n }", "private Optional<RuntimeModel> loadImportById(String id) {\n Optional<RuntimeModel> runtimeModel...
[ "0.5332333", "0.5142807", "0.5091444", "0.5002318", "0.49738294", "0.49608737", "0.49583367", "0.493609", "0.4934476", "0.48175567", "0.47867393", "0.47852895", "0.4782793", "0.47497544", "0.47497544", "0.4749496", "0.4744167", "0.4744167", "0.4744167", "0.4744167", "0.474416...
0.6696505
0
Person component. Generated by Jspresso. All rights reserved.
@SuppressWarnings("all") public interface Person { /** * Constant value for lastname. */ String LASTNAME = "lastname"; /** * Gets the lastname. * * @hibernate.property * @hibernate.column * name = "LASTNAME" * length = "64" * @return the lastname. */ java.lang.String getLastname(); /** * Sets the lastname. * * @param lastname * the lastname to set. */ void setLastname(java.lang.String lastname); /** * Constant value for firstname. */ String FIRSTNAME = "firstname"; /** * Gets the firstname. * * @hibernate.property * @hibernate.column * name = "FIRSTNAME" * length = "64" * @return the firstname. */ java.lang.String getFirstname(); /** * Sets the firstname. * * @param firstname * the firstname to set. */ void setFirstname(java.lang.String firstname); /** * Constant value for createTimestamp. */ String CREATE_TIMESTAMP = "createTimestamp"; /** * Gets the createTimestamp. * * @hibernate.property * type = "timestamp" * @hibernate.column * name = "CREATE_TIMESTAMP" * @return the createTimestamp. */ java.util.Date getCreateTimestamp(); /** * Sets the createTimestamp. * * @param createTimestamp * the createTimestamp to set. */ void setCreateTimestamp(java.util.Date createTimestamp); /** * Constant value for lastUpdateTimestamp. */ String LAST_UPDATE_TIMESTAMP = "lastUpdateTimestamp"; /** * Gets the lastUpdateTimestamp. * * @hibernate.property * type = "timestamp" * @hibernate.column * name = "LAST_UPDATE_TIMESTAMP" * @return the lastUpdateTimestamp. */ java.util.Date getLastUpdateTimestamp(); /** * Sets the lastUpdateTimestamp. * * @param lastUpdateTimestamp * the lastUpdateTimestamp to set. */ void setLastUpdateTimestamp(java.util.Date lastUpdateTimestamp); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void create(Person person) {\n\r\n\t}", "public Person getPerson()\r\n\t{\r\n\t\treturn person;\r\n\t}", "private TypicalPersons() {}", "private TypicalPersons() {}", "public SamplePerson getPersonById(int id) {\n //TODO\n throw new NotImplementedException();\n }", ...
[ "0.6826346", "0.68024206", "0.679128", "0.679128", "0.66518795", "0.65976053", "0.6594275", "0.6562481", "0.65418607", "0.6482017", "0.6474864", "0.64454263", "0.6433872", "0.64296097", "0.63998723", "0.63968146", "0.63864607", "0.6380665", "0.63790816", "0.6361438", "0.63604...
0.0
-1
variable para la conexion a la BD Metodos constructores
public AdminDAO() { con = DataBase.getConnection();//crear una conexión al crear un objeto AdminDAO }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private GestionBD(){\r\n\t\tlineConnection=SingleDBConnection.getConexionBD().conectarBD();\r\n\t}", "public paciente()\n {\n con = new bdconexion(); //instancia la clase bdconexion\n }", "public libroBean() throws SQLException\r\n {\r\n variables = new VariablesConexion();\r\n va...
[ "0.72424716", "0.7059767", "0.70341825", "0.6965906", "0.6864588", "0.6854192", "0.6775527", "0.67509866", "0.6726248", "0.66474074", "0.6645205", "0.6627924", "0.66135186", "0.65928763", "0.65782315", "0.65688044", "0.65681624", "0.65418947", "0.6532053", "0.65111053", "0.64...
0.6376476
30
Metodos/funciones de la clase Metodo que devuelve false o true si el usuario existe en la BD
public boolean login(String Usuario, String Password) { try { PreparedStatement pstm = null; ResultSet rs = null; String query = "SELECT ID_User FROM Usuario WHERE username = ? AND password = ? AND status = ?"; pstm = con.prepareStatement(query); pstm.setString(1, Usuario);//convertir a String el parametro Usuario pstm.setString(2, Password);//convertir a String el parametro Password pstm.setBoolean(3, true);//convertir a boolean rs = pstm.executeQuery();//ejecutar el query if(rs.next()) { return true; }else{ return false; } }catch(Exception ex) { ex.printStackTrace(); return false; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean existUser(String campo1, String campo2);", "public User userExist(User user);", "boolean hasObjUser();", "public boolean existUser(String id);", "@Override\n\tpublic boolean existe(Usuario usuarioLogado) {\n\t\treturn false;\n\t}", "private boolean userIDExists( String idCedulaNit, Connect...
[ "0.7688962", "0.75598836", "0.7411137", "0.7336152", "0.7265776", "0.72542626", "0.72116673", "0.72116673", "0.72116673", "0.72116673", "0.72116673", "0.72116673", "0.72116673", "0.7179628", "0.7160627", "0.7156967", "0.7098189", "0.7046133", "0.7028604", "0.7014979", "0.7000...
0.0
-1
Metodo que devuelve los permisos segun el tipo de usuario
public PermisosPyS obtenerPermisos(String user) { try { PreparedStatement pstm = null; ResultSet rs = null; String query = "SELECT * FROM permisos WHERE ID_permiso IN (SELECT ID_permisos FROM Roles as r INNER JOIN Usuario as u ON r.ID_Rol = u.ID_Rol WHERE u.username = ?);"; pstm = con.prepareStatement(query); pstm.setString(1, user); rs = pstm.executeQuery(); if(rs.next()) { PermisosPyS p = new PermisosPyS(); p.setPySSelect(rs.getBoolean("PyS_select")); p.setPySUpdate(rs.getBoolean("PyS_update")); p.setPySInsert(rs.getBoolean("PyS_insert")); p.setPySDelete(rs.getBoolean("PyS_delete")); p.setAdmin(rs.getBoolean("isAdmin")); p.setUser(rs.getBoolean("isUser")); return p; //regresar el objeto con los permisos almacenados }else{ return null; } }catch(Exception ex){ ex.printStackTrace(); return null; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setearPermisosMenu()\r\n\t{\r\n\t\t/*Permisos del usuario para los mantenimientos*/\r\n\t\tthis.setearOpcionesMenuMantenimientos();\r\n\t\tthis.setearOpcionesMenuFacturacion();\r\n\t\tthis.setearOpcionesMenuCobros();\r\n\t\tthis.setearOpcionesMenuProcesos();\r\n\t\tthis.setearOpcionesReportes();\r\n\t...
[ "0.6701704", "0.65424794", "0.64558834", "0.64254385", "0.6279363", "0.6182144", "0.6135227", "0.6062509", "0.60492694", "0.6045173", "0.60342914", "0.5981834", "0.590155", "0.5894155", "0.58844495", "0.5864377", "0.5830214", "0.58216166", "0.5806895", "0.580612", "0.5776967"...
0.60244495
11
Metodo que devuelve la url del Rol
public String getURLMenu(String usuario) { String url = ""; try { PreparedStatement pstm = null; ResultSet rs = null; String query = "SELECT url FROM Roles as r INNER JOIN Usuario as u ON u.ID_Rol = r.ID_Rol WHERE u.username = ?"; pstm = con.prepareStatement(query); pstm.setString(1, usuario); rs = pstm.executeQuery(); if(rs.next()) { url = rs.getString("url"); } }catch(Exception ex){ ex.printStackTrace(); } return url; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String getURL() {\n\t\t// TODO : Generate URL\n\t\treturn null;\n\t}", "@Override\r\n\tprotected String getUrl() {\n\t\treturn urlWS + \"/GuardarSustento\";\r\n\t}", "public String getURL();", "@Override\r\n\tprotected String getUrl() {\n\t\treturn urlWS + \"/ConsultarIndiceEjecucionAnio\";\r\n\t}", ...
[ "0.6631484", "0.6566145", "0.6520489", "0.651709", "0.6506077", "0.64816386", "0.6472009", "0.64696825", "0.64347905", "0.6414732", "0.6407203", "0.640442", "0.63587254", "0.6313923", "0.6313923", "0.6313923", "0.6313923", "0.6313923", "0.6313923", "0.6310465", "0.62975854", ...
0.60231954
43
obtiene el ID_User de un usuario dado su id usuario
public int getusuarioPorNombre(String nombre) { int usuario = 0; try { PreparedStatement pstm = null; ResultSet rs = null; String query = "SELECT ID_User FROM Usuario WHERE username = ?"; pstm = con.prepareStatement(query); pstm.setString(1, nombre); rs = pstm.executeQuery(); if(rs.next()) { usuario = rs.getInt("ID_User"); } }catch(Exception ex) { ex.printStackTrace(); } return usuario; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getIdUser() {\n return idUser;\n }", "public int getIdUser() {\n return idUser;\n }", "public int getIduser() {\n return iduser;\n }", "public Integer getIdUser() {\r\n\t\treturn idUser;\r\n\t}", "public String getIdUser() {\n\t\treturn idUser;\n\t }", "public St...
[ "0.77906454", "0.77906454", "0.760146", "0.7570565", "0.7516367", "0.74559397", "0.73667085", "0.73667085", "0.73667085", "0.72827315", "0.7280858", "0.72672933", "0.72319037", "0.7218487", "0.7216256", "0.720637", "0.7138417", "0.7138417", "0.713302", "0.713302", "0.713302",...
0.0
-1
obtiene el rol de un usuario dado su id usuario
public int getRolByUsuario(int id_usuario) { int id_rol = 0; try { PreparedStatement pstm = null; ResultSet rs = null; String query = "SELECT ID_Rol FROM Usuario WHERE ID_User = ?"; pstm = con.prepareStatement(query); pstm.setInt(1, id_usuario); rs = pstm.executeQuery(); if(rs.next()) { id_rol = rs.getInt("ID_Rol"); } }catch(Exception ex){ ex.printStackTrace(); } return id_rol; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "UsuarioRol getUsuarioRolById(Integer id);", "@Override\r\n\tpublic Integer getIdRol(String usuario) {\t\r\n\t\tInteger rolId = null;\r\n\t\t\r\n\t\ttry\r\n\t\t{\t\t\t\r\n\t\t\trolId = jdbcTemplate.queryForObject(\r\n\t\t\t\t\tSQL_SELECT_ROL_USUARIO, \r\n\t\t\t\t\tnew RowMapper<Integer>() {\r\n\t\t\t\t pub...
[ "0.7657577", "0.7313073", "0.7059888", "0.69676805", "0.68129015", "0.6777752", "0.67647296", "0.67085564", "0.66009957", "0.656896", "0.6550052", "0.6491182", "0.64757705", "0.6466244", "0.63355666", "0.62787557", "0.62740946", "0.62740946", "0.62503916", "0.62485135", "0.61...
0.70427614
3
Almacena el id_user y la fecha de ingreso en la bitacora_registro
public boolean registroEnBitacora(int id_usuario, int id_rol) { try { PreparedStatement pstm = null; ResultSet rs = null; String query = "INSERT INTO bitacora_ingresos(id_user, id_rol, fecha_reg) VALUES (?,?,now())"; pstm = con.prepareStatement(query); pstm.setInt(1, id_usuario); pstm.setInt(2, id_rol); if (pstm.executeUpdate() == 1) { return true; } }catch(SQLException ex){ ex.printStackTrace(); return false; } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void ponerUsuarioInactivo(String idUsuario);", "@Override\n\tpublic void registrarAtencion(TramiteUsuario tramite) {\n\t\ttramite.setSecUsuario1( Usuario.getUsuarioBean() );\n\t\ttramite.setSecUsuario2( Usuario.getUsuarioBean() );\n\t\ttramite.setEstado(1);\n\t\ttramite.setEstadoTramiteFinal( ParametroUti...
[ "0.6206038", "0.5928044", "0.5865479", "0.58654505", "0.58654153", "0.5774966", "0.5720135", "0.57044506", "0.5668191", "0.5648513", "0.5645737", "0.5643419", "0.5633496", "0.5627555", "0.5624771", "0.55935127", "0.5563512", "0.5560956", "0.5550133", "0.554924", "0.55412346",...
0.6497075
0
Metodo para obtener informacion de la persona del usuario
public Persona getPersona(String nombre) { Persona p = new Persona(); //Considerar almacenar todos los registros en un arrayList o //en un JsonArray y JsonObject try { PreparedStatement pstm = null; ResultSet rs = null; String query = "SELECT * FROM Persona WHERE ID_User IN (SELECT ID_User FROM Usuario WHERE username = ?)"; pstm = con.prepareStatement(query); pstm.setString(1, nombre); rs = pstm.executeQuery(); while(rs.next()) { p.setIdPersona(rs.getInt("ID_Persona")); p.setIdUser(rs.getInt("ID_User")); p.setNombre(rs.getString("Nombre")); p.setApellidoP(rs.getString("apellidoPaterno")); p.setApellidoM(rs.getString("apellidoMaterno")); } }catch(SQLException ex){ ex.printStackTrace(); } return p; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "People getUser();", "public String userInfo(String name){\r\n\t\tString message=\"Este usuario NO existe \";\r\n\t\tint[] info = findUser(name);\r\n\t\tif(info[0]==1)\r\n\t\t\tmessage=user[info[1]].showInfo();\r\n\t\treturn message;\r\n\t}", "public java.lang.String getUsuario();", "java.lang.String getUser(...
[ "0.7004712", "0.69827276", "0.68923455", "0.68719864", "0.6862287", "0.6860569", "0.6827097", "0.68105054", "0.68104017", "0.6774835", "0.6751994", "0.67348385", "0.6707772", "0.6707772", "0.6682737", "0.6682373", "0.6681166", "0.6673353", "0.6650257", "0.6609019", "0.655809"...
0.0
-1
Created by hossain.doula on 5/25/2016.
public interface InventoryDao extends GenericDao<InventoryItem, Long>{ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "private stendhal() {\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "public final void mo51373a() {\n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\r\n\tpubli...
[ "0.61279106", "0.605581", "0.58397543", "0.5834523", "0.5794805", "0.5767141", "0.57509375", "0.57411754", "0.57411754", "0.56837815", "0.5676819", "0.56680965", "0.56229395", "0.5585558", "0.55833936", "0.5583017", "0.5563144", "0.5562712", "0.5556987", "0.5548965", "0.55413...
0.0
-1
When creating the intro, load the intro image.
public Intro(MysticStudioGame game) throws SlickException { introImage = new Image("res/images/Intro_Skizze_FS.png"); this.game = game; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void initIntro() {\n\t\tWorld.clear();\n\t\tstate = STATE.INTRO;\n\t\tinitBackground();\n\t\tWorld.add(new Logo(Screen.getCenterX() - Logo.WIDTH / 2, Screen\n\t\t\t\t.getHeight() * 3 / 4 - Logo.HEIGHT / 2));\n\n\t\tWorld.add(new StartButton(Screen.getCenterX() - StartButton.WIDTH / 2,\n\t\t\t\tScreen.getHei...
[ "0.653158", "0.6372625", "0.61867255", "0.6113186", "0.6112154", "0.61045057", "0.59958255", "0.594826", "0.5894384", "0.58929324", "0.58607954", "0.5808285", "0.58062375", "0.5756904", "0.57541054", "0.57404256", "0.5736283", "0.5733703", "0.5728685", "0.5728195", "0.5725606...
0.6418961
1
The render method of the Intro class only draws the current image at the current position.
public void render(GameContainer container, Graphics g) throws SlickException { g.drawImage(introImage, introImagePosX, introImagePosY); if (waitForIntro > 2000) { g.drawString("Press ESC to skip.", container.getWidth() / 2, 900); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void render() { image.drawFromTopLeft(getX(), getY()); }", "public void render () {\n image (img, xC, yC, xLength * getPixelSize(), yLength * getPixelSize());\n }", "private void render(){\n planeImage.draw(currPos.x,currPos.y, drawOps);\n }", "public void render();", "public void rend...
[ "0.7212165", "0.70083535", "0.6953329", "0.6763264", "0.6704398", "0.6667543", "0.66616863", "0.6649882", "0.66472876", "0.6604432", "0.660343", "0.6563415", "0.65535384", "0.6527354", "0.65053904", "0.6485561", "0.64738667", "0.64042795", "0.63686013", "0.63682735", "0.63665...
0.0
-1
The update method updates the images and their position. Players can skip the intro by pressing the ESC key.
public void update(GameContainer container, int delta) throws SlickException, FileNotFoundException { /* * Check if the intro was skipped */ if (container.getInput().isKeyPressed(Input.KEY_ESCAPE)) { introImagePosY = 0; waitForIntro = 8000; } /* * Make the first intro image slide in from bottom to top */ if (introImagePosY > 0) { introImagePosY -= 3; } else { /* * If intro has finished playing or was skipped set the bool to true */ if (waitForIntro > 8000) { // show main menu game.setMainMenu(new MainMenu(game)); game.setIntro(true); /* * If the first intro image has finished playing show the title image */ } else if (waitForIntro > 2000) { waitForIntro += delta; introImage = new Image("res/images/Main_Menu.png"); /* * Otherwise just count the time */ } else { waitForIntro += delta; } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void update() {\n if (this.active) {\n GameObject.processing.image(this.image, this.xPosition, this.yPosition);\n }\n }", "public void update()\r\n {\n for (MapObject mo : gameData.getMap().getObjects())\r\n {\r\n mo.getAI().advance();\r\n }\r\n \r\n ...
[ "0.6972079", "0.6778652", "0.67684853", "0.6702061", "0.65443003", "0.650106", "0.6483593", "0.64659303", "0.6426996", "0.6425419", "0.6390906", "0.63896286", "0.6370754", "0.6334593", "0.6330548", "0.63082564", "0.62901914", "0.6270042", "0.6268048", "0.6234496", "0.62298596...
0.64458865
8
Interface to fetch tweetss by search keyword
@FunctionalInterface public interface SearchTweets{ /** * @param searchKey * @param count * @return ArrayNode */ ArrayNode getTweetsAsync(String searchKey,int count); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "List<String> searchTweets(String keywords) throws TwitterException;", "public String searchTweet(String searchString) {\n\t\treturn restClient.searchTweet(searchString);\n\t}", "public interface TweetService {\n List<Tweet> getTweetsForFeed(Long personId, String keyword);\n\n}", "SearchResult<TimelineMeta...
[ "0.7408065", "0.6841186", "0.68281555", "0.68018633", "0.67073447", "0.6662265", "0.6471165", "0.64012694", "0.6342421", "0.63389015", "0.63268846", "0.627377", "0.6252426", "0.6243628", "0.62369907", "0.6214291", "0.61889404", "0.61515313", "0.6143657", "0.6118262", "0.61001...
0.5727172
48
Determine if this handler can handle the intent (but doesn't actually handle it) This is called by the ASK framework.
@Override public boolean canHandle(HandlerInput input) { return input.matches(intentName("GetFromReadingListIntent")); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean canHandle(HandlerInput handlerInput, IntentRequest intentRequest) {\n return handlerInput.matches(requestType(IntentRequest.class)) &&\n customIntentNames.stream().noneMatch(intentName -> intentName.equals(intentRequest.getIntent().getName()));\n }", "boolea...
[ "0.69047517", "0.6756859", "0.6673539", "0.64604145", "0.6424632", "0.6365312", "0.60315377", "0.6022115", "0.59880036", "0.59029245", "0.5902592", "0.5857161", "0.5838019", "0.5815665", "0.58014905", "0.5732597", "0.56925046", "0.5658852", "0.564287", "0.5632486", "0.5629800...
0.6051888
6
Actually handle the event here. This is called by the ASK framework.
@Override public Optional<Response> handle(HandlerInput input) { log(input, "Starting request"); logSlots(input); // NPE Map<String, Slot> slots = getSlots(input); // first part of the speechText, blank author & title variables String speechText = "Your reading list has " ; String title; String formattedTitle; String author; String formattedAuthor; // iterate through the DDB table ScanRequest scanRequest = new ScanRequest().withTableName("DefaultReadingList"); ScanResult result = client.scan(scanRequest); for (Map<String, AttributeValue> item : result.getItems()){ // grab title & author from the item we are on title = item.get("Title").toString(); author = item.get("Author").toString(); // remove weird formatting on title and author strings and add to speechText formattedTitle = title.substring(4, title.length()-2); formattedAuthor = author.substring(4, author.length()-2); speechText = String.format((speechText + "%s by %s, "), formattedTitle, formattedAuthor); } log(input, "Speech text response is " + speechText); // response object with a card (shown on devices with a screen) and speech (what alexa says) return input.getResponseBuilder() .withSpeech(speechText) // alexa says this .withSimpleCard("GetFromReadingList", speechText) // alexa will show this on a screen .build(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\t\tpublic void handleEvent(Event event) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void handleEvent(Event event) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void handleEvent(Event event) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void handleEvent(Event event) {\n\n\t\t\t}", "@Override\n\t\t\tpublic voi...
[ "0.7656268", "0.7656268", "0.7656268", "0.7656268", "0.7656268", "0.7638414", "0.7638414", "0.76343423", "0.76343423", "0.76343423", "0.7444596", "0.7193736", "0.7164876", "0.7145207", "0.67943764", "0.67389876", "0.66893816", "0.66893816", "0.6675269", "0.6666903", "0.665959...
0.0
-1
Get the slots passed into the request
Map<String, Slot> getSlots(HandlerInput input) { // this chunk of code gets the slots Request request = input.getRequestEnvelope().getRequest(); IntentRequest intentRequest = (IntentRequest) request; Intent intent = intentRequest.getIntent(); if (intent.getSlots() == null) { return Collections.emptyMap(); } return Collections.unmodifiableMap(intent.getSlots()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Slots getSlots()\n\t{\n\t\treturn Slots.fromNumber( mMessage.getInt( B1_SLOTS ) );\n\t}", "public synchronized long getSlots() {\n return slots;\n }", "@Override\n\tpublic List<AvailableSlot> getAvailableSlots() {\n\t\tList<AvailableSlot> slots = (List<AvailableSlot>) availableSlotRepository.findA...
[ "0.70427877", "0.68167907", "0.6447432", "0.62859446", "0.620573", "0.6062155", "0.60595626", "0.60351026", "0.60351026", "0.601862", "0.6008862", "0.5969102", "0.59669363", "0.5943225", "0.5932271", "0.5910558", "0.585932", "0.5844412", "0.58296984", "0.5827371", "0.5823728"...
0.72687596
0
Log slots for easier debugging
void logSlots(HandlerInput input) { Map<String, Slot> slots = getSlots(input); // NPE // log slot values including request id and time for debugging for(String key : slots.keySet()) { log(input, String.format("Slot value key=%s, value = %s", key, slots.get(key).toString())); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void logDebugData() {\n SmartDashboard.putNumber(\"Ele Pos\", getPosition());\n SmartDashboard.putBoolean(\"Ele Switch\", bottomSwitchValue());\n SmartDashboard.putNumber(\"Ele Current\", getCurrent());\n SmartDashboard.putNumber(\"Ele Out %\", elevatorSpark.getAppliedOutput());\...
[ "0.5895974", "0.57884806", "0.5745599", "0.573019", "0.5624937", "0.55659497", "0.53701884", "0.53681433", "0.53647345", "0.53474325", "0.53438455", "0.53390574", "0.5327641", "0.5317744", "0.5271368", "0.5270258", "0.5244441", "0.5231277", "0.5211816", "0.5208697", "0.519759...
0.768154
0
Logs debug messages in an easier to search way You can also use system.out, but it'll be harder to work with
void log(HandlerInput input, String message) { System.out.printf("[%s] [%s] : %s]\n", input.getRequestEnvelope().getRequest().getRequestId().toString(), new Date(), message); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void debug(final String msg) {\n \t\tif (debug) System.out.println(msg);\n \t}", "public void debug(String msg);", "private void debugPrint(String msg) {\n if (debug) {\n System.out.println(toString() + \": \" + msg);\n }\n }", "public void debug(String mes...
[ "0.7804952", "0.7635617", "0.7586122", "0.73463774", "0.7262845", "0.71914756", "0.7150422", "0.7116997", "0.7079238", "0.7060166", "0.7044533", "0.7006345", "0.6986371", "0.69765705", "0.69597673", "0.6954439", "0.6942874", "0.6919224", "0.69187665", "0.69138646", "0.6911889...
0.0
-1
TODO Autogenerated method stub
public static void main(String[] args) { char color ='g'; switch(color) { case 'r': System.out.println("red"); case 'b': System.out.println("blue"); case 'g': System.out.println("green"); }}
{ "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
End Of Content View Elements
private void bindViews() { xlv_postlist = (com.mrz.searchenginefortieba.view.XListView) findViewById(R.id.xlv_postlist); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void elementEnd() {\n\t\t\t\t\t\t\r\n\t\t\t\t\t}", "@Override\r\n\tprotected void end() {\r\n\t}", "@Override\n\tprotected void end() {\n\n\t}", "@Override\n\tprotected void end() {\n\n\t}", "@Override\n\tprotected void end() {\n\n\t}", "@Override\n protected void end() {\n }", "@Override\n p...
[ "0.6463063", "0.6223387", "0.6196776", "0.6196776", "0.6196776", "0.61704755", "0.61704755", "0.61704755", "0.61704755", "0.61704755", "0.61704755", "0.61704755", "0.61704755", "0.61704755", "0.61704755", "0.61704755", "0.61704755", "0.6166354", "0.61618865", "0.6157854", "0....
0.0
-1
Session is our data type, the primary key is Long
public interface SessionRepository extends JpaRepository<Session, Long> { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public Object doInHibernate(Session session) throws HibernateException {\n return (Long) session.createSQLQuery(\"SELECT NEXTVAL('SGSWEB.SEQ_CUESTIONARIO') as id\").addScalar(\"id\", LongType.INSTANCE).uniqueResult();\n }", "protected Object getInitial...
[ "0.6877802", "0.67384315", "0.67179143", "0.66706467", "0.65222025", "0.6384469", "0.6313903", "0.6163088", "0.61389583", "0.61389583", "0.6093111", "0.6093111", "0.6093111", "0.60655075", "0.6063388", "0.6058516", "0.6049365", "0.6019924", "0.59863466", "0.5978521", "0.59050...
0.596845
21
Links arguments to the youngest parent alternative or decision. Links alternatives or decisions to the youngest parent issue.
public static long createSmartLinkForElement(KnowledgeElement element) { if (element == null) { return 0; } long linkId = element.isLinked(); if (linkId > 0) { return linkId; } KnowledgeElement lastElement = getPotentialParentElement(element); linkId = KnowledgePersistenceManager.getInstance(element.getProject()).insertLink(lastElement, element, null); return linkId; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Alternative getParentAlternative(Alternative alt){\r\n \t\tAlternative toReturn = null;\r\n \t\tDecision parentDecision = new Decision();\r\n \t\tparentDecision.fromDatabase(alt.getParent());\r\n \t\tif (parentDecision.getID() < 0 || \r\n \t\t\t\tparentDecision.getPtype() != RationaleElementType.ALTERNATIV...
[ "0.49157915", "0.48714468", "0.4763525", "0.4758585", "0.46947157", "0.46581802", "0.45882654", "0.4584221", "0.45448402", "0.45431665", "0.44605374", "0.44487363", "0.4404775", "0.43735427", "0.43688646", "0.436185", "0.4361627", "0.43572938", "0.43572763", "0.43497145", "0....
0.0
-1
Creates new form VentaMainView
public VentaMainView() { initComponents(); controlador = new VentaController(); this.setLocationRelativeTo(null); cargarCategorias(); cargarArticulos(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ViewDetalleVentas() {\n initComponents();\n }", "@Override\n public void Create() {\n\n initView();\n }", "public void newTrip(View v) {\n\t\tIntent intent = new Intent(RootMenuActivity.this, NewTripActivity.class);\n\t\tintent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n\t\tstartA...
[ "0.65621173", "0.65099114", "0.63160235", "0.6312619", "0.63062507", "0.6292997", "0.6256461", "0.6252113", "0.6251682", "0.6218627", "0.62161964", "0.6208257", "0.6197384", "0.6147235", "0.61186475", "0.61029845", "0.6088582", "0.6081632", "0.6080561", "0.6076074", "0.605427...
0.7315987
0
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.
@SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { jLabel1 = new javax.swing.JLabel(); jLabel2 = new javax.swing.JLabel(); jLabel3 = new javax.swing.JLabel(); jLabel4 = new javax.swing.JLabel(); jLabel5 = new javax.swing.JLabel(); jLabel6 = new javax.swing.JLabel(); txtCantidad = new javax.swing.JTextField(); txtPunit = new javax.swing.JTextField(); cboCategoria = new javax.swing.JComboBox<>(); cboArticulo = new javax.swing.JComboBox<>(); txtDetalle = new javax.swing.JTextField(); btnRegistrar = new javax.swing.JButton(); btnMostrar = new javax.swing.JButton(); jScrollPane1 = new javax.swing.JScrollPane(); jTable1 = new javax.swing.JTable(); btnMostrar1 = new javax.swing.JButton(); setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); jLabel1.setForeground(new java.awt.Color(51, 51, 255)); jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER); jLabel1.setText("Wilson Store App"); jLabel2.setText("Cant."); jLabel3.setText("Detalle Item"); jLabel4.setText("Precio Unit."); jLabel5.setText("Categoria"); jLabel6.setText("Articulo"); cboCategoria.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" })); cboArticulo.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" })); btnRegistrar.setText("Registrar"); btnRegistrar.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnRegistrarActionPerformed(evt); } }); btnMostrar.setText("Mostrar por Categoria"); btnMostrar.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnMostrarActionPerformed(evt); } }); jTable1.setModel(new javax.swing.table.DefaultTableModel( new Object [][] { {null, null, null, null, null, null}, {null, null, null, null, null, null}, {null, null, null, null, null, null}, {null, null, null, null, null, null} }, new String [] { "Cant.", "Precio Unit.", "Categoria", "Articulo", "Total", "Detalle" } )); jScrollPane1.setViewportView(jTable1); btnMostrar1.setText("Mostrar por Artículo"); btnMostrar1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnMostrar1ActionPerformed(evt); } }); javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); getContentPane().setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addContainerGap() .addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addContainerGap()) .addGroup(layout.createSequentialGroup() .addGap(15, 15, 15) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addComponent(btnRegistrar, javax.swing.GroupLayout.PREFERRED_SIZE, 166, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(btnMostrar, javax.swing.GroupLayout.PREFERRED_SIZE, 166, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(btnMostrar1, javax.swing.GroupLayout.PREFERRED_SIZE, 166, javax.swing.GroupLayout.PREFERRED_SIZE)) .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 686, javax.swing.GroupLayout.PREFERRED_SIZE) .addGroup(layout.createSequentialGroup() .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel2) .addComponent(txtCantidad, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(jLabel4, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(txtPunit)) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addGap(13, 13, 13) .addComponent(jLabel5)) .addGroup(layout.createSequentialGroup() .addGap(12, 12, 12) .addComponent(cboCategoria, javax.swing.GroupLayout.PREFERRED_SIZE, 153, javax.swing.GroupLayout.PREFERRED_SIZE))) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel6) .addComponent(cboArticulo, javax.swing.GroupLayout.PREFERRED_SIZE, 173, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel3) .addComponent(txtDetalle, javax.swing.GroupLayout.PREFERRED_SIZE, 224, javax.swing.GroupLayout.PREFERRED_SIZE)))) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) ); layout.setVerticalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addContainerGap() .addComponent(jLabel1) .addGap(18, 21, Short.MAX_VALUE) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel2) .addComponent(jLabel4) .addComponent(jLabel5) .addComponent(jLabel6) .addComponent(jLabel3)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(txtCantidad, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(txtPunit, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(cboCategoria, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(cboArticulo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(txtDetalle, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(18, 18, 18) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(btnRegistrar) .addComponent(btnMostrar) .addComponent(btnMostrar1)) .addGap(18, 18, Short.MAX_VALUE) .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 236, javax.swing.GroupLayout.PREFERRED_SIZE) .addContainerGap(9, Short.MAX_VALUE)) ); pack(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Form() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public frmRectangulo() {\n initComponents();\n }", "public form() {\n ...
[ "0.7321245", "0.7292375", "0.7292375", "0.7292375", "0.7286756", "0.7250393", "0.7215278", "0.7208825", "0.7197639", "0.71918", "0.7185626", "0.716065", "0.71489197", "0.7094757", "0.7081307", "0.7057363", "0.69892997", "0.6978972", "0.6956389", "0.69543713", "0.69465107", ...
0.0
-1
Sleep for some time and than start new activity.
@Override public void run() { try { // Sleeping Thread.sleep(2800); } catch (Exception e) { Log.e(TAG, e.getMessage()); } startMainActivity(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\t\tpublic void run() {\n\t\t\t\tsuper.run();\n\t\t\t\ttry {\n\t\t\t\t\tsleep(2000);\n\t\t\t\t\tfinish();\n\t\t\t\t\tstartActivity(new Intent(getApplicationContext(), StartActivity.class));\n\t\t\t\t\t\n\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\...
[ "0.70512116", "0.70108163", "0.6995378", "0.6989138", "0.6951966", "0.69157064", "0.6900922", "0.68913054", "0.6847732", "0.68436", "0.6760868", "0.66959673", "0.6677608", "0.6668147", "0.6591813", "0.6559945", "0.6559945", "0.65311795", "0.65141416", "0.65094995", "0.6488728...
0.6858948
8
TODO Autogenerated method stub
@Override public void mouseClicked(MouseEvent arg0) { int selectedRow = table.getSelectedRow();//获得选中行的索引 if(selectedRow!= -1) //是否存在选中行 { Object oa = tableModel.getValueAt(selectedRow, 0); Object ob = tableModel.getValueAt(selectedRow, 1); comboBox_1.setSelectedItem(oa.toString()); textField2.setText(ob.toString()); } else{ textField2.setText(""); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public void mouseEntered(MouseEvent arg0) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public void mouseExited(MouseEvent arg0) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public void mousePressed(MouseEvent arg0) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public void mouseReleased(MouseEvent arg0) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public void actionPerformed(ActionEvent arg0) { int selectedRow = table.getSelectedRow();//获得选中行的索引 if(selectedRow!= -1) //是否存在选中行 { //修改指定的值: String a=tableModel.getValueAt(selectedRow, 0).toString(); String b=tableModel.getValueAt(selectedRow, 1).toString(); tableModel.setValueAt(comboBox_1.getSelectedItem(), selectedRow, 0); tableModel.setValueAt(textField2.getText(), selectedRow, 1); try { Connection con = DriverManager.getConnection(conURL,Test.mysqlname, Test.mysqlpassword); // 连接数据库 Statement s = con.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_UPDATABLE); // Statement类用来提交SQL语句 ResultSet rs = s.executeQuery("select lei,name from goods"); // 提交查询,返回的表格保存在rs中 while(rs.next()) { // ResultSet指针指向下一个“行” if(rs.getString("lei").equals(a)&&rs.getString("name").equals(b)){ rs.updateString("lei", comboBox_1.getSelectedItem().toString()); rs.updateString("name", textField2.getText()); rs.updateRow(); Statement s2 = con.createStatement(); // Statement类用来提交SQL语句 SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");//设置日期格式 //System.out.println("insert into news(time,news,limit) values('"+df.format(new Date())+"','"+Name+"登入系统"+"','"+limite+"')"); String insert1 = "insert into news(time,news,limite) values('"+df.format(new Date())+"','"+Testmysql.limite+Testmysql.Name+"修改商品信息"+a+":"+b+"成功"+"','"+Testmysql.limite+"')"; s2.executeUpdate(insert1); s2.close(); // 释放Statement对象 break; } } s.close(); // 释放Statement对象 con.close(); // 关闭到MySQL服务器的连接 } catch(SQLException sql_e) { // 都是SQLException System.out.println(sql_e); } //table.setValueAt(arg0, arg1, arg2) } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public void actionPerformed(ActionEvent e) { String a=search_textField1.getText(); String b=search_textField2.getText(); if(a.equals(""))a="any(select lei from goods)"; else a="'"+a+"'"; if(b.equals(""))b="any(select name from goods)"; else b="'"+b+"'"; table.removeAll(); tableValueV.removeAllElements(); try {//插入 Connection con = DriverManager.getConnection(conURL, Test.mysqlname, Test.mysqlpassword); // 连接数据库 Statement s = con.createStatement(); // Statement类用来提交SQL语句 String select="select * from goods where lei="+a+" and name ="+b; ResultSet rs = s.executeQuery(select); // 提交查询,返回的表格保存在rs中 while(rs.next()) { // ResultSet指针指向下一个“行” Vector<String> rowV = new Vector<String>(); rowV.add(rs.getString("lei")); rowV.add(rs.getString("name")); tableValueV.add(rowV); System.out.println(rs.getString("lei")); } tableModel.setDataVector(tableValueV,columnNameV); int rowCount = table.getRowCount(); table.getSelectionModel().setSelectionInterval(rowCount-1 , rowCount- 1 ); Rectangle rect = table.getCellRect(rowCount-1 , 0 , true ); table.scrollRectToVisible(rect); s.close(); // 释放Statement对象 con.close(); // 关闭到MySQL服务器的连接 TableColumnModel cm = table.getColumnModel(); TableColumn column = cm.getColumn(0);//得到第i个列对象 column.setPreferredWidth(210);//将此列的首选宽度设置为 preferredWidth。 TableColumn column1 = cm.getColumn(1);//得到第i个列对象 column1.setPreferredWidth(210);//将此列的首选宽度设置为 preferredWidth。 } catch(SQLException sql_e) { // 都是SQLExceptionss System.out.println(sql_e); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public void actionPerformed(ActionEvent arg0) { search_textField1.setText(""); search_textField2.setText(""); int num=tableModel.getRowCount(); while(num--!=0){tableModel.removeRow(0);} try {//插入 Connection con = DriverManager.getConnection(conURL, Test.mysqlname, Test.mysqlpassword); // 连接数据库 Statement s = con.createStatement(); // Statement类用来提交SQL语句 ResultSet rs = s.executeQuery("select * from goods"); // 提交查询,返回的表格保存在rs中 while(rs.next()) { // ResultSet指针指向下一个“行” Vector<String> rowV = new Vector<String>(); rowV.add(rs.getString("lei")); rowV.add(rs.getString("name")); tableValueV.add(rowV); } tableModel.setDataVector(tableValueV,columnNameV); int rowCount = table.getRowCount(); table.getSelectionModel().setSelectionInterval(rowCount-1 , rowCount- 1 ); Rectangle rect = table.getCellRect(rowCount-1 , 0 , true ); table.scrollRectToVisible(rect); s.close(); // 释放Statement对象 con.close(); // 关闭到MySQL服务器的连接 TableColumnModel cm = table.getColumnModel(); TableColumn column = cm.getColumn(0);//得到第i个列对象 column.setPreferredWidth(210);//将此列的首选宽度设置为 preferredWidth。 TableColumn column1 = cm.getColumn(1);//得到第i个列对象 column1.setPreferredWidth(210);//将此列的首选宽度设置为 preferredWidth。 } catch(SQLException sql_e) { // 都是SQLExceptionss System.out.println(sql_e); } }
{ "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
Use this factory method to create a new instance of this fragment using the provided parameters.
public static MainFragment newInstance(Context context) { MainFragment fragment = new MainFragment(); if(context != null) fragment.setVariables(context); return fragment; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static FragmentTousWanted newInstance() {\n FragmentTousWanted fragment = new FragmentTousWanted();\n Bundle args = new Bundle();\n fragment.setArguments(args);\n return fragment;\n }", "protected abstract Fragment createFragment();", "public void createFragment() {\n\n ...
[ "0.7259329", "0.72331375", "0.71140355", "0.69909847", "0.69902235", "0.6834592", "0.683074", "0.68134046", "0.6801526", "0.6801054", "0.67653185", "0.6739714", "0.6739714", "0.6727412", "0.6717231", "0.6705855", "0.6692112", "0.6691661", "0.66869426", "0.66606814", "0.664618...
0.6391252
87
Initiate the variables Context and WifiAdmin
private void setVariables(Context context){ this.context = context != null ? context : getContext(); mwifiAdmin = new WifiAdmin(this.context); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void initData() {\n mListWifi = new ArrayList<Map<String, Object>>();\n mWifiAdmin = new WifiAdmin(mContext);\n\t\tmWifiAdmin.openWifi();\n\t\t\n mboolWifiTest = false;\n \n // Used to save the current state of mobile test item\n SharedPreferences sp = mContext.get...
[ "0.6709097", "0.64856327", "0.6211487", "0.61428547", "0.6071024", "0.60549223", "0.6050568", "0.60096806", "0.59887284", "0.5917737", "0.58602893", "0.58051604", "0.5802959", "0.5781152", "0.57677925", "0.57623225", "0.57609344", "0.5759747", "0.57467663", "0.5736468", "0.57...
0.7975497
0
Inflate the layout for this fragment
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View ret = inflater.inflate(R.layout.fragment_main, container, false); ssidView = (TextView) ret.findViewById(R.id.txtSsidView); ipView = (TextView)ret.findViewById(R.id.txtIpView); signalView = (TextView)ret.findViewById(R.id.txtSignalView); messageStatusView = (TextView)ret.findViewById(R.id.txtMessageStatusView); // Create listener for the buttons btn_help = (Button)ret.findViewById(R.id.btn_help); btn_help.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { btnHelpClick(); } }); btn_exit = (Button)ret.findViewById(R.id.btn_exit); btn_exit.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { btnExitClick(); } }); btn_retry = (Button)ret.findViewById(R.id.btn_retry); btn_retry.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { btnRetryClick(); } }); btn_list = (Button)ret.findViewById(R.id.btn_list); btn_list.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { btnListClick(); } }); // Initiate the context and wifiAdmin if(context == null || mwifiAdmin == null) setVariables(getContext()); // Start buttons Enable property // False for Help // True for Retry setButtonsConfig(false); // Starts Handlers to handler thread's responses handlerMain = new MainActivityHandler(context); msgHandler = new WiFlyMessageHandler(context); // Start the connection for the Wi-Fi startThread(); return ret; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_main_allinfo, container, false);\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup...
[ "0.6739604", "0.67235583", "0.6721706", "0.6698254", "0.6691869", "0.6687986", "0.66869223", "0.6684548", "0.66766286", "0.6674615", "0.66654444", "0.66654384", "0.6664403", "0.66596216", "0.6653321", "0.6647136", "0.66423255", "0.66388357", "0.6637491", "0.6634193", "0.66251...
0.0
-1
Start the thread to connect to the WiFi
public void startThread(){ String message = "Connecting to RescueNet...Please Wait"; showProgressDialog(message); connectionThread = new ConnectionThread(mwifiAdmin, handlerMain); connectionThread.start(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void run() {\n this.configureWiFi();\n\n // Conecto con la red WiFi\n this.connectWiFi();\n\n }", "private void createAndStartConnectionThread() {\n new Thread(new Runnable() {\n @Override\n public void run() {\n try {\n ...
[ "0.7632625", "0.7206189", "0.7091945", "0.7059872", "0.700992", "0.69556004", "0.68685293", "0.6685065", "0.6603464", "0.657987", "0.64656705", "0.641147", "0.6346964", "0.6309382", "0.627347", "0.6267877", "0.62662786", "0.6249554", "0.62314254", "0.6226517", "0.62232786", ...
0.75683653
1
Set the WiFi connected
public void setWifiModule(WifiModule wifiModule){ mwifiAdmin.setChoosenModule(wifiModule); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void updateConnectedFlags() {\n ConnectivityManager connMgr =\n (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);\n\n NetworkInfo activeInfo = connMgr.getActiveNetworkInfo();\n if (activeInfo != null && activeInfo.isConnected()) {\n wifiCon...
[ "0.70990396", "0.7076161", "0.7030107", "0.69728464", "0.69338137", "0.68303084", "0.6805955", "0.6660031", "0.656805", "0.65175873", "0.64488804", "0.64403015", "0.6438601", "0.6427502", "0.63276213", "0.6320405", "0.6277935", "0.6277741", "0.627343", "0.6237509", "0.6235978...
0.5994467
35
Enable or disable the buttons when connected
public void setButtonsConfig(boolean connected){ btn_help.setEnabled(connected); btn_retry.setEnabled(!connected); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void activateButtons(){\n limiteBoton.setEnabled(true);\n derivadaBoton.setEnabled(true);\n integralBoton.setEnabled(true);\n}", "private void enableButtons() {\n\t\tcapture.setEnabled(true);\r\n\t\tstop.setEnabled(true);\r\n\t\tselect.setEnabled(true);\r\n\t\tfilter.setEnabled(true)...
[ "0.79010975", "0.7775647", "0.75657654", "0.7476253", "0.74259067", "0.739906", "0.7396943", "0.7384288", "0.7375129", "0.73445356", "0.7222642", "0.71908295", "0.7170655", "0.714313", "0.7085566", "0.70829445", "0.7075279", "0.70463073", "0.6992294", "0.69545454", "0.6947615...
0.7471012
4
Show a Dialog with the received message
public void showProgressDialog(String message){ if(progressDialog != null) progressDialog.dismiss(); progressDialog = new ProgressDialog(context); progressDialog.setProgressStyle(ProgressDialog.STYLE_SPINNER); progressDialog.setMessage(message); progressDialog.show(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void showMessage(){\n final AlertDialog.Builder alert = new AlertDialog.Builder(context);\n alert.setMessage(message);\n alert.setTitle(title);\n alert.setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(Dialog...
[ "0.7077931", "0.7030465", "0.689091", "0.6838709", "0.6765927", "0.67638505", "0.6659819", "0.66519165", "0.66046584", "0.6594314", "0.6575109", "0.6565802", "0.65406144", "0.6515487", "0.6488649", "0.6485402", "0.6473871", "0.6467031", "0.646396", "0.64271665", "0.64222884",...
0.0
-1
Close a dialog, with there is one
public void dismissProgressDialog(){ if(progressDialog != null) progressDialog.dismiss(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void closeDialog() { setVisible(false); dispose(); }", "public void closeDialog()\r\n\t{\r\n\t\tharmonyModel.getDialogManager().unlockFrame();\r\n\t}", "private void quitDialog() {\r\n\t\tdispose();\r\n\t}", "protected void closeDialogCancel() {\n dispose();\n }", "public void cancelDia...
[ "0.7862187", "0.7861903", "0.7833182", "0.7599906", "0.7551728", "0.7455102", "0.73337364", "0.7307145", "0.7282428", "0.7269845", "0.72579676", "0.72579676", "0.7255378", "0.72532517", "0.72408915", "0.72324705", "0.72324705", "0.72324705", "0.72324705", "0.7230108", "0.7230...
0.0
-1
Function tp handle Help button click
public void btnHelpClick(){ try { String Tag = TAG + "-BtnHelp"; // Get number String number = getMyPhoneNO(); ReceiveMessageThread receiveMessageThread; // Mount the message to be sent String msg = "*SOS*;Number:" + number + ";"; Log.i(Tag, msg); // Show message to user showProgressDialog("Sending distress message..."); // Disable Help Button btn_help.setEnabled(false); // Start thread to send message receiveMessageThread = new ReceiveMessageThread(msgHandler, msg); receiveMessageThread.start(); } catch (Exception e){ Log.i(TAG , "Caught this exception: " + e.getMessage()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void handleHelp(ActionEvent event) {\n\t}", "@Override\n\tprotected void handleHelp(ClickEvent event) {\n\t\t\n\t}", "@Override\n \t\t\t\tpublic void doHelp() {\n \n \t\t\t\t}", "public void helpPressed() {\n Stage mainStage = (Stage)pane.getScene().getWindow();\n PresentationCtrl.get...
[ "0.8575735", "0.8489924", "0.80381465", "0.8014706", "0.80128866", "0.7960494", "0.7854072", "0.77753496", "0.77428854", "0.77351975", "0.7686765", "0.7685562", "0.7679063", "0.7668393", "0.763954", "0.76164174", "0.757888", "0.7573544", "0.75631475", "0.7553036", "0.75412613...
0.6779397
63
Function to handle Retry button click
public void btnRetryClick(){ String Tag = TAG + "-BtnRetry"; Log.d(Tag, "Retrying..."); // Clear the chosen Wi-Fi and start connection thread again setWifiModule(null); startThread(); //btn_retry.setVisibility(View.INVISIBLE); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected abstract void onClickRetryButton();", "@OnClick(R.id.retryButton)\n public void retryUpload() {\n callback.retryUpload(contribution);\n }", "void doShowRetry();", "void doRetry();", "public static void checkAndClickTryAgainButton() {\r\n\t\tcheckNoSuchElementExceptionByXPath(\"//*[@i...
[ "0.8639917", "0.7476218", "0.743596", "0.7228986", "0.67441434", "0.653507", "0.653507", "0.653507", "0.6469435", "0.64435995", "0.6414383", "0.6401168", "0.63980794", "0.63980794", "0.63980794", "0.63845074", "0.6380763", "0.6355767", "0.63489205", "0.63368845", "0.63368845"...
0.7505771
1
Function to handle List WiFi click
public void btnListClick(){ // Scan the Wi-Fi to refresh list mwifiAdmin.scanForRescueNet(); // Show the List screen FragmentManager fm = getActivity().getSupportFragmentManager(); if(rescueListFragment == null) rescueListFragment = RescueListFragment.newInstance(mwifiAdmin); fm.beginTransaction().replace(R.id.container_main, rescueListFragment).addToBackStack(null).commit(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\n\t\t\t\t\t if(!wfmgr.isWifiEnabled()){\n\t\t\t\t\t\t \n\t\t\t\t\t\t Toast.makeText(getApplicationContext(), \"Wifi is disable plz able to wifi\", Toast.LENGTH_SHORT).show();\n\t\t\t\t \t\n\t\t\t\t }else{ \n\t\t\t\t \t\n\t\t\t\t \t...
[ "0.65375745", "0.65070623", "0.6478272", "0.64156073", "0.63628435", "0.6361819", "0.62358314", "0.62001437", "0.60618645", "0.60528517", "0.60212874", "0.59871614", "0.59732527", "0.5965817", "0.58966976", "0.58937", "0.5858458", "0.5858421", "0.5758649", "0.57515466", "0.57...
0.6114925
8
Function to handle Exit click
public void btnExitClick(){ // Finish the main activity onPause(); this.getActivity().finish(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void exitAction() {\n\t}", "@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\texit_click(e);\r\n\t\t\t}", "public void exitButtonClicked() {\r\n\t\tSystem.exit(0); \r\n\t\treturn;\r\n\t}", "void onExit();", "@Override\n\tpublic void processExitButtonClick(ProcessButtonObjectE...
[ "0.789592", "0.7885286", "0.7729861", "0.7635605", "0.7604529", "0.7604139", "0.7582297", "0.7581253", "0.75365", "0.753493", "0.75202984", "0.7519818", "0.7504962", "0.74951476", "0.74549276", "0.74527454", "0.7446402", "0.7424296", "0.7405945", "0.73572886", "0.73555034", ...
0.0
-1
Fill the Labels with the information for the connected WiFi
public void setTxtViews(String ssid, String ip, String signal){ ssidView.setText(ssid); ipView.setText(ip); signalView.setText(signal); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void fillLabels() {\r\n this.lblCash.setText(Integer.toString(player.getMoney()));\r\n Ship s = player.getShip();\r\n this.shipInfo.setText(s.toString());\r\n errorLabel.setText(\"\");\r\n }", "private void setLabelsTODefaultValues(){\r\n\t\tlblTempitem1.setText(\"NONE\"); ...
[ "0.63076526", "0.6096146", "0.59835786", "0.5927301", "0.59166664", "0.58315605", "0.5805178", "0.57391065", "0.5675109", "0.5581372", "0.5579853", "0.5566793", "0.55642205", "0.55639654", "0.55272317", "0.55253375", "0.5499561", "0.5462342", "0.54578835", "0.5416867", "0.541...
0.0
-1
Includes message on the View to show the response from Communication Node
public void setResponseView(String message){ messageStatusView.append(message); messageStatusView.append("\n"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic String viewmessage_request() {\n\t\treturn null;\n\t}", "public String response() {\n\t\treturn message;\n\t}", "public void displayMessage(JSONArray data, final CallbackContext callbackContext) throws JSONException {\n\n String deviceName = data.getString(0);\n String deviceM...
[ "0.6456878", "0.61655384", "0.6094098", "0.60428905", "0.60198814", "0.5996347", "0.599115", "0.5976319", "0.5929941", "0.5882809", "0.58720464", "0.5854895", "0.5838639", "0.58368224", "0.581497", "0.57900983", "0.575924", "0.5734432", "0.57280535", "0.57249904", "0.5721394"...
0.64329374
1
Depending on the phone model, this function does not return the mobile number of the device hence it is being hardcoded
private String getMyPhoneNO() { String mPhoneNumber; TelephonyManager tMgr = (TelephonyManager) this.getActivity().getSystemService(Context .TELEPHONY_SERVICE); mPhoneNumber = tMgr.getLine1Number(); if(mPhoneNumber == null) mPhoneNumber = "+NoNotFound"; return mPhoneNumber; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Long getMobile_phone();", "java.lang.String getUserPhone();", "public String getPhoneNumber(){\n\t\t \n\t\t TelephonyManager mTelephonyMgr;\n\t\t mTelephonyMgr = (TelephonyManager)\n\t\t activity.getSystemService(Context.TELEPHONY_SERVICE); \n\t\t return mTelephonyMgr.getLine1Number();...
[ "0.74359983", "0.73217404", "0.7175345", "0.7127488", "0.7112499", "0.7071328", "0.6995708", "0.6961266", "0.69595873", "0.69595873", "0.69595873", "0.69579524", "0.6951972", "0.69302845", "0.6911618", "0.6911618", "0.6909839", "0.6904931", "0.69037515", "0.68729717", "0.6855...
0.73584294
1
getFacing() Purpose gets the direction of the used block
public String getFacing() { local = new Local(event); return local.getFacing(event.getBlock(), event.getBlock().getType()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public BlockFace getFacing() {\n/* 1017 */ return CraftBlock.notchToBlockFace(getHandle().getAdjustedDirection());\n/* */ }", "public String getFacing() {\r\n\t\treturn Facing;\r\n\t}", "public int getFinalFacing() {\n MoveStep last = getLastStep();\n if (last != null) {\n r...
[ "0.645121", "0.6181", "0.61685425", "0.606192", "0.60470086", "0.60225916", "0.60225916", "0.60225916", "0.601234", "0.58574206", "0.5792801", "0.56889427", "0.56819516", "0.56681335", "0.5609102", "0.5502923", "0.547388", "0.5469987", "0.5456898", "0.5445039", "0.54356265", ...
0.58389735
10
Checks if the given index idx is in the list's bounds.
private boolean checkIndexBounds(int idx) { return (idx >= 0) && (idx <= this.length); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean validIndex(int idx) {\n return idx >= 0 && idx < len;\n }", "private boolean checkRange(final int index) {\n if ((index > size) || (index < 0)) {\n return false;\n }\n return true;\n }", "public boolean indexCheck(int index) {\n return (index >= 0 &&...
[ "0.70715284", "0.6845361", "0.6703506", "0.66683996", "0.6662746", "0.66073096", "0.6464518", "0.6461847", "0.6406902", "0.6382492", "0.63273233", "0.62581676", "0.6238627", "0.6225626", "0.62061244", "0.61876583", "0.61767673", "0.61708623", "0.6145817", "0.6142637", "0.6139...
0.8029783
0
Adds a given node to the list.
public void add(Node node) { if (this.head == null) { this.head = node; this.tail = node; } else { this.tail.next = node; this.tail = node; } this.length++; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addNode(INode node) {\r\n\t\tnodeList.add(node);\r\n\t}", "public void addNode(Node node){subNodes.add(node);}", "void addNode(int node);", "public void addNode(Node node) {\n\t\tnodes.add(node);\n\t}", "void addNode(String node);", "public void addNode(Node p_node) {\n\t\tnodes.add(p_node);\...
[ "0.79438984", "0.76860744", "0.74639726", "0.74550587", "0.7390983", "0.73147935", "0.7313912", "0.72914153", "0.7216686", "0.7212826", "0.71860904", "0.7015548", "0.6989314", "0.69868755", "0.6981414", "0.6981171", "0.6967441", "0.6959612", "0.6943785", "0.692779", "0.691112...
0.6817406
25
Adds a node to the list created using a given value.
public void add(T v) { add(new Node(v)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void add(T value) {\n\t\tNode newNode = new Node(value);\n\t\tif (head == null) {\n\t\t\thead = newNode;\n\t\t\treturn;\n\t\t}\n\t\tNode current = head;\n\t\twhile (current.next != null) {\n\t\t\tcurrent = current.next;\n\t\t}\n\t\tcurrent.next = newNode;\n\t}", "public void add(T value) {\n Node<T...
[ "0.77296317", "0.7667906", "0.76466614", "0.7537402", "0.74191934", "0.73753846", "0.73314923", "0.729677", "0.7291293", "0.7243616", "0.72330505", "0.71890724", "0.7179678", "0.706735", "0.7054943", "0.7046265", "0.70297223", "0.70030975", "0.6912395", "0.67547715", "0.67475...
0.64636433
45
Displays the content of all nodes.
public void displayNodes() { Node node = this.head; StringBuilder sb = new StringBuilder(); while (node != null) { sb.append(node.data).append(" "); node = node.next; }; System.out.println(sb.toString()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String showAllNodes();", "public void display() {\n ITree.Node root = this.createNode(0);\n TreePrinter.printNode(root);\n }", "@Override\n\tvoid display() {\n\t\tif(nodeList == null || nodeList.size() == 0) {\n\t\t\tSystem.out.println(\"not found.\");\n\t\t\treturn;\n\t\t}\n for(Inode ...
[ "0.75336", "0.74032706", "0.7290882", "0.72747445", "0.7071221", "0.7022882", "0.69012326", "0.6886688", "0.6879296", "0.68683094", "0.67710274", "0.6666978", "0.65972924", "0.6564474", "0.655663", "0.655469", "0.65211976", "0.65146154", "0.6445024", "0.64133984", "0.64093155...
0.7335352
2
Gets the node before the given index.
public Node getNodeBeforeIndex(int idx) { if(!checkIndexBounds(idx)) { return null; } Node curr = this.head; Node pre = new Node(); for (int i = 0; i < idx; i++) { pre = curr; curr = curr.next; }; return pre; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getPrev(int node_index) {\n\t\treturn m_list_nodes.getField(node_index, 1);\n\t}", "private String before(Stack<String> stack, AtomicInteger index) {\n\t\tint next = index.get() - 1;\n\t\tif (next > 0)\n\t\t\treturn stack.get(next);\n\t\telse\n\t\t\treturn null;\n\t}", "public int getPrevNode() {\n\t\tretu...
[ "0.751159", "0.7097813", "0.63820595", "0.62640464", "0.6207568", "0.6175192", "0.61611", "0.6121121", "0.6082914", "0.6068953", "0.60650223", "0.60644704", "0.60187525", "0.5982089", "0.5979345", "0.5976724", "0.5967435", "0.59637415", "0.59603006", "0.5943211", "0.59422517"...
0.75293237
0
Adds a node at the beginning of the list created from a given value.
public void addAtStart(T v) { if (this.head == null) { add(v); return; }; Node node = new Node(v, this.head); this.head = node; this.length++; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addAtStart(T value) {\n Node<T> newNode = new Node<>();\n newNode.data = value;\n newNode.next = head;\n head = newNode;\n }", "@Override\n public void insertAtBeginning(T value) {\n Node<T> new_node = new Node<>(value);\n new_node.next = st...
[ "0.8093397", "0.7997255", "0.7944624", "0.78867996", "0.7755918", "0.7710947", "0.75034857", "0.74852526", "0.74708444", "0.7299793", "0.7291892", "0.72502494", "0.7240206", "0.7194027", "0.71718645", "0.7163123", "0.7066606", "0.6869269", "0.6835638", "0.6802679", "0.6796227...
0.70200765
17
Adds a given Node at the beginning of the list.
public void addAtStart(Node node) { if(this.head == null) { add(node); return; }; node.next = this.head; this.head = node; this.length++; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Node<E> addToBeginning(Node<E> node){\n node.setNext(head.getNext());\n head.getNext().setPrevious(node);\n node.setPrevious(head);\n head.setNext(node);\n size++;\n return node;\n }", "private void addNodeAtTheBeginning(int data) {\n ListNode newNode = ...
[ "0.7585188", "0.75811505", "0.74601454", "0.7417759", "0.73982793", "0.7367796", "0.7310532", "0.7258739", "0.7191715", "0.7097102", "0.7087259", "0.7066436", "0.70595044", "0.7057895", "0.70539683", "0.7020507", "0.70014554", "0.69877404", "0.6983856", "0.69808936", "0.69565...
0.7504693
2
Adds a given Node at the given index idx.
public void addAtIndex(int idx, Node node) { if (!checkIndexBounds(idx)) { return; } Node pre = getNodeBeforeIndex(idx); Node curr = pre.next; pre.next = node; node.next = curr; this.length++; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addAtIndex(int idx, T v) {\n addAtIndex(idx, new Node(v));\n }", "@Override\n\tpublic void add(int idx, T obj) throws IndexOutOfBoundsException {\n\t\tboolean found = false;\n\t\tint n = 0;\n\t\tListNode tmp = new ListNode(obj);\n\t\tListNode current = head;\n\t\t\n\t\tif (idx < 0 || idx > ...
[ "0.7976572", "0.70002395", "0.6812989", "0.67717105", "0.67707896", "0.6752097", "0.6738432", "0.67164993", "0.6634192", "0.6627535", "0.6625208", "0.6614528", "0.6584494", "0.65721947", "0.656864", "0.64899445", "0.6438472", "0.64367336", "0.6432861", "0.6381", "0.63503313",...
0.7623139
1
Adds a given Node created from value v at the given index idx.
public void addAtIndex(int idx, T v) { addAtIndex(idx, new Node(v)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addAtIndex(int index, int val) {\n if (index < 0 || index > size) return;\n\n Node node = head;\n\n for (int i = 0; i < index; i++) {\n node = node.next;\n }\n\n Node newNode = new Node(val);\n newNode.next = node.next;\n newNode.next.prev = n...
[ "0.67594695", "0.67393005", "0.6692308", "0.6680398", "0.6509471", "0.6494105", "0.64352804", "0.6353803", "0.63276374", "0.62751365", "0.6229292", "0.62271833", "0.61749923", "0.61578506", "0.6121262", "0.61039656", "0.6081411", "0.6039379", "0.603721", "0.60117114", "0.5970...
0.8379957
0
Pops out the first element of the list.
public void popFirst() { this.head = this.head.next; this.length--; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void pop() {\n\t\tlist.removeFirst();\n\t}", "@Override\n public Item removeFirst() {\n nextFirst = moveForward(nextFirst, 1);\n Item output = items[nextFirst];\n items[nextFirst] = null;\n size -= 1;\n return output;\n }", "public Item removeFirst()...
[ "0.7617128", "0.7613181", "0.74388987", "0.73827636", "0.7355844", "0.72969866", "0.72914404", "0.7270556", "0.7250884", "0.72365314", "0.7195779", "0.71867925", "0.7153876", "0.71519685", "0.71505713", "0.7141634", "0.71264046", "0.7123456", "0.7102131", "0.7075566", "0.7072...
0.76079553
2
Pops out the last element of the list.
public void pop() { this.tail = getNodeBeforeIndex(this.length - 1); this.tail.next = null; this.length--; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Item removeLast(){\r\n\t\tif (isEmpty()) throw new NoSuchElementException(\"Queue underflow\");\r\n\t\tItem tmp = list[last--];\r\n\t\tn--;\r\n\t\tlatter=last+1;\r\n\t\tif(last==-1){last=list.length-1;}\r\n\t\tif (n > 0 && n == list.length/4) resize(list.length/2); \r\n\t\treturn tmp;}", "public TypeHere ...
[ "0.79390174", "0.7865976", "0.78551275", "0.7660198", "0.76208234", "0.76199526", "0.76008505", "0.75931287", "0.75903904", "0.75705516", "0.7565307", "0.7390483", "0.737642", "0.7376288", "0.73712975", "0.7319048", "0.7317982", "0.73033774", "0.72704095", "0.7259726", "0.725...
0.0
-1
Pops out the Node at the given index idx.
public void popFromIndex(int idx) { if (!checkIndexBounds(idx)) return; Node pre = getNodeBeforeIndex(idx); Node curr = pre.next; pre.next = curr.next; this.length--; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public E remove(int idx) {\n\n\t\tE retVal = remove(getNode(idx));\n\n\t\tmSize--;\n\t\tmodCount++;\n\n\t\treturn retVal;\n\t}", "public void popAtIndex(int index) {\n if (index == 0) {\n pop();\n } else {\n Node<T> prevNode = head;\n Node<T> currNode = head;\n ...
[ "0.71233374", "0.6664532", "0.6648121", "0.65162766", "0.6483542", "0.6443205", "0.63590723", "0.6338489", "0.6302765", "0.62164795", "0.618364", "0.61428505", "0.61280465", "0.6096725", "0.6073828", "0.60697025", "0.6031975", "0.60047984", "0.6002689", "0.5969695", "0.591803...
0.780686
0
/ We will persist preferences via JRE implementation of Preferences, which is horribly inefficient. It will however work acceptably well for local singleuser apps as is common with data science apps. Applications exposed on the web should configure better implementation either on Preferences or ReactivePreferences level. Even locally running applications might be better off at least calling SitePreferences.storeIn().
public ReactivePreferences preferences() { return ReactivePreferences.userRoot(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void storePreferences() throws Exception {\n\t\tupdatePreferences();\n\t\tPortletPreferences preferences = getPreferences();\n\t\tpreferences.store();\n\t}", "void savePreferences() throws OntimizeJEERuntimeException;", "public void savePreferences() {\n\t\tfinal IEclipsePreferences prefs = getPreferenc...
[ "0.70883185", "0.7056551", "0.69699144", "0.69320494", "0.6920791", "0.6919936", "0.68851227", "0.6868633", "0.6842776", "0.6788304", "0.6788304", "0.6788304", "0.6788304", "0.67601585", "0.67352235", "0.66985554", "0.669633", "0.6623452", "0.65895975", "0.6562723", "0.655468...
0.6405403
27
/ Derived classes can put arbitrary filter on top of SiteFragmentdefined preferences. This is especially useful for sitewide timeout/nonblocking wrapper.
public ReactivePreferences intercept(ReactivePreferences prefs) { return prefs; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addFilterToPolicyEntries(ViewerFilter filter);", "void setFilter(Filter f);", "public abstract String getDefaultFilter ();", "protected static void loadFilters(){ \n if ( System.getProperty(ASYNC_FILTER) != null){\n StringTokenizer st = new StringTokenizer(\n ...
[ "0.56458235", "0.5498357", "0.54913205", "0.5419093", "0.54069877", "0.5331347", "0.5316849", "0.5299666", "0.52631444", "0.52412236", "0.522527", "0.5192138", "0.51824814", "0.5174983", "0.5174983", "0.5170167", "0.51549", "0.5120829", "0.50874215", "0.5077575", "0.5060918",...
0.0
-1
/ TODO: Any way to use standard APIs not tied to jetty?
protected void registerServlets(ServletContextHandler handler) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface ServletContextAware {\r\n\r\n /**\r\n * Called by GuiceContainerFactory when initialize module.\r\n *\r\n * @param servletContext ServletContext object to be used by this object\r\n */\r\n void setServletContext(ServletContext servletContext);\r\n\r\n}", "public interface W...
[ "0.6044121", "0.60384375", "0.5980746", "0.588769", "0.5873739", "0.5830008", "0.5827952", "0.5793011", "0.5769038", "0.57479644", "0.5719925", "0.5719191", "0.57028145", "0.56946814", "0.56821173", "0.5661139", "0.56449443", "0.56046015", "0.5587555", "0.55622244", "0.555159...
0.0
-1
Replaces the whitespace char with one which did not cause parsing problems.
public static String saveWhitespaces(String s) { return StringUtil.replace(s, " ", "\u00A0"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static String clearSpaces(final String old) {\n return old.replace(\" \", \"\").replace(\"\\n\", \"\");\n }", "private String replaceSpaces(String value) {\r\n\t\treturn value.replace(\" \", \"_\");\r\n\t}", "private String normalizeSpace(final String arg) {\n return arg.replaceAll(Con...
[ "0.689963", "0.68301535", "0.6691364", "0.66294503", "0.66276777", "0.65204865", "0.6501934", "0.63688934", "0.6313221", "0.62547696", "0.62196696", "0.6210508", "0.6156253", "0.6115382", "0.6016926", "0.59912866", "0.5970677", "0.5875492", "0.5870976", "0.58641565", "0.58617...
0.65872097
5