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
Closes the other registration after closing this.
default Registration then(Registration other) { Objects.requireNonNull(other); return () -> { close(); other.close(); }; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void close() {\n if (VDBG) log(\"close()\");\n\n mAppRegistered = false;\n final IBluetoothDeviceGroup service = getService();\n if (service != null) {\n try {\n service.unregisterGroupClientApp(mAppId, mAttributionSource);\n } catch (RemoteException...
[ "0.6644741", "0.6522769", "0.65010923", "0.6500253", "0.64575285", "0.63206613", "0.62794197", "0.6267212", "0.6259878", "0.6245069", "0.6236721", "0.6205259", "0.6205259", "0.61993504", "0.6195682", "0.618406", "0.61765033", "0.61765033", "0.61765033", "0.617135", "0.6170658...
0.5974969
71
TODO Autogenerated method stub
public static void main(String[] args) { System.out.println("Enter the number of elements:"); Scanner sc=new Scanner(System.in); int elem=sc.nextInt(); int array[]=new int[elem]; System.out.println("Enter all the elements:"); for(int i=0;i<elem;i++) { array[i]=sc.nextInt(); } System.out.print(Arrays.toString(array)); Arrays.sort(array); int ans = 0; for(int i1=0; i1<array.length; i1+=2) { ans += array[i1]; } System.out.print(ans); return; }
{ "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
/ access modifiers changed from: protected
public void logDiagnostic(String str) { if (isDiagnosticsEnabled()) { LogFactory.logRawDiagnostic(new StringBuffer().append(this.diagnosticPrefix).append(str).toString()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void prot() {\n }", "private stendhal() {\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override...
[ "0.7375736", "0.7042321", "0.6922649", "0.6909494", "0.68470824", "0.6830288", "0.68062353", "0.6583185", "0.6539446", "0.65011257", "0.64917654", "0.64917654", "0.64733833", "0.6438831", "0.64330196", "0.64330196", "0.64295477", "0.6426414", "0.6420484", "0.64083177", "0.640...
0.0
-1
/ access modifiers changed from: protected
public String getLogClassName() { if (this.logClassName == null) { discoverLogImplementation(getClass().getName()); } return this.logClassName; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void prot() {\n }", "private stendhal() {\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override...
[ "0.7375736", "0.7042321", "0.6922649", "0.6909494", "0.68470824", "0.6830288", "0.68062353", "0.6583185", "0.6539446", "0.65011257", "0.64917654", "0.64917654", "0.64733833", "0.6438831", "0.64330196", "0.64330196", "0.64295477", "0.6426414", "0.6420484", "0.64083177", "0.640...
0.0
-1
/ access modifiers changed from: protected
public Constructor getLogConstructor() { if (this.logConstructor == null) { discoverLogImplementation(getClass().getName()); } return this.logConstructor; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void prot() {\n }", "private stendhal() {\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override...
[ "0.7375736", "0.7042321", "0.6922649", "0.6909494", "0.68470824", "0.6830288", "0.68062353", "0.6583185", "0.6539446", "0.65011257", "0.64917654", "0.64917654", "0.64733833", "0.6438831", "0.64330196", "0.64330196", "0.64295477", "0.6426414", "0.6420484", "0.64083177", "0.640...
0.0
-1
/ access modifiers changed from: protected
public boolean isJdk13LumberjackAvailable() { return isLogLibraryAvailable("Jdk13Lumberjack", LOGGING_IMPL_LUMBERJACK_LOGGER); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void prot() {\n }", "private stendhal() {\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override...
[ "0.7375736", "0.7042321", "0.6922649", "0.6909494", "0.68470824", "0.6830288", "0.68062353", "0.6583185", "0.6539446", "0.65011257", "0.64917654", "0.64917654", "0.64733833", "0.6438831", "0.64330196", "0.64330196", "0.64295477", "0.6426414", "0.6420484", "0.64083177", "0.640...
0.0
-1
/ access modifiers changed from: protected
public boolean isJdk14Available() { return isLogLibraryAvailable("Jdk14", LOGGING_IMPL_JDK14_LOGGER); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void prot() {\n }", "private stendhal() {\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override...
[ "0.7375736", "0.7042321", "0.6922649", "0.6909494", "0.68470824", "0.6830288", "0.68062353", "0.6583185", "0.6539446", "0.65011257", "0.64917654", "0.64917654", "0.64733833", "0.6438831", "0.64330196", "0.64330196", "0.64295477", "0.6426414", "0.6420484", "0.64083177", "0.640...
0.0
-1
/ access modifiers changed from: protected
public boolean isLog4JAvailable() { return isLogLibraryAvailable("Log4J", LOGGING_IMPL_LOG4J_LOGGER); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void prot() {\n }", "private stendhal() {\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override...
[ "0.7375736", "0.7042321", "0.6922649", "0.6909494", "0.68470824", "0.6830288", "0.68062353", "0.6583185", "0.6539446", "0.65011257", "0.64917654", "0.64917654", "0.64733833", "0.6438831", "0.64330196", "0.64330196", "0.64295477", "0.6426414", "0.6420484", "0.64083177", "0.640...
0.0
-1
/ access modifiers changed from: protected
public Log newInstance(String str) { Log log; try { if (this.logConstructor == null) { log = discoverLogImplementation(str); } else { log = (Log) this.logConstructor.newInstance(new Object[]{str}); } if (this.logMethod != null) { this.logMethod.invoke(log, new Object[]{this}); } return log; } catch (LogConfigurationException e) { throw e; } catch (InvocationTargetException e2) { Throwable targetException = e2.getTargetException(); if (targetException != null) { throw new LogConfigurationException(targetException); } throw new LogConfigurationException((Throwable) e2); } catch (Throwable th) { throw new LogConfigurationException(th); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void prot() {\n }", "private stendhal() {\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override...
[ "0.7375736", "0.7042321", "0.6922649", "0.6909494", "0.68470824", "0.6830288", "0.68062353", "0.6583185", "0.6539446", "0.65011257", "0.64917654", "0.64917654", "0.64733833", "0.6438831", "0.64330196", "0.64330196", "0.64295477", "0.6426414", "0.6420484", "0.64083177", "0.640...
0.0
-1
This method uses the graph objects which are reffed by the node matching but checks to see that they are still in the graph. (The graph will change as a result of path splitting.)
private void matchOnlyCurrentGraphState(TaskMonitor monitor) { // make a new list of the matched nodes, to avoid concurrent // modification problems List matchedNodes = getMatchedNodesOrdered(); int total = matchedNodes.size(); int count = 0; for (Iterator nodeIt = matchedNodes.iterator(); nodeIt.hasNext();) { count++; monitor.report(count, total, "Paths tested"); if (monitor.isCancelRequested()) break; RoadNode subNode = (RoadNode) nodeIt.next(); if (subNode.isMatched()) { RoadNode matchNode = subNode.getMatch(); NodeMatching matching = subNode.getMatching(); matchPathsFromNodes(matching); } } DebugFeature.saveFeatures(MATCH, "Y:\\jcs\\testUnit\\roads\\pathMatches.jml"); DebugFeature.saveFeatures(SPLIT, "Y:\\jcs\\testUnit\\roads\\pathSplits.jml"); Debug.println("paths matched = " + pathMatchCount); Debug.println("splits matched = " + splitMatchCount); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void removeNoMoreExistingOriginalNodes() {\n for (Node mirrorNode : mirrorGraph.nodes()) {\n if (!isPartOfMirrorEdge(mirrorNode) && !originalGraph.has(mirrorNode)) {\n mirrorGraph.remove(mirrorNode);\n }\n }\n }", "private void checkTargetsReachable()...
[ "0.6281206", "0.6161731", "0.6150349", "0.6133898", "0.5993909", "0.59894145", "0.59654725", "0.5828475", "0.5828395", "0.5787099", "0.57577115", "0.5755697", "0.57489055", "0.57454044", "0.57430965", "0.57361263", "0.5722884", "0.57209057", "0.57154804", "0.56898916", "0.568...
0.718863
0
generate random 6 digit numbers for email
public String getRandomNumberString() { Random rnd = new Random(); int number = rnd.nextInt(899999) + 100000; // this will convert any number sequence into 6 character. String formatted_code = String.format("%06d", number); return formatted_code; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static int getRandomNumberString() {\n // It will generate 6 digit random Number.\n // from 0 to 999999\n Random rnd = new Random();\n int number = rnd.nextInt(999999);\n\n // this will convert any number sequence into 6 character.\n return number;\n }", "publi...
[ "0.7405013", "0.7282352", "0.7044462", "0.7034236", "0.696747", "0.6912517", "0.6864621", "0.6824397", "0.6783637", "0.6739725", "0.6689073", "0.66844124", "0.6667769", "0.6644418", "0.6629278", "0.6618449", "0.6592798", "0.659028", "0.6583464", "0.65805924", "0.65699023", ...
0.7150612
2
source file of SML code
public Translator(String fileName) { this.fileName = PATH + fileName; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getSourceFile();", "String getSource();", "Source getSrc();", "public String getSource();", "java.lang.String getSource();", "java.lang.String getSource();", "public String getSource ();", "public abstract String getSource();", "String getSourceString();", "public void source(Str...
[ "0.68734574", "0.65452623", "0.6445265", "0.64244723", "0.6379563", "0.6379563", "0.6366411", "0.635767", "0.62077695", "0.6149073", "0.613535", "0.60922474", "0.60812885", "0.60736156", "0.602827", "0.60281456", "0.600857", "0.591228", "0.5910765", "0.5893505", "0.5881042", ...
0.0
-1
translate the small program in the file into lab (the labels) and prog (the program) return "no errors were detected"
public boolean readAndTranslate(Labels lab, ArrayList<Instruction> prog) { try (Scanner sc = new Scanner(new File(fileName))) { // Scanner attached to the file chosen by the user labels = lab; labels.reset(); program = prog; program.clear(); try { line = sc.nextLine(); } catch (NoSuchElementException ioE) { return false; } // Each iteration processes line and reads the next line into line while (line != null) { // Store the label in label String label = scan(); if (label.length() > 0) { Instruction ins = getInstruction(label); if (ins != null) { labels.addLabel(label); program.add(ins); } } try { line = sc.nextLine(); } catch (NoSuchElementException ioE) { return false; } } } catch (IOException ioE) { System.out.println("File: IO error " + ioE.getMessage()); System.exit(-1); return false; } return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) throws IOException {\n\t\tLineOfCode[] inputProgram = new LineOfCode[32];\n\t\t// Initialize an array of type LineOfMachineCode\n\t\tLineOfMachineCode[] instructions = new LineOfMachineCode[32];\n\t\tString[] opcodes = {\"LDA\", \"ADD\", \"SUB\", \"STA\", \"MPY\", \"DIV\", \n...
[ "0.62118083", "0.5943165", "0.5790704", "0.575096", "0.55686563", "0.5548957", "0.55200255", "0.54519075", "0.5449761", "0.5440949", "0.5432699", "0.54176396", "0.5388354", "0.53882563", "0.5354834", "0.5349097", "0.5334538", "0.5330991", "0.532879", "0.5315429", "0.52953357"...
0.67777836
0
line should consist of an MML instruction, with its label already removed. Translate line into an instruction with label label and return the instruction
public Instruction getInstruction(String label) { int s1; // Possible operands of the instruction int s2; String s3; int r; int x; if (line.equals("")) return null; //Get the first word as a string String ins = scan(); // Generate the instruction classname that corresponds with the label String instructionName = ins.substring(0, 1).toUpperCase() + ins.substring(1).toLowerCase() + "Instruction" ; //System.out.println("The scanned label is: " + ins); //System.out.println("Use instruction class: " + instructionName); // Make a list of the remaining words List<String> wordList = new ArrayList<>(); List<Class> paramTypes = new ArrayList<>(); //The first constructor param is always the label string wordList.add(label); paramTypes.add(String.class); String nextWord; /* if (!nextWord.equals("")){ wordList.add(nextWord); paramTypes.add(nextWord.getClass()); } */ while (!(nextWord = scan()).equals("")){ wordList.add(nextWord); } //System.out.println("The next word is: " + instructionName); Object wordArray [] = wordList.toArray(); Class<?> paramArray [] = new Class<?> [wordArray.length]; try { for (int i = 0; i < wordArray.length; i++){ String str = wordArray[i].toString(); if (Pattern.matches(("-?[0-9]+"), str)){ paramArray [i] = Integer.TYPE; wordArray [i] = Integer.parseInt((String) wordArray[i]); } else { paramArray [i] = String.class; } } //System.out.println("My word array contains: " + Arrays.asList(wordArray)); //System.out.println("My parameter array contains: " + Arrays.asList(paramArray)); //System.out.println("Instruction name is: " + instructionName); //Reflect class Class reflectionClass = Class.forName("sml." + instructionName); //System.out.println("My reflection is: " + reflectionClass); Constructor con = reflectionClass.getConstructor(paramArray); // Cast return back to an Instruction return ((Instruction)con.newInstance(wordArray)); } catch (ClassNotFoundException e) { //e.printStackTrace(); System.err.println("Error"); } catch (NoSuchMethodException e) { //e.printStackTrace(); System.err.println("Error"); } catch (InvocationTargetException e) { //e.printStackTrace(); System.err.println("Error"); } catch (InstantiationException e) { //e.printStackTrace(); System.err.println("Error"); } catch (IllegalAccessException e) { //e.printStackTrace(); System.err.println("Error"); } /* // Commented out switch statement switch (ins) { case "add": r = scanInt(); s1 = scanInt(); s2 = scanInt(); return new AddInstruction(label, r, s1, s2); case "lin": r = scanInt(); s1 = scanInt(); return new LinInstruction(label, r, s1); case "out": r = scanInt(); return new OutInstruction(label, r); case "sub": r = scanInt(); s1 = scanInt(); s2 = scanInt(); return new SubInstruction(label, r, s1, s2); case "mul": r = scanInt(); s1 = scanInt(); s2 = scanInt(); return new MulInstruction(label, r, s1, s2); case "div": r = scanInt(); s1 = scanInt(); s2 = scanInt(); return new DivInstruction(label, r, s1, s2); case "bnz": r = scanInt(); s3 = scan(); return new BnzInstruction(label, r, s3); } // You will have to write code here for the other instructions. */ return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String label(String line) {\n\t\tint idx = line.lastIndexOf(':');\n\t\tint idxQuote = line.lastIndexOf('\\'');\n\t\tif (idx < 0 || idx < idxQuote) return line.trim();\n\n\t\tString label = line.substring(0, idx).trim();\n\t\tString rest = line.substring(idx + 1).trim();\n\n\t\t// Is 'label' a function signature?\n...
[ "0.607533", "0.6005245", "0.56938064", "0.5652317", "0.5551659", "0.5452808", "0.5284057", "0.5267775", "0.5186408", "0.5130204", "0.50830275", "0.5078421", "0.4988321", "0.4904594", "0.48340937", "0.4818806", "0.48121834", "0.4810939", "0.47992256", "0.4788842", "0.47673714"...
0.4788449
20
/ Return the first word of line and remove it from line. If there is no word, return ""
private String scan() { line = line.trim(); if (line.length() == 0) return ""; int i = 0; while (i < line.length() && line.charAt(i) != ' ' && line.charAt(i) != '\t') { i = i + 1; } String word = line.substring(0, i); line = line.substring(i); return word; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String firstWord(String userMessage) {\n if (userMessage.contains(\" \"))\n return userMessage.substring(0, userMessage.indexOf(\" \"));\n return userMessage;\n }", "private String trimName(String line) {\n line = trimLine(line);\n int idx = line.indexOf(\"(\");\...
[ "0.6574467", "0.6567907", "0.65031826", "0.6390543", "0.63283926", "0.6288859", "0.62820107", "0.6212384", "0.618049", "0.606304", "0.60394907", "0.6035528", "0.59798455", "0.59486747", "0.5940842", "0.5914148", "0.5855286", "0.58379513", "0.58326215", "0.58073527", "0.572285...
0.6524759
2
Return the first word of line as an integer. If there is any error, return the maximum int
private int scanInt() { String word = scan(); if (word.length() == 0) { return Integer.MAX_VALUE; } try { return Integer.parseInt(word); } catch (NumberFormatException e) { return Integer.MAX_VALUE; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static int getFirstIntValue(String line) {\n return getNthIntValue(line, 1);\n }", "private static int getSatFromLine(String line) {\n\t\treturn Integer.parseInt(line.split(\" \")[0]);\n\t}", "String getFirstInt();", "private int getInt(String next) {\n\t\ttry {\n\t\t\tint a = Integer.parseI...
[ "0.75109965", "0.6655126", "0.6622817", "0.63446647", "0.62669927", "0.61986446", "0.6169627", "0.6148506", "0.61192113", "0.60641766", "0.6053946", "0.6003012", "0.5937922", "0.5932187", "0.5908694", "0.58508134", "0.5780198", "0.5773387", "0.57496196", "0.5733458", "0.56658...
0.67530334
1
Created by IntelliJ IDEA. User: nah67 Date: 9/6/11 Time: 10:20 AM To change this template use File | Settings | File Templates.
public interface User extends Serializable { Long getId(); String getUserName(); String getPassword(); String getDescription(); boolean isEnabled(); void setUserName(String userName); void setPassword(String password); void setDescription(String description); void setEnabled(boolean value); public void addUserGroup(UserGroup userGroup); public void removeUserGroup(UserGroup userGroup); public void removeAllGroups(); public void setGroups(Set<UserGroup> groups); public Set<UserGroup> getGroups(); /* void addGroup(Group group); void removeGroup(Group group); public void removeAllGroups(); List<Group> getGroups(); */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "public void mo38117a() {\n }", "@Override\n public void perish() {\n \n }", "public void mo21785J() {\n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n...
[ "0.62008333", "0.60300136", "0.59609437", "0.5928674", "0.59169066", "0.59031975", "0.58856463", "0.58856463", "0.5866591", "0.5857389", "0.585195", "0.5840892", "0.5834578", "0.58242065", "0.58099496", "0.58099496", "0.58039683", "0.578313", "0.5782474", "0.5778352", "0.5776...
0.0
-1
this method runs before each test in remote
@BeforeMethod public void setUp() { initialization(); loginPage = new LoginPage(); homePage = loginPage.login(prop.getProperty("username"), prop.getProperty("password")); System.out.println("Logged in successfully"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void runBeforeTest() {}", "@Before\n public void setUp() {\n \tserver = super.populateTest();\n }", "@Before public void setUp() { }", "@Before\n public void beforeTest(){\n\n\n }", "@Before public void setUp() {\n }", "@Before public void setUp() {\n }", "@Before public vo...
[ "0.7871284", "0.7030436", "0.692643", "0.68716466", "0.6855133", "0.6855133", "0.6855133", "0.6855133", "0.6855133", "0.68545496", "0.68516034", "0.68498653", "0.68305916", "0.68305916", "0.68305916", "0.68236434", "0.68170494", "0.6813505", "0.67949957", "0.6785176", "0.6783...
0.0
-1
TODO Autogenerated method stub
@Override protected BaseListAdapter.ViewHolder createViewHolder(View root) { MyViewHolder holder = new MyViewHolder(root); return holder; }
{ "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 protected void fillView(View root, GroupClassInfo item, ViewHolder holder, final int position) { if (item == null)return; final MyViewHolder h = (MyViewHolder) holder; h.tvName.setText(item.getName()); if(info != null && item.equals(info)){ h.mCB.setChecked(true); }else{ h.mCB.setChecked(false); } }
{ "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 protected int getItemViewId() { return R.layout.item_group_class; }
{ "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 run() { String path = "D:\\test"; for(int i=1;i<65535;i++){ File file = new File(path+File.separator+name+i); if(!file.exists()){ file.mkdirs(); } } }
{ "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
Created by Administrator on 2018/10/13.
public interface DeptService { List<Dept> findAllDepts(); Dept findDeptByName(String dName); List<Employee> searchEmployeeByDeptName(String name); List<Employee> searchEmployeeByJobName(String name); void addDept(Dept dept); void editDept(Dept dept); void deleteDeptByName(String name); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Ov...
[ "0.61508083", "0.6079463", "0.5785022", "0.57656544", "0.5765204", "0.5742778", "0.56735706", "0.56320506", "0.5631582", "0.5608195", "0.5601113", "0.56004363", "0.55882514", "0.55874676", "0.55872923", "0.55789447", "0.55789447", "0.5576192", "0.5570869", "0.55668443", "0.55...
0.0
-1
for AICC import by cliff, 2001/4/19
public void updAiccLongText(Connection con, String mod_import_xml, String mod_core_vendor, String mod_desc, String mod_web_launch) throws qdbException { try { /* commented for using the new update function for clob (2002.04.22 kawai) // update mod_import_xml PreparedStatement stmt = con.prepareStatement( " UPDATE Module SET mod_import_xml= " + cwSQL.getClobNull(con) + " WHERE mod_res_id = ? "); stmt.setLong(1, mod_res_id); stmt.executeUpdate(); stmt.close(); stmt = con.prepareStatement( " SELECT mod_import_xml FROM Module " + " WHERE mod_res_id = ? FOR UPDATE " ,ResultSet.TYPE_FORWARD_ONLY, ResultSet.CONCUR_UPDATABLE ); stmt.setLong(1, mod_res_id); ResultSet rs = stmt.executeQuery(); if (rs.next()) { cwSQL.setClobValue(con, rs, "mod_import_xml", mod_import_xml); rs.updateRow(); } stmt.close(); // update mod_core_vendor stmt = con.prepareStatement( " UPDATE Module SET mod_core_vendor= " + cwSQL.getClobNull(con) + " WHERE mod_res_id = ? "); stmt.setLong(1, mod_res_id); stmt.executeUpdate(); stmt.close(); stmt = con.prepareStatement( " SELECT mod_core_vendor FROM Module " + " WHERE mod_res_id = ? FOR UPDATE " ,ResultSet.TYPE_FORWARD_ONLY, ResultSet.CONCUR_UPDATABLE ); stmt.setLong(1, mod_res_id); rs = stmt.executeQuery(); if (rs.next()) { cwSQL.setClobValue(con, rs, "mod_core_vendor", mod_core_vendor); rs.updateRow(); } stmt.close(); */ //--- use new clob update method to update clob columns (2002.04.22 kawai) // construct the condition String condition = "mod_res_id = " + mod_res_id; // construct the column & value String[] columnName = new String[3]; String[] columnValue = new String[3]; columnName[0] = "mod_import_xml"; columnValue[0] = mod_import_xml; columnName[1] = "mod_core_vendor"; columnValue[1] = mod_core_vendor; columnName[2] = "mod_web_launch"; columnValue[2] = mod_web_launch; cwSQL.updateClobFields(con, "Module", columnName, columnValue, condition); // update res desc if(mod_desc != null && mod_desc.length() > RES_DESC_LENGTH) { mod_desc = mod_desc.substring(0,RES_DESC_LENGTH); } PreparedStatement stmt = null; try { stmt = con.prepareStatement( " UPDATE Resources SET res_desc = ? " + " WHERE res_id = ? "); stmt.setString(1, mod_desc); stmt.setLong(2, mod_res_id); stmt.executeUpdate(); } finally { if(stmt!=null) stmt.close(); } super.updateTimeStamp(con); } catch(SQLException e) { throw new qdbException("SQL Error: " + e.getMessage()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean updAiccAu(Connection con, String domain, loginProfile prof, String aicc_crs_filename, String aicc_cst_filename, String aicc_des_filename, String aicc_au_filename, String aicc_ort_filename)\n throws IOException, SQLException, qdbException, qdbErrMessage, cwSysMessage {\n//System.out.println(\"...
[ "0.5998688", "0.5967803", "0.59659475", "0.5712574", "0.57119703", "0.5630092", "0.54530925", "0.54494065", "0.5397264", "0.53950846", "0.5389103", "0.53638697", "0.53420955", "0.5341712", "0.5335482", "0.5312859", "0.52700746", "0.52669483", "0.5265145", "0.5264682", "0.5251...
0.0
-1
by cliff, 8/6/2001 for updating an module with aicc type
public boolean updAiccAu(Connection con, String domain, loginProfile prof, String aicc_crs_filename, String aicc_cst_filename, String aicc_des_filename, String aicc_au_filename, String aicc_ort_filename) throws IOException, SQLException, qdbException, qdbErrMessage, cwSysMessage { //System.out.println("mod_in_eff_start_datetime:" + mod_in_eff_start_datetime); //System.out.println("mod_in_eff_end_datetime:" + mod_in_eff_end_datetime); //System.out.println("mod_max_score:" + mod_max_score); //System.out.println("res_subtype:" + res_subtype); //System.out.println("res_src_type:" + res_src_type); //System.out.println("res_src_link:" + res_src_link); // only used for calling aicc methods dbCourse dbCos = new dbCourse(); dbCos.cos_res_id = getCosId(con, mod_res_id); try { String mod_import_xml = null; Vector vtCosDescriptor = null; Vector vtCosStructure = null; Vector vtObjectiveRelation = null; Vector vtTemp = null; crsIniFile iniFileCRS = null; try { iniFileCRS = new crsIniFile(aicc_crs_filename); } catch(IOException e) { CommonLog.error("Error in loading the iniFileCRS:" + e.toString()); throw new IOException(e.toString()); } vtCosDescriptor = dbCos.buildCosDescriptorVector(aicc_des_filename); vtCosStructure = dbCos.getCosStructureVector(aicc_cst_filename); if (aicc_ort_filename != null) { vtObjectiveRelation = dbCos.getCosObjectiveVector(aicc_ort_filename); } Hashtable htBlockElements = dbCos.buildAiccBlockElements(dbCos.getMemberRelationLst(aicc_cst_filename)); Hashtable htAuModID = new Hashtable(); Hashtable htObjObjID = new Hashtable(); BufferedReader in = null; try { in = new BufferedReader(new InputStreamReader(new FileInputStream(new File(aicc_au_filename)))); } catch(Exception e) { throw new IOException(e.toString()); } String line = null; String systemID = null; String type = null; String command_line = null; String file_name = null; String max_score = null; String mastery_score = null; String max_time_allowed = null; String time_limit_action = null; String system_vendor = null; String core_vendor = null; String web_launch = null; String au_password = null; String tempStr = null; Hashtable htAuFieldOrder = null; Hashtable htAuFieldValue = null; StringTokenizer st = null; // the first line is used to determine the field order for (;;) { try { line = in.readLine(); } catch(Exception e) { throw new IOException(e.toString()); } if (line == null) { break; } else if (line.trim().length() > 0 && line.trim().equalsIgnoreCase("") == false) { htAuFieldOrder = new Hashtable(); int index = 1; Vector vtRecord = dbCos.buildTableRecord(line); String recordElement = null; for (int i=0; i<vtRecord.size(); i++) { recordElement = (String)vtRecord.elementAt(i); htAuFieldOrder.put(recordElement.toLowerCase(), new Integer(index)); index++; } break; } } //actually there should be only one AU record in the .au file for skillsoft course for (;;) { String mod_desc = null; try { line = in.readLine(); } catch(Exception e) { throw new IOException(e.toString()); } if (line == null) { break; } else if (line.trim().length() == 0 || line.trim().equalsIgnoreCase("") == true) { continue; } else { htAuFieldValue = new Hashtable(); int index = 1; Vector vtRecord = dbCos.buildTableRecord(line); String recordElement = null; for (int i=0; i<vtRecord.size(); i++) { recordElement = (String)vtRecord.elementAt(i); htAuFieldValue.put(new Integer(index), recordElement); index++; } Integer fieldIndex = null; fieldIndex = (Integer)htAuFieldOrder.get("system_id"); systemID = (String)htAuFieldValue.get(fieldIndex); fieldIndex = (Integer)htAuFieldOrder.get("type"); type = (String)htAuFieldValue.get(fieldIndex); fieldIndex = (Integer)htAuFieldOrder.get("command_line"); command_line = (String)htAuFieldValue.get(fieldIndex); fieldIndex = (Integer)htAuFieldOrder.get("file_name"); file_name = (String)htAuFieldValue.get(fieldIndex); fieldIndex = (Integer)htAuFieldOrder.get("max_score"); max_score = (String)htAuFieldValue.get(fieldIndex); fieldIndex = (Integer)htAuFieldOrder.get("mastery_score"); mastery_score = (String)htAuFieldValue.get(fieldIndex); fieldIndex = (Integer)htAuFieldOrder.get("max_time_allowed"); max_time_allowed = (String)htAuFieldValue.get(fieldIndex); fieldIndex = (Integer)htAuFieldOrder.get("time_limit_action"); time_limit_action = (String)htAuFieldValue.get(fieldIndex); fieldIndex = (Integer)htAuFieldOrder.get("system_vendor"); system_vendor = (String)htAuFieldValue.get(fieldIndex); fieldIndex = (Integer)htAuFieldOrder.get("core_vendor"); core_vendor = (String)htAuFieldValue.get(fieldIndex); fieldIndex = (Integer)htAuFieldOrder.get("web_launch"); web_launch = (String)htAuFieldValue.get(fieldIndex); fieldIndex = (Integer)htAuFieldOrder.get("au_password"); au_password = (String)htAuFieldValue.get(fieldIndex); vtTemp = null; for (int i=0; i<vtCosDescriptor.size(); i++) { vtTemp = (Vector)vtCosDescriptor.elementAt(i); if (systemID.equalsIgnoreCase((String)vtTemp.elementAt(0)) == true) { break; } else { vtTemp = null; } } mod_import_xml = "<assignable_unit system_id=\""; mod_import_xml += dbUtils.esc4XML(systemID); mod_import_xml += "\" type=\""; mod_import_xml += dbUtils.esc4XML(type); mod_import_xml += "\" command_line=\""; mod_import_xml += dbUtils.esc4XML(command_line); mod_import_xml += "\" file_name=\""; mod_import_xml += dbUtils.esc4XML(file_name); mod_import_xml += "\" max_score=\""; mod_import_xml += dbUtils.esc4XML(max_score); mod_import_xml += "\" mastery_score=\""; mod_import_xml += dbUtils.esc4XML(mastery_score); mod_import_xml += "\" max_time_allowed=\""; mod_import_xml += dbUtils.esc4XML(max_time_allowed); mod_import_xml += "\" time_limit_action=\""; mod_import_xml += dbUtils.esc4XML(time_limit_action); mod_import_xml += "\" system_vendor=\""; mod_import_xml += dbUtils.esc4XML(system_vendor); mod_import_xml += "\" core_vendor=\""; mod_import_xml += dbUtils.esc4XML(core_vendor); mod_import_xml += "\" web_launch=\""; mod_import_xml += web_launch; mod_import_xml += "\" au_password=\""; mod_import_xml += au_password; mod_import_xml += "\" />"; if (max_score.length() > 0) { mod_max_score = Float.parseFloat(max_score);; } else { } if (mastery_score.length() > 0) { mod_pass_score = Float.parseFloat(mastery_score); } else { } if (max_time_allowed.equalsIgnoreCase("") == true || max_time_allowed.length() == 0) { } else { int hr = 0; int min = 0; int sec = 0; String strTime = null; StringTokenizer stTime = new StringTokenizer(max_time_allowed,":"); strTime = stTime.nextToken(); strTime = strTime.trim(); hr = Integer.parseInt(strTime); strTime = stTime.nextToken(); strTime = strTime.trim(); min = Integer.parseInt(strTime); strTime = stTime.nextToken(); strTime = strTime.trim(); sec = Integer.parseInt(strTime); res_duration = hr*60 + min + sec/60; } res_type = "MOD"; // res_lan = "ISO-8859-1"; res_subtype = "AICC_AU"; res_src_type = "AICC_FILES"; res_src_link = file_name; // mod_in_eff_end_datetime = Timestamp.valueOf(dbUtils.MAX_TIMESTAMP); // mod_in_eff_start_datetime = Timestamp.valueOf(dbUtils.MIN_TIMESTAMP); // truncate the length of the description //if (res_desc.length() > 200) { //res_desc = res_desc.substring(0, 200); //} upd(con, prof); updAicc(con, prof, core_vendor, au_password, mod_import_xml, time_limit_action, web_launch, iniFileCRS.getValue("Course_Creator"), res_desc, iniFileCRS.getValue("Version")); htAuModID.put(systemID, new Long(mod_res_id)); } } in.close(); Vector vtElement = null; // input AICC objectives into DB for (int i=0; i<vtCosDescriptor.size(); i++) { String objSystemID = null; String objDeveloperID = null; String objTitle = null; String objDesc = null; dbObjective dbObj = null; vtElement = (Vector)vtCosDescriptor.elementAt(i); objSystemID = (String)vtElement.elementAt(0); if (objSystemID.toLowerCase().startsWith("j") == true) { objDeveloperID = (String)vtElement.elementAt(1); objTitle = (String)vtElement.elementAt(2); objDesc = (String)vtElement.elementAt(3); dbObj = new dbObjective(); dbObj.obj_type = "AICC"; dbObj.obj_desc = dbCos.trimObjDesc(dbUtils.esc4XML(objDesc)); dbObj.obj_title = objTitle; dbObj.obj_developer_id = objDeveloperID; dbObj.obj_import_xml = "<objective developer_id=\""; dbObj.obj_import_xml += objDeveloperID; dbObj.obj_import_xml += "\" />"; int obj_id = (int)dbObj.insAicc(con, prof); htObjObjID.put(objSystemID, new Integer(obj_id)); } } if (vtObjectiveRelation != null) { vtElement = null; for (int i=0; i<vtObjectiveRelation.size(); i++) { vtElement = (Vector)vtObjectiveRelation.elementAt(i); String parentSystemID = (String)vtElement.elementAt(0); Vector vtObjID = new Vector(); String childSystemID = null; for (int j=1; j<vtElement.size(); j++) { childSystemID = (String)vtElement.elementAt(j); vtObjID.addElement((Integer)htObjObjID.get(childSystemID)); } long[] intObjID = new long[vtObjID.size()]; for (int k=0; k<vtObjID.size(); k++) { intObjID[k] = ((Integer) vtObjID.elementAt(k)).longValue(); } long[] int_parent_mod_id_lst = null; if (parentSystemID.startsWith("A") == true || parentSystemID.startsWith("a") == true) { int_parent_mod_id_lst = new long[] { ((Long)htAuModID.get(parentSystemID)).longValue() }; } // collect all AU's mod_id in that AICC Block else if (parentSystemID.startsWith("B") == true || parentSystemID.startsWith("b") == true) { Vector vtBlockElements = (Vector)htBlockElements.get(parentSystemID); int_parent_mod_id_lst = new long[vtBlockElements.size()]; String tempSystemID = null; for (int m=0; m<vtBlockElements.size(); m++) { tempSystemID = (String)vtBlockElements.elementAt(m); int_parent_mod_id_lst[m] = ((Long)htAuModID.get(tempSystemID)).longValue(); } } dbResourceObjective dbResObj = new dbResourceObjective(); // remove the previous objective relations dbResObj.removeResObj(con, int_parent_mod_id_lst); // add new objective relations dbResObj.insResObj(con, int_parent_mod_id_lst, intObjID); } } // update the cos corresponding fields, or reset the fields that is previously set // during importing an AICC course which should be reset when inserting/updating an AICC AU dbCos.updAiccCos(con, prof, null, null, null, -1, false, false); return true; } catch(qdbErrMessage e) { // rollback at qdbAction //con.rollback(); throw new qdbErrMessage(e.toString()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void mo54416a(C20211ac acVar);", "void update(Type type);", "public interface C0136c {\n }", "public Object fix(IModule module);", "public interface C32231g {\n /* renamed from: a */\n void mo8280a(int i, int i2, C1207m c1207m);\n}", "public interface C8843g {\n}", "Datatype internalize(Dataty...
[ "0.56541157", "0.56145257", "0.5570465", "0.55625147", "0.55582935", "0.5515869", "0.5494987", "0.5468901", "0.54623723", "0.5449437", "0.54144347", "0.54077166", "0.54051435", "0.5396177", "0.5385717", "0.538177", "0.53745127", "0.53547525", "0.5354564", "0.5345365", "0.5335...
0.57360107
0
end of AICC specific methods
public void updBasicInfo(Connection con, loginProfile prof, boolean isChangeDate) throws qdbException, qdbErrMessage, cwSysMessage { try { res_id = mod_res_id; res_type = RES_TYPE_MOD; res_upd_user = prof.usr_id; // check User Right // checkModifyPermission(con, prof); // if (!dbResourcePermission.hasPermission(con, mod_res_id, prof, // dbResourcePermission.RIGHT_WRITE)) { // throw new qdbErrMessage(dbResourcePermission.NO_RIGHT_WRITE_MSG); // } // check timeStamp super.checkTimeStamp(con); super.updBasicInfo(con, isChangeDate); // tricky! upd instructor only when has instructor inputted if (mod_instructor_ent_id_lst != null) { dbResourcePermission.delUserRoleIsNull(con, mod_res_id); /* * if( mod_is_public && !mod_public_need_enrol ) * dbResourcePermission * .save(con,mod_res_id,prof.root_ent_id,null,true,false,true); */ for (int i = 0; i < mod_instructor_ent_id_lst.length; i++) { dbResourcePermission.save(con, mod_res_id, mod_instructor_ent_id_lst[i], null, true, true, false); } } String SQL; if (mod_in_eff_start_datetime != null && dbUtils.isMinTimestamp(mod_in_eff_start_datetime)) { mod_in_eff_start_datetime = dbUtils.getTime(con); } SQL = "update Module set mod_eff_start_datetime = ?, " + "mod_eff_end_datetime = ? " + " , mod_pass_score = ? " + " , mod_max_score = ? " + "where mod_res_id = ? "; PreparedStatement stmt = con.prepareStatement(SQL); int index = 1; stmt.setTimestamp(index++, mod_in_eff_start_datetime); stmt.setTimestamp(index++, mod_in_eff_end_datetime); stmt.setFloat(index++, mod_pass_score); stmt.setFloat(index++, mod_max_score); stmt.setLong(index++, mod_res_id); int stmtResult = stmt.executeUpdate(); stmt.close(); if (stmtResult != 1) { con.rollback(); throw new qdbException("Failed to update status."); } return; } catch (SQLException e) { throw new qdbException("SQL Error: " + e.getMessage()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void iCGAbsAc(int icgAbsAc, int timestamp) {\n }", "static void aci_data_with_acc(String passed){\n\t\tint sum = hexa_to_deci(registers.get('A'));\n\t\tsum+=(CS?1:0);\n\t\tsum+=hexa_to_deci(passed.substring(4));\n\t\tCS = sum>255?true:false;\n\t\tregisters.put('A',decimel_to_hexa_8bit(su...
[ "0.63983643", "0.6203737", "0.61282396", "0.6100712", "0.6067716", "0.5985106", "0.5966971", "0.59412", "0.59245306", "0.5923559", "0.5914703", "0.58903617", "0.58094627", "0.5761041", "0.5757465", "0.5752749", "0.57412714", "0.57354265", "0.57241225", "0.5718507", "0.5717267...
0.0
-1
this is cloned from the original upd method. specially modified for class module of a course using common content
public void upd2(Connection con, loginProfile prof) throws qdbException, qdbErrMessage, SQLException { res_id = mod_res_id; res_type = RES_TYPE_MOD; res_upd_user = prof.usr_id; super.checkTimeStamp(con); if (res_status.equalsIgnoreCase(RES_STATUS_ON) || res_status.equalsIgnoreCase(RES_STATUS_DATE)) { // Check if the question is ordered in 1,2,3.... if (!checkQorder(con)) { //Questions are not in the correct order. throw new qdbErrMessage("MOD001"); } } //if the module is standard test or dynamic test //make sure that you can only turn the module online //if the test has question/criteria defined in it if (res_status.equalsIgnoreCase(RES_STATUS_ON)) { if (mod_type.equalsIgnoreCase(MOD_TYPE_TST)) { if (dbResourceContent.getResourceContentCount(con, mod_res_id) == 0) { res_status = RES_STATUS_OFF; } } else if (mod_type.equalsIgnoreCase(MOD_TYPE_DXT)) { if (dbModuleSpec.getModuleSpecCount(con, mod_res_id) == 0) { res_status = RES_STATUS_OFF; } } } super.updateStatus(con); // permission records have to be cleared no matter mod_instructor is specified or not dbResourcePermission.delUserRoleIsNull(con, mod_res_id); if (mod_instructor_ent_id_lst != null) { for (int i = 0; i < mod_instructor_ent_id_lst.length; i++) { dbResourcePermission.save(con, mod_res_id, mod_instructor_ent_id_lst[i], null, true, true, false); } } //Dennis, 2000-12-13, impl release control //If the new status == DATE, update the eff_start/end_datetime in Module //if(res_status.equalsIgnoreCase(RES_STATUS_DATE)) //2001-01-05, all status will have eff datetime updateEffDatetime(con); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void updateBourse(Bourse brs) {\n\t\t\n\t}", "public boolean updateCourse(Course c) {\n\t\treturn false;\n\t}", "public void updateCourse(Course curs) throws SQLException, ClassNotFoundException {\r\n Iterable<Student> allStuds = students.findAll();\r\n List<Student> toUpdate ...
[ "0.6670857", "0.63898695", "0.63862723", "0.63402796", "0.63386875", "0.63263345", "0.6316208", "0.6193093", "0.61481744", "0.61481744", "0.61481744", "0.6094025", "0.6070606", "0.6070606", "0.60673684", "0.6025695", "0.5958251", "0.5956738", "0.5952593", "0.5939762", "0.5924...
0.6627955
1
The selected question is already ordered.
public boolean checkQorder(Connection con) throws qdbException, qdbErrMessage { Vector resCon = dbResourceContent.getChildAss(con,mod_res_id); dbResourceContent rcn = new dbResourceContent(); for(int i=1;i<=resCon.size();i++) { rcn = (dbResourceContent) resCon.elementAt(i-1); if (rcn.rcn_order != i) return false; } return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void eventSelectOrder() {\n\t\t\n\t}", "public boolean isOrdered() {\n return mOrdered;\n }", "@Override\n\tpublic int getOrder() {\n\t\treturn 1;\n\t}", "@objid (\"fcf73d01-d406-41e9-9490-067237966153\")\n boolean isIsOrdered();", "@Override\r\n public int getOrder() {\r\n ...
[ "0.6170231", "0.6142077", "0.60037065", "0.58778626", "0.58684576", "0.57800066", "0.57591057", "0.5719937", "0.56996185", "0.5688918", "0.56835014", "0.5676942", "0.5644723", "0.56353176", "0.56353176", "0.5635067", "0.5628094", "0.5608827", "0.5579749", "0.55789876", "0.555...
0.0
-1
isShuffleMCQue: indicate if the MC question in this test needs to be shuffled
public String genTestAsXML(Connection con, loginProfile prof, dbModuleSpec dbmsp, String[] robs, float time_limit, String uploadDir, Vector resIdVec, boolean showAnswer, long tkh_id, boolean boolPreviewAssessment, boolean isShuffleMCQue) throws qdbException, qdbErrMessage, cwSysMessage, SQLException, cwException { String qList = ""; if (mod_type.equalsIgnoreCase(MOD_TYPE_STX)) res_duration = time_limit; // pass the resIdVec as reference and store all the queId in the test // return to qdbAction for access control if (mod_type.equalsIgnoreCase(MOD_TYPE_DXT) || mod_type.equalsIgnoreCase(MOD_TYPE_STX)) { qList = getDynamicQueAsXML(con, prof.usr_id, dbmsp, robs, uploadDir, resIdVec, boolPreviewAssessment, isShuffleMCQue); }else { qList = getStaticQueAsXML(con, resIdVec, isShuffleMCQue); } Timestamp curTime = dbUtils.getTime(con); int scenarioQueCount = dbResource.countScenarioQueInList(con, resIdVec); String result = "<?xml version=\"1.0\" encoding=\"" + dbUtils.ENC_UTF + "\" standalone=\"no\" ?>" + dbUtils.NEWL; result += "<quiz id=\""+ res_id + "\" language=\"" + res_lan + "\" timestamp=\"" + res_upd_date ; result += "\" start_time=\"" + curTime + "\" size=\"" + (resIdVec.size()-scenarioQueCount) + "\" total_score=\"" + (int)mod_max_score + "\">" + dbUtils.NEWL; result += "<key>" + Math.round(Math.random()*99+1) + "</key>" + dbUtils.NEWL; // author's information //result += prof.asXML() + dbUtils.NEWL; if (this.usr_ent_id==0){ this.usr_ent_id = prof.usr_ent_id; } result += getModHeader(con, prof)+ dbUtils.NEWL; result += dbModuleEvaluation.getModuleEvalAsXML(con, mod_res_id, this.usr_ent_id, tkh_id); result += dbResourcePermission.aclAsXML(con,res_id,prof); dbRegUser usr = new dbRegUser(); usr.usr_ent_id = this.usr_ent_id; usr.ent_id = this.usr_ent_id; usr.get(con); result += usr.getUserShortXML(con, false, true, false); result += qList + dbUtils.NEWL; if( showAnswer ) { dbProgressAttempt dbAtm = new dbProgressAttempt(); CommonLog.debug("getUserAttemptedResultAsXML:" + tkh_id); result += dbAtm.getUserAttemptedResultAsXML(con, mod_res_id, this.usr_ent_id, tkh_id); } result += "</quiz>"+ dbUtils.NEWL; return result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean shuffleNeeded();", "public boolean getShuffle() {\n\t\treturn this.shuffle;\n\t}", "@Override\n\tpublic int getShuffleMode()\n\t{\n\t\treturn 0;\n\t}", "public String getStaticQueAsXML(Connection con, Vector resIdVec, boolean isShuffleMCQue)\n throws qdbErrMessage, qdbException, cwSysMe...
[ "0.69229364", "0.6190567", "0.5822192", "0.5798507", "0.5793511", "0.5780012", "0.5727566", "0.5724049", "0.56501937", "0.5609723", "0.5559596", "0.5553116", "0.5541164", "0.55228394", "0.5405318", "0.5337056", "0.53186554", "0.5315358", "0.5308188", "0.5263012", "0.5263012",...
0.5023665
35
Get the list of question from the test;
public String getStaticQueAsXML(Connection con, Vector resIdVec, boolean isShuffleMCQue) throws qdbErrMessage, qdbException, cwSysMessage, cwException { Vector qArray = dbResourceContent.getChildAss(con,mod_res_id); if( this.mod_logic != null && this.mod_logic.equalsIgnoreCase(dbModule.MOD_LOGIC_RND) ){ qArray = cwUtils.randomVec(qArray); } if(qArray.size() == 0) { //if no question is drawn, //throw system message and do not launch the test player CommonLog.info("Empty question for Standard Test"); throw new qdbErrMessage("MOD008"); } String qList = ""; dbQuestion dbq = new dbQuestion(); dbResourceContent rcn = new dbResourceContent(); long order = 1; int i; mod_size = qArray.size(); for (i=0;i < qArray.size();i++) { rcn = (dbResourceContent) qArray.elementAt(i); dbq.que_res_id = rcn.rcn_res_id_content; dbq.res_id = dbq.que_res_id; dbq.get(con); order = rcn.rcn_order; // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ if( dbq.que_type.equalsIgnoreCase(dbResource.RES_SUBTYPE_FSC) ) { FixedScenarioQue fsq = new FixedScenarioQue(); fsq.res_id = dbq.res_id; fsq.get(con); try{ Vector v_que_id = fsq.getChildQueId(con); if (v_que_id.size() == 0) { throw new qdbErrMessage("MSP002"); } if( fsq.qct_allow_shuffle_ind == 1 ) { v_que_id = cwUtils.randomVec(v_que_id); } qList += fsq.asXMLinTest(con, order++, v_que_id, isShuffleMCQue); resIdVec.addAll(v_que_id); }catch(SQLException e){ throw new qdbException(e.getMessage()); } } else if( dbq.que_type.equalsIgnoreCase(dbResource.RES_SUBTYPE_DSC)) { DynamicScenarioQue dsq = new DynamicScenarioQue(); dsq.res_id = dbq.res_id; dsq.get(con); try{ Vector v_que_id = dsq.getChildQueId(con); if (v_que_id.size() == 0) { throw new qdbErrMessage("MSP002"); } qList += dsq.asXMLinTest(con, order++, v_que_id, isShuffleMCQue); resIdVec.addAll(v_que_id); }catch(SQLException e){ throw new qdbException(e.getMessage()); } } else { qList += dbq.asXML(con, order, isShuffleMCQue); } // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ resIdVec.addElement(new Long(dbq.que_res_id)); } return qList; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "List<Question> getQuestions();", "List<Question> getQuestionsUsed();", "@Override\n\tpublic List<Questions> listQuestion(int testId) {\n\t\treturn null;\n\t}", "@Override\n\tpublic List<Questions> listQuestion(long testId1) {\n\t\treturn null;\n\t}", "public ArrayList<String> getQuestionsList() {\n\t\tArra...
[ "0.75954926", "0.75626636", "0.73987037", "0.71751124", "0.708457", "0.7053819", "0.70393133", "0.7020083", "0.69553816", "0.6946665", "0.69462657", "0.69025123", "0.67542183", "0.6739658", "0.66725343", "0.6666002", "0.66148114", "0.6607882", "0.6582326", "0.6531514", "0.651...
0.0
-1
Dennis, 20001213, impl release control it updates the mod_eff_start/end_datetime in Module with the nonstatic class valiables mod_in_eff_start/end_datetime
public void updateEffDatetime(Connection con) throws qdbException { try { String SQL; if(mod_in_eff_start_datetime != null) if(dbUtils.isMinTimestamp(mod_in_eff_start_datetime)) mod_in_eff_start_datetime = dbUtils.getTime(con); SQL = "update Module set mod_eff_start_datetime = ?, " + "mod_eff_end_datetime = ? " + "where mod_res_id = ? "; PreparedStatement stmt = con.prepareStatement(SQL); stmt.setTimestamp(1, mod_in_eff_start_datetime); stmt.setTimestamp(2, mod_in_eff_end_datetime); stmt.setLong(3,mod_res_id); int stmtResult=stmt.executeUpdate(); stmt.close(); if ( stmtResult!=1) { con.rollback(); throw new qdbException("Failed to update status."); } } catch(SQLException e) { throw new qdbException(e.getMessage()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Model\r\n\tprotected void setModificationTime() {\r\n modificationTime = new Date();\r\n }", "@Override\n void adjustStartAndEnd(U vComponentEditedCopy, U vComponentOriginalCopy)\n {\n vComponentEditedCopy.setDateTimeStart(new DateTimeStart(getStartRecurrence()));\n vComponentEdite...
[ "0.5689851", "0.56211156", "0.5600776", "0.55754614", "0.5555447", "0.55266666", "0.5523413", "0.5489543", "0.54526544", "0.5437665", "0.5430855", "0.5393564", "0.5390792", "0.53820324", "0.53731656", "0.53026813", "0.53011036", "0.52493113", "0.52422667", "0.524012", "0.5240...
0.59000486
0
Dennis, 20001213, impl release control it gets the mod_eff_start_datetime from Module
public static Timestamp getModStart(Connection con, long id) throws qdbException { try { String SQL; Timestamp curTime = null; SQL = "Select mod_eff_start_datetime " + "From Module " + "Where mod_res_id = ?"; PreparedStatement stmt = con.prepareStatement(SQL); stmt.setLong(1, id); ResultSet rs = stmt.executeQuery(); if(rs.next() == true) curTime = rs.getTimestamp(1); else { stmt.close(); throw new qdbException("Cannot find the Module: " + id); } stmt.close(); return curTime; } catch (SQLException e) { throw new qdbException(e.getMessage()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Timestamp getHC_WorkStartDate2();", "String getSourceUsageDateTime();", "String getSourceUsageURLModificiationTime();", "public DTM getDateTimeStartOfAdministration() { \r\n\t\tDTM retVal = this.getTypedField(3, 0);\r\n\t\treturn retVal;\r\n }", "public String getModifyStartTime() {\n retu...
[ "0.61228746", "0.594345", "0.5858023", "0.5789079", "0.57680094", "0.57546073", "0.56252074", "0.55843896", "0.55838555", "0.55635464", "0.5558492", "0.555585", "0.5550623", "0.553778", "0.55091375", "0.55019647", "0.5501411", "0.54733825", "0.5470348", "0.5469017", "0.542868...
0.66256887
0
Dennis, 20001213, impl release control it gets the mod_eff_end_datetime from Module
public static Timestamp getModEnd(Connection con, long id) throws qdbException { try { String SQL; Timestamp curTime = null; SQL = "Select mod_eff_end_datetime " + "From Module " + "Where mod_res_id = ?"; PreparedStatement stmt = con.prepareStatement(SQL); stmt.setLong(1, id); ResultSet rs = stmt.executeQuery(); if(rs.next() == true) curTime = rs.getTimestamp(1); else { stmt.close(); throw new qdbException("Cannot find the Module: " + id); } stmt.close(); return curTime; } catch (SQLException e) { throw new qdbException(e.getMessage()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getModifyEndTime() {\n return modifyEndTime;\n }", "public Timestamp getHC_WorkEndDate();", "public void updateEffDatetime(Connection con)\n throws qdbException\n {\n try {\n String SQL;\n\n if(mod_in_eff_start_datetime != null)\n if...
[ "0.628713", "0.60859", "0.58912146", "0.58497685", "0.5845183", "0.58448446", "0.57636184", "0.5745768", "0.56690735", "0.56641454", "0.56449795", "0.56372005", "0.56161344", "0.56021035", "0.5598463", "0.5593262", "0.55578494", "0.55446374", "0.55374134", "0.5526914", "0.552...
0.6839229
0
Update Assessment Related Filed
public void updAsmRelated(Connection con, loginProfile prof) throws SQLException, cwException { super.updAsmReleated(con, prof); String SQL = " UPDATE Module " + " SET mod_eff_start_datetime = ?, mod_eff_end_datetime = ?, " + " mod_max_usr_attempt = ?, mod_pass_score = ? " + " WHERE mod_res_id = ? "; PreparedStatement stmt = con.prepareStatement(SQL); stmt.setTimestamp(1, mod_eff_start_datetime); stmt.setTimestamp(2, mod_eff_end_datetime); stmt.setLong(3, mod_max_usr_attempt); stmt.setFloat(4, mod_pass_score); stmt.setLong(5, mod_res_id); int stmtResult=stmt.executeUpdate(); stmt.close(); if ( stmtResult!=1) throw new cwException(" Failed to Update Module, id = " + mod_res_id); return; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void updateAssessment() {\n Converters c = new Converters();\n\n //get UI fields\n int courseId = thisCourseId;\n String title = editTextAssessmentTitle.getText().toString();\n LocalDate dueDate = c.stringToLocalDate(textViewAssessmentDueDate.getText().toString());\n ...
[ "0.70179576", "0.6498901", "0.6256154", "0.6077639", "0.5983937", "0.5963297", "0.59297234", "0.59287393", "0.58606154", "0.5857426", "0.5846536", "0.5811677", "0.5793962", "0.57659894", "0.57655436", "0.57626635", "0.57521474", "0.5746668", "0.57228637", "0.57078487", "0.568...
0.56686145
22
When a module is launch, save the progress tracking data for this attempt
public void saveTrackingDataAtLaunch(Connection con, loginProfile prof, long tkh_id, long cos_id) throws SQLException, cwException, cwSysMessage, qdbException, qdbErrMessage { //get the module's course id if(cos_id == 0){ cos_id = getCosId(con, mod_res_id); } //get the Tracking History id if it is not defined if (tkh_id == DbTrackingHistory.TKH_ID_UNDEFINED) { tkh_id = DbTrackingHistory.getAppTrackingIDByMod(con, mod_res_id, prof.usr_ent_id); } //save the tracking data to ModuleEvaluation, ModuleEvaluationHistory and CourseEvaluation dbModuleEvaluation mov = new dbModuleEvaluation(); mov.mov_cos_id = cos_id; mov.mov_ent_id = prof.usr_ent_id; mov.mov_tkh_id = tkh_id; mov.mov_mod_id = mod_res_id; if(attempt_add){ mov.attempt_counted = false; }else{ mov.attempt_counted = true; } mov.mod_time = 0f; //time consumed is 0 as the module is just launch mov.score_delta = 0f; //no score changes as the module is just launch mov.mov_score = "0"; //keep the score unchange as the module is just launch mov.mov_status = dbModuleEvaluation.STATUS_IN_PROGRESS; //the status is changed to in progress mov.save(con, prof); return; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void saveProgress() {\n\t\tsaveUsers();\n\t\tsaveMaterials();\n\t\tsaveBorrowings();\n\t}", "private void saveBeforeRun() {\n if ( _helper != null && _settings.getSaveBeforeRun() )\n _helper.saveBeforeRun();\n }", "public void progressTheGame() {\r\n gameProgress = GameState....
[ "0.6683518", "0.59247756", "0.5606368", "0.5600777", "0.55318135", "0.54766923", "0.53775704", "0.53225076", "0.5301705", "0.52977264", "0.52650565", "0.5254768", "0.523679", "0.52342546", "0.5223326", "0.5210193", "0.5205183", "0.51834786", "0.51736194", "0.515159", "0.51468...
0.5656164
2
Fix the questions' order. The order should be in 1,2,3,...,n,n+1 Only Standard Test (TST) needs to fix its questions' order
private void fixQueOrder(Connection con) throws SQLException, qdbException { if(mod_type == null || mod_type.equalsIgnoreCase(MOD_TYPE_TST)|| mod_type.equals(MOD_TYPE_SVY) || mod_type.equals(MOD_TYPE_EVN)) { //only standard test (TST) needs to fix que order bt its nature //for other module type, nothing should have been fixed //therefore try to fix the que order if the module tpye is unknown PreparedStatement stmt = null; try { //get the module's questions Vector vQue = dbResourceContent.getChildAss(con, mod_res_id); for(int i=0; i<vQue.size(); i++) { dbResourceContent rcn = (dbResourceContent) vQue.elementAt(i); if(rcn.rcn_order != i+1) { //if the que is in order, update it rcn.rcn_order = i+1; rcn.updOrder(con); } } } finally { if(stmt!=null) {stmt.close();} } } return; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Before\n public void runBefore() {\n q1 = new TrueFalseQuestion(8, \"You are awesome.\", true);\n q2 = new TrueFalseQuestion(16, \"Donuts are bad for you.\", true);\n q3 = new TrueFalseQuestion(1, \"You suck at programming\", true);\n qList = new QuestionsList();\n qList.addQ...
[ "0.60195404", "0.591039", "0.5773102", "0.57656604", "0.5756277", "0.5745079", "0.57378626", "0.5725294", "0.5677049", "0.5674712", "0.5674047", "0.56540227", "0.565108", "0.56483144", "0.564514", "0.5644392", "0.56195015", "0.5602342", "0.5587222", "0.55754125", "0.5564915",...
0.6370364
0
return a module is publish or not
public String getModStatus(Connection con) throws SQLException { String sql = "select res_status from resources where res_id = ? "; String res_status = null; PreparedStatement pstmt = con.prepareStatement(sql); pstmt.setLong(1, mod_res_id); ResultSet rs = pstmt.executeQuery(); if (rs.next()) { res_status = rs.getString("res_status"); } pstmt.close(); return res_status; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean supportsServeModulesWithoutPublish();", "public Short getIsPublish() {\n\t\treturn isPublish;\n\t}", "public static boolean m133284b() {\n IAVPublishService publishService = ((IAVService) ServiceManager.get().getService(IAVService.class)).publishService();\n C7573i.m23582a((Object)...
[ "0.7331084", "0.69701445", "0.64914733", "0.6221329", "0.61719614", "0.61396146", "0.61396146", "0.60542864", "0.6001091", "0.5999861", "0.5960731", "0.5878999", "0.5840795", "0.5690663", "0.566662", "0.5660702", "0.5659781", "0.56582546", "0.5644113", "0.5628756", "0.5610342...
0.0
-1
determine if the current module resides in a learning solution of type classroom that is not a class if so, start date, end date, status cannot be modified
public boolean isChangeDate(Connection con) throws SQLException { String SQL = "select itm_id from aeItem where itm_type = 'CLASSROOM' and itm_run_ind = 0 and itm_id in " + "(select cos_itm_id from course where cos_res_id in " + "(select rcn_res_id from resourcecontent where rcn_res_id_content = ?))"; boolean changeDate = true; PreparedStatement stmt = null; try { stmt = con.prepareStatement(SQL); stmt.setLong(1, mod_res_id); ResultSet rs = stmt.executeQuery(); if (rs.next()) { changeDate = false; } } finally { if (stmt != null) { stmt.close(); } } return changeDate; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean checkCourseLabConflict(Schedule sched)\n\t{\n\t\tSchedule workingSchedule = sched;\n\t\tCourse workingCourse;\n\t\tLab workingLab, lab813 = null, lab913 = null;\n\t\t\t\n\t\t//Traverse through all the classes in the schedule and find their labs\n\t\tfor(int i = 0; i<workingSchedule.getCourses().siz...
[ "0.53248626", "0.5220745", "0.5198355", "0.5185193", "0.51211655", "0.512115", "0.5108018", "0.50999886", "0.50982153", "0.50738066", "0.50305206", "0.5025917", "0.50104886", "0.5005471", "0.5000188", "0.49972853", "0.49718612", "0.49702936", "0.49614793", "0.49592277", "0.49...
0.48104385
34
Get the list of question from the test;
public String getStaticQueAsXML_test(Connection con, Vector resIdVec,boolean isShuffleMCQue, long tkh_id, ExportController controller) throws SQLException,qdbException ,cwSysMessage,qdbErrMessage,qdbErrMessage { Vector qArray = dbResourceContent.getChildAss(con,mod_res_id); Vector qArray_id = new Vector(); if (qArray.size() == 0) { //if no question is drawn, //throw system message and do not launch the test player CommonLog.info("Empty question for Standard Test"); throw new cwSysMessage("MOD008"); } for (int i=0;i < qArray.size();i++) { dbResourceContent rcn = (dbResourceContent) qArray.elementAt(i); qArray_id.add(new Long(rcn.rcn_res_id_content)); } String qList = ""; mod_size = qArray.size(); qList += dbQuestion.getQueAsXML_test(con, null, qArray_id, resIdVec, mod_type, isShuffleMCQue, tkh_id, mod_res_id, controller); return qList; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "List<Question> getQuestions();", "List<Question> getQuestionsUsed();", "@Override\n\tpublic List<Questions> listQuestion(int testId) {\n\t\treturn null;\n\t}", "@Override\n\tpublic List<Questions> listQuestion(long testId1) {\n\t\treturn null;\n\t}", "public ArrayList<String> getQuestionsList() {\n\t\tArra...
[ "0.75954926", "0.75626636", "0.73987037", "0.71751124", "0.708457", "0.7053819", "0.70393133", "0.7020083", "0.69553816", "0.6946665", "0.69462657", "0.69025123", "0.67542183", "0.6739658", "0.66725343", "0.6666002", "0.66148114", "0.6607882", "0.6582326", "0.6531514", "0.651...
0.0
-1
Empty constructor for hibernate instantiation purposes
public Player(){}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private HibernateUtil() {\n\t}", "public RepoSQL() { // constructor implicit\r\n\t\t super();\r\n\t }", "private HibernateUtil() {\r\n }", "protected CompanyJPA() {\n\t}", "public DB() {\r\n\t\r\n\t}", "public OnibusDAO() {}", "public AbstractHibernateDAOSupport() {\n super();\n }", "pub...
[ "0.7483504", "0.7406703", "0.73605835", "0.70459896", "0.6950582", "0.6940261", "0.6933635", "0.6877075", "0.68343437", "0.68217313", "0.681638", "0.68039465", "0.6763184", "0.67337966", "0.67217875", "0.6721263", "0.66964716", "0.66727734", "0.6669365", "0.6655808", "0.66558...
0.0
-1
Method will return the player's username
public String getUsername() { return this.username; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getPlayerOneUserName() {\n if (gameStatus == null) return \"\";\n if (gameStatus.getPlayerOneUserName() == null) return \"\";\n return gameStatus.getPlayerOneUserName();\n }", "String getPlayerName();", "private String getPlayerName() {\n Bundle inBundle = getIntent...
[ "0.8146939", "0.8010249", "0.7984719", "0.7881047", "0.7881047", "0.7881047", "0.7881047", "0.7881047", "0.7881047", "0.7881047", "0.7881047", "0.7881047", "0.78468525", "0.78275204", "0.7670552", "0.75976366", "0.7576125", "0.7576125", "0.7576125", "0.7576125", "0.7576125", ...
0.0
-1
Method will set the player's username
public void setUsername(String un) { this.username = un; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setUsername(String username);", "void setUserUsername(String username);", "public final void setUsername(final String value) {\n username = value;\n }", "public void setUsername(String aUsername) {\n username = aUsername;\n }", "public void setUsername(final String username){\n ...
[ "0.7774492", "0.7685262", "0.76346403", "0.7628098", "0.75929844", "0.75566244", "0.75485915", "0.7454499", "0.7416427", "0.74134964", "0.73937446", "0.7370194", "0.7365889", "0.73483545", "0.7333229", "0.7324313", "0.7321288", "0.7320309", "0.7306759", "0.72705066", "0.72697...
0.70855
47
Method will get the player's password
public String getPassword() { return this.password; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getPassword();", "java.lang.String getPassword();", "java.lang.String getPassword();", "java.lang.String getPassword();", "java.lang.String getPassword();", "java.lang.String getPassword();", "java.lang.String getPassword();", "String getPassword();", "String getPassword();", "St...
[ "0.79644173", "0.79644173", "0.79644173", "0.79644173", "0.79644173", "0.79644173", "0.79644173", "0.790086", "0.790086", "0.790086", "0.790086", "0.790086", "0.790086", "0.790086", "0.790086", "0.790086", "0.7851781", "0.7848337", "0.7726758", "0.7726758", "0.7633185", "0....
0.71849525
55
This method will set the player's password
public void setPassword(String pw) { this.password = pw; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setPassword(String password);", "void setPassword(String password);", "void setPassword(String password);", "public void setPassword(String pass);", "public void setPassword(String password)\r\n/* 26: */ {\r\n/* 27:42 */ this.password = password;\r\n/* 28: */ }", "public void setPassword...
[ "0.74697506", "0.74697506", "0.74697506", "0.7296289", "0.7203204", "0.7150772", "0.710567", "0.70361966", "0.69358855", "0.6935509", "0.68845034", "0.6824525", "0.68228495", "0.6802919", "0.6799455", "0.6758639", "0.67533726", "0.6730922", "0.671347", "0.6709719", "0.6701554...
0.6938176
8
This method will get the player's high score
public int getHighscore() { return this.highscore; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getHighScore() {\n return getStat(highScore);\n }", "public int getHighScore() {\n return highScore;\n }", "public int getHighScore() {\n\t\treturn highscore;\n\t}", "public int getPlayerScore();", "public int currentHighscore() { \r\n \tFileReader readFile = null;\r\n \tBufferedRea...
[ "0.8548131", "0.8359256", "0.8066649", "0.78180426", "0.7637676", "0.7586899", "0.75471014", "0.74802834", "0.74596864", "0.7444893", "0.741407", "0.73798156", "0.7361888", "0.7324854", "0.7324854", "0.73238546", "0.7312683", "0.72894526", "0.7277277", "0.7277277", "0.7277277...
0.81591785
2
This method sets the player's high score
public void setHighscore(int score) { this.highscore = score; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void updateHighscore() {\n if(getScore() > highscore)\n highscore = getScore();\n }", "private void setHighScore(int hs) {\n setStat(hs, highScore);\n }", "public void setHighScore(int newScore) {\n\t\tpreferences().putInteger(username() + HIGH_SCORE, newScore);\n\t\tsave();\n\...
[ "0.8087031", "0.78944635", "0.7659432", "0.7462915", "0.7459309", "0.7455704", "0.7422969", "0.7420468", "0.737786", "0.7362517", "0.7337303", "0.732681", "0.7321722", "0.7310968", "0.72744", "0.72675955", "0.7262494", "0.7253892", "0.72070616", "0.7205358", "0.71978605", "...
0.83247197
0
Start the message receiving thread
public void run(){ try{ // Get client socket. Socket client = server.getClientSocket(); // Get the inputstream from the socket BufferedReader reader = new BufferedReader(new InputStreamReader(client.getInputStream())); String line; while(true){ if(client.isClosed()){ System.out.println("The client is offline. Chat finished."); break; } else{ line= reader.readLine(); if(line.equals("bye")){ System.out.println(line); System.out.println("Chat finished."); client.close(); break; } else{ System.out.println("Client: "); System.out.println(line); } } } reader.close(); }catch(IOException e){ e.printStackTrace(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void onStart() {\n\t new Thread() {\n\t @Override public void run() {\n\t receive();\n\t }\n\t }.start();\n\t }", "private void receive() {\n receive = new Thread(\"Receive\") {\n public void run() {\n while (running) {\n byte[] ...
[ "0.7462802", "0.7175917", "0.7153672", "0.708345", "0.7018747", "0.6986291", "0.6967367", "0.696143", "0.69524926", "0.6937341", "0.68699455", "0.68499964", "0.6848412", "0.6834038", "0.6832755", "0.68228674", "0.68134534", "0.67993975", "0.6797674", "0.67858374", "0.67616487...
0.0
-1
/ Prints tree vertically which actually looks like tree 8 6 7 5 3 2 1
void printTree(Node root, int space) { if(root == null) return; printTree(root.right, space + 5); for(int i=0; i<space; i++) System.out.print(" "); System.out.print(root.data); System.out.println(); printTree(root.left, space + 5); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void tree()\n\t{\n\t\tIterable<Position<FileElement>> toPrint = fileSystem.PreOrder();\n\t\tfor (Position<FileElement> p : toPrint)\n\t\t{\n\t\t\tint depth = fileSystem.getDepth(p);\n\t\t\tfor (int i = 0; i < depth; i++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t\tSystem.out.println(p.getVa...
[ "0.80735874", "0.78545153", "0.7737432", "0.7668888", "0.74528605", "0.7301149", "0.7238714", "0.7237574", "0.7188458", "0.7149469", "0.71437687", "0.7070825", "0.7056026", "0.70089406", "0.6991576", "0.69913894", "0.69481945", "0.6925405", "0.692531", "0.69127554", "0.690410...
0.67429984
32
root, root.left, root.right using recursion
void preOrderPrint(Node root, boolean recursion) { if(root == null) return; System.out.print(root.data + " "); preOrderPrint(root.left, true); preOrderPrint(root.right, true); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\r\n\tpublic void test(){\r\n\t\tTreeNode root = new TreeNode(1); \r\n TreeNode r2 = new TreeNode(2); \r\n TreeNode r3 = new TreeNode(3); \r\n TreeNode r4 = new TreeNode(4); \r\n TreeNode r5 = new TreeNode(5); \r\n TreeNode r6 = new TreeNode(6); \r\n root.l...
[ "0.69227713", "0.677775", "0.666454", "0.66385806", "0.659727", "0.6576448", "0.6528542", "0.64919955", "0.6491828", "0.64719754", "0.6466278", "0.6454098", "0.6426687", "0.642475", "0.6413696", "0.6410385", "0.6397663", "0.63893783", "0.6389049", "0.6379102", "0.6366889", ...
0.0
-1
Creates new form Alunos
public Alunos() { initComponents(); ButtonGroup bg = new ButtonGroup(); //Agora basta vc adicionar os seus RadioButtons ao objeto desta classe. bg.add(rdNome); bg.add(rdID); bg.add(rdNomeEditar); bg.add(rdIdEditar); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Command\n\tpublic void nuevoAnalista(){\n\t\tMap<String, Object> parametros = new HashMap<String, Object>();\n\n\t\t//parametros.put(\"recordMode\", \"NEW\");\n\t\tllamarFormulario(\"formularioAnalistas.zul\", null);\n\t}", "FORM createFORM();", "public static void create(Formulario form){\n daoFormula...
[ "0.69779015", "0.6765107", "0.6609289", "0.65468925", "0.6441766", "0.6333465", "0.6313686", "0.6270863", "0.6239766", "0.62085015", "0.6083027", "0.60665804", "0.60583246", "0.60341215", "0.60079306", "0.59718066", "0.592495", "0.59197885", "0.58933717", "0.5893247", "0.5873...
0.0
-1
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() { jMenuItem1 = new javax.swing.JMenuItem(); menuBar1 = new java.awt.MenuBar(); menu1 = new java.awt.Menu(); menu2 = new java.awt.Menu(); jRadioButtonMenuItem1 = new javax.swing.JRadioButtonMenuItem(); jCheckBoxMenuItem1 = new javax.swing.JCheckBoxMenuItem(); jMenu1 = new javax.swing.JMenu(); jFrame1 = new javax.swing.JFrame(); jocPaneGroup1 = new com.xzq.osc.JocPaneGroup(); jFrame2 = new javax.swing.JFrame(); buttonGroup1 = new javax.swing.ButtonGroup(); jFrame3 = new javax.swing.JFrame(); buttonGroup2 = new javax.swing.ButtonGroup(); buttonGroup3 = new javax.swing.ButtonGroup(); buttonGroup4 = new javax.swing.ButtonGroup(); buttonGroup5 = new javax.swing.ButtonGroup(); buttonGroup6 = new javax.swing.ButtonGroup(); buttonGroup7 = new javax.swing.ButtonGroup(); buttonGroup9 = new javax.swing.ButtonGroup(); buttonGroup8 = new javax.swing.ButtonGroup(); jFrame4 = new javax.swing.JFrame(); jPanel2 = new javax.swing.JPanel(); jTabbedPane2 = new javax.swing.JTabbedPane(); jPanel5 = new javax.swing.JPanel(); 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(); jLabel7 = new javax.swing.JLabel(); jLabel8 = new javax.swing.JLabel(); jLabel9 = new javax.swing.JLabel(); txtNome = new javax.swing.JTextField(); txtIdade = new javax.swing.JTextField(); txtEndereco = new javax.swing.JTextField(); txtEmail = new javax.swing.JTextField(); txtNomePai = new javax.swing.JTextField(); txtNomeMae = new javax.swing.JTextField(); cbUF = new javax.swing.JComboBox(); cbCidade = new javax.swing.JComboBox(); jlHora = new javax.swing.JPanel(); btnAlunos2 = new javax.swing.JButton(); btnSalvar2 = new javax.swing.JButton(); tbnExcluir2 = new javax.swing.JButton(); btnPesquisar2 = new javax.swing.JButton(); btnSair2 = new javax.swing.JButton(); jLabel26 = new javax.swing.JLabel(); jButton2 = new javax.swing.JButton(); JlHora = new javax.swing.JLabel(); jlData = new javax.swing.JLabel(); txtTelefone = new javax.swing.JFormattedTextField(); jPanel7 = new javax.swing.JPanel(); jScrollPane3 = new javax.swing.JScrollPane(); tblExcuir = new javax.swing.JTable(); jPanel4 = new javax.swing.JPanel(); jLabel12 = new javax.swing.JLabel(); txtExcluir = new javax.swing.JTextField(); jLabel10 = new javax.swing.JLabel(); txtNomeAlunoExcluir = new javax.swing.JTextField(); jPanel11 = new javax.swing.JPanel(); btnAlunos1 = new javax.swing.JButton(); btnSalvar1 = new javax.swing.JButton(); tbnExcluir1 = new javax.swing.JButton(); btnPesquisar1 = new javax.swing.JButton(); btnSair1 = new javax.swing.JButton(); jPanel15 = new javax.swing.JPanel(); jPanel16 = new javax.swing.JPanel(); jLabel24 = new javax.swing.JLabel(); txtPesquisaExcluir = new javax.swing.JTextField(); btnEditarAluno1 = new javax.swing.JButton(); jPanel6 = new javax.swing.JPanel(); jScrollPane2 = new javax.swing.JScrollPane(); tbEditar = new javax.swing.JTable(); jLabel13 = new javax.swing.JLabel(); txtIdEditar = new javax.swing.JTextField(); jLabel14 = new javax.swing.JLabel(); txtNomeEditar = new javax.swing.JTextField(); txtEnderecoEditar = new javax.swing.JTextField(); jLabel15 = new javax.swing.JLabel(); jLabel16 = new javax.swing.JLabel(); txtEmailEditar = new javax.swing.JTextField(); jLabel17 = new javax.swing.JLabel(); txtPaiEditar = new javax.swing.JTextField(); txtMaeEditar = new javax.swing.JTextField(); jLabel18 = new javax.swing.JLabel(); cbUfEditar = new javax.swing.JComboBox(); jLabel19 = new javax.swing.JLabel(); jLabel20 = new javax.swing.JLabel(); cbCidadeEditar = new javax.swing.JComboBox(); jLabel21 = new javax.swing.JLabel(); txtTelefoneEditar = new javax.swing.JTextField(); jLabel22 = new javax.swing.JLabel(); txtIdadeEditar = new javax.swing.JTextField(); jPanel13 = new javax.swing.JPanel(); btnAlunos3 = new javax.swing.JButton(); btnSalvar3 = new javax.swing.JButton(); tbnExcluir3 = new javax.swing.JButton(); btnPesquisar3 = new javax.swing.JButton(); btnSair3 = new javax.swing.JButton(); jButton1 = new javax.swing.JButton(); jPanel14 = new javax.swing.JPanel(); jpEditar = new javax.swing.JPanel(); rdNomeEditar = new javax.swing.JRadioButton(); rdIdEditar = new javax.swing.JRadioButton(); jLabel23 = new javax.swing.JLabel(); txtbuscaEditar = new javax.swing.JTextField(); btnEditarAluno = new javax.swing.JButton(); jPanel8 = new javax.swing.JPanel(); jScrollPane1 = new javax.swing.JScrollPane(); tblAlunos = new javax.swing.JTable(); jPanel10 = new javax.swing.JPanel(); jPanel3 = new javax.swing.JPanel(); rdNome = new javax.swing.JRadioButton(); rdID = new javax.swing.JRadioButton(); jLabel11 = new javax.swing.JLabel(); txtVbusca = new javax.swing.JTextField(); btnPesquisaAluno = new javax.swing.JButton(); jPanel1 = new javax.swing.JPanel(); btnAlunos = new javax.swing.JButton(); btnSalvar = new javax.swing.JButton(); tbnExcluir = new javax.swing.JButton(); btnPesquisar = new javax.swing.JButton(); btnSair = new javax.swing.JButton(); jPanel9 = new javax.swing.JPanel(); jPanel12 = new javax.swing.JPanel(); jLabel25 = new javax.swing.JLabel(); jLabel27 = new javax.swing.JLabel(); jLabel30 = new javax.swing.JLabel(); jLabel31 = new javax.swing.JLabel(); jPanel17 = new javax.swing.JPanel(); jLabel28 = new javax.swing.JLabel(); jLabel29 = new javax.swing.JLabel(); jMenuBar1 = new javax.swing.JMenuBar(); jMenuItem1.setText("jMenuItem1"); menu1.setLabel("File"); menuBar1.add(menu1); menu2.setLabel("Edit"); menuBar1.add(menu2); jRadioButtonMenuItem1.setSelected(true); jRadioButtonMenuItem1.setText("jRadioButtonMenuItem1"); jCheckBoxMenuItem1.setSelected(true); jCheckBoxMenuItem1.setText("jCheckBoxMenuItem1"); jMenu1.setText("jMenu1"); javax.swing.GroupLayout jFrame1Layout = new javax.swing.GroupLayout(jFrame1.getContentPane()); jFrame1.getContentPane().setLayout(jFrame1Layout); jFrame1Layout.setHorizontalGroup( jFrame1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGap(0, 400, Short.MAX_VALUE) ); jFrame1Layout.setVerticalGroup( jFrame1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGap(0, 300, Short.MAX_VALUE) ); javax.swing.GroupLayout jFrame2Layout = new javax.swing.GroupLayout(jFrame2.getContentPane()); jFrame2.getContentPane().setLayout(jFrame2Layout); jFrame2Layout.setHorizontalGroup( jFrame2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGap(0, 400, Short.MAX_VALUE) ); jFrame2Layout.setVerticalGroup( jFrame2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGap(0, 300, Short.MAX_VALUE) ); javax.swing.GroupLayout jFrame3Layout = new javax.swing.GroupLayout(jFrame3.getContentPane()); jFrame3.getContentPane().setLayout(jFrame3Layout); jFrame3Layout.setHorizontalGroup( jFrame3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGap(0, 400, Short.MAX_VALUE) ); jFrame3Layout.setVerticalGroup( jFrame3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGap(0, 300, Short.MAX_VALUE) ); javax.swing.GroupLayout jFrame4Layout = new javax.swing.GroupLayout(jFrame4.getContentPane()); jFrame4.getContentPane().setLayout(jFrame4Layout); jFrame4Layout.setHorizontalGroup( jFrame4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGap(0, 400, Short.MAX_VALUE) ); jFrame4Layout.setVerticalGroup( jFrame4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGap(0, 300, Short.MAX_VALUE) ); setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); setTitle("Alunos"); setResizable(false); addWindowListener(new java.awt.event.WindowAdapter() { public void windowOpened(java.awt.event.WindowEvent evt) { formWindowOpened(evt); } }); jTabbedPane2.setPreferredSize(new java.awt.Dimension(960, 634)); jPanel5.addComponentListener(new java.awt.event.ComponentAdapter() { public void componentShown(java.awt.event.ComponentEvent evt) { jPanel5ComponentShown(evt); } }); jLabel1.setText("Nome:"); jLabel2.setText("Idade:"); jLabel3.setText("Endereço:"); jLabel4.setText("Telefone"); jLabel5.setText("Email:"); jLabel6.setText("Cidade:"); jLabel7.setText("Nome do Pai:"); jLabel8.setText("Nome da Mãe:"); jLabel9.setText("UF:"); txtEmail.addFocusListener(new java.awt.event.FocusAdapter() { public void focusLost(java.awt.event.FocusEvent evt) { txtEmailFocusLost(evt); } }); cbUF.setInheritsPopupMenu(true); cbUF.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { cbUFActionPerformed(evt); } }); cbCidade.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { cbCidadeItemStateChanged(evt); } }); btnAlunos2.setText("Inserir"); btnAlunos2.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnAlunos2ActionPerformed(evt); } }); btnSalvar2.setText("salva"); btnSalvar2.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnSalvar2ActionPerformed(evt); } }); tbnExcluir2.setText("excluir"); tbnExcluir2.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { tbnExcluir2ActionPerformed(evt); } }); btnPesquisar2.setText("pesquisar"); btnSair2.setText("sair"); btnSair2.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { btnSair2MouseClicked(evt); } }); jButton2.setText("Limpa Campor"); jButton2.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton2ActionPerformed(evt); } }); javax.swing.GroupLayout jlHoraLayout = new javax.swing.GroupLayout(jlHora); jlHora.setLayout(jlHoraLayout); jlHoraLayout.setHorizontalGroup( jlHoraLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jlHoraLayout.createSequentialGroup() .addGap(702, 702, 702) .addComponent(jLabel26, javax.swing.GroupLayout.PREFERRED_SIZE, 99, javax.swing.GroupLayout.PREFERRED_SIZE) .addContainerGap(20, Short.MAX_VALUE)) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jlHoraLayout.createSequentialGroup() .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(btnAlunos2, javax.swing.GroupLayout.PREFERRED_SIZE, 63, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(btnSalvar2) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(tbnExcluir2) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(btnPesquisar2) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jButton2) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(btnSair2) .addGap(98, 98, 98)) ); jlHoraLayout.linkSize(javax.swing.SwingConstants.HORIZONTAL, new java.awt.Component[] {btnAlunos2, btnPesquisar2, btnSair2, btnSalvar2, jButton2, tbnExcluir2}); jlHoraLayout.setVerticalGroup( jlHoraLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jlHoraLayout.createSequentialGroup() .addContainerGap() .addComponent(jLabel26) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jlHoraLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(btnAlunos2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGroup(jlHoraLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(btnSalvar2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(tbnExcluir2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(btnPesquisar2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(btnSair2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jButton2))) .addContainerGap(22, Short.MAX_VALUE)) ); jlHoraLayout.linkSize(javax.swing.SwingConstants.VERTICAL, new java.awt.Component[] {btnAlunos2, btnPesquisar2, btnSair2, btnSalvar2, jButton2, tbnExcluir2}); try { txtTelefone.setFormatterFactory(new javax.swing.text.DefaultFormatterFactory(new javax.swing.text.MaskFormatter("(##)#####-####"))); } catch (java.text.ParseException ex) { ex.printStackTrace(); } javax.swing.GroupLayout jPanel5Layout = new javax.swing.GroupLayout(jPanel5); jPanel5.setLayout(jPanel5Layout); jPanel5Layout.setHorizontalGroup( jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel5Layout.createSequentialGroup() .addContainerGap() .addComponent(jlHora, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addGroup(jPanel5Layout.createSequentialGroup() .addGap(34, 34, 34) .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(jLabel3) .addComponent(txtEndereco) .addComponent(txtEmail) .addComponent(txtNomePai, javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(jLabel1) .addComponent(txtNome, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 250, javax.swing.GroupLayout.PREFERRED_SIZE)) .addComponent(jLabel5) .addComponent(jLabel7)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false) .addGroup(jPanel5Layout.createSequentialGroup() .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel9) .addComponent(cbUF, javax.swing.GroupLayout.PREFERRED_SIZE, 52, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(cbCidade, javax.swing.GroupLayout.PREFERRED_SIZE, 172, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel6))) .addComponent(txtIdade, javax.swing.GroupLayout.PREFERRED_SIZE, 251, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(txtNomeMae, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, 251, javax.swing.GroupLayout.PREFERRED_SIZE)) .addComponent(jLabel2) .addComponent(jLabel8, javax.swing.GroupLayout.PREFERRED_SIZE, 135, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel4) .addComponent(txtTelefone, javax.swing.GroupLayout.PREFERRED_SIZE, 163, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(68, 68, 68)) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel5Layout.createSequentialGroup() .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jlData, javax.swing.GroupLayout.PREFERRED_SIZE, 80, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(18, 18, 18) .addComponent(JlHora, javax.swing.GroupLayout.PREFERRED_SIZE, 101, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(35, 35, 35)) ); jPanel5Layout.linkSize(javax.swing.SwingConstants.HORIZONTAL, new java.awt.Component[] {txtEmail, txtEndereco, txtNome, txtNomePai}); jPanel5Layout.setVerticalGroup( jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel5Layout.createSequentialGroup() .addGap(69, 69, 69) .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addGroup(jPanel5Layout.createSequentialGroup() .addComponent(jLabel1) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(txtNome, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jLabel3) .addGap(5, 5, 5) .addComponent(txtEndereco, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(jLabel5) .addGap(6, 6, 6) .addComponent(txtEmail, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(jLabel7) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(txtNomePai, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(jPanel5Layout.createSequentialGroup() .addComponent(jLabel2) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(txtIdade, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jLabel4) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(txtTelefone, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel5Layout.createSequentialGroup() .addComponent(jLabel9) .addGap(11, 11, 11) .addComponent(cbUF, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel5Layout.createSequentialGroup() .addComponent(jLabel6) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(cbCidade, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(jLabel8) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(txtNomeMae, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))) .addGap(95, 95, 95) .addComponent(jlHora, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 132, Short.MAX_VALUE) .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(JlHora, javax.swing.GroupLayout.PREFERRED_SIZE, 24, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jlData, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE)) .addContainerGap()) ); jPanel5Layout.linkSize(javax.swing.SwingConstants.VERTICAL, new java.awt.Component[] {cbCidade, cbUF, txtEmail, txtEndereco, txtIdade, txtNome, txtNomeMae, txtNomePai, txtTelefone}); jTabbedPane2.addTab("Adicionar Aluno", jPanel5); jPanel7.addComponentListener(new java.awt.event.ComponentAdapter() { public void componentShown(java.awt.event.ComponentEvent evt) { jPanel7ComponentShown(evt); } }); tblExcuir.setModel(new javax.swing.table.DefaultTableModel( new Object [][] { {null, null, null, null}, {null, null, null, null}, {null, null, null, null}, {null, null, null, null} }, new String [] { "Title 1", "Title 2", "Title 3", "Title 4" } )); tblExcuir.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { tblExcuirMouseClicked(evt); } }); tblExcuir.addComponentListener(new java.awt.event.ComponentAdapter() { public void componentShown(java.awt.event.ComponentEvent evt) { tblExcuirComponentShown(evt); } }); jScrollPane3.setViewportView(tblExcuir); jPanel4.setBorder(javax.swing.BorderFactory.createTitledBorder("Excluir Aluno")); jLabel12.setText("Código do Aluno"); jLabel10.setText("Nome do Aluno"); javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4); jPanel4.setLayout(jPanel4Layout); jPanel4Layout.setHorizontalGroup( jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel4Layout.createSequentialGroup() .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel12) .addComponent(txtExcluir, javax.swing.GroupLayout.PREFERRED_SIZE, 59, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(51, 51, 51) .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel10) .addComponent(txtNomeAlunoExcluir, javax.swing.GroupLayout.PREFERRED_SIZE, 281, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(0, 0, Short.MAX_VALUE)) ); jPanel4Layout.setVerticalGroup( jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel4Layout.createSequentialGroup() .addGap(25, 25, 25) .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel12) .addComponent(jLabel10)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(txtExcluir, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(txtNomeAlunoExcluir, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addContainerGap(48, Short.MAX_VALUE)) ); btnAlunos1.setText("Inserir"); btnAlunos1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnAlunos1ActionPerformed(evt); } }); btnSalvar1.setText("salva"); btnSalvar1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnSalvar1ActionPerformed(evt); } }); tbnExcluir1.setText("excluir"); tbnExcluir1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { tbnExcluir1ActionPerformed(evt); } }); btnPesquisar1.setText("pesquisar"); btnSair1.setText("sair"); btnSair1.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { btnSair1MouseClicked(evt); } }); javax.swing.GroupLayout jPanel11Layout = new javax.swing.GroupLayout(jPanel11); jPanel11.setLayout(jPanel11Layout); jPanel11Layout.setHorizontalGroup( jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel11Layout.createSequentialGroup() .addGap(194, 194, 194) .addComponent(btnAlunos1, javax.swing.GroupLayout.PREFERRED_SIZE, 63, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(btnSalvar1) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(tbnExcluir1) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(btnPesquisar1) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(btnSair1) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) ); jPanel11Layout.linkSize(javax.swing.SwingConstants.HORIZONTAL, new java.awt.Component[] {btnAlunos1, btnPesquisar1, btnSair1, btnSalvar1, tbnExcluir1}); jPanel11Layout.setVerticalGroup( jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel11Layout.createSequentialGroup() .addGap(23, 23, 23) .addGroup(jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(btnAlunos1, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE) .addGroup(jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(btnSalvar1) .addComponent(tbnExcluir1) .addComponent(btnPesquisar1) .addComponent(btnSair1))) .addContainerGap(24, Short.MAX_VALUE)) ); jPanel11Layout.linkSize(javax.swing.SwingConstants.VERTICAL, new java.awt.Component[] {btnAlunos1, btnPesquisar1, btnSair1, btnSalvar1, tbnExcluir1}); jPanel16.setBorder(javax.swing.BorderFactory.createTitledBorder("Pesquisar por Nome")); jLabel24.setText("Digite o Nome:"); btnEditarAluno1.setText("Pesquisar"); btnEditarAluno1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnEditarAluno1ActionPerformed(evt); } }); javax.swing.GroupLayout jPanel16Layout = new javax.swing.GroupLayout(jPanel16); jPanel16.setLayout(jPanel16Layout); jPanel16Layout.setHorizontalGroup( jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel16Layout.createSequentialGroup() .addGroup(jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel16Layout.createSequentialGroup() .addComponent(txtPesquisaExcluir, javax.swing.GroupLayout.PREFERRED_SIZE, 325, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(btnEditarAluno1)) .addComponent(jLabel24)) .addGap(0, 346, Short.MAX_VALUE)) ); jPanel16Layout.setVerticalGroup( jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel16Layout.createSequentialGroup() .addGap(25, 25, 25) .addComponent(jLabel24) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(txtPesquisaExcluir, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(btnEditarAluno1)) .addContainerGap(32, Short.MAX_VALUE)) ); javax.swing.GroupLayout jPanel15Layout = new javax.swing.GroupLayout(jPanel15); jPanel15.setLayout(jPanel15Layout); jPanel15Layout.setHorizontalGroup( jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel15Layout.createSequentialGroup() .addComponent(jPanel16, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(0, 0, Short.MAX_VALUE)) ); jPanel15Layout.setVerticalGroup( jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel15Layout.createSequentialGroup() .addGap(0, 0, Short.MAX_VALUE) .addComponent(jPanel16, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) ); javax.swing.GroupLayout jPanel7Layout = new javax.swing.GroupLayout(jPanel7); jPanel7.setLayout(jPanel7Layout); jPanel7Layout.setHorizontalGroup( jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel7Layout.createSequentialGroup() .addContainerGap() .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jScrollPane3) .addComponent(jPanel4, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jPanel11, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGroup(jPanel7Layout.createSequentialGroup() .addComponent(jPanel15, javax.swing.GroupLayout.PREFERRED_SIZE, 590, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(0, 221, Short.MAX_VALUE))) .addContainerGap()) ); jPanel7Layout.setVerticalGroup( jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel7Layout.createSequentialGroup() .addContainerGap(18, Short.MAX_VALUE) .addComponent(jPanel15, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jPanel4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(jScrollPane3, javax.swing.GroupLayout.PREFERRED_SIZE, 150, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(27, 27, 27) .addComponent(jPanel11, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(65, 65, 65)) ); jTabbedPane2.addTab("Excluir Aluno", jPanel7); jPanel6.addComponentListener(new java.awt.event.ComponentAdapter() { public void componentHidden(java.awt.event.ComponentEvent evt) { jPanel6ComponentHidden(evt); } public void componentShown(java.awt.event.ComponentEvent evt) { jPanel6ComponentShown(evt); } }); tbEditar.setModel(new javax.swing.table.DefaultTableModel( new Object [][] { {null, null, null, null}, {null, null, null, null}, {null, null, null, null}, {null, null, null, null} }, new String [] { "Title 1", "Title 2", "Title 3", "Title 4" } )); tbEditar.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { tbEditarMouseClicked(evt); } }); tbEditar.addComponentListener(new java.awt.event.ComponentAdapter() { public void componentShown(java.awt.event.ComponentEvent evt) { tbEditarComponentShown(evt); } }); jScrollPane2.setViewportView(tbEditar); jLabel13.setText("Código"); txtIdEditar.setEditable(false); jLabel14.setText("Nome:"); jLabel15.setText("Endereço:"); jLabel16.setText("Email:"); jLabel17.setText("Nome do Pai:"); jLabel18.setText("Nome da Mãe:"); cbUfEditar.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { cbUfEditarActionPerformed(evt); } }); jLabel19.setText("UF:"); jLabel20.setText("Cidade:"); cbCidadeEditar.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { cbCidadeEditarItemStateChanged(evt); } }); jLabel21.setText("Telefone"); jLabel22.setText("Idade:"); btnAlunos3.setText("Inserir"); btnAlunos3.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnAlunos3ActionPerformed(evt); } }); btnSalvar3.setText("salva"); btnSalvar3.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnSalvar3ActionPerformed(evt); } }); tbnExcluir3.setText("excluir"); tbnExcluir3.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { tbnExcluir3ActionPerformed(evt); } }); btnPesquisar3.setText("pesquisar"); btnSair3.setText("sair"); btnSair3.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { btnSair3MouseClicked(evt); } }); jButton1.setText("Limpa Campos"); jButton1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton1ActionPerformed(evt); } }); javax.swing.GroupLayout jPanel13Layout = new javax.swing.GroupLayout(jPanel13); jPanel13.setLayout(jPanel13Layout); jPanel13Layout.setHorizontalGroup( jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel13Layout.createSequentialGroup() .addGap(141, 141, 141) .addComponent(btnAlunos3, javax.swing.GroupLayout.PREFERRED_SIZE, 63, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(btnSalvar3) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(tbnExcluir3) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(btnPesquisar3) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jButton1) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(btnSair3) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) ); jPanel13Layout.linkSize(javax.swing.SwingConstants.HORIZONTAL, new java.awt.Component[] {btnAlunos3, btnPesquisar3, btnSair3, btnSalvar3, tbnExcluir3}); jPanel13Layout.setVerticalGroup( jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel13Layout.createSequentialGroup() .addGap(19, 19, 19) .addGroup(jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(btnAlunos3, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE) .addGroup(jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(btnSalvar3) .addComponent(tbnExcluir3) .addComponent(btnPesquisar3) .addComponent(btnSair3) .addComponent(jButton1))) .addContainerGap(46, Short.MAX_VALUE)) ); jPanel13Layout.linkSize(javax.swing.SwingConstants.VERTICAL, new java.awt.Component[] {btnAlunos3, btnPesquisar3, btnSair3, btnSalvar3, tbnExcluir3}); jPanel14.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Pesquisar aluno", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, null, new java.awt.Color(0, 0, 0))); jpEditar.setBorder(javax.swing.BorderFactory.createTitledBorder("Tipo de Pesquisa")); rdNomeEditar.setText("Por Nome"); rdNomeEditar.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { rdNomeEditarActionPerformed(evt); } }); rdIdEditar.setText("Por Código"); javax.swing.GroupLayout jpEditarLayout = new javax.swing.GroupLayout(jpEditar); jpEditar.setLayout(jpEditarLayout); jpEditarLayout.setHorizontalGroup( jpEditarLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jpEditarLayout.createSequentialGroup() .addContainerGap() .addGroup(jpEditarLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(rdNomeEditar) .addComponent(rdIdEditar)) .addContainerGap(17, Short.MAX_VALUE)) ); jpEditarLayout.setVerticalGroup( jpEditarLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jpEditarLayout.createSequentialGroup() .addContainerGap() .addComponent(rdNomeEditar) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(rdIdEditar) .addContainerGap()) ); jLabel23.setText("Digite o Valor Para Pesquisa"); btnEditarAluno.setText("Pesquisar"); btnEditarAluno.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnEditarAlunoActionPerformed(evt); } }); javax.swing.GroupLayout jPanel14Layout = new javax.swing.GroupLayout(jPanel14); jPanel14.setLayout(jPanel14Layout); jPanel14Layout.setHorizontalGroup( jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel14Layout.createSequentialGroup() .addGroup(jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel14Layout.createSequentialGroup() .addComponent(txtbuscaEditar, javax.swing.GroupLayout.PREFERRED_SIZE, 325, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(btnEditarAluno)) .addComponent(jLabel23)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jpEditar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(66, 66, 66)) ); jPanel14Layout.setVerticalGroup( jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel14Layout.createSequentialGroup() .addGap(22, 22, 22) .addComponent(jLabel23) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(txtbuscaEditar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(btnEditarAluno)) .addContainerGap(16, Short.MAX_VALUE)) .addComponent(jpEditar, javax.swing.GroupLayout.PREFERRED_SIZE, 81, Short.MAX_VALUE) ); javax.swing.GroupLayout jPanel6Layout = new javax.swing.GroupLayout(jPanel6); jPanel6.setLayout(jPanel6Layout); jPanel6Layout.setHorizontalGroup( jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel6Layout.createSequentialGroup() .addContainerGap() .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel6Layout.createSequentialGroup() .addGap(26, 26, 26) .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel13, javax.swing.GroupLayout.PREFERRED_SIZE, 33, javax.swing.GroupLayout.PREFERRED_SIZE) .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(jLabel15) .addComponent(txtEnderecoEditar) .addComponent(txtEmailEditar) .addComponent(txtPaiEditar, javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(txtIdEditar, javax.swing.GroupLayout.PREFERRED_SIZE, 49, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel14) .addComponent(txtNomeEditar, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 250, javax.swing.GroupLayout.PREFERRED_SIZE)) .addComponent(jLabel16) .addComponent(jLabel17)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 259, Short.MAX_VALUE) .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false) .addGroup(jPanel6Layout.createSequentialGroup() .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel19) .addComponent(cbUfEditar, javax.swing.GroupLayout.PREFERRED_SIZE, 60, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(cbCidadeEditar, javax.swing.GroupLayout.PREFERRED_SIZE, 148, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel20))) .addComponent(txtIdadeEditar, javax.swing.GroupLayout.PREFERRED_SIZE, 251, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(txtMaeEditar, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, 251, javax.swing.GroupLayout.PREFERRED_SIZE)) .addComponent(jLabel22) .addComponent(jLabel21) .addComponent(jLabel18, javax.swing.GroupLayout.PREFERRED_SIZE, 135, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(txtTelefoneEditar, javax.swing.GroupLayout.PREFERRED_SIZE, 168, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(35, 35, 35)) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel6Layout.createSequentialGroup() .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(jPanel13, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jScrollPane2)) .addContainerGap()))) .addGroup(jPanel6Layout.createSequentialGroup() .addComponent(jPanel14, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addContainerGap()) ); jPanel6Layout.setVerticalGroup( jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel6Layout.createSequentialGroup() .addComponent(jPanel14, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jLabel13) .addGap(2, 2, 2) .addComponent(txtIdEditar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(18, 18, 18) .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addGroup(jPanel6Layout.createSequentialGroup() .addComponent(jLabel14) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(txtNomeEditar, javax.swing.GroupLayout.PREFERRED_SIZE, 28, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(0, 0, 0) .addComponent(jLabel15) .addGap(5, 5, 5) .addComponent(txtEnderecoEditar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(jLabel16) .addGap(6, 6, 6) .addComponent(txtEmailEditar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(jLabel17) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(txtPaiEditar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(jPanel6Layout.createSequentialGroup() .addComponent(jLabel22) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(txtIdadeEditar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addGroup(jPanel6Layout.createSequentialGroup() .addComponent(txtTelefoneEditar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jLabel20) .addGap(11, 11, 11) .addComponent(cbCidadeEditar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(jPanel6Layout.createSequentialGroup() .addComponent(jLabel21) .addGap(31, 31, 31) .addComponent(jLabel19) .addGap(11, 11, 11) .addComponent(cbUfEditar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(jLabel18) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(txtMaeEditar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 113, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jPanel13, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(35, 35, 35)) ); jTabbedPane2.addTab("Editar Aluno", jPanel6); jPanel8.addComponentListener(new java.awt.event.ComponentAdapter() { public void componentShown(java.awt.event.ComponentEvent evt) { jPanel8ComponentShown(evt); } public void componentHidden(java.awt.event.ComponentEvent evt) { jPanel8ComponentHidden(evt); } }); tblAlunos.setModel(new javax.swing.table.DefaultTableModel( new Object [][] { {null, null, null, null}, {null, null, null, null}, {null, null, null, null}, {null, null, null, null} }, new String [] { "Title 1", "Title 2", "Title 3", "Title 4" } )); tblAlunos.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { tblAlunosMouseClicked(evt); } }); tblAlunos.addComponentListener(new java.awt.event.ComponentAdapter() { public void componentShown(java.awt.event.ComponentEvent evt) { tblAlunosComponentShown(evt); } }); jScrollPane1.setViewportView(tblAlunos); jPanel10.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Pesquisar aluno", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, null, new java.awt.Color(0, 0, 0))); jPanel3.setBorder(javax.swing.BorderFactory.createTitledBorder("Tipo de Pesquisa")); rdNome.setText("Por Nome"); rdNome.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { rdNomeActionPerformed(evt); } }); rdID.setText("Por Código"); javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3); jPanel3.setLayout(jPanel3Layout); jPanel3Layout.setHorizontalGroup( jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel3Layout.createSequentialGroup() .addContainerGap() .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(rdNome) .addComponent(rdID)) .addContainerGap(17, Short.MAX_VALUE)) ); jPanel3Layout.setVerticalGroup( jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel3Layout.createSequentialGroup() .addContainerGap() .addComponent(rdNome) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(rdID) .addContainerGap()) ); jLabel11.setText("Digite o Valor Para Pesquisa"); btnPesquisaAluno.setText("Pesquisar"); btnPesquisaAluno.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnPesquisaAlunoActionPerformed(evt); } }); javax.swing.GroupLayout jPanel10Layout = new javax.swing.GroupLayout(jPanel10); jPanel10.setLayout(jPanel10Layout); jPanel10Layout.setHorizontalGroup( jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel10Layout.createSequentialGroup() .addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel10Layout.createSequentialGroup() .addComponent(txtVbusca, javax.swing.GroupLayout.PREFERRED_SIZE, 325, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(btnPesquisaAluno)) .addComponent(jLabel11)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 138, Short.MAX_VALUE) .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(139, 139, 139)) ); jPanel10Layout.setVerticalGroup( jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel10Layout.createSequentialGroup() .addContainerGap() .addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel10Layout.createSequentialGroup() .addGap(22, 22, 22) .addComponent(jLabel11) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(txtVbusca, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(btnPesquisaAluno))) .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, 81, javax.swing.GroupLayout.PREFERRED_SIZE)) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) ); jPanel10Layout.linkSize(javax.swing.SwingConstants.VERTICAL, new java.awt.Component[] {btnPesquisaAluno, txtVbusca}); btnAlunos.setText("Inserir"); btnAlunos.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnAlunosActionPerformed(evt); } }); btnSalvar.setText("salva"); btnSalvar.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnSalvarActionPerformed(evt); } }); tbnExcluir.setText("excluir"); tbnExcluir.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { tbnExcluirActionPerformed(evt); } }); btnPesquisar.setText("pesquisar"); btnPesquisar.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { btnPesquisarMouseClicked(evt); } }); btnPesquisar.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnPesquisarActionPerformed(evt); } }); btnSair.setText("sair"); btnSair.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { btnSairMouseClicked(evt); } }); javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1); jPanel1.setLayout(jPanel1Layout); jPanel1Layout.setHorizontalGroup( jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup() .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(btnAlunos, javax.swing.GroupLayout.PREFERRED_SIZE, 71, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(btnSalvar) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(tbnExcluir) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(btnPesquisar) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(btnSair) .addGap(185, 185, 185)) ); jPanel1Layout.linkSize(javax.swing.SwingConstants.HORIZONTAL, new java.awt.Component[] {btnAlunos, btnPesquisar, btnSair, btnSalvar, tbnExcluir}); jPanel1Layout.setVerticalGroup( jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup() .addContainerGap(29, Short.MAX_VALUE) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(btnAlunos, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE) .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(btnSalvar) .addComponent(tbnExcluir) .addComponent(btnPesquisar) .addComponent(btnSair))) .addGap(22, 22, 22)) ); jPanel1Layout.linkSize(javax.swing.SwingConstants.VERTICAL, new java.awt.Component[] {btnAlunos, btnPesquisar, btnSair, btnSalvar, tbnExcluir}); javax.swing.GroupLayout jPanel8Layout = new javax.swing.GroupLayout(jPanel8); jPanel8.setLayout(jPanel8Layout); jPanel8Layout.setHorizontalGroup( jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel8Layout.createSequentialGroup() .addContainerGap() .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jPanel10, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jScrollPane1) .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addContainerGap()) ); jPanel8Layout.setVerticalGroup( jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel8Layout.createSequentialGroup() .addContainerGap() .addComponent(jPanel10, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(119, 119, 119) .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 214, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addContainerGap(56, Short.MAX_VALUE)) ); jTabbedPane2.addTab("Pesquisar Aluno", jPanel8); jPanel12.setBorder(javax.swing.BorderFactory.createTitledBorder("Sistema Desenvolvido por:")); jLabel25.setText("Kleudy Silva"); jLabel27.setText("Graduado"); jLabel30.setText("Sistema de Informação"); jLabel31.setText("Uniban"); javax.swing.GroupLayout jPanel12Layout = new javax.swing.GroupLayout(jPanel12); jPanel12.setLayout(jPanel12Layout); jPanel12Layout.setHorizontalGroup( jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel12Layout.createSequentialGroup() .addContainerGap() .addGroup(jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel25) .addComponent(jLabel27) .addComponent(jLabel30) .addComponent(jLabel31)) .addGap(0, 0, Short.MAX_VALUE)) ); jPanel12Layout.setVerticalGroup( jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel12Layout.createSequentialGroup() .addContainerGap() .addComponent(jLabel25) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(jLabel27) .addGap(18, 18, 18) .addComponent(jLabel30) .addGap(28, 28, 28) .addComponent(jLabel31) .addContainerGap(352, Short.MAX_VALUE)) ); jLabel29.setIcon(new javax.swing.ImageIcon(getClass().getResource("/img/1536558_880989708579033_7593529292838740735_n.jpg"))); // NOI18N javax.swing.GroupLayout jPanel17Layout = new javax.swing.GroupLayout(jPanel17); jPanel17.setLayout(jPanel17Layout); jPanel17Layout.setHorizontalGroup( jPanel17Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel17Layout.createSequentialGroup() .addComponent(jLabel29, javax.swing.GroupLayout.PREFERRED_SIZE, 596, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jLabel28, javax.swing.GroupLayout.PREFERRED_SIZE, 540, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(0, 0, Short.MAX_VALUE)) ); jPanel17Layout.setVerticalGroup( jPanel17Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel28, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabel29, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE) ); javax.swing.GroupLayout jPanel9Layout = new javax.swing.GroupLayout(jPanel9); jPanel9.setLayout(jPanel9Layout); jPanel9Layout.setHorizontalGroup( jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel9Layout.createSequentialGroup() .addContainerGap() .addComponent(jPanel12, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(jPanel17, javax.swing.GroupLayout.PREFERRED_SIZE, 597, javax.swing.GroupLayout.PREFERRED_SIZE) .addContainerGap(82, Short.MAX_VALUE)) ); jPanel9Layout.setVerticalGroup( jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel9Layout.createSequentialGroup() .addContainerGap() .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(jPanel12, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jPanel17, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addContainerGap(96, Short.MAX_VALUE)) ); jTabbedPane2.addTab("Sobre", jPanel9); javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2); jPanel2.setLayout(jPanel2Layout); jPanel2Layout.setHorizontalGroup( jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel2Layout.createSequentialGroup() .addContainerGap() .addComponent(jTabbedPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 836, Short.MAX_VALUE) .addContainerGap()) ); jPanel2Layout.setVerticalGroup( jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel2Layout.createSequentialGroup() .addComponent(jTabbedPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 634, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(0, 27, Short.MAX_VALUE)) ); setJMenuBar(jMenuBar1); javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); getContentPane().setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) ); layout.setVerticalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup() .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(31, 31, 31)) ); 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.73197734", "0.72908777", "0.72908777", "0.72908777", "0.72870827", "0.7248368", "0.7213462", "0.7208004", "0.7195763", "0.7189973", "0.7184436", "0.7159332", "0.71478266", "0.709268", "0.7080727", "0.7057287", "0.6986775", "0.6977119", "0.69554067", "0.69548035", "0.694574...
0.0
-1
recebe dados dos estados do banco de dados. prepara a sql
public void carrega_estado() throws SQLException{ String sql = "SELECT * FROM tb_estados"; PreparedStatement preparador = Conexao.conectar().prepareStatement(sql); ResultSet rs = preparador.executeQuery(); //passando valores do banco para o objeto result; try{ while(rs.next()){ String list = rs.getString("uf"); //resgatando estado //popula combo_estadof com as informações colhidas cbUF.addItem(list); } } catch (Exception e){ JOptionPane.showMessageDialog(null, "Impossivel carregar Estados!", "ERROR - ", JOptionPane.ERROR_MESSAGE); } Conexao.desConectar(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Tablero consultarTablero();", "void LlenarModelo(){\n datos.addColumn(\"ID\");\n datos.addColumn(\"Descripcion\");\n datos.addColumn(\"Cantidad\");\n String []ingresar=new String[4];\n try {\n Connection con = Conexion.getConection();\n Statement estado = ...
[ "0.6641994", "0.63778603", "0.63439304", "0.62963235", "0.62673277", "0.62035954", "0.61967343", "0.6161779", "0.61455274", "0.61421907", "0.61407274", "0.613194", "0.61183405", "0.6088302", "0.6071661", "0.606708", "0.6049811", "0.6020285", "0.60082483", "0.5993581", "0.5992...
0.0
-1
recebe dados dos estados do banco de dados. prepara a sql
public void carregaEstadoSelecionado(String nome) throws SQLException{ String sql = "SELECT * FROM tb_estados"; PreparedStatement preparador = Conexao.conectar().prepareStatement(sql); ResultSet rs = preparador.executeQuery(); //passando valores do banco para o objeto result; try{ while(rs.next()){ String list = rs.getString("uf"); //resgatando estado //popula combo_estadof com as informações colhidas cbUfEditar.addItem(list); } } catch (Exception e){ JOptionPane.showMessageDialog(null, "Impossivel carregar Estados!", "ERROR - ", JOptionPane.ERROR_MESSAGE); } cbUfEditar.setSelectedItem(nome); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Tablero consultarTablero();", "void LlenarModelo(){\n datos.addColumn(\"ID\");\n datos.addColumn(\"Descripcion\");\n datos.addColumn(\"Cantidad\");\n String []ingresar=new String[4];\n try {\n Connection con = Conexion.getConection();\n Statement estado = ...
[ "0.6642115", "0.6377298", "0.63439196", "0.62973046", "0.6266569", "0.6201932", "0.6196289", "0.61600596", "0.6144276", "0.61420494", "0.61412054", "0.6131594", "0.6118616", "0.6089849", "0.60710543", "0.60666", "0.6049882", "0.6019946", "0.60086364", "0.59929746", "0.5990605...
0.0
-1
recebe dados dos estados do banco de dados. prepara a sql
public void carregaCidadeSelecionada(String nome) throws SQLException{ String sql = "SELECT nome FROM tb_cidades where uf='"+cbUfEditar.getSelectedItem()+"'"; PreparedStatement preparador = Conexao.conectar().prepareStatement(sql); ResultSet rs = preparador.executeQuery(); //passando valores do banco para o objeto result; try{ while(rs.next()){ String list = rs.getString("nome"); //resgatando estado //popula combo_estadof com as informações colhidas cbCidadeEditar.addItem(list); } } catch (Exception e){ JOptionPane.showMessageDialog(null, "Impossivel carregar Estados!", "ERROR - ", JOptionPane.ERROR_MESSAGE); } cbCidadeEditar.setSelectedItem(nome); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Tablero consultarTablero();", "void LlenarModelo(){\n datos.addColumn(\"ID\");\n datos.addColumn(\"Descripcion\");\n datos.addColumn(\"Cantidad\");\n String []ingresar=new String[4];\n try {\n Connection con = Conexion.getConection();\n Statement estado = ...
[ "0.66414386", "0.6376517", "0.634287", "0.62972134", "0.6267276", "0.6203511", "0.6195479", "0.6161721", "0.61452174", "0.6141247", "0.6141059", "0.6131388", "0.6116803", "0.6089988", "0.60716796", "0.6066551", "0.60509646", "0.6020287", "0.60089916", "0.59929323", "0.5991551...
0.0
-1
recebe dados dos estados do banco de dados. prepara a sql
public void carrega_cidade() throws SQLException{ String sql = "SELECT nome FROM tb_cidades where uf='"+cbUF.getSelectedItem()+"'"; PreparedStatement preparador = Conexao.conectar().prepareStatement(sql); ResultSet rs = preparador.executeQuery(); cbCidade.removeAllItems(); //passando valores do banco para o objeto result; try{ while(rs.next()){ String list = rs.getString("nome"); //resgatando estado //popula combo_estadof com as informações colhidas cbCidade.addItem(list); } } catch (Exception e){ JOptionPane.showMessageDialog(null, "Impossivel carregar Estados!", "ERROR - ", JOptionPane.ERROR_MESSAGE); } Conexao.desConectar(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Tablero consultarTablero();", "void LlenarModelo(){\n datos.addColumn(\"ID\");\n datos.addColumn(\"Descripcion\");\n datos.addColumn(\"Cantidad\");\n String []ingresar=new String[4];\n try {\n Connection con = Conexion.getConection();\n Statement estado = ...
[ "0.66414386", "0.6376517", "0.634287", "0.62972134", "0.6267276", "0.6203511", "0.6195479", "0.6161721", "0.61452174", "0.6141247", "0.6141059", "0.6131388", "0.6116803", "0.6089988", "0.60716796", "0.6066551", "0.60509646", "0.6020287", "0.60089916", "0.59929323", "0.5991551...
0.0
-1
recebe dados dos estados do banco de dados. prepara a sql
public void carregaCidadeModificada() throws SQLException{ String sql = "SELECT nome FROM tb_cidades where uf='"+cbUfEditar.getSelectedItem()+"'"; PreparedStatement preparador = Conexao.conectar().prepareStatement(sql); ResultSet rs = preparador.executeQuery(); cbCidadeEditar.removeAllItems(); //passando valores do banco para o objeto result; try{ while(rs.next()){ String list = rs.getString("nome"); //resgatando estado //popula combo_estadof com as informações colhidas cbCidadeEditar.addItem(list); } } catch (Exception e){ JOptionPane.showMessageDialog(null, "Impossivel carregar Estados!", "ERROR - ", JOptionPane.ERROR_MESSAGE); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Tablero consultarTablero();", "void LlenarModelo(){\n datos.addColumn(\"ID\");\n datos.addColumn(\"Descripcion\");\n datos.addColumn(\"Cantidad\");\n String []ingresar=new String[4];\n try {\n Connection con = Conexion.getConection();\n Statement estado = ...
[ "0.6641994", "0.63778603", "0.63439304", "0.62963235", "0.62673277", "0.62035954", "0.61967343", "0.6161779", "0.61455274", "0.61421907", "0.61407274", "0.613194", "0.61183405", "0.6088302", "0.6071661", "0.606708", "0.6049811", "0.6020285", "0.60082483", "0.5993581", "0.5992...
0.0
-1
End of variables declaration//GENEND:variables
private boolean verificaEmailJaCadastrado(String email) throws SQLException { String sql = "SELECT * from crud_alunos where email=?"; PreparedStatement preparador = Conexao.conectar().prepareStatement(sql); preparador.setString(1, email); ResultSet rs = preparador.executeQuery(); if(rs.next()){ JOptionPane.showMessageDialog(null, "Email já Cadastrado!"); return true; } else { return false; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void lavar() {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}", "public void mo38117a() {\n }", "@Override\r\n\tpublic void initVariables() {\n\t\t\r\n\t}", "private void assignment() {\n\n\t\t\t}", "private void kk12() {\n\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\n pu...
[ "0.6359434", "0.6280371", "0.61868024", "0.6094568", "0.60925734", "0.6071678", "0.6052686", "0.60522056", "0.6003249", "0.59887564", "0.59705925", "0.59680873", "0.5967989", "0.5965816", "0.5962006", "0.5942372", "0.5909877", "0.5896588", "0.5891321", "0.5882983", "0.5881482...
0.0
-1
//////////////////////////////////////////////////////////////////////////////////////////////////////////// This manages the strings ////////////////////////////////////////////////////////////////////////////////////////////////////////////
public void setName(String artistName) { this.artistName = artistName; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Strings()\n\t{\n\t}", "private Strings()\n\t{\n\t}", "public static void updateStrings() {\n String pathName;\n switch (Parameters.getLanguage()) {\n case ENGLISH:\n default:\n pathName = englishStringPath;\n break;\n case SPA...
[ "0.67189604", "0.67189604", "0.6573106", "0.6376077", "0.6350805", "0.6341183", "0.6270052", "0.62477887", "0.62453574", "0.6120153", "0.6082534", "0.6025222", "0.60196835", "0.59700686", "0.5954514", "0.5904029", "0.5904029", "0.58455676", "0.5826185", "0.57788825", "0.57749...
0.0
-1
//////////////////////////////////////////////////////////////////////////////////////////////////////////// This manages the image ////////////////////////////////////////////////////////////////////////////////////////////////////////////
public void setArtistImage(Bitmap artistImage) { this.artistImage = artistImage; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void renderInputImageManager()\n {\n background(background);\n if(resized != null)\n {\n imageMode(CENTER);\n image(resized,(width-150)/2+140,height/2);\n imageMode(CORNERS);\n }\n }", "public void processAddImageOverlay() {\n PropertiesManager props = PropertiesManager...
[ "0.70826167", "0.68525773", "0.682154", "0.68015385", "0.679737", "0.67890215", "0.676057", "0.66786706", "0.6674635", "0.6641123", "0.6600325", "0.6596272", "0.6587135", "0.6577808", "0.6577607", "0.65639555", "0.655918", "0.6551521", "0.6536414", "0.64975053", "0.6486596", ...
0.0
-1
//////////////////////////////////////////////////////////////////////////////////////////////////////////// This manages all of the lists ////////////////////////////////////////////////////////////////////////////////////////////////////////////
public void setArtistAlbums(List<Album> artistAlbums) { this.artistAlbums = artistAlbums; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void loadLists() {\n }", "public void loadAllLists(){\n }", "private void loadLists() {\n loadSavedCourses();\n loadSavedSchedules();\n }", "public void refreshLists() {\n refreshCitizenList();\n refreshPlayerList();\n }", "private void loadLists() {\n ...
[ "0.7452069", "0.73964185", "0.7171937", "0.70549685", "0.6950161", "0.66597956", "0.66391563", "0.65322596", "0.64728576", "0.64640254", "0.6426397", "0.64169896", "0.6405371", "0.63977605", "0.6367409", "0.6359676", "0.634297", "0.6329413", "0.6324273", "0.6307251", "0.62458...
0.0
-1
TODO: Warning this method won't work in the case the id fields are not set
@Override public boolean equals(Object object) { if (!(object instanceof FoundationTxn)) { return false; } FoundationTxn other = (FoundationTxn)object; if (this.getId() != other.getId() && (this.getId() == null || !this.getId().equals(other.getId()))) return false; return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setId(Integer id) { this.id = id; }", "private Integer getId() { return this.id; }", "public void setId(int id){ this.id = id; }", "public void setId(Long id) {this.id = id;}", "public void setId(Long id) {this.id = id;}", "public void setID(String idIn) {this.id = idIn;}", "public void se...
[ "0.6892953", "0.68367153", "0.67017436", "0.66378665", "0.66378665", "0.658794", "0.65751237", "0.65751237", "0.6572061", "0.6572061", "0.6572061", "0.6572061", "0.6572061", "0.6572061", "0.65581834", "0.65581834", "0.65417314", "0.65221244", "0.6513472", "0.6485106", "0.6473...
0.0
-1
TODO: send email manager
protected void notify(Employee e) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "SendEmail() {\t\n\t}", "private void sendEmailToSubscriberForHealthTips() {\n\n\n\n }", "@Override\n public void sendEmail() {\n return;\n }", "@Override\r\n\tpublic void sendEmails() {\n\t\tSystem.out.println(\"All e-mails sent from e-mail service!\");\r\n\t}", "@Override\n\tvoid email() {\n\t\tSy...
[ "0.76466936", "0.7562101", "0.7411777", "0.71934015", "0.70905185", "0.7084658", "0.69783354", "0.6949244", "0.69016236", "0.68946874", "0.68567157", "0.6826835", "0.67769796", "0.67700547", "0.6755818", "0.6745769", "0.6744518", "0.67387706", "0.67357945", "0.67293596", "0.6...
0.0
-1
TODO Autogenerated method stub
@Override public void display() { Scanner sc = new Scanner(System.in); welcomeMessage(); loggy.info("User sees the welcome menu"); boolean loggingIn = true; User user = null; while(loggingIn) { user = loginMenu(sc); if(user != null) { loggingIn = false; loggy.info("User logged in!"); }else { loggy.warn("User failed to login"); } } System.out.println("Welcome user! Here are your tasks!"); boolean running = true; while(running) { System.out.println("Here is the todo menu!"); System.out.println("1) See all todos"); System.out.println("2) Add a todo"); System.out.println("3) Delete a todo"); System.out.println("4) Set a todo to complete"); System.out.println("0) Exit the application "); String input = sc.nextLine(); switch(input) { case "1": seeAllTodos(user); break; case "2": addTodoMenu(user, sc); break; case "3": deleteTodoMenu(user); break; case "4": completeTodoMenu(user); break; case "0": running = false; System.out.println("Thanks for using my service!"); break; default: System.out.println("Invalid input, try again!"); } } }
{ "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
private void completeTodoMenu(User u) { }
{ "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
private void deleteTodoMenu(User u) { }
{ "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
private void addTodoMenu(User u,Scanner sc) { System.out.println("Title:"); String title = sc.nextLine(); System.out.println("Description: "); String description = sc.nextLine(); Todo todo = new Todo(); todo.setTitle(title); todo.setDescription(description); todo.setComplete(false); boolean success = todoService.insertTodo(todo); User u = auth.getUser(u.getUsername()); }
{ "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
lstSubMenu=new ArrayList(); MenuModel obj=new MenuModel(); obj.setTitle("new menu"); obj.setChildren(new ArrayList()); lstSubMenu.add(obj); Messagebox.show(String.valueOf(item.getMenuid()));
@Command @NotifyChange({"lstSubMenu","lstLastMenu","lstMainMenu"}) public void fillSubMenu(@BindingParam("item") MenuModel item) { for (MenuModel obj : lstMainMenu) { obj.setSclassName("defaultmenuitem"); } item.setSclassName("menuitem"); lstSubMenu=mData.getSubMenuList(item.getMenuid(),1,companyroleid); lstLastMenu=new ArrayList<MenuModel>(); //Messagebox.show(item.getTitle()); //BindUtils.postNotifyChange(null, null, this, "*"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void createItemListPopupMenu() {\n\n\t\tremoveAll();\n\t\tadd(addMenuItem);\n\t\tadd(editMenuItem);\n\t\tadd(deleteMenuItem);\n\t\tadd(moveUpMenuItem);\n\t\tadd(moveDownMenuItem);\n\t\taddSeparator();\n\t\tadd(midiLearnMenuItem);\n\t\tadd(midiUnlearnMenuItem);\n\t\taddSeparator();\n\t\tadd(sendMidiMenuItem)...
[ "0.63328135", "0.6267756", "0.6101345", "0.60886246", "0.5976639", "0.59700924", "0.5955057", "0.5919033", "0.5909622", "0.5878559", "0.5878001", "0.5852365", "0.58505374", "0.58503306", "0.5840665", "0.5834539", "0.5831543", "0.5776299", "0.5770996", "0.575431", "0.5746509",...
0.6675861
0
/ Borderlayout bl = (Borderlayout) Path.getComponent("/mainlayout"); Center center = bl.getCenter(); center.getChildren().clear(); Executions.createComponents(pagename, center, null); Executions.getCurrent().sendRedirect(pagename); Messagebox.show(pagename);
@Command public void menuClicked(@BindingParam("pagename") String pagename) { Vlayout vl=(Vlayout)Path.getComponent("/mainlayout"); //Scrollview s=(Scrollview)vl.getFellow("scvCenter"); //Executions.createComponents(pagename, s, null); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private AbsoluteLayout buildMainLayout() {\n\t\tmainLayout = new AbsoluteLayout();\r\n\t\tmainLayout.setImmediate(false);\r\n\t\tmainLayout.setWidth(\"100%\");\r\n\t\tmainLayout.setHeight(\"100%\");\r\n\t\tmainLayout.setMargin(false);\r\n\t\t\r\n\t\t// top-level component properties\r\n\t\tmainLayout.setWidth(\"10...
[ "0.62831175", "0.60872203", "0.5942663", "0.59363616", "0.59353006", "0.5913012", "0.5884627", "0.5861364", "0.5858017", "0.5840587", "0.5830624", "0.58013445", "0.57704353", "0.57212985", "0.57171774", "0.57163936", "0.5696023", "0.56919956", "0.5686218", "0.5664526", "0.559...
0.5906558
6
Interface class of DeviceStatus. Created by Nanan on 3/4/2015.
public interface DeviceStatusEPSProvider { /** * Call recalculation before get the device status * @return Device status info. Should check {@link DeviceStatusEPS#statusCalculatedSuccessfully} before use */ DeviceStatusEPS calculateDeviceStatus(); boolean init(Context context); boolean providerFinalize(); /** * Get the saved device status without recalculation * @return Device status info. Should check {@link DeviceStatusEPS#statusCalculatedSuccessfully} before use */ DeviceStatusEPS getDeviceStatus(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Status getDeviceStatus() {\n return mDeviceStatus;\n }", "public void newDeviceStatus(String deviceId, Boolean statusOK);", "@Override\r\n public void onDeviceStatusChange(GenericDevice dev, PDeviceHolder devh,\r\n PHolderSetter status) {\n\r\n }", "...
[ "0.7560063", "0.6766958", "0.673037", "0.6674297", "0.6586524", "0.6542217", "0.6465917", "0.6465917", "0.63822585", "0.6357549", "0.6322756", "0.63115275", "0.6304438", "0.6304438", "0.6301686", "0.6301686", "0.6301686", "0.6292739", "0.6275976", "0.62358904", "0.6218708", ...
0.6264034
19
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(); jLabel7 = new javax.swing.JLabel(); jLabel8 = new javax.swing.JLabel(); jLabel9 = new javax.swing.JLabel(); jtfNombre = new javax.swing.JTextField(); jtfApellido = new javax.swing.JTextField(); jtfIdentificacion = new javax.swing.JTextField(); jtfSalario = new javax.swing.JTextField(); jtfPension = new javax.swing.JTextField(); jtfSalud = new javax.swing.JTextField(); jtfBanco = new javax.swing.JTextField(); jtfCuenta = new javax.swing.JTextField(); jScrollPane1 = new javax.swing.JScrollPane(); jtbEmpleados = new javax.swing.JTable(); jbtRegistrar = new javax.swing.JButton(); jbtActualizar = new javax.swing.JButton(); jLabel10 = new javax.swing.JLabel(); jtfCargo = new javax.swing.JTextField(); jbnLimpiar = new javax.swing.JButton(); jLabel1.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N jLabel1.setText("Gestion Empleado"); jLabel2.setText("Nombre"); jLabel3.setText("Apellido"); jLabel4.setText("Identificacion"); jLabel5.setText("Salario Basico"); jLabel6.setText("Pension"); jLabel7.setText("Salud"); jLabel8.setText("Banco"); jLabel9.setText("Cuenta"); jtbEmpleados.setModel(new javax.swing.table.DefaultTableModel( new Object [][] { }, new String [] { "Identificacion", "Nombre", "Apellido", "Cargo", "Salario Basico", "Pension", "Salud", "Banco", "Cuenta" } ) { boolean[] canEdit = new boolean [] { false, false, false, false, false, false, false, false, false }; public boolean isCellEditable(int rowIndex, int columnIndex) { return canEdit [columnIndex]; } }); jtbEmpleados.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { jtbEmpleadosMouseClicked(evt); } }); jScrollPane1.setViewportView(jtbEmpleados); jbtRegistrar.setText("Registrar"); jbtRegistrar.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jbtRegistrarActionPerformed(evt); } }); jbtActualizar.setText("Actualizar"); jbtActualizar.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jbtActualizarActionPerformed(evt); } }); jLabel10.setText("Cargo"); jbnLimpiar.setText("Limpiar"); jbnLimpiar.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jbnLimpiarActionPerformed(evt); } }); javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this); this.setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addContainerGap() .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jScrollPane1) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup() .addGap(0, 0, Short.MAX_VALUE) .addComponent(jbnLimpiar) .addGap(18, 18, 18) .addComponent(jbtActualizar) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(jbtRegistrar)) .addGroup(layout.createSequentialGroup() .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel1) .addGroup(layout.createSequentialGroup() .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addComponent(jLabel4) .addGap(18, 18, 18) .addComponent(jtfIdentificacion, javax.swing.GroupLayout.PREFERRED_SIZE, 153, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(22, 22, 22) .addComponent(jLabel2) .addGap(18, 18, 18) .addComponent(jtfNombre, javax.swing.GroupLayout.PREFERRED_SIZE, 131, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(39, 39, 39) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel3) .addComponent(jLabel7) .addComponent(jLabel10))) .addGroup(layout.createSequentialGroup() .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel5) .addComponent(jLabel8)) .addGap(18, 18, 18) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(jtfSalario, javax.swing.GroupLayout.DEFAULT_SIZE, 152, Short.MAX_VALUE) .addComponent(jtfBanco)) .addGap(22, 22, 22) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addGroup(layout.createSequentialGroup() .addComponent(jLabel6) .addGap(18, 18, 18) .addComponent(jtfPension, javax.swing.GroupLayout.PREFERRED_SIZE, 131, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(layout.createSequentialGroup() .addComponent(jLabel9) .addGap(18, 18, 18) .addComponent(jtfCuenta, javax.swing.GroupLayout.PREFERRED_SIZE, 133, javax.swing.GroupLayout.PREFERRED_SIZE))))) .addGap(49, 49, 49) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jtfCargo, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jtfSalud, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jtfApellido, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE)))) .addGap(0, 0, Short.MAX_VALUE))) .addContainerGap()) ); layout.setVerticalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addContainerGap() .addComponent(jLabel1) .addGap(18, 18, 18) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel4) .addComponent(jtfIdentificacion, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel2) .addComponent(jtfNombre, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel3) .addComponent(jtfApellido, 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.LEADING) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel6) .addComponent(jtfPension, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel7) .addComponent(jtfSalud, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jtfSalario, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addComponent(jLabel5)) .addGap(18, 18, 18) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jtfCargo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel8) .addComponent(jtfBanco, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel9) .addComponent(jtfCuenta, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel10))) .addGap(18, 18, 18) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jbtRegistrar) .addComponent(jbtActualizar) .addComponent(jbnLimpiar)) .addGap(18, 18, 18) .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 262, Short.MAX_VALUE) .addContainerGap()) ); }
{ "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.73191476", "0.72906625", "0.72906625", "0.72906625", "0.72860986", "0.7248112", "0.7213479", "0.72078276", "0.7195841", "0.71899796", "0.71840525", "0.7158498", "0.71477973", "0.7092748", "0.70800966", "0.70558053", "0.69871384", "0.69773406", "0.69548076", "0.69533914", "...
0.0
-1
Method that registers a user
public static void hentOgSkrivKostnader() { Connection con = getCon(); PreparedStatement prepStmt = null; ResultSet res = null; try { String query = "SELECT prosj_id, kunde, tekst, beløp FROM prosjekt JOIN prosjektkostnader USING(prosj_id) WHERE faktura_sendt IS NULL ORDER BY prosj_id, kunde;"; prepStmt = con.prepareStatement(query); res = prepStmt.executeQuery(); while (res.next()) { Tekstfil.skriv(res.getString("prosj_id") + "; " + res.getString("tekst") + "; " + res.getString("kunde") + "; " + res.getDouble("beløp") + "\n"); } /* String query2 = "UPDATE prosjektkostnader SET faktura_sendt=CURRENT_DATE() WHERE faktura_sendt IS NULL;"; prepStmt = con.prepareStatement(query2); prepStmt.executeUpdate(); */ } catch (SQLSyntaxErrorException e) { e.printStackTrace(); } catch (SQLException e) { e.printStackTrace(); } finally { closeConnection(con, prepStmt, null); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void register_user() {\n\n\t\tHttpRegister post = new HttpRegister();\n\t\tpost.execute(Config.URL + \"/api/newuser\");\n\n\t}", "void registerUser(User newUser);", "Boolean registerNewUser(User user);", "String registerUser(User user);", "private void registerUser()\n {\n /*AuthService.c...
[ "0.85432756", "0.85207987", "0.84887344", "0.8445041", "0.8187723", "0.8124593", "0.7888888", "0.77513146", "0.7731311", "0.76979655", "0.76608837", "0.76303506", "0.7600218", "0.7596611", "0.75708026", "0.75630033", "0.7526643", "0.75247556", "0.7517011", "0.75141287", "0.74...
0.0
-1
Use this whenever you want to connect to the database
public static Connection getCon() { Connection con= null; try{ Class.forName(driver); con = DriverManager.getConnection(dBUrl); } catch (SQLException e) { e.printStackTrace(); } catch (ClassNotFoundException e) { e.printStackTrace(); } return con; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void connectDatabase(){\n }", "public void connect() {\n\n DatabaseGlobalAccess.getInstance().setEmf(Persistence.createEntityManagerFactory(\"PU_dashboarddb\"));\n DatabaseGlobalAccess.getInstance().setEm(DatabaseGlobalAccess.getInstance().getEmf().createEntityManager());\n Databa...
[ "0.8132343", "0.8106455", "0.80734146", "0.79395664", "0.788702", "0.78714114", "0.78585935", "0.7779267", "0.771905", "0.77161837", "0.7650062", "0.76437056", "0.7624486", "0.7622875", "0.757597", "0.75692666", "0.7527425", "0.75084", "0.75079095", "0.75068474", "0.7504347",...
0.0
-1
you can use a String and convert that to a Char[]. Like below.
public static void main(String[] args) { String sampleStr="test a is this"; char sampleInput[] = sampleStr.toCharArray(); //char[] sampleInput= new char[] {'t','e','s','t',' ','a',' ','i','s',' ','t','h','i','s',' ','h','i'}; System.out.println("Original String # "); for (char c : sampleInput) { System.out.print(c); } reverseWord(sampleInput, 0, sampleInput.length-1); System.out.println("\nReverted String # "); for (char c : sampleInput) { System.out.print(c); } int startindx=0; for(int j=0; j<=sampleInput.length; j++) { if(j == sampleInput.length || sampleInput[j]==' ') { reverseWord(sampleInput,startindx,j-1); startindx=j+1; } } System.out.println("\nFinal String # "); for(int i=0;i<sampleInput.length;i++) System.out.print(sampleInput[i]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static Character[] toCharArray(String str){\n\t \n\t Character[] charArray = new Character[str.length()];\n\t for(int i = 0; i < charArray.length; i++){\n\t\t \n\t\t charArray[i] = new Character(str.charAt(i));\n\t }\n\t \n\t return charArray;\n }", "char[] toCharArray();", "public char[] getArray(Stri...
[ "0.79111385", "0.76464343", "0.7533727", "0.75282955", "0.73535764", "0.73008746", "0.6890957", "0.6880255", "0.6861824", "0.68064", "0.6796457", "0.67183006", "0.66963243", "0.6627368", "0.6477463", "0.64465207", "0.6428685", "0.6261606", "0.624482", "0.62119484", "0.6173286...
0.0
-1
for testing purposes only
protected ElevatorController(Elevator elevator) { this.elevator = elevator; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void test() {\n\t\t\t}", "private void test() {\n\n\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "public final void mo51373a() ...
[ "0.6246619", "0.6131587", "0.61111015", "0.60902524", "0.60390013", "0.6016071", "0.5905562", "0.58250266", "0.5801673", "0.5760208", "0.57391286", "0.5738685", "0.5735511", "0.57245374", "0.5708071", "0.56945705", "0.56945705", "0.56945705", "0.56945705", "0.56945705", "0.56...
0.0
-1
TODO Autogenerated method stub
protected void openDoors() { }
{ "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
visibility was changed for testing purposes
protected void closeDoors() { timerTask = executorService.submit(new TimerCallable(DOORS_CLOSE_TIME)); Boolean result = false; try { result = timerTask.get(); } catch (InterruptedException e) { System.out.println("thread was interrupt"); e.printStackTrace(); } catch (ExecutionException e) { System.out.println("execution exception"); e.printStackTrace(); } catch (CancellationException ex) { System.out.println("timer task was interrupted"); } if (!result) { System.out.println("thread was interrupted"); openDoors(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "@Override\n public void perish() {\n \n }", "public final void mo51373a() {\n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void test() {\n\t\t\t}", "public void mo38117a() {\n }", "@Override\n\tpublic void sacri...
[ "0.66572857", "0.6403096", "0.6254353", "0.61732596", "0.6103391", "0.60751987", "0.607075", "0.5973502", "0.5973502", "0.5973502", "0.5973502", "0.5973502", "0.5973502", "0.5964245", "0.5962987", "0.59567904", "0.5955674", "0.5952651", "0.5952651", "0.5952013", "0.5952013", ...
0.0
-1
TODO Autogenerated method stub
private void executeAction(ElevatorAction first) { }
{ "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
Odredjivanje zadane cifre u broju
public static int VratiCifru(int n, int red) { int cifra = 0; for(int i = 0; i < red; i++) { cifra = n % 10; n /= 10; } return cifra; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "public void rodar(){\n\t\tmeuConjuntoDePneus.rodar();\r\n\t}", "public void ustawPojazdNaPoczatek()\n\t{\n\t\tSciezka pierwszaSc = droga.get(0);\n\t\tfinal double y = 10;\n\t\tpojazd.zmienPozycje(pierwszaSc.getCenterDownX(), y);\n\t}", "@Override\n\tpublic v...
[ "0.6302457", "0.62777984", "0.62343097", "0.6206828", "0.61636806", "0.6142722", "0.6132328", "0.6105689", "0.6104127", "0.6076713", "0.6052739", "0.604791", "0.6043979", "0.6008252", "0.5992362", "0.59553456", "0.5937906", "0.5920478", "0.58956695", "0.58934194", "0.58479714...
0.0
-1
Constructor for objects of class Finn
public Finn() { System.out.println("is a Jedi,HumanLike,LightSide,Ressistance,Piolet,Annoying,StillLiving"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Mannschaft() {\n }", "public Facturacion() {\n }", "public Factura() {\r\n }", "public Factura() {\r\n }", "public NFA(){}", "public FeeAccount ()\n {\n }", "public Fish() {\r\n\t}", "public Fact() {\n }", "public StudentFee() {\n }", "public Terms() {}", "public ...
[ "0.6513707", "0.6466834", "0.64311475", "0.64311475", "0.6378146", "0.6170532", "0.6148744", "0.6066985", "0.6040524", "0.6014322", "0.599362", "0.59926456", "0.59917897", "0.59911376", "0.5976734", "0.5958879", "0.595548", "0.5950882", "0.59197325", "0.59132487", "0.5912062"...
0.0
-1
Writes an int to file.
public void storeTrials(int i) throws Exception { fileHandler.storeInt(file, i); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void writeInt(int value);", "void writeInt(int v) throws IOException;", "void writeInt(int i) throws IOException;", "protected abstract void write( int value ) throws IOException;", "public void writeInt(int value)\n throws java.io.IOException {\n\n if (isBigEndian) {\n outputStrea...
[ "0.82831204", "0.81243676", "0.79168093", "0.7607195", "0.75092834", "0.74702305", "0.7414951", "0.7096608", "0.7093209", "0.704554", "0.69152665", "0.6849898", "0.6788711", "0.6735242", "0.67015845", "0.6679935", "0.6675145", "0.6662045", "0.66058093", "0.6575881", "0.656838...
0.0
-1
Reads an int from file.
public int readTrials() throws Exception { return fileHandler.readInt(file); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private int read_int(RandomAccessFile file) throws IOException {\n int number = 0;\n for (int i = 0; i < 4; ++i) {\n number += (file.readByte() & 0xFF) << (8 * i);\n }\n return number;\n }", "public int readInt() throws IOException;", "int readInt() throws IOException;...
[ "0.78618497", "0.7183241", "0.71308935", "0.6965804", "0.69605935", "0.67634726", "0.6728272", "0.6644968", "0.66376805", "0.6488864", "0.64602673", "0.6446301", "0.6436953", "0.6436711", "0.6409741", "0.6320966", "0.62798965", "0.6259711", "0.6162338", "0.6157869", "0.615343...
0.5990466
27
Created by Administrator on 2017512.
public interface UserService { User findUserByLoginName(String loginName); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "public final void mo51373a() {\n }", "public void mo38117a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n ...
[ "0.5997734", "0.59961516", "0.5972307", "0.5905824", "0.5905824", "0.5905824", "0.5905824", "0.5905824", "0.5905824", "0.5905824", "0.58970493", "0.5778937", "0.57678854", "0.576639", "0.57181334", "0.5707776", "0.56895375", "0.56611806", "0.5652614", "0.5646487", "0.56204826...
0.0
-1
/ Map address builder to properties Address.Builder is an example of building an immutable object
@Override protected PropertiesHandler<Person> getPropertiesHandler() { final PropertiesHandler<Address.Builder> addressHandler = new MappedPropertiesHandler<Address.Builder>() { @Override public Address.Builder getTarget() { return Address.builder(); } } .map("street", (Address.Builder t, String value) -> t.setStreet(value)) .map("zip", (Address.Builder t, String value) -> t.setZip(value)) .map("city", (Address.Builder t, String value) -> t.setCity(value)); /* * Map Person to properties */ final PropertiesHandler<Person> personHandler = new MappedPropertiesHandler<Person>() { @Override public Person getTarget() { return new Person(); } } .map("first-name", (Person p, String value) -> p.setFirstName(value)) .map("last-name", (Person p, String value) -> p.setLastName(value)) .map("home-address", addressHandler, (Person p, Address.Builder a) -> p.setHomeAddress(a.build())) .map("work-address", addressHandler, (Person p, Address.Builder a) -> p.setWorkAddress(a.build())); return personHandler; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Builder setAddress(String address);", "@Override\n\t\tpublic Builder address(final Address address) {\n\t\t\tthis.map.put(ADDRESS, address);\n\t\t\tthis.previous = ADDRESS;\n\t\t\treturn builder();\n\t\t}", "public com.google.protobuf.StringValue.Builder getAddressBuilder() {\n \n onChanged();\n ...
[ "0.71394235", "0.66910887", "0.6637824", "0.65292364", "0.64273447", "0.64191544", "0.6347695", "0.63083094", "0.628242", "0.62713253", "0.6185284", "0.61706436", "0.61622036", "0.61622036", "0.61529166", "0.61369205", "0.61146474", "0.6091821", "0.6091821", "0.60774773", "0....
0.0
-1
todo support keyed:true as well
private void parseBuckets(JsonArray buckets) { for (JsonElement bucketv : buckets) { JsonObject bucket = bucketv.getAsJsonObject(); Range geoDistance = new Range( bucket, bucket.has(String.valueOf(FROM)) ? bucket.get(String.valueOf(FROM)).getAsDouble() : null, bucket.has(String.valueOf(TO)) ? bucket.get(String.valueOf(TO)).getAsDouble() : null, bucket.has(String.valueOf(DOC_COUNT)) ? bucket.get(String.valueOf(DOC_COUNT)).getAsLong() : null); geoDistances.add(geoDistance); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected Object getKeyArray()\n/* */ {\n/* 91 */ return this.m_keyTable;\n/* */ }", "@Override\n public int key() {\n return this.key;\n }", "@Override\n\tpublic boolean containsKey(Object arg0) {\n\t\treturn false;\n\t}", "public interface InverseHashView<K, V> {\r\n\r\n /**\r...
[ "0.6065241", "0.58469486", "0.57605505", "0.5751618", "0.5749359", "0.5735192", "0.5683047", "0.56647456", "0.56525993", "0.5650173", "0.561825", "0.5616855", "0.55951804", "0.5570119", "0.553929", "0.55260634", "0.55205065", "0.551529", "0.551529", "0.551529", "0.551529", ...
0.0
-1
Acceptance Criteria "Users should be able to retrieve all contacts in an address book"
@Test @Transactional public void getAllContactsWithInAddressBook() throws Exception { restAddressBookMockMvc.perform( get("/api/address-books/{id}/contacts", "1").param("unique", "false")) .andExpect(status().isOk()) .andExpect(content().contentType(MediaType.APPLICATION_JSON_UTF8_VALUE)) .andExpect(jsonPath("$.[2]").exists()) .andExpect(jsonPath("$.[3]").doesNotExist()) ; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void tesPrintAllContactsOfAllBooks() {\n\t\t// add 1 contacts to addrbook1\n\t\tcontactService.addContact(addrBook1, new Contact() {\n\t\t\t{\n\t\t\t\tsetName(\"Jack Sparrow\");\n\t\t\t}\n\t\t});\n\n\t\t// add 2 contacts to addrbook2\n\t\tcontactService.addContact(addrBook2, new Contact() {\n\t\t\t{\n\t\t\t...
[ "0.70349354", "0.6926006", "0.6394169", "0.6382996", "0.6359822", "0.62944007", "0.6106353", "0.6049019", "0.6009081", "0.58930296", "0.5884436", "0.5878097", "0.5874886", "0.5873779", "0.5851886", "0.5774756", "0.576015", "0.5751849", "0.5740987", "0.5708572", "0.5706343", ...
0.69684964
1
Acceptance Criteria "Users should be able to retireve a unique set of all contacts across multiple address books"
@Test @Transactional public void getAllContactsWithInMultiAddressBookUnique() throws Exception { restAddressBookMockMvc.perform( get("/api/address-books/{id}/contacts", "1,2").param("unique", "true")) .andExpect(status().isOk()) .andExpect(content().contentType(MediaType.APPLICATION_JSON_UTF8_VALUE)) .andExpect(jsonPath("$.[3]").exists()) .andExpect(jsonPath("$.[4]").doesNotExist()) ; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void tesPrintAllContactsOfAllBooks() {\n\t\t// add 1 contacts to addrbook1\n\t\tcontactService.addContact(addrBook1, new Contact() {\n\t\t\t{\n\t\t\t\tsetName(\"Jack Sparrow\");\n\t\t\t}\n\t\t});\n\n\t\t// add 2 contacts to addrbook2\n\t\tcontactService.addContact(addrBook2, new Contact() {\n\t\t\t{\n\t\t\t...
[ "0.6463367", "0.63609445", "0.5992628", "0.5974631", "0.5965434", "0.5895554", "0.570652", "0.5664803", "0.56218064", "0.5600294", "0.55776393", "0.5545486", "0.5533908", "0.55079126", "0.54897255", "0.54822236", "0.5465135", "0.544181", "0.542487", "0.53809774", "0.5361873",...
0.7097519
0
Creates the metamodel objects for the package. This method is guarded to have no affect on any invocation but its first.
public void createPackageContents() { if (isCreated) return; isCreated = true; // Create classes and their features ontologicalStructureEClass = createEClass(ONTOLOGICAL_STRUCTURE); createEReference(ontologicalStructureEClass, ONTOLOGICAL_STRUCTURE__ONTOLOGICAL_CONCEPTS); createEReference(ontologicalStructureEClass, ONTOLOGICAL_STRUCTURE__CONDITIONS); createEReference(ontologicalStructureEClass, ONTOLOGICAL_STRUCTURE__PROPERTIES); ontologicalConceptEClass = createEClass(ONTOLOGICAL_CONCEPT); createEAttribute(ontologicalConceptEClass, ONTOLOGICAL_CONCEPT__LABEL); createEAttribute(ontologicalConceptEClass, ONTOLOGICAL_CONCEPT__URI); conditionEClass = createEClass(CONDITION); createEAttribute(conditionEClass, CONDITION__LABEL); logicalConditionEClass = createEClass(LOGICAL_CONDITION); naturalLangConditionEClass = createEClass(NATURAL_LANG_CONDITION); createEAttribute(naturalLangConditionEClass, NATURAL_LANG_CONDITION__STATEMENT); mathConditionEClass = createEClass(MATH_CONDITION); negformulaEClass = createEClass(NEGFORMULA); createEReference(negformulaEClass, NEGFORMULA__CONDITION_STATEMENT); oRformulaEClass = createEClass(ORFORMULA); createEReference(oRformulaEClass, ORFORMULA__LEFT_CONDITION_STATEMENT); createEReference(oRformulaEClass, ORFORMULA__RIGHT_CONDITION_STATEMENT); anDformulaEClass = createEClass(AN_DFORMULA); createEReference(anDformulaEClass, AN_DFORMULA__LEFT_CONDITION_STATEMENT); createEReference(anDformulaEClass, AN_DFORMULA__RIGHT_CONDITION_STATEMENT); equalFormulaEClass = createEClass(EQUAL_FORMULA); createEReference(equalFormulaEClass, EQUAL_FORMULA__LEFT_CONDITION_STATEMENT); createEReference(equalFormulaEClass, EQUAL_FORMULA__RIGHT_CONDITION_STATEMENT); moreEqformulaEClass = createEClass(MORE_EQFORMULA); createEReference(moreEqformulaEClass, MORE_EQFORMULA__LEFT_CONDITION_STATEMENT); createEReference(moreEqformulaEClass, MORE_EQFORMULA__RIGHT_CONDITION_STATEMENT); lessformulaEClass = createEClass(LESSFORMULA); createEReference(lessformulaEClass, LESSFORMULA__LEFT_CONDITION_STATEMENT); createEReference(lessformulaEClass, LESSFORMULA__RIGHT_CONDITION_STATEMENT); propertyEClass = createEClass(PROPERTY); createEAttribute(propertyEClass, PROPERTY__LABEL); numberPropertyEClass = createEClass(NUMBER_PROPERTY); createEAttribute(numberPropertyEClass, NUMBER_PROPERTY__VALUE); booleanPropertyEClass = createEClass(BOOLEAN_PROPERTY); createEAttribute(booleanPropertyEClass, BOOLEAN_PROPERTY__VALUE); stringPropertyEClass = createEClass(STRING_PROPERTY); createEAttribute(stringPropertyEClass, STRING_PROPERTY__VALUE); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void createPackageContents() {\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\tmetadataEClass = createEClass(METADATA);\n\t\tcreateEAttribute(metadataEClass, METADATA__GAMENAME);\n\t\tcreateEAttribute(metadataEClass, METADATA__SHORTNAME);\n\t\tcreateEAttri...
[ "0.6877529", "0.6802357", "0.66864955", "0.66605544", "0.66467", "0.66181123", "0.6607485", "0.6604758", "0.6577712", "0.6567993", "0.655177", "0.65493155", "0.65404004", "0.6535015", "0.6533158", "0.65296984", "0.6514776", "0.6512043", "0.6500722", "0.6488522", "0.6481276", ...
0.6394011
27
Complete the initialization of the package and its metamodel. This method is guarded to have no affect on any invocation but its first.
public void initializePackageContents() { if (isInitialized) return; isInitialized = true; // Initialize package setName(eNAME); setNsPrefix(eNS_PREFIX); setNsURI(eNS_URI); // Create type parameters // Set bounds for type parameters // Add supertypes to classes logicalConditionEClass.getESuperTypes().add(this.getCondition()); naturalLangConditionEClass.getESuperTypes().add(this.getCondition()); mathConditionEClass.getESuperTypes().add(this.getCondition()); negformulaEClass.getESuperTypes().add(this.getLogicalCondition()); oRformulaEClass.getESuperTypes().add(this.getLogicalCondition()); anDformulaEClass.getESuperTypes().add(this.getLogicalCondition()); equalFormulaEClass.getESuperTypes().add(this.getMathCondition()); moreEqformulaEClass.getESuperTypes().add(this.getMathCondition()); lessformulaEClass.getESuperTypes().add(this.getMathCondition()); numberPropertyEClass.getESuperTypes().add(this.getProperty()); booleanPropertyEClass.getESuperTypes().add(this.getProperty()); stringPropertyEClass.getESuperTypes().add(this.getProperty()); // Initialize classes, features, and operations; add parameters initEClass(ontologicalStructureEClass, OntologicalStructure.class, "OntologicalStructure", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEReference(getOntologicalStructure_OntologicalConcepts(), this.getOntologicalConcept(), null, "ontologicalConcepts", null, 0, -1, OntologicalStructure.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEReference(getOntologicalStructure_Conditions(), this.getCondition(), null, "conditions", null, 0, -1, OntologicalStructure.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEReference(getOntologicalStructure_Properties(), this.getProperty(), null, "properties", null, 0, -1, OntologicalStructure.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEClass(ontologicalConceptEClass, OntologicalConcept.class, "OntologicalConcept", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEAttribute(getOntologicalConcept_Label(), ecorePackage.getEString(), "label", null, 1, 1, OntologicalConcept.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getOntologicalConcept_URI(), ecorePackage.getEString(), "URI", null, 1, 1, OntologicalConcept.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEClass(conditionEClass, Condition.class, "Condition", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEAttribute(getCondition_Label(), ecorePackage.getEString(), "label", null, 0, 1, Condition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEClass(logicalConditionEClass, LogicalCondition.class, "LogicalCondition", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEClass(naturalLangConditionEClass, NaturalLangCondition.class, "NaturalLangCondition", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEAttribute(getNaturalLangCondition_Statement(), ecorePackage.getEString(), "statement", null, 1, 1, NaturalLangCondition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEClass(mathConditionEClass, MathCondition.class, "MathCondition", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEClass(negformulaEClass, Negformula.class, "Negformula", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEReference(getNegformula_ConditionStatement(), this.getCondition(), null, "conditionStatement", null, 0, 1, Negformula.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEClass(oRformulaEClass, ORformula.class, "ORformula", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEReference(getORformula_LeftConditionStatement(), this.getCondition(), null, "leftConditionStatement", null, 1, 1, ORformula.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEReference(getORformula_RightConditionStatement(), this.getCondition(), null, "rightConditionStatement", null, 1, 1, ORformula.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEClass(anDformulaEClass, ANDformula.class, "ANDformula", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEReference(getANDformula_LeftConditionStatement(), this.getCondition(), null, "leftConditionStatement", null, 1, 1, ANDformula.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEReference(getANDformula_RightConditionStatement(), this.getCondition(), null, "rightConditionStatement", null, 1, 1, ANDformula.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEClass(equalFormulaEClass, equalFormula.class, "equalFormula", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEReference(getequalFormula_LeftConditionStatement(), this.getCondition(), null, "leftConditionStatement", null, 1, 1, equalFormula.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEReference(getequalFormula_RightConditionStatement(), this.getCondition(), null, "rightConditionStatement", null, 1, 1, equalFormula.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEClass(moreEqformulaEClass, moreEqformula.class, "moreEqformula", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEReference(getmoreEqformula_LeftConditionStatement(), this.getCondition(), null, "leftConditionStatement", null, 1, 1, moreEqformula.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEReference(getmoreEqformula_RightConditionStatement(), this.getCondition(), null, "rightConditionStatement", null, 1, 1, moreEqformula.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEClass(lessformulaEClass, lessformula.class, "lessformula", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEReference(getlessformula_LeftConditionStatement(), this.getCondition(), null, "leftConditionStatement", null, 1, 1, lessformula.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEReference(getlessformula_RightConditionStatement(), this.getCondition(), null, "rightConditionStatement", null, 1, 1, lessformula.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEClass(propertyEClass, Property.class, "Property", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEAttribute(getProperty_Label(), ecorePackage.getEString(), "label", null, 1, 1, Property.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEClass(numberPropertyEClass, NumberProperty.class, "NumberProperty", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEAttribute(getNumberProperty_Value(), ecorePackage.getEDouble(), "value", null, 0, 1, NumberProperty.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEClass(booleanPropertyEClass, BooleanProperty.class, "BooleanProperty", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEAttribute(getBooleanProperty_Value(), ecorePackage.getEBoolean(), "value", null, 0, 1, BooleanProperty.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEClass(stringPropertyEClass, StringProperty.class, "StringProperty", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEAttribute(getStringProperty_Value(), ecorePackage.getEString(), "value", null, 0, 1, StringProperty.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void initializePackageContents() {\n\t\tif (isInitialized) return;\n\t\tisInitialized = true;\n\n\t\t// Initialize package\n\t\tsetName(eNAME);\n\t\tsetNsPrefix(eNS_PREFIX);\n\t\tsetNsURI(eNS_URI);\n\n\t\t// Obtain other dependent packages\n\t\tEnginePackage theEnginePackage = (EnginePackage)EPackage.Regist...
[ "0.65663505", "0.64637876", "0.6438184", "0.6420078", "0.6410195", "0.6408812", "0.6404318", "0.63993853", "0.6382283", "0.6365", "0.6354965", "0.6342994", "0.63416624", "0.632297", "0.63196874", "0.6313231", "0.6308082", "0.63057786", "0.62943226", "0.62855506", "0.62708074"...
0.6031409
50
Final part of setting AutoStopBackward. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result: Device is open, CapAutoStopBackward is true or flag is false, internal property AllowAlwaysSetProperties is true or flag equals the previous value of AutoStopBackward.
public void autoStopBackward(boolean flag) throws JposException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setCanStop() {\n \tleftCanMotor.set(0.0);\n \trightCanMotor.set(0.0); \n\t}", "void driveStop() {\n flMotor.setPower(0);\n frMotor.setPower(0);\n blMotor.setPower(0);\n brMotor.setPower(0);\n }", "@Override\n public void stop() {\n\n leftDrive.setPower...
[ "0.5930046", "0.58047414", "0.5563893", "0.54935867", "0.5437859", "0.5437209", "0.5432637", "0.5416795", "0.54029375", "0.53579557", "0.5344623", "0.53145283", "0.53107", "0.5272225", "0.5244859", "0.5238568", "0.5226147", "0.5206634", "0.51991415", "0.5187087", "0.5184199",...
0.62103003
0
Final part of setting AutoStopBackwardDelayTime. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result: Device is open, CapAutoStopBackward is true, delay is FOREVER or positive, internal property AllowAlwaysSetProperties is true or delay equals the previous value of AutoStopBackwardDelayTime.
public void autoStopBackwardDelayTime(int delay) throws JposException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void autoStopForwardDelayTime(int delay) throws JposException;", "@Override\n public native void setAutoDelay(int ms);", "private void updateAutoTriggerDelay(long delay) {\n if (mAutoTriggerDelay != delay) {\n mAutoTriggerDelay = delay;\n updateReachabilityStatus();\n ...
[ "0.622054", "0.6029802", "0.5668452", "0.55667233", "0.5543996", "0.5520008", "0.5487572", "0.5469888", "0.5427333", "0.54209983", "0.54185045", "0.54018784", "0.53923863", "0.53561085", "0.5353224", "0.5342955", "0.5341041", "0.5318232", "0.52931523", "0.52873933", "0.523294...
0.6865115
0
Final part of setting AutoStopForward. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result: Device is open, CapAutoStopForward is true or flag is false, internal property AllowAlwaysSetProperties is true or flag equals the previous value of AutoStopForward.
public void autoStopForward(boolean flag) throws JposException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setForward(boolean isForward);", "public void setCanStop() {\n \tleftCanMotor.set(0.0);\n \trightCanMotor.set(0.0); \n\t}", "public void setForward(boolean fwdVal) {\n\t\tRelay.Value currentValue = this.get(),\n\t\t\t\t newValue = currentValue;\n\t\t\n\t\tif(currentValue == Relay.Value.kForward) ...
[ "0.5978907", "0.5653047", "0.5582778", "0.55804795", "0.55722874", "0.5448406", "0.53815466", "0.5345135", "0.5322298", "0.529217", "0.5222079", "0.51959664", "0.5195593", "0.51745486", "0.5134072", "0.5133084", "0.51227874", "0.5065173", "0.5058528", "0.5049173", "0.50469345...
0.5520353
5
Final part of setting AutoStopForwardDelayTime. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result: Device is open, CapAutoStopForward is true, delay is FOREVER or positive, internal property AllowAlwaysSetProperties is true or delay equals the previous value of AutoStopForwardDelayTime.
public void autoStopForwardDelayTime(int delay) throws JposException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public native void setAutoDelay(int ms);", "private void driveForwardTimer()\r\n\t{\r\n\t\tif(timer.get() < Config.Auto.timeDriveForward){\r\n\t\t\tdrive.setSpeed(0, 0, Config.Auto.driveForwardSpeed, Config.Auto.driveForwardSpeed);\r\n\t\t\tSystem.out.println(timer.get());}\r\n\t\t\r\n\t\telse\r\n...
[ "0.61960846", "0.61035347", "0.5966795", "0.5699695", "0.5686104", "0.560414", "0.55897164", "0.5575503", "0.55718076", "0.5568489", "0.5531601", "0.55141824", "0.54998523", "0.5492618", "0.54809237", "0.5448325", "0.5435209", "0.54170436", "0.53934014", "0.53741693", "0.5350...
0.6088543
2
Final part of AdjustItemCount method. Can be overwritten in derived class, if necessary. This method will be called only if the following plausibility checks lead to a positive result: Device is enabled, Specified direction is AIC_BACKWARD or AIC_FORWARD, If direction is AIC_FORWARD, CapAutoStopForwardItemCount is true, If direction is AIC_BACKWARD, CapAutoStopBackwardItemCount is true.
public void adjustItemCount(int direction, int count) throws JposException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void resetItemCount(int direction) throws JposException;", "@Override\n public void onCardSwiped(Direction direction) {\n Log.d(TAG, \"onCardSwiped: p=\" + manager.getTopPosition() + \" d=\" + direction);\n if (direction == Direction.Right){\n //...
[ "0.49733475", "0.4926202", "0.47653764", "0.47624868", "0.47582462", "0.4741134", "0.4713712", "0.47061312", "0.46910745", "0.4658593", "0.46484277", "0.45945227", "0.45795566", "0.45137867", "0.44765267", "0.44700736", "0.44663426", "0.44179475", "0.44144285", "0.44122085", ...
0.5893055
0
Final part of MoveBackward method. Can be overwritten in derived class, if necessary. This method will be called only if the following plausibility checks lead to a positive result: Device is enabled, CapMoveBackward is true, Specified speed is between 1 and CapSpeedStepsBackward.
public void moveBackward(int speed) throws JposException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void moveBackward(boolean endWithBrake){\r\n \r\n Motor.B.rotate(-1*DEGREES_PER_TILE, true);//Accesses Motor thread\r\n Motor.C.rotate(-1*DEGREES_PER_TILE, true);\r\n while(Motor.B.isMoving() || Motor.C.isMoving())\r\n ;//wait for motors to be done\r\n ...
[ "0.6379476", "0.61516815", "0.6143169", "0.5971632", "0.5971443", "0.5868396", "0.580206", "0.5708593", "0.57072586", "0.5699796", "0.56750154", "0.567497", "0.55947095", "0.5582382", "0.55643404", "0.55281967", "0.55209893", "0.54700834", "0.5437179", "0.5416251", "0.5412132...
0.67322975
0
Final part of MoveForward method. Can be overwritten in derived class, if necessary. This method will be called only if the following plausibility checks lead to a positive result: Device is enabled, Specified speed is between 1 and CapSpeedStepsForward.
public void moveForward(int speed) throws JposException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void forward() {\n forward(DEFAULT_SPEED);\n }", "public boolean moveStep() {\n\t\t// TODO: take orientation into account\n\t\t\n\t\t// Work out the distance to the destination\n\t\tDouble2D delta = destination.subtract(getPosition());\n//\t\tSystem.out.println(this.toString() + \"has \" + delta...
[ "0.6735582", "0.63137656", "0.62751275", "0.62744343", "0.62006557", "0.61884916", "0.6175533", "0.6161837", "0.612948", "0.61081094", "0.61003464", "0.60940987", "0.60930085", "0.6089787", "0.6044636", "0.5969587", "0.594128", "0.594059", "0.59390384", "0.59367615", "0.59291...
0.6220005
4
Final part of ResetBelt method. Can be overwritten in derived class, if necessary. This method will be called only if the following plausibility checks lead to a positive result: Device is enabled.
public void resetBelt() throws JposException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tprotected void checkHardware() {\n\t\tsuper.checkHardware();\n\t}", "@Override\n public void resetDeviceConfigurationForOpMode() {\n\n }", "public void damageDevice() {\n\t\t\r\n\t}", "public void initDevice() {\r\n\t\t\r\n\t}", "@Override\r\n\tpublic void resetState() {\r\n\t\t// what t...
[ "0.63480014", "0.62842155", "0.60755575", "0.6021842", "0.59096867", "0.5862699", "0.58338207", "0.5747195", "0.57426697", "0.568763", "0.56243587", "0.5621429", "0.5596975", "0.5551722", "0.5543164", "0.5542218", "0.5513334", "0.54900485", "0.54782015", "0.5466333", "0.54536...
0.0
-1
Final part of ResetItemCount method. Can be overwritten in derived class, if necessary. This method will be called only if the following plausibility checks lead to a positive result: Device is enabled, Specified direction is RIC_BACKWARD or RIC_FORWARD, If direction is RIC_FORWARD, CapAutoStopForwardItemCount is true, If direction is RIC_BACKWARD, CapAutoStopBackwardItemCount is true.
public void resetItemCount(int direction) throws JposException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void adjustItemCount(int direction, int count) throws JposException;", "public void reset() {\n setPrimaryDirection(-1);\n setSecondaryDirection(-1);\n flags.reset();\n setResetMovementQueue(false);\n setNeedsPlacement(false);\n }", "@Override\n public void onRew...
[ "0.5411047", "0.50918126", "0.5005823", "0.50055116", "0.49516103", "0.48616847", "0.48503166", "0.48466754", "0.4843598", "0.4837984", "0.48337197", "0.48265928", "0.47046328", "0.4683142", "0.46669585", "0.4616831", "0.4602014", "0.45976624", "0.45944878", "0.45875964", "0....
0.60498875
0
Final part of StopBelt method. Can be overwritten in derived class, if necessary. This method will be called only if the following plausibility checks lead to a positive result: Device is enabled.
public void stopBelt() throws JposException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void stopDevice(){\n //Stop the device.\n super.stopDevice();\n }", "@Test\n public void stopDeviceCheck() {\n System.out.println(\"* Device JUnit4Test: stopDeviceCheck()\");\n\n // authenticate the device and then stop it\n authenticateSimulatedDevice();\n mMainServ...
[ "0.6853224", "0.64138854", "0.63149655", "0.63149387", "0.6155425", "0.59891075", "0.5893654", "0.5886364", "0.58244944", "0.5819748", "0.5801616", "0.57895803", "0.57771313", "0.57699585", "0.5769905", "0.5751069", "0.5747406", "0.5744902", "0.5730278", "0.5719845", "0.56845...
0.5413765
50
Constructor for object class ProgrammerManaged
public ProgrammerManaged(String inFileString, String ouString, int bufferSize, ArrayList<String> keywords) { super(inFileString, ouString, bufferSize, keywords); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public MonHoc() {\n }", "Constructor() {\r\n\t\t \r\n\t }", "public ProgramWilmaa()\n\t{\n\t}", "public StudentChoresAMImpl() {\n }", "public Constructor(){\n\t\t\n\t}", "public PnuematicSubsystem() {\n\n }", "public EnsembleLettre() {\n\t\t\n\t}", "public Professor()\n\t{\n\t\t//stuff\n\t}", ...
[ "0.6625184", "0.6550024", "0.6548299", "0.6537601", "0.64704967", "0.6437347", "0.63909817", "0.639062", "0.6361363", "0.6350232", "0.63209134", "0.63179713", "0.6312906", "0.62934536", "0.62744176", "0.62637186", "0.6254828", "0.62520456", "0.6233898", "0.62180036", "0.62161...
0.0
-1
Read TextFile using Programmermanaged ByteArray NIO method and save as chank in a ArrayList
@Override public void ReadTextFile() { // Using a programmer-managed byte-array try (FileInputStream in = new FileInputStream(inFileStr)) { startTime = System.nanoTime(); byte[] byteArray = new byte[bufferSize]; int bytesCount; while ((bytesCount = in.read(byteArray)) != -1) { snippets.add(new String(byteArray)); } in.close(); } catch (IOException ex) { ex.printStackTrace(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "List readFile(String pathToFile);", "@Override\n\tpublic void ReadTextFile() {\n\t\t// Using Buffered Stream I/O\n\t\ttry (BufferedInputStream in = new BufferedInputStream(new FileInputStream(inFileStr))) {\n\t\t\tbyte[] contents = new byte[bufferSize];\n\t\t\tstartTime = System.nanoTime();\n\t\t\tint bytesCount...
[ "0.64460856", "0.6022112", "0.59517425", "0.5946892", "0.5861238", "0.58503395", "0.58141047", "0.57776433", "0.5768242", "0.5757547", "0.57402223", "0.5716108", "0.57031286", "0.5670287", "0.564536", "0.5628151", "0.5625256", "0.55910724", "0.55595165", "0.5518197", "0.54989...
0.62839526
1