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
Returns the front point of the triangle.
private Point findFront(Point[] points) { // Loop through the passed points. double[] dists = new double[3]; for (int i = 0; i < 3; i++) { // Get outer-loop point. Point a = points[i]; // Loop through rest of points. for (int k = 0; k < 3; k++) { // Continue if current outer. if (i == k) continue; // Get inner-loop point. Point b = points[k]; // Add distance between out and inner. dists[i] += Math.sqrt( Math.pow(a.x - b.x, 2) + Math.pow(a.y - b.y, 2) ); } } // Prepare index and largest holder. int index = 0; double largest = 0; // Loop through the found distances. for (int i = 0; i < 3; i++) { // Skip if dist is lower than largest. if (dists[i] < largest) continue; // Save the index and largest value. index = i; largest = dists[i]; } // Return the largest point index. return points[index]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Point getFrontPoint() {\n\t\treturn this.gun;\n\t}", "public int getFront() {\n if (isEmpty()) {\n return -1;\n }\n return arr[front];\n }", "public int Front() {\n if (count == 0) {\n return -1;\n }\n return array[head];\n }", "pub...
[ "0.7333403", "0.6718087", "0.66220313", "0.65986127", "0.6585518", "0.64021987", "0.63822544", "0.6379839", "0.6274662", "0.6258532", "0.6221176", "0.61959386", "0.61843014", "0.61428684", "0.61415327", "0.6084594", "0.6059596", "0.6037804", "0.6009928", "0.59990746", "0.5997...
0.5784831
30
Find the largest triangle on the passed frame.
private MatOfPoint2f findTriangle(Frame frame) { // Get all contours from frame. List<MatOfPoint> contours = frame.sortedContours(); // Prepare vehicle and approx holder variable. MatOfPoint2f approx, vehicle = null; // Loop through all the found contours. for (MatOfPoint contour: contours) { // Approximate the contour poly. approx = frame.approximate(contour); // Check if approximate found and has 3 points. if (approx != null && approx.total() == 3) { // Save approximate and break out. vehicle = approx; break; } } // Return the found vehicle. return vehicle; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double max(Triangle figure) {\n double[] sides = {\n figure.getA().distanceTo(figure.getB()),\n figure.getA().distanceTo(figure.getC()),\n figure.getC().distanceTo(figure.getB()),\n };\n double maxSide = 0;\n for (double i : sides) {\n...
[ "0.66518533", "0.6106061", "0.6027276", "0.6027007", "0.5855545", "0.55761725", "0.5551585", "0.5523015", "0.54682577", "0.5400019", "0.5397409", "0.5383975", "0.5372159", "0.5352694", "0.53354573", "0.53342295", "0.5330234", "0.53277004", "0.53239226", "0.5318433", "0.530105...
0.5456877
9
Find the center point of the triangle contour.
private Point findCenter(MatOfPoint2f triangle) { // Find moments for the triangle. Moments moments = Imgproc.moments(triangle); // Create point and set x, and y positions. Point center = new Point(); center.x = moments.get_m10() / moments.get_m00(); center.y = moments.get_m01() / moments.get_m00(); // Return the found center point. return center; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Vec2 getCenter()\n {\n int numTriangles = numPoints - 2;\n\n // Calculate the average midpoint of each composite triangle\n Vec2 averageMidpoint = new Vec2(0, 0);\n float area = 0;\n for (int i=0; i<numTriangles; i++)\n {\n Triangle t = new Triangle(po...
[ "0.76129603", "0.68422604", "0.66630304", "0.66276693", "0.65892553", "0.65312505", "0.65312505", "0.64875233", "0.64512396", "0.6441096", "0.64307654", "0.63938624", "0.639218", "0.63891935", "0.6366062", "0.6351849", "0.6341072", "0.6279272", "0.6244281", "0.6209012", "0.61...
0.80571526
1
Find the center point between the back triangle points.
private Point findBack(Point[] points) { // Find the first point. Point a = this.points[0]; if (a == this.front) { a = this.points[1]; } // Find the second point. Point b = this.points[1]; if (b == this.front || b == a) { b = this.points[2]; } // Create point and set x, and y positions. Point center = new Point(); center.x = (a.x + b.x) / 2; center.y = (a.y + b.y) / 2; // Return the found center point. return center; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Vec2 getCenter()\n {\n int numTriangles = numPoints - 2;\n\n // Calculate the average midpoint of each composite triangle\n Vec2 averageMidpoint = new Vec2(0, 0);\n float area = 0;\n for (int i=0; i<numTriangles; i++)\n {\n Triangle t = new Triangle(po...
[ "0.7242904", "0.7173985", "0.7173985", "0.6385168", "0.62672114", "0.62671185", "0.6233953", "0.6168779", "0.61381394", "0.60535455", "0.60467124", "0.60337913", "0.60337913", "0.6028852", "0.60010046", "0.5973043", "0.5948497", "0.5936341", "0.5911986", "0.5900016", "0.58430...
0.6975525
3
Find the rotation between the two points.
public double findRotation(Point a, Point b) { // Find rotation in radians using acttan2. double rad = Math.atan2(a.y - b.y, a.x - b.x); // Remove negative rotation. if (rad < 0) { rad += 2 * Math.PI; } // Convert the rotation to degrees. return rad * (180 / Math.PI); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Point rotate (double angle);", "Point rotate (double angle, Point result);", "public double getRotation();", "public double betweenAngle(Coordinates a, Coordinates b, Coordinates origin);", "double getRotation(Point2D target, boolean pursuit);", "public static double rotation()\r\n\t{\r\n\t\treturn -(mxp...
[ "0.68636817", "0.67683756", "0.66596025", "0.64424986", "0.63720775", "0.6370476", "0.633764", "0.62592846", "0.624399", "0.61446744", "0.61326396", "0.5980201", "0.595834", "0.5946436", "0.5924462", "0.5897249", "0.5875412", "0.586542", "0.5840867", "0.58191425", "0.5813889"...
0.7466077
0
Test that consistency checker should be disabled in some scenarios.
@Test public void consistencyCheckerDisabledTest() throws Exception { // 1. only one participant, consistency checker should be disabled AmbryServer server = new AmbryServer(new VerifiableProperties(props), clusterAgentsFactory, notificationSystem, time); server.startup(); assertNull("The mismatch metric should not be created", server.getServerMetrics().stoppedReplicasMismatchCount); server.shutdown(); // 2. there are two participants but period of checker is zero, consistency checker should be disabled. props.setProperty("server.participants.consistency.checker.period.sec", Long.toString(0L)); List<ClusterParticipant> participants = new ArrayList<>(); for (int i = 0; i < 2; ++i) { participants.add( new MockClusterParticipant(Collections.emptyList(), Collections.emptyList(), Collections.emptyList(), null, null, null)); } clusterAgentsFactory.setClusterParticipants(participants); server = new AmbryServer(new VerifiableProperties(props), clusterAgentsFactory, notificationSystem, time); server.startup(); assertNull("The mismatch metric should not be created", server.getServerMetrics().stoppedReplicasMismatchCount); server.shutdown(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tvoid checkConsistency()\n\t{\n\t\t\n\t}", "@Disabled\n @Test\n void processDepositValidatorPubkeysDoesNotContainPubkeyAndMinEmptyValidatorIndexIsNegative() {\n }", "@Test(timeout = 4000)\n public void test063() throws Throwable {\n // Undeclared exception!\n try { \n DBUtil....
[ "0.6986895", "0.60333997", "0.6022138", "0.5971799", "0.58847743", "0.5877484", "0.58600354", "0.5823357", "0.5813808", "0.5804981", "0.57781994", "0.5747515", "0.57410717", "0.5736763", "0.572201", "0.57019275", "0.56682676", "0.5665351", "0.56522596", "0.55793566", "0.55750...
0.7574142
0
Test that two participants are consistent in terms of sealed/stopped replicas.
@Test public void participantsWithNoMismatchTest() throws Exception { List<String> sealedReplicas = new ArrayList<>(Arrays.asList("10", "1", "4")); List<String> stoppedReplicas = new ArrayList<>(); List<String> partiallySealedReplicas = new ArrayList<>(); List<ClusterParticipant> participants = new ArrayList<>(); // create a latch with init value = 2 to ensure both getSealedReplicas and getStoppedReplicas get called at least once CountDownLatch invocationLatch = new CountDownLatch(2); MockClusterParticipant participant1 = new MockClusterParticipant(sealedReplicas, partiallySealedReplicas, stoppedReplicas, invocationLatch, null, null); MockClusterParticipant participant2 = new MockClusterParticipant(sealedReplicas, partiallySealedReplicas, stoppedReplicas, null, null, null); participants.add(participant1); participants.add(participant2); clusterAgentsFactory.setClusterParticipants(participants); AmbryServer server = new AmbryServer(new VerifiableProperties(props), clusterAgentsFactory, notificationSystem, time); server.startup(); assertTrue("The latch didn't count to zero within 5 secs", invocationLatch.await(5, TimeUnit.SECONDS)); // verify that: 1. checker is instantiated 2.no mismatch event is emitted. assertNotNull("The mismatch metric should be created", server.getServerMetrics().sealedReplicasMismatchCount); assertNotNull("The partial seal mismatch metric should be created", server.getServerMetrics().partiallySealedReplicasMismatchCount); assertEquals("Sealed replicas mismatch count should be 0", 0, server.getServerMetrics().sealedReplicasMismatchCount.getCount()); assertEquals("Partially sealed replicas mismatch count should be 0", 0, server.getServerMetrics().partiallySealedReplicasMismatchCount.getCount()); assertEquals("Stopped replicas mismatch count should be 0", 0, server.getServerMetrics().stoppedReplicasMismatchCount.getCount()); server.shutdown(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void participantsWithMismatchTest() throws Exception {\n List<ClusterParticipant> participants = new ArrayList<>();\n // create a latch with init value = 2 and add it to second participant. This latch will count down under certain condition\n CountDownLatch invocationLatch = new CountDownL...
[ "0.7148094", "0.62977785", "0.60073555", "0.5832797", "0.58194464", "0.5722439", "0.56724745", "0.56455225", "0.5612578", "0.5588795", "0.55638313", "0.55404013", "0.55199873", "0.5515967", "0.5507796", "0.55032575", "0.5472647", "0.5467155", "0.5458796", "0.54184407", "0.540...
0.7050354
1
Test that there is a mismatch between two participants.
@Test public void participantsWithMismatchTest() throws Exception { List<ClusterParticipant> participants = new ArrayList<>(); // create a latch with init value = 2 and add it to second participant. This latch will count down under certain condition CountDownLatch invocationLatch = new CountDownLatch(3); MockClusterParticipant participant1 = new MockClusterParticipant(new ArrayList<>(), new ArrayList<>(), new ArrayList<>(), null, null, null); MockClusterParticipant participant2 = new MockClusterParticipant(new ArrayList<>(), new ArrayList<>(), new ArrayList<>(), null, null, invocationLatch); participants.add(participant1); participants.add(participant2); clusterAgentsFactory.setClusterParticipants(participants); AmbryServer server = new AmbryServer(new VerifiableProperties(props), clusterAgentsFactory, notificationSystem, time); server.startup(); // initially, two participants have consistent sealed/stopped replicas. Verify that: // 1. checker is instantiated 2. no mismatch event is emitted. assertNotNull("The mismatch metric should be created", server.getServerMetrics().sealedReplicasMismatchCount); assertNotNull("The mismatch metric should be created", server.getServerMetrics().partiallySealedReplicasMismatchCount); assertEquals("Sealed replicas mismatch count should be 0", 0, server.getServerMetrics().sealedReplicasMismatchCount.getCount()); assertEquals("Sealed replicas mismatch count should be 0", 0, server.getServerMetrics().partiallySealedReplicasMismatchCount.getCount()); assertEquals("Stopped replicas mismatch count should be 0", 0, server.getServerMetrics().stoppedReplicasMismatchCount.getCount()); // induce mismatch for sealed and stopped replica list // add 1 sealed replica to participant1 ReplicaId mockReplica1 = Mockito.mock(ReplicaId.class); when(mockReplica1.getReplicaPath()).thenReturn("12"); participant1.setReplicaSealedState(mockReplica1, ReplicaSealStatus.SEALED); // add 1 stopped replica to participant2 ReplicaId mockReplica2 = Mockito.mock(ReplicaId.class); when(mockReplica2.getReplicaPath()).thenReturn("4"); participant2.setReplicaStoppedState(Collections.singletonList(mockReplica2), true); // add 1 partially sealed replica to participant2 ReplicaId mockReplica3 = Mockito.mock(ReplicaId.class); when(mockReplica2.getReplicaPath()).thenReturn("5"); participant2.setReplicaSealedState(mockReplica3, ReplicaSealStatus.PARTIALLY_SEALED); assertTrue("The latch didn't count to zero within 5 secs", invocationLatch.await(5, TimeUnit.SECONDS)); assertTrue("Sealed replicas mismatch count should be non-zero", server.getServerMetrics().sealedReplicasMismatchCount.getCount() > 0); assertTrue("Partially sealed replicas mismatch count should be non-zero", server.getServerMetrics().partiallySealedReplicasMismatchCount.getCount() > 0); assertTrue("Stopped replicas mismatch count should be non-zero", server.getServerMetrics().stoppedReplicasMismatchCount.getCount() > 0); server.shutdown(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\r\n\tpublic void testDetermineMatchWinner2() {\n\t\tassertTrue(\"Error determining correct winner\", false);\r\n\t\t//Check that player records have been updated correctly\r\n\t\tassertTrue(\"Error updating player records\", false);\r\n\t}", "@Test\r\n\tpublic void testDetermineMatchWinner1() {\n\t\tassert...
[ "0.70904917", "0.6919199", "0.6473029", "0.6408751", "0.6162918", "0.61459875", "0.61055297", "0.60932434", "0.6079809", "0.6065695", "0.6040791", "0.5995711", "0.5961303", "0.5954422", "0.5942899", "0.59379613", "0.59019494", "0.58751816", "0.58529145", "0.58444315", "0.5830...
0.62491673
4
send timing headers just before the body is emitted
protected void finish() { writerServerTimingHeader(); try { // maybe nobody ever call getOutputStream() or getWriter() if (bufferedOutputStream != null) { // make sure the writer flushes everything to the underlying output stream if (bufferedWriter != null) { bufferedWriter.flush(); } // send the buffered response to the client bufferedOutputStream.writeBufferTo(getResponse().getOutputStream()); } } catch (IOException e) { throw new IllegalStateException("Could not flush response buffer", e); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void flushHeader() {\r\n\t\t//resetBuffer();\r\n\t\tif (sc_status == 0) {\r\n\t\t\tsetStatus(200);\r\n\t\t}\r\n\t\tSimpleDateFormat dateFormat = new SimpleDateFormat(\"EEE, dd MMM yyyy HH:mm:ss z\", Locale.US);\r\n\t\tdateFormat.setTimeZone(TimeZone.getTimeZone(\"GMT\"));\r\n StringBuffer headerVal =...
[ "0.5762513", "0.57573664", "0.573814", "0.5680817", "0.5564485", "0.5554", "0.55436593", "0.53549856", "0.5350609", "0.5350604", "0.5343478", "0.53096944", "0.53054726", "0.5298391", "0.52970207", "0.5286225", "0.5260307", "0.5257828", "0.52482086", "0.523203", "0.52097726", ...
0.6028209
0
Return the temporary file path
public final String getTemporaryFile() { return m_tempFile; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getTemporaryFilePath()\n {\n return callString(\"GetTemporaryFilePath\");\n }", "private String getTmpPath() {\n return getExternalFilesDir(null).getAbsoluteFile() + \"/tmp/\";\n }", "private String getTempFileString() {\n final File path = new File(getFlagStoreDir()...
[ "0.85718656", "0.79383034", "0.75348955", "0.7475164", "0.7398278", "0.728038", "0.7088385", "0.70421034", "0.6926201", "0.6856083", "0.6816325", "0.67301923", "0.66885436", "0.6653604", "0.66207427", "0.65640473", "0.65228736", "0.65105385", "0.65061206", "0.6474187", "0.644...
0.8040519
1
Check if the segment has been updated
public final boolean isUpdated() { return (m_flags & Updated) != 0 ? true : false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean hasUpdate();", "boolean hasUpdate();", "boolean hasTsUpdate();", "public boolean hasChanged();", "public boolean hasChanged();", "boolean hasStatusChanged();", "boolean hasUpdateInode();", "public boolean wasDataUpdated() {\n\t\treturn true;\n\t}", "public synchronized boolean hasChanged() ...
[ "0.6758639", "0.6758639", "0.6543979", "0.6481296", "0.6481296", "0.6400161", "0.63488346", "0.627962", "0.62446547", "0.62191576", "0.6204775", "0.61635077", "0.6133169", "0.61184824", "0.6106964", "0.6062551", "0.6059863", "0.60494685", "0.60443026", "0.603071", "0.6024513"...
0.5822728
38
Check if the segment has a file request queued
public final boolean isQueued() { return (m_flags & RequestQueued) != 0 ? true : false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean hasUploadRequest();", "boolean hasUploadResponse();", "public boolean hasUploadRequest() {\n return uploadRequestBuilder_ != null || uploadRequest_ != null;\n }", "@java.lang.Override\n public boolean hasUploadRequest() {\n return uploadRequest_ != null;\n ...
[ "0.69090354", "0.6468922", "0.64056236", "0.6280838", "0.625458", "0.620004", "0.61747545", "0.61634177", "0.6148895", "0.6138443", "0.6138443", "0.6138443", "0.6135919", "0.6135919", "0.6133334", "0.61140907", "0.60967875", "0.6076559", "0.6076559", "0.6065202", "0.6065202",...
0.6130022
15
Check if the file data is available
public final boolean isDataAvailable() { if ( hasStatus() >= FileSegmentInfo.Available && hasStatus() < FileSegmentInfo.Error) return true; return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean fileIsReady()\n\t{\n\t\ttry\n\t\t{\n\t\t\tif(notFound)\n\t\t\t{\n\t\t\t\tisReady = false;\n\t\t\t}\n\t\t\telse \n\t\t\t{\n\t\t\t\tisReady = reader.ready();\n\t\t\t}\n\t\t\t\n\t\t} catch (IOException ioe)\n\t\t{\n\t\t\t//\n\t\t}\n\n\t\treturn isReady;\n\t}", "@Override\n\tpublic boolean readData(Fi...
[ "0.7324387", "0.72718513", "0.69816786", "0.69286335", "0.68515974", "0.68084097", "0.6734463", "0.6688101", "0.6637037", "0.6580543", "0.6579351", "0.65683436", "0.6530605", "0.6471933", "0.6460734", "0.6431436", "0.6405581", "0.639043", "0.6384524", "0.6363784", "0.6330478"...
0.7563476
0
Check if the associated temporary file should be deleted once the data store has completed successfully.
public final boolean hasDeleteOnStore() { return (m_flags & DeleteOnStore) != 0 ? true : false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void tempcheck(){\r\n \t//clear last data\r\n if(workplace!=null){\r\n \tFile temp = new File(workplace +\"/temp\");\r\n \tif(temp.exists()){\r\n \t\tFile[] dels = temp.listFiles();\r\n \t\tif(dels[0]!=null){\r\n \t\t\tfor(int i=0; i<dels.length; i++){\r\n ...
[ "0.7049401", "0.6968943", "0.657171", "0.64104086", "0.6391457", "0.6336969", "0.63319254", "0.6252975", "0.6235082", "0.62160134", "0.6159366", "0.6132389", "0.61289006", "0.6083492", "0.60682684", "0.60103124", "0.59747", "0.59713274", "0.5918687", "0.59145176", "0.5884518"...
0.0
-1
Delete the temporary file used by the file segment
public final void deleteTemporaryFile() throws IOException { // DEBUG if ( isQueued()) { Debug.println("@@ Delete queued file segment, " + this); Thread.dumpStack(); } // Delete the temporary file used by the file segment File tempFile = new File(getTemporaryFile()); if ( tempFile.exists() && tempFile.delete() == false) { // DEBUG Debug.println("** Failed to delete " + toString() + " **"); // Throw an exception, delete failed throw new IOException("Failed to delete file " + getTemporaryFile()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void delete() {\n if (tempFile != null) {\n tempFile.delete();\n }\n }", "private void deleteTempHTMLFile()\n {\n File file = new File(\"resources/tempHTML\" +Thread.currentThread().getName() +\".html\");\n file.delete();\n }", "public void deleteTempDir(F...
[ "0.78980666", "0.73591864", "0.70954484", "0.7092279", "0.70017475", "0.69493544", "0.6949245", "0.686259", "0.68007815", "0.67849874", "0.6635286", "0.6582005", "0.6569949", "0.6556484", "0.652934", "0.6518105", "0.6482721", "0.63381517", "0.6319515", "0.6315476", "0.6307444...
0.82023335
0
Return the segment status
public final int hasStatus() { return m_status; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean getSegmented();", "int getSegment();", "public String getSegment()\n {\n return m_strSegment;\n }", "String status();", "String status();", "java.lang.String getStatus();", "java.lang.String getStatus();", "java.lang.String getStatus();", "java.lang.String getStatus();", "def...
[ "0.71744657", "0.6678787", "0.66135764", "0.644601", "0.644601", "0.6417781", "0.6417781", "0.6417781", "0.6417781", "0.63957816", "0.6384047", "0.63706183", "0.63706183", "0.63706183", "0.63706183", "0.63706183", "0.6369333", "0.635425", "0.633098", "0.6315027", "0.6295743",...
0.0
-1
Return the temporary file length
public final long getFileLength() throws IOException { // Get the file length File tempFile = new File(getTemporaryFile()); return tempFile.length(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final long length() throws IOException {\r\n\t\treturn f.length();\r\n\t}", "long getFileLength(String path) throws IOException;", "public long getTempFilesBytesWritten() {\n if(tempFileSizeBytesLeft == null || localTempFileSizeLimit <= 0) {\n return -1;\n }\n return loca...
[ "0.7357923", "0.73315805", "0.7272155", "0.7168789", "0.70794964", "0.705328", "0.7052988", "0.7034728", "0.6999802", "0.69403344", "0.69403344", "0.69136786", "0.6894081", "0.68877923", "0.67874545", "0.6753241", "0.6720431", "0.67176765", "0.668383", "0.65420777", "0.648608...
0.83591586
0
Return the readable file data length
public final long getReadableLength() { return m_readable; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final long length() throws IOException {\r\n\t\treturn f.length();\r\n\t}", "public long length() {\n return _file.length();\n }", "int getLength() throws IOException;", "@Override\n\tpublic long getLength()\n\t{\n\t\treturn inputStream.Length;\n\t}", "public long getFileLength() {\n\n ...
[ "0.8173184", "0.7754496", "0.7744472", "0.76999813", "0.7692948", "0.75949115", "0.75908595", "0.74861544", "0.7485123", "0.7452149", "0.7360101", "0.7346647", "0.73095506", "0.73000264", "0.72669315", "0.7243812", "0.7243812", "0.72314703", "0.7225556", "0.7216462", "0.72149...
0.68445903
46
Set the readable data length for the file, used during data loading to allow the file to be read before the file load completes.
public final void setReadableLength(long readable) { m_readable = readable; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setLength(long newLength) throws IOException {\n flush();\n this.randomAccessFile.setLength(newLength);\n if (newLength < this.fileOffset) {\n this.fileOffset = newLength;\n }\n }", "@Override\n\tpublic void SetLength(long value)\n\t{\n\t\tthrow new Unsupport...
[ "0.715929", "0.6701754", "0.669909", "0.669909", "0.66352886", "0.663308", "0.6516406", "0.6508697", "0.64532363", "0.64340925", "0.6433601", "0.642774", "0.64032835", "0.6357238", "0.63262165", "0.63262165", "0.62967926", "0.6293647", "0.6282016", "0.626687", "0.62527436", ...
0.7151407
1
Set the segment load/update status
public synchronized final void setStatus(int sts) { m_status = sts; notifyAll(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void loadStatus (){\n\t}", "void setSegmented(boolean segmented);", "public void setStatus(String stat)\n {\n status = stat;\n }", "public IRoadSensor setRoadStatus(ERoadStatus s);", "void setStatus(TaskStatus status);", "public void setStatus(boolean stat) {\n\t\tstatus = stat;\n\t}"...
[ "0.6326079", "0.6258024", "0.61538374", "0.606082", "0.6032758", "0.60172665", "0.5951893", "0.59468114", "0.5938791", "0.58923966", "0.588122", "0.5861684", "0.5854007", "0.5832297", "0.5829626", "0.5828089", "0.5822999", "0.580583", "0.5802302", "0.5801205", "0.57858115", ...
0.568636
32
Set the temporary file that is used to hold the local copy of the file data
public final void setTemporaryFile(String tempFile) { m_tempFile = tempFile; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setTmpFile(File tmpFile) {\n this.tmpFile = tmpFile;\n }", "public void setTempPath(String tempPath) {\n this.tempPath = tempPath;\n }", "public boolean setTempFile() {\n try {\n tempFile = File.createTempFile(CleanupThread.DOWNLOAD_FILE_PREFIX_PR, FileExt);\n ...
[ "0.7325322", "0.6568965", "0.64381206", "0.6406577", "0.64028776", "0.61722094", "0.61588997", "0.60810816", "0.60337293", "0.5893831", "0.58806217", "0.58547074", "0.5838956", "0.58163303", "0.5808533", "0.57183236", "0.57006377", "0.56882554", "0.5670217", "0.56392676", "0....
0.7584235
0
Set/clear the updated segment flag
public synchronized final void setUpdated(boolean sts) { setFlag(Updated, sts); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setSegmented(boolean segmented);", "void unsetSegmented();", "void xsetSegmented(org.apache.xmlbeans.XmlBoolean segmented);", "boolean isSetSegmented();", "void setStartSegment(int startSegment);", "public void updateSegment() {\n\t\tint i = curSeg * 2;\n\t\tint iChange = 2;\n\t\tint seg = i;\n\t\to...
[ "0.73202074", "0.6836724", "0.62096417", "0.59341484", "0.5861768", "0.5691957", "0.5613091", "0.5600412", "0.5600412", "0.5557873", "0.55453306", "0.5531828", "0.5521157", "0.5502254", "0.5477136", "0.5474712", "0.54481065", "0.5395969", "0.53660357", "0.53572434", "0.535127...
0.0
-1
Set/clear the request queued flag
public synchronized final void setQueued(boolean qd) { setFlag(RequestQueued, qd); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final boolean isQueued() {\n\t\treturn (m_flags & RequestQueued) != 0 ? true : false;\n\t}", "public void setRequestQueue(BlockingQueue q)\n {\n queue = q;\n }", "private void stopRequest(){ Remove the clause synchronized of the stopRequest method.\n // Synchronization is isolated as...
[ "0.6347069", "0.6337652", "0.6287869", "0.59592116", "0.5917135", "0.5912683", "0.58678126", "0.5833199", "0.5816455", "0.5788886", "0.57781726", "0.5761553", "0.57348275", "0.5733902", "0.5705629", "0.5703353", "0.56961906", "0.56886405", "0.5685409", "0.5642821", "0.5599738...
0.71315855
0
Set the delete on store flag so that the temporary file is deleted as soon as the data store has completed successfully.
public final synchronized void setDeleteOnStore() { if ( hasDeleteOnStore() == false) setFlag(DeleteOnStore, true); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void delete()\n\t{\n\t\tcachedContent = null;\n\t\tFile outputFile = getStoreLocation();\n\t\tif ((outputFile != null) && outputFile.exists())\n\t\t{\n\t\t\tif (Files.remove(outputFile) == false)\n\t\t\t{\n\t\t\t\tlog.error(\"failed to delete file: \" + outputFile.getAbsolutePath());\n\t\t\t}\n...
[ "0.6727826", "0.62783915", "0.6125298", "0.6085183", "0.60831183", "0.60257447", "0.6019323", "0.5986572", "0.5947088", "0.5938518", "0.5895439", "0.5814383", "0.578576", "0.577008", "0.5768365", "0.5752614", "0.57271755", "0.56653434", "0.56374186", "0.56346905", "0.5613816"...
0.71954733
0
Set/clear the specified flag
protected final synchronized void setFlag(int flag, boolean sts) { boolean state = (m_flags & flag) != 0 ? true : false; if ( state && sts == false) m_flags -= flag; else if ( state == false && sts == true) m_flags += flag; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void setFlag() {\n flag = flagVal;\n }", "protected void setFlag() {\n flag = flagVal;\n }", "void setFlag(long flag, boolean val) {\n\t\tif (val)\r\n\t\t\tflags = flags | flag;\r\n\t\telse\r\n\t\t\tflags = flags & ~flag;\r\n\t}", "public void setFlag(Integer flag) { this.flag = fla...
[ "0.77968127", "0.77968127", "0.7526355", "0.74475354", "0.73378444", "0.73317564", "0.7266681", "0.71854776", "0.71763134", "0.7100592", "0.70812833", "0.70551646", "0.70536304", "0.704906", "0.7034401", "0.7017352", "0.6995164", "0.6919702", "0.6899536", "0.68994254", "0.686...
0.7041347
14
Wait for another thread to load the file data
public final void waitForData(long tmo) { // Check if the file data has been loaded, if not then wait if ( isDataAvailable() == false) { synchronized ( this) { try { // Wait for file data wait(tmo); } catch ( InterruptedException ex) { } } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void doLoadInThread() {\n selectFiles(fileChooser.getSelectedFiles(),\n fileChooser.getCurrentDirectory());\n }", "public void procLoadFromFileThread() {\n try {\n\n do {\n /*----------Check Thread Interrupt----------*/\n Thread....
[ "0.6904765", "0.6773284", "0.6628799", "0.65818167", "0.65685683", "0.64218646", "0.63422376", "0.6173088", "0.6144472", "0.6019637", "0.60014015", "0.59583646", "0.591419", "0.5913239", "0.58711845", "0.5837111", "0.57980275", "0.5779093", "0.5768992", "0.57562774", "0.57225...
0.692143
0
Signal that the file data is available, any threads using the waitForData() method will return so that the threads can access the file data.
public final synchronized void signalDataAvailable() { // Notify any waiting threads that the file data ia available notifyAll(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void waitForData() {\n waitForData(1);\n }", "public final void waitForData(long tmo) {\n\n\t\t//\tCheck if the file data has been loaded, if not then wait\n\t\t\n\t\tif ( isDataAvailable() == false) {\n\t\t\tsynchronized ( this) {\n\t\t\t\ttry {\n\t\t\t\t\t\n\t\t\t\t\t//\tWait for file data\n\t...
[ "0.71657276", "0.7122881", "0.6220549", "0.6038972", "0.6034689", "0.57881767", "0.5767099", "0.5747624", "0.5742433", "0.5742233", "0.57411826", "0.57334876", "0.56951135", "0.5616635", "0.559393", "0.5579061", "0.55734766", "0.5474645", "0.54684573", "0.54139626", "0.541288...
0.86604404
0
Return the file segment details as a string
public String toString() { StringBuffer str = new StringBuffer(); str.append("["); str.append(getTemporaryFile()); str.append(":"); str.append(_statusStr[hasStatus()]); str.append(","); if ( isUpdated()) str.append(",Updated"); if ( isQueued()) str.append(",Queued"); str.append("]"); return str.toString(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final String toString() {\n\n\t\t// Build the file information string\n\n\t\tStringBuffer str = new StringBuffer();\n\n\t\t// Add the file information string\n\n\t\tstr.append(m_info.toString());\n\n\t\t// Append the SMB file id\n\n\t\tstr.append(\" ,FID=\");\n\t\tstr.append(m_FID);\n\n\t\t// Return the str...
[ "0.6674726", "0.65583855", "0.65417343", "0.6198212", "0.6110968", "0.6082998", "0.60694313", "0.60157144", "0.59931743", "0.5956574", "0.5916504", "0.59010863", "0.58991486", "0.5883035", "0.58800733", "0.58488697", "0.5832811", "0.58297205", "0.5803533", "0.5786179", "0.578...
0.5488652
45
Get the credentials that will be used to authenticate to the Chef server
private static void performChefComputeServiceBootstrapping(Properties properties) throws IOException, InstantiationException, IllegalAccessException, NoSuchMethodException, IllegalArgumentException, InvocationTargetException { String rsContinent = DataStoreFactory.findProperty(properties, MemStore.class.getDeclaredConstructor().newInstance(), RS_CONTINENT, "rackspace-cloudservers-us"); String rsUser = DataStoreFactory.findProperty(properties, MemStore.class.getDeclaredConstructor().newInstance(), RS_USERNAME, "asf-gora"); String rsApiKey = DataStoreFactory.findProperty(properties, MemStore.class.getDeclaredConstructor().newInstance(), RS_APIKEY, null); String rsRegion = DataStoreFactory.findProperty(properties, MemStore.class.getDeclaredConstructor().newInstance(), RS_REGION, "DFW"); String client = DataStoreFactory.findProperty(properties, MemStore.class.getDeclaredConstructor().newInstance(), CHEF_CLIENT, System.getProperty("user.name")); String organization = DataStoreFactory.findProperty(properties, MemStore.class.getDeclaredConstructor().newInstance(), CHEF_ORGANIZATION, null); String pemFile = System.getProperty("user.home") + "/.chef/" + client + ".pem"; String credential = Files.toString(new File(pemFile), Charsets.UTF_8); // Provide the validator information to let the nodes to auto-register themselves // in the Chef server during bootstrap String validator = organization + "-validator"; String validatorPemFile = System.getProperty("user.home") + "/.chef/" + validator + ".pem"; String validatorCredential = Files.toString(new File(validatorPemFile), Charsets.UTF_8); Properties chefConfig = new Properties(); chefConfig.put(ChefProperties.CHEF_VALIDATOR_NAME, validator); chefConfig.put(ChefProperties.CHEF_VALIDATOR_CREDENTIAL, validatorCredential); // Create the connection to the Chef server ChefApi chefApi = ContextBuilder.newBuilder(new ChefApiMetadata()) .endpoint("https://api.opscode.com/organizations/" + organization) .credentials(client, credential) .overrides(chefConfig) .buildApi(ChefApi.class); // Create the connection to the compute provider. Note that ssh will be used to bootstrap chef ComputeServiceContext computeContext = ContextBuilder.newBuilder(rsContinent) .endpoint(rsRegion) .credentials(rsUser, rsApiKey) .modules(ImmutableSet.<Module> of(new SshjSshClientModule())) .buildView(ComputeServiceContext.class); // Group all nodes in both Chef and the compute provider by this group String group = "jclouds-chef-goraci"; // Set the recipe to install and the configuration values to override String recipe = "apache2"; JsonBall attributes = new JsonBall("{\"apache\": {\"listen_ports\": \"8080\"}}"); // Check to see if the recipe you want exists List<String> runlist = null; Iterable< ? extends CookbookVersion> cookbookVersions = chefApi.chefService().listCookbookVersions(); if (any(cookbookVersions, CookbookVersionPredicates.containsRecipe(recipe))) { runlist = new RunListBuilder().addRecipe(recipe).build(); } for (Iterator<String> iterator = runlist.iterator(); iterator.hasNext();) { String string = (String) iterator.next(); LOG.info(string); } // Update the chef service with the run list you wish to apply to all nodes in the group // and also provide the json configuration used to customize the desired values BootstrapConfig config = BootstrapConfig.builder().runList(runlist).attributes(attributes).build(); chefApi.chefService().updateBootstrapConfigForGroup(group, config); // Build the script that will bootstrap the node Statement bootstrap = chefApi.chefService().createBootstrapScriptForGroup(group); TemplateBuilder templateBuilder = computeContext.getComputeService().templateBuilder(); templateBuilder.options(runScript(bootstrap)); // Run a node on the compute provider that bootstraps chef try { Set< ? extends NodeMetadata> nodes = computeContext.getComputeService().createNodesInGroup(group, 1, templateBuilder.build()); for (NodeMetadata nodeMetadata : nodes) { LOG.info("<< node %s: %s%n", nodeMetadata.getId(), concat(nodeMetadata.getPrivateAddresses(), nodeMetadata.getPublicAddresses())); } } catch (RunNodesException e) { throw new RuntimeException(e.getMessage()); } // Release resources chefApi.close(); computeContext.close(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getCredentials();", "public String getCredentials() {\n return serverGroup.getCredentials();\n }", "private String[] getCredentials() {\n String[] cred = new String[2];\n System.out.print(\"Username: \");\n cred[0] = sc.nextLine();\n System.out.print(\"Password: \");\n cred[1] ...
[ "0.758201", "0.72935", "0.71893024", "0.7184488", "0.71337295", "0.67479515", "0.6705211", "0.6535445", "0.6411403", "0.6388724", "0.63846046", "0.62634766", "0.62030095", "0.61963165", "0.61874956", "0.61582124", "0.6154626", "0.61380684", "0.61380684", "0.61380684", "0.6081...
0.0
-1
Creates a new instance of the RaiderFundAuth.
public RaiderFundAuth(TTUAuth auth) { this.auth = auth; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public FundingDetails() {\n super();\n }", "public FeeAccount ()\n {\n }", "private void createPassenger() {\n account = new Account(\"driver\", \"password\", \"driver@uclive.ac.nz\",\n \"Dan\", \"20 Howard Street\", 1234567, 64278182123L);\n }", "Account() { }", "p...
[ "0.5641687", "0.55310684", "0.5491269", "0.5473431", "0.5390773", "0.5364602", "0.53568", "0.5330788", "0.5289195", "0.5288613", "0.5264906", "0.526464", "0.5263062", "0.5241669", "0.5239946", "0.521478", "0.5178709", "0.5177451", "0.51773256", "0.51768273", "0.51768273", "...
0.6898992
0
Gets a list of account balances for meal plans.
public ArrayList<RaiderFund> getRaiderFunds() { ArrayList<RaiderFund> funds = new ArrayList<RaiderFund>(); if (!auth.isLoggedIn() || !isLoggedIn()) return funds; String html = ""; try { HttpURLConnection conn = Utility.getGetConn(FUND_HOME); conn.setInstanceFollowRedirects(false); conn.setRequestProperty("Cookie", Cookie.chain(aws, php, dummy)); html = Utility.read(conn); //System.out.println(html); int index = html.indexOf("getOverview"); String userID = html.substring(index); userID = userID.substring(userID.indexOf("(") + 2, userID.indexOf(")") - 1); String token = "formToken\""; index = html.indexOf(token); index += token.length() + 1; String form = html.substring(index); form = form.substring(form.indexOf("\"") + 1); form = form.substring(0, form.indexOf("\"")); conn = Utility.getPostConn(FUND_OVERVIEW); String query = "userId=" + userID + "&formToken=" + form; conn.setRequestProperty("Content-Length", query.length() + ""); conn.setInstanceFollowRedirects(false); conn.setRequestProperty("Referer", "https://get.cbord.com/raidercard/full/funds_home.php"); conn.setRequestProperty("Cookie", Cookie.chain(aws, php, dummy)); DataOutputStream dos = new DataOutputStream(conn.getOutputStream()); dos.writeBytes(query); dos.close(); html = "<html><body>"; html += Utility.read(conn); html += "</body></html>"; Document doc = Jsoup.parse(html); for (Element el : doc.select("tbody tr")) { RaiderFund fund = new RaiderFund(); fund.setAccountName(el.select(".account_name").text()); fund.setAmount(el.select(".balance").text()); funds.add(fund); } } catch (IOException e) { TTUAuth.logError(e, "raiderfundget", ErrorType.Fatal); } catch (Throwable t) { TTUAuth.logError(t, "raiderfundgeneral", ErrorType.Fatal, html); } return funds; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getBalances() {\n\n\t\treturn getJson(API_VERSION, ACCOUNT, \"getbalances\");\n\t}", "@RequestMapping(value = \"/balance\", method = RequestMethod.GET)\r\n public List<BigDecimal> getBalances(Principal principal) {\r\n try {\r\n return accountDAO.getCurrentBalance(principal.get...
[ "0.66840684", "0.6587914", "0.618012", "0.61458844", "0.5984392", "0.5977992", "0.59709036", "0.59494734", "0.594077", "0.59401876", "0.59401876", "0.5883445", "0.58794564", "0.5870508", "0.58700484", "0.5860351", "0.58126104", "0.57825357", "0.5731831", "0.5686409", "0.56805...
0.0
-1
Logs into the meal plan balance checking website.
public LoginResult login() { if (!auth.isLoggedIn()) return LoginResult.MAIN_LOGOUT; try { HttpURLConnection conn = Utility.getGetConn(FUND_INDEX); conn.setInstanceFollowRedirects(false); ArrayList<Cookie> tmpCookies = Cookie.getCookies(conn); aws = Cookie.getCookie(tmpCookies, "AWSELB"); php = Cookie.getCookie(tmpCookies, "PHPSESSID"); conn = Utility.getGetConn(FUND_LOGIN); conn.setInstanceFollowRedirects(false); conn.setRequestProperty("Cookie", Cookie.chain(aws, php)); String location = Utility.getLocation(conn); // https://webapps.itsd.ttu.edu/shim/getfunds/index.php/login?service=https%3A%2F%2Fget.cbord.com%2Fraidercard%2Ffull%2Flogin.php conn = Utility.getGetConn(location); conn.setInstanceFollowRedirects(false); // TODO: future speed optimization //if (auth.getPHPCookie() == null) { conn.setRequestProperty("Cookie", Cookie.chain(auth.getELCCookie())); Cookie phpCookie = Cookie.getCookie(Cookie.getCookies(conn), "PHPSESSID"); // saves time for Blackboard and retrieveProfileImage(). auth.setPHPCookie(phpCookie); conn = Utility.getGetConn(Utility.getLocation(conn)); conn.setRequestProperty("Cookie", Cookie.chain(auth.getERaiderCookies())); conn.setInstanceFollowRedirects(false); location = Utility.getLocation(conn); if (location.startsWith("signin.aspx")) location = "https://eraider.ttu.edu/" + location; conn = Utility.getGetConn(location); conn.setInstanceFollowRedirects(false); conn.setRequestProperty("Cookie", Cookie.chain(auth.getERaiderCookies())); // might need to set ESI and ELC here. If other areas are bugged, this is why. /*} else { conn.setRequestProperty("Cookie", Cookie.chain(auth.getELCCookie(), auth.getPHPCookie())); /// TODO This is in retirevProfileImage, maybe Mobile Login, and Blackboard!!! throw new NullPointerException("Needs implementation!"); }*/ // https://webapps.itsd.ttu.edu/shim/getfunds/index.php?elu=XXXXXXXXXX&elk=XXXXXXXXXXXXXXXX conn = Utility.getGetConn(Utility.getLocation(conn)); conn.setInstanceFollowRedirects(false); conn.setRequestProperty("Cookie", Cookie.chain(auth.getPHPCookie(), auth.getELCCookie())); // https://webapps.itsd.ttu.edu/shim/getfunds/index.php/login?service=https%3A%2F%2Fget.cbord.com%2Fraidercard%2Ffull%2Flogin.php conn = Utility.getGetConn(Utility.getLocation(conn)); conn.setInstanceFollowRedirects(false); conn.setRequestProperty("Cookie", Cookie.chain(auth.getPHPCookie(), auth.getELCCookie())); // https://get.cbord.com/raidercard/full/login.php?ticket=ST-... conn = Utility.getGetConn(Utility.getLocation(conn)); conn.setInstanceFollowRedirects(false); conn.setRequestProperty("Cookie", Cookie.chain(aws, php)); // https://get.cbord.com/raidercard/full/funds_home.php location = Utility.getLocation(conn); if (location.startsWith("index.")) { location = "https://get.cbord.com/raidercard/full/" + location; } conn = Utility.getGetConn(location); conn.setInstanceFollowRedirects(false); conn.setRequestProperty("Cookie", Cookie.chain(aws, php)); Utility.readByte(conn); } catch (IOException e) { TTUAuth.logError(e, "raiderfundlogin", ErrorType.Fatal); return LoginResult.OTHER; } catch (Throwable t) { TTUAuth.logError(t, "raiderfundlogingeneral", ErrorType.APIChange); return LoginResult.OTHER; } loggedIn = true; return LoginResult.SUCCESS; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void loginToAccount() {\n\n\t\tSystem.out.println(\"Please enter your userName : \");\n\t\tString userName=scan.nextLine();\n\n\t\tSystem.out.println(\"Please enter your Password : \");\n\t\tString password=scan.nextLine();\n\n\t\tif(userName.equals(userName)&& password.equals(password))\n\t\t\tSyst...
[ "0.65927225", "0.6552656", "0.6515472", "0.6362661", "0.63263047", "0.629683", "0.62775195", "0.6267267", "0.62532806", "0.62282634", "0.6209135", "0.61935556", "0.61718774", "0.61711055", "0.6153834", "0.61372876", "0.6130363", "0.6106064", "0.6073449", "0.60692996", "0.6053...
0.5592917
90
Created by roman on 19.10.17.
@Singleton @Component( modules = { AppModule.class, ObjectBoxModule.class }) public interface AppComponent { void inject(ToDoListActivity activity); void inject(TaskEditorActivity activity); //void inject(ICommonRepository repository); //ICommonRepository repo(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void func_104112_b() {\n \n }", "private void poetries() {\n\n\t}", "private void strin() {\n\n\t}", "@Override\n public void perish() {\n \n }", "private static void cajas() {\n\t\t\n\t}", "protected boolean func_70814_o() { return true; }", "private stendh...
[ "0.5655601", "0.5649269", "0.5644717", "0.5623587", "0.56114465", "0.5602067", "0.555151", "0.5522657", "0.5503791", "0.5501786", "0.54807365", "0.54736894", "0.5438007", "0.5433894", "0.54294956", "0.5416128", "0.54154766", "0.54103076", "0.54103076", "0.53915024", "0.537137...
0.0
-1
Inflate the menu; this adds items to the action bar if it is present.
@Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.menu_main, menu); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tMenuInflater inflater = getMenuInflater();\n \tinflater.inflate(R.menu.main_activity_actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {...
[ "0.7246102", "0.7201358", "0.7194834", "0.7176498", "0.71066517", "0.7039537", "0.7037961", "0.70112145", "0.70094734", "0.69807225", "0.6944953", "0.69389373", "0.6933199", "0.6916928", "0.6916928", "0.6891486", "0.68831646", "0.68754137", "0.68745375", "0.68621665", "0.6862...
0.0
-1
Handle action bar item clicks here. The action bar will automatically handle clicks on the Home/Up button, so long as you specify a parent activity in AndroidManifest.xml.
@Override public boolean onOptionsItemSelected(MenuItem item) { int id = item.getItemId(); //noinspection SimplifiableIfStatement if (id == R.id.action_userProfile) { Intent intent = new Intent(this, UserProfile.class); intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK); startActivity(intent); return true; } if (id == R.id.action_mealPlan) { Intent intent = new Intent(this, UpcomingPlans.class); intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK); startActivity(intent); return true; } if (id == R.id.action_recipe) { Intent intent = new Intent(this, Recipes.class); intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK); startActivity(intent); return true; } if (id == R.id.action_pantry) { Intent intent = new Intent(this, Pantry.class); intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK); startActivity(intent); return true; } if (id == R.id.action_fitnessTracker) { Intent intent = new Intent(this, FitnessTracker.class); intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK); startActivity(intent); return true; } if (id == R.id.action_settings) { /*Intent intent = new Intent(this, Settings.class); intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK); startActivity(intent);*/ toggleNotifications(); return true; } return super.onOptionsItemSelected(item); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onOptionsItemSelected(MenuItem item) { Handle action bar item clicks here. The action bar will\n // automatically handle clicks on the Home/Up button, so long\n // as you specify a parent activity in AndroidManifest.xml.\n\n //\n // HANDLE BACK BUTTON\n ...
[ "0.79041183", "0.7805934", "0.77659106", "0.7727251", "0.7631684", "0.7621701", "0.75839096", "0.75300384", "0.74873656", "0.7458051", "0.7458051", "0.7438486", "0.742157", "0.7403794", "0.7391802", "0.73870087", "0.7379108", "0.7370295", "0.7362194", "0.7355759", "0.73454577...
0.0
-1
Use this factory method to create a new instance of this fragment using the provided parameters.
public static FindFragment newInstance(String param1, String param2) { FindFragment fragment = new FindFragment(); Bundle args = new Bundle(); args.putString(ARG_PARAM1, param1); args.putString(ARG_PARAM2, param2); fragment.setArguments(args); return fragment; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static FragmentTousWanted newInstance() {\n FragmentTousWanted fragment = new FragmentTousWanted();\n Bundle args = new Bundle();\n fragment.setArguments(args);\n return fragment;\n }", "protected abstract Fragment createFragment();", "public void createFragment() {\n\n ...
[ "0.7259323", "0.72325355", "0.7113618", "0.699069", "0.69899815", "0.6833516", "0.68299687", "0.6813079", "0.6800701", "0.6800411", "0.6765796", "0.67397755", "0.67397755", "0.67275816", "0.6716515", "0.6706048", "0.6691217", "0.66904765", "0.6688572", "0.66629845", "0.664517...
0.0
-1
Inflate the layout for this fragment
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View view = inflater.inflate(R.layout.fragment_find, container, false); initView(view); getData(page,userId,token); setLister(); return view; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_main_allinfo, container, false);\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup...
[ "0.6740675", "0.6725193", "0.67224836", "0.6699259", "0.6691596", "0.668896", "0.6687658", "0.66861755", "0.667755", "0.66756433", "0.6667425", "0.66667783", "0.6665166", "0.66614723", "0.66549766", "0.665031", "0.6643759", "0.6639389", "0.66378653", "0.66345453", "0.6626348"...
0.0
-1
TODO: Rename method, update argument and hook method into UI event
public void onButtonPressed(Uri uri) { if (mListener != null) { mListener.onFragmentInteraction(uri); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t\t}", "@Override\n\t\t\t\tpublic void handle(ActionEvent event) {\n\n\t\t\t\t}", "@Override\n\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t\t\n\t\t\t}", "@...
[ "0.6619185", "0.65246344", "0.6473144", "0.6473144", "0.64351684", "0.6325494", "0.62368196", "0.6189416", "0.6158721", "0.61455715", "0.6123594", "0.6107332", "0.6101038", "0.6092755", "0.6049496", "0.6049496", "0.60442764", "0.604003", "0.604003", "0.6007846", "0.59999037",...
0.0
-1
TODO Autogenerated method stub
@Override public void onHiddenChanged(boolean hidden) { super.onHiddenChanged(hidden); if ( !hidden) { mHandler.setHandleMsgListener(this); } }
{ "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
This interface must be implemented by activities that contain this fragment to allow an interaction in this fragment to be communicated to the activity and potentially other fragments contained in that activity. See the Android Training lesson Communicating with Other Fragments for more information.
public interface OnFragmentInteractionListener { // TODO: Update argument type and name void onFragmentInteraction(Uri uri); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface OnFragmentInteractionListener {\n void onFragmentMessage(String TAG, Object data);\n}", "public interface FragmentInteraction {\n void switchToBoardView();\n void switchToPinsView();\n void switchToPins(PDKBoard pdkBoard);\n void switchToDescription(PDKPin pin);\n}", "public int...
[ "0.73250246", "0.7208194", "0.7135128", "0.7124374", "0.7122289", "0.7015256", "0.6976415", "0.6976415", "0.6976415", "0.697415", "0.69679785", "0.69658804", "0.6961106", "0.6953952", "0.6943612", "0.69336414", "0.6929252", "0.69277585", "0.692306", "0.6909864", "0.69028807",...
0.0
-1
TODO: Update argument type and name
void onFragmentInteraction(Uri uri);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n public String getFirstArg() {\n return name;\r\n }", "@Override\n public int getNumberArguments() {\n return 1;\n }", "java.lang.String getArg();", "@Override\n public int getArgLength() {\n return 4;\n }", "Argument createArgument();", "@Override\r\n\tpublic ...
[ "0.71620077", "0.69440025", "0.6711487", "0.6510869", "0.6395964", "0.637318", "0.6347982", "0.63172585", "0.626037", "0.6206126", "0.6206126", "0.6204428", "0.6196331", "0.61786395", "0.617723", "0.61509335", "0.614605", "0.61263025", "0.6074019", "0.6056265", "0.59894925", ...
0.0
-1
Uses JPA Repo and uses a Role with
public interface RoleRepository extends JpaRepository<Role, Long>{ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Repository\npublic interface RoleRepository extends JpaRepository<Role, Long> {\n}", "@Repository\npublic interface RoleRepository extends JpaRepository<Role,Long> {\n\n Role findByName(String name);\n\n}", "public interface RoleRepository {\n public List<UserRole> getAll();\n public UserRole getById...
[ "0.72176915", "0.7167156", "0.71609956", "0.7130406", "0.7098338", "0.70870835", "0.7079932", "0.705707", "0.7043104", "0.70421815", "0.70168084", "0.7010657", "0.69937736", "0.69879913", "0.6976173", "0.6961066", "0.6930623", "0.6906886", "0.6903036", "0.6874268", "0.6855857...
0.71176213
4
set default endpoint to DEFAULT if none is given
public static Set<Set<Result>> getResults(String query, Set<String> endpoints) { if(endpoints==null) endpoints = new HashSet<String>(); if(endpoints.isEmpty()) endpoints.add(DEFAULT); //generate output for each endpoint Query sparqlQuery = QueryFactory.create(query); Set<Set<Result>> output = new HashSet<Set<Result>>(); for(String endpoint: endpoints) { QueryEngineHTTP engine = QueryExecutionFactory.createServiceRequest(endpoint, sparqlQuery); ResultSet rs = engine.execSelect(); while(rs.hasNext()) { QuerySolution qs = rs.next(); Set<Result> results = new HashSet<Result>(); List<String> vars = rs.getResultVars(); for(String var: vars) { results.add(new Result(var, qs.get(var).toString(), endpoint)); } output.add(results); } } return output; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setDefaultEndpoint(Endpoint defaultEndpoint);", "void setDefaultEndpointUri(String endpointUri);", "Endpoint getDefaultEndpoint();", "public static String getDefaultEndpoint() {\n return WorkflowsStubSettings.getDefaultEndpoint();\n }", "void setEndpoint(String endpoint);", "public static String...
[ "0.9021079", "0.83034295", "0.82438403", "0.7106995", "0.7073808", "0.65550286", "0.6502338", "0.64436275", "0.64023256", "0.6229131", "0.6212951", "0.6195779", "0.6173245", "0.6148104", "0.6017904", "0.5986969", "0.59658206", "0.59173197", "0.59173197", "0.5901044", "0.58341...
0.0
-1
Written by Bill Checks if locale is manually set or if this is the first startup of the app Post: If locale is set it does nothing If locale is not set it starts the select language activity
public boolean confirmConnection(){ boolean connected = isConnectingToInternet(); if(!connected){ DialogFragment restartQuit = new ConnectionDialogueFragment(); restartQuit.show(_activity.getFragmentManager(), "NoInternetConnection"); } return connected; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void ensureLanguageIsDefined() {\n SharedPreferences sharedPref;\n SharedPreferences.Editor editor;\n sharedPref = getSharedPreferences(\"LlPreferences\", Context.MODE_PRIVATE);\n if (sharedPref.getBoolean(\"app_need_lang_def\", true) == true) {\n startActivity(choose...
[ "0.7154431", "0.713708", "0.69009155", "0.687247", "0.686078", "0.6656142", "0.6628607", "0.6559079", "0.64968413", "0.6406941", "0.6397528", "0.62992084", "0.6240161", "0.6237088", "0.62093836", "0.61912066", "0.61895853", "0.6152643", "0.61379063", "0.61344564", "0.61196613...
0.0
-1
A method that tries to connect again
public void retry(){ _activity.finish(); Intent i = _activity.getBaseContext().getPackageManager() .getLaunchIntentForPackage(_activity.getBaseContext().getPackageName()); i.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); _activity.startActivity(i); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void attemptReconnect() {\n\t\tConnection.this.reliabilityManager.attemptConnect();\n\t}", "@Override\n\tpublic void reconnect() {\n\n\t}", "@Override\r\n public boolean reconnect()\r\n {\n return state.isConnected();\r\n }", "public void connectionLost(){\n\t\ttry {\n\t\t\tconnect(\"a...
[ "0.74064136", "0.71340233", "0.7086453", "0.7077955", "0.7010218", "0.6921219", "0.68905795", "0.6878785", "0.68588144", "0.6811222", "0.6801947", "0.6784604", "0.67444867", "0.67079914", "0.6640545", "0.65810585", "0.65646803", "0.6543517", "0.6532101", "0.65193814", "0.6515...
0.0
-1
Created by XuJinghui on 2019/11/5.
@Mapper public interface RecruitMapper { @Insert("insert into fe_recruit values(null,#{user_id},#{unit},#{subject},#{stu_intro},#{pattern},#{area},#{address},#{salary},#{work_require},#{send_time,jdbcType=TIMESTAMP},#{end_time,jdbcType=TIMESTAMP},#{status})") int insertRecruitSend(SendRecruit sendRecruit); @Select("select u.uname,u.photo,s.* from fe_recruit s,fe_user u where s.user_id=u.uid and s.status=#{status} ORDER BY send_time DESC") List<Map<String,Object>> getAllSendRecruits(int status); @Select("select u.uname,u.photo,u.phone,u.email,s.* from fe_recruit s,fe_user u where s.user_id=u.uid and s.id=#{id}") Map<String,Object> getSendRecruitById(int id); @Select("select * from fe_recruit where user_id=#{uid} and status=#{status}") List<Map<String,Object>> getRecruitByUidAndStatus(@Param("uid") String uid, @Param("status") int status); @Select("select * from fe_recruit where user_id=#{uid}") List<SendRecruit> getRecruitByUid(String uid); @Update("update fe_recruit set status=#{status} where id=#{id}") int updateStatusById(@Param("id") int id, @Param("status") int status); @Delete("delete from fe_recruit where id=#{id}") int deleteById(int id); @Update("update fe_recruit set send_time=#{send_time,jdbcType=TIMESTAMP} where id=#{id}") int updateSendTimeById(@Param("id") int id, @Param("send_time") Date send_time); @Select("select * from fe_recruit where id=#{id}") SendRecruit getRecruitById(int id); @Update("update fe_recruit (#{recruit}) where id=#{id}") @Lang(SimpleUpdateExtendedLanguageDriver.class) int updateRecruit(SendRecruit recruit); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "private stendhal() {\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "private static void cajas() {\n\t\t\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpu...
[ "0.60649425", "0.6020451", "0.57494795", "0.57494795", "0.571991", "0.57168835", "0.5698954", "0.56624675", "0.5660715", "0.5645718", "0.5625002", "0.5601632", "0.55958825", "0.5583718", "0.5579844", "0.55597246", "0.55591196", "0.55566937", "0.5553991", "0.5538323", "0.55245...
0.0
-1
the left polygon of this arc
public int getIndex() { return index; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Shape rotateLeft() \n\t{\n\t\tif (detailShape == Tetromino.SQUARE)\n\t\t{\n\t\t\treturn this;\n\t\t}\n\t\t\n\t\tvar result = new Shape();\n\t\tresult.detailShape = detailShape;\n\t\t\n\t\tfor (int i=0; i<4; i++)\n\t\t{\n\t\t\tresult.setX(i, y(i));\n\t\t\tresult.setY(i, -x(i));\n\t\t}\n\t\t\n\t\treturn resul...
[ "0.65929276", "0.61452514", "0.6095586", "0.608517", "0.60809934", "0.6062857", "0.5986248", "0.5975387", "0.5973962", "0.59600466", "0.5951286", "0.5921792", "0.5892439", "0.5876438", "0.58725727", "0.58702415", "0.5842911", "0.584157", "0.5826013", "0.58118016", "0.58017594...
0.0
-1
the constructor of Line with dots
Line(Dot StartDot,Dot EndDot,int index){ this.StartDot = StartDot; this.EndDot = EndDot; this.sx = StartDot.getX(); this.sy = StartDot.getY(); this.ex = EndDot.getX(); this.ey = EndDot.getY(); this.Angle = Math.atan2((ey - sy),(ex - sx)); // if((ey - sy) > 0 && (ex - sx) < 0) Angle += Math.PI; // if((ey - sy) < 0 && (ex - sx) < 0) Angle += Math.PI; // if((ey - sy) < 0 && (ex - sx) > 0) Angle += Math.PI * 2; // if((ex-sx) < 0) Angle += Math.PI; // if((ex - sx) > 0 && (ey - sy) < 0) Angle += Math.PI * 2; if(Angle < 0) Angle += Math.PI * 2; this.rightPoly = null; this.leftPoly = null; this.index = index; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Line(){\n\t\t\n\t}", "public Line()\n\t{\n\t\tthis(1.0f, 1.0f, 0.0f);\n\t}", "Line createLine();", "public Line(Point p1, Point p2) {\n super(p1, p2);\n this.p1 = p1;\n this.p2 = p2;\n }", "public Lines(int rows, int columns, Dot[][] dots) {\n\n for (int row = 0; row <= rows; ++row)...
[ "0.76066893", "0.7354298", "0.69679046", "0.6952482", "0.68827856", "0.6849597", "0.68250865", "0.68232423", "0.67006975", "0.6604176", "0.6558051", "0.65390366", "0.65367436", "0.6484524", "0.6460215", "0.6394005", "0.6393339", "0.63298166", "0.63157284", "0.63106155", "0.62...
0.69582355
3
TODO Autogenerated method stub
public boolean equals(Line other) { if(this.getStartDot().equals(other.getStartDot()) && this.getEndDot().equals(other.getEndDot())) return true; else { return false; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
Return a metadata collection sorted by id, to make output canonical.
public static <T extends SymbolWithId> List<T> getSortedBySymbolId(Set<T> set) { List<T> ret = new ArrayList<>(set); ret.sort(Comparator.comparing(SymbolWithId::getSymbolId)); return ret; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic Collection<Symptom> getSortedSymptoms(Long id) {\n\t\tDisease d = diseaseRepository.getOne(id);\n\t\tArrayList<Symptom> symptoms = new ArrayList<>(d.getSymptoms());\n\t\tCollections.sort(symptoms, new Comparator<Symptom>() {\n\t\t\tpublic int compare(Symptom s1, Symptom s2) {\n\t\t\t\treturn s1...
[ "0.54806453", "0.5340102", "0.5315127", "0.5174633", "0.5166462", "0.51355404", "0.5116236", "0.50680435", "0.5065536", "0.50382453", "0.5035961", "0.5033012", "0.49854207", "0.4977494", "0.49656948", "0.4940419", "0.49301726", "0.4924159", "0.4924159", "0.49214745", "0.49211...
0.0
-1
Create a JVM metadata object from a map representation for JSON data.
@SuppressWarnings("unchecked") public static JvmMetadata fromMap(Map<String, Object> map) { JvmMetadata metadata = new JvmMetadata(); Metadata.fillFromMap(metadata, map); metadata.jvmClasses.addAll((List<JvmClass>) map.get(JvmClass.class.getSimpleName())); metadata.jvmFields.addAll((List<JvmField>) map.get(JvmField.class.getSimpleName())); metadata.jvmMethods.addAll((List<JvmMethod>) map.get(JvmMethod.class.getSimpleName())); metadata.jvmVariables.addAll((List<JvmVariable>) map.get(JvmVariable.class.getSimpleName())); metadata.jvmInvocations.addAll((List<JvmMethodInvocation>) map.get(JvmMethodInvocation.class.getSimpleName())); metadata.jvmHeapAllocations.addAll((List<JvmHeapAllocation>) map.get(JvmHeapAllocation.class.getSimpleName())); metadata.usages.addAll((List<Usage>) map.get(Usage.class.getSimpleName())); metadata.jvmStringConstants.addAll((List<JvmStringConstant>) map.get(JvmStringConstant.class.getSimpleName())); metadata.aliases.addAll((List<SymbolAlias>) map.get(SymbolAlias.class.getSimpleName())); return metadata; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.util.Map<java.lang.String, java.lang.String>\n getMetadataMap();", "java.util.Map<java.lang.String, java.lang.String>\n getMetadataMap();", "@NonNull\n JsonMap getMetadata();", "public Map<String, Variant<?>> GetMetadata();", "@Nullable\n @Generated\n @Selector(\"metadata\")\n public...
[ "0.54837495", "0.54837495", "0.5459905", "0.5413081", "0.54089594", "0.53068537", "0.52804357", "0.52533436", "0.5013977", "0.50075746", "0.4998473", "0.4970195", "0.49701256", "0.49314559", "0.4916874", "0.4916874", "0.48958975", "0.48941576", "0.48330724", "0.48290482", "0....
0.74340105
0
Prints a metadata report in the standard output.
@Override public void printReportStats(Printer printer) { super.printReportStats(printer); printer.println("Classes: " + jvmClasses.size()); printer.println("Fields: " + jvmFields.size()); printer.println("Methods: " + jvmMethods.size()); printer.println("Variables: " + jvmVariables.size()); printer.println("HeapAllocations: " + jvmHeapAllocations.size()); printer.println("MethodInvocations: " + jvmInvocations.size()); printer.println("Usages: " + usages.size()); printer.println("Aliases: " + aliases.size()); printer.println("StringConstants: " + jvmStringConstants.size()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@SuppressWarnings(\"unchecked\")\r\n\tpublic void print() {\r\n\t\tSystem.out.println(\"** Metadata **\");\r\n\t\tfor (final Map<String, Object> m : _data) {\r\n\t\t\tSystem.out.println(\" + ALBUM\");\r\n\t\t\tfor (final String key : m.keySet()) {\r\n\t\t\t\tfinal Object o = m.get(key);\r\n\r\n\t\t\t\t// Most stuf...
[ "0.6204247", "0.61063755", "0.6080776", "0.60644007", "0.5956335", "0.58354396", "0.58137816", "0.5805095", "0.5717435", "0.5702705", "0.56605333", "0.5644746", "0.5633161", "0.56004506", "0.5593034", "0.5593034", "0.5588158", "0.55815023", "0.5551916", "0.55513954", "0.55335...
0.0
-1
parses the given string for the args given to jgrep invokes all other methods
public void parse(String userInput) { String[] args = toStringArray(userInput, ' '); String key = ""; ArrayList<String> filePaths = new ArrayList<String>(); boolean caseSensitive = true; boolean fileName = false; // resolves the given args for (int i = 0; i < args.length; i++) { if (args[i].equals("-i")) { caseSensitive = false; } else if (args[i].equals("-l")) { fileName = true; } else if (args[i].contains(".")) { filePaths.add(args[i]); } else { key = args[i]; } } // in the case of multiple files to parse this repeats until all files // have been searched for (String path : filePaths) { this.document = readFile(path); findMatches(key, path, caseSensitive, fileName); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void grep(String[] args) {\n\t\t//Boolean to skip the first term in args which is the search term\n\t\tBoolean searchTerm = false;\n\t for (String i : args) {\n\t \t if (searchTerm==false) {\n\t \t\t searchTerm = true;\n\t \t\t continue;\n\t \t }\n\t \t //Print the current di...
[ "0.6664063", "0.6332018", "0.6066922", "0.60625684", "0.59233236", "0.59052813", "0.57642174", "0.5736587", "0.5698763", "0.56893253", "0.5677587", "0.5672882", "0.5633925", "0.5611511", "0.5587754", "0.55482256", "0.55422133", "0.55190206", "0.54821783", "0.5427811", "0.5418...
0.503988
61
fins the matches of the given key inside the document then echos the line containing the key a line is determined by a "." char
private void findMatches(String key, String path, boolean caseSensitive, boolean fileName) { for (String word : document) { if (contains(key, word, caseSensitive)) { if (fileName) { System.out.println(path); break; } else { System.out.println(word); } } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) throws FileNotFoundException {\n String paragraphs[]=parser(\"tomSawyer.txt\");\r\n\r\n //creates ID for each paragraph\r\n String[] ID=new String[paragraphs.length];\r\n for(int i=0;i<paragraphs.length;i++)\r\n {\r\n ID[i]=\"\"+(i);\...
[ "0.5470839", "0.5353092", "0.5317721", "0.5235008", "0.5035553", "0.5028363", "0.5008769", "0.4998941", "0.4844537", "0.48429963", "0.4841064", "0.48385683", "0.47928143", "0.47860086", "0.47671768", "0.47272122", "0.4691672", "0.4679347", "0.46668455", "0.46512243", "0.46328...
0.6493701
0
split the given string by the char split and return the resulting strings as a String array
private String[] toStringArray(String doc, char split) { // count words int wordCount = 0; for (int i = 0; i < doc.length(); i++) { if (doc.charAt(i) == split) { wordCount++; } } // split the String String[] words = new String[wordCount]; int lastWord = 0; int index = 0; for (int i = 0; i < doc.length(); i++) { if (doc.charAt(i) == split) { words[index++] = doc.substring(lastWord, i + 1).trim(); lastWord = i + 1; } } return words; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static String[] split(String s, char token) {\n\t\tint tokenCount = 0;\n\t\tfor(int i=0;i<s.length();i++) {\n\t\t\tif(s.charAt(i) == token) {\n\t\t\t\ttokenCount++;\n\t\t\t}\n\t\t}\n\t\t\n\t\tString[] splits = new String[tokenCount+1];\n\t\t\n\t\tString temp = \"\";\n\t\tint tokenItr = 0;\n\t\tfor(int i=0;i...
[ "0.7499128", "0.7397076", "0.73797685", "0.7330122", "0.717519", "0.7109664", "0.7106869", "0.7096227", "0.7078358", "0.7076035", "0.6988742", "0.6986643", "0.6899004", "0.681711", "0.6772656", "0.6764232", "0.67285454", "0.65675807", "0.65097725", "0.6488246", "0.6465824", ...
0.58470863
68
returns a boolean value weather or not the word contains the key. has an option to ignore the case of the key
private boolean contains(String key, String word, boolean caseSensitive) { int keyLen = key.length(); if (caseSensitive) { for (int i = 0; i <= word.length() - keyLen; i++) { if (word.substring(i, i + keyLen).equals(key)) { return true; } } } else { for (int i = 0; i <= word.length() - keyLen; i++) { if (word.substring(i, i + keyLen).equalsIgnoreCase(key)) { return true; } } } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean contains(String word) {\r\n\r\n return dictionaryMap.containsKey(word.toUpperCase());\r\n\r\n }", "boolean contains(String key);", "boolean contains(String key);", "public boolean contains(String word) {\r\n\t\treturn dict.contains(word);\r\n\t}", "public boolean contains(String ke...
[ "0.771723", "0.74111795", "0.74111795", "0.7362959", "0.72659385", "0.72508514", "0.7170371", "0.7166265", "0.7164029", "0.7138834", "0.7135822", "0.69687027", "0.6942876", "0.6924427", "0.69214123", "0.6899609", "0.6886464", "0.6874697", "0.68666595", "0.68569636", "0.683544...
0.77986616
0
outputs each line in the designated file as an Entry in a String[]
private String[] readFile(String location) { try { BufferedReader reader = new BufferedReader(new FileReader(location)); ArrayList<String> document = new ArrayList<String>(); String currLine; // continue to append until the end of file has been reached while ((currLine = reader.readLine()) != null) { // avoiding empty strings if (!currLine.isEmpty()) document.add(currLine); } reader.close(); return document.toArray(new String[1]); } catch (IOException e) { e.printStackTrace(); } // sadly neccessary default return case return new String[0]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String[] buildEntries(String a) {\n try {\n File file = new File(a);\n Scanner input = new Scanner(file);\n while (input.hasNextLine()) {\n String line=input.nextLine();\n String name=line.substring(line.indexOf(\"\\t\"));\n name=name.substring(0,name.lastIndexOf(\"H\"));\n name=name...
[ "0.66615206", "0.64017457", "0.61493415", "0.602698", "0.6026788", "0.60142154", "0.59851813", "0.59332895", "0.5917477", "0.58830947", "0.58729196", "0.5837087", "0.58188426", "0.5787616", "0.57667685", "0.57389057", "0.5733238", "0.57202023", "0.57202023", "0.5690049", "0.5...
0.0
-1
Referenced classes of package io.fabric.sdk.android.services.network: HttpMethod, HttpRequest, PinningInfoProvider
public interface HttpRequestFactory { public abstract HttpRequest buildHttpRequest(HttpMethod httpmethod, String s); public abstract HttpRequest buildHttpRequest(HttpMethod httpmethod, String s, Map map); public abstract PinningInfoProvider getPinningInfoProvider(); public abstract void setPinningInfoProvider(PinningInfoProvider pinninginfoprovider); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface InfoRequest extends BaseRequest {\n\n InfoRequest setShortLabel(CharSequence label);\n\n InfoRequest setLongLabel(CharSequence label);\n\n InfoRequest setDisabledMessage(CharSequence disabledMessage);\n\n InfoRequest setIcon(Bitmap bitmap);\n\n InfoRequest setIcon(Drawable drawable)...
[ "0.52405924", "0.5169905", "0.5119525", "0.50883865", "0.5085347", "0.50803065", "0.5078045", "0.5069506", "0.5046522", "0.5013343", "0.50111955", "0.4991004", "0.49789292", "0.49589112", "0.49276167", "0.49247912", "0.4903279", "0.4903279", "0.48969182", "0.48924884", "0.484...
0.49742013
13
return a Optional pending ResponseFuture by given correlationId.
public static Optional<ServiceResponse> get(String correlationId) { return Optional.of(futures.get(correlationId)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Nullable\n public Response<T> awaitResponse() {\n Await.latch(responseLatch, waitTimeMs);\n return responseContainer.get();\n }", "com.ipay.api.grpc.ServiceGenericReply getReply();", "@GET\n @Produces(MediaType.TEXT_PLAIN)\n public CompletionStage<String> maybeYesOrNo()\n {\n ...
[ "0.5118843", "0.5004828", "0.48490286", "0.48255402", "0.48003072", "0.47902557", "0.45729342", "0.45680708", "0.4543476", "0.45030802", "0.44963238", "0.44667137", "0.44143978", "0.44112006", "0.4406547", "0.43824258", "0.4376698", "0.43494692", "0.4347148", "0.43339217", "0...
0.7789066
0
complete the expected future response successfully and apply the function.
public void complete(Message message) { if (message.header("exception") == null) { messageFuture.complete(function.apply(message)); } else { LOGGER.error("cid [{}] remote service invoke respond with error message {}", correlationId, message); messageFuture.completeExceptionally(message.data()); } futures.remove(this.correlationId); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void operationComplete(Future<Response> future) throws Exception {\n }", "CompletableFuture<WebClientServiceResponse> whenComplete();", "@Override\n public void operationComplete(Future<Void> future) throws Exception{\n if(!future.isSuccess()){\n ...
[ "0.69235504", "0.6660811", "0.6653972", "0.61836326", "0.6170641", "0.6170641", "0.61557734", "0.6080103", "0.60378927", "0.5948815", "0.5940915", "0.58993936", "0.58206874", "0.57924855", "0.5789504", "0.57877535", "0.5754458", "0.57409143", "0.57272136", "0.57185256", "0.57...
0.54062825
85
complete the expected future response exceptionally with a given exception.
public void completeExceptionally(Throwable exception) { messageFuture.completeExceptionally(exception); futures.remove(this.correlationId); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void operationComplete(Future<Response> future) throws Exception {\n }", "@Override\n public void operationComplete(ChannelFuture future) throws Exception {\n if (!future.isSuccess()) {\n Throwable cause = future.cause();\n ...
[ "0.6368535", "0.6268779", "0.6086253", "0.5997044", "0.5787659", "0.5753979", "0.564964", "0.5557127", "0.5497742", "0.54774106", "0.53798026", "0.53712636", "0.53528047", "0.5325526", "0.5292485", "0.52701026", "0.52623034", "0.5257528", "0.52181387", "0.51893455", "0.517316...
0.6966053
0
future of this correlated response.
public CompletableFuture<Object> future() { return messageFuture; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void awaitResult(){\t\n\t\ttry {\n\t\t\t/*place thread/tuple identifier in waitlist for future responses from web service*/\n\t\t\tResponses.getInstance().addToWaitList(this.transId, this);\n\t\t\tthis.latch.await();\n\t\t\t\n\t\t} catch (InterruptedException e) {\n\n\t\t\tLogger.getLogger(\"RSpace\").lo...
[ "0.6285853", "0.5718331", "0.56778985", "0.56637007", "0.560122", "0.556376", "0.55258876", "0.5517272", "0.55068374", "0.5482601", "0.5479431", "0.5479431", "0.54748863", "0.54748863", "0.5393023", "0.53844094", "0.53679824", "0.5308647", "0.5264171", "0.5264171", "0.5252067...
0.5579603
5
Correlation id of the request.
public String correlationId() { return correlationId; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Object getCorrelationId()\n {\n return getUnderlyingId(false);\n }", "public static String getTransId() {\n\n return MDC.get(MDC_KEY_REQUEST_ID);\n }", "public String getCurrentRequestId()\n\t{\n\t\tString reqID = (String) MDC.get(REQUEST_ID);\n\t\tif (reqID == null || \"\".equals...
[ "0.78216517", "0.7033319", "0.7012582", "0.68987954", "0.6763355", "0.6731649", "0.6664083", "0.6506542", "0.6461361", "0.62763476", "0.6248425", "0.6195505", "0.61785555", "0.6151973", "0.6151973", "0.6091304", "0.6082145", "0.6052023", "0.60509294", "0.6046379", "0.599288",...
0.76962614
1
Creates a customized instance.
public DccdMailerConfiguration(final InputStream inputStream) throws IOException { super(inputStream); if (getSmtpHost() == null) setSmtpHost(SMTP_HOST_DEFAULT); if (getSenderName() == null) setSenderName(FROM_NAME_DEFAULT); if (getFromAddress() == null) setFromAddress(FROM_ADDRESS_DEFAULT); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Reproducible newInstance();", "Instance createInstance();", "@Override\n\tpublic void create () {\n\n\t}", "@Override\r\n\tpublic void create() {\n\t\t\r\n\t}", "@Override\n\tpublic void create() {\n\n\t}", "@Override\n\tpublic void create() {\n\t\t\n\t}", "private Object createInstance() throws Instan...
[ "0.6612679", "0.6579362", "0.64664537", "0.64507335", "0.64217156", "0.640061", "0.62952", "0.6247549", "0.6247487", "0.62419647", "0.62174845", "0.6070639", "0.6048356", "0.604459", "0.6034458", "0.60135514", "0.5996018", "0.5995994", "0.59848166", "0.59764457", "0.5967282",...
0.0
-1
InterfaceB has a dependency: InterfaceC
public interface InterfaceB extends SuperInterface{ int getB(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface InterfaceB {\n\tpublic String getB1();\n\n\tpublic String getB2();\n}", "public interface InterB {\n String a = \"B\";\n}", "public interface B\n{\n String foo();\n}", "public interface ComponentC {\n\n void doSomethingElse();\n\n}", "public interface a extends IInterface {\n}", "...
[ "0.6722067", "0.6648212", "0.6471276", "0.6392117", "0.6362605", "0.6359771", "0.6356156", "0.6352507", "0.6348536", "0.6300462", "0.6290923", "0.6278549", "0.6265068", "0.6265068", "0.6257292", "0.6251269", "0.62435126", "0.62272024", "0.6218221", "0.62028193", "0.6175206", ...
0.6509245
2
Permet d'ajout d'un bouton a l'interface
public void addButton(Button button, int id) { buttonArray[id] = button; buttonArray[id].setInterface(this); if (id > maxId) maxId = id; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface TipoJogador {\n\n /**\n * Informa para o jogador que uma tecla foi pressionada.\n * \n * @param t Tecla que foi pressionada.\n */\n public void informarTeclaPressionada( Tecla t );\n \n /**\n * Informa para o jogador que uma tecla foi solta.\n * \n * @param ...
[ "0.6668571", "0.6511054", "0.6358657", "0.6358177", "0.63567966", "0.6269692", "0.62633437", "0.622375", "0.620334", "0.6191734", "0.61806375", "0.611795", "0.6105298", "0.61048883", "0.61035573", "0.609351", "0.60845405", "0.6064404", "0.59972", "0.59944075", "0.59930444", ...
0.0
-1
Permet d'actualiser l'affichage de l'interface
public void show() { for (int id = 0; id <= maxId; id++) { if (buttonArray[id] != null) if (buttonArray[id].isVisible()) buttonArray[id].show(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface ObjetoDependienteDeTurno {\n\n public void siguienteTurno();\n\n}", "public interface IFlyAminal {\n void fly();\n}", "public interface zzo\n extends IInterface\n{\n\n public abstract void zze(AdRequestParcel adrequestparcel);\n}", "public interface FlyBehevour {\n void fly()...
[ "0.67331004", "0.6731736", "0.6650233", "0.65845346", "0.65014327", "0.6465518", "0.6464206", "0.6462107", "0.64602673", "0.64562476", "0.6296711", "0.62904596", "0.6269126", "0.62577754", "0.624086", "0.6234602", "0.62317777", "0.62165684", "0.6212818", "0.6207579", "0.62072...
0.0
-1
Permet de recuperer les boutons contenus dans l'interface
public Button[] getButtons() { return buttonArray; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override // Métodos que fazem a anulação\n\tpublic void getBonificação() {\n\t\t\n\t}", "public interface NCBENU {\n}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "public interface IBemListaInteractor {\n\n void buscarBensPorDepartamento(IB...
[ "0.6282508", "0.62500465", "0.618067", "0.618067", "0.6160586", "0.60982454", "0.5996636", "0.59670234", "0.59635556", "0.5939069", "0.5933412", "0.58897966", "0.5867026", "0.5843223", "0.5833336", "0.5832105", "0.5831348", "0.58301395", "0.5823743", "0.5803952", "0.57939357"...
0.0
-1
function to update all persons in network ones
public void updateNetwork(double infectionChance) { Set<Integer> ids = idToPersons.keySet(); List<Integer> list = new ArrayList<Integer>(ids); Collections.shuffle(list); for (int id : list) { idToPersons.get(id).updateState(infectionChance); } //states = getState(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void updateIdentities() {\n // get a list of the internal conversation addresses\n ArrayList<String> addresses = new ArrayList<>();\n for (int i = 0; i < size(); i++)\n addresses.add(get(i).getFromAddress());\n\n // retrieve and set the identities of the internal addre...
[ "0.65415955", "0.64962345", "0.62363553", "0.6194639", "0.6162046", "0.6106044", "0.6071999", "0.6024623", "0.6022322", "0.59785837", "0.5935309", "0.592671", "0.58965063", "0.58698016", "0.57689154", "0.5761705", "0.56965643", "0.5687665", "0.56784636", "0.5663807", "0.56447...
0.6407718
2
Create a new EntityBundle
public EntityBundleCreate() {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void createBundle() {\r\n\t\tint finished = 1;\r\n\t\tSystem.out.println(\"createBundle\");\r\n\r\n\t\tBundle b = new Bundle(index); // send id in\r\n\t\tList<Path> pathList = new ArrayList<Path>();\r\n\t\tContainerNII bundleNii = new ContainerNII();\r\n\t\tPath path;\r\n\t\t\r\n\t\tinsertNIIValues(b...
[ "0.6681949", "0.66488373", "0.6489961", "0.62103873", "0.6127442", "0.6112449", "0.60845435", "0.6055986", "0.59749997", "0.5896636", "0.58280486", "0.58280486", "0.57774216", "0.5710668", "0.562579", "0.5622142", "0.56189835", "0.56128454", "0.56108457", "0.56108457", "0.549...
0.8049568
0
Create a new EntityBundle and initialize from a JSONObjectAdapter.
public EntityBundleCreate(JSONObjectAdapter initializeFrom) throws JSONObjectAdapterException { this(); initializeFromJSONObject(initializeFrom); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public EntityBundleCreate() {}", "@Override\n public X fromJson(EntityManager em, JSONValue jsonValue) {\n final ErraiEntityManager eem = (ErraiEntityManager) em;\n\n Key<X, ?> key = keyFromJson(jsonValue);\n\n X entity = eem.getPartiallyConstructedEntity(key);\n if (entity != null) {\n return ...
[ "0.5990991", "0.58024436", "0.5651081", "0.5558827", "0.54746044", "0.534245", "0.53281397", "0.5255276", "0.52353734", "0.5187156", "0.51612264", "0.5122305", "0.5106344", "0.5051231", "0.50273734", "0.49594027", "0.49125272", "0.49108842", "0.48715293", "0.4864151", "0.4831...
0.7948429
0
Get the Entity in this bundle.
public Entity getEntity() { return entity; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public E getEntity() {\n return this.entity;\n }", "public Entity getEntity() {\n\t\treturn DodgeBlawk.getDataManager().getEntity(getId());\n\t}", "public Entity getEntity() {\n if (entity != null) {\n return entity;\n }\n return entity = NMSUtils.getEntityById(this.en...
[ "0.77452976", "0.77246624", "0.7612421", "0.7594287", "0.7594287", "0.7594287", "0.75526875", "0.7529337", "0.737567", "0.73083335", "0.7278687", "0.72247225", "0.7082409", "0.70753515", "0.6969998", "0.6941074", "0.6840487", "0.66856205", "0.6664377", "0.6580098", "0.6579662...
0.76432043
2
Set the Entity in this bundle.
public void setEntity(Entity entity) { this.entity = entity; String s = entity.getClass().toString(); // trim "Class " from the above String entityType = s.substring(s.lastIndexOf(" ") + 1); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setEntity(org.openejb.config.ejb11.Entity entity) {\n this._entity = entity;\n }", "public void setEntity(String parName, Object parVal) throws HibException;", "public void setEntityHere(Entity setThis) {\n \n entityHere_ = setThis;\n \n }", "public void setEntit...
[ "0.747561", "0.7139193", "0.7061833", "0.6868596", "0.6843529", "0.6595692", "0.6478199", "0.6416444", "0.64108986", "0.6376406", "0.6341988", "0.6311947", "0.63020754", "0.62939215", "0.6272553", "0.6203309", "0.61152697", "0.6081097", "0.6081097", "0.6081097", "0.6081097", ...
0.6884044
3
Get the Annotations for the Entity in this bundle.
public Annotations getAnnotations() { return annotations; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<Annotation> getAnnotations() {\n return this.annotations.obtainAll();\n }", "@PropertyGetter(role = ANNOTATION)\n\tList<CtAnnotation<? extends Annotation>> getAnnotations();", "public String getAnnotations() {\n\t\treturn annotations;\n\t}", "public List<Annotation> getAnnotations() {\r...
[ "0.7222245", "0.6900468", "0.68609005", "0.6671639", "0.6610458", "0.65504014", "0.65153617", "0.64512", "0.64355576", "0.63783485", "0.6354708", "0.6337083", "0.63139355", "0.6271566", "0.62517226", "0.6235617", "0.61987746", "0.618424", "0.6158214", "0.6144501", "0.6128284"...
0.7101485
1
Set the Annotations for this bundle. Should correspond to the Entity in the bundle.
public void setAnnotations(Annotations annotations) { this.annotations = annotations; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setAnnotations(String Annotations) {\n this.Annotations.add(Annotations);\n }", "@Override\n public void setQualifiers(final Annotation[] annos) {\n }", "@PropertySetter(role = ANNOTATION)\n\t<E extends CtElement> E setAnnotations(List<CtAnnotation<? extends Annotation>> annotation);", ...
[ "0.67835945", "0.62915033", "0.62572753", "0.6183986", "0.5830604", "0.5677121", "0.5573415", "0.5560196", "0.5548937", "0.5528556", "0.5454672", "0.53604656", "0.53522515", "0.5338841", "0.5328543", "0.53226066", "0.5281621", "0.52625364", "0.523781", "0.5222636", "0.5201922...
0.6855715
0
Get the AccessControlList for the Entity in this bundle.
public AccessControlList getAccessControlList() { return acl; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public AccessControlList getAcl()\n {\n return acl;\n }", "AccessPoliciesClient getAccessPolicies();", "ImmutableList<SchemaOrgType> getAccessibilityControlList();", "public List<ServiceAccessPolicyEntry> accessPolicies() {\n return this.accessPolicies;\n }", "@Updatable\n public ...
[ "0.70645857", "0.6046871", "0.60455185", "0.5949111", "0.5774467", "0.55799425", "0.55588865", "0.5530349", "0.54978675", "0.5480873", "0.5459186", "0.545824", "0.54226214", "0.5386894", "0.5382769", "0.5380677", "0.536963", "0.5357505", "0.5354256", "0.5338804", "0.53129244"...
0.67993814
1
Set the AccessControlList for this bundle. Should correspond to the Entity in this bundle.
public void setAccessControlList(AccessControlList acl) { this.acl = acl; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setAcl(AccessControlList acl)\n {\n this.acl = acl;\n }", "public void setTypeBoundList(List<Access> list) {\n setChild(list, 2);\n }", "public void setAclDAO(AccessControlListDAO aclDAO);", "public void setAcrs(List<ACR> acrList) {\n this.acrs = acrList;\n }", "publi...
[ "0.60360634", "0.5912559", "0.58434653", "0.56877106", "0.5297201", "0.5242436", "0.52025986", "0.50886285", "0.50785196", "0.5056301", "0.50511163", "0.50387096", "0.5016692", "0.49926135", "0.49460876", "0.49342597", "0.49333727", "0.49103853", "0.48728526", "0.48620084", "...
0.64031196
0
Gets the range property.
public HttpRange getRange() { return range; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getRange() {\n return this.range;\n }", "public double getRange(){\n\t\treturn range;\n\t}", "public int getRange() {\n return mRange;\n }", "public java.lang.String getRange() {\n\t\treturn _range;\n\t}", "@Override\n\tpublic int getRange() {\n\t\treturn range;\n\t}", "...
[ "0.8252797", "0.8160694", "0.8100774", "0.80877423", "0.78318524", "0.77816993", "0.77394223", "0.76054245", "0.7596207", "0.75371605", "0.7474023", "0.723196", "0.72277415", "0.7157969", "0.70140857", "0.7010035", "0.6929956", "0.6839515", "0.6829206", "0.6817399", "0.678936...
0.74793345
10
Gets whether the range is cleared.
public boolean isClear() { return this.isClear; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isEmpty() {\r\n return lastCursor - firstCursor == 1;\r\n }", "boolean HasRange() {\r\n\t\treturn hasRange;\r\n\t}", "public boolean isEmpty( ){\r\n\t\treturn beginMarker.next==endMarker;\r\n\t}", "public boolean isEmpty() {\n return doIsEmpty();\n }", "public boolean isE...
[ "0.68582827", "0.6533457", "0.6498329", "0.643964", "0.6426092", "0.64253724", "0.64089227", "0.6398486", "0.63793695", "0.63642323", "0.63607055", "0.63543403", "0.6352302", "0.63390917", "0.63302207", "0.6329416", "0.63243914", "0.6322524", "0.6313528", "0.6313288", "0.6302...
0.71168566
0
TODO Autogenerated method stub
@Override public boolean isRedirected(HttpRequest request, HttpResponse response, HttpContext context) throws ProtocolException { return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.66708666", "0.65675074", "0.65229905", "0.6481001", "0.64770633", "0.64584893", "0.6413091", "0.63764185", "0.6275735", "0.62541914", "0.6236919", "0.6223816", "0.62017626", "0.61944294", "0.61944294", "0.61920846", "0.61867654", "0.6173323", "0.61328775", "0.61276996", "0...
0.0
-1
TODO Autogenerated method stub
@Override public HttpUriRequest getRedirect(HttpRequest request, HttpResponse response, HttpContext context) throws ProtocolException { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
make cookie store from key and value arrary
public static CookieStore getCookieStore(String[] ks, String[] vs){ CookieStore cookieStore = new BasicCookieStore(); for(int i=0; i<ks.length; i++ ){ BasicClientCookie ck = new BasicClientCookie(ks[i] ,vs[i]); ck.setDomain(".weibo.com"); ck.setPath("/"); cookieStore.addCookie(ck); } return cookieStore; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void buildCookie(Map<String,String> map){\n map.put(\"PHPSESSID\", cookie);\n }", "public void part2(){\n Cookie c1 = new Cookie(\"uid\", \"2018\", 1800,false);\n Cookie c2 = new Cookie(\"PICK_KEY\", \"ahmd13ldsws8cw\",10800,true);\n Cookie c3 = new Cookie(\"REMEMBER_ME\",\"...
[ "0.6513234", "0.6241373", "0.6183567", "0.6113243", "0.61033887", "0.6028575", "0.5818639", "0.577329", "0.5717901", "0.5708054", "0.5574696", "0.55107266", "0.5492158", "0.54790723", "0.5476231", "0.5394758", "0.5390662", "0.5353614", "0.53485626", "0.53392684", "0.53381515"...
0.6751586
0
go to the Game and start playing
public void onPlay(View view){ Intent intent = new Intent(WelcomeActivity.this,MainActivity.class); intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK); startActivity(intent); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void gotoPlay() {\n Intent launchPlay = new Intent(this, GameConfig.class);\n startActivity(launchPlay);\n }", "public void play() {\n\n showIntro();\n startGame();\n\n }", "public final void playGame() {\n\t\tSystem.out.println(\"Welcome to \"+nameOfGame+\"!\");\n\t\tsetup(numb...
[ "0.7847721", "0.7831907", "0.7792536", "0.7764042", "0.7718144", "0.75410753", "0.75260985", "0.74700326", "0.73442036", "0.7343971", "0.73252904", "0.7320066", "0.72783023", "0.7271179", "0.72488606", "0.72480875", "0.72437316", "0.72357243", "0.72179747", "0.7170004", "0.71...
0.0
-1
write your code here
public static void main(String[] args) { Account act; act = new Account(100); int myInt; System.out.println("Classloader of Account class:" + Account.class.getClassLoader()); System.out.println("Classloader of int: " + int.class.getClassLoader()); System.out.println("The start balance is: " + act.getBalance()); System.out.println("Customer added 50."); act.deposit(50); System.out.println("Now balance is: " + act.getBalance()); System.out.println("Customer got 25 from the account."); act.withdraw(25); System.out.println("Now balance is: " + act.getBalance()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void logic(){\r\n\r\n\t}", "public static void generateCode()\n {\n \n }", "@Override\n\tprotected void logic() {\n\n\t}", "private static void cajas() {\n\t\t\n\t}", "void pramitiTechTutorials() {\n\t\n}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\r\n\tpub...
[ "0.61019534", "0.6054925", "0.58806974", "0.58270746", "0.5796887", "0.56999695", "0.5690986", "0.56556827", "0.5648637", "0.5640487", "0.56354505", "0.56032085", "0.56016207", "0.56006724", "0.5589654", "0.5583692", "0.55785793", "0.55733466", "0.5560209", "0.55325305", "0.5...
0.0
-1
Create a thread associated to a BlockingQueue.
public CancellableBlockingQueueTask(String name, Consumer<Cancellable<T>> consumer) { this.consumer = consumer; queue = new ArrayBlockingQueue<>(10000); queueThread = new Thread(() -> internalStart(), name); queueThread.setDaemon(true); disposed = new AtomicBoolean(false); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public IThread createThread() throws IllegalWriteException, BBException;", "WorkProcessor(BlockingQueue<Integer> queue) {\n this.queue = queue;\n ThreadFactoryBuilder builder = new ThreadFactoryBuilder();\n builder.setNameFormat(\"Thread-%d\");\n builder.setUncaughtExceptionHandler((t...
[ "0.60933894", "0.5949398", "0.5835442", "0.57755053", "0.5725059", "0.5719356", "0.56817764", "0.56648874", "0.5632984", "0.5628766", "0.555241", "0.55506146", "0.5523614", "0.5518746", "0.55177456", "0.54659003", "0.5439002", "0.54278916", "0.53875834", "0.5332576", "0.53069...
0.5210197
27
Start the underlying thread in order to perform an action when an element is added.
public void start() { checkIsDisposed(); if (isStarted) return; queueThread.start(); isStarted = true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addNotify() {\n\t\tsuper.addNotify();\n\t\tif (thread == null) {\n\t\t\tthread = new Thread(this);\n\t\t\tthread.start();\n\t\t}\n\t}", "public void start() {\n if (!started) {\n thread = new Thread(this);\n thread.start();\n started = true;\n }\n }",...
[ "0.66330785", "0.6369982", "0.6314335", "0.6251108", "0.6187781", "0.61718756", "0.61632055", "0.6141166", "0.61315453", "0.6119275", "0.61115223", "0.6097249", "0.60838723", "0.6058376", "0.60452574", "0.60436815", "0.6038598", "0.6038598", "0.60354", "0.5994322", "0.598993"...
0.6118623
10
Appends the given element in the underlying blocking queue in order to perform an action asynchronously.
public Cancellable<T> add(T e) { checkIsDisposed(); Cancellable<T> element = new Cancellable<T>(e); queue.add(element); return element; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void add(Object element) {\n queue.put( new DelayedElement( element ) );\n }", "public void append(Serializable message){\n taskQueue.addLast(message);\n unlockWaiter();//unblocks for taskQueue\n unlockPoolWaiter();//unblocks for threadPool\n }", "public void enqueue (E...
[ "0.7043976", "0.6891302", "0.67788994", "0.66735363", "0.66459227", "0.6450185", "0.63457185", "0.62953615", "0.6286355", "0.62817395", "0.6246887", "0.6245818", "0.6229107", "0.6173595", "0.6106954", "0.60993874", "0.6095333", "0.6093924", "0.60712683", "0.60649145", "0.5992...
0.0
-1
Dispose this queue. The underlying thread is interrupted, this object is no more reusable.
public void dispose() { if (!disposed.compareAndSet(false, true)) return; queueThread.interrupt(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void dispose() {\n\t\t\t\r\n\t\t\tif (TRACE) {\r\n\t\t\t\tSystem.out.println(\"Disposing thread \" + workerNo);\r\n\t\t\t}\r\n\t\t\tcontrolLock.lock();\r\n\t\t\ttry {\r\n\t\t\t\tthreads.remove(thread.getId());\r\n\t\t\t}\r\n\t\t\tfinally {\r\n\t\t\t\tcontrolLock.unlock();\r\n\t\t\t}\r\n\t\t}", "public vo...
[ "0.7265127", "0.71311367", "0.6662685", "0.6647886", "0.6614953", "0.6587139", "0.6540461", "0.65151334", "0.6459846", "0.6376237", "0.6257912", "0.62141275", "0.619675", "0.619675", "0.6175858", "0.615516", "0.6154776", "0.613925", "0.6097169", "0.6084791", "0.6083256", "0...
0.85049534
0
Creates a cancellable element.
private Cancellable(T element) { this.element = element; this.isCancelled = false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private JButton addCancelButton(){\n\t\tJButton cancelButton = new JButton(\"Cancel\");\n\n\t\tcancelButton.addActionListener(arg0 -> setVisible(false));\n\t\treturn cancelButton;\n\t}", "private JButton getCancelButton() {\n if (cancelButton == null) {\n cancelButton = new JButton();\n ...
[ "0.58514684", "0.584987", "0.5833325", "0.5634674", "0.56104213", "0.55988735", "0.55420643", "0.5533351", "0.55328804", "0.55312216", "0.55310655", "0.55016345", "0.5499624", "0.5473351", "0.54182637", "0.5415246", "0.5388445", "0.5388445", "0.5388445", "0.5384795", "0.53847...
0.67900693
0
Check for the existence of file. Method inserted by Prakash. 29th May 2007
private boolean exists(String pathName) { if(new File(pathName).exists()) { return true; } else { return false; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean fileExists(String path) throws IOException;", "private boolean fileExists(Path p) {\n\t\treturn Files.exists(p);\n\t}", "private static boolean fileExists(String filename) {\n return new File(filename).exists();\n }", "@Override\n public boolean exists(File file) {\n\treturn false;\n ...
[ "0.8000566", "0.7949308", "0.7707531", "0.76906383", "0.76584727", "0.7605787", "0.7599805", "0.75287193", "0.7456925", "0.7420374", "0.7411829", "0.7409516", "0.7389388", "0.7358573", "0.73350537", "0.73046625", "0.7292732", "0.7250075", "0.72290015", "0.72054", "0.71756643"...
0.7097123
29
/ Commented. Not bieng used. by Prakash. 10052007. private String description = "jsp";
public JSPFileFilter(String extension) { this.filters = new Hashtable(); /** * Inserting curli braces to avoid PMD violation named IfStmtsMustUseBraces. * by Prakash. 10-05-2007. */ if(extension!=null) { addExtension(extension); } /* * End of modification. */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override \r\npublic String getServletInfo() { \r\nreturn \"Short description\"; \r\n}", "@Override\n public String getServletInfo\n \n () {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\"...
[ "0.6787452", "0.6689352", "0.65459234", "0.6524846", "0.6494035", "0.6477011", "0.6477011", "0.6475256", "0.6456322", "0.644996", "0.6436267", "0.6426073", "0.6417773", "0.641769", "0.641769", "0.641769", "0.641769", "0.641769", "0.641769", "0.641769", "0.641769", "0.641769...
0.0
-1
trong 929 added load two coz I don't want anything else uses catalog to break
public void load2() throws Exception { String query = "select * from catalog_snapshot where item_id = " + item_id + " and facility_id = '" + facility_id + "'"; query += " and fac_item_id = '" + this.fac_item_id + "'"; DBResultSet dbrs = null; ResultSet rs = null; try { dbrs = db.doQuery(query); rs = dbrs.getResultSet(); if (rs.next()) { setItemId( (int) rs.getInt("ITEM_ID")); setFacItemId(rs.getString("FAC_ITEM_ID")); setMaterialDesc(rs.getString("MATERIAL_DESC")); setGrade(rs.getString("GRADE")); setMfgDesc(rs.getString("MFG_DESC")); setPartSize( (float) rs.getFloat("PART_SIZE")); setSizeUnit(rs.getString("SIZE_UNIT")); setPkgStyle(rs.getString("PKG_STYLE")); setType(rs.getString("TYPE")); setPrice(BothHelpObjs.makeBlankFromNull(rs.getString("PRICE"))); setShelfLife( (float) rs.getFloat("SHELF_LIFE")); setShelfLifeUnit(rs.getString("SHELF_LIFE_UNIT")); setUseage(rs.getString("USEAGE")); setUseageUnit(rs.getString("USEAGE_UNIT")); setApprovalStatus(rs.getString("APPROVAL_STATUS")); setPersonnelId( (int) rs.getInt("PERSONNEL_ID")); setUserGroupId(rs.getString("USER_GROUP_ID")); setApplication(rs.getString("APPLICATION")); setFacilityId(rs.getString("FACILITY_ID")); setMsdsOn(rs.getString("MSDS_ON_LINE")); setSpecOn(rs.getString("SPEC_ON_LINE")); setMatId( (int) rs.getInt("MATERIAL_ID")); setSpecId(rs.getString("SPEC_ID")); setMfgPartNum(rs.getString("MFG_PART_NO")); //trong 3-27-01 setCaseQty(BothHelpObjs.makeZeroFromNull(rs.getString("CASE_QTY"))); } } catch (Exception e) { e.printStackTrace(); HelpObjs.monitor(1, "Error object(" + this.getClass().getName() + "): " + e.getMessage(), null); throw e; } finally { dbrs.close(); } return; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void consulterCatalog() {\n\t\t\n\t}", "@Override\r\n\tprotected void initLoad() {\n\r\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "@Override\n\tprotected void load() {\n\t\t\n\t}", "@Override\n\tprotected void load() {\n\t\t\n\t}", "@Override\n\tprotected void load() {\n\t\t\n\t...
[ "0.6341332", "0.62833405", "0.6189898", "0.6103177", "0.6103177", "0.6103177", "0.60763186", "0.6056989", "0.6021298", "0.60093343", "0.59937996", "0.59937996", "0.5957705", "0.5942828", "0.58509487", "0.58181226", "0.5795212", "0.57051575", "0.5687614", "0.5659661", "0.56562...
0.51124215
74
trong 21401 pulling data from request_line_item rather than from catalog_snapshot better to view history as well as current.
public void loadNew(Integer pr_number) throws Exception { String query = "select * from pr_history_view where item_id = " + item_id + " and facility_id = '" + facility_id + "'"; query += " and fac_part_no = '" + this.fac_item_id + "'"; query += " and pr_number = " + pr_number.intValue(); DBResultSet dbrs = null; ResultSet rs = null; try { dbrs = db.doQuery(query); rs = dbrs.getResultSet(); if (rs.next()) { setType(rs.getString("ITEM_TYPE")); setPrice(BothHelpObjs.makeBlankFromNull(rs.getString("UNIT_PRICE"))); } } catch (Exception e) { e.printStackTrace(); HelpObjs.monitor(1, "Error object(" + this.getClass().getName() + "): " + e.getMessage(), null); throw e; } finally { dbrs.close(); } return; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static TimeLine getReviewTimeLine(HttpServletRequest request,\r\n\t\t\tSessionObjectBase sob) {\r\n\t\t\r\n\t\tString rs_id = (String) request.getParameter(\"rs_id\");\r\n\t\r\n\t\tString targetRSID = \"\";\r\n\t\tif ((rs_id != null) && (rs_id.length() > 0) && (!(rs_id.equalsIgnoreCase(\"null\")))){\r\n\t\t...
[ "0.5544241", "0.5451989", "0.52479744", "0.52341735", "0.5181681", "0.5086371", "0.50516987", "0.503488", "0.5026267", "0.5022441", "0.50118905", "0.49836576", "0.49645314", "0.49587077", "0.49332005", "0.4924931", "0.49026346", "0.48824725", "0.4871467", "0.48646253", "0.486...
0.0
-1
Log.i("tag", "url=" + url); Log.i("tag", "userAgent=" + userAgent); Log.i("tag", "contentDisposition=" + contentDisposition); Log.i("tag", "mimetype=" + mimetype); Log.i("tag", "contentLength=" + contentLength);
@Override public void onDownloadStart(String url, String userAgent, String contentDisposition, String mimetype, long contentLength) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void logRequest(int method, String url) {\n switch (method) {\n\n case Method.GET:\n Log.d(TAG, \"Method : GET \");\n\n break;\n case Method.POST:\n Log.d(TAG, \"Method : POST \");\n break;\n default:\n ...
[ "0.5800035", "0.55984175", "0.54384506", "0.5313256", "0.52981734", "0.5294494", "0.5289958", "0.52816695", "0.5278199", "0.5254394", "0.5249981", "0.5249981", "0.5230778", "0.5230347", "0.52209055", "0.5189493", "0.51651406", "0.5105565", "0.5101547", "0.50726897", "0.504221...
0.57087123
1
Log.d(TAG, "onPageStarted: " + s);
@Override public void onPageStarted(WebView webView, String s, Bitmap bitmap) { if (getMLoading() != null) getMLoading().show(); if (s.equals(ApiFactory.HOST)) { red_ulr = ApiFactory.HOST; hostor_url.add(s); if (hostor_url != null && hostor_url.size() > 1) { hostor_url.clear(); } } if (s.equals(ApiFactory.HOST + "home")) { red_ulr = ApiFactory.HOST + "home"; startActivity(new Intent(ScanWebActivity.this, HomeActivity.class)); hostor_url.clear(); finish(); } if (s.equals(ApiFactory.HOST + "index.php/Home/Index/index")) { red_ulr = ApiFactory.HOST + "home"; startActivity(new Intent(ScanWebActivity.this, HomeActivity.class)); hostor_url.clear(); finish(); } if (s.equals(ApiFactory.HOST + "index.php/Home/Index") || s.equals(ApiFactory.HOST + "index.php/Home/Index/")) { if (getWindow() != null && getMLoading().isShowing()) getMLoading().dismiss(); red_ulr = ApiFactory.HOST + "index.php/Home/Index"; if (!Utils.isExistMainActivity(ScanWebActivity.this, HomeActivity.class)) { startActivity(new Intent(ScanWebActivity.this, HomeActivity.class)); } hostor_url.clear(); finish(); } if (s.equals(ApiFactory.HOST + "index.php/Home/Login/info")) { UserData.namestatus = "1"; } if (s.equals(Web_Url.HOME)) { red_ulr = Web_Url.HOME; hostor_url.add(s); if (hostor_url != null && hostor_url.size() > 0) { hostor_url.clear(); } } if (s.equals(Web_Url.ME_URL)) { red_ulr = Web_Url.ME_URL; hostor_url.add(s); if (hostor_url != null && hostor_url.size() > 1) { hostor_url.clear(); } } if (s.equals(Web_Url.SHANGPIN)) { red_ulr = Web_Url.SHANGPIN; hostor_url.add(s); if (hostor_url != null && hostor_url.size() > 1) { hostor_url.clear(); } } if (s.equals(Web_Url.OREDER_URL)) { red_ulr = Web_Url.OREDER_URL; hostor_url.add(s); if (hostor_url != null && hostor_url.size() > 1) { hostor_url.clear(); } } // if (s.equals(ApiFactory.HOST + "index.php/Home/User/redpacket")) { // hostor_url.add(s); // red_ulr = ApiFactory.HOST + "index.php/Home/User/redpacket"; // startActivity(new Intent(ScanWebActivity.this, RedPacketListActivity.class)); // if (hostor_url != null && hostor_url.size() > 0) // hostor_url.remove(hostor_url.size() - 1); // } // if (s.equals(ApiFactory.HOST + "index.php/Home/User/redpacket.html")) { // hostor_url.add(s); // red_ulr = ApiFactory.HOST + "index.php/Home/User/redpacket.html"; // startActivity(new Intent(ScanWebActivity.this, RedPacketListActivity.class)); // if (hostor_url != null && hostor_url.size() > 0) // hostor_url.remove(hostor_url.size() - 1); // } if (s.equals(ApiFactory.HOST + "index.php/Home/Login/Login_user.html")) { // ARouter.getInstance().build("/activity/login").navigation(); startActivity(new Intent(ScanWebActivity.this, LoginActivity.class)); hostor_url.clear(); finish(); } if (s.equals(ApiFactory.HOST + "index.php/Home/Login/index")) { // ARouter.getInstance().build("/activity/login").navigation(); startActivity(new Intent(ScanWebActivity.this, LoginActivity.class)); hostor_url.clear(); finish(); } if (s.equals(ApiFactory.HOST + "index.php/Home/Login/Login_user")) { startActivity(new Intent(ScanWebActivity.this, LoginActivity.class)); // ARouter.getInstance().build("/activity/login").navigation(); hostor_url.clear(); finish(); } if (s.equals(ApiFactory.HOST + "index.php/home/UserPass/user_password_passismodify")) {//强制修改密码 startActivity(new Intent(ScanWebActivity.this, LoginActivity.class)); // ARouter.getInstance().build("/activity/login").navigation(); hostor_url.clear(); finish(); } if (s.equals(ApiFactory.HOST + "index.php/home/UserPass/user_password_passismodify.html")) {//强制修改密码 startActivity(new Intent(ScanWebActivity.this, LoginActivity.class)); // ARouter.getInstance().build("/activity/login").navigation(); hostor_url.clear(); finish(); } if (s.equals(ApiFactory.HOST + "index.php/Home/Article/article_list/")) { hostor_url.add(s); if (hostor_url != null && hostor_url.size() > 0) hostor_url.remove(hostor_url.size() - 1); startActivity(new Intent(ScanWebActivity.this, NoticeActivity.class)); // ARouter.getInstance().build("/activity/notice").navigation(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onPageStarted(WebView view, String url, Bitmap favicon) {\n final String onPageStartedUrl = url;\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n onSendUpdate(\"Initiati...
[ "0.70579565", "0.6979554", "0.6816389", "0.67469615", "0.6669906", "0.6589833", "0.65776485", "0.6556584", "0.6542259", "0.65340286", "0.6518005", "0.64868087", "0.6484965", "0.6483566", "0.64823765", "0.6467066", "0.64446354", "0.64419293", "0.64419293", "0.6439891", "0.6387...
0.0
-1
TODO Autogenerated method stub
@Override public void run() { Intent i = new Intent(SplashScreen.this, MainMenuActivity.class); startActivity(i); //Menyelesaikan Splashscreen finish(); }
{ "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.66708666", "0.65675074", "0.65229905", "0.6481001", "0.64770633", "0.64584893", "0.6413091", "0.63764185", "0.6275735", "0.62541914", "0.6236919", "0.6223816", "0.62017626", "0.61944294", "0.61944294", "0.61920846", "0.61867654", "0.6173323", "0.61328775", "0.61276996", "0...
0.0
-1
Internal implementation, normal users should not use it.
public void toMap(HashMap<String, String> map, String prefix) { this.setParamSimple(map, prefix + "ClientIP", this.ClientIP); this.setParamSimple(map, prefix + "ClientUA", this.ClientUA); this.setParamSimple(map, prefix + "FaceIdToken", this.FaceIdToken); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "public final void mo51373a() {\n }", "@Override\n\tprotected void interr() {\n\t}", "@Override\n protected void prot() {\n }", "private stendhal() {\n\t}", "@Override\n public ...
[ "0.6258216", "0.6217109", "0.6023305", "0.5983126", "0.59650916", "0.59326935", "0.59194076", "0.5834353", "0.57812667", "0.5776117", "0.5776117", "0.5776117", "0.5776117", "0.5776117", "0.5776117", "0.5775023", "0.5706227", "0.5700701", "0.56521744", "0.564853", "0.564853", ...
0.0
-1
Save Or Update save new cmVocabularyCategory
@Transactional public void save(CmVocabularyCategory cmVocabularyCategory) { dao.save(cmVocabularyCategory); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Transactional\r\n\tpublic void saveOrUpdate(CmVocabularyCategory cmVocabularyCategory) {\r\n\t\tdao.saveOrUpdate(cmVocabularyCategory);\r\n\t}", "private void saveNewCategory() {\n String name = newCategory_name.getText()\n .toString();\n int defaultSizeType = categoryDefaultSize.getSelecte...
[ "0.753681", "0.69215393", "0.68297887", "0.67546815", "0.65541124", "0.65511936", "0.65012354", "0.64701766", "0.64262605", "0.6351765", "0.63307416", "0.6316883", "0.63166887", "0.63166887", "0.6234833", "0.60218984", "0.5989783", "0.5905773", "0.5862574", "0.58592093", "0.5...
0.7439434
1
save or update new cmVocabularyCategory
@Transactional public void saveOrUpdate(CmVocabularyCategory cmVocabularyCategory) { dao.saveOrUpdate(cmVocabularyCategory); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Transactional\r\n\tpublic void save(CmVocabularyCategory cmVocabularyCategory) {\r\n\t\tdao.save(cmVocabularyCategory);\r\n\t}", "Category saveCategory(Category category);", "private void saveNewCategory() {\n String name = newCategory_name.getText()\n .toString();\n int defaultSizeType =...
[ "0.7507978", "0.70156735", "0.6828286", "0.6740239", "0.6720369", "0.6695223", "0.6643744", "0.6615491", "0.65988296", "0.6585614", "0.65273386", "0.65234184", "0.6514678", "0.6514678", "0.63912064", "0.61198574", "0.6068265", "0.6067496", "0.603233", "0.6024604", "0.6024444"...
0.7573511
0
delete delete the cmVocabularyCategory
@Transactional public void delete(CmVocabularyCategory cmVocabularyCategory) { dao.delete(cmVocabularyCategory); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void deleteCategory(Category category);", "public void deleteCategorie(Categorie c);", "void delete(Category category);", "void deleteCategoryByName(String categoryName);", "void deleteCategoryById(int categoryId);", "void deleteCategory(long id);", "void deleteCategory(Integer id);", "Boolean delete...
[ "0.7495022", "0.74746734", "0.7256605", "0.6995463", "0.6949701", "0.6932335", "0.6858522", "0.6806129", "0.6804152", "0.672343", "0.67163867", "0.66893035", "0.6609022", "0.658768", "0.6471812", "0.6463039", "0.6459537", "0.63628083", "0.6339736", "0.63167936", "0.6315503", ...
0.7557703
0