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
Data has been read from a socket.
public void readFromSocket(long socketId) {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean read() throws IOException\n\t{\n\t\treturn this.read(this.socket);\n\t}", "private boolean isGettingData(){\n int available;\n long startTime = System.nanoTime();\n int timeout = 100;\n InputStream inStream = null;\n flushStream();\n try {\n if(...
[ "0.6842637", "0.6736113", "0.65607995", "0.6504302", "0.63702756", "0.6340601", "0.61804926", "0.6104585", "0.6081909", "0.6064589", "0.60639983", "0.6060881", "0.60161746", "0.59902954", "0.5984788", "0.592228", "0.58898526", "0.58809304", "0.5878683", "0.58701384", "0.58442...
0.6185655
6
Bind the service that will run the native server object.
public void initializeNative(Context context, ServerHTTPSSetting httpsSetting) { mContext = context; Intent intent = new Intent(EMBEDDED_TEST_SERVER_SERVICE); setIntentClassName(intent); if (!mContext.bindService(intent, mConn, Context.BIND_AUTO_CREATE)) { throw new EmbeddedTestServerFailure( "Unable to bind to the EmbeddedTestServer service."); } synchronized (mImplMonitor) { Log.i(TAG, "Waiting for EmbeddedTestServer service connection."); while (mImpl == null) { try { mImplMonitor.wait(SERVICE_CONNECTION_WAIT_INTERVAL_MS); } catch (InterruptedException e) { // Ignore the InterruptedException. Rely on the outer while loop to re-run. } Log.i(TAG, "Still waiting for EmbeddedTestServer service connection."); } Log.i(TAG, "EmbeddedTestServer service connected."); boolean initialized = false; try { initialized = mImpl.initializeNative(httpsSetting == ServerHTTPSSetting.USE_HTTPS); } catch (RemoteException e) { Log.e(TAG, "Failed to initialize native server.", e); initialized = false; } if (!initialized) { throw new EmbeddedTestServerFailure("Failed to initialize native server."); } if (!mDisableResetterForTesting) { ResettersForTesting.register(this::stopAndDestroyServer); } if (httpsSetting == ServerHTTPSSetting.USE_HTTPS) { try { String rootCertPemPath = mImpl.getRootCertPemPath(); X509Util.addTestRootCertificate(CertTestUtil.pemToDer(rootCertPemPath)); } catch (Exception e) { throw new EmbeddedTestServerFailure( "Failed to install root certificate from native server.", e); } } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void doBindService() {\n\r\n\t\tIntent serviceIntent = new Intent(MainActivity.this, LocalService.class);\r\n\r\n\t\tstartService(serviceIntent);\r\n\t\t// bindService(serviceIntent, mServiceConnection, 0);\r\n\t\tbindService(serviceIntent, mServiceConnection, BIND_AUTO_CREATE);\r\n\r\n\t\tmIsBound = true;\...
[ "0.72854084", "0.7252559", "0.70734113", "0.68715703", "0.6773335", "0.67534363", "0.67534363", "0.6712366", "0.66903514", "0.6644883", "0.6511064", "0.65078574", "0.64622456", "0.64479536", "0.6387731", "0.637745", "0.6307346", "0.6300618", "0.62922686", "0.62849027", "0.628...
0.0
-1
Set intent package and class name that will pass to the service.
protected void setIntentClassName(Intent intent) { intent.setClassName( "org.chromium.net.test.support", "org.chromium.net.test.EmbeddedTestServerService"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setStartService(String strPackage, String strClassName) {\n Intent intent = new Intent();\n ComponentName comName = new ComponentName(strPackage, strClassName);\n\n intent.setComponent(comName);\n mContext.startService(new Intent().setComponent(comName));\n\n intent ...
[ "0.72541726", "0.616533", "0.6163327", "0.61511016", "0.6134682", "0.60001427", "0.59787333", "0.5946042", "0.5946042", "0.5902679", "0.58292353", "0.57663846", "0.56735116", "0.5670308", "0.5601593", "0.5584793", "0.55834687", "0.5574758", "0.55734134", "0.55380225", "0.5513...
0.75106764
0
Add the default handlers and serve files from the provided directory relative to the external storage directory.
public void addDefaultHandlers(File directory) { addDefaultHandlers(directory.getPath()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addDefaultHandlers(String directoryPath) {\n try {\n synchronized (mImplMonitor) {\n checkServiceLocked();\n mImpl.addDefaultHandlers(directoryPath);\n }\n } catch (RemoteException e) {\n throw new EmbeddedTestServerFailure(\n...
[ "0.66382265", "0.64330083", "0.60958654", "0.606634", "0.5772826", "0.57618666", "0.5569732", "0.54676145", "0.54608005", "0.54446834", "0.54042697", "0.5315863", "0.53011703", "0.524966", "0.52326405", "0.5220784", "0.5204956", "0.518663", "0.51685864", "0.5158789", "0.51438...
0.6174167
2
Add the default handlers and serve files from the provided directory relative to the external storage directory.
public void addDefaultHandlers(String directoryPath) { try { synchronized (mImplMonitor) { checkServiceLocked(); mImpl.addDefaultHandlers(directoryPath); } } catch (RemoteException e) { throw new EmbeddedTestServerFailure( "Failed to add default handlers and start serving files from " + directoryPath + ": " + e.toString()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void serveFilesFromDirectory(File directory) {\n serveFilesFromDirectory(directory.getPath());\n }", "public void addDefaultHandlers(File directory) {\n addDefaultHandlers(directory.getPath());\n }", "private void addHandlers()\n {\n handlers.add(new FileHTTPRequestHandler(...
[ "0.64330083", "0.6174167", "0.60958654", "0.606634", "0.5772826", "0.57618666", "0.5569732", "0.54676145", "0.54608005", "0.54446834", "0.54042697", "0.5315863", "0.53011703", "0.524966", "0.52326405", "0.5220784", "0.5204956", "0.518663", "0.51685864", "0.5158789", "0.514388...
0.66382265
0
Configure the server to use a particular type of SSL certificate.
public void setSSLConfig(@ServerCertificate int serverCertificate) { try { synchronized (mImplMonitor) { checkServiceLocked(); mImpl.setSSLConfig(serverCertificate); } } catch (RemoteException e) { throw new EmbeddedTestServerFailure( "Failed to set server certificate: " + e.toString()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@PostConstruct\n\t\tprivate void configureSSL() {\n\t\t\tSystem.setProperty(\"https.protocols\", \"TLSv1.2\");\n\n\t\t\t//load the 'javax.net.ssl.trustStore' and\n\t\t\t//'javax.net.ssl.trustStorePassword' from application.properties\n\t\t\tSystem.setProperty(\"javax.net.ssl.trustStore\", env.getProperty(\"server....
[ "0.6962061", "0.65696096", "0.647338", "0.6461131", "0.645842", "0.64095795", "0.6402152", "0.62425494", "0.62022686", "0.61249495", "0.61200535", "0.6110889", "0.6053048", "0.5989734", "0.59379405", "0.5921896", "0.5911881", "0.58855796", "0.5808351", "0.57749325", "0.575847...
0.64811325
2
Serve files from the provided directory.
public void serveFilesFromDirectory(File directory) { serveFilesFromDirectory(directory.getPath()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void serveFilesFromDirectory(String directoryPath) {\n try {\n synchronized (mImplMonitor) {\n checkServiceLocked();\n mImpl.serveFilesFromDirectory(directoryPath);\n }\n } catch (RemoteException e) {\n throw new EmbeddedTestServer...
[ "0.7401249", "0.5930576", "0.5824749", "0.5433213", "0.5298349", "0.528592", "0.5280227", "0.5256459", "0.52179533", "0.5186877", "0.5131627", "0.51036966", "0.509696", "0.50156164", "0.5010813", "0.5009469", "0.5004002", "0.5003688", "0.5001469", "0.49889424", "0.49542576", ...
0.830003
0
Serve files from the provided directory.
public void serveFilesFromDirectory(String directoryPath) { try { synchronized (mImplMonitor) { checkServiceLocked(); mImpl.serveFilesFromDirectory(directoryPath); } } catch (RemoteException e) { throw new EmbeddedTestServerFailure( "Failed to start serving files from " + directoryPath + ": " + e.toString()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void serveFilesFromDirectory(File directory) {\n serveFilesFromDirectory(directory.getPath());\n }", "private void serve() {\n\t\tif (request == null) {\n\t\t\tchannel.close();\n\t\t\treturn;\n\t\t}\n\t\tlogger.fine(\"Serving \" + type + \" request : \" + request.getPath());\n\t\tResponse resp =...
[ "0.8299594", "0.59317285", "0.582677", "0.5432846", "0.5298386", "0.52870446", "0.5281774", "0.52578187", "0.52175033", "0.5188943", "0.5130507", "0.5104747", "0.50972635", "0.50162387", "0.50113773", "0.5009629", "0.5004864", "0.50041413", "0.50018394", "0.49896538", "0.4954...
0.7401141
1
Starts the server with an automatically selected port. Note that this should be called after handlers are set up, including any relevant calls serveFilesFromDirectory.
public boolean start() { return start(0); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void startServer(int port) throws Exception;", "public void startServer() {\n URLClassLoader loader = createClasspath(opts);\n X_Process.runInClassloader(loader, appServer\n .map(DevAppServer::doStartServer, getAppName() + \"Server\", getPort())\n .ignoreOut1().unsafe());\n ...
[ "0.72506833", "0.71646726", "0.7000556", "0.68901664", "0.6870146", "0.6828133", "0.6723189", "0.66930544", "0.6624694", "0.66174716", "0.6564847", "0.65072566", "0.64621395", "0.64279836", "0.6402457", "0.6344357", "0.63413745", "0.63334936", "0.63301486", "0.6322545", "0.63...
0.0
-1
Starts the server with the specified port. Note that this should be called after handlers are set up, including any relevant calls serveFilesFromDirectory.
public boolean start(int port) { try { synchronized (mImplMonitor) { checkServiceLocked(); return mImpl.start(port); } } catch (RemoteException e) { throw new EmbeddedTestServerFailure("Failed to start server.", e); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void start(int port, Handler<AsyncResult<HttpServer>> handler) {\n init();\n logger.info(\"Starting REST HTTP server on port {}\", port);\n httpServer = vertx.createHttpServer()\n .requestHandler(router)\n .listen(port, handler);\n }", "void startServe...
[ "0.73782605", "0.71821904", "0.7086662", "0.6914627", "0.68883955", "0.6872791", "0.68115354", "0.67106134", "0.6682079", "0.66554344", "0.6599183", "0.64969563", "0.64676386", "0.6440925", "0.638407", "0.63734984", "0.6370374", "0.6188826", "0.6174692", "0.616852", "0.615369...
0.6747396
7
Create and initialize a server with the default handlers. This handles native object initialization, server configuration, and server initialization. On returning, the server is ready for use.
public static EmbeddedTestServer createAndStartServer(Context context) { return createAndStartServerWithPort(context, 0); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Server() {\n\t\tinit(new Config());\n\t}", "private void initialize() throws IOException, ServletException, URISyntaxException {\n\n LOG.info(\"Initializing the internal Server\");\n Log.setLog(new Slf4jLog(Server.class.getName()));\n\n /*\n * Create and configure the server\...
[ "0.71260804", "0.6727207", "0.6704662", "0.664984", "0.65888405", "0.65848535", "0.6518059", "0.65168446", "0.64236534", "0.64077616", "0.6365832", "0.63488203", "0.6338147", "0.6325697", "0.63105977", "0.63088787", "0.6294882", "0.6273713", "0.62421656", "0.6230019", "0.6224...
0.58580923
47
Create and initialize a server with the default handlers and specified port. This handles native object initialization, server configuration, and server initialization. On returning, the server is ready for use.
public static EmbeddedTestServer createAndStartServerWithPort(Context context, int port) { Assert.assertNotEquals("EmbeddedTestServer should not be created on UiThread, " + "the instantiation will hang forever waiting for tasks to post to UI thread", Looper.getMainLooper(), Looper.myLooper()); EmbeddedTestServer server = new EmbeddedTestServer(); return initializeAndStartServer(server, context, port); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Server() {\n\t\tinit(new Config());\n\t}", "private void initServerSocket()\n\t{\n\t\tboundPort = new InetSocketAddress(port);\n\t\ttry\n\t\t{\n\t\t\tserverSocket = new ServerSocket(port);\n\n\t\t\tif (serverSocket.isBound())\n\t\t\t{\n\t\t\t\tSystem.out.println(\"Server bound to data port \" + serverSoc...
[ "0.69594574", "0.68519", "0.67705464", "0.6750232", "0.67060065", "0.66901827", "0.66768813", "0.6645247", "0.65189415", "0.6464315", "0.64398766", "0.643337", "0.6423466", "0.6415353", "0.6385627", "0.63514364", "0.6304477", "0.6256173", "0.6254466", "0.6246571", "0.62373674...
0.56747466
77
Create and initialize an HTTPS server with the default handlers. This handles native object initialization, server configuration, and server initialization. On returning, the server is ready for use.
public static EmbeddedTestServer createAndStartHTTPSServer( Context context, @ServerCertificate int serverCertificate) { return createAndStartHTTPSServerWithPort(context, serverCertificate, 0 /* port */); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static <T extends EmbeddedTestServer> T initializeAndStartHTTPSServer(\n T server, Context context, @ServerCertificate int serverCertificate, int port) {\n server.initializeNative(context, ServerHTTPSSetting.USE_HTTPS);\n server.addDefaultHandlers(\"\");\n server.setSSLConfig...
[ "0.67169094", "0.65425515", "0.64274484", "0.62434274", "0.61900264", "0.618152", "0.6029295", "0.6015627", "0.5950643", "0.59182304", "0.58712673", "0.58537316", "0.5811256", "0.5806533", "0.58044654", "0.57810766", "0.5713986", "0.57083875", "0.5703138", "0.56886196", "0.56...
0.58269906
12
Create and initialize an HTTPS server with the default handlers and specified port. This handles native object initialization, server configuration, and server initialization. On returning, the server is ready for use.
public static EmbeddedTestServer createAndStartHTTPSServerWithPort( Context context, @ServerCertificate int serverCertificate, int port) { Assert.assertNotEquals("EmbeddedTestServer should not be created on UiThread, " + "the instantiation will hang forever waiting for tasks" + " to post to UI thread", Looper.getMainLooper(), Looper.myLooper()); EmbeddedTestServer server = new EmbeddedTestServer(); return initializeAndStartHTTPSServer(server, context, serverCertificate, port); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static <T extends EmbeddedTestServer> T initializeAndStartHTTPSServer(\n T server, Context context, @ServerCertificate int serverCertificate, int port) {\n server.initializeNative(context, ServerHTTPSSetting.USE_HTTPS);\n server.addDefaultHandlers(\"\");\n server.setSSLConfig...
[ "0.6773318", "0.66124266", "0.6408443", "0.6260468", "0.61704814", "0.6134619", "0.6107006", "0.6077456", "0.606405", "0.6051256", "0.6009792", "0.59804356", "0.588768", "0.5881889", "0.58757687", "0.5832183", "0.58064073", "0.57852745", "0.5777651", "0.57653534", "0.5765169"...
0.59711313
12
Initialize a server with the default handlers. This handles native object initialization, server configuration, and server initialization. On returning, the server is ready for use.
public static <T extends EmbeddedTestServer> T initializeAndStartServer( T server, Context context, int port) { server.initializeNative(context, ServerHTTPSSetting.USE_HTTP); server.addDefaultHandlers(""); if (!server.start(port)) { throw new EmbeddedTestServerFailure("Failed to start serving using default handlers."); } return server; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Server() {\n\t\tinit(new Config());\n\t}", "public static void initializeServer() {\n\t\tServer.initializeServerGUI();\n\t}", "public void init() {\r\n\t\tthis.initWebAndSocketServer();\r\n\r\n\t\t/*\r\n\t\t * Set/update server info\r\n\t\t */\r\n\t\ttry {\r\n\t\t\tServerInfo serverInfo = Info.getServe...
[ "0.7135934", "0.6951468", "0.6899736", "0.68143326", "0.67522573", "0.66940486", "0.6643424", "0.65455425", "0.65326643", "0.6490641", "0.6441209", "0.6424081", "0.6307014", "0.6298082", "0.6274106", "0.6266201", "0.62633955", "0.6252239", "0.6252239", "0.6205073", "0.6195645...
0.62302995
19
Initialize a server with the default handlers that uses HTTPS with the given certificate option. This handles native object initialization, server configuration, and server initialization. On returning, the server is ready for use.
public static <T extends EmbeddedTestServer> T initializeAndStartHTTPSServer( T server, Context context, @ServerCertificate int serverCertificate, int port) { server.initializeNative(context, ServerHTTPSSetting.USE_HTTPS); server.addDefaultHandlers(""); server.setSSLConfig(serverCertificate); if (!server.start(port)) { throw new EmbeddedTestServerFailure("Failed to start serving using default handlers."); } return server; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void init() throws Exception {\n if (this.sslConfiguration != null && this.sslConfiguration.enabled()) {\n if (this.sslConfiguration.certificatePath() != null && this.sslConfiguration.privateKeyPath() != null) {\n try (var cert = Files.newInputStream(this.sslConfiguration.certificatePath()...
[ "0.67195386", "0.66491854", "0.6463039", "0.6223852", "0.5896187", "0.587535", "0.58705777", "0.58592474", "0.5845075", "0.5720947", "0.55490905", "0.55368525", "0.551807", "0.5484802", "0.5457563", "0.54541105", "0.5437633", "0.5416275", "0.5398296", "0.5386915", "0.5360261"...
0.7239087
0
Get the full URL for the given relative URL.
public String getURL(String relativeUrl) { try { synchronized (mImplMonitor) { checkServiceLocked(); return mImpl.getURL(relativeUrl); } } catch (RemoteException e) { throw new EmbeddedTestServerFailure("Failed to get URL for " + relativeUrl, e); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static String getRelativeUrl() {\n return url;\n }", "public static String convertToRelativeUrl(String url) {\n\t\tif (url.startsWith(\"http\") || url.startsWith(\"https\")) {\n\t\t\ttry {\n\t\t\t\treturn new URL(url).getPath();\n\t\t\t} catch (MalformedURLException e) {\n\t\t\t\treturn url;\n\t...
[ "0.7207375", "0.67728746", "0.65859437", "0.6511875", "0.64516556", "0.6447803", "0.6421528", "0.63587594", "0.6323731", "0.6289188", "0.6274617", "0.6160519", "0.60919225", "0.60919225", "0.60919225", "0.60919225", "0.60919225", "0.60919225", "0.6065754", "0.60149497", "0.59...
0.7010205
1
Get the full URL for the given relative URL. Similar to the above method but uses the given hostname instead of 127.0.0.1. The hostname should be resolved to 127.0.0.1.
public String getURLWithHostName(String hostname, String relativeUrl) { try { synchronized (mImplMonitor) { checkServiceLocked(); return mImpl.getURLWithHostName(hostname, relativeUrl); } } catch (RemoteException e) { throw new EmbeddedTestServerFailure( "Failed to get URL for " + hostname + " and " + relativeUrl, e); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getURL(String relativeUrl) {\n try {\n synchronized (mImplMonitor) {\n checkServiceLocked();\n return mImpl.getURL(relativeUrl);\n }\n } catch (RemoteException e) {\n throw new EmbeddedTestServerFailure(\"Failed to get URL f...
[ "0.68222845", "0.65912133", "0.65142065", "0.6478605", "0.637371", "0.63688034", "0.63179654", "0.6296165", "0.6252989", "0.62479186", "0.62334627", "0.61314255", "0.61016166", "0.6063193", "0.60526437", "0.605012", "0.6045805", "0.5906696", "0.5901631", "0.5868659", "0.58531...
0.72859377
0
Get the full URLs for the given relative URLs.
public String[] getURLs(String... relativeUrls) { String[] absoluteUrls = new String[relativeUrls.length]; for (int i = 0; i < relativeUrls.length; ++i) absoluteUrls[i] = getURL(relativeUrls[i]); return absoluteUrls; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static List<String> getURLs(List<WebElement> links) {\n\t\t List<String> ListHref = new ArrayList<String>();\n\t\t \n\t\t //loops through all links\n\t\t for(WebElement Webhref:links) {\n\t\t\t \n\t\t\t //if element isn't null\n\t\t\t if (Webhref.getAttribute(\"href\") != null) {\n\t\t\t\t String Stri...
[ "0.6242626", "0.6090639", "0.5958208", "0.58269477", "0.58121586", "0.5799115", "0.5769971", "0.5704151", "0.5681045", "0.5643118", "0.56405836", "0.5635148", "0.5622282", "0.5612148", "0.5609428", "0.55853444", "0.5571935", "0.5566884", "0.55564725", "0.5553402", "0.55058354...
0.79463
0
Stop and destroy the server. This handles stopping the server and destroying the native object.
public void stopAndDestroyServer() { synchronized (mImplMonitor) { // ResettersForTesting call can cause this to be called multiple times. if (mImpl == null) { return; } try { if (!mImpl.shutdownAndWaitUntilComplete()) { throw new EmbeddedTestServerFailure("Failed to stop server."); } mImpl.destroy(); mImpl = null; } catch (RemoteException e) { throw new EmbeddedTestServerFailure("Failed to shut down.", e); } finally { mContext.unbindService(mConn); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void stopServer() {\n stop();\n }", "public void stop () {\n if (server != null)\n server.shutDown ();\n server = null;\n }", "public void stop() {\n server.stop();\n }", "public void stop() {\n if (server != null) {\n server.shutdown();\n }\n...
[ "0.7458327", "0.7361574", "0.7342352", "0.7296167", "0.7061536", "0.70483685", "0.704532", "0.6941907", "0.6893745", "0.68195015", "0.681331", "0.67648023", "0.6668692", "0.66659814", "0.66101235", "0.6586272", "0.6580145", "0.6577045", "0.6566445", "0.6560085", "0.65600586",...
0.7533696
0
Get the path of the PEM file of the root cert.
public String getRootCertPemPath() { try { synchronized (mImplMonitor) { checkServiceLocked(); return mImpl.getRootCertPemPath(); } } catch (RemoteException e) { throw new EmbeddedTestServerFailure("Failed to get root cert's path", e); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getUserCertificatesPath();", "public X509Certificate getRootCertificate() throws CertException;", "public Optional<String> caCertDir() {\n return Codegen.stringProp(\"caCertDir\").config(config).get();\n }", "public Optional<String> caCertFile() {\n return Codegen.stringProp(\"...
[ "0.6526157", "0.62254715", "0.6156422", "0.6155347", "0.60061485", "0.59429055", "0.5713676", "0.5696833", "0.5693425", "0.56796694", "0.565185", "0.5603966", "0.5582726", "0.55397886", "0.5520644", "0.54625344", "0.5459248", "0.5414659", "0.53742826", "0.53161937", "0.531158...
0.7988141
0
utility function to read from stdin, Provided by Programmingchallenges, edit for style only
static String ReadLn(int maxLength) { byte line[] = new byte[maxLength]; int length = 0; int input = -1; try { while (length < maxLength) { // Read untill maxlength input = System.in.read(); if ((input < 0) || (input == '\n')) break; // or untill end of line ninput line[length++] += input; } if ((input < 0) && (length == 0)) return null; // eof return new String(line, 0, length); } catch (java.io.IOException e) { return null; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "OutputStream getStdin();", "public void read() {\n try {\n pw = new PrintWriter(System.out, true);\n br = new BufferedReader(new InputStreamReader(System.in));\n input = br.readLine();\n while (input != null) {\n CM.processCommand(input, pw, true);\n input = br.readLine();\n ...
[ "0.70772433", "0.70197874", "0.6767623", "0.67384917", "0.66516185", "0.66282076", "0.6580753", "0.65300155", "0.6459868", "0.632372", "0.6323583", "0.62976724", "0.6275048", "0.6272965", "0.6247962", "0.62126344", "0.6207555", "0.61181736", "0.60798573", "0.6043515", "0.6014...
0.5513601
83
entry point from OS
public static void main(String args[]) { Main myWork = new Main(); // Construct the bootloader myWork.run(); // execute }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void startup();", "void startup();", "public abstract void startup();", "void launch();", "void launch();", "void launch();", "public void startApp()\r\n\t{\n\t}", "public void startup(){}", "boolean launch();", "private Platform() {\n\t\t\n\t}", "private void m9e() {\n String str;\n ...
[ "0.6420152", "0.6420152", "0.6264665", "0.6212787", "0.6212787", "0.6212787", "0.6187828", "0.6185233", "0.61430484", "0.6079892", "0.6025169", "0.6019675", "0.6005069", "0.59845185", "0.59562296", "0.59399295", "0.5927424", "0.58880866", "0.58836234", "0.58694583", "0.586679...
0.0
-1
Create board and players
public static void main(String[] args) { boolean playWithMachine =false; String s1 = JOptionPane.showInputDialog("Do you want to play with a Machine?(Y/N)"); String s2 =JOptionPane.showInputDialog("Input how many rows you want to have:"); int rowSize = Integer.parseInt(s2); Player p1 = new Player(rowSize); Player p2 = new Player(rowSize); //Create player 1 p1.setName(); p1.setChessLabel(); //Create player 2 if(s1.toLowerCase().equals("y")) { playWithMachine = true; p2.setPlayerIsMachine(playWithMachine); p2.machinePlayer(); }else { p2.setName(); p2.setChessLabel(); } while(!p1.gameRestart) { p1.printBoard(p1, p2); //Print out a new empty chessboard p1.gameIsOn = true; // Game is moving further on while (p1.gameIsOn) { //Player 1 choose his/her own block and place the chess p1.placeChess(p1); //Print out the current board p1.printBoard(p1,p2); //Check winner p1.checkWinner(p1, p2); if (!p1.gameIsOn) break; //Player 2 choose his//her own block and place the chess p1.placeChess(p2); //Print out the current board p1.printBoard(p1,p2); p1.checkWinner(p2, p1); if (!p1.gameIsOn) break; } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void createPlayers() {\n\t\t\n\t\twhite = new Player(Color.WHITE);\n\t\twhite.initilizePieces();\n\t\tcurrentTurn = white;\n\t\t\n\t\tblack = new Player(Color.BLACK);\n\t\tblack.initilizePieces();\n\t}", "public void create(){\n\t\t//creating board to keep track of player postion with 1 or 0. 0 if not the...
[ "0.7536933", "0.7466134", "0.7314537", "0.7310296", "0.72619146", "0.7191631", "0.7173919", "0.7161878", "0.71337676", "0.7129777", "0.7109955", "0.70890105", "0.70487064", "0.7002292", "0.69988436", "0.6929204", "0.6884942", "0.6884829", "0.6855479", "0.68313086", "0.6817269...
0.0
-1
Rolls a dice for max. given amount
public int rollDice(int amount) { int randomNum = ThreadLocalRandom.current().nextInt(1, amount + 1); return randomNum; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int roll(int max)\n {\n // roll between 1 and the max\n int r = (int)(Math.random() * max) + 1;\n return r;\n }", "public static int diceRoll() {\n int max = 20;\n int min = 1;\n int range = max - min + 1;\n int rand = (int) (Math.random() * range) + ...
[ "0.71324974", "0.68847585", "0.6759647", "0.67465746", "0.6712805", "0.6700411", "0.6607518", "0.6593367", "0.65907794", "0.65830535", "0.65796804", "0.65739685", "0.6562253", "0.6535717", "0.6533497", "0.65297145", "0.6488531", "0.64665335", "0.63905364", "0.6382174", "0.635...
0.68211246
2
Takes sql query and execute
public ResultSet executeQueryCmd(String sql) { try { return stmt.executeQuery(sql); } catch (SQLException e) { e.printStackTrace(); return null; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void executeQuery() {\n }", "private void executeRequest(String sql) {\n\t}", "private void executeSelect(String query){\n try {\n statement = connection.createStatement();\n rs = statement.executeQuery(query);\n } catch (SQLException e) {\n throw new ...
[ "0.794241", "0.764295", "0.75547755", "0.72824633", "0.7253862", "0.72493476", "0.7245652", "0.7171224", "0.7147325", "0.71461934", "0.7123872", "0.70517814", "0.70334846", "0.70261025", "0.6937007", "0.69243324", "0.69186056", "0.688662", "0.6874216", "0.686801", "0.6863353"...
0.658536
34
Take sql update and execute
public int executeUpdateCmd(String sql) { try { return stmt.executeUpdate(sql); } catch (SQLException e) { e.printStackTrace(); return 0; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract int execUpdate(String query) ;", "Integer update(final String sql);", "public void executeUpdate();", "void executeUpdate();", "@Override\n\tpublic void executeUpdateDinamicSQL(String s) throws Exception {\n\t\t\n\t}", "void executeUpdate(String noParamQuery, Connection conn);", "@Overr...
[ "0.7850035", "0.76661676", "0.76499844", "0.75152993", "0.74357885", "0.7372024", "0.72385687", "0.71707636", "0.7055584", "0.70029366", "0.69716483", "0.6929302", "0.69183743", "0.688047", "0.6845198", "0.6828947", "0.68249804", "0.6789596", "0.678834", "0.67872924", "0.6783...
0.6723893
24
This is the constructor for the Road class and takes the input of integers. They determine the width, height, Top Left X Coordinate, and Top Left Y Coordinate
public Road(int x, int y, int width, int height) { screenWidth = width; screenHeight = height; xTopLeft = x; yTopLeft = y; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Rectangle(int length, int width) {\n }", "public RoadRagePanel(final int theWidth, final int theHeight) {\n super();\n\n myVehicles = new ArrayList<Vehicle>();\n myGrid = new Terrain[0][0];\n setLightColor(Light.GREEN);\n setPreferredSize(new Dimension(theWidth * SQUA...
[ "0.61748546", "0.61718714", "0.6159714", "0.61550343", "0.6101408", "0.60995406", "0.6058896", "0.59898376", "0.5973865", "0.59715766", "0.59493476", "0.5931073", "0.5926845", "0.59024537", "0.5882405", "0.5872991", "0.586265", "0.586062", "0.5856291", "0.58058196", "0.580210...
0.82822746
0
This method draws the Road class by establishing the values of the road and other components of it.
public void draw(Graphics2D g2) { Rectangle r1 = new Rectangle( xTopLeft, yTopLeft, screenWidth, screenHeight); Rectangle l1 = new Rectangle( xTopLeft + (screenWidth/19), yTopLeft + (screenHeight/2), (screenWidth/19), (screenHeight/10)); Rectangle l2 = new Rectangle( xTopLeft + 3 * (screenWidth/19), yTopLeft + (screenHeight/2), (screenWidth/19), (screenHeight/10)); Rectangle l3 = new Rectangle( xTopLeft + 5 * (screenWidth/19), yTopLeft + (screenHeight/2), (screenWidth/19), (screenHeight/10)); Rectangle l4 = new Rectangle( xTopLeft + 7 * (screenWidth/19), yTopLeft + (screenHeight/2), (screenWidth/19), (screenHeight/10)); Rectangle l5 = new Rectangle( xTopLeft + 9 * (screenWidth/19), yTopLeft + (screenHeight/2), (screenWidth/19), (screenHeight/10)); Rectangle l6 = new Rectangle( xTopLeft + 11 * (screenWidth/19), yTopLeft + (screenHeight/2), (screenWidth/19), (screenHeight/10)); Rectangle l7 = new Rectangle( xTopLeft + 13 * (screenWidth/19), yTopLeft + (screenHeight/2), (screenWidth/19), (screenHeight/10)); Rectangle l8 = new Rectangle( xTopLeft + 15 * (screenWidth/19), yTopLeft + (screenHeight/2), (screenWidth/19), (screenHeight/10)); Rectangle l9 = new Rectangle( xTopLeft + 17 * (screenWidth/19), yTopLeft + (screenHeight/2), (screenWidth/19), (screenHeight/10)); g2.setColor(Color.BLACK); g2.draw(r1); g2.fill(r1); g2.setColor(Color.YELLOW); g2.draw(l1); g2.fill(l1); g2.draw(l2); g2.fill(l2); g2.draw(l3); g2.fill(l3); g2.draw(l3); g2.fill(l3); g2.draw(l4); g2.fill(l4); g2.draw(l5); g2.fill(l5); g2.draw(l6); g2.fill(l6); g2.draw(l7); g2.fill(l7); g2.draw(l8); g2.fill(l8); g2.draw(l9); g2.fill(l9); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void buildRoad() {\n\t\t\r\n\t}", "public Road(int x, int y, int width, int height)\n {\n screenWidth = width;\n screenHeight = height;\n xTopLeft = x;\n yTopLeft = y;\n }", "private void drawRoad(double xM, double yM, double xL, double yL, double xI, dou...
[ "0.65099907", "0.64015967", "0.6249639", "0.62447894", "0.62376064", "0.6182209", "0.6140207", "0.6081876", "0.6048673", "0.5989798", "0.59789664", "0.59307134", "0.5868567", "0.5812752", "0.58120656", "0.57422745", "0.5718475", "0.56902486", "0.5685693", "0.56347084", "0.560...
0.0
-1
TODO Autogenerated method stub
public String getSender() { return senderId; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
public String getReceiver() { return receiverId; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub MessageDialog.openInformation(null, "hey", "good"); IRegion region = toRegion(new PositionRange("", 50, 60)); fOpenAction.run(new TextSelection(region.getOffset(), region.getLength()));
@Override public void open() { Range range = positionRangeTo.getRanges().get(0); UIHelper.selectAndReveal(new File(range.getFile()), range.getFrom(), range.getTo() - range.getFrom()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tMessageDialog.openInformation(parent.getShell(), \"info\", ((ToolItem)e.getSource()).getText());\n\t\t\t}", "@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tMessageDialog.openInformation(parent.getShell(), \"info\",...
[ "0.6092715", "0.6092715", "0.5988093", "0.581076", "0.57379836", "0.5715984", "0.5659326", "0.5619902", "0.5618932", "0.56164354", "0.56132805", "0.55817443", "0.55414224", "0.5537437", "0.55128044", "0.5491037", "0.5475073", "0.5466551", "0.54489124", "0.5439", "0.54096025",...
0.58472455
3
Creates a new NameSurferGraph object that displays the data.
public NameSurferGraph() { addComponentListener(this); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public NameSurferGraph() {\r\n\t\taddComponentListener(this);\r\n\t\tentryGraph = new ArrayList<NameSurferEntry>();\r\n\t}", "public NameSurferGraph() {\n\t\taddComponentListener(this);\n\t\tentries = new ArrayList<NameSurferEntry>();\n\t}", "public void init() {\n\t\t// Read the data text file and load up the...
[ "0.7368507", "0.7227325", "0.5801283", "0.57616913", "0.5678303", "0.55681175", "0.55257815", "0.54828525", "0.5453938", "0.54251194", "0.5402692", "0.5386757", "0.532712", "0.5322424", "0.5286106", "0.5189364", "0.51815605", "0.51814926", "0.51684356", "0.5166683", "0.515703...
0.6572723
4
Clears the list of name surfer entries stored inside this class.
public void clear() { removeAll(); drawBackGround(); clearEntries(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void clearNames() {\n eventTitles = null;\n guestTitles = null;\n }", "public static void clearName() {\n\t\tfor (int i = 0; i < count; i++)\n\t\t\t ((IdentifierResolver) bIdents.get(i)).clearNName();\n\t}", "public void clear() {\r\n GiftList.clear();\r\n names = new LinkedList<>...
[ "0.75812304", "0.70303625", "0.6807627", "0.6763328", "0.67267567", "0.67154944", "0.67154944", "0.67154944", "0.67045647", "0.6578562", "0.6577638", "0.6542369", "0.6508073", "0.6456701", "0.64094", "0.63859934", "0.6350832", "0.6331583", "0.6326261", "0.6320492", "0.631779"...
0.0
-1
/ Method: addEntry(entry) Adds a new NameSurferEntry to the list of entries on the display. Note that this method does not actually draw the graph, but simply stores the entry; the graph is drawn by calling update.
public void addEntry(NameSurferEntry entry) { entries.add(entry); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addEntry(NameSurferEntry entry) {\r\n\t\tentryGraph.add(entry);\r\n\t}", "public void addEntry(NameSurferEntry entry) {\r\n\t\tdisplayEntries.add(entry);\r\n\t\tupdate();\r\n\t}", "public void addEntry(NameSurferEntry entry) {\n\t\tentries.add(entry);\n\t}", "public Boolean addEntry(NameSurferEnt...
[ "0.8915141", "0.8899465", "0.8627878", "0.78194624", "0.69984585", "0.6924655", "0.6901239", "0.6855772", "0.6602589", "0.65901464", "0.6485085", "0.6395498", "0.6332152", "0.6309414", "0.63057095", "0.6223176", "0.6207492", "0.6117605", "0.6050961", "0.6027337", "0.60122573"...
0.8651335
2
Updates the display image by deleting all the graphical objects from the canvas and then reassembling the display according to the list of entries. Your application must call update after calling either clear or addEntry; update is also called whenever the size of the canvas changes.
public void update() { removeAll(); drawBackGround(); drawGraph(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void update() {\r\n\t\tremoveAll();\r\n\t\tdrawGraph();\r\n\t\t\r\n\t\tfor (int i = 0; i < entryGraph.size(); i++) {\r\n\t\t\tdrawEntry(entryGraph.get(i), i);\r\n\t\t}\r\n\t}", "public void update() {\r\n\t\tremoveAll();\r\n\t\tdrawGrid();\r\n\t\tplotDecades();\r\n\t\tgetEntries();\r\n\t}", "public void...
[ "0.70094144", "0.68642604", "0.6760239", "0.670778", "0.665986", "0.6511137", "0.6437702", "0.63854635", "0.613584", "0.6074471", "0.597898", "0.59543735", "0.59381616", "0.58654433", "0.58524835", "0.5844734", "0.5828583", "0.5785964", "0.57823545", "0.575358", "0.5746607", ...
0.612605
9
redraws the entire graph each time
private void redrawGraphs(int k, int i) { double y = 0; if (nse.getRank(k) == 0) { y = getHeight() - GRAPH_MARGIN_SIZE; } else { y = (getHeight() - 2 * GRAPH_MARGIN_SIZE) * nse.getRank(k) / (double) MAX_RANK + GRAPH_MARGIN_SIZE; } redrawLines(k, y, i); redrawTitles(i, k, y); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void drawGraph(){\n this.post(new Runnable(){\n @Override\n public void run(){\n removeAllSeries();\n addSeries(xySeries);\n addSeries(currentPoint);\n //addSeries(currentPoint);\n }\n });\n }", "...
[ "0.76574045", "0.75966185", "0.7585173", "0.75151235", "0.7430516", "0.74171984", "0.7383719", "0.7315702", "0.7290136", "0.71912307", "0.716823", "0.7118961", "0.7065775", "0.7049783", "0.69970477", "0.6964385", "0.6862113", "0.6854024", "0.6826746", "0.6810672", "0.67868227...
0.6664305
25
redraws the connecting lines
private void redrawLines(int k, double y, int i) { double y2 = 0; double x = getWidth() / NDECADES * k; double x2 = getWidth() / NDECADES * (k + 1); if (k != NDECADES - 1) { if (nse.getRank(k + 1) == 0) { y2 = getHeight() - GRAPH_MARGIN_SIZE; } else { y2 = (getHeight() - 2 * GRAPH_MARGIN_SIZE) * nse.getRank(k + 1) / (double) MAX_RANK + GRAPH_MARGIN_SIZE; } GLine line = new GLine(x, y, x2, y2); changeTheColor(line, i); add(line); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void redrawLines()\n {\n for(int i =0; i<currentRide;i++)\n {\n rides[i].moveTogether(650,60 + 40*i);//move all elemetnts of ride lines\n \n }\n }", "public void updateLinesAndGrid() {\n\t\tutilities.redrawAllLines(0, false);\n\t\ttableDisplay.setGrid(util...
[ "0.77711457", "0.6919565", "0.67848676", "0.67588186", "0.6666307", "0.6600864", "0.64621663", "0.643248", "0.63532645", "0.6272215", "0.6264821", "0.6247935", "0.62421", "0.62309456", "0.62256366", "0.6218008", "0.61807746", "0.6179199", "0.6157491", "0.611305", "0.61118", ...
0.71307844
1
puts names on the graph
private void redrawTitles(int i, int k, double y) { double x = getWidth() / NDECADES * k; GLabel titles; if (entries.get(i).getRank(k) > 0) { titles = new GLabel(entries.get(i).getName() + " " + entries.get(i).getRank(k), x, y); } else { titles = new GLabel(entries.get(i).getName() + " " + "*", x, y); } changeTheColor(titles, i); add(titles); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void display() {\r\n\t\tArrayList<String> vnames = new ArrayList<>(vces.keySet());\r\n\t\tfor (String vname : vnames) {\r\n\t\t\tString str = vname + \" => \";\r\n\t\t\tVertex vtx = vces.get(vname);\r\n\r\n\t\t\tArrayList<String> nbrnames = new ArrayList<>(vtx.nbrs.keySet());\r\n\t\t\tfor (String nbrname : ...
[ "0.7200291", "0.69348705", "0.67021656", "0.66284215", "0.6583168", "0.65821326", "0.6564045", "0.6528306", "0.63781476", "0.6298156", "0.62299776", "0.61479557", "0.61046976", "0.61021936", "0.60911536", "0.6068993", "0.606867", "0.60634416", "0.60412496", "0.60332334", "0.6...
0.0
-1
changes the color of a GObject accordingly
private void changeTheColor(GObject object, int i) { if (i % 4 == 0) { object.setColor(Color.BLACK); } else if (i % 4 == 1) { object.setColor(Color.RED); } else if (i % 4 == 2) { object.setColor(Color.BLUE); } else if (i % 4 == 3) { object.setColor(Color.YELLOW); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setColor(){\n this.objectColour = new Color(rValue,gValue,bValue,timeToLive).brighter();\n }", "@Override\n\tpublic void setColour(float r, float g, float b) {\n\n\t}", "public abstract boolean atomicChangeObjectColor(Object dst, int oldColor, int newColor);", "public void setColor(int r, int ...
[ "0.76087236", "0.7040881", "0.70195544", "0.6995607", "0.6966906", "0.6942278", "0.691024", "0.6880329", "0.68529695", "0.6809004", "0.6721261", "0.66485476", "0.66485476", "0.66484016", "0.6630421", "0.662469", "0.6614949", "0.65924346", "0.6590575", "0.6575893", "0.6552079"...
0.7052066
1
draws the vertical and horizontal lines, adds decade labels
private void drawBackGround() { double diff = getWidth() / NDECADES; double xcrd = 0; int year = START_DECADE; for (int i = 0; i < NDECADES; i++) { String yearStr = year + ""; add(new GLine(xcrd, 0, xcrd, getHeight())); add(new GLabel(yearStr, xcrd, getHeight())); xcrd = xcrd + diff; year = year + 10; } double ycrd = GRAPH_MARGIN_SIZE; add(new GLine(0, ycrd, getWidth(), ycrd)); add(new GLine(0, getHeight() - ycrd, getWidth(), getHeight() - ycrd)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void drawGraph() {\n\t\t//draw vertical (decade) lines\n\t\tdouble deltaX = getWidth() / NDECADES;\n\t\tfor (int i = 0; i < NDECADES; i++) {\n\t\t\tGLine decadeLine = new GLine(i * deltaX, getHeight(),\n\t\t\t\t\t\t\t\t\t\t i * deltaX, 0);\n\t\t\tadd(decadeLine);\n\t\t}\n\t\t\n\t\t//draw horizontal (margin...
[ "0.7275118", "0.7258654", "0.700312", "0.673354", "0.64749664", "0.64704955", "0.6451586", "0.64327675", "0.6367279", "0.6354411", "0.6348251", "0.6336758", "0.63224024", "0.6292473", "0.6260902", "0.625458", "0.6247296", "0.6240356", "0.6153126", "0.61239517", "0.6110623", ...
0.6326944
12
/ Implementation of the ComponentListener interface
public void componentHidden(ComponentEvent e) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\t\t\tpublic void componentAdded(ContainerEvent arg0){}", "@Override\r\npublic void componentMoved(ComponentEvent arg0) {\n\t\r\n}", "@Override\n\t\t\t\t\t\tpublic void componentMoved(ComponentEvent arg0) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}", "@Override\n\t\t\t\t\t\tpublic void componentMoved(Compo...
[ "0.7355353", "0.7306408", "0.72292095", "0.72292095", "0.7207072", "0.7199147", "0.71981734", "0.71626663", "0.71503764", "0.7137413", "0.71323603", "0.71285903", "0.71269125", "0.71247256", "0.712024", "0.712024", "0.7116396", "0.71163493", "0.71091175", "0.71091175", "0.710...
0.0
-1
Value of "help" parameter.
public boolean getHelp() { return help; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getHelp();", "String getHelpString();", "public String getSpecificHelp() {\n return specificHelp;\n }", "String getHelpText();", "public void setHelp (String Help);", "public VRL getHelp()\n {\n return Global.getHelpUrl(this.getType()); \n }", "public abstract Strin...
[ "0.80213046", "0.78279513", "0.77412677", "0.7688273", "0.760001", "0.74843156", "0.7395004", "0.73650014", "0.7354578", "0.72721076", "0.7254371", "0.7158874", "0.7147404", "0.71291775", "0.7125293", "0.70411766", "0.7038619", "0.70371854", "0.7004014", "0.6993647", "0.69888...
0.7434114
6
Value of "url" parameter. Defaults to
@Nonnull public String getURL() { return url; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setURL(String _url) { url = _url; }", "@Override\r\n public String getURL() {\n return url;\r\n }", "@Override\n\tpublic String getUrl()\n\t{\n\t\treturn url;\n\t}", "public String getUrl() { return url; }", "public String getURL() { return url; }", "public String getURL(){\r\n\t...
[ "0.75857985", "0.7493368", "0.7485623", "0.7477863", "0.7431631", "0.7429441", "0.7354102", "0.73256683", "0.73132586", "0.73132586", "0.72555256", "0.72197634", "0.72197634", "0.72119606", "0.7201035", "0.7201035", "0.7194905", "0.7193453", "0.71932226", "0.71932226", "0.719...
0.0
-1
Value of "path" parameter.
@Nullable public String getPath() { return path; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String path() {\n\treturn path;\n }", "public String path() {\n return this.path;\n }", "public String path() {\n return this.path;\n }", "public String getpathInput() {\r\n\t\treturn pathInput;\r\n\t}", "public String getPath(){\r\n\t\treturn path;\r\n\t}", "String getPath(...
[ "0.72145194", "0.7157242", "0.7157242", "0.715655", "0.7090781", "0.7088791", "0.70230645", "0.70230645", "0.7019166", "0.7018351", "0.7015947", "0.7015947", "0.7015947", "0.699317", "0.699317", "0.6968474", "0.6951629", "0.6938024", "0.6938024", "0.6938024", "0.6938024", "...
0.6509428
94
Value of "trustStore" parameter.
@Nullable public String getTrustStore() { return trustStore; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getTrustStore() {\n return trustStore;\n }", "public void setTrustStore(String trustStore) {\n this.trustStore = trustStore;\n }", "@Nullable public String getTrustStoreType() {\n return trustStoreType;\n }", "public URL getTrustStore() {\n URL trustStore = ...
[ "0.74079007", "0.70585954", "0.697624", "0.6853338", "0.6762575", "0.6762575", "0.658109", "0.6523227", "0.5949165", "0.5812522", "0.57321525", "0.57206786", "0.5688388", "0.5682303", "0.5665517", "0.5665517", "0.56560713", "0.5540786", "0.5539089", "0.5496924", "0.54757494",...
0.72771126
1
Value of "trustStoreType" parameter.
@Nullable public String getTrustStoreType() { return trustStoreType; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getTrustStore() {\n return trustStore;\n }", "@Nullable public String getTrustStore() {\n return trustStore;\n }", "public DataStoreType getDataStoreType() {\n return dataStoreType;\n }", "public java.lang.String getStore_price_type() {\n return store_price_...
[ "0.63951576", "0.6367311", "0.62560767", "0.6049382", "0.60409755", "0.6010959", "0.59380853", "0.5819603", "0.57707304", "0.5724642", "0.57243925", "0.56864136", "0.5680227", "0.56111777", "0.56109786", "0.56109786", "0.56108207", "0.55671966", "0.55671966", "0.55478185", "0...
0.7946191
0
Value of "trustStorePassword" parameter.
@Nullable public String getTrustStorePassword() { return trustStorePassword; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getTrustStorePassword() {\n return trustStorePassword;\n }", "public String getTrustStorePassword() {\n return trustStorePassword;\n }", "public void setTrustStorePassword(String trustStorePassword) {\n this.trustStorePassword = trustStorePassword;\n }", "public St...
[ "0.77743566", "0.77743566", "0.72652555", "0.7089529", "0.7048467", "0.6995747", "0.6955806", "0.6894632", "0.6886993", "0.68667746", "0.68667746", "0.68667746", "0.68667746", "0.68667746", "0.68667746", "0.68667746", "0.6849753", "0.68133444", "0.677294", "0.674564", "0.6743...
0.7643762
2
Value of "disableNameChecking" parameter.
public boolean isDisableNameChecking() { return disableNameChecking; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setDisableNameValidation(boolean tmp) {\n this.disableNameValidation = tmp;\n }", "public void setDisableNameValidation(String tmp) {\n this.disableNameValidation = DatabaseUtils.parseBoolean(tmp);\n }", "public boolean getDisableNameValidation() {\n return disableNameValidation;\n }", ...
[ "0.77737534", "0.748435", "0.74309653", "0.6129056", "0.6081032", "0.5970513", "0.57709634", "0.56159693", "0.5517515", "0.55059665", "0.55007976", "0.5492668", "0.5461931", "0.54598075", "0.54327613", "0.5425303", "0.54223186", "0.538742", "0.5384745", "0.53826267", "0.53402...
0.81808305
0
Value of "username" parameter.
@Nullable public String getUsername() { return username; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getUsername();", "java.lang.String getUsername();", "java.lang.String getUsername();", "java.lang.String getUsername();", "java.lang.String getUsername();", "java.lang.String getUsername();", "java.lang.String getUsername();", "java.lang.String getUsername();", "java.lang.String ge...
[ "0.8023128", "0.8023128", "0.8023128", "0.8023128", "0.8023128", "0.8023128", "0.8023128", "0.8023128", "0.8023128", "0.7791684", "0.7791684", "0.7791684", "0.7791684", "0.7791684", "0.7791684", "0.7704567", "0.7695465", "0.76543665", "0.76504296", "0.7626962", "0.7612742", ...
0.0
-1
Value of "password" parameter.
@Nullable public String getPassword() { return password; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getPassword();", "java.lang.String getPassword();", "java.lang.String getPassword();", "java.lang.String getPassword();", "java.lang.String getPassword();", "java.lang.String getPassword();", "java.lang.String getPassword();", "public java.lang.String getPassword();", "public Strin...
[ "0.84907496", "0.84907496", "0.84907496", "0.84907496", "0.84907496", "0.84907496", "0.84907496", "0.8451084", "0.838263", "0.83732826", "0.83732826", "0.8348186", "0.8348186", "0.8348186", "0.8348186", "0.8348186", "0.8348186", "0.8348186", "0.8348186", "0.8348186", "0.81891...
0.0
-1
Value of "method" parameter.
@Nullable @NotEmpty public String getMethod() { return StringSupport.trimOrNull(method); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getMethodValue() {\n return method_;\n }", "public int getMethodValue() {\n return method_;\n }", "int getMethodValue();", "public int getMethod(){\n return method;\n }", "public String getMethod() {\n\t\treturn getParameter(\"method\");\n\t}", "public String getM...
[ "0.78953946", "0.776894", "0.774711", "0.7566115", "0.73524916", "0.71987516", "0.6933109", "0.6933109", "0.6912361", "0.69104815", "0.6830101", "0.6830101", "0.6830101", "0.68279654", "0.68279654", "0.680791", "0.6806998", "0.678231", "0.6775532", "0.67336583", "0.67336583",...
0.6285606
34
Compute the full URL to connect to.
@Nonnull public URL buildURL() throws MalformedURLException { installTrustStore(); if (disableNameChecking) { final HostnameVerifier allHostsValid = new HostnameVerifier() { public boolean verify(final String hostname, final SSLSession session) { return true; } }; HttpsURLConnection.setDefaultHostnameVerifier(allHostsValid); } final StringBuilder builder = new StringBuilder(getURL()); if (getPath() != null) { builder.append(getPath()); } return new URL(doBuildURL(builder).toString()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static String getURL() {\n\t return getURL(BackOfficeGlobals.ENV.NIS_USE_HTTPS, BackOfficeGlobals.ENV.NIS_HOST, BackOfficeGlobals.ENV.NIS_PORT);\n\t}", "public String url() {\n return server.baseUri().toString();\n }", "public String getBaseUrl() {\n StringBuffer buf = new StringBuf...
[ "0.7102608", "0.69805545", "0.6858084", "0.68034303", "0.6789641", "0.6773022", "0.67600745", "0.6742249", "0.67277944", "0.66881675", "0.66477776", "0.66297877", "0.6595502", "0.65935415", "0.6584078", "0.6554074", "0.6546127", "0.6538649", "0.6498093", "0.6486104", "0.64861...
0.65971625
12
Override this method to modify the eventual URL and attach any parameters.
@Nonnull protected StringBuilder doBuildURL(@Nonnull final StringBuilder builder) { return builder; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract String toURLParam();", "private String initUrlParameter() {\n StringBuffer url = new StringBuffer();\n url.append(URL).append(initPathParameter());\n return url.toString();\n }", "void setQueryRequestUrl(String queryRequestUrl);", "@Override\r\n\tpublic void getUrl() {...
[ "0.6711156", "0.6536423", "0.64491665", "0.63931584", "0.6365502", "0.6334257", "0.6282132", "0.6222815", "0.62015826", "0.6193221", "0.6178822", "0.6174224", "0.61455023", "0.6108777", "0.6081805", "0.6033812", "0.6022066", "0.6013505", "0.6009828", "0.5980802", "0.59684944"...
0.0
-1
Use the configured parameters to set global JVM trust store parameters for SSL connectivity.
private void installTrustStore() { if (trustStoreType != null) { System.setProperty("javax.net.ssl.trustStore", trustStore); if (trustStoreType != null) { System.setProperty("javax.net.ssl.trustStoreType", trustStoreType); } if (trustStorePassword != null) { System.setProperty("javax.net.ssl.trustStorePassword", trustStorePassword); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@PostConstruct\n\t\tprivate void configureSSL() {\n\t\t\tSystem.setProperty(\"https.protocols\", \"TLSv1.2\");\n\n\t\t\t//load the 'javax.net.ssl.trustStore' and\n\t\t\t//'javax.net.ssl.trustStorePassword' from application.properties\n\t\t\tSystem.setProperty(\"javax.net.ssl.trustStore\", env.getProperty(\"server....
[ "0.6767023", "0.66753", "0.65211755", "0.65067697", "0.6270358", "0.6247147", "0.61728466", "0.6037647", "0.5994707", "0.59644127", "0.59298927", "0.58638084", "0.5848133", "0.581841", "0.58038306", "0.5769678", "0.5746484", "0.571801", "0.567679", "0.5646691", "0.56211615", ...
0.6962345
0
methode pour enregistrer un employe
public void EnregistrerEmploye(String nom, String prenom, String couriel, String adresse, String numero, int heuresTravaille, int leTauxHoraire,int unSalaire){ Employe exploite = new Employe(nom,prenom,couriel,adresse,numero,heuresTravaille,leTauxHoraire,unSalaire); Gestion.addEmploye(exploite); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void sauverEmploye(Employe employe) {\n\n\t}", "public void saveEmployee(Employe employee) {\n\t\t\n\t}", "public void createemployee(Employeee em) {\n\t\temployeerepo.save(em);\n\t}", "@Override\n\tpublic void ajouterEmploye(Employe em) {\n\t\ttreeMap.put(em.getId(), em);\n//\t\tSystem.out.println(em...
[ "0.73767465", "0.72841454", "0.7129105", "0.68825835", "0.6872855", "0.68715715", "0.6794843", "0.67435765", "0.6726956", "0.6677736", "0.6563377", "0.6551967", "0.6522655", "0.6502496", "0.6487973", "0.6452936", "0.64509034", "0.6404038", "0.64022154", "0.6383082", "0.636881...
0.76276463
0
methode pour obtenir information desiree
public String getInfo(int type) { String[] typeInformations = {"1. Liste employes","2. Liste benevoles", "3. Liste donateur","4. Moyenne des dons","5. Total des dons"}; switch(type){ //liste d'employes case 1: return Gestion.getListeEmploye(); case 2: //liste des benevoles return Gestion.getListeBenevoles(); case 3: //liste des donateurs return Gestion.getListeDonateur(); //moyennes des dons case 4: return Double.toString(Gestion.getMoyenneDons()); //total des dons case 5: return Double.toString(Gestion.getTotalDons()); default: break; } return ""; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Information getInfo();", "String getInfo();", "public abstract String getInfo();", "public abstract String getInfo();", "public void getInfo() {\n System.out.println(\"Content : \" + content);\n System.out.println(\"Name : \" + name);\n System.out.println(\"Location : (\" + ...
[ "0.7659575", "0.7314036", "0.7195627", "0.7195627", "0.6915427", "0.6785287", "0.67496836", "0.6731286", "0.67056215", "0.6675494", "0.6639449", "0.6574638", "0.6564347", "0.65259165", "0.65019447", "0.65013885", "0.64952993", "0.64799184", "0.64778394", "0.6463331", "0.64582...
0.6456025
21
TODO Autogenerated method stub ActivityCollector.removeActivity((Activity)getContext());
@Override public void onClick(View v) { ((Activity)getContext()).finish(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final void mo26167a(Activity activity) {\n this.f24001f.remove(activity);\n }", "@Override\n\tprotected void onDestroy() {\n\t\tsuper.onDestroy();\n\t\tActivityCollector.removeActivity(this);\n\t}", "public void removeActivity(Activity activity) {\n for (int i = 0; i < this.activitiesLi...
[ "0.6849688", "0.68001604", "0.6559134", "0.6324929", "0.6072997", "0.5984504", "0.5926579", "0.5878172", "0.58328676", "0.57167697", "0.57032245", "0.56984264", "0.5687892", "0.5674687", "0.5643784", "0.5641122", "0.55733454", "0.5550701", "0.5549345", "0.5530168", "0.5513078...
0.0
-1
TODO Autogenerated method stub
@Override public void onClick(View v) { startThread(); Toast.makeText(getContext(), "Êղسɹ¦", 1).show(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public void run() { Map<String, String> map=new HashMap<String, String>(); map=CatchHtml.getListHtmlText(address); ListInfo listInfo=new ListInfo(); listInfo.setTitle(map.get("singht_title")); listInfo.setIntroduce(map.get("singht_intro")); listInfo.setAddress(map.get("singht_address")); listInfo.setTime(map.get("singht_time")); listInfo.setId(id); db.saveSinght(listInfo,contentString); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
public void setImage(int imageId) { this.imageId=imageId; }
{ "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
Provides configuration properties for kafka producer.
public Properties getKafkaProducerConfig() { if (instancePublisher.isResolvable()) { return instancePublisher.get().getKafkaProducerConfig(); } Properties producerConfig = getDefaultProducerConfig(); if (instanceProducer.isResolvable()) { producerConfig.putAll(instanceProducer.get()); } return producerConfig; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static Properties configProducer() {\r\n\t\tProperties props = new Properties();\r\n\t\tprops.put(ProducerConfig.BOOTSTRAP_SERVERS_CONFIG, KafkaConstants.getBootstrapServers());\r\n\t\tprops.put(ProducerConfig.KEY_SERIALIZER_CLASS_CONFIG, StringSerializer.class);\r\n\t\tprops.put(ProducerConfig.VALUE_SERIAL...
[ "0.835553", "0.78541905", "0.7627807", "0.7341887", "0.7319776", "0.7318685", "0.7098622", "0.7010297", "0.6956676", "0.6888487", "0.68228287", "0.65302235", "0.63557255", "0.6277854", "0.62680763", "0.62656665", "0.623795", "0.6201894", "0.61925626", "0.61071235", "0.6093747...
0.74764717
3
Provides configuration properties for kafka consumer.
public Properties getKafkaConsumerConfig() { if (instanceSubscriber.isResolvable()) { return instanceSubscriber.get().getKafkaConsumerConfig(); } Properties consumerConfig = getDefaultConsumerConfig(); if (instanceConsumer.isResolvable()) { consumerConfig.putAll(instanceConsumer.get()); } return consumerConfig; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static Properties configConsumer() {\r\n\t\tProperties props = new Properties();\r\n\t\tprops.put(ConsumerConfig.BOOTSTRAP_SERVERS_CONFIG, KafkaConstants.getBootstrapServers());\r\n\t\tprops.put(ConsumerConfig.GROUP_ID_CONFIG, KafkaConstants.getGroupId());\r\n\t\tprops.put(ConsumerConfig.ENABLE_AUTO_COMMIT_...
[ "0.8296565", "0.7014036", "0.68825465", "0.68824995", "0.6784259", "0.6527374", "0.6287299", "0.6229372", "0.6192189", "0.6181453", "0.6166122", "0.61495143", "0.61211294", "0.6051356", "0.60257554", "0.601541", "0.59599656", "0.5951949", "0.58542085", "0.58460987", "0.579690...
0.75190175
1
Reverse a LinkedList (easy) Iterative Apporach
public ListNode reverseList1(ListNode head) { ListNode curr = head, next, prev = null; while (curr != null) { next = curr.next; curr.next = prev; prev = curr; curr = next; } return prev; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void iterateLinkedListInReverseOrder() {\n\t\tLinkedList<Integer> list = new LinkedList<Integer>();\n\t\tlist.add(10);\n\t\tlist.add(20);\n\t\tlist.add(30);\n\t\tlist.add(40);\n\t\tlist.add(50);\n\t\tSystem.out.println(\"LinkedList is : \" + list);\n\t\tCollections.reverse(list);\n\t\tSystem.out.pri...
[ "0.8033501", "0.7782093", "0.7507352", "0.7418958", "0.7398225", "0.73602706", "0.7307109", "0.7259685", "0.7240721", "0.7216046", "0.72045666", "0.71895224", "0.716126", "0.7146147", "0.7098927", "0.70899534", "0.70676327", "0.7063953", "0.70005864", "0.69548184", "0.6931322...
0.62133294
88
Reverse a Sublist (medium) Reverse a linked list II: Reverse a linked list from position m to n. Do it in onepass.
public ListNode reverseBetween(ListNode head, int m, int n) { ListNode fakeHead = new ListNode(-1); fakeHead.next = head; ListNode curr = fakeHead.next; ListNode prev = fakeHead; int i = 1; // Move to node 'm' while (i < m) { prev = curr; curr = curr.next; i++; } // End of first m node ListNode mthNode = prev; // Reverse the node from 'm' to node 'n' while (i <= n) { ListNode next = curr.next; curr.next = prev; prev = curr; curr = next; i++; } // mthNode 'next of next' will point to curr node mthNode.next.next = curr; // mthNode next will point to reversed node mthNode.next = prev; return fakeHead.next; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ListNode reverseBetween(ListNode head, int m, int n) {\n if (head.next == null) return head;\n m--; //the index of first element is 1 , hence decrement as we are starting first from 0\n int i =0;\n\n //progress the pointers forward\n ListNode origHead = head;\n List...
[ "0.7135603", "0.6922328", "0.6893776", "0.675141", "0.6727945", "0.66966945", "0.66876894", "0.66421074", "0.66065145", "0.6591924", "0.6571743", "0.6550504", "0.6485142", "0.6420912", "0.63972664", "0.6396012", "0.6386947", "0.63686526", "0.6330585", "0.6299242", "0.62991285...
0.68324697
3
Reverse every Kelement Sublist (medium) / Reverse Nodes in kGroup: Given a linked list, reverse the nodes of a linked list k at a time and return its modified list.
public ListNode reverseKGroup(ListNode head, int k) { if (head == null) return head; int count = 0; ListNode curr = head, prev = null, next = null; // Find the k+1 node while (count != k && curr != null) { curr = curr.next; count++; } if (count != k) return head; // reverse list with k+1 node as head prev = reverseKGroup(curr, k); // LL Reversal Alg: reverse current k-group from head ptr while (count-- > 0) { next = head.next; head.next = prev; prev = head; head = next; } return prev; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static ListNode reverseKGroup(ListNode head, int k) {\n\t\tListNode runner = head;\n\t\tint counter = 0;\n\t\twhile(runner != null){\n\t\t\trunner = runner.next;\n\t\t\tcounter++;\n\t\t}\n\t\tif(counter < k){return head;}\n\t\t\n\t\t// reverse first k nodes\n\t\tListNode dummy = new ListNode(0);\n\t\tdummy....
[ "0.8323239", "0.81915677", "0.81697416", "0.80998695", "0.7972523", "0.7385646", "0.7248575", "0.6947995", "0.65006405", "0.6377008", "0.63007474", "0.6286045", "0.626273", "0.6238575", "0.62145036", "0.6122783", "0.61179596", "0.6053552", "0.60104644", "0.59734064", "0.59377...
0.79902047
4
Reverse alternating Kelement Sublist (medium) / Reverses alternate k nodes and returns the pointer to the new head node
ListNode kAltReverse(ListNode head, int k) { ListNode curr = head, next = null, prev = null; int count = 0; /*1) LL Revese Alg: reverse first k nodes of the linked list */ while (curr != null && count < k) { next = curr.next; curr.next = prev; prev = curr; curr = next; count++; } /* 2) Now head points to the kth node. So change next of head to (k+1)th node*/ if (head != null) { head.next = curr; } /* 3) We do not want to reverse next k nodes. So move the curr pointer to skip next k nodes */ count = 0; while (count < k - 1 && curr != null) { curr = curr.next; count++; } /* 4) Recursively call for the list starting from curr->next. And make rest of the list as next of first node */ if (curr != null) { curr.next = kAltReverse(curr.next, k); } /* 5) prev is new head of the input list */ return prev; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static ListNode reverse(ListNode head, int k) {\n\t\tListNode curr = head;\n\t\tListNode prev = null;\n\t\twhile (true) {\n\t\t\tListNode prevLast = prev; // null for head,1 for 4,5,6\n\t\t\tListNode first = curr;\n\n\t\t\t// reversing\n\t\t\tprev = null;\n\t\t\tfor (int i = 0; i < k && curr != null; i++) {...
[ "0.71482253", "0.69513047", "0.68091273", "0.6783951", "0.6620868", "0.66153055", "0.65806305", "0.64580005", "0.643771", "0.63793766", "0.6338437", "0.6318472", "0.6316613", "0.6232248", "0.620157", "0.6177651", "0.6169351", "0.6162767", "0.6161414", "0.61481637", "0.6144121...
0.73274
0
Rotate a LinkedList (medium) / Eg:Input: 1>2>3>4>5>NULL, k = 2; Output: 3>4>5>1>2>NULL
public ListNode rotateLeft(ListNode head, int k) { if (k <= 0) return head; ListNode curr = head; int count = 1; while (count++ < k && curr != null) curr = curr.next; if (curr == null) return head; ListNode nextHead = curr; while (curr.next != null) curr = curr.next; curr.next = head; head = nextHead.next; nextHead.next = null; return head; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static <V> ListNode<V> Rotate (\n\t\tfinal ListNode<V> head,\n\t\tfinal int k)\n\t{\n\t\tif (null == head || 0 >= k)\n\t\t{\n\t\t\treturn null;\n\t\t}\n\n\t\tint rotationCount = 0;\n\t\tListNode<V> prevNode = null;\n\t\tListNode<V> currentNode = head;\n\n\t\tListNode<V> nextNode = head.next();\n\n\t\twhile ...
[ "0.7966714", "0.79058856", "0.78949255", "0.7865921", "0.7744919", "0.77034134", "0.7201035", "0.6951432", "0.6936748", "0.68897617", "0.6852235", "0.68240076", "0.68081367", "0.6802204", "0.6752109", "0.6604176", "0.6598208", "0.65759826", "0.65539616", "0.65023196", "0.6493...
0.7796688
4
/ Rotate Right: Eg:Input: 1>2>3>4>5>NULL, k = 2; Output: 4>5>1>2>3>NULL
public ListNode rotateRight(ListNode head, int k) { int size = listSize(head); if (head == null || k <= 0 || k == size) return head; if (k > size) k %= size; int count = 1; ListNode curr = head; k = size - k; while (count < k && curr != null) { curr = curr.next; count++; } ListNode nextHead = curr; while (curr.next != null) curr = curr.next; curr.next = head; head = nextHead.next; nextHead.next = null; return head; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void rightRotate(int[] nums, int k) {\r\n\t if (nums.length == 0) return;\r\n\t \r\n\t k %= nums.length;\r\n\t \r\n\t if (k == 0) return;\r\n\t \r\n\t int left=0, right=nums.length-1, tmp;\r\n\t \r\n\t while(left < right) {\r\n\t ...
[ "0.78646576", "0.7801626", "0.6979887", "0.69700694", "0.6969403", "0.6880429", "0.6856202", "0.6756981", "0.67168784", "0.6700389", "0.6629936", "0.6623515", "0.66218", "0.6591183", "0.6580033", "0.6566541", "0.6563252", "0.65276134", "0.65191925", "0.6505386", "0.6503575", ...
0.7895184
0
Find all moves by game from Game repo.
List<Move> findByGame(Game game);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "List<Move> findByGameAndPlayer(Game game, Player player);", "public List<ScoredMove> allValidMoves(GameState gm){\n\t\tList<ScoredMove> validMoves = new ArrayList<ScoredMove>();\n\t\t\n\t\t// check for draw move\n\t\tif (getDeckSize() > 0) {\n\t\t\tvalidMoves.add(new ScoredMove(ACTION.DRAW, null, null));\n\t\t}\...
[ "0.7047403", "0.6281085", "0.6259387", "0.62573594", "0.62474185", "0.6066109", "0.6059667", "0.6058115", "0.603526", "0.5933197", "0.5904347", "0.58997536", "0.58148324", "0.5804944", "0.58035445", "0.57931197", "0.5788303", "0.5773921", "0.57200444", "0.56912124", "0.569073...
0.77362615
0
Find all player move in game from Game repository.
List<Move> findByGameAndPlayer(Game game, Player player);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "List<Move> findByGame(Game game);", "List<Move> getLegalMoves(Player player);", "public List<Player> findAllPlayers(){\n\t\treturn playerRepository.findAll();\n\t}", "List<Player> findAllPlayers();", "@Transactional(readOnly = true)\n public List<Game> findAll() {\n log.debug(\"Request to get all...
[ "0.7450942", "0.6629578", "0.65751517", "0.6502967", "0.64915586", "0.63238347", "0.6200253", "0.61041", "0.5980756", "0.5966588", "0.5965822", "0.5945045", "0.59053206", "0.5893158", "0.58857006", "0.58726704", "0.5823933", "0.5799328", "0.5789164", "0.57886404", "0.5780386"...
0.7589925
0
Validation Functions Description : To validate the required frame available or not in Customer Account Summary of Customer Tab Coded by :Rajan Created Data:20 Oct 2016 Last Modified Date: Modified By: Parameter:
public void verify_required_FrameVisibility_Customer_Tab(String Frame,boolean status)throws Exception { if(status) { VerifyElementPresent(Desktop_XPATH_Verify_Customer_Page_FrameAvailibility.replaceAll("M_Header", Frame), "Required frame availiable is "+Frame); Report.fnReportPageBreak(Frame+ " Frame is Visible", driver); } else { VerifyElementNotPresent(Desktop_XPATH_Verify_Customer_Page_FrameAvailibility.replaceAll("M_Header", Frame), "Required frame not availiable and "+Frame); Report.fnReportPageBreak(Frame+ " Frame is not Visible", driver); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void validate() {\n\n etCardNumber.validate();\n\n etCardExpiryDate.validate();\n\n etCardCvv.validate();\n\n etCardHolderName.validate();\n\n etPhoneNumber.validate();\n\n etCustomerName.validate();\n }", "@Test\r\n\tpublic void view3_current_table_data_valid...
[ "0.6825345", "0.66612804", "0.66153866", "0.6603709", "0.6526585", "0.6521978", "0.6419764", "0.6417063", "0.6342049", "0.6331564", "0.6331564", "0.6219315", "0.6156434", "0.61018324", "0.60800266", "0.6071028", "0.60590386", "0.6049881", "0.6025239", "0.6001989", "0.6001686"...
0.5779664
39
Validation Functions Description : To validate the Account Number in Customer Account Summary of Customer Tab Coded by :Raja Created Data:05 Oct 2016 Last Modified Date:25 Oct 2016 Modified By:Rajan Parameter:AccountNumber
public void validate_the_Account_Number_in_Customer_Account_Summary_of_Customer_Tab(String AccountNumber)throws Exception { VerifyElementPresent(Desktop_XPATH_Verify_Customer_Page_CustomerAccountSummary.replaceAll("M_Header", "Landline Account Summary").replaceAll("M_Category", "Account Number").replaceAll("M_InnerText", AccountNumber), "Account Number - "+AccountNumber, false); Report.fnReportPageBreak("Customer Account Summary", driver); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean validateAccountNumber() {\n\t\tif (!this.setAccountNumber(this.account))\n\t\t\treturn false;\n\t\treturn this.getAccountNumber().length() > 0 && this.getAccountNumber().length() <= 11;\n\t}", "boolean validateAccount(String Account) {\n\t\treturn true;\n\n\t}", "public void validate_the_Phone_N...
[ "0.6781862", "0.66707194", "0.64093554", "0.6367719", "0.6123507", "0.6088029", "0.60660833", "0.59787095", "0.59024054", "0.59024054", "0.58645934", "0.57487184", "0.5739208", "0.57379836", "0.5733053", "0.5730071", "0.57260114", "0.5704133", "0.5677036", "0.5675466", "0.565...
0.72829735
0
Validation Functions Description : To validate the Account Status in Customer Account Summary of Customer Tab Coded by :Raja Created Data:05 Oct 2016 Last Modified Date:25 Oct 2016 Modified By:Rajan Parameter:AccountStatus
public void validate_the_Account_Status_in_Customer_Account_Summary_of_Customer_Tab(String AccountStatus)throws Exception { VerifyElementPresent(Desktop_XPATH_Verify_Customer_Page_CustomerAccountSummary.replaceAll("M_Header", "Landline Account Summary").replaceAll("M_Category", "Account Status").replaceAll("M_InnerText", AccountStatus), "Account Status - "+AccountStatus, false); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void validate_the_Package_Status_in_Customer_Account_Summary_of_Customer_Tab(String PackageStatus)throws Exception {\n\t\tVerifyElementPresent(Desktop_XPATH_Verify_Customer_Page_CustomerAccountSummary.replaceAll(\"M_Header\", \"Landline Account Summary\").replaceAll(\"M_Category\", \"Package Status\").repla...
[ "0.64161015", "0.6404621", "0.6176711", "0.617232", "0.6039781", "0.59864193", "0.59230363", "0.57980394", "0.5696221", "0.5696221", "0.56773365", "0.5669984", "0.5659512", "0.56432", "0.56286734", "0.56250185", "0.55979437", "0.55900556", "0.5575675", "0.5575675", "0.5561806...
0.72459763
0
Validation Functions Description : To validate the Phone Number in Customer Account Summary of Customer Tab Coded by :Raja Created Data:05 Oct 2016 Last Modified Date:05 Oct 2016 Modified By:Raja Parameter:PhoneNumber
public void validate_the_Phone_Number_in_Customer_Account_Summary_of_Customer_Tab(String PhoneNumber)throws Exception { VerifyElementPresent(Desktop_XPATH_Verify_Customer_Page_CustomerAccountSummary.replaceAll("M_Header", "Landline Account Summary").replaceAll("M_Category", "Phone Number").replaceAll("M_InnerText", PhoneNumber), "Phone Number - "+PhoneNumber, false); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static boolean validatePhoneNumber(String phoneNo) {\n if (phoneNo.matches(\"\\\\d{10}\")) return true;\n //validating phone number with -, . or spaces\n else if(phoneNo.matches(\"\\\\d{3}[-\\\\.\\\\s]\\\\d{3}[-\\\\.\\\\s]\\\\d{4}\")) return true;\n //validating phone nu...
[ "0.7054158", "0.6963889", "0.6936419", "0.69360226", "0.67336196", "0.6724876", "0.67086476", "0.65895987", "0.6499997", "0.64548683", "0.63844645", "0.63796407", "0.6359037", "0.6356545", "0.633753", "0.6317979", "0.63172275", "0.6286273", "0.6258973", "0.6232366", "0.622762...
0.71314687
0
Validation Functions Description : To validate the Package Name in Customer Account Summary of Customer Tab Coded by :Raja Created Data:05 Oct 2016 Last Modified Date:05 Oct 2016 Modified By:Raja Parameter:PackageName
public void validate_the_Package_Name_in_Customer_Account_Summary_of_Customer_Tab(String PackageName)throws Exception { VerifyElementPresent(Desktop_XPATH_Verify_Customer_Page_CustomerAccountSummary.replaceAll("M_Header", "Landline Account Summary").replaceAll("M_Category", "Package Name").replaceAll("M_InnerText", PackageName), "Package Name - "+PackageName, false); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void validate_the_Package_Status_in_Customer_Account_Summary_of_Customer_Tab(String PackageStatus)throws Exception {\n\t\tVerifyElementPresent(Desktop_XPATH_Verify_Customer_Page_CustomerAccountSummary.replaceAll(\"M_Header\", \"Landline Account Summary\").replaceAll(\"M_Category\", \"Package Status\").repla...
[ "0.6436408", "0.6274032", "0.62738496", "0.5970418", "0.58943284", "0.5877221", "0.58475006", "0.58475006", "0.572069", "0.56963664", "0.56630856", "0.56581634", "0.562349", "0.55488956", "0.5545444", "0.55401987", "0.55197865", "0.5504966", "0.5489954", "0.54814297", "0.5479...
0.7576915
0
Validation Functions Description : To validate the Package Status in Customer Account Summary of Customer Tab Coded by :Raja Created Data:05 Oct 2016 Last Modified Date:05 Oct 2016 Modified By:Raja Parameter:PackageStatus
public void validate_the_Package_Status_in_Customer_Account_Summary_of_Customer_Tab(String PackageStatus)throws Exception { VerifyElementPresent(Desktop_XPATH_Verify_Customer_Page_CustomerAccountSummary.replaceAll("M_Header", "Landline Account Summary").replaceAll("M_Category", "Package Status").replaceAll("M_InnerText", PackageStatus), "Package Status - "+PackageStatus, false); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean validatePackage() {\n\t\treturn this.validateID() && this.validateFirstName() && this.validateLastName()\n\t\t\t\t&& this.validateBank() && this.validateBSB() && this.validateAccountNumber();\n\t}", "private void validatePurchaseOrder(MaintenanceRequest mrq) throws MalBusinessException{\n\t\tArray...
[ "0.6458406", "0.637449", "0.61803514", "0.61654055", "0.6129052", "0.6113582", "0.5992474", "0.59876764", "0.5983158", "0.59662277", "0.59662277", "0.58490837", "0.58363444", "0.5823224", "0.58171827", "0.5805748", "0.57840073", "0.5773203", "0.57539487", "0.5737957", "0.5701...
0.73317015
0
Validation Functions Description : To validate the Address Line 1 of Correspondence Address in Customer Tab Coded by :Raja Created Data:05 Oct 2016 Last Modified Date:05 Oct 2016 Modified By:Raja Parameter:AddressLine1
public void validate_the_Address_Line_1_of_Correspondence_Address_in_Customer_Tab(String AddressLine1)throws Exception { Report.fnReportPageBreak("Correspondence Address", driver); VerifyElementPresent(Desktop_XPATH_Verify_Customer_Page_CorrespondenceAddress.replaceAll("M_Header", "Correspondence Address").replaceAll("M_Category", "Address Line 1").replaceAll("M_InnerText", AddressLine1), "Address Line 1 of Correspondence Address - "+AddressLine1, false); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void validate_the_Address_Line_1_of_Billing_Address_in_Customer_Tab(String AddressLine1)throws Exception {\n\t\tReport.fnReportPageBreak(\"Billing Address\", driver);\n\t\tSystem.out.println(AddressLine1);\n\t\tVerifyElementPresent(Desktop_XPATH_Verify_Customer_Page_BillingAddress.replaceAll(\"M_Header\", \...
[ "0.76585853", "0.7654049", "0.740368", "0.73610985", "0.7334959", "0.69374985", "0.6487551", "0.6414949", "0.6368884", "0.62371856", "0.62317806", "0.6231429", "0.62195706", "0.6162492", "0.61612785", "0.61566246", "0.612351", "0.61111206", "0.60741615", "0.6038106", "0.60269...
0.78528976
0
Validation Functions Description : To validate the Address Line 2 of Correspondence Address in Customer Tab Coded by :Rajan Created Data:21 Oct 2016 Last Modified Date: Modified By: Parameter:
public void validate_the_Address_Line_2_of_Correspondence_Address_in_Customer_Tab(String AddressLine2)throws Exception { VerifyElementPresent(Desktop_XPATH_Verify_Customer_Page_CorrespondenceAddress.replaceAll("M_Header", "Correspondence Address").replaceAll("M_Category", "Address Line 2").replaceAll("M_InnerText", AddressLine2), "Address Line 2 of Correspondence Address - "+AddressLine2, false); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void validate_the_Address_Line_2_of_Billing_Address_in_Customer_Tab(String AddressLine2)throws Exception {\n\t\tVerifyElementPresent(Desktop_XPATH_Verify_Customer_Page_CorrespondenceAddress.replaceAll(\"M_Header\", \"Billing Address\").replaceAll(\"M_Category\", \"Address Line 2\").replaceAll(\"M_InnerText\...
[ "0.7688279", "0.7595675", "0.7550558", "0.73389506", "0.7307285", "0.6581247", "0.6540677", "0.6405884", "0.6391163", "0.63361454", "0.62977064", "0.6249407", "0.61462164", "0.6084987", "0.6069155", "0.60674775", "0.6046833", "0.60307986", "0.5990946", "0.5981377", "0.5967077...
0.76617146
1
Validation Functions Description : To validate the Town/City of Correspondence Address in Customer Tab Coded by :Rajan Created Data:21 Oct 2016 Last Modified Date: Modified By: Parameter:
public void validate_the_Town_City_of_Correspondence_Address_in_Customer_Tab(String TownCity)throws Exception { VerifyElementPresent(Desktop_XPATH_Verify_Customer_Page_CorrespondenceAddress.replaceAll("M_Header", "Correspondence Address").replaceAll("M_Category", "Town/City").replaceAll("M_InnerText", TownCity), "Town/City of Correspondence Address - "+TownCity, false); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void validate_the_Town_City_of_Billing_Address_in_Customer_Tab(String TownCity)throws Exception {\n\t\tif(VerifyElementPresent(Desktop_XPATH_Verify_Customer_Page_CorrespondenceAddress.replaceAll(\"M_Header\", \"Billing Address\").replaceAll(\"M_Category\", \"Town/City\").replaceAll(\"M_InnerText\", TownCity...
[ "0.70732737", "0.6847529", "0.6467154", "0.63994783", "0.6377919", "0.6373702", "0.6362843", "0.6349245", "0.63432646", "0.62863284", "0.62831837", "0.6263508", "0.62421155", "0.62162167", "0.62088937", "0.6187014", "0.6180656", "0.6174545", "0.6144367", "0.6141071", "0.61188...
0.70610285
1
Validation Functions Description : To validate the Address Line 2 of Correspondence Address in Customer Tab Coded by :Rajan Created Data:21 Oct 2016 Last Modified Date: Modified By: Parameter:
public void validate_the_Country_of_Correspondence_Address_in_Customer_Tab(String Country)throws Exception { VerifyElementPresent(Desktop_XPATH_Verify_Customer_Page_CorrespondenceAddress.replaceAll("M_Header", "Correspondence Address").replaceAll("M_Category", "Country").replaceAll("M_InnerText", Country), "Country of Correspondence Address - "+Country, false); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void validate_the_Address_Line_2_of_Billing_Address_in_Customer_Tab(String AddressLine2)throws Exception {\n\t\tVerifyElementPresent(Desktop_XPATH_Verify_Customer_Page_CorrespondenceAddress.replaceAll(\"M_Header\", \"Billing Address\").replaceAll(\"M_Category\", \"Address Line 2\").replaceAll(\"M_InnerText\...
[ "0.76890624", "0.7662226", "0.7596344", "0.75512373", "0.7339816", "0.73082936", "0.6583049", "0.65418494", "0.6408043", "0.63922745", "0.63344413", "0.62998426", "0.6251626", "0.61483896", "0.60863423", "0.6068538", "0.6048174", "0.60305333", "0.59899616", "0.5981268", "0.59...
0.60709906
15
Validation Functions Description : To validate the Postcode of Correspondence Address in Customer Tab Coded by :Raja Created Data:05 Oct 2016 Last Modified Date:02 Dec 2016 Modified By:Rajan Parameter:Postcode
public void validate_the_Postcode_of_Correspondence_Address_in_Customer_Tab(String Postcode)throws Exception { VerifyElementPresent(Desktop_XPATH_Verify_Customer_Page_CorrespondenceAddress.replaceAll("M_Header", "Correspondence Address").replaceAll("M_Category", "Postcode").replaceAll("M_InnerText", Postcode), "Postcode of Correspondence Address - "+Postcode, false); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void validate_the_Postcode_of_Billing_Address_in_Customer_Tab(String Postcode)throws Exception {\n\t\tVerifyElementPresent(Desktop_XPATH_Verify_Customer_Page_BillingAddress.replaceAll(\"M_Header\", \"Billing Address\").replaceAll(\"M_Category\", \"Postcode\").replaceAll(\"M_InnerText\", Postcode), \"Postcod...
[ "0.76019514", "0.7474495", "0.65453726", "0.6300054", "0.62165284", "0.61722505", "0.6160468", "0.6121566", "0.6076514", "0.60607785", "0.60008705", "0.59894735", "0.59591407", "0.59560484", "0.5922312", "0.590946", "0.5904543", "0.5897539", "0.5896262", "0.5873896", "0.58607...
0.76480854
0
Validation Functions Description : To validate the Address Line 1 of Billing Address in Customer Tab Coded by :Raja Created Data:05 Oct 2016 Last Modified Date:02 Dec 2016 Modified By:Rajan Parameter:AddressLine1
public void validate_the_Address_Line_1_of_Billing_Address_in_Customer_Tab(String AddressLine1)throws Exception { Report.fnReportPageBreak("Billing Address", driver); System.out.println(AddressLine1); VerifyElementPresent(Desktop_XPATH_Verify_Customer_Page_BillingAddress.replaceAll("M_Header", "Billing Address").replaceAll("M_Category", "Address Line 1").replaceAll("M_InnerText", AddressLine1), "Address Line 1 of Billing Address - "+AddressLine1, false); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void validate_the_Address_Line_1_of_Installation_Address_in_Customer_Tab(String AddressLine1)throws Exception {\n\t\tReport.fnReportPageBreak(\"Instalation Address\", driver);\n\t\tVerifyElementPresent(Desktop_XPATH_Verify_Customer_Page_InstallationAddress.replaceAll(\"M_Header\", \"Installation Address\")....
[ "0.7468707", "0.7417955", "0.73893154", "0.7079923", "0.6945474", "0.69114065", "0.66016084", "0.64202625", "0.63357496", "0.63060653", "0.62619543", "0.6237074", "0.6211625", "0.6205131", "0.6190378", "0.6184966", "0.6158813", "0.61446655", "0.61356753", "0.61096287", "0.610...
0.7740487
0
Validation Functions Description : To validate the Address Line 2 of Billing Address in Customer Tab Coded by :Rajan Created Data:21 Oct 2016 Last Modified Date: Modified By: Parameter:
public void validate_the_Address_Line_2_of_Billing_Address_in_Customer_Tab(String AddressLine2)throws Exception { VerifyElementPresent(Desktop_XPATH_Verify_Customer_Page_CorrespondenceAddress.replaceAll("M_Header", "Billing Address").replaceAll("M_Category", "Address Line 2").replaceAll("M_InnerText", AddressLine2), "Address Line 2 of Billing Address - "+AddressLine2, false); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void validate_the_Address_Line_1_of_Billing_Address_in_Customer_Tab(String AddressLine1)throws Exception {\n\t\tReport.fnReportPageBreak(\"Billing Address\", driver);\n\t\tSystem.out.println(AddressLine1);\n\t\tVerifyElementPresent(Desktop_XPATH_Verify_Customer_Page_BillingAddress.replaceAll(\"M_Header\", \...
[ "0.7464341", "0.731365", "0.718706", "0.715571", "0.71127313", "0.6640326", "0.6549203", "0.65002716", "0.6491332", "0.6379296", "0.6322137", "0.63066906", "0.62973416", "0.6288055", "0.6234272", "0.6152935", "0.61276346", "0.6102648", "0.6075113", "0.6064243", "0.60352594", ...
0.7678693
0
Validation Functions Description : To validate the Town/City of Billing Address in Customer Tab Coded by :Rajan Created Data:21 Oct 2016 Last Modified Date: Modified By: Parameter:
public void validate_the_Town_City_of_Billing_Address_in_Customer_Tab(String TownCity)throws Exception { if(VerifyElementPresent(Desktop_XPATH_Verify_Customer_Page_CorrespondenceAddress.replaceAll("M_Header", "Billing Address").replaceAll("M_Category", "Town/City").replaceAll("M_InnerText", TownCity), "Town/City of Billing Address - "+TownCity, false)) { VerifyElementPresentAndClick(Desktop_XPATH_Verify_Customer_Page_CorrespondenceAddress.replaceAll("M_Header", "Billing Address").replaceAll("M_Category", "Town/City").replaceAll("M_InnerText", TownCity), "Town/City of Billing Address - "+TownCity); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void validate_the_Town_City_of_Installation_Address_in_Customer_Tab(String TownCity)throws Exception {\n\t\tVerifyElementPresentAndClick(Desktop_XPATH_Verify_Customer_Page_CorrespondenceAddress.replaceAll(\"M_Header\", \"Installation Address\").replaceAll(\"M_Category\", \"Town/City\").replaceAll(\"M_InnerT...
[ "0.67349726", "0.67109287", "0.66337943", "0.6616716", "0.6460389", "0.64523256", "0.64117247", "0.63889146", "0.63617057", "0.6351759", "0.6341175", "0.6322249", "0.6293465", "0.6275753", "0.6248613", "0.6245235", "0.62131107", "0.61928326", "0.61899674", "0.6186633", "0.617...
0.7156989
0
Validation Functions Description : To validate the Address Line 2 of Correspondence Address in Customer Tab Coded by :Rajan Created Data:21 Oct 2016 Last Modified Date: Modified By: Parameter:
public void validate_the_Country_of_Billing_Address_in_Customer_Tab(String Country)throws Exception { VerifyElementPresent(Desktop_XPATH_Verify_Customer_Page_CorrespondenceAddress.replaceAll("M_Header", "Billing Address").replaceAll("M_Category", "Country").replaceAll("M_InnerText", Country), "Country of Billing Address - "+Country, false); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void validate_the_Address_Line_2_of_Billing_Address_in_Customer_Tab(String AddressLine2)throws Exception {\n\t\tVerifyElementPresent(Desktop_XPATH_Verify_Customer_Page_CorrespondenceAddress.replaceAll(\"M_Header\", \"Billing Address\").replaceAll(\"M_Category\", \"Address Line 2\").replaceAll(\"M_InnerText\...
[ "0.76864827", "0.7659875", "0.7594216", "0.7548866", "0.7337662", "0.7305628", "0.6580359", "0.65395033", "0.64060223", "0.6390108", "0.63359535", "0.6296607", "0.6249532", "0.61460656", "0.60857475", "0.60686636", "0.60668683", "0.60459197", "0.60330266", "0.59919834", "0.59...
0.59070057
25
Validation Functions Description : To validate the Postcode of Billing Address in Customer Tab Coded by :Raja Created Data:05 Oct 2016 Last Modified Date:05 Oct 2016 Modified By:Raja Parameter:Postcode
public void validate_the_Postcode_of_Billing_Address_in_Customer_Tab(String Postcode)throws Exception { VerifyElementPresent(Desktop_XPATH_Verify_Customer_Page_BillingAddress.replaceAll("M_Header", "Billing Address").replaceAll("M_Category", "Postcode").replaceAll("M_InnerText", Postcode), "Postcode of Billing Address - "+Postcode, false); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void validate_the_Postcode_of_Installation_Address_in_Customer_Tab(String Postcode)throws Exception {\n\t\tVerifyElementPresent(Desktop_XPATH_Verify_Customer_Page_InstallationAddress.replaceAll(\"M_Header\", \"Installation Address\").replaceAll(\"M_Category\", \"Postcode\").replaceAll(\"M_InnerText\", Postc...
[ "0.7419711", "0.7314422", "0.64220816", "0.6267578", "0.6237442", "0.6214926", "0.6153505", "0.6116289", "0.6113819", "0.6097372", "0.60135514", "0.6003382", "0.59881675", "0.5981641", "0.5924763", "0.59230113", "0.58903706", "0.5874403", "0.5856168", "0.58456314", "0.5835744...
0.77905667
0
Validation Functions Description : To validate the Address Line 1 of Installation Address in Customer Tab Coded by :Raja Created Data:05 Oct 2016 Last Modified Date:05 Oct 2016 Modified By:Raja Parameter:AddressLine1
public void validate_the_Address_Line_1_of_Installation_Address_in_Customer_Tab(String AddressLine1)throws Exception { Report.fnReportPageBreak("Instalation Address", driver); VerifyElementPresent(Desktop_XPATH_Verify_Customer_Page_InstallationAddress.replaceAll("M_Header", "Installation Address").replaceAll("M_Category", "Address Line 1").replaceAll("M_InnerText", AddressLine1), "Address Line 1 of Installation Address - "+AddressLine1, false); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void validate_the_Address_Line_2_of_Installation_Address_in_Customer_Tab(String AddressLine2)throws Exception {\n\t\tVerifyElementPresent(Desktop_XPATH_Verify_Customer_Page_CorrespondenceAddress.replaceAll(\"M_Header\", \"Installation Address\").replaceAll(\"M_Category\", \"Address Line 2\").replaceAll(\"M_...
[ "0.7517788", "0.74458754", "0.74110067", "0.71712834", "0.70094085", "0.67597985", "0.6446647", "0.6385509", "0.6382363", "0.6376284", "0.63397133", "0.63295907", "0.62300444", "0.6194087", "0.6166352", "0.6130925", "0.6100362", "0.60959786", "0.6083061", "0.6009989", "0.5995...
0.7864731
0
Validation Functions Description : To validate the Address Line 2 of Installation Address in Customer Tab Coded by :Rajan Created Data:21 Oct 2016 Last Modified Date: Modified By: Parameter:
public void validate_the_Address_Line_2_of_Installation_Address_in_Customer_Tab(String AddressLine2)throws Exception { VerifyElementPresent(Desktop_XPATH_Verify_Customer_Page_CorrespondenceAddress.replaceAll("M_Header", "Installation Address").replaceAll("M_Category", "Address Line 2").replaceAll("M_InnerText", AddressLine2), "Address Line 2 of Installation Address - "+AddressLine2, false); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void validate_the_Address_Line_1_of_Installation_Address_in_Customer_Tab(String AddressLine1)throws Exception {\n\t\tReport.fnReportPageBreak(\"Instalation Address\", driver);\n\t\tVerifyElementPresent(Desktop_XPATH_Verify_Customer_Page_InstallationAddress.replaceAll(\"M_Header\", \"Installation Address\")....
[ "0.7629049", "0.7400743", "0.72215533", "0.7120314", "0.7077697", "0.6601421", "0.64237225", "0.6364352", "0.633471", "0.6304059", "0.6259744", "0.625617", "0.6175701", "0.6170904", "0.6167841", "0.616304", "0.6145704", "0.6122653", "0.60972875", "0.6036235", "0.60040396", ...
0.778315
0
Validation Functions Description : To validate the Town/City of Installation Address in Customer Tab Coded by :Rajan Created Data:21 Oct 2016 Last Modified Date: Modified By: Parameter:
public void validate_the_Town_City_of_Installation_Address_in_Customer_Tab(String TownCity)throws Exception { VerifyElementPresentAndClick(Desktop_XPATH_Verify_Customer_Page_CorrespondenceAddress.replaceAll("M_Header", "Installation Address").replaceAll("M_Category", "Town/City").replaceAll("M_InnerText", TownCity), "Town/City of Installation Address - "+TownCity); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void validate_the_Town_City_of_Billing_Address_in_Customer_Tab(String TownCity)throws Exception {\n\t\tif(VerifyElementPresent(Desktop_XPATH_Verify_Customer_Page_CorrespondenceAddress.replaceAll(\"M_Header\", \"Billing Address\").replaceAll(\"M_Category\", \"Town/City\").replaceAll(\"M_InnerText\", TownCity...
[ "0.69791865", "0.683683", "0.66465473", "0.6593583", "0.6558637", "0.65175176", "0.65091276", "0.6223212", "0.62062174", "0.6206127", "0.6204994", "0.61913806", "0.61522245", "0.61362493", "0.61012477", "0.60863006", "0.60624725", "0.60519665", "0.60519326", "0.6049491", "0.6...
0.7360238
0
Validation Functions Description : To validate the Address Line 2 of Installation Address in Customer Tab Coded by :Rajan Created Data:21 Oct 2016 Last Modified Date: Modified By: Parameter:
public void validate_the_Country_of_Installation_Address_in_Customer_Tab(String Country)throws Exception { VerifyElementPresent(Desktop_XPATH_Verify_Customer_Page_CorrespondenceAddress.replaceAll("M_Header", "Installation Address").replaceAll("M_Category", "Country").replaceAll("M_InnerText", Country), "Country of Installation Address - "+Country, false); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void validate_the_Address_Line_2_of_Installation_Address_in_Customer_Tab(String AddressLine2)throws Exception {\n\t\tVerifyElementPresent(Desktop_XPATH_Verify_Customer_Page_CorrespondenceAddress.replaceAll(\"M_Header\", \"Installation Address\").replaceAll(\"M_Category\", \"Address Line 2\").replaceAll(\"M_...
[ "0.7784341", "0.7629967", "0.7401981", "0.7222829", "0.712143", "0.7078755", "0.66027755", "0.6424623", "0.63649803", "0.6334439", "0.6260111", "0.6254823", "0.61752224", "0.61709315", "0.61684877", "0.6163761", "0.6145595", "0.6124119", "0.6096959", "0.60355276", "0.60054946...
0.630463
10
Validation Functions Description : To validate the Postcode of Installation Address in Customer Tab Coded by :Raja Created Data:05 Oct 2016 Last Modified Date:05 Oct 2016 Modified By:Raja Parameter:Postcode
public void validate_the_Postcode_of_Installation_Address_in_Customer_Tab(String Postcode)throws Exception { VerifyElementPresent(Desktop_XPATH_Verify_Customer_Page_InstallationAddress.replaceAll("M_Header", "Installation Address").replaceAll("M_Category", "Postcode").replaceAll("M_InnerText", Postcode), "Postcode of Installation Address - "+Postcode, false); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void validate_the_Postcode_of_Billing_Address_in_Customer_Tab(String Postcode)throws Exception {\n\t\tVerifyElementPresent(Desktop_XPATH_Verify_Customer_Page_BillingAddress.replaceAll(\"M_Header\", \"Billing Address\").replaceAll(\"M_Category\", \"Postcode\").replaceAll(\"M_InnerText\", Postcode), \"Postcod...
[ "0.73299146", "0.7195036", "0.6396715", "0.6371468", "0.62513834", "0.617723", "0.6167457", "0.61172134", "0.6086571", "0.6037837", "0.60330313", "0.6019253", "0.60112774", "0.5939636", "0.59395444", "0.5937177", "0.5934537", "0.5919451", "0.5910375", "0.5879219", "0.586022",...
0.78083813
0
Validation Functions Description : To validate the Telephone Home in Contact Details of Customer Tab Coded by :Raja Created Data:05 Oct 2016 Last Modified Date:05 Oct 2016 Modified By:Raja Parameter:TelephoneHome
public void validate_the_Telephone_Home_in_Contact_Details_of_Customer_Tab(String TelephoneHome)throws Exception { VerifyElementPresent(Desktop_XPATH_Verify_Customer_Page_TelephoneHome.replaceAll("M_Header", "Contact Details").replaceAll("M_Category", "Telephone - Home").replaceAll("M_InnerText", TelephoneHome), "Telephone - Home - "+TelephoneHome, false); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean Validate() {\n String[] testArr = {titleTxf.getText(), fNameTxf.getText(), sNameTxf.getText(),\n initialTxf.getText(), hNumTxf.getText(), cNumTxf.getText(), emailTxf.getText(), idNumTxf.getText(),\n (String) maritalCbx.getSelectedItem(), \n resTxf1.getText()...
[ "0.70979804", "0.6769843", "0.6723519", "0.66703993", "0.6574861", "0.65062296", "0.64814913", "0.6401523", "0.6366657", "0.6365757", "0.6243885", "0.6231306", "0.617249", "0.6152366", "0.61344033", "0.611224", "0.60867906", "0.6069157", "0.60620785", "0.60586077", "0.6057202...
0.70770067
1
Validation Functions Description : To validate the Telephone Work in Contact Details of Customer Tab Coded by :Raja Created Data:05 Oct 2016 Last Modified Date:05 Oct 2016 Modified By:Raja Parameter:TelephoneWork
public void validate_the_Telephone_Work_in_Contact_Details_of_Customer_Tab(String TelephoneWork)throws Exception { VerifyElementPresent(Desktop_XPATH_Verify_Customer_Page_TelephoneWork.replaceAll("M_Header", "Contact Details").replaceAll("M_Category", "Telephone - Work").replaceAll("M_InnerText", TelephoneWork), "Telephone - Work - "+TelephoneWork, false); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean Validate() {\n String[] testArr = {titleTxf.getText(), fNameTxf.getText(), sNameTxf.getText(),\n initialTxf.getText(), hNumTxf.getText(), cNumTxf.getText(), emailTxf.getText(), idNumTxf.getText(),\n (String) maritalCbx.getSelectedItem(), \n resTxf1.getText()...
[ "0.7048949", "0.680163", "0.6644192", "0.6453485", "0.6449159", "0.6364069", "0.62718356", "0.62493354", "0.6236564", "0.62315583", "0.62223667", "0.62080294", "0.61992824", "0.6160854", "0.6149589", "0.6146503", "0.6090861", "0.60397846", "0.6024921", "0.60065293", "0.600544...
0.732186
0
Validation Functions Description : To validate the Telephone Mobile in Contact Details of Customer Tab Coded by :Raja Created Data:05 Oct 2016 Last Modified Date:05 Oct 2016 Modified By:Raja Parameter:TelephoneMobile
public void validate_the_Telephone_Mobile_in_Contact_Details_of_Customer_Tab(String TelephoneMobile)throws Exception { Report.fnReportPageBreak("Telephone Details", driver); VerifyElementPresent(Desktop_XPATH_Verify_Customer_Page_TelephoneMobile.replaceAll("M_Header", "Contact Details").replaceAll("M_Category", "Telephone - Mobile").replaceAll("M_InnerText", TelephoneMobile), "Telephone - Mobile - "+TelephoneMobile, false); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void validateMobileNumber(){\n /*\n Checking For Mobile number\n The Accepted Types Are +00 000000000 ; +00 0000000000 ;+000 0000000000; 0 0000000000 ; 00 0000000000\n */\n Boolean mobileNumber = Pattern.matches(\"^[0]?([+][0-9]{2,3})?[-][6-9]+[0-9]{9}\",getMobileNu...
[ "0.7159005", "0.70841587", "0.698063", "0.6698861", "0.66400003", "0.6624252", "0.65249264", "0.6503727", "0.6447244", "0.6412222", "0.6398612", "0.6373448", "0.63560265", "0.6328559", "0.6235877", "0.6194484", "0.618182", "0.61580753", "0.61489123", "0.6136938", "0.61349183"...
0.74118483
0
Validation Functions Description : To validate the Marketing preferences in Contact Details of Customer Tab for Phone Coded by :Rajan Created Data:23 Oct 2016 Last Modified Date: Modified By: Parameter:
public void validate_the_Marketing_preferences_in_Contact_Details_of_Customer_Tab(String type,String i)throws Exception { boolean checked= false; boolean status= false; try { checked = VerifyElementPresentAndGetCheckBoxStatus(Desktop_XPATH_Verify_Customer_Page_MarketingPreferences.replaceAll("M_Header", "Contact Details").replaceAll("M_Category", "Marketing preferences").replaceAll("M_InnerText", type), "Marketing preferences on "+type); if(i.equalsIgnoreCase("1")) status=true; else status=false; } catch (NullPointerException e) { // TODO Auto-generated catch block e.printStackTrace(); } finally { if(checked==status) Report.fnReportPass("Marketing preferences - "+type+" : Checked status = "+status+" Display Status"+checked, driver); else Report.fnReportFail("Marketing preferences - "+type+" : Checked status = "+status+" Display Status"+checked, driver); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean Validate() {\n String[] testArr = {titleTxf.getText(), fNameTxf.getText(), sNameTxf.getText(),\n initialTxf.getText(), hNumTxf.getText(), cNumTxf.getText(), emailTxf.getText(), idNumTxf.getText(),\n (String) maritalCbx.getSelectedItem(), \n resTxf1.getText()...
[ "0.66528875", "0.65737826", "0.6491541", "0.63862056", "0.6292239", "0.62325186", "0.6221931", "0.6170555", "0.61422276", "0.6096212", "0.60486144", "0.59812194", "0.59754926", "0.597219", "0.59658045", "0.59584004", "0.5942546", "0.5935069", "0.5926927", "0.5923938", "0.5904...
0.59226567
20
Validation Functions Description : To validate the Preferred Contact Method in Contact Details of Customer Tab for Email Coded by :Rajan Created Data:23 Oct 2016 Last Modified Date: Modified By: Parameter:
public void validate_the_Preferred_Contact_Method_in_Contact_Details_of_Customer_Tab_Email(boolean status)throws Exception { boolean checked=VerifyElementPresentAndGetCheckBoxStatus(Desktop_XPATH_Verify_Customer_Page_MarketingPreferences.replaceAll("M_Header", "Contact Details").replaceAll("M_Category", "Preferred Contact Method").replaceAll("M_InnerText", "Email"), "Preferred Contact Method on Email "); if(checked==status) Report.fnReportPass("Preferred Contact Method - Email : Checked status = "+status+"Display Status"+checked, driver); else Report.fnReportFail("Preferred Contact Method - Email : Checked status = "+status+"Display Status"+checked, driver); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void validate_the_Preferred_Contact_Method_in_Contact_Details_of_Customer_Tab_Mail(boolean status)throws Exception {\n\t\t\t\n\t\t\tboolean checked=VerifyElementPresentAndGetCheckBoxStatus(Desktop_XPATH_Verify_Customer_Page_MarketingPreferences.replaceAll(\"M_Header\", \"Contact Details\").replaceAll(\"M_Ca...
[ "0.6606611", "0.6361711", "0.6284672", "0.6172129", "0.6052491", "0.6043319", "0.5987236", "0.5976068", "0.59483796", "0.59402704", "0.58826256", "0.5823812", "0.57325524", "0.5728297", "0.57203543", "0.56830764", "0.566869", "0.56646454", "0.5651075", "0.56432354", "0.563950...
0.67735
0
Validation Functions Description : To validate the Preferred Contact Method in Contact Details of Customer Tab for Mail Coded by :Rajan Created Data:23 Oct 2016 Last Modified Date: Modified By: Parameter:
public void validate_the_Preferred_Contact_Method_in_Contact_Details_of_Customer_Tab_Mail(boolean status)throws Exception { boolean checked=VerifyElementPresentAndGetCheckBoxStatus(Desktop_XPATH_Verify_Customer_Page_MarketingPreferences.replaceAll("M_Header", "Contact Details").replaceAll("M_Category", "Preferred Contact Method").replaceAll("M_InnerText", "Mail"), "Preferred Contact Method on Mail "); if(checked==status) Report.fnReportPass("Preferred Contact Method - Mail : Checked status = "+status+"Display Status"+checked, driver); else Report.fnReportFail("Preferred Contact Method - Mail : Checked status = "+status+"Display Status"+checked, driver); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void validate_the_Preferred_Contact_Method_in_Contact_Details_of_Customer_Tab_Email(boolean status)throws Exception {\n\t\t\t\n\t\t\tboolean checked=VerifyElementPresentAndGetCheckBoxStatus(Desktop_XPATH_Verify_Customer_Page_MarketingPreferences.replaceAll(\"M_Header\", \"Contact Details\").replaceAll(\"M_C...
[ "0.6650722", "0.6217014", "0.6086967", "0.60280496", "0.5947238", "0.5944201", "0.59208447", "0.58571684", "0.58157635", "0.5751028", "0.573602", "0.57191837", "0.5718714", "0.5707463", "0.56975853", "0.5637773", "0.56296045", "0.56264234", "0.56083316", "0.55629736", "0.5551...
0.6731941
0
Validation Functions Description : To validate the Preferred Contact Method in Contact Details of Customer Tab for SMS Coded by :Padma Created Data:25 Jan 2017 Last Modified Date: Modified By: Parameter:
public void validate_the_Preferred_Contact_Method_in_Contact_Details_of_Customer_Tab_SMS(boolean status)throws Exception { boolean checked=VerifyElementPresentAndGetCheckBoxStatus(Desktop_XPATH_Verify_Customer_Page_MarketingPreferences.replaceAll("M_Header", "Contact Details").replaceAll("M_Category", "Preferred Contact Method").replaceAll("M_InnerText", "SMSPreference"), "Preferred Contact Method on SMS "); if(checked==status) Report.fnReportPass("Preferred Contact Method - SMS : Checked status = "+status+"Display Status"+checked, driver); else Report.fnReportFail("Preferred Contact Method - SMS : Checked status = "+status+"Display Status"+checked, driver); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void validate_the_Preferred_Contact_Method_in_Contact_Details_of_Customer_Tab_Mail(boolean status)throws Exception {\n\t\t\t\n\t\t\tboolean checked=VerifyElementPresentAndGetCheckBoxStatus(Desktop_XPATH_Verify_Customer_Page_MarketingPreferences.replaceAll(\"M_Header\", \"Contact Details\").replaceAll(\"M_Ca...
[ "0.6454857", "0.6375749", "0.61506987", "0.6077307", "0.60728467", "0.6037204", "0.59424543", "0.5910584", "0.5909753", "0.5883374", "0.5856978", "0.58549905", "0.5854257", "0.58511823", "0.5828195", "0.5809561", "0.5807153", "0.57624656", "0.575208", "0.5750531", "0.5729857"...
0.6630379
0
Validation Functions Description : To validate the Password of Security in Customer Tab Coded by :Raja Created Data:05 Oct 2016 Last Modified Date:05 Oct 2016 Modified By:Raja Parameter:Password
public void validate_the_Password_of_Security_in_Customer_Tab(String Password)throws Exception { Report.fnReportPageBreak("Security", driver); if(Password==null) Password="N/A"; VerifyElementPresent(Desktop_XPATH_Verify_Customer_Page_Security.replaceAll("M_Header", "Security").replaceAll("M_Category", "Password").replaceAll("M_InnerText", Password), "Password - "+Password, false); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void validatePassword(){\n //Only Checking For Word Type Password With Minimum Of 8 Digits, At Least One Capital Letter,At Least One Number,At Least One Special Character\n Boolean password = Pattern.matches(\"^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9](?=.*[!@#$%^&*()])).{8,}$\",getPassword());\n ...
[ "0.76522934", "0.70494425", "0.700977", "0.693075", "0.67477506", "0.67207867", "0.6691139", "0.6672961", "0.66421664", "0.6637778", "0.6602648", "0.6598916", "0.65863895", "0.6575002", "0.656037", "0.6543626", "0.65209717", "0.64643353", "0.64611757", "0.6457352", "0.6455313...
0.7310514
1