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
Add To Shared Preference
@Override public void addPreferenceAndUpdateWidget(Context context, Pastry pastry) { IngredientSharedPreference.setIngredientListPreference(context, pastry.getIngredientsList()); IngredientSharedPreference.setRecipeNamePreference(pastry.getName(), context); updateWidget(context); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void addToFavorites() {\n\n favoriteBool = true;\n preferencesConfig.writeAddFavoriteTip(shownTipIndex);\n Toast.makeText(getContext(), \"Added to favorites.\", Toast.LENGTH_SHORT).show();\n\n }", "@Override\n public void onCreatePreferences(Bundle bundle, String s) {\n ...
[ "0.6800727", "0.67911994", "0.66843385", "0.65692383", "0.65594286", "0.6523677", "0.64975613", "0.6494933", "0.64408726", "0.640715", "0.6387119", "0.6372107", "0.6371772", "0.6371772", "0.6331255", "0.62864643", "0.6255032", "0.62096757", "0.6182666", "0.61805594", "0.61739...
0.58666307
61
Removes Preference and Updated Widget to default Values
@Override public void removePreferenceAndUpdateWidget(Context ctx) { IngredientSharedPreference.removePreferences(ctx); updateWidget(ctx); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void reset() {\n if (mPreference == null)\n return ;\n\n Editor editor = mPreference.edit();\n editor.clear();\n editor.commit();\n }", "public static void clear(){\n preferences.edit().clear().apply();\n }", "public void clearAllPreference() {\...
[ "0.706374", "0.6891277", "0.6643766", "0.63816303", "0.629412", "0.623661", "0.61903584", "0.6185817", "0.6158773", "0.61549586", "0.61315435", "0.608523", "0.6050408", "0.5978879", "0.59709686", "0.5968308", "0.5965902", "0.59428453", "0.5919107", "0.5890938", "0.5877152", ...
0.7329449
0
TODO Autogenerated method stub
public static void main(String[] args) { Scanner scanner = new Scanner(System.in); String x = scanner.nextLine(); scanner.close(); System.out.println(countUpperCharacters(x)); }
{ "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
GETTER The event you wish to recieve a notification about. Specify for all events.
@JsonGetter("event") public String getEvent ( ) { return this.event; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Event getEvent();", "EventType getEvent();", "@Override\n public Object getEvent() {\n return eventObj;\n }", "public EventOccurrence getReceiveEvent();", "public String getPushEvent();", "public Object getEvent() {\r\n return event;\r\n }", "public String getEvent() {\n r...
[ "0.7106981", "0.7070848", "0.69118035", "0.6814373", "0.6796271", "0.6760236", "0.6722537", "0.6718795", "0.66193837", "0.65279645", "0.64735425", "0.64609903", "0.63798857", "0.63681215", "0.63619167", "0.6349328", "0.63003886", "0.62974083", "0.62688243", "0.626018", "0.625...
0.6486106
10
SETTER The event you wish to recieve a notification about. Specify for all events.
@JsonSetter("event") public void setEvent (String value) { this.event = value; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setSendEvent(EventOccurrence sendEvent);", "public void setEventName(String name);", "public void setReceiveEvent(EventOccurrence receiveEvent);", "@Override\n public void setNotification() {\n if (getTense() == Tense.FUTURE) {\n //Context ctx = SHiTApplication.getContext();\...
[ "0.6457704", "0.64399624", "0.64094687", "0.63668233", "0.61326617", "0.61174715", "0.61026216", "0.60678905", "0.60675645", "0.5864232", "0.5859176", "0.5843475", "0.5791313", "0.57781535", "0.573482", "0.5721", "0.56935006", "0.56845915", "0.56783324", "0.56534654", "0.5627...
0.56997997
16
GETTER Whether this event should remain active after it triggers the first time.
@JsonGetter("persistent") public boolean getPersistent ( ) { return this.persistent; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean getTrigger(){\n \treturn !trigger.get();\n }", "@Override\n\tpublic Boolean isActve() {\n\t\treturn active;\n\t}", "boolean isAlreadyTriggered();", "@Override\n\tpublic boolean isEventStarted() {\n\t\treturn status>=EventStarted;\n\t}", "public boolean isActived() {\r\n\t\treturn isAct...
[ "0.6756115", "0.67527956", "0.673329", "0.66840094", "0.6675349", "0.66363806", "0.65955144", "0.6561266", "0.6493696", "0.6432079", "0.64227504", "0.64225054", "0.6418083", "0.64063054", "0.63827884", "0.6373321", "0.63685095", "0.63028646", "0.6293588", "0.6263852", "0.6259...
0.0
-1
SETTER Whether this event should remain active after it triggers the first time.
@JsonSetter("persistent") public void setPersistent (boolean value) { this.persistent = value; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void activate(){\r\n\t\tactive=true;\r\n\t}", "@objid (\"b47d48ab-22b9-48c5-87ec-5f1f114e042d\")\n void setIsEvent(boolean value);", "public void activate(){\n active = true;\n state = State.cleaving;\n }", "@Override\n\tpublic Boolean isActve() {\n\t\treturn active;\n\t}", "publ...
[ "0.61982197", "0.61959404", "0.61711293", "0.6117971", "0.6099348", "0.59983397", "0.5984954", "0.5966883", "0.5966883", "0.5966446", "0.5956313", "0.59301835", "0.59232813", "0.5896036", "0.58871627", "0.58601713", "0.58430487", "0.5839486", "0.58141375", "0.5814063", "0.581...
0.0
-1
time O(n), space O(n)
public int rob(int[] nums) { if(nums == null || nums.length == 0){ return 0; } int res = 0, n = nums.length; int[] dp = new int[n + 1]; dp[1] = nums[0]; for(int i = 2; i <= n; i++){ dp[i] = Math.max(dp[i - 2] + nums[i - 1], dp[i - 1]); } return dp[n]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static int f2(int N) { \n int x = 0; //O(1)\n for(int i = 0; i < N; i++) // O(n)\n // O(n)`\n for(int j = 0; j < i; j++) \n x++;\n return x;\n }", "public static int f1(int N) {\n int x = 0; //O(1)\n for(int i = 0; i < N; i++...
[ "0.68100625", "0.66772884", "0.63322693", "0.60761565", "0.6074929", "0.5911255", "0.58581734", "0.58558583", "0.57943225", "0.57244885", "0.57223284", "0.56843394", "0.55883145", "0.5569671", "0.55656254", "0.55595756", "0.55452365", "0.5526082", "0.54625463", "0.54573876", ...
0.0
-1
private Constructor to prevent instantiation
private PropertiesUtils() {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Rekenhulp()\n\t{\n\t}", "private ATCres() {\r\n // prevent to instantiate this class\r\n }", "private Instantiation(){}", "private Utils()\n {\n // Private constructor to prevent instantiation\n }", "private SimpleRepository() {\n \t\t// private ct to disallow external object...
[ "0.7856971", "0.778026", "0.77717793", "0.75592965", "0.7548901", "0.75098884", "0.74887955", "0.7484872", "0.7481701", "0.7467042", "0.74469924", "0.7408885", "0.73692584", "0.73692584", "0.7339318", "0.73373663", "0.7335747", "0.7287246", "0.7282257", "0.72774374", "0.72763...
0.0
-1
Loads a Properties file from the classpath matching the given file name
public static Properties getPropertiesFromClasspath(String fileName) throws PropertiesFileNotFoundException { Properties props = new Properties(); try { InputStream is = ClassLoader.getSystemResourceAsStream(fileName); if (is == null) { // try this instead is = Thread.currentThread().getContextClassLoader().getResourceAsStream(fileName); logger.debug("loaded properties file with Thread.currentThread()"); } props.load(is); } catch (Exception e) { throw new PropertiesFileNotFoundException( "ERROR LOADING PROPERTIES FROM CLASSPATH >" + fileName + "< !!!", e); } return props; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void loadProperties(Properties p, String fileName)throws IOException {\n ClassLoader classLoader = ClassLoader.getSystemClassLoader();\n URL f = classLoader.getResource(fileName);\n FileInputStream fr = new FileInputStream(new File(fileName));\n p.load(fr);\n fr.clo...
[ "0.74327856", "0.72128356", "0.7185454", "0.7042593", "0.70348173", "0.70325404", "0.6881861", "0.67785746", "0.671196", "0.6656841", "0.66313773", "0.65736413", "0.6560033", "0.6559879", "0.65591973", "0.6527644", "0.6513106", "0.6463022", "0.6449587", "0.64240324", "0.64063...
0.72214925
1
Loads a Properties file from the given file name
public static Properties getPropertiesFromPath(String fileName) throws PropertiesFileNotFoundException { Properties props = new Properties(); FileInputStream fis; try { fis = new FileInputStream(fileName); props.load(fis); fis.close(); } catch (Exception e) { throw new PropertiesFileNotFoundException( "ERROR LOADING PROPERTIES FROM PATH >" + fileName + "< !!!", e); } return props; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void loadPropertyFile(String filename) {\n try (InputStream is = new FileInputStream(filename)) {\n properties.load(is);\n } catch (IOException x) {\n throw new IllegalArgumentException(x);\n }\n }", "private static void loadPropertiesFile() {\n checkNo...
[ "0.7763178", "0.7741672", "0.75270945", "0.7286266", "0.7271418", "0.7246614", "0.7190825", "0.718454", "0.7105531", "0.7024684", "0.69551104", "0.6952535", "0.69109565", "0.6902234", "0.6893414", "0.6843886", "0.67867774", "0.6759639", "0.67481804", "0.67430055", "0.67373395...
0.64223576
38
checks for the presence of an edge in a small graph that contains only two vertices, with that as the only edge
@Test public void testPublic1() { Graph<Character> graph= TestGraphs.testGraph1(); assertEquals(3, graph.getEdge('A', 'B')); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract boolean hasEdge(int from, int to);", "public void testContainsEdge() {\n System.out.println(\"containsEdge\");\n\n Graph<Integer, Edge<Integer>> graph = generateGraph();\n\n for (int i = 0; i < 25; i++) {\n for (int j = 0; j < 25; j++) {\n if ((i + j...
[ "0.73573947", "0.72954154", "0.7094395", "0.70864147", "0.69524807", "0.69299227", "0.690647", "0.68862796", "0.68855405", "0.68592656", "0.679603", "0.67850834", "0.67639333", "0.66866976", "0.66850513", "0.667998", "0.66707903", "0.6663581", "0.66492236", "0.6642524", "0.65...
0.0
-1
tests adding a vertex to a graph twice (adding one that's already present), which should throw an IllegalArgumentException.
@Test(expected=IllegalArgumentException.class) public void testPublic2() { Graph<Character> graph= TestGraphs.testGraph3(); graph.addVertex('A'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\r\n void test_insert_same_edge_twice() {\r\n // Add two vertices with one edge\r\n graph.addEdge(\"A\", \"B\");\r\n graph.addEdge(\"A\", \"B\");\r\n if (graph.size() != 1) {\r\n fail();\r\n }\r\n if (!graph.getAdjacentVerticesOf(\"A\").contains(\"B\")) ...
[ "0.7827969", "0.7795871", "0.76207983", "0.736475", "0.7292032", "0.7208947", "0.71969414", "0.7189899", "0.71736515", "0.7158254", "0.71297276", "0.71117914", "0.71088374", "0.70977855", "0.70705974", "0.7018073", "0.70179117", "0.69455314", "0.6944763", "0.69423074", "0.679...
0.64602125
36
tests adding an edge to a graph twice, which should replace the edge's previous cost
@Test public void testPublic3() { Graph<String> graph= TestGraphs.testGraph2(); graph.addEdge("apple", "banana", 2); graph.addEdge("cherry", "date", 3); graph.addEdge("elderberry", "fig", 4); assertEquals(graph.getEdge("apple", "banana"), 2); assertEquals(graph.getEdge("cherry", "date"), 3); assertEquals(graph.getEdge("elderberry", "fig"), 4); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\r\n void test_insert_same_edge_twice() {\r\n // Add two vertices with one edge\r\n graph.addEdge(\"A\", \"B\");\r\n graph.addEdge(\"A\", \"B\");\r\n if (graph.size() != 1) {\r\n fail();\r\n }\r\n if (!graph.getAdjacentVerticesOf(\"A\").contains(\"B\")) ...
[ "0.7316444", "0.7113837", "0.6996365", "0.6612842", "0.66079223", "0.6607612", "0.6584149", "0.6560712", "0.6533573", "0.65314853", "0.65162086", "0.6478298", "0.6434205", "0.64094216", "0.63963705", "0.6378145", "0.63570946", "0.63496435", "0.63455296", "0.6303726", "0.62905...
0.0
-1
calls getNeighbors() on the only vertex in a small graph that has an edge (the only edge), to the only other vertex, and ensures that the adjacent vertex is in the set returned
@Test public void testPublic4() { Graph<Character> graph= TestGraphs.testGraph1(); assertEquals("B", TestGraphs.collToString(graph.getNeighbors('A'))); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Set<Pair<V,V>> neighbourEdgesOf(V vertex);", "Set<Edge> getIncomingNeighborEdges(boolean onUpwardPass) {\n//\t\t\tif(_outgoingEdges.size() == 0) { // only compute if we have to\n\t\t\t\tSet<Edge> outgoingEdges = new HashSet<Edge>();\n\t\t\t\tIterator<Edge> it = _neighborEdges.keySet().iterator();\n\t\t\t\...
[ "0.69724584", "0.68779993", "0.68746793", "0.65199465", "0.6330758", "0.6284013", "0.6263211", "0.6218036", "0.6154779", "0.6099641", "0.6059597", "0.6057334", "0.6028407", "0.59599006", "0.59568775", "0.5949853", "0.5935523", "0.5933688", "0.59321743", "0.5926206", "0.592385...
0.0
-1
ensures that only the vertices connected to outgoing edges from a vertex are in the set returned by getNeighbors(), when called on a small graph that has only two vertices and one edge
@Test public void testPublic5() { Graph<Character> graph= TestGraphs.testGraph1(); assertEquals("", TestGraphs.collToString(graph.getNeighbors('B'))); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Set<Edge> getIncomingNeighborEdges(boolean onUpwardPass) {\n//\t\t\tif(_outgoingEdges.size() == 0) { // only compute if we have to\n\t\t\t\tSet<Edge> outgoingEdges = new HashSet<Edge>();\n\t\t\t\tIterator<Edge> it = _neighborEdges.keySet().iterator();\n\t\t\t\twhile(it.hasNext()) {\n\t\t\t\t\tEdge e = it.next();\n...
[ "0.6658693", "0.63925356", "0.6344519", "0.63189197", "0.63164437", "0.6301537", "0.60661715", "0.6032388", "0.6027323", "0.6000981", "0.599212", "0.5917469", "0.5902579", "0.5849554", "0.58383524", "0.58330643", "0.579371", "0.5787325", "0.57791424", "0.5745729", "0.5728528"...
0.0
-1
checks the effects of using removeEdge() to remove some edges from a graph by checking the neighbors of all of the vertices afterward
@Test public void testPublic6() { Graph<Character> graph= TestGraphs.testGraph3(); String[] results= {"O", "", "", "E F", "", "", "", "", "", "", "", "B K", "A N", "C G", "H K", "D"}; Character ch; int i; graph.removeEdge('A', 'I'); graph.removeEdge('K', 'J'); graph.removeEdge('M', 'L'); graph.removeEdge('N', 'P'); for (ch= 'A', i= 0; ch <= 'P'; ch++, i++) assertEquals(results[i], TestGraphs.collToString(graph.getNeighbors(ch))); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void removeAllEdges() {\n }", "public void testRemoveEdge_betweenVertices() {\n System.out.println(\"removeEdge\");\n\n Graph<Integer, Edge<Integer>> graph = generateGraph();\n\n for (int i = 0; i < 25; i++) {\n for (int j = 0; j < 25; j++) {\n if ((i + j)...
[ "0.69733655", "0.69452983", "0.6930936", "0.6919946", "0.6847226", "0.6808629", "0.6794669", "0.6786136", "0.67405957", "0.6728995", "0.67150056", "0.6666509", "0.6607185", "0.65802884", "0.6571628", "0.65532124", "0.6543015", "0.647187", "0.64525974", "0.6417833", "0.64112",...
0.0
-1
tests getVertices(); is basically the same as the previous test except for use of getVertices() (note that "ch 'A'" is the index of an element of the array; its value is 0 if ch is 'A', 1 if ch is 'B', etc.)
@Test public void testPublic7() { Graph<Character> graph= TestGraphs.testGraph3(); String[] results= {"O", "", "", "E F", "", "", "", "", "", "", "", "B K", "A N", "C G", "H K", "D"}; graph.removeEdge('A', 'I'); graph.removeEdge('K', 'J'); graph.removeEdge('M', 'L'); graph.removeEdge('N', 'P'); for (Character ch : graph.getVertices()) assertEquals(results[ch - 'A'], TestGraphs.collToString(graph.getNeighbors(ch))); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getVertices();", "public abstract Vector2[] getVertices();", "public float[] getVertices() {\n/* 793 */ COSBase base = getCOSObject().getDictionaryObject(COSName.VERTICES);\n/* 794 */ if (base instanceof COSArray)\n/* */ {\n/* 796 */ return ((COSArray)base).toFloatArray();\n/* */ ...
[ "0.6944541", "0.6644475", "0.6419768", "0.6293754", "0.6217142", "0.6124119", "0.6018409", "0.6014569", "0.6014569", "0.6007927", "0.5987109", "0.5984027", "0.59408844", "0.5915967", "0.5912223", "0.5910506", "0.59058595", "0.59055614", "0.59052444", "0.5881083", "0.5846214",...
0.0
-1
tests getNeighbors() on a graph that has a cycle
@Test public void testPublic8() { Graph<Integer> graph= TestGraphs.testGraph4(); String[] results= {"1 4", "2 4", "3 4", "0 4", ""}; Integer i; for (i= 0; i <= 4; i++) assertEquals(results[i], TestGraphs.collToString(graph.getNeighbors(i))); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test public void testPublic12() {\n Graph<Integer> graph= new Graph<Integer>();\n int i;\n\n // note this adds the adjacent vertices in the process\n for (i= 0; i < 10; i++)\n graph.addEdge(i, i + 1, 1);\n graph.addEdge(10, 0, 1);\n\n for (Integer vertex : graph.getVertices())\n assert...
[ "0.7018658", "0.6783294", "0.66468334", "0.6437041", "0.64156216", "0.6295091", "0.6279916", "0.6260044", "0.6239279", "0.62126285", "0.62100255", "0.6194329", "0.6171767", "0.6148071", "0.61461765", "0.613011", "0.61145", "0.6111748", "0.61043483", "0.6101022", "0.6082275", ...
0.6075077
21
tests the effect of removeVertex() in removing some vertices from a graph
@Test public void testPublic9() { Graph<Character> graph= TestGraphs.testGraph3(); char[] toRemove= {'I', 'H', 'B', 'J', 'C', 'G', 'E', 'F'}; int i; for (i= 0; i < toRemove.length; i++) { graph.removeVertex(toRemove[i]); assertFalse(graph.hasVertex(toRemove[i])); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n void test02_removeVertex() {\n graph.addVertex(\"a\");\n graph.addVertex(\"b\"); // adds two\n graph.removeVertex(\"a\"); // remove\n\n Set<String> vertices = new LinkedHashSet<>();\n vertices.add(\"a\");\n vertices.add(\"b\");\n vertices.remove(\"a\"); // creates a mock up vertex lis...
[ "0.85716736", "0.8479586", "0.8448878", "0.80835104", "0.78957397", "0.7807058", "0.78012204", "0.76159894", "0.7579489", "0.75258076", "0.7438472", "0.74038184", "0.73951215", "0.7354661", "0.7314831", "0.72705895", "0.72602296", "0.7245766", "0.71529794", "0.71256316", "0.7...
0.7487192
10
tests that removeVertex() removes the necessary edges also
@Test public void testPublic10() { Graph<Character> graph= TestGraphs.testGraph3(); char[] toRemove= {'I', 'H', 'B', 'J', 'C', 'G', 'E', 'F'}; String[] results= {"O", "", "", "", "", "", "", "", "", "", "", "K", "A L N", "P", "K", "D"}; int i; for (i= 0; i < toRemove.length; i++) graph.removeVertex(toRemove[i]); for (Character ch : graph.getVertices()) assertEquals(results[ch - 'A'], TestGraphs.collToString(graph.getNeighbors(ch))); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test \n\tpublic void removeVertexTest() {\n\t\tList<Vertex> vertices = new ArrayList<>();\n\t\tvertices.add(C);\n\t\tvertices.add(D);\n\t\tedge_0.addVertices(vertices);\n\t\tgraph.addVertex(D);\n\t\tassertFalse(graph.removeVertex(C));\n\t\tgraph.addVertex(C);\n\t\tgraph.addEdge(edge_0);\n\t\tassertTrue(graph.remo...
[ "0.84506726", "0.8257727", "0.82323813", "0.8000126", "0.79642063", "0.78006816", "0.77229583", "0.77073914", "0.7654906", "0.76357275", "0.76158625", "0.7595911", "0.7594734", "0.7592378", "0.75778365", "0.7511035", "0.7493172", "0.74863356", "0.74716", "0.7362088", "0.72462...
0.62363344
74
ensures that isInCycle() returns false for every vertex in an acyclic graph
@Test public void testPublic11() { Graph<Character> graph= TestGraphs.testGraph3(); for (Character ch : graph.getVertices()) assertFalse(graph.isInCycle(ch)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int isCycle( Graph graph){\n int parent[] = new int[graph.V]; \n \n // Initialize all subsets as single element sets \n for (int i=0; i<graph.V; ++i) \n parent[i]=-1; \n \n // Iterate through all edges of graph, find subset of both vertices of every edge, if both subsets ar...
[ "0.7915997", "0.7672264", "0.7596332", "0.73785263", "0.72354794", "0.7227538", "0.7198124", "0.71275663", "0.71267813", "0.7093839", "0.7072945", "0.7050121", "0.70226735", "0.6994442", "0.6990098", "0.6945224", "0.6929477", "0.6903318", "0.6902124", "0.6887454", "0.6848836"...
0.7368787
4
ensures that isInCycle() returns true for every vertex in a graph in which all vertices are in a cycle
@Test public void testPublic12() { Graph<Integer> graph= new Graph<Integer>(); int i; // note this adds the adjacent vertices in the process for (i= 0; i < 10; i++) graph.addEdge(i, i + 1, 1); graph.addEdge(10, 0, 1); for (Integer vertex : graph.getVertices()) assertTrue(graph.isInCycle(vertex)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean hasCycle() {\r\n\t\tSet<Vertex> visited = new HashSet<Vertex>();\r\n\t\tSet<Vertex> path = new HashSet<Vertex>();\r\n\r\n\t\t// Call the helper function to detect cycle for all vertices one by one\r\n\t\tfor (int i = 0; i < N; ++i)\r\n\t\t\tif (detectCycle(this.vertices[i], visited, path))\r\n\t\t\t...
[ "0.8119962", "0.80667055", "0.788831", "0.7548402", "0.7445042", "0.7296667", "0.7293143", "0.7283916", "0.72656643", "0.7174929", "0.7149107", "0.71481067", "0.7066718", "0.70441556", "0.70439357", "0.70329577", "0.7023651", "0.7017505", "0.7005367", "0.699114", "0.6983964",...
0.7403129
5
checks the result of isInCycle() on a graph in which some vertices are in a cycle, but one is not
@Test public void testPublic13() { Graph<Integer> graph= TestGraphs.testGraph4(); int i; for (i= 0; i < 4; i++) assertTrue(graph.isInCycle(i)); assertFalse(graph.isInCycle(4)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int isCycle( Graph graph){\n int parent[] = new int[graph.V]; \n \n // Initialize all subsets as single element sets \n for (int i=0; i<graph.V; ++i) \n parent[i]=-1; \n \n // Iterate through all edges of graph, find subset of both vertices of every edge, if both subsets ar...
[ "0.80471146", "0.79410887", "0.7854335", "0.7427628", "0.7411035", "0.74053323", "0.72727233", "0.7265673", "0.7195885", "0.71682", "0.70703954", "0.7061263", "0.70322907", "0.69821227", "0.6971202", "0.6966055", "0.69585127", "0.6955309", "0.6953422", "0.6908964", "0.6883967...
0.6787413
26
calls Dijkstra's algorithm on vertices in a linear graph and checks its results
@Test public void testPublic14() { Graph<String> graph= TestGraphs.testGraph2(); List<String> shortestPath= new ArrayList<String>(); assertEquals(1, graph.Dijkstra("apple", "banana", shortestPath)); assertEquals("apple banana", TestGraphs.listToString(shortestPath)); assertEquals(2, graph.Dijkstra("apple", "cherry", shortestPath)); assertEquals("apple banana cherry", TestGraphs.listToString(shortestPath)); assertEquals(3, graph.Dijkstra("apple", "date", shortestPath)); assertEquals("apple banana cherry date", TestGraphs.listToString(shortestPath)); assertEquals(4, graph.Dijkstra("apple", "elderberry", shortestPath)); assertEquals("apple banana cherry date elderberry", TestGraphs.listToString(shortestPath)); assertEquals(5, graph.Dijkstra("apple", "fig", shortestPath)); assertEquals("apple banana cherry date elderberry fig", TestGraphs.listToString(shortestPath)); assertEquals(6, graph.Dijkstra("apple", "guava", shortestPath)); assertEquals("apple banana cherry date elderberry fig guava", TestGraphs.listToString(shortestPath)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int doDijkstras(String startVertex, String endVertex, ArrayList<String> shortestPath)\r\n\t{\r\n\t\tif(!this.dataMap.containsKey(startVertex) || !this.dataMap.containsKey(endVertex))\r\n\t\t{\r\n\t\t\tthrow new IllegalArgumentException(\"Vertex does not exist in the graph!\");\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t...
[ "0.6820986", "0.6673024", "0.64775413", "0.6410827", "0.62239754", "0.6222534", "0.62039167", "0.6188479", "0.61768746", "0.617655", "0.616202", "0.6160104", "0.61569667", "0.61418957", "0.61357117", "0.6117747", "0.6089937", "0.6089298", "0.60835195", "0.60698974", "0.605599...
0.64701253
3
calls Dijkstra's algorithm on two pairs of vertices in a simple graph and checks its results
@Test public void testPublic15() { Graph<Character> graph= TestGraphs.testGraph3(); List<Character> shortestPath= new ArrayList<Character>(); assertEquals(1, graph.Dijkstra('A', 'O', shortestPath)); assertEquals("A O", TestGraphs.listToString(shortestPath)); assertEquals(4, graph.Dijkstra('M', 'F', shortestPath)); assertEquals("M N P D F", TestGraphs.listToString(shortestPath)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test \r\n void insert_two_vertexs_then_create_edge(){\r\n graph.addVertex(\"A\");\r\n graph.addVertex(\"B\");\r\n graph.addEdge(\"A\", \"B\");\r\n List<String> adjacentA = graph.getAdjacentVerticesOf(\"A\");\r\n List<String> adjacentB = graph.getAdjacentVerticesOf(\"B\");\r\n ...
[ "0.6960639", "0.66720814", "0.6628302", "0.6548933", "0.6476504", "0.6466855", "0.63152844", "0.63088113", "0.63044345", "0.62984824", "0.6288707", "0.6285818", "0.62123007", "0.6193454", "0.61861396", "0.6177962", "0.6155011", "0.6128771", "0.61156034", "0.6069939", "0.60626...
0.5796195
57
calls Dijkstra's algorithm on a pair of vertices in a more complex graph and checks its results
@Test public void testPublic16() { Graph<Integer> graph= TestGraphs.testGraph5(); List<Integer> shortestPath= new ArrayList<Integer>(); assertEquals(5, graph.Dijkstra(131, 351, shortestPath)); assertEquals("131 330 351", TestGraphs.listToString(shortestPath)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test \r\n void insert_two_vertexs_then_create_edge(){\r\n graph.addVertex(\"A\");\r\n graph.addVertex(\"B\");\r\n graph.addEdge(\"A\", \"B\");\r\n List<String> adjacentA = graph.getAdjacentVerticesOf(\"A\");\r\n List<String> adjacentB = graph.getAdjacentVerticesOf(\"B\");\r\n ...
[ "0.6610097", "0.6584713", "0.65673155", "0.6480909", "0.644582", "0.63602316", "0.63554066", "0.63258713", "0.62789327", "0.623818", "0.6201396", "0.61970645", "0.618656", "0.6180613", "0.6153119", "0.61433613", "0.61294305", "0.61170137", "0.6103494", "0.6097593", "0.6040647...
0.58987176
48
calls Dijkstra's algorithm on another pair of vertices in a more complex graph and checks its results
@Test public void testPublic17() { Graph<Integer> graph= TestGraphs.testGraph5(); List<Integer> shortestPath= new ArrayList<Integer>(); assertEquals(8, graph.Dijkstra(131, 141, shortestPath)); assertEquals("131 330 132 141", TestGraphs.listToString(shortestPath)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test public void testPublic14() {\n Graph<String> graph= TestGraphs.testGraph2();\n List<String> shortestPath= new ArrayList<String>();\n\n assertEquals(1, graph.Dijkstra(\"apple\", \"banana\", shortestPath));\n assertEquals(\"apple banana\", TestGraphs.listToString(shortestPath));\n\n assertEquals...
[ "0.65393347", "0.65377915", "0.6490433", "0.64120257", "0.6406734", "0.63605", "0.6335511", "0.6320843", "0.6304001", "0.62634313", "0.62437826", "0.62361556", "0.61987144", "0.6196342", "0.6192406", "0.6158901", "0.6153992", "0.61360824", "0.6122647", "0.6118045", "0.6084809...
0.58452255
68
calls Dijkstra's algorithm on another pair of vertices in a more complex graph and checks its results
@Test public void testPublic18() { Graph<Integer> graph= TestGraphs.testGraph5(); List<Integer> shortestPath= new ArrayList<Integer>(); assertEquals(13, graph.Dijkstra(250, 141, shortestPath)); assertEquals("250 351 132 141", TestGraphs.listToString(shortestPath)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test public void testPublic14() {\n Graph<String> graph= TestGraphs.testGraph2();\n List<String> shortestPath= new ArrayList<String>();\n\n assertEquals(1, graph.Dijkstra(\"apple\", \"banana\", shortestPath));\n assertEquals(\"apple banana\", TestGraphs.listToString(shortestPath));\n\n assertEquals...
[ "0.65393347", "0.65377915", "0.6490433", "0.64120257", "0.6406734", "0.63605", "0.6335511", "0.6320843", "0.6304001", "0.62634313", "0.62437826", "0.62361556", "0.61987144", "0.6196342", "0.6192406", "0.6158901", "0.6153992", "0.61360824", "0.6122647", "0.6118045", "0.6084809...
0.5803211
75
examples showing read only, write only and read write attributes
public String getReadWriteAttribute();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean isWriteAccess();", "boolean isReadAccess();", "public void setReadWriteOnMyLatestView()\n {\n \t m_acl = \tm_acl | (1<<2);\n }", "@Override\n\tpublic boolean isReadWrite() {\n\t\treturn true;\n\t}", "@Override\n public boolean hasReadAccess() {\n return true;\n }", "@Override\n...
[ "0.70512164", "0.67237884", "0.6644765", "0.66112036", "0.6571987", "0.6567176", "0.6563968", "0.6563968", "0.655013", "0.655013", "0.655013", "0.65018123", "0.64926577", "0.64904445", "0.64595544", "0.6428641", "0.63287663", "0.6272095", "0.6263519", "0.6248", "0.6228325", ...
0.72393113
0
data is passed into the constructor
public ExamsAdapter(AppCompatActivity context, List<Exam> data) { this.LayoutInflater = LayoutInflater.from(context); this.context = context; this.mData = data; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void initData() {\n }", "@Override\n protected void initData() {\n }", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotect...
[ "0.75066525", "0.75066525", "0.7500069", "0.7500069", "0.7500069", "0.7500069", "0.7500069", "0.7500069", "0.7443239", "0.7433293", "0.7433293", "0.73854136", "0.7359438", "0.7341959", "0.73134995", "0.73134995", "0.7303543", "0.7290602", "0.72723377", "0.72721577", "0.727215...
0.0
-1
inflates the row layout from xml when needed
@Override public ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) { View view = LayoutInflater.inflate(R.layout.exam_row, parent, false); return new ViewHolder(view); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void inflateTextLayout(View row, BeadInfo beadInfo) {\n\t\tTextView colorCodeTV = (TextView) row.findViewById(R.id.colorNumber);\n\t\tif (colorCodeTV != null){\n\t\t\tString colorCode = beadInfo.getColorCode();\n\t\t\tif (colorCode != null){\n\t\t\t\tcolorCodeTV.setText(colorCode);\n\t\t\t}\n\t\t}\n\t\tLoc...
[ "0.645677", "0.6258364", "0.622229", "0.61107755", "0.60473514", "0.6013297", "0.59874105", "0.59793854", "0.5914407", "0.58773446", "0.5855177", "0.5851475", "0.5804275", "0.5747948", "0.5723981", "0.56306106", "0.5621535", "0.5604664", "0.5578105", "0.5576324", "0.555116", ...
0.0
-1
binds the data to the TextView in each row
@Override public void onBindViewHolder(ViewHolder holder, final int position) { holder.exam_title.setText(mData.get(position).getName()); holder.teacher_exam_name.setText(mData.get(position).getTeacherEmail()); holder.exam_layout.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { Intent i = new Intent(context , ExamSettingsActivity.class); i.putExtra("id" ,mData.get(position).getId() ) ; i.putExtra("max_score" ,mData.get(position).getMaxScore() ) ; i.putExtra("name" ,mData.get(position).getName() ) ; i.putExtra("teacher_email" ,mData.get(position).getTeacherEmail() ) ; context.startActivity(i); } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void populateTextViews() {\n full_name_tv.setText(contact.getFullName());\n school_tv.setText(contact.getSchool());\n department_tv.setText(getDepartmentString());\n email.setText(contact.getEmail());\n number_tv.setText(contact.getNumber());\n }", "@Override\r\n\t\t...
[ "0.69829375", "0.68891174", "0.65017015", "0.6434036", "0.642142", "0.6320036", "0.6301487", "0.6276643", "0.6273005", "0.6236405", "0.6231051", "0.6228581", "0.6194826", "0.61860275", "0.61670893", "0.615411", "0.6153998", "0.61536145", "0.61521024", "0.6126667", "0.61048436...
0.0
-1
total number of rows
@Override public int getItemCount() { return mData.size(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int totalRowsCount();", "int getRowsCount();", "public int getTotalRows();", "int getRowsAmount();", "public int getNumRows() {\n\t\treturn NUM_ROWS; \n\t}", "public abstract int getNumOfRows();", "public abstract int getNumRows();", "public int getRowsCount() {\n return rows_.size();\n ...
[ "0.89423", "0.8816092", "0.8756285", "0.83867955", "0.826321", "0.8253855", "0.82385814", "0.8223367", "0.813764", "0.80901676", "0.806456", "0.80634147", "0.80603546", "0.8012233", "0.7973971", "0.79449266", "0.79239774", "0.79239774", "0.79239774", "0.79239774", "0.79239774...
0.0
-1
TODO Autogenerated method stub if(D) Log.d(TAG, "task, currentPercent: " + currentPercent);
@Override public void run() { if(currentPercent > MAX_PERCENT) { stopPressAnimation(); return; } refreshChart(); currentPercent ++; pressAnimationTimer.postDelayed(pressAnimationTask, PRESS_ANIMATION_DURATION); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Double getProgressPercent();", "public double getPercent() {\r\n\t\treturn percent;\r\n\t}", "public void setPercent(double percent) {\r\n\t\tthis.percent = percent;\r\n\t}", "@Override\r\n\t\tpublic void onTick(long millisUntilFinished, int percent) {\n\t\t\ttime.setText(StringUtil\r\n\t\t\t\t\t.getS...
[ "0.6550668", "0.6475624", "0.6468302", "0.64647305", "0.64455473", "0.63600105", "0.6357154", "0.63524264", "0.63434285", "0.6285324", "0.6273655", "0.6165916", "0.6126069", "0.6088788", "0.60693276", "0.5989124", "0.5954816", "0.59467065", "0.59262633", "0.5907465", "0.59069...
0.0
-1
TODO: filter service name Get potentially registered service
@Override public <ITF> Optional<ITF> getService(Class<ITF> itfClass, String servicePath) { return IRegistryProvider.INSTANCE.getService(itfClass, servicePath); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getServiceName();", "java.lang.String getServiceName();", "Object getService(String serviceName);", "String getServiceName();", "String getServiceName();", "public Object getService(String serviceName);", "public String getServiceName();", "public abstract String getServiceName();", ...
[ "0.77034914", "0.77034914", "0.7566403", "0.7530779", "0.7530779", "0.7515987", "0.7405252", "0.7389607", "0.72752434", "0.72752434", "0.72752434", "0.7154827", "0.70445365", "0.69402516", "0.6927956", "0.6893487", "0.6827101", "0.6800125", "0.6752891", "0.67497396", "0.67497...
0.0
-1
Adds given frame to animation
public void addFrame(AnimationFrame frame) { this.frames.add(frame); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addFrame(final Image image) {\n\t\tframes.add(new AnimFrame(image));\n\t}", "public void addFrame(Point newFrame)\n {\n frames.add(newFrame);\n }", "public void addFrame(Frame frame) throws BowlingException\r\n\t{\r\n\t\tif(frames.size()==10)\r\n\t\t\tthrow new BowlingException();\r\n\...
[ "0.7289002", "0.70395464", "0.68624246", "0.68538463", "0.6741677", "0.66980666", "0.65528333", "0.651318", "0.6330423", "0.6316948", "0.6297398", "0.62807596", "0.627911", "0.62455976", "0.62277865", "0.62168163", "0.6202847", "0.6067413", "0.60472506", "0.59119487", "0.5897...
0.79570436
0
Created by ProdigalWang on 2017/3/6.
public interface IStartView { void showStartInfo(String url); void goMainActivity(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "private stendhal() {\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r...
[ "0.6332959", "0.6163705", "0.5962934", "0.59436125", "0.59436125", "0.5943195", "0.5848984", "0.58364975", "0.58210284", "0.5813531", "0.57799906", "0.57691264", "0.5763226", "0.57600224", "0.57412046", "0.571184", "0.5705291", "0.57039607", "0.56964636", "0.56870544", "0.568...
0.0
-1
Creates new form EditarVenda
public EditarVenda() { initComponents(); URL caminhoIcone = getClass().getResource("/mklivre/icone/icone2.png"); Image iconeTitulo = Toolkit.getDefaultToolkit().getImage(caminhoIcone); this.setIconImage(iconeTitulo); conexao = ModuloConexao.conector(); codigoCliente.setEnabled(false); lucro.setEnabled(false); valorLiquidoML.setEnabled(false); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public VendaView(int idVenda) throws SQLException {\n initComponents();\n\n jTextFieldIDFuncionario.setEnabled(false);\n jTextFieldNomeCliente.setEnabled(false);\n jTextFieldNomeFuncionario.setEnabled(false);\n// jTextFieldNotaFiscal.setEnabled(false);\n jTextFieldNumeroPa...
[ "0.67010075", "0.6538181", "0.6533826", "0.6423423", "0.6377682", "0.6308433", "0.6298194", "0.62978417", "0.629395", "0.6293785", "0.6240486", "0.6236329", "0.6224935", "0.6219679", "0.61976564", "0.618712", "0.6175008", "0.6172676", "0.6167844", "0.6144113", "0.61419815", ...
0.70384485
0
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.
@SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { apagarVenda = new javax.swing.JButton(); jLabel14 = new javax.swing.JLabel(); jLabel36 = new javax.swing.JLabel(); lucro = new javax.swing.JTextField(); jLabel34 = new javax.swing.JLabel(); codigoCliente = new javax.swing.JTextField(); custoNaMadri = new javax.swing.JTextField(); jLabel35 = new javax.swing.JLabel(); jLabel28 = new javax.swing.JLabel(); valorLiquidoML = new javax.swing.JTextField(); jLabel29 = new javax.swing.JLabel(); jLabel2 = new javax.swing.JLabel(); jLabel3 = new javax.swing.JLabel(); dataVenda = new javax.swing.JTextField(); jLabel4 = new javax.swing.JLabel(); precoVendido = new javax.swing.JTextField(); jLabel15 = new javax.swing.JLabel(); jLabel17 = new javax.swing.JLabel(); jLabel18 = new javax.swing.JLabel(); jLabel16 = new javax.swing.JLabel(); jLabel19 = new javax.swing.JLabel(); codigoPeca = new javax.swing.JTextField(); jLabel5 = new javax.swing.JLabel(); jLabel21 = new javax.swing.JLabel(); jLabel20 = new javax.swing.JLabel(); jScrollPane1 = new javax.swing.JScrollPane(); cadastroObservacoes = new javax.swing.JTextArea(); jLabel6 = new javax.swing.JLabel(); tarifaDoML = new javax.swing.JTextField(); jLabel22 = new javax.swing.JLabel(); porcentagemDoMercadoLivre = new javax.swing.JTextField(); quantidadeVendida = new javax.swing.JTextField(); botAtualizar = new javax.swing.JButton(); botaoEntrarIniciall1 = new javax.swing.JButton(); nomePeca = new javax.swing.JTextField(); valorFrete = new javax.swing.JTextField(); jLabel30 = new javax.swing.JLabel(); jLabel23 = new javax.swing.JLabel(); jLabel25 = new javax.swing.JLabel(); jLabel31 = new javax.swing.JLabel(); jLabel12 = new javax.swing.JLabel(); jLabel24 = new javax.swing.JLabel(); jLabel13 = new javax.swing.JLabel(); jLabel27 = new javax.swing.JLabel(); jLabel1 = new javax.swing.JLabel(); jLabel37 = new javax.swing.JLabel(); jLabel26 = new javax.swing.JLabel(); jLabel11 = new javax.swing.JLabel(); jLabel7 = new javax.swing.JLabel(); jLabel8 = new javax.swing.JLabel(); jLabel9 = new javax.swing.JLabel(); jLabel10 = new javax.swing.JLabel(); mostrarNivel = new javax.swing.JLabel(); acessoUser = new javax.swing.JLabel(); setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE); setTitle("EDITAR VENDA"); setResizable(false); addWindowListener(new java.awt.event.WindowAdapter() { public void windowActivated(java.awt.event.WindowEvent evt) { formWindowActivated(evt); } }); getContentPane().setLayout(null); apagarVenda.setBackground(new java.awt.Color(0, 0, 0)); apagarVenda.setFont(new java.awt.Font("Tahoma", 1, 18)); // NOI18N apagarVenda.setForeground(new java.awt.Color(255, 255, 255)); apagarVenda.setText("APAGAR"); apagarVenda.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { apagarVendaActionPerformed(evt); } }); apagarVenda.addKeyListener(new java.awt.event.KeyAdapter() { public void keyPressed(java.awt.event.KeyEvent evt) { apagarVendaKeyPressed(evt); } }); getContentPane().add(apagarVenda); apagarVenda.setBounds(300, 640, 160, 40); jLabel14.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagens/APAGAR.png"))); // NOI18N getContentPane().add(jLabel14); jLabel14.setBounds(440, 610, 80, 70); jLabel36.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N jLabel36.setForeground(new java.awt.Color(255, 255, 255)); jLabel36.setText("LUCRO"); getContentPane().add(jLabel36); jLabel36.setBounds(280, 350, 70, 17); lucro.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N lucro.setText("0,00"); lucro.addFocusListener(new java.awt.event.FocusAdapter() { public void focusGained(java.awt.event.FocusEvent evt) { lucroFocusGained(evt); } }); lucro.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { lucroActionPerformed(evt); } }); lucro.addKeyListener(new java.awt.event.KeyAdapter() { public void keyPressed(java.awt.event.KeyEvent evt) { lucroKeyPressed(evt); } }); getContentPane().add(lucro); lucro.setBounds(280, 380, 140, 30); jLabel34.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N jLabel34.setForeground(new java.awt.Color(255, 255, 255)); jLabel34.setText("CÓDIGO DA VENDA"); getContentPane().add(jLabel34); jLabel34.setBounds(480, 350, 180, 17); codigoCliente.setEditable(false); codigoCliente.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N codigoCliente.addFocusListener(new java.awt.event.FocusAdapter() { public void focusGained(java.awt.event.FocusEvent evt) { codigoClienteFocusGained(evt); } }); codigoCliente.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { codigoClienteActionPerformed(evt); } }); codigoCliente.addKeyListener(new java.awt.event.KeyAdapter() { public void keyPressed(java.awt.event.KeyEvent evt) { codigoClienteKeyPressed(evt); } }); getContentPane().add(codigoCliente); codigoCliente.setBounds(480, 380, 140, 30); custoNaMadri.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N custoNaMadri.setText("0,00"); custoNaMadri.addFocusListener(new java.awt.event.FocusAdapter() { public void focusGained(java.awt.event.FocusEvent evt) { custoNaMadriFocusGained(evt); } }); custoNaMadri.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { custoNaMadriActionPerformed(evt); } }); custoNaMadri.addKeyListener(new java.awt.event.KeyAdapter() { public void keyPressed(java.awt.event.KeyEvent evt) { custoNaMadriKeyPressed(evt); } }); getContentPane().add(custoNaMadri); custoNaMadri.setBounds(30, 380, 190, 30); jLabel35.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N jLabel35.setForeground(new java.awt.Color(255, 255, 255)); jLabel35.setText("PREÇO DE CUSTO NA MADRI"); getContentPane().add(jLabel35); jLabel35.setBounds(30, 350, 210, 17); jLabel28.setFont(new java.awt.Font("Tahoma", 1, 21)); // NOI18N jLabel28.setForeground(new java.awt.Color(255, 255, 255)); jLabel28.setHorizontalAlignment(javax.swing.SwingConstants.CENTER); jLabel28.setText("EDITAR VENDA"); getContentPane().add(jLabel28); jLabel28.setBounds(260, 10, 320, 60); valorLiquidoML.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N valorLiquidoML.setText("0,00"); valorLiquidoML.addFocusListener(new java.awt.event.FocusAdapter() { public void focusGained(java.awt.event.FocusEvent evt) { valorLiquidoMLFocusGained(evt); } }); valorLiquidoML.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { valorLiquidoMLActionPerformed(evt); } }); valorLiquidoML.addKeyListener(new java.awt.event.KeyAdapter() { public void keyPressed(java.awt.event.KeyEvent evt) { valorLiquidoMLKeyPressed(evt); } }); getContentPane().add(valorLiquidoML); valorLiquidoML.setBounds(480, 300, 140, 30); jLabel29.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N jLabel29.setForeground(new java.awt.Color(255, 255, 255)); jLabel29.setText("VALOR LÍQUIDO DO MERCADO LIVRE"); getContentPane().add(jLabel29); jLabel29.setBounds(480, 270, 270, 17); jLabel2.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N jLabel2.setForeground(new java.awt.Color(255, 255, 255)); jLabel2.setText("PORCENTAGEM DO MERCADO LIVRE"); getContentPane().add(jLabel2); jLabel2.setBounds(480, 190, 270, 17); jLabel3.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N jLabel3.setForeground(new java.awt.Color(255, 255, 255)); jLabel3.setText("DATA"); getContentPane().add(jLabel3); jLabel3.setBounds(280, 110, 100, 17); dataVenda.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N dataVenda.addFocusListener(new java.awt.event.FocusAdapter() { public void focusGained(java.awt.event.FocusEvent evt) { dataVendaFocusGained(evt); } }); dataVenda.addKeyListener(new java.awt.event.KeyAdapter() { public void keyPressed(java.awt.event.KeyEvent evt) { dataVendaKeyPressed(evt); } }); getContentPane().add(dataVenda); dataVenda.setBounds(280, 140, 140, 30); jLabel4.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N jLabel4.setForeground(new java.awt.Color(255, 255, 255)); jLabel4.setText("QUANTIDADE VENDIDA"); getContentPane().add(jLabel4); jLabel4.setBounds(480, 110, 190, 17); precoVendido.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N precoVendido.setText("0,00"); precoVendido.addFocusListener(new java.awt.event.FocusAdapter() { public void focusGained(java.awt.event.FocusEvent evt) { precoVendidoFocusGained(evt); } }); precoVendido.addKeyListener(new java.awt.event.KeyAdapter() { public void keyPressed(java.awt.event.KeyEvent evt) { precoVendidoKeyPressed(evt); } }); getContentPane().add(precoVendido); precoVendido.setBounds(280, 220, 140, 30); jLabel15.setFont(new java.awt.Font("Tahoma", 1, 18)); // NOI18N jLabel15.setForeground(new java.awt.Color(255, 0, 0)); jLabel15.setHorizontalAlignment(javax.swing.SwingConstants.CENTER); jLabel15.setText("*"); getContentPane().add(jLabel15); jLabel15.setBounds(230, 330, 40, 60); jLabel17.setFont(new java.awt.Font("Tahoma", 1, 18)); // NOI18N jLabel17.setForeground(new java.awt.Color(255, 0, 0)); jLabel17.setText("*"); getContentPane().add(jLabel17); jLabel17.setBounds(330, 100, 30, 40); jLabel18.setFont(new java.awt.Font("Tahoma", 1, 18)); // NOI18N jLabel18.setForeground(new java.awt.Color(255, 0, 0)); jLabel18.setHorizontalAlignment(javax.swing.SwingConstants.CENTER); jLabel18.setText("*"); getContentPane().add(jLabel18); jLabel18.setBounds(660, 110, 20, 22); jLabel16.setFont(new java.awt.Font("Tahoma", 1, 18)); // NOI18N jLabel16.setForeground(new java.awt.Color(255, 0, 0)); jLabel16.setHorizontalAlignment(javax.swing.SwingConstants.CENTER); jLabel16.setText("*"); getContentPane().add(jLabel16); jLabel16.setBounds(90, 100, 30, 40); jLabel19.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N jLabel19.setForeground(new java.awt.Color(255, 255, 255)); jLabel19.setText("CÓDIGO"); getContentPane().add(jLabel19); jLabel19.setBounds(30, 110, 70, 17); codigoPeca.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N codigoPeca.addFocusListener(new java.awt.event.FocusAdapter() { public void focusLost(java.awt.event.FocusEvent evt) { codigoPecaFocusLost(evt); } }); codigoPeca.addKeyListener(new java.awt.event.KeyAdapter() { public void keyPressed(java.awt.event.KeyEvent evt) { codigoPecaKeyPressed(evt); } }); getContentPane().add(codigoPeca); codigoPeca.setBounds(30, 140, 130, 30); jLabel5.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagens/MER-LIVRE.png"))); // NOI18N getContentPane().add(jLabel5); jLabel5.setBounds(715, 5, 70, 75); jLabel21.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N jLabel21.setForeground(new java.awt.Color(255, 255, 255)); jLabel21.setText("OBSERVAÇÕES"); getContentPane().add(jLabel21); jLabel21.setBounds(30, 430, 200, 17); jLabel20.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N jLabel20.setForeground(new java.awt.Color(255, 255, 255)); jLabel20.setText("TARIFA DO MERCADO LIVRE"); getContentPane().add(jLabel20); jLabel20.setBounds(30, 270, 210, 17); cadastroObservacoes.setColumns(20); cadastroObservacoes.setFont(new java.awt.Font("Tahoma", 0, 16)); // NOI18N cadastroObservacoes.setRows(5); cadastroObservacoes.addKeyListener(new java.awt.event.KeyAdapter() { public void keyPressed(java.awt.event.KeyEvent evt) { cadastroObservacoesKeyPressed(evt); } }); jScrollPane1.setViewportView(cadastroObservacoes); getContentPane().add(jScrollPane1); jScrollPane1.setBounds(30, 460, 730, 140); jLabel6.setHorizontalAlignment(javax.swing.SwingConstants.CENTER); jLabel6.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagens/Sem título.png"))); // NOI18N jLabel6.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); getContentPane().add(jLabel6); jLabel6.setBounds(-4, 0, 150, 80); tarifaDoML.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N tarifaDoML.setText("0,00"); tarifaDoML.addFocusListener(new java.awt.event.FocusAdapter() { public void focusGained(java.awt.event.FocusEvent evt) { tarifaDoMLFocusGained(evt); } }); tarifaDoML.addKeyListener(new java.awt.event.KeyAdapter() { public void keyPressed(java.awt.event.KeyEvent evt) { tarifaDoMLKeyPressed(evt); } }); getContentPane().add(tarifaDoML); tarifaDoML.setBounds(30, 300, 140, 30); jLabel22.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N jLabel22.setForeground(new java.awt.Color(255, 255, 255)); jLabel22.setText("PREÇO DE VENDA"); getContentPane().add(jLabel22); jLabel22.setBounds(280, 190, 150, 17); porcentagemDoMercadoLivre.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N porcentagemDoMercadoLivre.setText("11,00"); porcentagemDoMercadoLivre.addFocusListener(new java.awt.event.FocusAdapter() { public void focusGained(java.awt.event.FocusEvent evt) { porcentagemDoMercadoLivreFocusGained(evt); } }); porcentagemDoMercadoLivre.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { porcentagemDoMercadoLivreActionPerformed(evt); } }); porcentagemDoMercadoLivre.addKeyListener(new java.awt.event.KeyAdapter() { public void keyPressed(java.awt.event.KeyEvent evt) { porcentagemDoMercadoLivreKeyPressed(evt); } }); getContentPane().add(porcentagemDoMercadoLivre); porcentagemDoMercadoLivre.setBounds(480, 220, 140, 30); quantidadeVendida.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N quantidadeVendida.setText("1"); quantidadeVendida.addFocusListener(new java.awt.event.FocusAdapter() { public void focusGained(java.awt.event.FocusEvent evt) { quantidadeVendidaFocusGained(evt); } }); quantidadeVendida.addKeyListener(new java.awt.event.KeyAdapter() { public void keyPressed(java.awt.event.KeyEvent evt) { quantidadeVendidaKeyPressed(evt); } }); getContentPane().add(quantidadeVendida); quantidadeVendida.setBounds(480, 140, 140, 30); botAtualizar.setBackground(new java.awt.Color(0, 0, 0)); botAtualizar.setFont(new java.awt.Font("Tahoma", 1, 18)); // NOI18N botAtualizar.setForeground(new java.awt.Color(255, 255, 255)); botAtualizar.setText("ATUALIZAR"); botAtualizar.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { botAtualizarActionPerformed(evt); } }); botAtualizar.addKeyListener(new java.awt.event.KeyAdapter() { public void keyPressed(java.awt.event.KeyEvent evt) { botAtualizarKeyPressed(evt); } }); getContentPane().add(botAtualizar); botAtualizar.setBounds(30, 640, 160, 40); botaoEntrarIniciall1.setBackground(new java.awt.Color(0, 0, 0)); botaoEntrarIniciall1.setFont(new java.awt.Font("Tahoma", 1, 18)); // NOI18N botaoEntrarIniciall1.setForeground(new java.awt.Color(255, 255, 255)); botaoEntrarIniciall1.setText("PESQUISAR"); botaoEntrarIniciall1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { botaoEntrarIniciall1ActionPerformed(evt); } }); botaoEntrarIniciall1.addKeyListener(new java.awt.event.KeyAdapter() { public void keyPressed(java.awt.event.KeyEvent evt) { botaoEntrarIniciall1KeyPressed(evt); } }); getContentPane().add(botaoEntrarIniciall1); botaoEntrarIniciall1.setBounds(560, 640, 160, 40); nomePeca.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N nomePeca.addFocusListener(new java.awt.event.FocusAdapter() { public void focusGained(java.awt.event.FocusEvent evt) { nomePecaFocusGained(evt); } }); nomePeca.addKeyListener(new java.awt.event.KeyAdapter() { public void keyPressed(java.awt.event.KeyEvent evt) { nomePecaKeyPressed(evt); } }); getContentPane().add(nomePeca); nomePeca.setBounds(30, 220, 210, 30); valorFrete.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N valorFrete.setText("0,00"); valorFrete.addFocusListener(new java.awt.event.FocusAdapter() { public void focusGained(java.awt.event.FocusEvent evt) { valorFreteFocusGained(evt); } }); valorFrete.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { valorFreteActionPerformed(evt); } }); valorFrete.addKeyListener(new java.awt.event.KeyAdapter() { public void keyPressed(java.awt.event.KeyEvent evt) { valorFreteKeyPressed(evt); } }); getContentPane().add(valorFrete); valorFrete.setBounds(280, 300, 140, 30); jLabel30.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N jLabel30.setForeground(new java.awt.Color(255, 255, 255)); jLabel30.setText("VALOR DO FRETE"); getContentPane().add(jLabel30); jLabel30.setBounds(280, 270, 140, 17); jLabel23.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N jLabel23.setForeground(new java.awt.Color(255, 255, 255)); jLabel23.setText("NOME"); getContentPane().add(jLabel23); jLabel23.setBounds(30, 190, 150, 17); jLabel25.setFont(new java.awt.Font("Tahoma", 1, 18)); // NOI18N jLabel25.setForeground(new java.awt.Color(255, 0, 0)); jLabel25.setHorizontalAlignment(javax.swing.SwingConstants.CENTER); jLabel25.setText("*"); getContentPane().add(jLabel25); jLabel25.setBounds(400, 170, 40, 60); jLabel31.setFont(new java.awt.Font("Tahoma", 1, 18)); // NOI18N jLabel31.setForeground(new java.awt.Color(255, 0, 0)); jLabel31.setText("*"); getContentPane().add(jLabel31); jLabel31.setBounds(750, 160, 30, 80); jLabel12.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagens/fundo preto.png"))); // NOI18N jLabel12.setMinimumSize(new java.awt.Dimension(1057, 340)); jLabel12.setPreferredSize(new java.awt.Dimension(1057, 350)); getContentPane().add(jLabel12); jLabel12.setBounds(-80, 4, 760, 77); jLabel24.setFont(new java.awt.Font("Tahoma", 1, 18)); // NOI18N jLabel24.setForeground(new java.awt.Color(255, 0, 0)); jLabel24.setText("*"); getContentPane().add(jLabel24); jLabel24.setBounds(90, 170, 30, 60); jLabel13.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagens/PROCURA HEHE.png"))); // NOI18N getContentPane().add(jLabel13); jLabel13.setBounds(700, 610, 80, 70); jLabel27.setFont(new java.awt.Font("Tahoma", 1, 18)); // NOI18N jLabel27.setForeground(new java.awt.Color(255, 0, 0)); jLabel27.setHorizontalAlignment(javax.swing.SwingConstants.CENTER); jLabel27.setText("*"); getContentPane().add(jLabel27); jLabel27.setBounds(230, 250, 40, 60); jLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagens/fundo preto.png"))); // NOI18N jLabel1.setMinimumSize(new java.awt.Dimension(1057, 340)); jLabel1.setPreferredSize(new java.awt.Dimension(1057, 350)); getContentPane().add(jLabel1); jLabel1.setBounds(140, 4, 760, 77); jLabel37.setFont(new java.awt.Font("Tahoma", 1, 18)); // NOI18N jLabel37.setForeground(new java.awt.Color(255, 0, 0)); jLabel37.setText("*"); getContentPane().add(jLabel37); jLabel37.setBounds(420, 250, 30, 60); jLabel26.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagens/atua.png"))); // NOI18N getContentPane().add(jLabel26); jLabel26.setBounds(170, 610, 80, 70); jLabel11.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagens/FUNDO AMARELO.jpg"))); // NOI18N getContentPane().add(jLabel11); jLabel11.setBounds(0, -331, 810, 430); jLabel7.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagens/RS.png"))); // NOI18N getContentPane().add(jLabel7); jLabel7.setBounds(310, 10, 610, 530); jLabel8.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagens/RS.png"))); // NOI18N getContentPane().add(jLabel8); jLabel8.setBounds(320, 340, 570, 530); jLabel9.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagens/RS.png"))); // NOI18N getContentPane().add(jLabel9); jLabel9.setBounds(-20, 450, 570, 530); jLabel10.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagens/RS.png"))); // NOI18N getContentPane().add(jLabel10); jLabel10.setBounds(0, 0, 570, 530); mostrarNivel.setFont(new java.awt.Font("Tahoma", 1, 18)); // NOI18N mostrarNivel.setHorizontalAlignment(javax.swing.SwingConstants.CENTER); mostrarNivel.setText("5"); getContentPane().add(mostrarNivel); mostrarNivel.setBounds(520, 130, 50, 70); acessoUser.setFont(new java.awt.Font("Tahoma", 1, 10)); // NOI18N acessoUser.setHorizontalAlignment(javax.swing.SwingConstants.CENTER); acessoUser.setText("ADMIN"); getContentPane().add(acessoUser); acessoUser.setBounds(520, 220, 70, 60); setBounds(427, 5, 790, 716); }
{ "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.73195875", "0.7291065", "0.7291065", "0.7291065", "0.7286258", "0.7248489", "0.7213822", "0.7208757", "0.7195916", "0.7190243", "0.7184025", "0.71591616", "0.7148041", "0.70930153", "0.7080625", "0.7056986", "0.6987694", "0.69770867", "0.6955136", "0.69538426", "0.69452894...
0.0
-1
Local interface for Enterprise Bean: CSActsWorker
public interface CSActsWorkerLocal extends javax.ejb.EJBLocalObject { /** * Returns the cdFipsWrkr. * @return String */ public String getCdFipsWrkr(); /** * Returns the cdWrkrType. * @return String */ public String getCdWrkrType(); /** * Returns the csActsWorkerInquiry. * @return CSActsWorkerInquiry */ public CSActsWorkerInquiry getCsActsWorkerInquiry(); /** * getEntityContext */ public javax.ejb.EntityContext getEntityContext(); /** * Returns the idEmail. * @return String */ public String getIdEmail(); /** * Returns the idWrkr. * @return String */ public String getIdWrkr(); /** * Returns the idWrkrLogon. * @return String */ public String getIdWrkrLogon(); /** * Returns the myEntityCtx. * @return javax.ejb.EntityContext */ public javax.ejb.EntityContext getMyEntityCtx(); /** * Returns the nbFaxWorker. * @return String */ public String getNbFaxWorker(); /** * Returns the nbTelWorker. * @return String */ public String getNbTelWorker(); /** * Returns the nmWrkr. * @return String */ public String getNmWrkr(); /** * Returns the tmLunchEnd. * @return String */ public String getTmLunchEnd(); /** * Returns the tmLunchStart. * @return String */ public String getTmLunchStart(); /** * Returns the tmWorkEnd. * @return String */ public String getTmWorkEnd(); /** * Returns the tmWorkStart. * @return String */ public String getTmWorkStart(); /** * Sets the cdFipsWrkr. * @param cdFipsWrkr The cdFipsWrkr to set */ public void setCdFipsWrkr(String cdFipsWrkr); /** * Sets the cdWrkrType. * @param cdWrkrType The cdWrkrType to set */ public void setCdWrkrType(String cdWrkrType); /** * Sets the csActsWorkerInquiry. * @param csActsWorkerInquiry The csActsWorkerInquiry to set */ public void setCsActsWorkerInquiry(CSActsWorkerInquiry csActsWorkerInquiry); /** * setEntityContext */ public void setEntityContext(javax.ejb.EntityContext ctx); /** * Sets the idEmail. * @param idEmail The idEmail to set */ public void setIdEmail(String idEmail); /** * Sets the idWrkr. * @param idWrkr The idWrkr to set */ public void setIdWrkr(String idWrkr); /** * Sets the idWrkrLogon. * @param idWrkrLogon The idWrkrLogon to set */ public void setIdWrkrLogon(String idWrkrLogon); /** * Sets the myEntityCtx. * @param myEntityCtx The myEntityCtx to set */ public void setMyEntityCtx(javax.ejb.EntityContext myEntityCtx); /** * Sets the nbFaxWorker. * @param nbFaxWorker The nbFaxWorker to set */ public void setNbFaxWorker(String nbFaxWorker); /** * Sets the nbTelWorker. * @param nbTelWorker The nbTelWorker to set */ public void setNbTelWorker(String nbTelWorker); /** * Sets the nmWrkr. * @param nmWrkr The nmWrkr to set */ public void setNmWrkr(String nmWrkr); /** * Sets the tmLunchEnd. * @param tmLunchEnd The tmLunchEnd to set */ public void setTmLunchEnd(String tmLunchEnd); /** * Sets the tmLunchStart. * @param tmLunchStart The tmLunchStart to set */ public void setTmLunchStart(String tmLunchStart); /** * Sets the tmWorkEnd. * @param tmWorkEnd The tmWorkEnd to set */ public void setTmWorkEnd(String tmWorkEnd); /** * Sets the tmWorkStart. * @param tmWorkStart The tmWorkStart to set */ public void setTmWorkStart(String tmWorkStart); /** * Returns the actsWorkerEntityBean. * @return ActsWorkerEntityBean */ public ActsWorkerEntityBean getActsWorkerEntityBean(); /** * Sets the actsWorkerEntityBean. * @param actsWorkerEntityBean The actsWorkerEntityBean to set */ public void setActsWorkerEntityBean(ActsWorkerEntityBean actsWorkerEntityBean); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface WorkService {\n}", "public interface Worker {\n\n\tvoid activate(String filteredClassValue);\n\n\tvoid stop();\n\n}", "public interface WorkConsumerService{\n\n /**\n * Consumes a single work unit.\n * <p>\n * Blocks for 15 s or until a work unit becomes consumable, if there is ...
[ "0.70601654", "0.69669116", "0.6927135", "0.6858945", "0.6764302", "0.6448627", "0.6422548", "0.6372248", "0.6350892", "0.6331331", "0.6298812", "0.6235078", "0.62081105", "0.6198998", "0.6198998", "0.6147439", "0.6146071", "0.6132504", "0.6122055", "0.61195976", "0.61022764"...
0.6898305
3
/ Based on the request message from client, respond in a particular way. Received requests can be: USER details related USERS ADD NAME HOST PORT > request the webserver to add a user (with name NAME) to the DB. USERS REQ > request the webserver a complete list of all users registered FILE details related (for each user) (try and deserialize it and see if it holds) > register given serialized TreeNode in the system. FILES REQ NAME > request TreeNode for NAME. USERS EXIT NAME > request the webserver to delete a user (with name NAME), as he is going to exit > also webserver will delete the TreeNode associated w/ NAME.
private byte[] getBytesToSendBack(ServerDataEvent dataEvent) { /* Default response. */ byte[] response = "ACK".getBytes(); /* First try and see if it's a TreeNode sent. */ TreeNode root = null; try { root = (TreeNode)SerializationHelper.deserialize(dataEvent.data); } catch (ClassNotFoundException | IOException e) {} /* If we've got a root, then we received a TreeNode register request. */ if (root != null) { String userName = root.toString(); logger.debug("Request received: TreeNode upload for " + userName); /* Adding as byte[] array is easier, as it doesn't require * serialization again for requests, just send it. */ dataEvent.server.addUserFiles(userName, dataEvent.data); } else { String request = new String(dataEvent.data); logger.debug("Request received: " + request); String[] strs = request.split(" "); if (strs[0].equals("USERS")) { if (strs[1].equals("ADD")) { assert(strs.length == 5); dataEvent.server.addUser(strs[2], strs[3], Integer.parseInt(strs[4])); } else if (strs[1].equals("REQ")) { response = dataEvent.server.getUsers().getBytes(); } else if (strs[1].equals("EXIT")) { assert(strs.length == 3); dataEvent.server.removeUser(strs[2]); dataEvent.server.removeUserFiles(strs[2]); } logger.debug("Users are: " + dataEvent.server.getUsers()); } else if(strs[0].equals("FILES")) { if (strs[1].equals("REQ")) { String userName = strs[2]; logger.debug("Server received FILES REQ for " + userName); response = dataEvent.server.getUserFiles(userName); } } } return response; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Message handleRequest(Message request){\n\n Message error = new Message(Message.GENERIC_ERROR);\n\n switch (request.getId()){\n\n case Message.LOGIN:\n return handleLogin(request);\n case Message.CREATE_DOCUMENT:\n return handleCreate(request...
[ "0.6193863", "0.6036721", "0.60309947", "0.5989549", "0.59739906", "0.5968205", "0.59162736", "0.58716", "0.58591574", "0.58347917", "0.58145607", "0.5757616", "0.5751143", "0.5720772", "0.57164663", "0.5693545", "0.5674772", "0.5668415", "0.5658284", "0.5637865", "0.5633663"...
0.63031495
0
This is the line written from gitbash and pushed to github//
@Parameters({ "browser" }) @BeforeSuite public void setUpInParent(@Optional(browser_name) String browser) { configFile = new ReadProperties(config_file_path); String chrome_path = configFile.getPropertyValue(browser_name); String url_location = configFile.getPropertyValue(browser_url); if (browser.equalsIgnoreCase(browser_name)) { System.setProperty(webdriver_chrome_driver, chrome_path); driver = new ChromeDriver(); driver.get(url_location); driver.manage().deleteAllCookies(); driver.manage().window().maximize(); driver.manage().timeouts().implicitlyWait(20, TimeUnit.SECONDS); driver.manage().timeouts().pageLoadTimeout(20, TimeUnit.SECONDS); } wait=new WebDriverWait(driver, 5); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void gitThis(){\n\t}", "public static void main(String[] args) {\nSystem.out.println(\"nagarjuna is .................\");\r\n//second commit\r\nSystem.out.println(\"vinay is ..............................\");\r\n//third commit\r\nSystem.out.println(\"vinay is a ?\");\r\n\t}", "public static void main(St...
[ "0.68387693", "0.62816554", "0.61003345", "0.6049608", "0.6033905", "0.5973052", "0.5934647", "0.59059966", "0.5858118", "0.5836003", "0.5800465", "0.5777817", "0.57571584", "0.56991446", "0.5659074", "0.5642632", "0.5612075", "0.55439115", "0.5536158", "0.54772323", "0.54510...
0.0
-1
TODO Autogenerated method stub
@Override protected void onCreate(Bundle arg0) { super.onCreate(arg0); db = new Db(this); setContentView(R.layout.activity_test); //创建观察者 observer = new MyContentObserver(new Handler()); //Uri uri=Uri.parse("content://account/add/1); //Uri uri=Uri.parse("content://account/add/2); Uri uri=Uri.parse("content://account/add"); //Descendents 子孙 //notifyForDescendents 是否通知子路径 getContentResolver().registerContentObserver(uri, true, observer); }
{ "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 onDestroy() { super.onDestroy(); getContentResolver().unregisterContentObserver(observer); }
{ "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
Constructor of the powerup.
public PowerUp(String imagePath){ super(imagePath); this.setPosition(); setAlive(false); point=new Point(rand.nextDouble()* Window.getWidth(),rand.nextDouble()* Window.getHeight()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ProductionPower(){\n this(0, new NumberOfResources(), new NumberOfResources(), 0, 0);\n }", "public BubblePowerUp() {\n super(-50, -50);\n \n }", "public ElectricShower() {\r\n\t\tthis(12, 0, 4);\r\n\t}", "private PowerSubsystem() {\n mPdp = new PowerDistributionPanel...
[ "0.734181", "0.6736299", "0.6586026", "0.6578571", "0.6516289", "0.65150565", "0.64740133", "0.6440814", "0.6320475", "0.6271779", "0.6188817", "0.6176091", "0.613442", "0.613396", "0.6126092", "0.60928833", "0.60863465", "0.60789686", "0.6071844", "0.60709924", "0.6068635", ...
0.60318744
24
Intermediate operations are operations that produce a new stream, e.g. map, filter, distinct and sorted Good to note: Intermediate variables here only to clarify the process. Since streams can be consumed only once, these operations are often chained without intermediate variables.
@Test public void intermediateOperations() { Stream<Book> books = TestData.getBooks().stream(); // filter Stream<Book> booksWithMultipleAuthors = books.filter(book -> book.hasMultipleAuthors()); // map Stream<String> namesStream = booksWithMultipleAuthors.map(book -> book.getName()); Set<String> expected = Sets.newHashSet("Design Patterns: Elements of Reusable Object-Oriented Software", "Structure and Interpretation of Computer Programs"); assertEquals(expected, namesStream.collect(Collectors.toSet())); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void intermediateAndTerminalOperations() throws Exception {\n System.out.println(\n MockData.getCars()\n // Here we go to \"abstraction\" of strams\n .stream()\n // This is an intermediate op because we stay in the abstraction\n .filter(car -> {...
[ "0.7203156", "0.5631429", "0.5508141", "0.5409803", "0.54034853", "0.5399074", "0.5377607", "0.53469956", "0.53450274", "0.52855086", "0.52488005", "0.5193727", "0.5184516", "0.5124545", "0.51031923", "0.5055176", "0.5049245", "0.50317246", "0.50255793", "0.50187534", "0.4991...
0.6229671
1
Terminal operations are operations that consume the stream to produce a result or a sideeffect. Some examples: reduce, count, collect, foreach, findAny, findFirst Note that after a stream is consumed (by doing a terminal operation), it can't be used any more.
@Test public void terminalOperations() { // count assertEquals(4, TestData.getBooks().stream().count()); // findFirst Optional<Book> gangOfFour = TestData.getBooks().stream() .filter(book -> book.name.equals("Design Patterns: Elements of Reusable Object-Oriented Software")) .findFirst(); assertTrue(gangOfFour.isPresent()); assertEquals(4, gangOfFour.get().authors.size()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void intermediateAndTerminalOperations() throws Exception {\n System.out.println(\n MockData.getCars()\n // Here we go to \"abstraction\" of strams\n .stream()\n // This is an intermediate op because we stay in the abstraction\n .filter(car -> {...
[ "0.6338699", "0.57074285", "0.5621041", "0.540977", "0.5166127", "0.5160726", "0.5142562", "0.51319087", "0.5007174", "0.5005964", "0.49120566", "0.48869622", "0.48645413", "0.48590916", "0.4821898", "0.4758245", "0.4755964", "0.47309443", "0.47177225", "0.46892264", "0.46877...
0.5384859
4
After terminal operation, stream can't be used any more. Some notes on this at
@Test public void terminalOperationsIndeed() { Stream<Book> bookStream = TestData.getBooks().stream(); assertEquals(4, bookStream.count()); try { bookStream.count(); fail("No expection got?"); } catch(IllegalStateException e) { // We got exception as expected } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void resetIO()\r\n {\r\n // Clear out all the stream history stuff\r\n tcIn = null;\r\n tcOut = null;\r\n tcInBuf = null;\r\n\r\n // Make sure these are history-wrapped\r\n SystemIOUtilities.out().clearHistory();\r\n SystemIOUtilities.err().clearHistory...
[ "0.62651485", "0.6078019", "0.601068", "0.5950742", "0.5908836", "0.5825116", "0.57988894", "0.57957244", "0.57229996", "0.57104933", "0.57057786", "0.56775403", "0.56336975", "0.56286645", "0.56217927", "0.5619529", "0.56104225", "0.5610283", "0.558243", "0.55524635", "0.554...
0.5686825
11
Collecting stream elements to can be done manually with general reduce U reduce(U identity, BiFunction accumulator, BinaryOperator combiner);
@Test public void collectAndReduce() { List<Book> collectedWithReduce = TestData.getBooks().stream() .reduce(new ArrayList<Book>(), (list, book) -> { // Separate list created to avoid mutating elements in the list // -> works also with parallel streams ArrayList<Book> result = new ArrayList<Book>(list); result.add(book); return result; }, (list1, list2) -> { ArrayList<Book> result = new ArrayList<Book>(list1); result.addAll(list2); return result; }); assertEquals(4, collectedWithReduce.size()); // Collect to list "manually" with collect // R collect(Supplier<R> supplier, BiConsumer<R, ? super T> accumulator, // BiConsumer<R, R> combiner) List<Book> books = TestData.getBooks().stream() .collect(ArrayList::new, ArrayList::add, ArrayList::addAll); assertEquals(4, books.size()); // And the typical way using utilities from java.util.stream.Collectors assertEquals(4, TestData.getBooks().stream().collect(Collectors.toList()).size()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void streamApiTest(){\n Collection<Integer> myCollection=initializeIntCollection(3,5);\n\n long sumOfOddValues3times=myCollection.stream().\n filter(o -> o % 2 ==1). // for all odd numbers\n mapToInt(o -> o*3). // multiply their value on 3\n ...
[ "0.5897748", "0.58082116", "0.5806185", "0.57786554", "0.5752171", "0.56174064", "0.55730516", "0.557184", "0.55597985", "0.5549976", "0.5368975", "0.5347033", "0.531308", "0.5307659", "0.53040135", "0.5280046", "0.5258525", "0.5206923", "0.5203229", "0.51738024", "0.5168428"...
0.6641815
0
Finds MenuPermissionEntity by UserGroupEntity.
List<MenuPermissionEntity> findByUserGroup(UserGroupEntity userGroup);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "List<MenuPermissionEntity> deleteByUserGroup(UserGroupEntity userGroup);", "UserGroup findById(String groupId);", "UserGroup selectByPrimaryKey(Long id_user_group);", "GroupUser getGroupUserById(String id);", "public Collection<PrivilegeEntity> getGroupPrivileges(GroupEntity groupEntity) {\n if (groupEn...
[ "0.68260324", "0.6186708", "0.6171006", "0.5621693", "0.5544397", "0.5498723", "0.543434", "0.5408689", "0.535112", "0.5344652", "0.5331008", "0.53174835", "0.5283171", "0.52599853", "0.5255668", "0.52503955", "0.5245351", "0.52340275", "0.5215943", "0.51831174", "0.5155267",...
0.85094607
0
Deletes MenuPermissionsEntity by UserGroupEntity.
List<MenuPermissionEntity> deleteByUserGroup(UserGroupEntity userGroup);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int deleteByPrimaryKey(Long id_user_group);", "public void deleteMenu() {\n deleteMenuGroupError = true;\n String input = FacesContext.getCurrentInstance().getExternalContext().getRequestParameterMap().get(\"menu_id\");\n menu_id = Integer.parseInt(input);\n setMenu_id(menu_id);\n ...
[ "0.64649487", "0.63679594", "0.6282049", "0.6162721", "0.6078608", "0.60394925", "0.5969641", "0.5961427", "0.5926724", "0.58423936", "0.5763792", "0.57360566", "0.57335216", "0.56969684", "0.5686472", "0.5672965", "0.56447846", "0.56447846", "0.559696", "0.5573369", "0.55662...
0.8563621
0
Constructs an object of class EnableOrcNature.
public EnableOrcNature() { /* Nothing to do */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Orc() {\n\t\tsuper(\"Orc\" , 4);\n\t\t\n\t}", "Oracion createOracion();", "public XpeDccNewContractSetupROVORowImpl() {\n }", "public abstract Anuncio creaAnuncioTematico();", "public OrGate() {\n\t\tsuper(2, 1);\n\t}", "public TutorIndustrial() {}", "public com.vodafone.global.er.decoupling....
[ "0.64391947", "0.6085126", "0.5511212", "0.53932065", "0.53892946", "0.53672814", "0.5273764", "0.5253605", "0.5194801", "0.5181712", "0.5181076", "0.50568205", "0.505335", "0.50481164", "0.50294423", "0.5020734", "0.5017471", "0.5010259", "0.5008083", "0.5007941", "0.5005384...
0.8090398
0
/ Nothing to do
@Override public void dispose() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final void mo51373a() {\n }", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void comer() {\n\t\t...
[ "0.65895355", "0.6489548", "0.64344335", "0.64179164", "0.6362693", "0.63369465", "0.628753", "0.6257722", "0.62229055", "0.62229055", "0.62133396", "0.6181253", "0.6178429", "0.6171697", "0.6160862", "0.6153748", "0.613395", "0.6132096", "0.61125517", "0.6109009", "0.6109009...
0.0
-1
/ Nothing to do
@Override public void init(final IWorkbenchWindow window) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final void mo51373a() {\n }", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void comer() {\n\t\t...
[ "0.6590924", "0.64903784", "0.6434677", "0.6417911", "0.6363197", "0.63366836", "0.628781", "0.62571955", "0.62234044", "0.62234044", "0.6213766", "0.6181998", "0.61782545", "0.61718345", "0.6160147", "0.6154202", "0.6134151", "0.6132306", "0.61133564", "0.61095804", "0.61095...
0.0
-1
Log.d("TAG1", "onPageScrolled() called with: position = [" + position + "], positionOffset = [" + positionOffset + "], positionOffsetPixels = [" + positionOffsetPixels + "]");
@Override public void onPageScrolled(int position, float positionOffset, int positionOffsetPixels) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onPageScrolled(int position, float positionOffset, int positionOffsetPixels) {\n Log.d(TAG, \"onPageScrolled: position=\"+position+\",positionOffset=\"+positionOffset+\",positionOffsetPixels=\"+positionOffsetPixels);\n }", "@Override\n public void onPageScrolle...
[ "0.8918307", "0.85791904", "0.85403544", "0.84533006", "0.8436696", "0.8399442", "0.8399442", "0.83948517", "0.8369267", "0.83467406", "0.8336965", "0.83356017", "0.8324185", "0.83166265", "0.83166265", "0.83166265", "0.8302138", "0.8302138", "0.8302138", "0.8302138", "0.8302...
0.8238574
40
Processes requests for both HTTP GET and POST methods.
protected void processRequest(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.setContentType("text/html;charset=UTF-8"); Calculadora calculadora = new Calculadora(); String secue = request.getParameter("secuencia30"); String secuene = request.getParameter("7secuenega"); String press = request.getParameter("10prestecla"); String nombre = request.getParameter("nombre"); int numpares = Integer.parseInt(request.getParameter("1par")); int produnum1 = Integer.parseInt(request.getParameter("2product1")); int produnum2 = Integer.parseInt(request.getParameter("2product2")); int may3_1 = Integer.parseInt(request.getParameter("3may1")); int may3_2 = Integer.parseInt(request.getParameter("3may2")); int may4_1 = Integer.parseInt(request.getParameter("4may1")); int may4_2 = Integer.parseInt(request.getParameter("4may2")); int may4_3 = Integer.parseInt(request.getParameter("4may3")); int tablamult = Integer.parseInt(request.getParameter("5tablamult")); int prosum8_1 = Integer.parseInt(request.getParameter("8prosum1")); int prosum8_2 = Integer.parseInt(request.getParameter("8prosum1")); int div9_1 = Integer.parseInt(request.getParameter("9div1")); int div9_2 = Integer.parseInt(request.getParameter("9div2")); String[] secuencia = secue.split(" "); String[] secuencianega = secuene.split(" "); String[] press_10_dat = press.split(" "); try (PrintWriter out = response.getWriter()) { out.println("<!DOCTYPE html>"); out.println("<html>"); out.println("<head>"); out.println("<link href='https://fonts.googleapis.com/css?family=Nunito' rel='stylesheet'>"); out.println("<link rel='stylesheet' href='estilos.css' />"); out.println("<title>Resultados</title>"); out.println("</head>"); out.println("<body>"); out.println("<div id='formulario'>"); out.println("<div id='titulo'>Bienvenido " + nombre + "</div>"); out.println("<form name='form'>"); out.println("<h2>1. Numero par o impar</h2>"); out.println(calculadora.pares(numpares)); out.println("<h2>2. Producto dos numeros</h2>"); out.println(calculadora.produs(produnum1, produnum2)); out.println("<h2>3. Numero mayor(Dos Numeros)</h2>"); out.println(calculadora.nummay(may3_1, may3_2)); out.println("<h2>4. Numero mayor(Tres Numeros)</h2>"); out.println(calculadora.nummay3(may4_1, may4_2, may4_3)); out.println("<h2>5. Tabla Multiplicar</h2>"); out.println(calculadora.tablamult(tablamult)); out.println("<h2>6. Secuencia 30 Numeros - Suma y Producto</h2>"); out.println(calculadora.produsum(secuencia)); out.println("<h2>7. Sumar hasta negativo encontrado</h2>"); out.println(calculadora.septima_opcion_negativo(secuencianega)); out.println("<h2>8. Producto mediante sumas</h2>"); out.println(calculadora.prosum(prosum8_1, prosum8_2)); out.println("<h2>9. Division Mediante Restas</h2>"); out.println(calculadora.divirest(div9_1, div9_2)); out.println("<h2>10. Producto hasta presionar tecla</h2>"); out.println(calculadora.decima_opcion_producto(press_10_dat)); out.println("</form>"); out.println("<div id='creditos'></div>"); out.println("</div>"); out.println("</body>"); out.println("</html>"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void doPost(final HttpServletRequest req, final HttpServletResponse resp) throws ServletException, IOException {\n final String method = req.getParameter(METHOD);\n if (GET.equals(method)) {\n doGet(req, resp);\n } else {\n resp.setStatus(HttpServletResponse.SC_METHOD_NOT_...
[ "0.7003337", "0.66585124", "0.66023004", "0.65085584", "0.6446528", "0.6441425", "0.64401287", "0.64316165", "0.64271754", "0.64235586", "0.64235586", "0.6418961", "0.6418961", "0.6418961", "0.6417602", "0.64138156", "0.64138156", "0.6399609", "0.63932025", "0.63932025", "0.6...
0.0
-1
Handles the HTTP GET method.
@Override protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { processRequest(request, response); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void doGet( )\n {\n \n }", "@Override\n\tprotected void executeGet(GetRequest request, OperationResponse response) {\n\t}", "@Override\n\tprotected Method getMethod() {\n\t\treturn Method.GET;\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) thro...
[ "0.7589609", "0.71665615", "0.71148175", "0.705623", "0.7030174", "0.70291144", "0.6995984", "0.697576", "0.68883485", "0.6873811", "0.6853569", "0.6843572", "0.6843572", "0.6835363", "0.6835363", "0.6835363", "0.68195957", "0.6817864", "0.6797789", "0.67810035", "0.6761234",...
0.0
-1
Handles the HTTP POST method.
@Override protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { processRequest(request, response); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void doPost(Request request, Response response) {\n\n\t}", "@Override\n protected void doPost(HttpServletRequest req, HttpServletResponse resp) {\n }", "public void doPost( )\n {\n \n }", "@Override\n public String getMethod() {\n return \"POST\";\n ...
[ "0.7328923", "0.71375936", "0.7116379", "0.7105418", "0.7100661", "0.7022967", "0.7016274", "0.69642067", "0.6889007", "0.6783552", "0.67732364", "0.6746842", "0.66676646", "0.6558366", "0.6557279", "0.6525134", "0.6524604", "0.6524604", "0.6524604", "0.6522886", "0.65200865"...
0.0
-1
Returns a short description of the servlet.
@Override public String getServletInfo() { return "Short description"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getServletInfo()\n {\n return \"Short description\";\n }", "public String getServletInfo() {\n return \"Short description\";\n }", "public String getServletInfo() {\n return \"Short description\";\n }", "public String getServletInfo() {\n return \"Short d...
[ "0.8763002", "0.8731796", "0.8731796", "0.8731796", "0.8731796", "0.8731796", "0.8731796", "0.8731796", "0.8731796", "0.8731796", "0.8731796", "0.86987144", "0.86987144", "0.86987144", "0.86987144", "0.86987144", "0.86987144", "0.85310906", "0.85310906", "0.8527943", "0.85279...
0.0
-1
/SharedPreferences SPreferences = PreferenceManager.getDefaultSharedPreferences(this); SharedPreferences.Editor editorPreferences = SPreferences.edit();
public void btnNextClicked(){ fname = etFName.getText().toString(); lname = etLName.getText().toString(); country = spcountry.getSelectedItem().toString(); description = etDescription.getText().toString(); phone = etPhone.getText().toString(); controller.setData(fname,lname,country,description,phone); controller.putStringData(this); /*editorPreferences.putString("First Name: ",user.getFirstName()); editorPreferences.putString("Last Name: ",user.getLastName()); editorPreferences.putString("Country : ",user.getCountry()); editorPreferences.putString("Description : ",user.getDescription()); editorPreferences.putString("Phone Number : ",user.getPhone()); editorPreferences.apply();*/ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void makePref(){\n //Creates a shared pref called MyPref and 0-> MODE_PRIVATE\n sharedPref = getSharedPreferences(AppCSTR.PREF_NAME, Context.MODE_PRIVATE);\n //so the pref can be edit\n edit = sharedPref.edit();\n}", "SharedPreferences mo117960a();", "public SharedPreferences getPrefs...
[ "0.78275067", "0.7749128", "0.75769514", "0.7465765", "0.7280626", "0.7255845", "0.71850145", "0.71786314", "0.71786314", "0.71733314", "0.71558815", "0.7114357", "0.71008855", "0.7083009", "0.7012126", "0.6988179", "0.6978849", "0.6977322", "0.69423634", "0.6924112", "0.6897...
0.0
-1
Creates a new ConcurrentTestCase object.
public AbstractConcurrentTestCase() { mainThread = Thread.currentThread(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public TestJSR88Concurrency() {\n }", "public TestInvoker()\n {\n super(new TestClient(), new ThreadPoolExecutorImpl(3));\n }", "@Test\n public void construtorTest() {\n ThreadObserveSample person = new ThreadObserveSample(\"test\");\n }", "public ParallelUtilTest(\n Strin...
[ "0.6385201", "0.6181517", "0.6064545", "0.5976038", "0.5835125", "0.57514876", "0.5610629", "0.5605421", "0.5602463", "0.55935985", "0.5562446", "0.5553029", "0.5538029", "0.5532886", "0.5532886", "0.5532886", "0.5510925", "0.5470384", "0.5465818", "0.5452482", "0.5452482", ...
0.7218378
0
Fails the current test for the given reason.
public void threadFail(String reason) { threadFail(new AssertionError(reason)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void fail( String reason );", "public TestCase fail();", "@Override\n\t\t\t\tpublic void doFail() {\n\t\t\t\t}", "@Test\n public void testFail(){\n fail(\"This is meant to fail\");\n }", "@Test\n void fail_the_test() {\n }", "default void failWithReason(final String name, final ...
[ "0.825232", "0.70271915", "0.6945516", "0.68899786", "0.6755509", "0.66816956", "0.6678286", "0.667625", "0.66581994", "0.6650765", "0.662782", "0.65919054", "0.6579502", "0.65346503", "0.6530183", "0.6467911", "0.64566296", "0.64523", "0.64165694", "0.64165694", "0.6364113",...
0.71527576
1
Fails the current test with the given Throwable.
public void threadFail(Throwable e) { failure = e; resume(mainThread); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void testFail() throws Throwable {\n Scheduler userInt = SchedulerTHelper.getSchedulerInterface();\n\n for (int i = 0; i < jobs_fail; i++) {\n String job_path = new File(jobs_path.toURI()).getAbsolutePath() + \"/flow_fail_\" + (i + 1) +\n \".xml\";\n\n ...
[ "0.6747252", "0.6711574", "0.6655407", "0.6640734", "0.6640734", "0.644172", "0.63977563", "0.6391107", "0.634957", "0.6344359", "0.63346", "0.63188064", "0.6315384", "0.6275779", "0.6275472", "0.6264246", "0.6240773", "0.62364423", "0.6225857", "0.6198021", "0.61807233", "...
0.6593434
5
Resumes the main test thread.
protected void resume() { resume(mainThread); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void resume() throws ADBServerNeedRestartException {\n mStatus = STATUS.RESUMED;\n mTestThread = new TestSessionThread(this);\n if (!isADBServerRestartedMode()) {\n CUIOutputStream.println(\"resume test plan \" + getSessionLog().getTestPlanName()\n + \" (s...
[ "0.7344973", "0.7339511", "0.6923242", "0.6922145", "0.6916395", "0.6859968", "0.6859968", "0.6859968", "0.6832148", "0.6792804", "0.67817175", "0.67746675", "0.6764574", "0.67585903", "0.6756307", "0.67543983", "0.66795963", "0.6674413", "0.66420424", "0.6615113", "0.6615113...
0.8259078
0
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.
@SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { jPanel1 = new javax.swing.JPanel(); inicioSesion = new javax.swing.JButton(); salir = new javax.swing.JButton(); usuario = new javax.swing.JTextField(); password = new javax.swing.JTextField(); jLabel1 = new javax.swing.JLabel(); jLabel2 = new javax.swing.JLabel(); info = new javax.swing.JLabel(); setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); setTitle("Inicio Sesion"); inicioSesion.setText("Inicio Sesion"); inicioSesion.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { inicioSesionActionPerformed(evt); } }); salir.setText("Salir"); salir.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { salirActionPerformed(evt); } }); usuario.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { usuarioActionPerformed(evt); } }); password.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { passwordActionPerformed(evt); } }); jLabel1.setText("Usuario"); jLabel2.setText("Password"); info.setHorizontalAlignment(javax.swing.SwingConstants.CENTER); 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() .addGap(33, 33, 33) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(info, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGroup(jPanel1Layout.createSequentialGroup() .addComponent(inicioSesion, javax.swing.GroupLayout.PREFERRED_SIZE, 130, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 54, Short.MAX_VALUE) .addComponent(salir, javax.swing.GroupLayout.PREFERRED_SIZE, 130, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(jPanel1Layout.createSequentialGroup() .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(jLabel1, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabel2, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addGap(18, 18, 18) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(usuario) .addComponent(password, javax.swing.GroupLayout.DEFAULT_SIZE, 200, Short.MAX_VALUE)))) .addGap(33, 33, 33)) ); jPanel1Layout.setVerticalGroup( jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup() .addGap(39, 39, 39) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(usuario, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(47, 47, 47) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(password, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 33, Short.MAX_VALUE) .addComponent(info, javax.swing.GroupLayout.PREFERRED_SIZE, 17, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(18, 18, 18) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(inicioSesion, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(salir, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(44, 44, 44)) ); javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); getContentPane().setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addContainerGap() .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addContainerGap()) ); layout.setVerticalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addContainerGap() .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addContainerGap()) ); 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.73192346", "0.7290526", "0.7290526", "0.7290526", "0.7285891", "0.72480357", "0.7213616", "0.7207808", "0.71955067", "0.71891475", "0.71844363", "0.7159038", "0.71474695", "0.7092269", "0.7079923", "0.70560205", "0.69864315", "0.697697", "0.69552195", "0.6953691", "0.69458...
0.0
-1
Merge the DataSourced. The data sources to be used are determined by the seed type TEMPLATE: aggregates a list of data source DATASOURCE: only takes a single data source
private static DataSources toDataSources(OutputGenerator outputGenerator, List<DataSource> sharedDataSources) { final List<DataSource> dataSources = outputGenerator.getDataSources(); final SeedType seedType = outputGenerator.getSeedType(); if (seedType == SeedType.TEMPLATE) { return new DataSources(ListUtils.concatenate(dataSources, sharedDataSources)); } else if (seedType == SeedType.DATASOURCE) { // Since every data source shall generate an output there can be only 1 datasource supplied. Validate.isTrue(dataSources.size() == 1, "One data source expected for generation driven by data sources"); return new DataSources(dataSources); } else { throw new IllegalArgumentException("Don't know how to handle the seed type: " + seedType); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n protected DataSource selectAnyDataSource() {\n if (dataSourcesMtApp.isEmpty()) {\r\n List<MasterTenant> masterTenants = masterTenantRepo.findAll();\r\n LOG.info(\">>>> selectAnyDataSource() -- Total tenants:\" + masterTenants.size());\r\n for (MasterTenant m...
[ "0.58101064", "0.5785022", "0.5744678", "0.5661742", "0.56614614", "0.56587523", "0.56584424", "0.55882335", "0.5571446", "0.55638653", "0.55340856", "0.55158615", "0.5495477", "0.5466982", "0.5463926", "0.54208905", "0.54085755", "0.53982025", "0.53949624", "0.5388653", "0.5...
0.6712438
0
Loading FreeMarker templates from absolute paths is not encouraged due to security concern (see which are mostly irrelevant when running on the command line. So we resolve the absolute file instead of relying on existing template loaders.
private static Template template(Configuration configuration, TemplateSource templateSource) { switch (templateSource.getOrigin()) { case TEMPLATE_LOADER: return fromTemplatePath(configuration, templateSource); case TEMPLATE_CODE: return fromTemplateCode(configuration, templateSource); default: throw new IllegalArgumentException("Don't know how to create a template: " + templateSource.getOrigin()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Object findTemplateSource(String name)\r\n/* 33: */ throws IOException\r\n/* 34: */ {\r\n/* 35:67 */ if (this.logger.isDebugEnabled()) {\r\n/* 36:68 */ this.logger.debug(\"Looking for FreeMarker template with name [\" + name + \"]\");\r\n/* 37: */ }\r\n/* 38:70 */ Resource reso...
[ "0.6303969", "0.5841641", "0.5755838", "0.563791", "0.55930483", "0.55862606", "0.5525432", "0.54200697", "0.5365469", "0.532679", "0.5288741", "0.52468055", "0.5151562", "0.5151202", "0.5100635", "0.5088104", "0.508321", "0.5079861", "0.50794053", "0.5063702", "0.50356555", ...
0.46256968
50
Methods used to draw the fluids, credits to TinkerMod Renders the given texture tiled into a GUI
private void renderTiledTextureAtlas(int x, int y, int width, int height, float depth, TextureAtlasSprite sprite, boolean upsideDown) { Tessellator tessellator = Tessellator.getInstance(); BufferBuilder worldrenderer = tessellator.getBuffer(); worldrenderer.begin(GL11.GL_QUADS, DefaultVertexFormats.POSITION_TEX); this.mc.renderEngine.bindTexture(this.fluidStack.getFluid().getFlowing()); this.putTiledTextureQuads(worldrenderer, x, y, width, height, depth, sprite, upsideDown); tessellator.draw(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void renderTex() {\n final float\n w = xdim(),\n h = ydim(),\n x = xpos(),\n y = ypos() ;\n GL11.glBegin(GL11.GL_QUADS) ;\n GL11.glTexCoord2f(0, 0) ;\n GL11.glVertex2f(x, y + (h / 2)) ;\n GL11.glTexCoord2f(0, 1) ;\n GL11.glVertex2f(x + (w / 2), y + h) ;\n GL11.glTex...
[ "0.66482276", "0.65916455", "0.6562017", "0.6548862", "0.6538504", "0.65056556", "0.64797324", "0.6471934", "0.63905627", "0.6349934", "0.63314146", "0.63146824", "0.6311244", "0.6298943", "0.6221687", "0.6221049", "0.619413", "0.6179418", "0.61682886", "0.6119944", "0.610307...
0.56127125
88
Adds a quad to the rendering pipeline. Call startDrawingQuads beforehand. You need to call draw() yourself.
private void putTiledTextureQuads(BufferBuilder renderer, int x, int y, int width, int height, float depth, TextureAtlasSprite sprite, boolean upsideDown) { sprite.initSprite(0, 0, 0, 0, false); float u1 = sprite.getMinU(); float v1 = sprite.getMinV(); // tile vertically do { int renderHeight = Math.min(sprite.getIconHeight(), height); height -= renderHeight; float v2 = sprite.getInterpolatedV(16f * renderHeight / sprite.getIconHeight()); // we need to draw the quads per width too int x2 = x; int width2 = width; // tile horizontally do { int renderWidth = Math.min(sprite.getIconWidth(), width2); width2 -= renderWidth; float u2 = sprite.getInterpolatedU(16f * renderWidth / sprite.getIconWidth()); if (upsideDown) { renderer.pos(x2, y, depth).tex(u2, v1).endVertex(); renderer.pos(x2, y + renderHeight, depth).tex(u2, v2).endVertex(); renderer.pos(x2 + renderWidth, y + renderHeight, depth).tex(u1, v2).endVertex(); renderer.pos(x2 + renderWidth, y, depth).tex(u1, v1).endVertex(); } else { renderer.pos(x2, y, depth).tex(u1, v1).endVertex(); renderer.pos(x2, y + renderHeight, depth).tex(u1, v2).endVertex(); renderer.pos(x2 + renderWidth, y + renderHeight, depth).tex(u2, v2).endVertex(); renderer.pos(x2 + renderWidth, y, depth).tex(u2, v1).endVertex(); } x2 += renderWidth; } while (width2 > 0); y += renderHeight; } while (height > 0); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void AddQuad(Quadruple quad)\n {\n Quadruple.add(nextQuad, quad);\n nextQuad++;\n }", "public void draw() {\n\t\tGL11.glColor3f(0.5f,0.5f,1.0f);\n\t\n\t\t// draw quad\n\t\tGL11.glBegin(GL11.GL_QUADS);\n\t\t\tGL11.glVertex2f(x,y);\n\t\t\tGL11.glVertex2f(x+width,y);\n\t\t\tGL11.glVertex2f(x+wid...
[ "0.67824733", "0.6126707", "0.6054694", "0.54966193", "0.5450226", "0.54296714", "0.53773975", "0.5266873", "0.52446663", "0.5172934", "0.5168416", "0.51650935", "0.51399827", "0.51297873", "0.51207966", "0.5117103", "0.5086103", "0.5069959", "0.5061255", "0.5013598", "0.5010...
0.0
-1
This method implements mapping for registering checked URL. It converts POST request body JSON content to
@RequestMapping(value = "registerurl", method = RequestMethod.POST) @ResponseBody @ResponseStatus(HttpStatus.OK) public void registerUrl(@RequestBody RegisterUrlMsg msg, @RequestHeader("apikey") String token) { System.out.println("url:"); System.out.println(msg.getUrl()); System.out.println("freq:"); System.out.println(msg.getFreq()); System.out.println("expCode:"); System.out.println(msg.getExpCode()); System.out.println("expString:"); System.out.println(msg.getExpString()); System.out.println("token:"); System.out.println(token); // check whether token is permitted authService.checkCredentials(token); // add URL to the database urlChecker.addUrl(msg.getUrl(), msg.getFreq(), msg.getExpCode(), msg.getExpString()); // start checking URL urlChecker.checkUrl(msg.getUrl(), msg.getFreq(), msg.getExpCode(), msg.getExpString(), token); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tprotected void handlePostBody(HashMap<String, HashMap<String, String>> params, DataFormat format) throws Exception {\n\t}", "@Override\n\tpublic void postHandle(WebRequest request, ModelMap model) throws Exception {\n\n\t}", "public void processUrl() {\n try {\n\n JsonNode rootNo...
[ "0.58018225", "0.5422599", "0.5394169", "0.5283255", "0.52690256", "0.5232308", "0.51962245", "0.5084384", "0.5073526", "0.50688833", "0.5062166", "0.50521827", "0.50044817", "0.49669054", "0.49453196", "0.49341598", "0.49288177", "0.49136826", "0.4895739", "0.48862863", "0.4...
0.507039
9
This method returns a list of monitored URLs as JSON object.
@RequestMapping(value = "urls", method = RequestMethod.GET) @ResponseBody @ResponseStatus(HttpStatus.OK) public List<MonitoredUrl> getUrls() { System.out.println("geturls"); return urlChecker.getMonitoredUrls(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<Map<String,Object>> getURLs() {\n return urls;\n }", "public List<String> getUrls() {\n\t\treturn urls;\n\t}", "public URL[] getUrls() {\n\t\treturn urls.toArray(new URL[urls.size()]);\n\t}", "public ArrayList<String> getWebserverUrl() {\n\n if (webListener.isServiceFound()) {\n ...
[ "0.6858596", "0.6374427", "0.6042415", "0.6040149", "0.5977192", "0.58303726", "0.58038765", "0.57970715", "0.5726692", "0.5660005", "0.55810416", "0.55491424", "0.5492921", "0.54559857", "0.5424667", "0.540827", "0.5381189", "0.53807545", "0.53776944", "0.5370763", "0.534267...
0.76772785
0
This method returns a list of URL checks as JSON object.
@RequestMapping(value = "urlchecks", method = RequestMethod.GET) @ResponseBody @ResponseStatus(HttpStatus.OK) public List<UrlCheck> getUrlChecks() { System.out.println("urlchecks"); return urlChecker.getUrlChecks(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@RequestMapping(value = \"urls\", method = RequestMethod.GET)\n @ResponseBody\n @ResponseStatus(HttpStatus.OK)\n public List<MonitoredUrl> getUrls()\n {\n System.out.println(\"geturls\");\n return urlChecker.getMonitoredUrls();\n }", "public List<Map<String,Object>> getURLs() {\n ...
[ "0.6631274", "0.5808778", "0.5529768", "0.55266017", "0.5513494", "0.55114186", "0.5500397", "0.54756397", "0.54225594", "0.5393431", "0.5363545", "0.53373", "0.5324953", "0.5258156", "0.5249033", "0.52462834", "0.522216", "0.52179384", "0.5192472", "0.5183683", "0.5166389", ...
0.75002104
0
TODO Autogenerated method stub
@Override public List<Person> parse(InputStream xml) throws Exception { final List<Person> list = new ArrayList<Person>(); SAXParserFactory factory = SAXParserFactory.newInstance(); javax.xml.parsers.SAXParser parser = factory.newSAXParser(); parser.parse(xml, new DefaultHandler() { StringBuilder builder; Person t; @Override public void characters(char[] ch, int start, int length) throws SAXException { // TODO Auto-generated method stub super.characters(ch, start, length); builder.append(ch, start, length); Log.d(TAG, "ch=" + builder.toString()); } @Override public void endDocument() throws SAXException { // TODO Auto-generated method stub super.endDocument(); } @Override public void endElement(String uri, String localName, String qName) throws SAXException { // TODO Auto-generated method stub super.endElement(uri, localName, qName); if (localName.equals("id")) { t.setId(Integer.parseInt(builder.toString())); } else if (localName.equals("name")) { t.setName(builder.toString()); } else if (localName.equals("age")) { t.setAge(Integer.parseInt(builder.toString())); } else if (localName.equals("person")) { list.add(t); } } @Override public void startDocument() throws SAXException { // TODO Auto-generated method stub super.startDocument(); builder = new StringBuilder(); } @Override public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException { // TODO Auto-generated method stub super.startElement(uri, localName, qName, attributes); if (localName.equals("person")) { t = new Person(); } builder.setLength(0); } }); return list; }
{ "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 characters(char[] ch, int start, int length) throws SAXException { super.characters(ch, start, length); builder.append(ch, start, length); Log.d(TAG, "ch=" + builder.toString()); }
{ "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 endDocument() throws SAXException { super.endDocument(); }
{ "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 endElement(String uri, String localName, String qName) throws SAXException { super.endElement(uri, localName, qName); if (localName.equals("id")) { t.setId(Integer.parseInt(builder.toString())); } else if (localName.equals("name")) { t.setName(builder.toString()); } else if (localName.equals("age")) { t.setAge(Integer.parseInt(builder.toString())); } else if (localName.equals("person")) { list.add(t); } }
{ "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 startDocument() throws SAXException { super.startDocument(); builder = new StringBuilder(); }
{ "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 startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException { super.startElement(uri, localName, qName, attributes); if (localName.equals("person")) { t = new Person(); } builder.setLength(0); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public String serialize(List<Person> list) throws Exception { SAXTransformerFactory factory = (SAXTransformerFactory) TransformerFactory .newInstance(); TransformerHandler handler = factory.newTransformerHandler(); Transformer transformer = handler.getTransformer(); transformer.setOutputProperty(OutputKeys.ENCODING, "UTF-8"); transformer.setOutputProperty(OutputKeys.INDENT, "yes"); transformer .setOutputProperty(OutputKeys.OMIT_XML_DECLARATION, "no"); StringWriter writer = new StringWriter(); Result result = new StreamResult(writer); handler.setResult(result); String uri = ""; String localName = ""; handler.startDocument(); handler.startElement(uri, localName, "persons", null); AttributesImpl attrs = new AttributesImpl(); char[] ch = null; for (Person p : list) { attrs.clear(); attrs.addAttribute(uri, localName, "id", "string", String.valueOf(p.getId())); handler.startElement(uri, localName, "person", attrs); handler.startElement(uri, localName, "name", null); ch = p.getName().toCharArray(); handler.characters(ch, 0, ch.length); handler.endElement(uri, localName, "name"); handler.startElement(uri, localName, "age", null); ch = String.valueOf(p.getAge()).toCharArray(); handler.characters(ch, 0, ch.length); handler.endElement(uri, localName, "age"); handler.endElement(uri, localName, "person"); } handler.endElement(uri, localName, "persons"); handler.endDocument(); return writer.toString(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public List<Person> parse(InputStream xml) throws Exception { List<Person> list = new ArrayList<Person>(); DocumentBuilderFactory factory = DocumentBuilderFactory .newInstance(); DocumentBuilder builder = factory.newDocumentBuilder(); Document doc = builder.parse(xml); Element rootElement = doc.getDocumentElement(); NodeList nodes = rootElement.getElementsByTagName("person"); for (int i = 0; i < nodes.getLength(); i++) { Person p = new Person(); Node node = nodes.item(i); NodeList properties = node.getChildNodes(); for (int j = 0; j < properties.getLength(); j++) { Node property = properties.item(j); String nodeName = property.getNodeName(); if (nodeName.equals("id")) { int id = Integer.parseInt(property.getFirstChild() .getNodeValue()); p.setId(id); } else if (nodeName.equals("name")) { String name = property.getFirstChild().getNodeValue(); p.setName(name); } else if (nodeName.equals("age")) { int age = Integer.parseInt(property.getFirstChild() .getNodeValue()); p.setAge(age); } } list.add(p); } return list; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public String serialize(List<Person> list) throws Exception { DocumentBuilderFactory factory = DocumentBuilderFactory .newInstance(); DocumentBuilder builder = factory.newDocumentBuilder(); Document doc = builder.newDocument(); Element rootElement = doc.createElement("persons"); for (Person p : list) { Element personElement = doc.createElement("person"); personElement.setAttribute("id", String.valueOf(p.getId())); Element nameElement = doc.createElement("name"); nameElement.setTextContent(p.getName()); personElement.appendChild(nameElement); Element ageElement = doc.createElement("age"); ageElement.setTextContent(String.valueOf(p.getAge())); personElement.appendChild(ageElement); rootElement.appendChild(personElement); } doc.appendChild(rootElement); TransformerFactory transFactory = TransformerFactory.newInstance(); Transformer transformer = transFactory.newTransformer(); transformer.setOutputProperty(OutputKeys.ENCODING, "UTF-8"); transformer.setOutputProperty(OutputKeys.INDENT, "yes"); transformer .setOutputProperty(OutputKeys.OMIT_XML_DECLARATION, "no"); StringWriter writer = new StringWriter(); Source source = new DOMSource(doc); Result result = new StreamResult(writer); transformer.transform(source, result); return writer.toString(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public List<Person> parse(InputStream xml) throws Exception { List<Person> list = null; Person p = null; XmlPullParser xpp = Xml.newPullParser(); xpp.setInput(xml, "UTF-8"); int eventType = xpp.getEventType(); while (eventType != XmlPullParser.END_DOCUMENT) { switch (eventType) { case XmlPullParser.START_DOCUMENT: list = new ArrayList<Person>(); break; case XmlPullParser.START_TAG: String name = xpp.getName(); if (name.equals("person")) { p = new Person(); } else if (name.equals("id")) { String id = xpp.nextText(); p.setId(Integer.parseInt(id)); } else if (name.equals("name")) { String pName = xpp.nextText(); p.setName(pName); } else if (name.equals("age")) { String age = xpp.nextText(); p.setAge(Integer.parseInt(age)); } break; case XmlPullParser.END_TAG: String tagName = xpp.getName(); if (tagName.equals("person")) { list.add(p); p = null; } break; } eventType = xpp.next(); } return list; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public String serialize(List<Person> list) throws Exception { XmlSerializer serializer = Xml.newSerializer(); StringWriter writer = new StringWriter(); serializer.setOutput(writer); serializer.startDocument("UTF-8", true); serializer.startTag("", "persons"); for (Person p : list) { serializer.startTag("", "person"); serializer.attribute("", "id", String.valueOf(p.getId())); serializer.startTag("", "name"); serializer.text(p.getName()); serializer.endTag("", "name"); serializer.startTag("", "age"); serializer.text(String.valueOf(p.getAge())); serializer.endTag("", "age"); serializer.endTag("", "person"); } serializer.endTag("", "persons"); serializer.endDocument(); return writer.toString(); }
{ "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
Default event. Just show the page populated with any proj parameters that were passed along.
public String handleDefault() throws HttpPresentationException { return showPage(null); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\t\tpublic void onClick()\n\t\t\t{\n\t\t\t\tretrieveProjectAndObject(dccdHit);\n\t\t\t\t// Note: could also give selected entity object!\n\t\t\t\tString selectedEntityId = object.getId();\n\n\t\t\t\tsetResponsePage(new ProjectViewPage(project, selectedEntityId));\n\t\t\t}", "@Override\n\t\t\tpublic ...
[ "0.59014076", "0.59014076", "0.56847924", "0.56101286", "0.55569184", "0.5459683", "0.5440466", "0.54337335", "0.54229224", "0.54207087", "0.5416874", "0.5405528", "0.5405528", "0.5403235", "0.5395078", "0.538768", "0.53737897", "0.5364722", "0.5351773", "0.53463376", "0.5332...
0.5421779
9
/ Edits an existing proj in the proj database
public String handleEdit() throws webschedulePresentationException, HttpPresentationException { Project project = null; // Try to get the proj by its ID try { project = ProjectFactory.findProjectByID(this.getProjectID()); String title = project.getProj_name(); System.out.println("project title: "+title); } catch(Exception ex) { this.getSessionData().setUserMessage("Please choose a valid PROJECT to edit"); throw new ClientPageRedirectException(UCSDPROJECTSEDIT_PAGE); } // If we got a valid project then try to save it // If any fields were missing then redisplay the edit page, // otherwise redirect to the project catalog page try { saveProject(project); throw new ClientPageRedirectException(UCSDPROJECTSEDIT_PAGE); } catch(Exception ex) { return showPage("You must fill out all fields to edit this project"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean updateProject(Project project);", "public void saveNewProject(){\n String pn = tGUI.ProjectTextField2.getText();\n String pd = tGUI.ProjectTextArea1.getText();\n String statusID = tGUI.StatusComboBox.getSelectedItem().toString();\n String customerID = tGUI.CustomerCombo...
[ "0.6827991", "0.67728955", "0.67121977", "0.66661334", "0.65613735", "0.6371116", "0.6347543", "0.6300231", "0.62786835", "0.62537575", "0.62527543", "0.6237874", "0.6235085", "0.62149024", "0.62126577", "0.617421", "0.61449784", "0.61319584", "0.608711", "0.6077716", "0.6068...
0.5514552
59
Produce HTML for this PO, populated by the project information that the user wants to edit
public String showPage(String errorMsg) throws HttpPresentationException, webschedulePresentationException { String proj_name = this.getComms().request.getParameter(PROJ_NAME); String personID = this.getComms().request.getParameter(PERSONID); String discrib = this.getComms().request.getParameter(DISCRIB); String indexnum = this.getComms().request.getParameter(INDEXNUM); String thours = this.getComms().request.getParameter(THOURS); // String dhours = this.getComms().request.getParameter(DHOURS); // String projectID = this.getComms().request.getParameter(PROJ_ID); String password = this.getComms().request.getParameter(PASSWORD); String codeofpay = this.getComms().request.getParameter(CODEOFPAY); String contactname = this.getComms().request.getParameter(CONTACTNAME); String contactphone = this.getComms().request.getParameter(CONTACTPHONE); String contactemail = this.getComms().request.getParameter(CONTACTEMAIL); String billaddr1 = this.getComms().request.getParameter(BILLADDR1); String billaddr2 = this.getComms().request.getParameter(BILLADDR2); String billaddr3 = this.getComms().request.getParameter(BILLADDR3); String city = this.getComms().request.getParameter(CITY); String state = this.getComms().request.getParameter(STATE); String zip = this.getComms().request.getParameter(ZIP); // String accountid = this.getComms().request.getParameter(ACCOUNTID); // String outside = this.getComms().request.getParameter(OUTSIDE); // String exp = this.getComms().request.getParameter(EXP); String expday = this.getComms().request.getParameter(EXPDAY); String expmonth = this.getComms().request.getParameter(EXPMONTH); String expyear = this.getComms().request.getParameter(EXPYEAR); String notifycontact = this.getComms().request.getParameter(NOTIFYCONTACT); // String iexpday = this.getComms().request.getParameter(IEXPDAY); // String iexpmonth = this.getComms().request.getParameter(IEXPMONTH); //String iexpyear = this.getComms().request.getParameter(IEXPYEAR); String modby= this.getComms().request.getParameter(MODBY); String moddate= this.getComms().request.getParameter(MODDATE); String notes= this.getComms().request.getParameter(NOTES); String irbnum = this.getComms().request.getParameter(IRBNUM); // Instantiate the page object ucsdprojectseditHTML page = new ucsdprojectseditHTML(); HTMLSelectElement expday_select, expmonth_select, expyear_select; HTMLCollection expday_selectCollection, expmonth_selectCollection, expyear_selectCollection; HTMLOptionElement expday_option, expmonth_option, expyear_option; String expday_optionName, expmonth_optionName, expyear_optionName; expday_select = (HTMLSelectElement)page.getElementExpday(); expday_selectCollection = expday_select.getOptions(); expmonth_select = (HTMLSelectElement)page.getElementExpmonth(); expmonth_selectCollection = expmonth_select.getOptions(); expyear_select = (HTMLSelectElement)page.getElementExpyear(); expyear_selectCollection = expyear_select.getOptions(); HTMLSelectElement iexpday_select, iexpmonth_select, iexpyear_select; HTMLCollection iexpday_selectCollection, iexpmonth_selectCollection, iexpyear_selectCollection; HTMLOptionElement iexpday_option, iexpmonth_option, iexpyear_option; String iexpday_optionName, iexpmonth_optionName, iexpyear_optionName; iexpday_select = (HTMLSelectElement)page.getElementIexpday(); iexpday_selectCollection = iexpday_select.getOptions(); iexpmonth_select = (HTMLSelectElement)page.getElementIexpmonth(); iexpmonth_selectCollection = iexpmonth_select.getOptions(); iexpyear_select = (HTMLSelectElement)page.getElementIexpyear(); iexpyear_selectCollection = iexpyear_select.getOptions(); Project theProject = null; String userID = null; String proj_describ, firstname, lastname, piname, user_email, proj_notes; int expdayi, expmonthi, expyeari; double dhours; Date iacucdate = new Date(); java.sql.Date moddated ; String projectID = this.getProjectID(); System.out.println("project Id at show edit page "+projectID); try { theProject = ProjectFactory.findProjectByID(projectID); // userID = project.getUserID(); // proj_name = theProject.getProj_name(); proj_describ = theProject.getDescription(); firstname = theProject.getUserFirstName(); lastname = theProject.getUserLastName(); user_email = theProject.getUserEmail(); piname = firstname+" "+lastname; //cname = theProject.getCname(); //cphone = theProject.getCphone(); //cemail = theProject.getCemail(); // indexnum = theProject.getIndexnum(); // Baline1 = theProject.getBilladdr1(); // Baline2 = theProject.getBilladdr2(); // Baline3 = theProject.getBilladdr3(); // Bacity = theProject.getCity(); // Bast = theProject.getState(); // Bazip = theProject.getZip(); expdayi = theProject.getExpday(); expmonthi = theProject.getExpmonth(); expyeari = theProject.getExpyear(); // fpname = theProject.getContactname(); // fpphone = theProject.getContactphone(); moddated = theProject.getModDate(); // thours = theProject.getTotalhours(); dhours = theProject.getDonehours(); iacucdate = theProject.getIACUCDate(); proj_notes = theProject.getNotes(); /* // Catch any possible database exception in findProjectByID() } catch(webscheduleBusinessException ex) { this.getSessionData().setUserMessage("Please choose a valid project to edit"); throw new ClientPageRedirectException(PROJECT_ADMIN_PAGE); } */ int iexpyeari = iacucdate.getYear(); iexpyeari = iexpyeari + 1900; int iexpmonthi = iacucdate.getMonth(); //add one iexpmonthi = iexpmonthi+1; int iexpdatei = iacucdate.getDate(); String iexpyears = Integer.toString(iexpyeari); String iexpmonths = Integer.toString(iexpmonthi); String iexpdates = Integer.toString(iexpdatei); String expyears = Integer.toString(expyeari); String expmonths = Integer.toString(expmonthi); String expdays = Integer.toString(expdayi); // try { // If we received a valid projectID then try to show the project's contents, // otherwise try to use the HTML input parameters //page.getElementProjID().setValue(project.getHandle()); page.setTextPiname(piname); page.setTextEmail(user_email); if(null != proj_name && proj_name.length() != 0) { page.getElementProj_name().setValue(proj_name); } else { page.getElementProj_name().setValue(theProject.getProj_name()); } if(null != discrib && discrib.length() != 0) { page.getElementDiscrib().setValue(discrib); } else { page.getElementDiscrib().setValue(proj_describ); } if(null != indexnum && indexnum.length() != 0) { page.getElementIndexnum().setValue(indexnum); } else { page.getElementIndexnum().setValue(theProject.getIndexnum()); } if(null != thours && thours.length() != 0) { page.getElementThours().setValue(thours); } else { page.getElementThours().setValue(Double.toString(theProject.getTotalhours())); } page.setTextDhour(Double.toString(theProject.getDonehours())); /* if(null != dhours && dhours.length() != 0) { page.getElementDhours().setValue(dhours); } else { page.getElementDhours().setValue(Double.toString(project.getDonehours())); }*/ if(null != codeofpay && codeofpay.length() != 0) { page.getElementCodeofpay().setValue(codeofpay); } else { page.getElementCodeofpay().setValue(Integer.toString(theProject.getCodeofpay())); } if(null != contactname && contactname.length() != 0) { page.getElementContactname().setValue(contactname); } else { page.getElementContactname().setValue(theProject.getContactname()); } if(null != contactphone && contactphone.length() != 0) { page.getElementContactphone().setValue(contactphone); } else { page.getElementContactphone().setValue(theProject.getContactphone()); } if(null != contactemail && contactemail.length() != 0) { page.getElementContactemail().setValue(contactemail); } else { page.getElementContactemail().setValue(theProject.getFpemail()); } if(null != billaddr1 && billaddr1.length() != 0) { page.getElementBilladdr1().setValue(billaddr1); } else { page.getElementBilladdr1().setValue(theProject.getBilladdr1()); } /* if(null != billaddr2 && billaddr2.length() != 0) { page.getElementBilladdr2().setValue(billaddr2); } else { page.getElementBilladdr2().setValue(theProject.getBilladdr2()); } */ if(null != billaddr3 && billaddr3.length() != 0) { page.getElementBilladdr3().setValue(billaddr3); } else { page.getElementBilladdr3().setValue(theProject.getBilladdr3()); } if(null != city && city.length() != 0) { page.getElementCity().setValue(city); } else { page.getElementCity().setValue(theProject.getCity()); } if(null != state && state.length() != 0) { page.getElementState().setValue(state); } else { page.getElementState().setValue(theProject.getState()); } if(null != zip && zip.length() != 0) { page.getElementZip().setValue(zip); } else { page.getElementZip().setValue(theProject.getZip()); } /* if(null != this.getComms().request.getParameter(EXP)) { page.getElementExpBox().setChecked(true); } else { page.getElementExpBox().setChecked(project.isExp()); } */ if(null != expday && expday.length() != 0) { page.getElementExpday().setValue(expday); } else { page.getElementExpday().setValue(Integer.toString(theProject.getExpday())); } if(null != expmonth && expmonth.length() != 0) { page.getElementExpmonth().setValue(expmonth); } else { page.getElementExpmonth().setValue(Integer.toString(theProject.getExpmonth())); } if(null != expyear && expyear.length() != 0) { page.getElementExpyear().setValue(expyear); } else { page.getElementExpyear().setValue(Integer.toString(theProject.getExpyear())); } if(null != notifycontact && notifycontact.length() != 0) { page.getElementNotifycontact().setValue(notifycontact); } else { page.getElementNotifycontact().setValue(theProject.getNotifycontact()); } if(null != notes && notes.length() != 0) { Node notesText = page.getElementNotes().getOwnerDocument().createTextNode(notes); page.getElementNotes().appendChild(notesText); } else { Node notesText = page.getElementNotes().getOwnerDocument().createTextNode(theProject.getNotes()); page.getElementNotes().appendChild(notesText); } System.out.println(" *** Notes of UCSD project Edit *** "+notes); if (expyeari > 2000) { int expday_optionlen = expday_selectCollection.getLength(); for (int i=0; i< expday_optionlen; i++) { expday_option = (HTMLOptionElement)expday_selectCollection.item(i); expday_optionName = expday_option.getValue(); if (expday_optionName.equals(expdays)) expday_option.setSelected(true); else expday_option.setSelected(false); } int expmonth_optionlen = expmonth_selectCollection.getLength(); for (int i=0; i< expmonth_optionlen; i++) { expmonth_option = (HTMLOptionElement)expmonth_selectCollection.item(i); expmonth_optionName = expmonth_option.getValue(); if (expmonth_optionName.equals(expmonths)) expmonth_option.setSelected(true); else expmonth_option.setSelected(false); } int expyear_optionlen = expyear_selectCollection.getLength(); for (int i=0; i< expyear_optionlen; i++) { expyear_option = (HTMLOptionElement)expyear_selectCollection.item(i); expyear_optionName = expyear_option.getValue(); if (expyear_optionName.equals(expyears)) expyear_option.setSelected(true); else expyear_option.setSelected(false); } } if (iexpyeari > 2000) { int iexpday_optionlen = iexpday_selectCollection.getLength(); for (int i=0; i< iexpday_optionlen; i++) { iexpday_option = (HTMLOptionElement)iexpday_selectCollection.item(i); iexpday_optionName = iexpday_option.getValue(); if (iexpday_optionName.equals(iexpdates)) iexpday_option.setSelected(true); else iexpday_option.setSelected(false); } int iexpmonth_optionlen = iexpmonth_selectCollection.getLength(); for (int i=0; i< iexpmonth_optionlen; i++) { iexpmonth_option = (HTMLOptionElement)iexpmonth_selectCollection.item(i); iexpmonth_optionName = iexpmonth_option.getValue(); if (iexpmonth_optionName.equals(iexpmonths)) iexpmonth_option.setSelected(true); else iexpmonth_option.setSelected(false); } int iexpyear_optionlen = iexpyear_selectCollection.getLength(); for (int i=0; i< iexpyear_optionlen; i++) { iexpyear_option = (HTMLOptionElement)iexpyear_selectCollection.item(i); iexpyear_optionName = iexpyear_option.getValue(); if (iexpyear_optionName.equals(iexpyears)) iexpyear_option.setSelected(true); else iexpyear_option.setSelected(false); } } if(null != irbnum && irbnum.length() != 0) { page.getElementIrbnum().setValue(irbnum); } else { page.getElementIrbnum().setValue(theProject.getIRBnum()); } page.setTextModdate(moddated.toString()); page.setTextModby(theProject.getModifiedby()); if(null == errorMsg) { page.getElementErrorText().getParentNode().removeChild(page.getElementErrorText()); } else { page.setTextErrorText(errorMsg); } } catch(webscheduleBusinessException ex) { throw new webschedulePresentationException("Error populating page for project editing", ex); } // page.getElementEventValue().setValue(EDIT_COMMAND); return page.toDocument(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String handleEdit()\n throws webschedulePresentationException, HttpPresentationException\n {\t\t \n \n Project project = null;\n\n \n \n // Try to get the proj by its ID\n try {\n\t project = ProjectFactory.findProjectByID(this.getProjectID());\n\t ...
[ "0.6225283", "0.603159", "0.58903676", "0.5614316", "0.5480011", "0.54556465", "0.5435636", "0.5387595", "0.5374063", "0.53632087", "0.53632087", "0.5337966", "0.5294281", "0.5292047", "0.5281604", "0.52491426", "0.52183545", "0.5202335", "0.5169476", "0.51605606", "0.5145045...
0.0
-1
Method to save a new or existing project to the database
protected void saveProject(Project theProject) throws HttpPresentationException, webschedulePresentationException { String proj_name = this.getComms().request.getParameter(PROJ_NAME); String personID = this.getComms().request.getParameter(PERSONID); String password = this.getComms().request.getParameter(PASSWORD); String discrib = this.getComms().request.getParameter(DISCRIB); String indexnum = this.getComms().request.getParameter(INDEXNUM); String thours = this.getComms().request.getParameter(THOURS); String dhours = this.getComms().request.getParameter(DHOURS); String codeofpay = this.getComms().request.getParameter(CODEOFPAY); String contactname = this.getComms().request.getParameter(CONTACTNAME); String contactphone = this.getComms().request.getParameter(CONTACTPHONE); String contactemail = this.getComms().request.getParameter(CONTACTEMAIL); String billaddr1 = this.getComms().request.getParameter(BILLADDR1); String billaddr2 = this.getComms().request.getParameter(BILLADDR2); String billaddr3 = this.getComms().request.getParameter(BILLADDR3); String city = this.getComms().request.getParameter(CITY); String state = this.getComms().request.getParameter(STATE); String zip = this.getComms().request.getParameter(ZIP); //String accountid = this.getComms().request.getParameter(ACCOUNTID); //String isoutside = this.getComms().request.getParameter(OUTSIDE); //String exp = this.getComms().request.getParameter(EXP); String expday = this.getComms().request.getParameter(EXPDAY); String expmonth = this.getComms().request.getParameter(EXPMONTH); String expyear = this.getComms().request.getParameter(EXPYEAR); String iexpday = this.getComms().request.getParameter(IEXPDAY); String iexpmonth = this.getComms().request.getParameter(IEXPMONTH); String iexpyear = this.getComms().request.getParameter(IEXPYEAR); String notes = this.getComms().request.getParameter(NOTES); String irbnum = this.getComms().request.getParameter(IRBNUM); System.out.println(" Notes off save module "+ notes); String notifycontact = this.getComms().request.getParameter(NOTIFYCONTACT); java.sql.Date moddatesql; //calculation for the time right now Calendar cancelinfo = Calendar.getInstance(); int todaydate = cancelinfo.get(cancelinfo.DAY_OF_MONTH); int todaymonth = cancelinfo.get(cancelinfo.MONTH); todaymonth= todaymonth+1; int todayyear = cancelinfo.get(cancelinfo.YEAR); String tempmod = todayyear+"-"+todaymonth+"-"+todaydate; moddatesql=java.sql.Date.valueOf(tempmod); java.sql.Date iacucsql,didate; String tempiacuc = iexpyear+"-"+iexpmonth+"-"+iexpday; iacucsql=java.sql.Date.valueOf(tempiacuc); //get old project information // Write to the modification file, format Date, Scanner, Who //Which project Header, Proj_name,Description, // Old project record //New project record double dthours; String dproj_name,dindex,dcname, dcphone, dfemail, dbilladdr1, dbilladdr3,dcity,dstate, dzip,dnemail; int dcode, dexpday, dexpmonth,dexpyear; //f.close(); try { dproj_name=theProject.getProj_name(); dindex=theProject.getIndexnum(); dthours=theProject.getTotalhours(); dcode=theProject.getCodeofpay(); dcname=theProject.getContactname(); dcphone=theProject.getContactphone(); dfemail=theProject.getFpemail(); dbilladdr1=theProject.getBilladdr1(); // theProject.setBilladdr2(theProject.getBilladdr2()); dbilladdr3=theProject.getBilladdr3(); dcity=theProject.getCity(); dstate=theProject.getState(); dzip=theProject.getZip(); //theProject.setAccountid(theProject.getAccountid()); dnemail=theProject.getNotifycontact(); dexpday=theProject.getExpday(); dexpmonth= theProject.getExpmonth(); dexpyear = theProject.getExpyear(); didate= theProject.getIACUCDate(); } catch(Exception ex) { throw new webschedulePresentationException("Error adding project", ex); } String s = "\n proj_name,TotalHours,SchEmail,Code,FCName,FCPhone,FCEmail,BillingAddress,Index,ExpDate,IRBDate"; try { FileOutputStream f = new FileOutputStream ("/home/emang/webschlog/projmodlog.txt",true); for (int i = 0; i < s.length(); ++i) f.write(s.charAt(i)); String s2="\n"+dproj_name+","+Double.toString(dthours)+","+dnemail+","+Integer.toString(dcode)+","+dcname+","+dcphone+","+dfemail+","+dbilladdr1+" "+dbilladdr3+" "+dcity+" "+dstate+" "+dzip+","+dindex+","+","; for (int j = 0; j < s2.length(); ++j) f.write(s2.charAt(j)); f.close(); } catch (IOException ioe) { System.out.println("IO Exception"); } try { System.out.println(" trying to saving a project one "+ proj_name); theProject.setProj_name(proj_name); System.out.println(" trying to saving a project one "+ proj_name); theProject.setPassword( theProject.getPassword()); theProject.setDescription(discrib); theProject.setIndexnum(indexnum); theProject.setTotalhours(Double.parseDouble(thours)); theProject.setDonehours( theProject.getDonehours()); theProject.setCodeofpay(Integer.parseInt(codeofpay)); theProject.setContactname(contactname); theProject.setContactphone(contactphone); theProject.setFpemail(contactemail); theProject.setBilladdr1(billaddr1); theProject.setBilladdr2(theProject.getBilladdr2()); theProject.setBilladdr3(billaddr3); theProject.setCity(city); theProject.setState(state); theProject.setZip(zip); theProject.setAccountid(theProject.getAccountid()); theProject.setNotifycontact(notifycontact); theProject.setOutside(false); theProject.setExp(false); theProject.setInstitute("UCSD"); theProject.setNotes(notes); theProject.setIRBnum(irbnum); //theProject.setCancredit(theProject.getCancredit()); /* if(null != this.getComms().request.getParameter(OUTSIDE)) { theProject.setOutside(true); } else { theProject.setOutside(false); } if(null != this.getComms().request.getParameter(EXP)) { theProject.setExp(true); } else { theProject.setExp(false); }*/ theProject.setExpday(Integer.parseInt(expday)); theProject.setExpmonth(Integer.parseInt(expmonth)); theProject.setExpyear(Integer.parseInt(expyear)); personID = theProject.getOwner().getHandle(); theProject.setOwner(PersonFactory.findPersonByID(personID)); //theProject.setOwner(theProject.getOwner()); theProject.setModDate(moddatesql); theProject.setIACUCDate(iacucsql); theProject.setModifiedby(this.getUser().getLastname()); System.out.println(" trying to saving a project two "+ proj_name); theProject.save(); System.out.println(" trying to saving a project three "+ proj_name); } catch(Exception ex) { throw new webschedulePresentationException("Error adding project", ex); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void saveNewProject(){\n String pn = tGUI.ProjectTextField2.getText();\n String pd = tGUI.ProjectTextArea1.getText();\n String statusID = tGUI.StatusComboBox.getSelectedItem().toString();\n String customerID = tGUI.CustomerComboBox.getSelectedItem().toString();\n\n int sst...
[ "0.76558125", "0.73742956", "0.73615384", "0.7200778", "0.71272445", "0.7020721", "0.6820627", "0.6787085", "0.67776936", "0.6732742", "0.6522473", "0.64736265", "0.64600104", "0.64204234", "0.64204234", "0.64204234", "0.64204234", "0.64040655", "0.6378879", "0.63459873", "0....
0.61261564
35
Internal methods Looks up the geometry srs by trying a number of heuristics. Returns 1 if all attempts at guessing the srid failed.
protected int getSRID(SimpleFeatureType featureType) { int srid = -1; CoordinateReferenceSystem flatCRS = CRS.getHorizontalCRS(featureType.getCoordinateReferenceSystem()); try { Integer candidate = CRS.lookupEpsgCode(flatCRS, false); if (candidate != null) srid = candidate; else srid = 4326; } catch (Exception e) { // ok, we tried... } return srid; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private int getCrs(TrackPoint p) {\r\n\t\tint crsindex = 0;\r\n\t\tif (coordinateReferenceSystem.length > 1) {\r\n\t\t\tint ls = TransformCoordinates.getLocalProjectionSystem(coordinateReferenceSystem[0]);\r\n\t\t\tProjectedPoint gkbl = TransformCoordinates.wgs84ToLocalsystem(p, ls); // TODO: think / read about wh...
[ "0.49542645", "0.4668029", "0.46022487", "0.4600163", "0.44545516", "0.4405548", "0.43641844", "0.4342676", "0.43325192", "0.43279114", "0.4293139", "0.42590252", "0.42536047", "0.4210955", "0.4209224", "0.41946927", "0.41691944", "0.41653278", "0.41546974", "0.41279456", "0....
0.55451775
0
This method was generated by Abator for iBATIS. This method returns the value of the database column HBDW1.EP_TASK_STEP.ID
public String getId() { return id; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getStepId() {\n return stepId;\n }", "public int getTaskID() {\n\t\treturn taskID;\n\t}", "public ProcessStep getProcessStepById(int processstepid) {\n\t\tthis.em = EMF.createEntityManager();\r\n\t\t\r\n\t\tList<ProcessStep> content = new ArrayList<ProcessStep>();\r\n\t\tQuery query = em....
[ "0.70393205", "0.6361791", "0.620727", "0.61573064", "0.60319126", "0.5927895", "0.5861183", "0.58392155", "0.58245677", "0.58121943", "0.57691866", "0.5743979", "0.57357156", "0.5673148", "0.56686324", "0.56644917", "0.5641717", "0.5636593", "0.5636593", "0.5636593", "0.5632...
0.0
-1
This method was generated by Abator for iBATIS. This method sets the value of the database column HBDW1.EP_TASK_STEP.ID
public void setId(String id) { this.id = id; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setProcessstep(ItemI v) throws Exception{\n\t\t_Processstep =null;\n\t\ttry{\n\t\t\tif (v instanceof XFTItem)\n\t\t\t{\n\t\t\t\tgetItem().setChild(SCHEMA_ELEMENT_NAME + \"/processStep\",v,true);\n\t\t\t}else{\n\t\t\t\tgetItem().setChild(SCHEMA_ELEMENT_NAME + \"/processStep\",v.getItem(),true);\n\t\t\t}...
[ "0.6291796", "0.6264319", "0.6257881", "0.5849228", "0.56413877", "0.5582471", "0.55760825", "0.5560233", "0.55572325", "0.5504644", "0.5434589", "0.54309857", "0.5406272", "0.54004014", "0.5309251", "0.523584", "0.523508", "0.51637596", "0.51135546", "0.50977373", "0.5097737...
0.0
-1
This method was generated by Abator for iBATIS. This method returns the value of the database column HBDW1.EP_TASK_STEP.NAME
public String getName() { return name; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getStepName()\r\n\t{\r\n\t\treturn stepName;\r\n\t}", "public java.lang.String getStepName() {\n return stepName;\n }", "public String getStepDisplayName()\r\n\t{\r\n\t\treturn stepDisplayName;\r\n\t}", "String getTaskName();", "String getTaskName();", "public String toString()\r\...
[ "0.73163444", "0.7163759", "0.686146", "0.67190355", "0.67190355", "0.6707688", "0.66409326", "0.66235846", "0.65849483", "0.64652896", "0.6441308", "0.6441308", "0.6441308", "0.6441308", "0.6422876", "0.6410225", "0.6395543", "0.6306687", "0.6304121", "0.6302669", "0.6248118...
0.0
-1
This method was generated by Abator for iBATIS. This method sets the value of the database column HBDW1.EP_TASK_STEP.NAME
public void setName(String name) { this.name = name; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setStepName(String stepName)\r\n\t{\r\n\t\tthis.stepName = stepName;\r\n\t}", "public void setStepName(java.lang.String stepName) {\n this.stepName = stepName;\n }", "public String getStepName()\r\n\t{\r\n\t\treturn stepName;\r\n\t}", "public java.lang.String getStepName() {\n re...
[ "0.67248493", "0.65711486", "0.6551747", "0.6268485", "0.62268066", "0.61506414", "0.61169195", "0.60806364", "0.60354817", "0.60177165", "0.60109746", "0.59319866", "0.5767673", "0.57559496", "0.56835574", "0.5665607", "0.5617868", "0.5613317", "0.5586463", "0.5586463", "0.5...
0.0
-1
This method was generated by Abator for iBATIS. This method returns the value of the database column HBDW1.EP_TASK_STEP.SEQ
public Integer getSeq() { return seq; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getSEQN() {\n return SEQN;\n }", "public String getSequence()\n\t{\n\t\treturn this.sequence;\n\t}", "public String getSequence()\r\n\t{\r\n\t\treturn sequence;\r\n\t}", "public long getStepNumber() {\n return schedule.getSteps();\n }", "public String getSequence() \n\t{\n...
[ "0.6163025", "0.61345935", "0.611716", "0.6115748", "0.6084743", "0.6073154", "0.60389984", "0.60389984", "0.59672093", "0.59672093", "0.5962105", "0.5951037", "0.59399134", "0.59399134", "0.58849466", "0.5863822", "0.5834578", "0.58072996", "0.5789976", "0.578773", "0.578422...
0.5956275
13
This method was generated by Abator for iBATIS. This method sets the value of the database column HBDW1.EP_TASK_STEP.SEQ
public void setSeq(Integer seq) { this.seq = seq; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@IcalProperty(pindex = PropertyInfoIndex.SEQUENCE,\n eventProperty = true,\n todoProperty = true,\n journalProperty = true\n )\n public void setSequence(final int val) {\n sequence = val;\n }", "void setSeq(long seq) {\n this.seq = seq;\n ...
[ "0.63038856", "0.60247993", "0.5819558", "0.5797668", "0.5797668", "0.5785295", "0.57681453", "0.5750712", "0.5749563", "0.56875616", "0.56733155", "0.5628525", "0.5598982", "0.55967396", "0.5577912", "0.55091256", "0.5487879", "0.54620665", "0.5437616", "0.5421285", "0.53917...
0.6135455
3
This method was generated by Abator for iBATIS. This method returns the value of the database column HBDW1.EP_TASK_STEP.TASK_ID
public String getTaskId() { return taskId; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getTaskID() {\n\t\treturn taskID;\n\t}", "public java.lang.Object getTaskID() {\n return taskID;\n }", "protected String getTaskId() {\n\t\tDisplay.debug(\"getTaskId() devuelve %s\", taskId);\n\t\treturn taskId;\n\t}", "public Integer getTaskId() {\n\t\treturn this.taskId;\n\t}", "publ...
[ "0.71781564", "0.695765", "0.66316676", "0.6512879", "0.64751637", "0.64746296", "0.6384174", "0.63747287", "0.6359147", "0.6327324", "0.6306503", "0.6286572", "0.6286572", "0.62860936", "0.62671936", "0.6246808", "0.62092066", "0.62092066", "0.6208054", "0.6208054", "0.61795...
0.616223
25
This method was generated by Abator for iBATIS. This method sets the value of the database column HBDW1.EP_TASK_STEP.TASK_ID
public void setTaskId(String taskId) { this.taskId = taskId; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setTaskID(java.lang.Object taskID) {\n this.taskID = taskID;\n }", "public com.opentext.bn.converters.avro.entity.DocumentEvent.Builder setTaskId(java.lang.String value) {\n validate(fields()[23], value);\n this.taskId = value;\n fieldSetFlags()[23] = true;\n return this...
[ "0.673461", "0.63079375", "0.6125364", "0.6110067", "0.60714877", "0.5916321", "0.5905261", "0.5905261", "0.58749086", "0.5859388", "0.58017474", "0.5798568", "0.57771885", "0.57388365", "0.5721332", "0.56442803", "0.55897135", "0.55859244", "0.5577226", "0.5536555", "0.55316...
0.55357987
21
This method was generated by Abator for iBATIS. This method returns the value of the database column HBDW1.EP_TASK_STEP.NOTE
public String getNote() { return note; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getNote() {\n if (MetadataUGWD_Type.featOkTst && ((MetadataUGWD_Type)jcasType).casFeat_note == null)\n jcasType.jcas.throwFeatMissing(\"note\", \"de.aitools.ie.uima.type.argumentation.MetadataUGWD\");\n return jcasType.ll_cas.ll_getStringValue(addr, ((MetadataUGWD_Type)jcasType).casFeatCod...
[ "0.6287588", "0.61887777", "0.6170853", "0.6164881", "0.6135436", "0.6135436", "0.6122525", "0.6109995", "0.6074176", "0.6044632", "0.60122985", "0.5828486", "0.5828326", "0.5773857", "0.56810945", "0.56602055", "0.5635947", "0.55245596", "0.5447528", "0.5438537", "0.54300565...
0.6097361
16
This method was generated by Abator for iBATIS. This method sets the value of the database column HBDW1.EP_TASK_STEP.NOTE
public void setNote(String note) { this.note = note; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setNote() {\n\t\tNoteOpt.add(\"-nd\");\n\t\tNoteOpt.add(\"/nd\");\n\t\tNoteOpt.add(\"notedetails\");\n\n\t}", "public void setNote(String note) {\r\n\r\n this.note = note;\r\n }", "public void setNote(String note) {\r\n this.note = note; \r\n }", "public void setNote(String...
[ "0.5794336", "0.5779322", "0.5774259", "0.57518846", "0.5680649", "0.56667507", "0.56557304", "0.56430894", "0.5634972", "0.55397385", "0.5518551", "0.5517401", "0.5492773", "0.5488075", "0.5486525", "0.5474958", "0.54049206", "0.5398609", "0.5387275", "0.5384179", "0.5384179...
0.5652711
10
This method was generated by Abator for iBATIS. This method returns the value of the database column HBDW1.EP_TASK_STEP.DEVICE_TYPE
public String getDeviceType() { return deviceType; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getDevice_type() {\r\n\t\treturn device_type;\r\n\t}", "public com.sforce.soap._2006._04.metadata.DeviceType getDeviceType() {\r\n return deviceType;\r\n }", "public final String getDeviceType(){\n return TYPE;\n }", "public short getDeviceType() {\r\n return deviceTy...
[ "0.6766659", "0.6415194", "0.6291429", "0.62376285", "0.62083", "0.6112842", "0.5998445", "0.5738795", "0.5722361", "0.56612396", "0.5621414", "0.5601041", "0.5589278", "0.5587965", "0.5546086", "0.5461208", "0.54545045", "0.53811383", "0.534959", "0.5310168", "0.53093773", ...
0.6600651
1