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
Create a new CurrencyDateCalculatorBuilder specialised for 2 currencies, including WorkingWeek, calendars registered and CurrencyCalculatorConfig. NOTE that USD currency holiday must also be registered.
CurrencyDateCalculatorBuilder<E> getDefaultCurrencyDateCalculatorBuilder(String ccy1, String ccy2, SpotLag spotLag);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface KitCalculatorsFactory<E> {\r\n\r\n /**\r\n * Create a new CurrencyDateCalculatorBuilder specialised for 2 currencies, including WorkingWeek, calendars registered and CurrencyCalculatorConfig.\r\n *\r\n * NOTE that USD currency holiday must also be registered.\r\n *\r\n * @pa...
[ "0.66215503", "0.6306437", "0.54263496", "0.52341497", "0.52158487", "0.5148378", "0.4983908", "0.4852283", "0.48080373", "0.47699088", "0.4709995", "0.46646762", "0.46468952", "0.46322662", "0.4601549", "0.45872957", "0.4551069", "0.45181265", "0.451291", "0.450628", "0.4458...
0.71275604
0
Create a new IMMUTABLE CurrencyDateCalculator specialised for 2 currencies, including WorkingWeek, calendars registered and CurrencyCalculatorConfig. NOTE that USD currency holiday must also be registered.
CurrencyDateCalculator<E> getDefaultCurrencyDateCalculator(String ccy1, String ccy2, SpotLag spotLag);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface KitCalculatorsFactory<E> {\r\n\r\n /**\r\n * Create a new CurrencyDateCalculatorBuilder specialised for 2 currencies, including WorkingWeek, calendars registered and CurrencyCalculatorConfig.\r\n *\r\n * NOTE that USD currency holiday must also be registered.\r\n *\r\n * @pa...
[ "0.672102", "0.6317408", "0.568268", "0.5318876", "0.5317674", "0.517508", "0.5010468", "0.50073975", "0.49913332", "0.4968623", "0.4938767", "0.4901768", "0.48932785", "0.48759657", "0.48747492", "0.48391518", "0.48261648", "0.48126253", "0.47945496", "0.47770095", "0.476969...
0.66026014
1
Use this method register a specific currency config, if not provided then the DefaultCurrencyCalculatorConfig will be given.
void setCurrencyCalculatorConfig(CurrencyCalculatorConfig config);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setAddTransactionCurrency(String currency);", "void setCurrency(Currency currency);", "public void registerCurrency(String identifier, BigDecimal exchangeRate) {\n if (exchangeRates.containsKey(identifier))\n throw new IllegalArgumentException(\"Currency identifier already used.\");\n\n ...
[ "0.5656689", "0.5570478", "0.53955823", "0.5390136", "0.53853434", "0.5294941", "0.5294941", "0.521481", "0.5190386", "0.51894975", "0.51640725", "0.5160849", "0.5148636", "0.5142169", "0.50974834", "0.50480586", "0.5004287", "0.50002784", "0.49516776", "0.49513453", "0.49175...
0.80986917
0
Create a new DateCalculator for a given name and type of handling.
DateCalculator<E> getDateCalculator(String name, String holidayHandlerType);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface KitCalculatorsFactory<E> {\r\n\r\n /**\r\n * Create a new CurrencyDateCalculatorBuilder specialised for 2 currencies, including WorkingWeek, calendars registered and CurrencyCalculatorConfig.\r\n *\r\n * NOTE that USD currency holiday must also be registered.\r\n *\r\n * @pa...
[ "0.5976531", "0.5564023", "0.55446106", "0.54173374", "0.54005826", "0.53603005", "0.53126913", "0.5302859", "0.5251208", "0.5127945", "0.5112598", "0.5099403", "0.50425434", "0.5038562", "0.5019697", "0.49465993", "0.4897155", "0.48800635", "0.48514685", "0.4840474", "0.4755...
0.74655604
0
Use this method to register a holidays calendar.
KitCalculatorsFactory<E> registerHolidays(String calendarName, HolidayCalendar<E> holidaysCalendar);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void populateHolidays() {\n holidays.put(beginDate(), new Holiday(\"Christmas\", beginDate(), calendar, \"Matthew 1:18-25, Luke 2:1-20\"));\n Calendar holyInnocents = new GregorianCalendar(calendar.getYear() - 1, Calendar.DECEMBER, 28);\n holidays.put(holyInnocents, new Holiday(\"Ho...
[ "0.6993872", "0.66113144", "0.63291", "0.6307134", "0.6249726", "0.61691153", "0.6160387", "0.6150895", "0.5968279", "0.58965844", "0.5839623", "0.57706434", "0.56357026", "0.560518", "0.5585776", "0.5550627", "0.55256647", "0.54530823", "0.53104573", "0.52937293", "0.5279363...
0.7840693
0
Unregister a given holiday calendar
KitCalculatorsFactory<E> unregisterHolidayCalendar(String calendarName);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "KitCalculatorsFactory<E> unregisterAllHolidayCalendars();", "@Override\n\tpublic void deleteHoliday(Holiday holiday) {\n\n\t}", "void delPreferedCalendar(String calendarId);", "KitCalculatorsFactory<E> registerHolidays(String calendarName, HolidayCalendar<E> holidaysCalendar);", "public void remove(DiaryCa...
[ "0.77253705", "0.68713987", "0.6287621", "0.59661406", "0.59639895", "0.5955493", "0.59365743", "0.58740497", "0.58695924", "0.57958597", "0.57233006", "0.57106113", "0.57070386", "0.5667966", "0.5612377", "0.5584838", "0.55652773", "0.550108", "0.5451068", "0.54390156", "0.5...
0.82058525
0
unregister all holiday calendars;
KitCalculatorsFactory<E> unregisterAllHolidayCalendars();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "KitCalculatorsFactory<E> unregisterHolidayCalendar(String calendarName);", "@Override\n\tpublic List<Holiday> viewAllHolidays() {\n\t\treturn null;\n\t}", "void unsetFoundingDate();", "void unregisterAll();", "void unsetBusinesshours();", "@Override\n\tpublic void removeAll() throws SystemException {\n\t...
[ "0.76278615", "0.6343745", "0.63304156", "0.61939824", "0.61922765", "0.6192196", "0.61302567", "0.59730643", "0.5933539", "0.5928789", "0.59286124", "0.5907396", "0.5845922", "0.5842207", "0.5829424", "0.58189785", "0.57560116", "0.57446307", "0.57310176", "0.565293", "0.564...
0.82597035
0
ObjectLab, world leaders in the design and development of bespoke applications for the securities financing markets. Create a new PeriodCountCalculator.
PeriodCountCalculator<E> getPeriodCountCalculator();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getHowManyInPeriod();", "int getPeriod();", "protected int getNumberOfPeriods()\n {\n return 2;\n }", "double getPeriod();", "public void setPeriod(int periodInYears) {\nnumberOfPayments = periodInYears * MONTHS;\n}", "@Override\n\tprotected int getActiveCount(long units) {\n\t\tr...
[ "0.660928", "0.6233925", "0.6129132", "0.6061412", "0.6052044", "0.59995574", "0.56998634", "0.563521", "0.5626274", "0.5599916", "0.55917454", "0.5530422", "0.55300754", "0.55205745", "0.55104285", "0.54954046", "0.5437178", "0.5432747", "0.5415121", "0.5415", "0.5388075", ...
0.7746971
0
Create a new IMMDateCalculator.
IMMDateCalculator<E> getIMMDateCalculator();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Calcul createCalcul();", "public Calculator() {\r\n\t\tsuper();\r\n\t}", "public Calculator()\n {\n \n }", "public Calculator() {\r\n\t\tthis.operator = new Addition();\r\n\t}", "private Calculator() {\n }", "public Calculator() {\n initComponents();\n \n }", "public Cal...
[ "0.61825323", "0.60702163", "0.58831924", "0.57221186", "0.5684307", "0.56288064", "0.54221356", "0.5393431", "0.53483623", "0.52562374", "0.51795244", "0.51365733", "0.5134162", "0.5124684", "0.5118163", "0.50849736", "0.50766796", "0.5074362", "0.5071921", "0.505987", "0.50...
0.7360903
0
Create a new holiday handler of given type
HolidayHandler<E> getHolidayHandler(String holidayHandlerType);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "DateCalculator<E> getDateCalculator(String name, String holidayHandlerType);", "public Holidays (){\n name= \"Exotic Beach Holiday of a Lifetime\";\n cost = 5000;\n location = \"Fesdu Island, Maldives\";\n type = \"beach\";\n }", "public static IProtocolHandle...
[ "0.6496213", "0.58100975", "0.57295346", "0.56771326", "0.5549455", "0.55054766", "0.54147106", "0.539976", "0.53863597", "0.5257558", "0.521602", "0.511642", "0.51052415", "0.5063001", "0.5056639", "0.50101423", "0.49395472", "0.49054033", "0.4887658", "0.4884352", "0.48706"...
0.78873014
0
The presenter instance to test.
@Before public void setup() { presenter = new MapEditor(view, valueChangeEvent); assertEquals(view.asWidget(), presenter.asWidget()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final P getPresenter() {\n return presenter;\n }", "@Test\n public void createPresenter_setsThePresenterToView() {\n historyPresenter = new HistoryPresenter(historyView, remoteDataSource,\n sharedPreferenceService);\n\n // Then the presenter is set to the view.\n ...
[ "0.7959354", "0.73398566", "0.7213276", "0.69722176", "0.69706696", "0.6953242", "0.68344307", "0.67903537", "0.6644641", "0.6640357", "0.6614062", "0.6563872", "0.6553205", "0.6535345", "0.653164", "0.64887005", "0.64638674", "0.6431495", "0.64133316", "0.63614726", "0.63593...
0.5785487
91
This will get the test data from testng.xml file where parameters are defined
@Test @Parameters({"url","username","password"}) public void parameterAnnoTest(String url ,String username, String password) throws Exception { //hit url driver.get(url); //Enter email & password driver.findElement(By.id("user-name")).sendKeys(username); driver.findElement(By.id("password")).sendKeys(password); Thread.sleep(2000); //Click on Login button driver.findElement(By.xpath("//input[@value='LOGIN']")).click(); Thread.sleep(2000); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void getConfigParameters(String[] parameters, Map<String, String> params,\n String testName) {\n for (int i = 0; i < parameters.length; i++) {\n params.put(parameters[i], null);\n }\n Log.v(TAG, \"[\" + testName + \"] \" + \"params.size() = \" + params.size());\n ...
[ "0.6704337", "0.6143898", "0.5946539", "0.59396344", "0.59207517", "0.58997566", "0.58803445", "0.58758694", "0.58599734", "0.58495414", "0.58431137", "0.58424205", "0.57205224", "0.56972146", "0.56911623", "0.5664752", "0.5661354", "0.56232715", "0.56049865", "0.5573212", "0...
0.0
-1
Gets the input stream from a response entity. If the entity is gzipped then this will get a stream over the uncompressed data.
public static InputStream getUngzippedContent(HttpEntity entity) throws IOException { InputStream responseStream = entity.getContent(); if (responseStream == null) { return responseStream; } Header header = entity.getContentEncoding(); if (header == null) { return responseStream; } String contentEncoding = header.getValue(); if (contentEncoding == null) { return responseStream; } if (contentEncoding.contains("gzip")) { if (DEBUG) Log.d(TAG, "getUngzippedContent"); responseStream = new GZIPInputStream(responseStream); } return responseStream; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static InputStream getDecompressingInputStream(final HttpResponse<InputStream> resp) throws IOException {\n final String encoding = resp.headers().firstValue(\"Content-Encoding\").orElse(\"identity\").toLowerCase(Locale.ROOT).trim();\n log.debug(\"HTTP server uses \" + encoding + \" content encoding.\...
[ "0.703082", "0.6991285", "0.68234766", "0.68051314", "0.67149657", "0.65271217", "0.63320893", "0.63320893", "0.6326232", "0.6326232", "0.62833196", "0.62304306", "0.62304306", "0.6207258", "0.6207258", "0.6207258", "0.6179405", "0.60259897", "0.60025996", "0.5983474", "0.596...
0.73949164
0
Shamelessly cribbed from AndroidHttpClient
public static final DefaultHttpClient createHttpClient(int retryCount, int timeout) { HttpParams params = new BasicHttpParams(); HttpProtocolParams.setVersion(params, HttpVersion.HTTP_1_1); HttpProtocolParams.setContentCharset(params, HTTP.UTF_8); // HttpProtocolParams.setUseExpectContinue(params, true); // Turn off stale checking. Our connections break all the time anyway, // and it's not worth it to pay the penalty of checking every time. HttpConnectionParams.setStaleCheckingEnabled(params, false); // Default connection and socket timeout of 30 seconds. Tweak to taste. HttpConnectionParams.setConnectionTimeout(params, timeout); HttpConnectionParams.setSoTimeout(params, timeout); HttpConnectionParams.setSocketBufferSize(params, 8192); HttpClientParams.setRedirecting(params, true); ConnManagerParams.setTimeout(params, timeout); ConnManagerParams.setMaxConnectionsPerRoute(params, new ConnPerRouteBean(50)); ConnManagerParams.setMaxTotalConnections(params, 200); // Sets up the http part of the service. final SchemeRegistry supportedSchemes = new SchemeRegistry(); // Register the "http" protocol scheme, it is required // by the default operator to look up socket factories. final SocketFactory sf = PlainSocketFactory.getSocketFactory(); supportedSchemes.register(new Scheme("http", sf, 80)); supportedSchemes.register(new Scheme("https", SSLSocketFactory .getSocketFactory(), 443)); final ThreadSafeClientConnManager ccm = new ThreadSafeClientConnManager( params, supportedSchemes); DefaultHttpClient httpClient = new DefaultHttpClient(ccm, params); httpClient .setHttpRequestRetryHandler(new DefaultHttpRequestRetryHandler( retryCount, true)); // Add gzip header to requests using an interceptor // httpClient.addRequestInterceptor(new GzipHttpRequestInterceptor()); // Add gzip compression to responses using an interceptor // httpClient.addResponseInterceptor(new GzipHttpResponseInterceptor()); return httpClient; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String makeHttpRequest(String url, String method,\r\n\t List<NameValuePair> params) {\r\n\t \t\r\n\t\t\r\n\t \t\t\t\r\n\t \t\t\t\r\n\t // Making HTTP request\r\n\t try {\r\n\t \r\n\t // check for request method\r\n\t if(method == \"POST\"){\r\n\t ...
[ "0.59878904", "0.59608257", "0.5932495", "0.59299743", "0.588291", "0.58521914", "0.58119583", "0.5801961", "0.57938635", "0.576852", "0.57307935", "0.57273215", "0.5705743", "0.5704948", "0.5703925", "0.568585", "0.5665814", "0.56324404", "0.5629055", "0.5627844", "0.5604983...
0.0
-1
Shamelessly cribbed from AndroidHttpClient
public static final DefaultHttpClient createHttpClient(int retryCount) { HttpParams params = new BasicHttpParams(); HttpProtocolParams.setVersion(params, HttpVersion.HTTP_1_1); HttpProtocolParams.setContentCharset(params, HTTP.UTF_8); // HttpProtocolParams.setUseExpectContinue(params, true); // Turn off stale checking. Our connections break all the time anyway, // and it's not worth it to pay the penalty of checking every time. HttpConnectionParams.setStaleCheckingEnabled(params, false); // Default connection and socket timeout of 30 seconds. Tweak to taste. HttpConnectionParams.setConnectionTimeout(params, 15 * 1000); HttpConnectionParams.setSoTimeout(params, 20 * 1000); HttpConnectionParams.setSocketBufferSize(params, 8192); HttpClientParams.setRedirecting(params, true); ConnManagerParams.setTimeout(params, 5 * 1000); ConnManagerParams.setMaxConnectionsPerRoute(params, new ConnPerRouteBean(50)); ConnManagerParams.setMaxTotalConnections(params, 200); // Sets up the http part of the service. final SchemeRegistry supportedSchemes = new SchemeRegistry(); // Register the "http" protocol scheme, it is required // by the default operator to look up socket factories. final SocketFactory sf = PlainSocketFactory.getSocketFactory(); supportedSchemes.register(new Scheme("http", sf, 80)); supportedSchemes.register(new Scheme("https", SSLSocketFactory .getSocketFactory(), 443)); final ThreadSafeClientConnManager ccm = new ThreadSafeClientConnManager( params, supportedSchemes); DefaultHttpClient httpClient = new DefaultHttpClient(ccm, params); httpClient .setHttpRequestRetryHandler(new DefaultHttpRequestRetryHandler( retryCount, true)); // Add gzip header to requests using an interceptor httpClient.addRequestInterceptor(new GzipHttpRequestInterceptor()); // Add gzip compression to responses using an interceptor httpClient.addResponseInterceptor(new GzipHttpResponseInterceptor()); return httpClient; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String makeHttpRequest(String url, String method,\r\n\t List<NameValuePair> params) {\r\n\t \t\r\n\t\t\r\n\t \t\t\t\r\n\t \t\t\t\r\n\t // Making HTTP request\r\n\t try {\r\n\t \r\n\t // check for request method\r\n\t if(method == \"POST\"){\r\n\t ...
[ "0.5989809", "0.5961187", "0.5933219", "0.5929682", "0.5881406", "0.58545524", "0.58109903", "0.5801212", "0.57957363", "0.5767749", "0.5733473", "0.57270575", "0.5707779", "0.5707109", "0.5704166", "0.568435", "0.5666374", "0.56344086", "0.5629792", "0.56285846", "0.5604191"...
0.0
-1
Create a threadsafe client. This client does not do redirecting, to allow us to capture correct "error" codes.
public static final DefaultHttpClient createHttpClient() { return createHttpClient(3); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static HttpClient createClient() {\n return HttpClients.createMinimal();\n }", "private CloseableHttpAsyncClient createHttpClient() {\n RequestConfig.Builder requestConfigBuilder = RequestConfig.custom()\n .setConnectTimeout(Timeout.ofMilliseconds(DEFAULT_CONNECT_TIMEOUT_MILLIS))\n ...
[ "0.71013623", "0.6623395", "0.6525618", "0.6511192", "0.6384099", "0.63087374", "0.6304476", "0.6259121", "0.62478507", "0.6219206", "0.6159653", "0.60996884", "0.6063432", "0.5996722", "0.59741306", "0.59211504", "0.5905486", "0.58984965", "0.5898054", "0.58961767", "0.58844...
0.5957229
15
Create a threadsafe client. This client does not do redirecting, to allow us to capture correct "error" codes. proxyUri ???????????? port ????????
public static final DefaultHttpClient createHttpClient(String proxyUri, int port) { // Shamelessly cribbed from AndroidHttpClient HttpParams params = new BasicHttpParams(); HttpHost host = new HttpHost(proxyUri, port); params.setParameter(ConnRouteParams.DEFAULT_PROXY, host); HttpProtocolParams.setVersion(params, HttpVersion.HTTP_1_1); HttpProtocolParams.setContentCharset(params, HTTP.UTF_8); // HttpProtocolParams.setUseExpectContinue(params, true); // Turn off stale checking. Our connections break all the time anyway, // and it's not worth it to pay the penalty of checking every time. HttpConnectionParams.setStaleCheckingEnabled(params, false); // Default connection and socket timeout of 30 seconds. Tweak to taste. HttpConnectionParams.setConnectionTimeout(params, 10 * 1000); HttpConnectionParams.setSoTimeout(params, 20 * 1000); HttpConnectionParams.setSocketBufferSize(params, 8192); HttpClientParams.setRedirecting(params, true); ConnManagerParams.setTimeout(params, 5 * 1000); ConnManagerParams.setMaxConnectionsPerRoute(params, new ConnPerRouteBean(50)); ConnManagerParams.setMaxTotalConnections(params, 200); // Sets up the http part of the service. final SchemeRegistry supportedSchemes = new SchemeRegistry(); // Register the "http" protocol scheme, it is required // by the default operator to look up socket factories. final SocketFactory sf = PlainSocketFactory.getSocketFactory(); supportedSchemes.register(new Scheme("http", sf, 80)); supportedSchemes.register(new Scheme("https", SSLSocketFactory .getSocketFactory(), 443)); final ThreadSafeClientConnManager ccm = new ThreadSafeClientConnManager( params, supportedSchemes); DefaultHttpClient httpClient = new DefaultHttpClient(ccm, params); httpClient .setHttpRequestRetryHandler(new DefaultHttpRequestRetryHandler( 3, true)); // Add gzip header to requests using an interceptor httpClient.addRequestInterceptor(new GzipHttpRequestInterceptor()); // Add gzip compression to responses using an interceptor httpClient.addResponseInterceptor(new GzipHttpResponseInterceptor()); return httpClient; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private OkHttpClient Create() {\n final OkHttpClient.Builder baseClient = new OkHttpClient().newBuilder()\n .connectTimeout(CONNECTION_TIMEOUT, TimeUnit.SECONDS)\n .writeTimeout(WRITE_TIMEOUT, TimeUnit.SECONDS)\n .readTimeout(READ_TIMEOUT, TimeUnit.SECONDS);\n\n ...
[ "0.70228714", "0.65256125", "0.62436754", "0.62427086", "0.61749554", "0.61610156", "0.59256554", "0.5825014", "0.5819886", "0.5801569", "0.57992375", "0.5785281", "0.57806623", "0.5775967", "0.576406", "0.5760731", "0.57168263", "0.57145387", "0.5710018", "0.56722003", "0.56...
0.63444865
2
Spawns a new bunny
public static void spawnBunny(EntityBunny bunny){ BUNNIES.add(bunny); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void spawnNew() {\n\t\tif (tier> 1) {\n\t\t\ttier--;\n\t\t\thealth = tier;\n\t\t\tdamage = tier;\n\t\t\tspeed = 5;\n\t\t\timg = getImage(updateImage(tier)); // converted getImage to protected b/c it wasn't accessible by Balloon class (child class)\n\t\t}\n\t\telse {\n\t\t\tisAlive = false;\n\t\t\tdeletePath...
[ "0.67972565", "0.67185676", "0.655506", "0.6358791", "0.626158", "0.6248214", "0.6161559", "0.612623", "0.6110084", "0.60714906", "0.60284215", "0.6023666", "0.6003969", "0.5927336", "0.59164023", "0.5910532", "0.59091145", "0.59024453", "0.58935046", "0.5888961", "0.58807254...
0.79955304
0
Have a random chance to become "scared"
public void doAi(){ if(MathHelper.getRandom(0, Game.FRAMERATE * 5) == 5){ setScared(true); } //Update rectangle setRectangle(getX(), getY(), getTexture().getWidth(), getTexture().getHeight()); rect = new Rectangle(getDestinationX(), getDestinationY(), 10, 10); if(rect.intersects(getRectangle())){ if(StateManager.getState() == StateManager.STATE_BOSSTWO){ setDestinationX(StateGame.player.getX()); setDestinationY(StateGame.player.getY()); rect = new Rectangle(getDestinationX(), getDestinationY(), 10, 10); reachedDestination = (true); } } //Check for collision with jelly int checkedJelly = (0); while(checkedJelly < EntityJelly.JELLY.size() && EntityJelly.JELLY.get(checkedJelly) != null){ if(EntityJelly.JELLY.get(checkedJelly).getDead() == false){ if(getRectangle().intersects(EntityJelly.JELLY.get(checkedJelly).getRectangle())){ setHealth(getHealth() - 2); if(MathHelper.getRandom(1, 10) == 10){ Announcer.addAnnouncement("-2", 60, EntityJelly.JELLY.get(checkedJelly).getX(), EntityJelly.JELLY.get(checkedJelly).getY()); } } } checkedJelly++; } //If we're out of health, kill the entity if(getHealth() < 0){ setDead(true); } if(StateManager.getState() == StateManager.STATE_BOSSTWO){ if(reachedDestination == true){ if(getScared() == false){ setY(getY() + getSpeed()); }else{ setY(getY() - getSpeed() * 3); setX(getX() - getSpeed() * 3); } }else{ if(getScared() == false){ if(getX() < getDestinationX()) setX(getX() + getSpeed()); if(getX() > getDestinationX()) setX(getX() - getSpeed()); if(getY() < getDestinationY()) setY(getY() + getSpeed()); if(getY() > getDestinationY()) setY(getY() - getSpeed()); }else{ setY(getY() - getSpeed() * 3); setX(getX() - getSpeed() * 3); } } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void random() {\n\n\t}", "Boolean getRandomize();", "public static void Random() {\n\t\tRandom ran =new Random();\r\n\t\trandom=ran.nextInt(6)+1;\r\n\t\t//random=1;\r\n\t\twho=A1063307_GUI.who2;\r\n\t\tif((ch[who].status)>0) {\r\n\t\t\tch[who].location=(ch[who].location)+random;\r\n\t\t\tch[who].status...
[ "0.7557084", "0.7239624", "0.7209215", "0.71967375", "0.7130448", "0.711912", "0.7114527", "0.70092225", "0.69801486", "0.6940233", "0.69222736", "0.6913864", "0.6889405", "0.68832225", "0.68792194", "0.6862812", "0.68624026", "0.68353146", "0.6823559", "0.6817997", "0.677175...
0.0
-1
TODO code application logic here. We do not really need it for now, because we have test suite! :)
public static void main(String[] args) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "private void test() {\n\n\t}", "@Override\n @Before\n public void setUp() throws IOException {\n }", "@Override\r\n\t\t\tpublic void test() {\n\t\t\t}", "@Test\n public void testDAM30203001() {\n testDAM30102001();\n }", "@Override\n\tpublic void sacrifier() {...
[ "0.5672712", "0.55718076", "0.5546797", "0.5451601", "0.53593194", "0.5328266", "0.5325273", "0.5321393", "0.5309007", "0.5297129", "0.5291771", "0.52720034", "0.5270278", "0.5259658", "0.5257917", "0.5244652", "0.5244652", "0.5244652", "0.5244652", "0.5244652", "0.5244652", ...
0.0
-1
accecss the items from you shop list here
@Override public void success(List<Book> book, Response response) { List<Book> ep = book; /*Example[] array = ep.toArray(new Example[ep.size()]); List<Example> listsample = ep.getSaleDate();*/ listView.setAdapter(new BookListAdapter(ep)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void viewItems() {\r\n\t\tdisplayShops();\r\n\t\tint shopNo = getValidUserInput(scanner, shops.length);\r\n\t\tdisplayItems(shopNo);\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\" Please enter the ID of the element to add to cart. \\\"0\\\" for exit\");\r\n\t\tSystem.ou...
[ "0.63110787", "0.6110588", "0.6088371", "0.59605247", "0.59329116", "0.58467764", "0.57491434", "0.57419664", "0.5712112", "0.5707184", "0.5688548", "0.56798124", "0.5672227", "0.5663048", "0.565338", "0.56528485", "0.56219876", "0.5615666", "0.5614693", "0.5613463", "0.56122...
0.0
-1
Hide the refresh after 2sec
@Override public void run() { BookInfo.this.runOnUiThread(new Runnable() { @Override public void run() { mSwipyRefreshLayout.setRefreshing(false); } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void toggleRefresh() {\n if (mProgressBar.getVisibility() == View.INVISIBLE) {\n mProgressBar.setVisibility(View.VISIBLE);\n mRefreshImageView.setVisibility(View.INVISIBLE);\n } else {\n mProgressBar.setVisibility(View.INVISIBLE);\n mRefreshImageVie...
[ "0.6889476", "0.6877883", "0.6804392", "0.67299837", "0.6435388", "0.6314349", "0.6298261", "0.62781507", "0.62390375", "0.62311786", "0.61133265", "0.6097762", "0.60856634", "0.60604197", "0.6059965", "0.6042489", "0.6037613", "0.6005256", "0.6003257", "0.6003257", "0.598002...
0.618337
10
accecss the items from you shop list here
@Override public void success(List<Book> book, Response response) { List<Book> ep = book; /*Example[] array = ep.toArray(new Example[ep.size()]); List<Example> listsample = ep.getSaleDate();*/ listView.setAdapter(new BookListAdapter(ep)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void viewItems() {\r\n\t\tdisplayShops();\r\n\t\tint shopNo = getValidUserInput(scanner, shops.length);\r\n\t\tdisplayItems(shopNo);\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\" Please enter the ID of the element to add to cart. \\\"0\\\" for exit\");\r\n\t\tSystem.ou...
[ "0.63115466", "0.61125976", "0.60880494", "0.5962389", "0.59328765", "0.58484626", "0.5752316", "0.5745151", "0.5714306", "0.5711455", "0.56887025", "0.5680068", "0.5671223", "0.56643856", "0.56565243", "0.56525344", "0.56228006", "0.5619135", "0.5615359", "0.5613155", "0.561...
0.0
-1
Method that define the rule to execute.
protected abstract boolean makeDecision (Map<Key, Object> context);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void applyTheRule() throws Exception {\n System.out.println();\n System.out.println();\n System.out.println();\n System.out.println(\"IM APPLYING RULE \" + this.parameter.rule + \" ON MODEL: \" + this.resultingModel.path);\n System.out.println();\n if (parameter.ru...
[ "0.72256875", "0.6716461", "0.66609156", "0.6645639", "0.6645639", "0.6645639", "0.6635223", "0.6631664", "0.6482948", "0.64214903", "0.6412268", "0.6379708", "0.6378164", "0.63059473", "0.6250376", "0.62161297", "0.6178751", "0.6140426", "0.61236334", "0.6122127", "0.6115786...
0.0
-1
Method that set the positive rule to execute.
public void setPositiveOutcomeStep (AbstractComponent positiveOutcomeStep) { // set the positive rule. this.positiveOutcomeStep = positiveOutcomeStep; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setRule(Rule rule);", "private void setCurrentRule(){\n\tfor(int i=0; i<ConditionTree.length;i++){\n\t\tif(ConditionTree[i][1].equals(\"-\")){\n\t\t\tcurrentRule = ConditionTree[i][0];\n\t\t\tcurrentRuleIndex = i;\n\t\t}\n\t}\n}", "public void setRule(int r)\n { \n rule = r;\n repaint();\n ...
[ "0.59064996", "0.5825316", "0.5562324", "0.554433", "0.5426941", "0.52906674", "0.52796394", "0.52737916", "0.52596956", "0.52382636", "0.52100337", "0.52082664", "0.5147388", "0.51097786", "0.5101862", "0.5094682", "0.50943995", "0.5088035", "0.5032409", "0.5009156", "0.5007...
0.58056813
2
Method that return the positive rule to execute.
public AbstractComponent getPositiveOutcomeStep () { // Return the positive rule. return positiveOutcomeStep; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getRule();", "Rule getRule();", "public abstract boolean isPositive();", "public String getRule() {\r\n return rule;\r\n }", "private void applyTheRule() throws Exception {\n System.out.println();\n System.out.println();\n System.out.println();\n Syste...
[ "0.6028544", "0.6027713", "0.5830299", "0.5705726", "0.56903064", "0.5687376", "0.56456286", "0.557769", "0.55726576", "0.5552394", "0.5552394", "0.5552394", "0.55199534", "0.5507606", "0.54729855", "0.5417346", "0.54027885", "0.5385887", "0.53828", "0.5367642", "0.5341149", ...
0.59149086
2
Method that set the negative rule to execute.
public void setNegativeOutcomeStep (AbstractComponent negativeOutcomeStep) { // Set the negative rule. this.negativeOutcomeStep = negativeOutcomeStep; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setNegativePermissions();", "public void setNegative(boolean negative) {\n this.negative = negative;\n }", "public final void mRULE_MINUS() throws RecognitionException {\n try {\n int _type = RULE_MINUS;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // ...
[ "0.67029566", "0.6370217", "0.63655406", "0.63162625", "0.6181946", "0.6142491", "0.5892702", "0.5892192", "0.5848954", "0.5844905", "0.5838264", "0.5835751", "0.58239734", "0.57937455", "0.5780743", "0.5767131", "0.5749085", "0.5658265", "0.56526345", "0.56437284", "0.564143...
0.65398103
1
Method that return the negative rule to execute.
public AbstractComponent getNegativeOutcomeStep () { // Return the negative rule. return negativeOutcomeStep; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "T negativeResult();", "Relation getNegation();", "public ExecutionPolicy not()\n\t{\n\t\treturn new NotRule(this);\n\t}", "private ASTNode unaryMinusRules(ASTNode operand){\n Token operandToken = operand.getToken();\n if (operand instanceof UnaryOP && operandToken.getType() == TokenType.MINUS) {\...
[ "0.6573107", "0.6475294", "0.6259845", "0.62428606", "0.62333626", "0.61936057", "0.6186222", "0.61788183", "0.60739917", "0.5999644", "0.5926662", "0.591972", "0.59057736", "0.5854843", "0.58463585", "0.58074", "0.58010596", "0.57942754", "0.5779226", "0.57532376", "0.573442...
0.6813546
0
Execute the business and get the result.
@Override public final void execute (Map<Key, Object> context) { boolean outcome = makeDecision (context); if (outcome) { positiveOutcomeStep.execute (context); } else { negativeOutcomeStep.execute (context); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@SuppressWarnings(\"unchecked\")\n public <T> T execute() {\n return (T) fetchResponse(getCallToExecute());\n }", "public Object runAndGetResult() {\n run();\n return getResult();\n }", "protected void execute() {\n \t\n }", "protected void execute() {\n \t\n }", "...
[ "0.68611896", "0.65765494", "0.6434308", "0.6434308", "0.64306796", "0.64205205", "0.6296884", "0.6286489", "0.6277063", "0.62698996", "0.6260871", "0.6260871", "0.6260871", "0.6239126", "0.61876357", "0.6179589", "0.6172312", "0.6167368", "0.6166756", "0.61625767", "0.615021...
0.0
-1
/ parse one XmlPullParser to DeviceInformation
private static DeviceInformation parseDeviceInfor(XmlPullParser parser) { try { parser.require(XmlPullParser.START_TAG, XMLParser.NS, DeviceInformation.DEVICE_INFORMATION); DeviceInformation device = new DeviceInformation(); while (parser.next() != XmlPullParser.END_TAG) { if (parser.getEventType() != XmlPullParser.START_TAG) { continue; } String name = parser.getName(); if (DeviceInformation.LOGICAL_ADDRESS.equals(name)) { device.setLogAddr(getIntValue(XMLParser.getValue(parser, DeviceInformation.LOGICAL_ADDRESS))); } else if (DeviceInformation.PHYSICAL_ADDRESS.equals(name)) { device.setPhyAddr(XMLParser.getValue(parser, DeviceInformation.PHYSICAL_ADDRESS)); } else if (DeviceInformation.DEVICE_TYPE.equals(name)) { device.setDevType(getIntValue(XMLParser.getValue(parser, DeviceInformation.DEVICE_TYPE))); } else if (DeviceInformation.VENDOR_ID.equals(name)) { device.setVendorId(XMLParser.getValue(parser, DeviceInformation.VENDOR_ID)); } else if (DeviceInformation.HDMI_PORT_NUM.equals(name)) { device.setHdmiPort(getIntValue(XMLParser.getValue(parser, DeviceInformation.HDMI_PORT_NUM))); } else if (DeviceInformation.CONNECTEDTOAMP.equals(name)) { device.setCntToAmp(Boolean.valueOf(XMLParser.getValue( parser, DeviceInformation.CONNECTEDTOAMP))); } else if (DeviceInformation.OSD_NAME.equals(name)) { device.setOsdName(XMLParser.getValue(parser, DeviceInformation.OSD_NAME)); } else { XMLParser.skip(parser); } } return device; } catch (XmlPullParserException e) { e.printStackTrace(); } catch (IOException e) { e.printStackTrace(); } catch (Exception e) { e.printStackTrace(); } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static List<Device> getXmlDevice(String xmlpath) {\n List<Device> devices =null;\n Device device =null;\n List<Integer> parents =null;\n List<Integer> sons =null;\n int pcnt=0,scnt =0;\n try {\n InputStream xml = new FileInputStream(xmlpath);\n ...
[ "0.692133", "0.61544096", "0.6063664", "0.5958543", "0.5854782", "0.5764271", "0.5746824", "0.57224154", "0.571415", "0.55816907", "0.5543181", "0.5518056", "0.54996973", "0.54773265", "0.5461755", "0.5451519", "0.5450907", "0.5444173", "0.54401255", "0.54351616", "0.5411223"...
0.78988075
0
Get int value from string
private static int getIntValue(String s) { try { return Integer.parseInt(s, 16); } catch (NumberFormatException e) { e.printStackTrace(); return -1; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static int getInt(String value)\r\n\t{\r\n\t\treturn getInt(value, 0);\r\n\t}", "public static int getIntegerValue(String value)\n\t{\n\t\treturn Integer.parseInt(value);\n\t}", "private static int getVal(String s) {\n int val = Integer.parseInt(s.split(\" \")[0]);\r\n return val;\r\n }...
[ "0.76485646", "0.7608392", "0.7583918", "0.74504346", "0.740773", "0.73990566", "0.73798066", "0.7364666", "0.73107964", "0.7302424", "0.7257764", "0.72256935", "0.7220696", "0.7203293", "0.72024745", "0.71874446", "0.7180335", "0.717682", "0.71567494", "0.71315444", "0.71242...
0.7569263
3
a dummy constructor for configuaration use
public DeviceData() { this.rtAddress = 0; this.subAddress = 0; this.txRx = 0; this.data = new short[32]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Reproducible newInstance();", "defaultConstructor(){}", "private Instantiation(){}", "private Config() {\n }", "void DefaultConstructor(){}", "private OptimoveConfig() {\n }", "private Conf() {\n // empty hidden constructor\n }", "public Constructor(){\n\t\t\n\t}", "private OspfConfig...
[ "0.7592201", "0.751782", "0.74553734", "0.72575706", "0.72025824", "0.71789783", "0.7173761", "0.71597433", "0.71195924", "0.7108765", "0.7096502", "0.702992", "0.70133317", "0.69791424", "0.6978204", "0.69400686", "0.6891181", "0.68635875", "0.68477637", "0.68471277", "0.682...
0.0
-1
this method is used to encode the message/command to TADK API format
public byte[] encode(byte command,byte action) { byte[] encoded = new byte[82]; for (int i = 0; i < 82; ++i) { encoded[i] =(byte) 0; } encoded[0] = (byte)0xaa; //signature encoded[1] = (byte)0xaa; //signature 2nd byte encoded[2] = (byte)1; //index encoded[4] = (byte)command; //command encoded[6] = (byte)action; //action encoded[8] = (byte)this.rtAddress; //rt address encoded[10]= (byte)this.txRx; //txrx encoded[12]= (byte)this.subAddress;//subaddress encoded[14]= (byte)this.data.length;//count for (int i = 0, j = 0; i < this.data.length; i++,j+=2) { encoded[18+j] =(byte) this.data[i]; encoded[19+j] =(byte) (this.data[i] >> 8); } return encoded; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static String encode(Command msg)\n\t{\n\t\tString type = msg.getType();\n\t\tString sender = msg.getSender();\n\t\tString recipient = msg.getReciever()!=null ? msg.getReciever() : \" \";\n\t\tString message = msg.getMessage()!=null? msg.getMessage() : \" \";\n\t\tSystem.out.println(type + \";\" + sender + ...
[ "0.5837356", "0.5701009", "0.55814457", "0.54308724", "0.54115665", "0.54000276", "0.53529465", "0.530534", "0.5285193", "0.52290434", "0.52139986", "0.5213213", "0.518951", "0.51878744", "0.51750416", "0.51733005", "0.51721543", "0.51498", "0.5143694", "0.5132213", "0.512240...
0.61476433
0
This method is used to parse the TADK Response
public static DeviceData decode(byte[] rawData) throws FailedToDecode { int sync = (int)((rawData[1]&0xff)<<8 | (rawData[0]&0xff)); if(sync != 0xaaaa){ throw new FailedToDecode("in correct sync = "+sync); } //int messageIndex = rawData[2] + rawData[3] * 256; short response = (short)((rawData[5]&0xff)<<8 | (rawData[4]&0xff)); int channel = (short)((rawData[7]&0xff)<<8 | (rawData[6]&0xff)); int rta = (short)((rawData[9]&0xff)<<8 | (rawData[8]&0xff)); int txrx = (short)((rawData[11]&0xff)<<8 | (rawData[10]&0xff)); int subadd = (short)((rawData[13]&0xff)<<8 | (rawData[12]&0xff)); int count = (short)((rawData[15]&0xff)<<8 | (rawData[14]&0xff)); int status = (short)((rawData[17]&0xff)<<8 | (rawData[16]&0xff)); short[] data = new short[count]; for (int i = 0, j = 0; i < count; i++,j+=2) { data[i] = (short)((rawData[19+j]&0xff)<<8 | (rawData[18+j]&0xff)); } return new DeviceData(rta, subadd, txrx, data, status, channel,response); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void parseResponse();", "private Collection<TremorRecord> parseResponse(HttpResponse successResponse) \r\n\t\t\t\t\t\t\t\t\t\t\tthrows XmlPullParserException, IOException, NumberFormatException, ParseException {\r\n\t\tArrayList<TremorRecord> tremors = new ArrayList<TremorRecord>();\r\n\t\t\r\n\t\tXmlPull...
[ "0.620532", "0.55804634", "0.55526525", "0.5489964", "0.5405427", "0.5400325", "0.53786", "0.5372825", "0.5346668", "0.532913", "0.52947783", "0.5274208", "0.52724046", "0.5265074", "0.52225053", "0.51681095", "0.514734", "0.51471955", "0.5129353", "0.5122926", "0.5119944", ...
0.0
-1
/ access modifiers changed from: protected
@Override // com.amap.api.col.stln3.nc public final /* synthetic */ Object a(String str) throws AMapException { return 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void prot() {\n }", "private stendhal() {\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override...
[ "0.7374581", "0.704046", "0.6921078", "0.6907657", "0.68447137", "0.68278503", "0.68051183", "0.6581499", "0.65379775", "0.65013164", "0.64906055", "0.64906055", "0.6471428", "0.64376146", "0.64308655", "0.64308655", "0.6427683", "0.6424486", "0.64190304", "0.640871", "0.6405...
0.0
-1
/ access modifiers changed from: protected
@Override // com.amap.api.col.stln3.nd public final String d() { StringBuffer stringBuffer = new StringBuffer(); stringBuffer.append("key="); stringBuffer.append(qy.f(this.i)); stringBuffer.append("&userid="); stringBuffer.append(this.j); return stringBuffer.toString(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void prot() {\n }", "private stendhal() {\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override...
[ "0.7375736", "0.7042321", "0.6922649", "0.6909494", "0.68470824", "0.6830288", "0.68062353", "0.6583185", "0.6539446", "0.65011257", "0.64917654", "0.64917654", "0.64733833", "0.6438831", "0.64330196", "0.64330196", "0.64295477", "0.6426414", "0.6420484", "0.64083177", "0.640...
0.0
-1
what happens if we insert at root and use heapify
void insert(int ele){ if(heapLen>=A.length) { System.out.println("Heap is full"); } else { A[heapLen] = 1<< 31; heapLen++; increaseKey(heapLen, ele); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void heapifyAdd() {\n // TODO. The general idea of this method is that we are checking whether the \n // most recently added item, which has been put at the end of the array, \n //needs to be swapped with its parent. We do this in a loop, until a swap isn’t needed or we reach the root....
[ "0.735675", "0.66659456", "0.665962", "0.66560465", "0.66254354", "0.65980554", "0.65854996", "0.65486604", "0.6528446", "0.6510174", "0.65007734", "0.6500221", "0.6486846", "0.6484214", "0.64820564", "0.6470616", "0.6442083", "0.6438696", "0.6410268", "0.63791335", "0.637007...
0.63017493
25
Get complete image name from service spec
public static String getImage(ServiceSpec serviceSpec) throws HyscaleException { if (serviceSpec == null) { return null; } return getImage(serviceSpec.get(HyscaleSpecFields.image, Image.class)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String extractImageNameFromIdentifier(String image) {\n String[] tokens = image.split(\"/\");\n\n String imageName = tokens[tokens.length-1];\n if(imageName.contains(\":\")) {\n return imageName.split(\":\")[0];\n } else {\n return imageName;\n }\n ...
[ "0.69139713", "0.6865215", "0.65727013", "0.61806625", "0.6176276", "0.61534756", "0.6109909", "0.60291815", "0.5979337", "0.5947119", "0.5944212", "0.5914768", "0.58946085", "0.5881405", "0.5876228", "0.58425426", "0.5837305", "0.5828022", "0.5808979", "0.57971877", "0.57933...
0.6059205
7
Gets complete image name which includes registry url, image name and digest.
public static String getImageWithDigest(ServiceSpec serviceSpec, String digest) throws HyscaleException { if (serviceSpec == null) { return null; } Image image = serviceSpec.get(HyscaleSpecFields.image, Image.class); if (image == null) { return null; } StringBuilder stringBuilder = new StringBuilder(); stringBuilder.append(getImageWithoutTag(image)); if (StringUtils.isNotBlank(digest)) { stringBuilder.append(ToolConstants.AT_SIGN).append(digest); } return stringBuilder.toString(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String getImageName() {\n if (options.containsKey(\"image\")) {\n String imageName = (String)options.get(\"image\");\n if (StringUtils.hasText(imageName)) {\n return imageName;\n }\n }\n\n return \"\";\n /*\n func (s *execut...
[ "0.70702463", "0.70341295", "0.69202393", "0.66075987", "0.6483", "0.6407", "0.63800174", "0.6343854", "0.6332949", "0.6261012", "0.6232827", "0.6179262", "0.615382", "0.61394763", "0.61393887", "0.6122147", "0.60995346", "0.6083974", "0.60839605", "0.6054078", "0.60318923", ...
0.55849
56
Checks if service spec requires image build or push operation Build or push required if service spec contains build spec or dockerfile filed in image
public static boolean isImageBuildPushRequired(ServiceSpec serviceSpec) { if (serviceSpec == null) { return false; } Image image = null; try { image = serviceSpec.get(HyscaleSpecFields.image, Image.class); } catch (HyscaleException e) { logger.info("Error while fetching buildSpec and registryUrl from serviceSpec "); } if (image == null) { return false; } return image instanceof BuildSpecImage || image instanceof DockerBuildImage; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void checkHasSomethingToBuild(ImageModule image)\n\t\t\tthrows ValidationException {\n\t\tif (image.isVirtual()) {\n\t\t\tthrow new ValidationException(\n\t\t\t\t\t\"This image doesn't need to be built since it doesn't contain a package list nor a pre-recipe or a recipe.\");\n\t\t}\n\t}", "public ...
[ "0.62785256", "0.57139874", "0.5622987", "0.5566309", "0.5167263", "0.501958", "0.49995205", "0.49636015", "0.49510565", "0.47680402", "0.47653857", "0.47588456", "0.47502035", "0.47438195", "0.47356752", "0.47261944", "0.4694035", "0.4624445", "0.46242037", "0.46113864", "0....
0.7993774
0
It defines the maximum number of transactions that can be executed.
public void setMaxTransactions(long maxTrans) { if (maxTrans > 0) this.maxTrans = maxTrans; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setMaxTransactions(int maxTransactions) {\n\t\tthis.maxTransactions = maxTransactions;\n\t}", "public long getMaxTransactions() {\n\t\treturn (maxTrans);\n\t}", "@Value.Default\n public int maxTraceEntriesPerTransaction() {\n return 2000;\n }", "public int getTransactionMaxSize() {\r...
[ "0.7529378", "0.74262625", "0.7332911", "0.7096345", "0.6839778", "0.66877884", "0.66605264", "0.66522634", "0.65341425", "0.6532154", "0.6490337", "0.64705706", "0.6467868", "0.64367396", "0.6415223", "0.6374225", "0.6368178", "0.6332708", "0.6327983", "0.6318786", "0.630756...
0.7379665
2
It returns the maximum number of transactions that can be executed.
public long getMaxTransactions() { return (maxTrans); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getTransactionsCount();", "int getMaxCount();", "int getMaxCount();", "public int getTransactionMaxSize() {\r\n return transactionMaxSize;\r\n }", "int getMaximalIterationCount();", "public int getMaxCount() {\n return maxCount_;\n }", "int getMaxConcurrent();", "public int getM...
[ "0.7262783", "0.71447355", "0.71447355", "0.7009202", "0.69503736", "0.69469947", "0.6933872", "0.68890494", "0.6828238", "0.68271303", "0.681472", "0.6786894", "0.67648077", "0.667916", "0.6674295", "0.6669375", "0.66441816", "0.66187197", "0.6598045", "0.65892476", "0.65594...
0.81592137
0
It controls the remain number of transactions that can be executed.
public void decMaxTransactions() { maxTrans--; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void noOfTransactions() {\n\t\t\n\t}", "public int getNumTransactionsInBlock() {\r\n return numTransactionsInBlock;\r\n }", "int getTransactionsCount();", "@java.lang.Override\n public int getTransactionsCount() {\n return transactions_.size();\n }", "public void ro...
[ "0.7004876", "0.61090535", "0.59448266", "0.5911356", "0.58815545", "0.58524424", "0.57960165", "0.57673115", "0.57622975", "0.5724047", "0.5695612", "0.5625484", "0.5568851", "0.55503196", "0.55117744", "0.55031013", "0.5493455", "0.5473688", "0.54411703", "0.54292434", "0.5...
0.60032564
2
It returns if the emulation was finished or not.
public boolean isFinished() { return (finished); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected boolean isFinished() {\n //return controller.onTarget();\n return true;\n }", "protected boolean isFinished()\n\t{\n\t\treturn true;\n\t}", "protected boolean isFinished() {\r\n if (state == STATE_SUCCESS) {\r\n // Success\r\n return true;\r\n }\r\...
[ "0.7535193", "0.7477734", "0.74198204", "0.74107337", "0.7404407", "0.7404407", "0.7404407", "0.7397193", "0.73969036", "0.7374253", "0.73593056", "0.7352558", "0.73456484", "0.73456484", "0.73456484", "0.73456484", "0.73456484", "0.73456484", "0.73440915", "0.73192304", "0.7...
0.704148
99
It defines the status of the emulation as finished or unfinished, otherwise the name of the method is called setFinished. It is used to stop the emulation.
public void setFinished(boolean fin) { finished = fin; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setDone(){\n this.status = \"Done\";\n }", "public void setFinished(Boolean finished) {\n this.finished = finished;\n }", "protected void setFinished(boolean finished) {\n this.finished = finished;\n }", "public abstract boolean isFinished ();", "protected boolean ...
[ "0.6624651", "0.64922357", "0.6380831", "0.63795", "0.634028", "0.6311733", "0.63071185", "0.62682736", "0.62667066", "0.62421805", "0.6232335", "0.6226389", "0.62188697", "0.6211576", "0.6211576", "0.6211576", "0.6211576", "0.6211576", "0.6211576", "0.6211576", "0.6211576", ...
0.0
-1
It defines the object used as a state transition, which determines the possible steps of the simulation.
public void setStateTransition(StateTransition sb) { this.sb = sb; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void step(SimState state) {\r\n\r\n\t}", "public abstract Etat transition();", "public MealyStepByStateSimulator(Automaton automaton) \n {\n super(automaton);\n }", "@Override\r\n\tpublic void nextState() {\n\t\t\r\n\t}", "public NewTransitionRecord(){\r\n fromstate ...
[ "0.6939668", "0.67329204", "0.66956973", "0.6490462", "0.6487662", "0.6464844", "0.6396462", "0.63816416", "0.6303002", "0.6287097", "0.6263465", "0.6182693", "0.61738646", "0.6173711", "0.61698383", "0.6158739", "0.6155588", "0.6134071", "0.60982066", "0.6090418", "0.6067095...
0.0
-1
It returns the object used as a state transition, which determines the possible steps of the simulation.
public StateTransition getStateTransition() { return (sb); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract Etat transition();", "StateMachineFactory getStateMachineFactory();", "public SimulationState getState() {\n\t\treturn state;\n\t}", "public abstract MachineState getInitialState();", "public interface ScramState {\r\n\t/** Return the Node corresponding to McDiver's location in the graph. *...
[ "0.67091036", "0.650436", "0.6454005", "0.6453738", "0.64264005", "0.6361979", "0.6323473", "0.62260246", "0.62031424", "0.61952716", "0.6162405", "0.61069834", "0.60958266", "0.6078375", "0.6078375", "0.6078375", "0.6078375", "0.60640514", "0.6060611", "0.6053841", "0.604897...
0.59619915
30
It defines the emulator's id.
public void setEmulationId(int id) { this.id = id; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getEmulationId() {\n\t\treturn (id);\n\t}", "private String getDeviceId() {\n String deviceId = telephonyManager.getDeviceId(); \n \n \n // \"generic\" means the emulator.\n if (deviceId == null || Build.DEVICE.equals(\"generic\")) {\n \t\n // This ID changes on OS reinstall/fa...
[ "0.69023824", "0.6528559", "0.64482623", "0.6273388", "0.6110693", "0.60221696", "0.5977706", "0.5977477", "0.5954374", "0.5942987", "0.5922561", "0.5911365", "0.590338", "0.5887512", "0.5875086", "0.58715594", "0.5865387", "0.5865387", "0.5865387", "0.5865387", "0.5865387", ...
0.6930137
0
It returns the emulator's id.
public int getEmulationId() { return (id); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String getDeviceId() {\n String deviceId = telephonyManager.getDeviceId(); \n \n \n // \"generic\" means the emulator.\n if (deviceId == null || Build.DEVICE.equals(\"generic\")) {\n \t\n // This ID changes on OS reinstall/factory reset.\n deviceId = Secure.getString(context.ge...
[ "0.74487793", "0.69439363", "0.69079053", "0.68237907", "0.67539686", "0.67230725", "0.6674987", "0.6591572", "0.6585368", "0.6560527", "0.65111125", "0.65111125", "0.644979", "0.6442849", "0.64324546", "0.6388515", "0.6379602", "0.6354396", "0.635014", "0.63217795", "0.63149...
0.73098963
1
It defines the emulator's name.
public void setEmulationName(String name) { this.name = name; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String getEmulatorFriendlyName() {\n return mEmulatorFriendlyName;\n }", "public String getEmulationName() {\n\t\treturn (name);\n\t}", "public void setName() {\r\n\t\tapplianceName = \"ElectricShower\";\r\n\t}", "static void giveName() {\n System.out.println(name);\n }", "pub...
[ "0.712791", "0.6799179", "0.6576698", "0.6376104", "0.62353784", "0.62241", "0.621308", "0.609525", "0.60475457", "0.603969", "0.6025538", "0.6018744", "0.6015939", "0.60139424", "0.59986556", "0.598071", "0.59786934", "0.5962827", "0.5948359", "0.5948359", "0.5948359", "0....
0.70961076
1
It returns the emulator's name.
public String getEmulationName() { return (name); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String getEmulatorFriendlyName() {\n return mEmulatorFriendlyName;\n }", "String getManagerName();", "String getIntegApplicationName();", "public static String getDeviceName() {\n String manufacturer = Build.MANUFACTURER;\n String model = Build.MODEL;\n if (mode...
[ "0.79149544", "0.6820963", "0.64099485", "0.6403891", "0.6403891", "0.638432", "0.63674456", "0.63447046", "0.634075", "0.6326776", "0.6316168", "0.62720734", "0.6258406", "0.62277615", "0.62173176", "0.62077695", "0.61899084", "0.6189228", "0.6177093", "0.61673325", "0.61136...
0.7230161
1
It returns the last thinktime used by the emulator, which means the time used by the operator to take a decision. It is important to notice that we consider this value the thinktime as specified in the TPCC plus the keyingtime to calculate this value.
public long getThinkTime() { return (thinkTime); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public long getLastAttackTime() {\r\n\t\treturn lastAttackTime;\r\n\t}", "public double getLastTime()\n\t{\n\t\tdouble time = Double.NaN;\n\t\tfinal Entry< Double, V > entry = getLastEntry();\n\t\tif( entry != null )\n\t\t{\n\t\t\ttime = entry.getKey();\n\t\t}\n\t\treturn time;\n\t}", "public double getWorkTim...
[ "0.6620968", "0.65307534", "0.65272456", "0.650083", "0.64838195", "0.64603865", "0.6455522", "0.6423747", "0.64162713", "0.6381466", "0.63689965", "0.6338559", "0.6313878", "0.6294641", "0.62833464", "0.62833464", "0.6283203", "0.6256622", "0.6251618", "0.6242261", "0.623097...
0.7265646
0
It returns the last keyingtime time used by the emulator, which means the time used by the operator to fill a form.
public long getKeyingTime() { return (keyTime); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public long lastTime()\r\n/* 219: */ {\r\n/* 220:412 */ return this.lastTime.get();\r\n/* 221: */ }", "public double getLastTime()\n\t{\n\t\tdouble time = Double.NaN;\n\t\tfinal Entry< Double, V > entry = getLastEntry();\n\t\tif( entry != null )\n\t\t{\n\t\t\ttime = entry.getKey();\n\t\t}\n\t\tretu...
[ "0.71597624", "0.70427054", "0.67308635", "0.66679525", "0.664312", "0.6598873", "0.6574712", "0.6572016", "0.656378", "0.65418494", "0.65418494", "0.65275455", "0.65154046", "0.6509836", "0.6509662", "0.65066844", "0.64985585", "0.64985585", "0.64985585", "0.6479624", "0.647...
0.7599076
0
It stores the last thinktime used by the emulator, which means the time used by the operator to take a decision. It is important to notice that we consider this value the thinktime as specified in the TPCC plus the keyingtime to calculate this value.
public void setThinkTime(long thinkTime) { this.thinkTime = thinkTime; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public long getThinkTime() {\n\t\treturn (thinkTime);\n\t}", "public long getLastAttackTime() {\r\n\t\treturn lastAttackTime;\r\n\t}", "public Float getUsedtime() {\n return usedtime;\n }", "@Override\n public long getTimeNeeded() {\n return timeNeeded;\n }", "public double getLastTi...
[ "0.6897211", "0.6473878", "0.64182144", "0.63783437", "0.6343831", "0.63233614", "0.63105434", "0.6310054", "0.63044786", "0.6296206", "0.61719185", "0.6150466", "0.6147983", "0.6147983", "0.61416376", "0.6123911", "0.6111973", "0.6102345", "0.61011577", "0.60959125", "0.6089...
0.0
-1
It stores the last keyingtime time used by the emulator, which means the time used by the operator to fill a form.
public void setKeyingTime(long keyTime) { this.keyTime = keyTime; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void newTimeKey() {\r\n\t\ttimeKeyA = System.nanoTime();\r\n\t}", "public long getKeyingTime() {\n\t\treturn (keyTime);\n\t}", "public int getTime() { return _time; }", "public long lastTime()\r\n/* 219: */ {\r\n/* 220:412 */ return this.lastTime.get();\r\n/* 221: */ }", "public long ...
[ "0.709578", "0.7034085", "0.65763694", "0.64179975", "0.6390942", "0.6390942", "0.6390942", "0.637632", "0.6357209", "0.6346035", "0.62764865", "0.6262143", "0.6262143", "0.6256038", "0.6240984", "0.6232016", "0.62232107", "0.62112075", "0.621014", "0.62029785", "0.6200196", ...
0.6209963
19
It defines the trace file used to log information.
public void setTraceInformation(String trace) { traceInformation = trace; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setTraceFile(String fileName)\r\n {\r\n this.filename = fileName;\r\n }", "public TraceLogger(File baseDir) {\n\t\n\tthis(null, baseDir);\n }", "public abstract void logTraceTime(File file, String description);", "void setLogFile(File log);", "void setupFileLogging();", "abstract ...
[ "0.75572014", "0.6595801", "0.6543273", "0.6456186", "0.64506984", "0.6312898", "0.62948334", "0.6206322", "0.6195825", "0.6159991", "0.6094105", "0.6068628", "0.59260505", "0.59242386", "0.5817958", "0.5811353", "0.57682794", "0.5762724", "0.575306", "0.5719888", "0.5715391"...
0.58302355
14
It returns the name of the trace file used to log information.
public String getTraceInformation() { return (traceInformation); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static String getLogFilesPath() {\r\n return new File(TRACELOG).getAbsolutePath();\r\n }", "public void setTraceFile(String fileName)\r\n {\r\n this.filename = fileName;\r\n }", "@DISPID(19)\r\n\t// = 0x13. The runtime will prefer the VTID if present\r\n\t@VTID(21)\r\n\tjava.lang.Stri...
[ "0.6725532", "0.6542316", "0.63966215", "0.6385986", "0.63673574", "0.6344606", "0.62174845", "0.6035005", "0.60218906", "0.601141", "0.5954496", "0.59390306", "0.59219474", "0.59132445", "0.5900622", "0.58935416", "0.5874874", "0.5873678", "0.58616096", "0.58460855", "0.5840...
0.5418233
85
It defines the number of concurrent emulators.
public void setNumberConcurrentEmulators(int emu) { numberConcurrentEmulators = emu; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getNumberConcurrentEmulators() {\n\t\treturn (numberConcurrentEmulators);\n\t}", "public void InitializeMaxNumInstances(int num) {\n }", "@Override\r\n public int getMaxConcurrentProcessingInstances() {\r\n return 1;\r\n }", "public void setNumberOfActiveRunners(Integer numberOf...
[ "0.67918503", "0.6200803", "0.60894656", "0.6085325", "0.6037713", "0.5987223", "0.5906135", "0.58874506", "0.5869343", "0.576005", "0.55667317", "0.55598146", "0.5555497", "0.5548582", "0.55192703", "0.55074936", "0.5491659", "0.54748064", "0.54525274", "0.5452027", "0.54497...
0.68154997
0
It returns the number of concurrent emulators.
public int getNumberConcurrentEmulators() { return (numberConcurrentEmulators); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getExecutorActiveCount();", "public int getRunningDevicesCount();", "public Integer getNumberOfActiveRunners(){\n return numberOfActiveRunners;\n }", "Integer getConnectorCount();", "int getExperimentsCount();", "public int getNumThreads() {\n return numThreads;\n }", "public in...
[ "0.696694", "0.67313945", "0.66673654", "0.63436073", "0.6338272", "0.63046587", "0.6294908", "0.62792885", "0.6235484", "0.6135882", "0.61267143", "0.6105168", "0.60326964", "0.60291576", "0.60252374", "0.6004849", "0.59924483", "0.59772104", "0.59482694", "0.5936384", "0.59...
0.7518289
0
It returns the random object.
public Random getRandom() { return (rand); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Random rand()\n\t{\n\t\treturn new Random();\n\t}", "public synchronized Random getRandom() {\n\n if (_random == null) {\n synchronized (this) {\n if (_random == null) {\n // Calculate the new random number generator seed\n long seed ...
[ "0.8064523", "0.7842129", "0.77325153", "0.7614269", "0.72684705", "0.71909773", "0.7185105", "0.7116264", "0.7100671", "0.70750964", "0.70658666", "0.69380057", "0.6897884", "0.6829188", "0.68281627", "0.6825259", "0.6793442", "0.6761365", "0.6731815", "0.67133856", "0.67130...
0.8210305
0
It defines the host to which it the emulator belongs to.
public void setHostId(String hid) { this.hid = hid; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setHost(HostAgent host){\n\tthis.host = host;\n }", "public void SetHost(GUI host) {\n\t\tm_Host = host;\n\t}", "Host getHost();", "public void setHost(String host);", "public void setHost(String host) {\n this.host = host;\n }", "public void setHost(String host) {\n this....
[ "0.7070917", "0.70603603", "0.6975566", "0.69585556", "0.68557274", "0.68557274", "0.68557274", "0.68557274", "0.68557274", "0.6817544", "0.67544526", "0.67377263", "0.67055774", "0.66902894", "0.6653567", "0.6653567", "0.6640518", "0.6617331", "0.6617331", "0.661724", "0.661...
0.0
-1
It returns the host to which it the emulator belongs to.
public String getHostId() { return (hid); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Host getHost();", "public String getHost() {\n return host.getText();\n }", "public String getHost() {\n\t\ttry {\n\t\t\treturn InetAddress.getLocalHost().getHostName();\n\t\t} catch (UnknownHostException e) {\n\t\t\treturn \"unknown\";\n\t\t}\n\t}", "String getIntegHost();", "java.lang.String getHost(...
[ "0.7669645", "0.76037896", "0.73563963", "0.7343836", "0.73037994", "0.73037994", "0.7279657", "0.7216653", "0.71996", "0.717417", "0.7138591", "0.712097", "0.7117588", "0.7117588", "0.70870245", "0.7067182", "0.7062411", "0.7059406", "0.7055746", "0.7048158", "0.7048158", ...
0.62766
99
It returns the database used by the emulator in order to handle the transaction requests.
public DatabaseManager getDatabase() { return (db); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getDatabase();", "Database getDataBase() {\n return database;\n }", "public static String getDatabase() {\r\n return database;\r\n }", "String getDatabase();", "public Database getDatabase() {\n return dbHandle;\n }", "public String getDatabase()\n {\n r...
[ "0.7450945", "0.7447515", "0.7337331", "0.7294402", "0.7172069", "0.70734584", "0.7073341", "0.70494324", "0.70384693", "0.7019184", "0.69799083", "0.6950911", "0.69238514", "0.69238514", "0.6916993", "0.6906811", "0.68850416", "0.6841341", "0.67984104", "0.6707356", "0.66939...
0.6984976
10
It defines the database used by the emulator in order to handle the transaction requests.
public void setDatabase(DatabaseManager db) { this.db = db; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getDatabase();", "private void getDatabase(){\n\n }", "public void setDatabase(Connection _db);", "Database createDatabase();", "Database getDataBase() {\n return database;\n }", "private void setupDatabase() {\r\n\t\tDatabaseHelperFactory.init(this);\r\n\t\tdatabase = Database...
[ "0.68714786", "0.6771366", "0.6741194", "0.67081124", "0.6694574", "0.6668282", "0.6583996", "0.65664536", "0.6564936", "0.6563292", "0.6514668", "0.64954394", "0.64025146", "0.6401199", "0.6363365", "0.63628596", "0.6352884", "0.6344699", "0.6326875", "0.6306458", "0.6305755...
0.63153356
19
Give the menus a common interface for Waitress.
public interface Menu { public Iterator createIterator(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface MainMenuExecutor {\n\tpublic void clickExit();\n\t\n\tpublic void clickSetup();\n\t\n\tpublic void clickStart();\n\t\n\tpublic void clickStop();\n\t\n\tpublic void clickShow();\n}", "void askMenu();", "public Menu createToolsMenu();", "protected abstract void addMenuOptions();", "static vo...
[ "0.68618816", "0.66485184", "0.64565015", "0.6418888", "0.64046675", "0.63366145", "0.63282025", "0.63274413", "0.6325838", "0.62965", "0.6290263", "0.6267795", "0.621258", "0.62022734", "0.6192968", "0.61880404", "0.6160873", "0.61574477", "0.61559325", "0.61555624", "0.6148...
0.0
-1
total amount of played games Refills player's chips to a certain number
public void refill(){ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getFaintedPokemonCount();", "@Override\n public int howManyCoins() {\n return 7;\n }", "int getNewlyAvailableQuestsCount();", "int getReservePokemonCount();", "public int trickWinner(){\n Card.NUMBER one = player1Play.getValue();\n Card.NUMBER two = player2Play.getValue();\n ...
[ "0.6777223", "0.65440214", "0.6531965", "0.64201325", "0.6319059", "0.63104725", "0.6253798", "0.6225703", "0.6171616", "0.61666626", "0.6155691", "0.6107077", "0.60821944", "0.60762376", "0.6064685", "0.6037863", "0.60215324", "0.6001056", "0.5983848", "0.5966904", "0.596673...
0.0
-1
create training data for this fold
public void createTrainingData(String dirName, String processName, int fold, ArrayList<FoldInstance> instances) throws FileNotFoundException { PrintWriter writer = new PrintWriter(dirName + "/" + processName + ".jointtrain.cv." + fold); for (int i = 0; i < instances.size(); i++) { FoldInstance inst = instances.get(i); if (inst.getName().equalsIgnoreCase(processName)) { if (inst.getFold() == fold) { writer.println(inst.getSentences()); writer.flush(); } } else { writer.println(inst.getSentences()); writer.flush(); } } writer.close(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void trainData() throws IOException {\n\t\tfor (int i = 0; i < 10; i++) {\n\t\t\ttestingFold = i;\n\n\t\t\tif (testingFold == writingFold) {\n\t\t\t\tlogger.append(\"Training Tree-Augmented Naive Bayes for writing Fold\");\n\t\t\t}\n\n\t\t\tif (testingFold == writingFold) {\n\t\t\t\tlogger.append(\"Calculat...
[ "0.68000877", "0.65990585", "0.64702326", "0.6455896", "0.638591", "0.63103056", "0.61427695", "0.6142569", "0.61278826", "0.61231786", "0.6119663", "0.61154926", "0.6079843", "0.60793704", "0.6037061", "0.59690803", "0.5963927", "0.5955703", "0.58839625", "0.58728355", "0.58...
0.6488266
2
Drivers.driver = Drivers.browser("chrome"); commUtil.launchBrowser("
@BeforeClass public static void beforeClass() throws MalformedURLException { Drivers.driver = Drivers.browser("firefox"); commUtil.launchBrowser("http://demoqa.com/"); Drivers.driver.manage().window().maximize(); // Drivers.driver = Drivers.browser("internetExplorer"); // commUtil.launchBrowser("http://demoqa.com/"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@BeforeTest\r\n public void launchBrowser() {\n System.setProperty(\"webdriver.chrome.driver\", ChromePath);\r\n driver= new ChromeDriver();\r\n driver.manage().window().maximize();\r\n driver.get(titulo);\r\n }", "@BeforeTest\r\n\tpublic void launch()...
[ "0.7946933", "0.7851935", "0.7846175", "0.77384824", "0.76477987", "0.7579795", "0.75717896", "0.7562818", "0.7550134", "0.75421494", "0.7523966", "0.75122386", "0.7507082", "0.7493384", "0.74461836", "0.74386024", "0.7436765", "0.741584", "0.74000466", "0.73670834", "0.73645...
0.0
-1
Are the Clickable Elements Clickable Tests
@Test public void demoqaLinkIsClickable() { assertTrue(ServicesLogic.demoqaLinkIsClickable()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void verifyUIElements(){\r\n\t\t\tisClickable(Txt_HomePage_Search);\r\n\t\t\tisClickable(Btn_HomePage_Search);\r\n\t\t}", "boolean hasClickView();", "public void isElementClickable(WebElement elem) {\n try {\n driverWait.until(ExpectedConditions.elementToBeClickable(elem));\n ...
[ "0.73419523", "0.6881592", "0.6815796", "0.68031406", "0.67907655", "0.66848224", "0.65133727", "0.6477356", "0.64451104", "0.64298564", "0.6410762", "0.64047146", "0.63964653", "0.6379417", "0.636899", "0.6354126", "0.6331372", "0.63138896", "0.6312826", "0.6281983", "0.6272...
0.6635579
6
Do the links redirect to the correct URL Tests
@Test public void testRedirectToAboutUs() { ServicesLogic.redirectToAboutUs(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testMultiRedirectRewrite() throws Exception {\n final CountDownLatch signal = new CountDownLatch(1);\n try {\n final String requestString = \"http://links.iterable.com/a/d89cb7bb7cfb4a56963e0e9abae0f761?_e=dt%40iterable.com&_m=f285fd5320414b3d868b4a97233774fe\";\n ...
[ "0.6818014", "0.67989796", "0.66959757", "0.66050386", "0.6544768", "0.6479811", "0.6426131", "0.6392742", "0.63504916", "0.6338758", "0.6225687", "0.62201345", "0.6165632", "0.6136631", "0.6125446", "0.60983926", "0.60738134", "0.60681367", "0.60355526", "0.6007348", "0.5996...
0.60042316
20
The algorithm was based on a python solution on StackOverflow Resource:
private void generateFirstCard() { List<MutableImage> images = new ArrayList<>(); for (int i = 0; i < order; i++) { for (int j = 0; j < order; j++) { ImageImpl image = new ImageImpl(i * order + j); images.add(image); } ImageImpl image = new ImageImpl(order * order); images.add(image); arrayOfCardsInit.push(cardGenerator.generate(images)); images.clear(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\n\n pairsSum();\n\n printAllSubArrays();\n\n tripletZero();\n\n // int[][] sub = subsets();\n\n PairsSum sum = new PairsSum();\n int[] arr = { 10, 1, 2, 3, 4, 5, 6, 1 };\n boolean flag = sum.almostIncreasingSequence(arr);\n ...
[ "0.61815184", "0.5717108", "0.56787926", "0.5661716", "0.5588323", "0.5549539", "0.55485004", "0.5514469", "0.54599154", "0.543866", "0.5438294", "0.54098976", "0.5406914", "0.54068595", "0.5396596", "0.5381233", "0.53749454", "0.5366567", "0.53624636", "0.5361649", "0.534028...
0.0
-1
Created by Raven on 2018/4/4.
public interface OnDateSelectedListner { void onDateSet(TimeSectionDialog timeSectionDialog, long startMillseconds,long endMillSeconds); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "private stendhal() {\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "publi...
[ "0.61112446", "0.58635205", "0.58066297", "0.58058816", "0.5747293", "0.5693122", "0.5691504", "0.5678781", "0.5671558", "0.5669775", "0.56295013", "0.56268746", "0.56268746", "0.5612578", "0.56119543", "0.56119543", "0.56119543", "0.56119543", "0.56119543", "0.56119543", "0....
0.0
-1
Inflate the menu; this adds items to the action bar if it is present.
@Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.menu_main, menu); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tMenuInflater inflater = getMenuInflater();\n \tinflater.inflate(R.menu.main_activity_actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {...
[ "0.7247427", "0.720267", "0.7196145", "0.7178052", "0.71080035", "0.7040695", "0.7039065", "0.7012457", "0.7011027", "0.6980861", "0.69456106", "0.69392735", "0.6934666", "0.691844", "0.691844", "0.6891824", "0.6884514", "0.6875728", "0.6875644", "0.6862535", "0.6862535", "...
0.0
-1
Created by zhenia on 14.05.17.
public interface SentenceMember { @Override String toString(); SentenceMember reverse(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "private stendhal() {\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n...
[ "0.59682107", "0.5883068", "0.5824337", "0.57812345", "0.5689006", "0.5689006", "0.56811595", "0.56787086", "0.56653", "0.5661313", "0.5650205", "0.5649378", "0.56254935", "0.56238407", "0.5610187", "0.5573327", "0.556299", "0.55615103", "0.55601877", "0.5546764", "0.5536302"...
0.0
-1
A representation of the model object 'Property Access'.
public interface PropertyAccess extends FeatureCall { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Expression getAccessExpression()\r\n {\r\n\treturn m_accessExpression;\r\n }", "public String getAccess();", "public String getAccess()\n\t\t{\n\t\t\treturn m_access;\n\t\t}", "@Column(name = \"PERMISSION_ACCESS\")\n\tpublic String getPermissionAccess()\n\t{\n\t\treturn permissionAccess;\n\t}", ...
[ "0.66635823", "0.6441124", "0.6364489", "0.6204191", "0.6164468", "0.6164468", "0.60362", "0.6020017", "0.59767365", "0.5963797", "0.5955452", "0.5861776", "0.5826062", "0.5825384", "0.5814209", "0.58084494", "0.57188106", "0.5695802", "0.5677385", "0.5667108", "0.56629014", ...
0.0
-1
deactivate timer to enable dragging
@Override public void onFinish() { timerActive=false; //play sound on finish //instead of MainActivity.this, we can also use getApplicationContext() MediaPlayer mPlayer = MediaPlayer.create(MainActivity.this,R.raw.airhorn); mPlayer.start(); bview.setText("GO"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static void setNotDraging(){isDraging=false;}", "private void stopDragging() {\n setDragging(false);\n mouseX = mouseY = prevX = prevY = 0;\n }", "void onStopTrackingTouch() {\n mIsDragging = false;\n }", "void onStopTrackingTouch() {\n mIsDragging = false;\n }", "publi...
[ "0.7028392", "0.67832804", "0.6555451", "0.6555451", "0.65430844", "0.63436323", "0.6153943", "0.614459", "0.6120009", "0.59954077", "0.59628946", "0.59376884", "0.5904549", "0.58973217", "0.58955", "0.589176", "0.5828723", "0.5827547", "0.5815733", "0.5800899", "0.57925636",...
0.0
-1
true : cannot drag. ie widget is always on touch by event false: can drag
@Override public boolean onTouch(View v, MotionEvent event) { return timerActive; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static void setNotDraging(){isDraging=false;}", "public boolean canStartDrag()\n\t{\n\t\treturn !isDragging();\n\t}", "protected abstract boolean dragged();", "@Override\n\tpublic boolean touchDragged(int arg0, int arg1, int arg2) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean touchDragged(int ar...
[ "0.8041069", "0.77095", "0.7604997", "0.7515047", "0.7515047", "0.7511343", "0.7304606", "0.7304606", "0.7208236", "0.7208236", "0.7204994", "0.71953607", "0.71878314", "0.71878314", "0.71878314", "0.71878314", "0.71878314", "0.71878314", "0.71878314", "0.71878314", "0.718783...
0.0
-1
: TODO: not quite well
@Override public Collection<Employee> queryByNameAndEmail( String name, String email, boolean isRemoved ) { final String nameLikeSql = name + "%"; final String mailLikeSql = email + "%"; return em.createNamedQuery( "Employee.findByNameAndEmail", Employee.class ) .setParameter( "name", nameLikeSql ) .setParameter( "email", mailLikeSql ) .setParameter( "removed", isRemoved ).getResultList(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "public void method_4270() {}", "private void poetries() {\n\n\t}", "protected boolean func_70814_o() { return true; }", "private void kk12() {\n\n\t}", "@Override\n\tpublic void grabar(...
[ "0.54989654", "0.54737234", "0.54587984", "0.5418159", "0.5410522", "0.5395719", "0.5374641", "0.53692096", "0.53626233", "0.5344474", "0.53374684", "0.533352", "0.53183836", "0.52857465", "0.5253237", "0.52481395", "0.52393353", "0.5212498", "0.52072257", "0.5202976", "0.519...
0.0
-1
/ Create ComboButton for switching HDMI EDID version
private void createEdidSwitch(final int inputSource) { mProgressDialog = new ProgressDialog(settingActivity); mProgressDialog.setTitle(settingActivity.getResources().getString( R.string.str_hdmi_edid_version_change)); mProgressDialog.setMessage(settingActivity.getResources().getString( R.string.str_hdmi_edid_version_wait)); mProgressDialog.setIndeterminate(false); mProgressDialog.setCancelable(false); String[] resList = settingActivity.getResources().getStringArray(R.array.str_arr_hdmi_edid_version); String[] edidItemList = new String[resList.length + 1]; System.arraycopy(resList, 0, edidItemList, 0, resList.length); mHdmiEdidAutoSwitchIndex = resList.length; edidItemList[mHdmiEdidAutoSwitchIndex] = settingActivity.getResources().getString(R.string.str_edid_auto_switch); mComboHdmiEdidVersion = new ComboButton(settingActivity, edidItemList, R.id.linearlayout_hdmi_edid_version, 1, 2, ComboButton.NEED_SELECTED_BEFORE_SWITCH) { @Override public void doUpdate() { super.doUpdate(); LittleDownTimer.pauseItem(); LittleDownTimer.pauseMenu(); mProgressDialog.show(); if (mThreadEdidChange == null || mThreadEdidChange.getState() == Thread.State.TERMINATED) { mThreadEdidChange = new Thread(new Runnable() { @Override public void run() { Log.d(TAG, "new thread starting change edid version !"); int idx = getIdx(); if (idx == mHdmiEdidAutoSwitchIndex) { if (mTvCommonManager.isSupportModule(TvCommonManager.MODULE_EDID_AUTO_SWITCH)) { mTvCommonManager.setHdmiEdidAutoSwitch(true); } } else { if (mTvCommonManager.isSupportModule(TvCommonManager.MODULE_EDID_AUTO_SWITCH)) { mTvCommonManager.setHdmiEdidAutoSwitch(false); } if (mTvCommonManager.setHdmiEdidVersionBySource( inputSource, idx) != true) { Log.e(TAG, "setHdmiEdidVersion failed!"); } } /* Prepare resuming to menu */ if (null != mProgressDialog) { mProgressDialog.dismiss(); } LittleDownTimer.resetItem(); LittleDownTimer.resetMenu(); LittleDownTimer.resumeItem(); LittleDownTimer.resumeMenu(); } }); mThreadEdidChange.start(); } else { Log.d(TAG, "Abort, another thread is already starting changing edid. the combobutton is not switchable until it finish"); } } }; /* Get the supported HDMI EDIE version list */ boolean bSupportHdmiEdidVersion; int focusIndex = mTvCommonManager.getHdmiEdidVersionBySource(inputSource); int[] supportHdmiEdidVersionList = mTvCommonManager .getHdmiEdidVersionList(); for (int i = 0; (i < supportHdmiEdidVersionList.length) && (i < resList.length); i++) { Log.d(TAG, "supportHdmiEdidVersionList["+i+"] = " + supportHdmiEdidVersionList[i]); if (supportHdmiEdidVersionList[i] != TvCommonManager.EDID_VERSION_UNSUPPORT) { bSupportHdmiEdidVersion = true; } else { bSupportHdmiEdidVersion = false; } mComboHdmiEdidVersion.setItemEnable(i, bSupportHdmiEdidVersion); } if (mTvCommonManager.isSupportModule(TvCommonManager.MODULE_EDID_AUTO_SWITCH)) { mComboHdmiEdidVersion.setItemEnable(mHdmiEdidAutoSwitchIndex, true); if (mTvCommonManager.getHdmiEdidAutoSwitch()) { focusIndex = mHdmiEdidAutoSwitchIndex; } } else { mComboHdmiEdidVersion.setItemEnable(mHdmiEdidAutoSwitchIndex, false); } mComboHdmiEdidVersion.setIdx(focusIndex); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void createRgbHsbButtons() {\n \t\n Composite comp1 = new Composite(shell, SWT.NONE);\n GridLayout gl = new GridLayout(3, false);\n gl.horizontalSpacing = 10;\n comp1.setLayout(gl);\n GridData gd = new GridData(GridData.FILL_HORIZONTAL);\n comp1.setLayoutData(gd...
[ "0.59215844", "0.5410742", "0.5344638", "0.53402525", "0.53353083", "0.5287001", "0.52792376", "0.5260751", "0.52576095", "0.5225788", "0.52119875", "0.52057886", "0.5184106", "0.5171717", "0.5170221", "0.5167658", "0.5162015", "0.5159913", "0.5149513", "0.5149505", "0.514025...
0.65575874
0
root.right != null > root.left.next = root.right root.next != null > root.right.next = root.next.left
public void connect(TreeLinkNode root) { if (root == null) { return; } // leaf node 就不應該再判斷他的root.right.next,會出錯, 因此在這邊先回傳 if (root.left == null && root.right == null) { return; } if (root.left != null && root.right != null) { root.left.next = root.right; } TreeLinkNode cur_root = root; while (root.next != null) { System.out.println(root.val); if (root.next != null && root.right != null) { if (root.next.left != null) { root.right.next = root.next.left; break; } else if (root.next.right != null) { root.right.next = root.next.right; break; } } else if (root.next != null && root.left != null) { if (root.next.left != null) { root.left.next = root.next.left; break; } else if (root.next.right != null) { root.left.next = root.next.right; break; } } root = root.next; } root = cur_root; /* if (root.left != null && root.right != null) { root.left.next = root.right; } if (root.right != null && root.next != null) { if (root.next.left != null) { root.right.next = root.next.left; } else if (root.next.right != null) { root.right.next = root.next.right; } } */ connect(root.left); connect(root.right); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void doubleRotationRL(BinaryNode node) {\n BinaryNode temp = min(node.right);\n if (node == root) {\n root = temp;\n if (temp.parent.right == temp) { //temp could have a child on the right\n temp.parent.right = temp.right;\n if (temp.right !...
[ "0.635257", "0.63497317", "0.6343343", "0.629354", "0.6262315", "0.6233057", "0.62104785", "0.6209366", "0.61795974", "0.61702406", "0.61336684", "0.6111164", "0.60891306", "0.60184675", "0.6011464", "0.5998601", "0.59949446", "0.59898233", "0.5989032", "0.5967837", "0.593749...
0.6443422
0
TODO Autogenerated method stub
public void afterCompletion(HttpServletRequest arg0, HttpServletResponse arg1, Object arg2, Exception arg3) throws Exception { }
{ "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 postHandle(HttpServletRequest arg0, HttpServletResponse arg1, Object arg2, ModelAndView arg3) throws Exception { }
{ "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 boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object arg2) throws Exception { boolean flag = false; String cxtPath = request.getContextPath(); String url = request.getRequestURI(); for (String param : IGNORE_URIS) { if (StringUtils.contains(param, url)) { flag = true; break; } } if (!flag) { String session = (String) request.getSession().getAttribute( Constant.SESSION_USER); if (StringUtils.isEmpty(session)) { if ("XMLHttpRequest".equalsIgnoreCase(request .getHeader("x-requested-with"))) { response.setStatus(5000); return true; } else { response.sendRedirect(cxtPath + "/index.html"); } } else { flag = true; } } return flag; }
{ "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.66713095", "0.6567948", "0.652319", "0.648097", "0.64770466", "0.64586824", "0.64132667", "0.6376419", "0.62759", "0.62545097", "0.62371093", "0.62237984", "0.6201738", "0.619477", "0.619477", "0.61924416", "0.61872935", "0.6173417", "0.613289", "0.6127952", "0.6080854", ...
0.0
-1
Returns the height of the horizontal scroll bar.
int getHScrollbarHeight();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected RectF getHorizontalScrollBarRect() {\n return mHorizontalScrollBar;\n }", "int getVScrollbarWidth();", "protected RectF getVerticalScrollBarRect(){\n return mVerticalScrollBar;\n }", "public JScrollPane getScrollbar(){\n\t\treturn scrollbar;//Return the scroll bar\n\t}", "publ...
[ "0.7397494", "0.709592", "0.68723303", "0.67631936", "0.65532273", "0.6528825", "0.65000546", "0.64720356", "0.64516926", "0.6416451", "0.63813484", "0.634961", "0.6328607", "0.62577665", "0.62396634", "0.62337", "0.6231988", "0.62311727", "0.62291306", "0.6224864", "0.621984...
0.8022364
0
Returns the width of the vertical scroll bar.
int getVScrollbarWidth();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getHScrollbarHeight();", "protected RectF getVerticalScrollBarRect(){\n return mVerticalScrollBar;\n }", "public int getScrollWidth() {\n\t\treturn this.scrollWidth;\n\t}", "public JScrollPane getScrollbar(){\n\t\treturn scrollbar;//Return the scroll bar\n\t}", "protected RectF getHorizontalS...
[ "0.71555823", "0.6972424", "0.6964514", "0.6879101", "0.68765944", "0.6729417", "0.66474795", "0.6601548", "0.64368886", "0.6390983", "0.6308435", "0.6307542", "0.6245358", "0.6162383", "0.61440116", "0.6052802", "0.60402846", "0.6033869", "0.59995073", "0.5988137", "0.597658...
0.8500365
0
Sets the scroll position of the child.
void setScrollPosition(int x, int y);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setViewPosition(Point p) {\n synchronized (scrollPane.getTreeLock()) {\n // Scroll the view now...\n super.setViewPosition(p);\n }\n }", "void setScrollLeft(int scrollLeft);", "void setScrollTop(int scrollTop);", ...
[ "0.6817857", "0.6505951", "0.6380501", "0.6377074", "0.61940795", "0.61672485", "0.6074568", "0.6029077", "0.6002682", "0.5976094", "0.5891629", "0.58037734", "0.5791298", "0.57840043", "0.577091", "0.5761455", "0.57594186", "0.575459", "0.56958896", "0.5670453", "0.5661585",...
0.7695933
0
Called when the child component changes its size.
void childResized(int w, int h);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void sizeChanged () {\n }", "public void notifyChildrenOfSizeChange() {\n Util.runDescendentsLayout(this);\n }", "@Override\n public void componentResized(ComponentEvent e) {\n }", "@Override\r\n\t\t\tpublic void componentResized(ComponentEvent ar...
[ "0.7853456", "0.7737373", "0.76552004", "0.759452", "0.7581016", "0.755684", "0.75276273", "0.75276273", "0.7462025", "0.73892987", "0.73544896", "0.73427784", "0.7268931", "0.7261033", "0.7243902", "0.7202716", "0.7197513", "0.7089856", "0.7089856", "0.7082736", "0.7050932",...
0.75401235
6
Sets the unit increment of one of the scroll pane's adjustables.
void setUnitIncrement(Adjustable adj, int u);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setUnitIncrement(int param1Int) {\n/* 730 */ this.unitIncrementSet = true;\n/* 731 */ putClientProperty(\"JScrollBar.fastWheelScrolling\", (Object)null);\n/* 732 */ super.setUnitIncrement(param1Int);\n/* */ }", "public int getUnitIncrement(int param1Int) {\n/* 746 */ ...
[ "0.7558754", "0.613276", "0.59901506", "0.58595604", "0.56634414", "0.55659544", "0.5414932", "0.540761", "0.53613347", "0.5350007", "0.53385836", "0.53233004", "0.53130406", "0.53104895", "0.5302578", "0.528715", "0.52798766", "0.52641696", "0.5230034", "0.52291435", "0.5196...
0.6929855
1
Sets the value for one of the scroll pane's adjustables.
void setValue(Adjustable adj, int v);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void adjustmentValueChanged(AdjustmentEvent e) {\n \tif (scrollBar1.getVerticalScrollBar().getValue() >= 1290) {\n \t\tbutton1.setEnabled(true);\n \t}\n }", "public void dispatch() {\n if (getScrollChild() == null) {\n return;\n }\n\n peer.ignore...
[ "0.61066955", "0.59172046", "0.5873946", "0.58564556", "0.58426476", "0.58065933", "0.57689375", "0.57557243", "0.57067347", "0.5562315", "0.55215895", "0.55133474", "0.5435415", "0.5428172", "0.5413442", "0.5394992", "0.5385587", "0.5382335", "0.5379829", "0.53553075", "0.53...
0.60217696
1
Constructor to be used when calling from actual context of the application
public FormValidationScriptVisitor(List<FormAttribute> declaredAttributes) { declaredAttributes.forEach(attribute -> declaredVariables.put(attribute.getVariableName(), attribute.getDataType())); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private ApplicationContext()\n\t{\n\t}", "public MyApp() {\n sContext = this;\n }", "private AppContext()\n {\n }", "public Context() {\n }", "public CH340Application() {\n sContext = this;\n }", "public TAppAccess() {\n\t}", "public DefaultApplication() {\n\t}", "private...
[ "0.7520221", "0.74515337", "0.73878425", "0.7293808", "0.7182664", "0.71314716", "0.68076277", "0.6793862", "0.6751672", "0.6681959", "0.6678292", "0.6666958", "0.66301864", "0.6619861", "0.66191536", "0.65969604", "0.6580514", "0.65779936", "0.6569443", "0.6569443", "0.65583...
0.0
-1
/ Allows nondeclared variable creation, but user needs to ensure the input contains the declarations, or an exception will be thrown in runtime (due to validation).
public FormValidationScriptVisitor() { super(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public Boolean visitDeclaration(FormScriptGrammarParser.DeclarationContext ctx) {\n DataType dataType = DataType.valueOf(ctx.type.getText());\n if (declaredVariables.get(ctx.name.getText()) != null) { // if variable already declared\n throw new IllegalArgumentException(\"Err...
[ "0.6438706", "0.6224057", "0.59217054", "0.58824486", "0.58127683", "0.5770632", "0.5738951", "0.5728532", "0.5728532", "0.5728379", "0.57255954", "0.5687568", "0.56278914", "0.5610816", "0.5590266", "0.5571233", "0.5541735", "0.5525055", "0.55241376", "0.5522616", "0.546371"...
0.0
-1
The start of the definition of rules
@Override public Boolean visitStart(FormScriptGrammarParser.StartContext ctx) { return visitChildren(ctx); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\npublic void initRules(){\r\n\t\r\n}", "Rule createRule();", "Rule createRule();", "Rule createRule();", "public Rules getRules()\r\n {\r\n return rules;\r\n }", "String getRules();", "@Override\n public List getRules() {\n return rules;\n }", "public FlowRule() {\r\n ...
[ "0.716117", "0.6842308", "0.6842308", "0.6842308", "0.6806792", "0.6753497", "0.673031", "0.67199415", "0.6698308", "0.6692289", "0.6640049", "0.6619587", "0.6569663", "0.6493521", "0.64896244", "0.64549977", "0.6414698", "0.63819015", "0.6365567", "0.63555366", "0.6318856", ...
0.0
-1
NOTE: there must be consistency between the DataType domain object names and the actual token names This is only so that the grammar also allows to declare the variables, in the context of the project, the User will never have to declare the variables because they were already defined in the attributes before defining the rules.
@Override public Boolean visitDeclaration(FormScriptGrammarParser.DeclarationContext ctx) { DataType dataType = DataType.valueOf(ctx.type.getText()); if (declaredVariables.get(ctx.name.getText()) != null) { // if variable already declared throw new IllegalArgumentException("Error at line: " + ctx.name.getLine() + ":" + ctx.name.getCharPositionInLine() + " variable " + ctx.name.getText() + " was already previously declared!"); // return false; //if we wanted to return the NOTOK/false result recursively, this would be here instead of the throw } declaredVariables.put(ctx.name.getText(), dataType); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "VarsDeclRule createVarsDeclRule();", "public VariableToken(String text) {\n super(text);\n }", "public VariableNode(String attr)\n {\n this.name = attr;\n }", "public interface UATokenizerConstants {\n\n /** End of File. */\n int EOF = 0;\n /** RegularExpression Id. */\n int WHITES...
[ "0.610609", "0.59114903", "0.5825624", "0.5706994", "0.55897725", "0.55883116", "0.5575416", "0.55416256", "0.5517347", "0.5510718", "0.5491513", "0.54818887", "0.54790485", "0.54356986", "0.5418458", "0.5388573", "0.53718626", "0.53419554", "0.53043735", "0.53004587", "0.529...
0.5781246
3
/Throws IllegalArgumentException if not semantically valid or variable wasn't declared Note: we throw an exception instead of storing the errors in a list due to it making more sense in the context of the application, as the users are also allowed to write the script line by line. We leave the return false as a comment so the reader can see what an implementation that recursively returns the result would look like.
@Override public Boolean visitVariableAttribution(FormScriptGrammarParser.VariableAttributionContext ctx) { if (!declaredVariables.containsKey(ctx.VARIABLE().getText())) { // this is validated in UI/controlled by flow in the UI so should never happen, but it remains here just in case throw new IllegalArgumentException("Semantic error at line: " + ctx.getStart().getLine() + ": variable " + ctx.VARIABLE().getText() + " wasn't declared!"); // return false; //if we wanted to return the NOTOK/false result recursively, this would be here instead of the throw } DataType dataType = declaredVariables.get(ctx.VARIABLE().getText()); boolean correctType = dataType.lexerValue().equals(ctx.value().start.getType()); /*will verify if the attribution is actually semantically valid, e.g if the variable was defined as an INTEGER, it can't be assigned a DATE*/ if (!correctType) { throw new IllegalArgumentException("Semantic error at line: " + ctx.getStart().getLine() + ":" + ctx.getStart().getCharPositionInLine() + ": Invalid attribution type!" + " variable " + ctx.VARIABLE().getText() + " can't be assigned the value " + ctx.value().getText()); // return false; //if we wanted to return the NOTOK/false result recursively, this would be here instead of the throw } //verify if operators are valid in the context of the datatype String operator = ctx.COMPARISON_OPERATORS().getText(); if (operator.equals("<") || operator.equals(">")) { if (dataType.equals(DataType.BOOLEAN) || dataType.equals(DataType.DATE) || dataType.equals(DataType.FILE)) { throw new IllegalArgumentException("Semantic error at line: " + ctx.getStart().getLine() + ":" + ctx.getStart().getCharPositionInLine() + ": Invalid comparison type!" + " variable " + ctx.VARIABLE().getText() + " can't be compared with operator '" + operator + "'"); } } return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract void checkWhetherVariable(SyntaxUnit use);", "@Override\n public Boolean visitDeclaration(FormScriptGrammarParser.DeclarationContext ctx) {\n DataType dataType = DataType.valueOf(ctx.type.getText());\n if (declaredVariables.get(ctx.name.getText()) != null) { // if variable already decla...
[ "0.5939114", "0.5698873", "0.5512859", "0.5493694", "0.5461182", "0.54124445", "0.54047984", "0.5348311", "0.53403014", "0.5334631", "0.53318626", "0.52966875", "0.52551395", "0.5254016", "0.52428526", "0.5238834", "0.51864594", "0.51798296", "0.51674074", "0.5158626", "0.515...
0.54039925
7
With dynamic programming. Time complexity O(No. of items Expected Weight)
public static int knapSackWithDP(int expectedWeight) { int N = values.length; int[][] dP = new int[N + 1][expectedWeight + 1]; boolean[][] takeSoln = new boolean[N + 1][expectedWeight + 1]; for (int i = 1; i <= N; i++) { for (int j = 1; j <= expectedWeight; j++) { if (weights[i - 1] > j) { dP[i][j] = dP[i - 1][j]; } else { int option1 = dP[i - 1][j], option2 = values[i - 1] + dP[i - 1][j - weights[i - 1]]; dP[i][j] = Math.max(option2, option1); takeSoln[i][j] = (option2 > option1); } } } System.out.println("Selected items are: "); int totalWt = 0, totalValue = 0; for (int k = N, wt = expectedWeight; k > 0; k--) { if (takeSoln[k][wt]) { totalWt += weights[k - 1]; totalValue += values[k - 1]; System.out.printf(" Item %d with weight %d and value %d\n", k, weights[k - 1], values[k - 1]); wt -= weights[k - 1]; } } System.out.printf("Calculated total weight= %d and total value= %d\n", totalWt, totalValue); return dP[N][expectedWeight]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private int optimize() {\n\t\t// items: Items sorted by value-to-weight ratio for linear relaxation\n\t\t// t: the decision vector being tested at each node\n\t\t// ws, vs, is, bs: stacks of weight, value, item id, whether bring item\n\t\t// p: stack pointer; i, b, weight, value: loop caches; best: max search\n\t\...
[ "0.7345551", "0.71857923", "0.6874977", "0.6697859", "0.6623731", "0.66015404", "0.6574661", "0.6539444", "0.65312326", "0.6495757", "0.64956975", "0.64951265", "0.6474207", "0.6456372", "0.63735646", "0.63697106", "0.6357988", "0.63428175", "0.6300504", "0.62843573", "0.6260...
0.611997
30
make camera follow a target entity
public void moveCam() { float x = this.cam_bind_x; //current pos the camera is binded to float y = this.cam_bind_y; //this amazing camera code is from: https://stackoverflow.com/questions/24047172/libgdx-camera-smooth-translation Vector3 target = new Vector3(x+MathUtils.cos(Global.m_angle)*20,y+MathUtils.sin(Global.m_angle)*20,0); final float speed = 0.1f, ispeed=1.0f-speed; Vector3 cameraPosition = cam.position; cameraPosition.scl(ispeed); target.scl(speed); cameraPosition.add(target); cam.position.set(cameraPosition); this.updateCam(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private TrackingResult followTarget(Rect target)\n\t{\n\t\t// Clear any existing target rectangle.\n\t\tcamera.addTarget(null);\n\t\t\n\t\t// Outline the target being tracked.\n\t\tcamera.addTarget(target);\n\t\t\n\t\t// This is field of view size.\n\t\tSize imageSize = camera.getImageSize();\n\t\t\n\t\t// get siz...
[ "0.72800136", "0.72604", "0.6750922", "0.6624118", "0.63173926", "0.63097775", "0.6290217", "0.62663555", "0.6175413", "0.61498386", "0.6128602", "0.61195856", "0.6111938", "0.60610425", "0.60524917", "0.6014375", "0.5853441", "0.58465844", "0.5836699", "0.58215046", "0.58074...
0.66820353
3
INTERNAL: Executed on the RCM when received. Just add the remote object reference to the connection list.
public void executeWithRCM(RemoteCommandManager rcm) { RemoteConnection connection = rcm.getTransportManager().createConnection(this.getServiceId()); // null is returned from createConnection if connection cannot be created if (connection != null) { rcm.getTransportManager().getConnectionsToExternalServices().put(connection.getServiceId().getId(), connection); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void connectObject(Remote remoteObj)\n\tthrows RemoteException\n {\n StubAdapter.connect\n (remoteObj, (com.sun.corba.ee.spi.orb.ORB)ORBManager.getORB()); \n }", "private void establishConnection() {\n\n try {\n\n for(Clone clone:this.clones){\n C...
[ "0.6116003", "0.60725796", "0.5991449", "0.58689564", "0.58672374", "0.5750971", "0.5717659", "0.57175255", "0.56363994", "0.5623885", "0.5542973", "0.550479", "0.5467163", "0.54637736", "0.5459903", "0.543182", "0.5416747", "0.5414955", "0.5412949", "0.5394295", "0.5384313",...
0.5704263
8
Internal RCM commands do not implement this method
public void executeWithSession(AbstractSession session) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected abstract DispatchOutcome dispatchCommand(CommandEnvelope cmd);", "@Override\n\tpublic void onMessage(CommandMessage msg) {\n\t}", "private GetLCCommand() {\n initFields();\n }", "public void command(byte[] cmdMessage) throws SAPIException{\r\n\t\t\t\t//sends command to RBNB\r\n\t\t\t\t\r\n\...
[ "0.64483696", "0.6428367", "0.62497044", "0.61863184", "0.6167178", "0.6127029", "0.61241174", "0.6011662", "0.60090595", "0.59848726", "0.59826076", "0.5963515", "0.5938374", "0.59369105", "0.59356713", "0.5890723", "0.5814816", "0.57980144", "0.5744377", "0.57229435", "0.57...
0.0
-1
/ /home/zy/workspace2/ReadFromZYF/LffLogs/JpfTargetApollo.main().txt Parse time: 0.006 seconds. Solve time: 0.479 seconds.
public static void initBenchmark() { functionName.add(" JpfTargetApollo.main()_0"); paraName.add("in2_0_4_SYMREAL,in1_0_1_SYMREAL"); paraType.add("double,double"); binaryExp.add("(((((in2_0_4_SYMREAL-in1_0_1_SYMREAL)/0.055)/2.0)<0.0))"); //Parse time: 0.0 seconds. Solve time: 0.014 seconds. functionName.add(" JpfTargetApollo.main()_1"); paraName.add("in2_0_4_SYMREAL,in1_0_1_SYMREAL"); paraType.add("double,double"); binaryExp.add("((0.0==(((in2_0_4_SYMREAL-in1_0_1_SYMREAL)/0.055)/2.0)))"); //Parse time: 0.0 seconds. Solve time: 0.003 seconds. functionName.add(" JpfTargetApollo.main()_2"); paraName.add("in2_0_4_SYMREAL,in1_0_1_SYMREAL"); paraType.add("double,double"); binaryExp.add("(((((in2_0_4_SYMREAL-in1_0_1_SYMREAL)/0.055)/2.0)>0.0))"); //Parse time: 0.0 seconds. Solve time: 0.48 seconds. functionName.add(" JpfTargetApollo.main()_3"); paraName.add("in2_0_4_SYMREAL,in1_0_1_SYMREAL"); paraType.add("double,double"); binaryExp.add("(((0.18181818181818185*(((0.5*(((((((10.0*in2_0_4_SYMREAL)+-0.0)-0.0)/1.0)/0.055)/2.0)*((((((10.0*in2_0_4_SYMREAL)+-0.0)-0.0)/1.0)/0.055)/2.0)))+(0.0-(((in2_0_4_SYMREAL-in1_0_1_SYMREAL)/0.055)/2.0)))-0.04759988869075444))<0.0)) && (((((in2_0_4_SYMREAL-in1_0_1_SYMREAL)/0.055)/2.0)<0.0))"); //Parse time: 0.0 seconds. Solve time: 0.247 seconds. functionName.add(" JpfTargetApollo.main()_4"); paraName.add("in2_0_4_SYMREAL,in1_0_1_SYMREAL"); paraType.add("double,double"); binaryExp.add("((0.0==(0.18181818181818185*(((0.5*(((((((10.0*in2_0_4_SYMREAL)+-0.0)-0.0)/1.0)/0.055)/2.0)*((((((10.0*in2_0_4_SYMREAL)+-0.0)-0.0)/1.0)/0.055)/2.0)))+(0.0-(((in2_0_4_SYMREAL-in1_0_1_SYMREAL)/0.055)/2.0)))-0.04759988869075444)))) && (((((in2_0_4_SYMREAL-in1_0_1_SYMREAL)/0.055)/2.0)<0.0))"); //Parse time: 0.0 seconds. Solve time: 0.003 seconds. functionName.add(" JpfTargetApollo.main()_5"); paraName.add("in2_0_4_SYMREAL,in1_0_1_SYMREAL"); paraType.add("double,double"); binaryExp.add("(((0.18181818181818185*(((0.5*(((((((10.0*in2_0_4_SYMREAL)+-0.0)-0.0)/1.0)/0.055)/2.0)*((((((10.0*in2_0_4_SYMREAL)+-0.0)-0.0)/1.0)/0.055)/2.0)))+(0.0-(((in2_0_4_SYMREAL-in1_0_1_SYMREAL)/0.055)/2.0)))-0.04759988869075444))>0.0)) && (((((in2_0_4_SYMREAL-in1_0_1_SYMREAL)/0.055)/2.0)<0.0))"); //Parse time: 0.0 seconds. Solve time: 0.041 seconds. functionName.add(" JpfTargetApollo.main()_6"); paraName.add("in2_1_5_SYMREAL,in1_1_2_SYMREAL,in2_2_6_SYMREAL,in1_2_3_SYMREAL,in2_0_4_SYMREAL,in1_0_1_SYMREAL"); paraType.add("double,double,double,double,double,double"); binaryExp.add("(((((((-0.7071067811865476*(in2_1_5_SYMREAL-in1_1_2_SYMREAL))+0.0)+(0.7071067811865476*(in2_2_6_SYMREAL-in1_2_3_SYMREAL)))/7.855339059327378E-4)/2.0)<0.0)) && (((((in2_0_4_SYMREAL-in1_0_1_SYMREAL)/0.055)/2.0)<0.0))"); //Parse time: 0.0 seconds. Solve time: 0.014 seconds. functionName.add(" JpfTargetApollo.main()_7"); paraName.add("in2_1_5_SYMREAL,in1_1_2_SYMREAL,in2_2_6_SYMREAL,in1_2_3_SYMREAL,in2_0_4_SYMREAL,in1_0_1_SYMREAL"); paraType.add("double,double,double,double,double,double"); binaryExp.add("((0.0==(((((-0.7071067811865476*(in2_1_5_SYMREAL-in1_1_2_SYMREAL))+0.0)+(0.7071067811865476*(in2_2_6_SYMREAL-in1_2_3_SYMREAL)))/7.855339059327378E-4)/2.0))) && (((((in2_0_4_SYMREAL-in1_0_1_SYMREAL)/0.055)/2.0)<0.0))"); //Parse time: 0.0 seconds. Solve time: 0.002 seconds. functionName.add(" JpfTargetApollo.main()_8"); paraName.add("in2_1_5_SYMREAL,in1_1_2_SYMREAL,in2_2_6_SYMREAL,in1_2_3_SYMREAL,in2_0_4_SYMREAL,in1_0_1_SYMREAL"); paraType.add("double,double,double,double,double,double"); binaryExp.add("(((((((-0.7071067811865476*(in2_1_5_SYMREAL-in1_1_2_SYMREAL))+0.0)+(0.7071067811865476*(in2_2_6_SYMREAL-in1_2_3_SYMREAL)))/7.855339059327378E-4)/2.0)>0.0)) && (((((in2_0_4_SYMREAL-in1_0_1_SYMREAL)/0.055)/2.0)<0.0))"); // 可解 Parse time: 0.0 seconds. Solve time: 0.59 seconds. functionName.add(" JpfTargetApollo.main()_9"); paraName.add("in2_1_5_SYMREAL,in2_2_6_SYMREAL,in1_1_2_SYMREAL,in1_2_3_SYMREAL,in2_0_4_SYMREAL,in1_0_1_SYMREAL"); paraType.add("double,double,double,double,double,double"); binaryExp.add("(((0.18181818181818185*(((0.5*((((((-0.7071067811865476*((((10.0*in2_1_5_SYMREAL)+-0.0)-0.0)/1.0))+0.0)+(0.7071067811865476*((((10.0*in2_2_6_SYMREAL)+-0.0)-0.0)/1.0)))/7.855339059327378E-4)/2.0)*(((((-0.7071067811865476*((((10.0*in2_1_5_SYMREAL)+-0.0)-0.0)/1.0))+0.0)+(0.7071067811865476*((((10.0*in2_2_6_SYMREAL)+-0.0)-0.0)/1.0)))/7.855339059327378E-4)/2.0)))+(0.0-(((((-0.7071067811865476*(in2_1_5_SYMREAL-in1_1_2_SYMREAL))+0.0)+(0.7071067811865476*(in2_2_6_SYMREAL-in1_2_3_SYMREAL)))/7.855339059327378E-4)/2.0)))-3.332757323673897))<0.0)) && (((((((-0.7071067811865476*(in2_1_5_SYMREAL-in1_1_2_SYMREAL))+0.0)+(0.7071067811865476*(in2_2_6_SYMREAL-in1_2_3_SYMREAL)))/7.855339059327378E-4)/2.0)<0.0)) && (((((in2_0_4_SYMREAL-in1_0_1_SYMREAL)/0.055)/2.0)<0.0))"); //Parse time: 0.0 seconds. Solve time: 0.455 seconds. functionName.add(" JpfTargetApollo.main()_10"); paraName.add("in2_1_5_SYMREAL,in2_2_6_SYMREAL,in1_1_2_SYMREAL,in1_2_3_SYMREAL,in2_0_4_SYMREAL,in1_0_1_SYMREAL"); paraType.add("double,double,double,double,double,double"); binaryExp.add("((0.0==(0.18181818181818185*(((0.5*((((((-0.7071067811865476*((((10.0*in2_1_5_SYMREAL)+-0.0)-0.0)/1.0))+0.0)+(0.7071067811865476*((((10.0*in2_2_6_SYMREAL)+-0.0)-0.0)/1.0)))/7.855339059327378E-4)/2.0)*(((((-0.7071067811865476*((((10.0*in2_1_5_SYMREAL)+-0.0)-0.0)/1.0))+0.0)+(0.7071067811865476*((((10.0*in2_2_6_SYMREAL)+-0.0)-0.0)/1.0)))/7.855339059327378E-4)/2.0)))+(0.0-(((((-0.7071067811865476*(in2_1_5_SYMREAL-in1_1_2_SYMREAL))+0.0)+(0.7071067811865476*(in2_2_6_SYMREAL-in1_2_3_SYMREAL)))/7.855339059327378E-4)/2.0)))-3.332757323673897)))) && (((((((-0.7071067811865476*(in2_1_5_SYMREAL-in1_1_2_SYMREAL))+0.0)+(0.7071067811865476*(in2_2_6_SYMREAL-in1_2_3_SYMREAL)))/7.855339059327378E-4)/2.0)<0.0)) && (((((in2_0_4_SYMREAL-in1_0_1_SYMREAL)/0.055)/2.0)<0.0))"); //Parse time: 0.0 seconds. Solve time: 0.069 seconds. functionName.add(" JpfTargetApollo.main()_11"); paraName.add("in2_1_5_SYMREAL,in2_2_6_SYMREAL,in1_1_2_SYMREAL,in1_2_3_SYMREAL,in2_0_4_SYMREAL,in1_0_1_SYMREAL"); paraType.add("double,double,double,double,double,double"); binaryExp.add("(((0.18181818181818185*(((0.5*((((((-0.7071067811865476*((((10.0*in2_1_5_SYMREAL)+-0.0)-0.0)/1.0))+0.0)+(0.7071067811865476*((((10.0*in2_2_6_SYMREAL)+-0.0)-0.0)/1.0)))/7.855339059327378E-4)/2.0)*(((((-0.7071067811865476*((((10.0*in2_1_5_SYMREAL)+-0.0)-0.0)/1.0))+0.0)+(0.7071067811865476*((((10.0*in2_2_6_SYMREAL)+-0.0)-0.0)/1.0)))/7.855339059327378E-4)/2.0)))+(0.0-(((((-0.7071067811865476*(in2_1_5_SYMREAL-in1_1_2_SYMREAL))+0.0)+(0.7071067811865476*(in2_2_6_SYMREAL-in1_2_3_SYMREAL)))/7.855339059327378E-4)/2.0)))-3.332757323673897))>0.0)) && (((((((-0.7071067811865476*(in2_1_5_SYMREAL-in1_1_2_SYMREAL))+0.0)+(0.7071067811865476*(in2_2_6_SYMREAL-in1_2_3_SYMREAL)))/7.855339059327378E-4)/2.0)<0.0)) && (((((in2_0_4_SYMREAL-in1_0_1_SYMREAL)/0.055)/2.0)<0.0))"); //Parse time: 0.001 seconds. Solve time: 0.035 seconds. functionName.add(" JpfTargetApollo.main()_12"); paraName.add("in2_1_5_SYMREAL,in1_1_2_SYMREAL,in2_2_6_SYMREAL,in1_2_3_SYMREAL,in2_0_4_SYMREAL,in1_0_1_SYMREAL"); paraType.add("double,double,double,double,double,double"); binaryExp.add("(((((((0.7071067811865476*(in2_1_5_SYMREAL-in1_1_2_SYMREAL))+0.0)+(0.7071067811865476*(in2_2_6_SYMREAL-in1_2_3_SYMREAL)))/0.006285533905932738)/2.0)<0.0)) && (((((((-0.7071067811865476*(in2_1_5_SYMREAL-in1_1_2_SYMREAL))+0.0)+(0.7071067811865476*(in2_2_6_SYMREAL-in1_2_3_SYMREAL)))/7.855339059327378E-4)/2.0)<0.0)) && (((((in2_0_4_SYMREAL-in1_0_1_SYMREAL)/0.055)/2.0)<0.0))"); //Parse time: 0.0 seconds. Solve time: 0.188 seconds. functionName.add(" JpfTargetApollo.main()_13"); paraName.add("in2_1_5_SYMREAL,in1_1_2_SYMREAL,in2_2_6_SYMREAL,in1_2_3_SYMREAL,in2_0_4_SYMREAL,in1_0_1_SYMREAL"); paraType.add("double,double,double,double,double,double"); binaryExp.add("((0.0==(((((0.7071067811865476*(in2_1_5_SYMREAL-in1_1_2_SYMREAL))+0.0)+(0.7071067811865476*(in2_2_6_SYMREAL-in1_2_3_SYMREAL)))/0.006285533905932738)/2.0))) && (((((((-0.7071067811865476*(in2_1_5_SYMREAL-in1_1_2_SYMREAL))+0.0)+(0.7071067811865476*(in2_2_6_SYMREAL-in1_2_3_SYMREAL)))/7.855339059327378E-4)/2.0)<0.0)) && (((((in2_0_4_SYMREAL-in1_0_1_SYMREAL)/0.055)/2.0)<0.0))"); //Parse time: 0.0 seconds. Solve time: 0.002 seconds. functionName.add(" JpfTargetApollo.main()_14"); paraName.add("in2_1_5_SYMREAL,in1_1_2_SYMREAL,in2_2_6_SYMREAL,in1_2_3_SYMREAL,in2_0_4_SYMREAL,in1_0_1_SYMREAL"); paraType.add("double,double,double,double,double,double"); binaryExp.add("(((((((0.7071067811865476*(in2_1_5_SYMREAL-in1_1_2_SYMREAL))+0.0)+(0.7071067811865476*(in2_2_6_SYMREAL-in1_2_3_SYMREAL)))/0.006285533905932738)/2.0)>0.0)) && (((((((-0.7071067811865476*(in2_1_5_SYMREAL-in1_1_2_SYMREAL))+0.0)+(0.7071067811865476*(in2_2_6_SYMREAL-in1_2_3_SYMREAL)))/7.855339059327378E-4)/2.0)<0.0)) && (((((in2_0_4_SYMREAL-in1_0_1_SYMREAL)/0.055)/2.0)<0.0))"); // 可解Parse time: 0.0 seconds. Solve time: 0.454 seconds. functionName.add(" JpfTargetApollo.main()_15"); paraName.add("in2_1_5_SYMREAL,in2_2_6_SYMREAL,in1_1_2_SYMREAL,in1_2_3_SYMREAL,in2_0_4_SYMREAL,in1_0_1_SYMREAL"); paraType.add("double,double,double,double,double,double"); binaryExp.add("(((0.18181818181818185*(((0.5*((((((0.7071067811865476*((((10.0*in2_1_5_SYMREAL)+-0.0)-0.0)/1.0))+0.0)+(0.7071067811865476*((((10.0*in2_2_6_SYMREAL)+-0.0)-0.0)/1.0)))/0.006285533905932738)/2.0)*(((((0.7071067811865476*((((10.0*in2_1_5_SYMREAL)+-0.0)-0.0)/1.0))+0.0)+(0.7071067811865476*((((10.0*in2_2_6_SYMREAL)+-0.0)-0.0)/1.0)))/0.006285533905932738)/2.0)))+(0.0-(((((0.7071067811865476*(in2_1_5_SYMREAL-in1_1_2_SYMREAL))+0.0)+(0.7071067811865476*(in2_2_6_SYMREAL-in1_2_3_SYMREAL)))/0.006285533905932738)/2.0)))-0.4165109785694488))<0.0)) && (((((((0.7071067811865476*(in2_1_5_SYMREAL-in1_1_2_SYMREAL))+0.0)+(0.7071067811865476*(in2_2_6_SYMREAL-in1_2_3_SYMREAL)))/0.006285533905932738)/2.0)<0.0)) && (((((((-0.7071067811865476*(in2_1_5_SYMREAL-in1_1_2_SYMREAL))+0.0)+(0.7071067811865476*(in2_2_6_SYMREAL-in1_2_3_SYMREAL)))/7.855339059327378E-4)/2.0)<0.0)) && (((((in2_0_4_SYMREAL-in1_0_1_SYMREAL)/0.055)/2.0)<0.0))"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) throws Exception {\n\n // Create a buffered reader so that we can read full lines of input.\n BufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\n // Retrieve the name of the file to build the graph from.\n System.out.printf(\"Enter the na...
[ "0.60559464", "0.6018329", "0.596444", "0.5948753", "0.5917568", "0.5899849", "0.5855357", "0.5846092", "0.58263123", "0.5811143", "0.57724494", "0.5765423", "0.57605314", "0.5735043", "0.5704295", "0.57036316", "0.57021576", "0.5642784", "0.5607331", "0.56063354", "0.5586436...
0.62374544
0
TODO Autogenerated method stub
public static void main(String[] args) { ShapeFactory sf = new ShapeFactory(); Shape value = sf.createShape("Rectangle"); value.draw(); Shape value1 = sf.createShape("Circle"); value1.draw(); Shape value2 = sf.createShape("Square"); value2.draw(); }
{ "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