query
stringlengths
8
1.54M
document
stringlengths
9
312k
negatives
listlengths
19
20
metadata
dict
$ANTLR end "rule__XMemberFeatureCall__Group_1_1_1__2__Impl" $ANTLR start "rule__XMemberFeatureCall__Group_1_1_1__3" InternalDroneScript.g:8573:1: rule__XMemberFeatureCall__Group_1_1_1__3 : rule__XMemberFeatureCall__Group_1_1_1__3__Impl ;
public final void rule__XMemberFeatureCall__Group_1_1_1__3() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalDroneScript.g:8577:1: ( rule__XMemberFeatureCall__Group_1_1_1__3__Impl ) // InternalDroneScript.g:8578:2: rule__XMemberF...
[ "public final void rule__XMemberFeatureCall__Group_1_1__3__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalDroneScript.g:8373:1: ( ( ( rule__XMemberFeatureCall__Group_1_1_3__0 )? ) )\r\n // InternalDroneScri...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Set a cell state.
void setCell(int y, int x, int state);
[ "public void setCellState(int newState) {\n this.myState = newState;\n }", "protected abstract void setCell(int x, int y, boolean state);", "public void setCellState(boolean state) {\n\t\tthis.cellState = state;\n\t}", "public void setCellState(int i, int j, CellState value) {\n switch (value) {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get the mailRecipients value.
public List<MailRecipient> mailRecipients() { return this.mailRecipients; }
[ "public String[] getRecipients() {\n return recipients;\n }", "List<String> getRecipients();", "@Override\n public java.lang.String getRecipientEmails() {\n return _remindInfo.getRecipientEmails();\n }", "@Schema(example = \"[\\\"https://app.example.com/saml\\\"]\", description = \"Addi...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get Fluent web driver
public static FluentWebDriver getFluentWebDriver() { if (fluentWebDriver != null) { return fluentWebDriver; } fluentWebDriver = new FluentWebDriver(getDefaultDriver()); return fluentWebDriver; }
[ "java.lang.String getDriver();", "public WebDriver getWebdriver() {\n return driver.get();\n }", "public WebServiceDriver getWebServiceDriver() {\n return this.getTestObject().getWebServiceDriver();\n }", "public WebDriver createWebdriver();", "public WebDriver getDriver() \n {\n ret...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
End of Gen_verifyTextNotEqual(String object, String data) /34 > Verify list of elements present
public static void Gen_VerifyListOfElementsExist(String object, String data) { try { App_Log.debug("Validating list of elements"); GenericKeywords.Gen_webDriverWaitByPresence(object); List<WebElement> list=GenericKeywords.driver.findElements(By.xpath(object))...
[ "public static void Gen_VerifyListOfElementsNotExist(String object, String data) \n {\n try {\n App_Log.debug(\"Validating list of elements\");\n GenericKeywords.Gen_webDriverWaitByPresence(object);\n \n List<WebElement> list=GenericKeywords.driver.findElements(B...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Loop through the current set of House objects and collect all contained objects with reference houseNext pointing to the object passed as parameter.
public HouseSet filterHouseNext(Object value) { ObjectSet neighbors = new ObjectSet(); if (value instanceof Collection) { neighbors.addAll((Collection<?>) value); } else { neighbors.add(value); } HouseSet answer = new HouseSet(); ...
[ "public HouseSet getHouseNext()\n {\n HouseSet result = new HouseSet();\n \n for (House obj : this)\n {\n result.with(obj.getHouseNext());\n }\n \n return result;\n }", "public HouseSet withHouseNext(House value)\n {\n for (House obj : this)\n {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Asynchronously arrange many cards. The callback function must provide a new data structure that will not affect the provided list of cards when modified
void arrangeCards(List<Card> cards, String title, Consumer<List<Card>> callback);
[ "void selectCardsFrom(int number, List<Card> cards, String title, Consumer<List<Card>> callback);", "void updateCards(List<CardEntity> data);", "public void distributeCards() {\n\t\tplayersCards.removeAll(playersCards);\n\t\t// initialize cards list of players\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\tArrayList...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
method that gets defaultLangCode
public String getDefaultLangCode() { return defaultLangCode; }
[ "String getDefaultLanguage();", "public abstract String getDefaultLanguage();", "public String getForSystemDefaultLanguage();", "String getLang1();", "java.lang.String getLanguage();", "public String getDefaultLanguage() throws ToolException\n {\n String select = \"select value from sbrext.tool_...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Retrieves a list of ShippingServiceLevel UIDs where the last modified date is later than the specified date.
List<Long> findUidsByModifiedDate(final Date date);
[ "@RequestMapping(path=\"/resources\", method=RequestMethod.GET)\n public @ResponseBody List<Level> getDateBased(@RequestParam(\"modifiedafter\") String date, HttpServletResponse response) {\n List<Node> nodes = jdbct.getModifiedAfter(date);\n return convertNodeListToLevelList(nodes);\n }", "pu...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
deletes the files from the cache directory.
private void deleteCacheFiles() { // get the directory file File cache = new File(Constants.CACHE_DIR_PATH); // check if we got the correct instance of that directory file. if (!cache.exists() || !cache.isDirectory()) return; // gets the list of files in the directory File[] files = cache.listFiles();...
[ "public void clear() {\n File[] files = cacheDir.listFiles();\n for (File f : files)\n f.delete();\n }", "public void clear() {\n File[] files = cacheDir.listFiles();\n if(files==null)\n return;\n for(File f:files)\n f.delete();\n }", "pu...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
check if character is dead or not
public static boolean characterDeathCheck(){ if (MainCharacter.hpNow <= 0){ return true; } return false; }
[ "public boolean partyDead() {\r\n\t\tfor (int i = 0; i < characters.length; i ++) {\r\n\t\t\tif (characters[i] != null) {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "boolean hasCharmeffect();", "void dead(PlayableCharacter player);", "public boolean isDead();", "public boolean...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the statusDate attribute of the ScheduledRecipient object
public java.sql.Timestamp getStatusDate() { return statusDate; }
[ "@Override\n public java.util.Date getStatusDate() {\n return _person.getStatusDate();\n }", "@Override\n\tpublic Date getStatusDate() {\n\t\treturn _announcement.getStatusDate();\n\t}", "public Date getStatus_date() {\r\n\t\treturn status_date;\r\n\t}", "public java.sql.Timestamp getStatusdate()...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "entryRulefindLogicalAnd" $ANTLR start "rulefindLogicalAnd" InternalMASL.g:5729:1: rulefindLogicalAnd returns [EObject current=null] : ( ( (lv_f_0_0= rulefindPrimary ) ) (this_AND_1= RULE_AND ( (lv_f_2_0= rulefindPrimary ) ) ) ) ;
public final EObject rulefindLogicalAnd() throws RecognitionException { EObject current = null; Token this_AND_1=null; EObject lv_f_0_0 = null; EObject lv_f_2_0 = null; enterRule(); try { // InternalMASL.g:5735:2: ( ( ( (lv_f_0_0= rulefindPrimary ) ) (t...
[ "public final EObject entryRulefindLogicalAnd() throws RecognitionException {\n EObject current = null;\n\n EObject iv_rulefindLogicalAnd = null;\n\n\n try {\n // InternalMASL.g:5722:55: (iv_rulefindLogicalAnd= rulefindLogicalAnd EOF )\n // InternalMASL.g:5723:2: iv_rulefi...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
builder factory method for MessagesConfiguration
public static MessagesConfigurationBuilder builder() { return MessagesConfigurationBuilder.of(); }
[ "public static MessagesConfigurationBuilder builder(final MessagesConfiguration template) {\n return MessagesConfigurationBuilder.of(template);\n }", "@Generated(value = \"io.vrap.rmf.codegen.rendering.CoreCodeGenerator\", comments = \"https://github.com/commercetools/rmf-codegen\")\n@JsonDeserialize(as...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Pings the companion if sufficient time passed since the last ping.
public void pingIfNeeded() { long currentTimeMs = SystemClock.elapsedRealtime(); if (mLatestPingTimeMs == 0 || currentTimeMs - mLatestPingTimeMs >= mMinPingIntervalMs) { ping(); } }
[ "public boolean allowNewPings() {\n \tsynchronized(PING_LOCK) {\n\t long curTime = System.currentTimeMillis();\n\t\t\t\n\t\t\t// don't allow new pings if the connection could drop any second\n\t\t\tif(!isStable(curTime)) return false;\n\t if(curTime < _nextPingTime) {\n\t return false;\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Method: removeIndex Description: Removes the element at the given index. Returns true if the element was removed. False if otherwise.
public boolean removeIndex(int index) { boolean removed = false; if(!(index < 0 || index >= list.length)) { Object[] newList = new Object[list.length-1]; for(int i = 0; i<index; i++) { newList[i] = list[i]; } for(int i = index; i<list.length-1; i++) { newList[i] = list[i+1]; } lis...
[ "public boolean removeAt(int index) {\n return false;\r\n }", "public void remove(int index);", "public boolean deleteItem(int index);", "public static <T> boolean removeWithCheck(List<T> collection, int index) {\n\t\tif (0 <= index && index < collection.size()) {\n\t\t\tcollection.remove(index);\n\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
The value of the option. E.g., if the option is 'Nrha', the value will be an nrha_id.
public String getOptionValue() { return m_OptionValue; }
[ "String getOptionValue(String optionName);", "Object optionValue(String name);", "public String getValue(String opt) {\n return (String)m_commandLine.getValue(opt);\n }", "public java.lang.String getDestinoOptionValue(int optionIndex);", "public T getSelectedValueOption() {\r\n return selectedVal...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
int32 reducers = 6;
public int getReducers() { return reducers_; }
[ "int getReducers();", "public int getReducers() {\n return reducers_;\n }", "public int num_reductions() {return _num_reductions;}", "public int getNumReducers() {\n\t\treturn numReducers;\n\t}", "static int sharedCount(int c) { return c >>> SHARED_SHIFT; }", "BigInteger getConcurrentConsumers(...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the target of the mirror edge.
public Node target() { return target; }
[ "MirrorDirection direction();", "public Vertex getTarget(Edge edge)\n {\n return ((Transition)edge).getDestination();\n }", "public Node getTargetNode() {\r\n return targetNode;\r\n }", "public Point getTarget() {\n\t\treturn _target;\n\t}", "public int getTarget() {\n return...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test of setNetwork & getNetwork method, of class AirNetwork.
@Test public void testGetSetNetwork() { System.out.println("getSetNetwork"); // Test get/set pair MapGraph<Coordinate, Segment> expResult = testMap; instance.setNetwork(testMap); MapGraph<Coordinate, Segment> result = instance.getNetwork(); assertEquals(expResult, re...
[ "public void setNetwork(Network network);", "public void setNetwork(Network network) {\n\t\tthis.network = network;\n\t}", "Network getNetwork();", "public void setNetwork(byte network) {\n\t\tif(this.network == ChainId.MAINNET && network == ChainId.ROPSTEN && hostName.equals(host.getInfuraHostMainNet()))\r\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method sets the value of the database column pc_stock_info.stock_number
public void setStockNumber(Integer stockNumber) { this.stockNumber = stockNumber; }
[ "public void setStock_num(Integer stock_num) {\n this.stock_num = stock_num;\n }", "public void setStockCode(Integer stockCode) {\r\n this.stockCode = stockCode;\r\n }", "public void setStockCode(String stockCode) {\r\n this.stockCode = stockCode;\r\n }", "public void setStock(in...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Blocks until thread has started
public void waitUntilStarted() { mStarted.block(); }
[ "public void waitToFinish()\n {\n while(!this.finished)\n {\n try\n {\n Thread.sleep(1);\n }\n catch (InterruptedException e)\n {\n e.printStackTrace();\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method initializes btnModifica
private JButton getBtnModifica() { if (btnModifica == null) { try { btnModifica = new JButton(); btnModifica.setText("Modifica"); // Generated btnModifica.addActionListener(new MyActionListener()); } catch (java.lang.Throwable e) { // TODO: Something } } return btnModifica; }
[ "private void editButtonInitialization() {\n btnEditResident = new JButton[adapter.getResidents().size()];\n\n for (int i = 0; i < adapter.getResidents().size(); i++) {\n btnEditResident[i] = new JButton();\n btnEditResident[i].setBackground(lightgrey);\n btnEditReside...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns all rows from the struttura_pasti table that match the criteria 'spa_id = :spaId'.
public StrutturaPasti[] findWhereSpaIdEquals(long spaId) throws StrutturaPastiDaoException { return findByDynamicSelect( SQL_SELECT + " WHERE spa_id = ? ORDER BY spa_id", new Object[] { new Long(spaId) } ); }
[ "public StrutturaPasti findByPrimaryKey(long spaId) throws StrutturaPastiDaoException\n\t{\n\t\tStrutturaPasti ret[] = findByDynamicSelect( SQL_SELECT + \" WHERE spa_id = ?\", new Object[] { new Long(spaId) } );\n\t\treturn ret.length==0 ? null : ret[0];\n\t}", "public StrutturaPasti[] findAll() throws Struttura...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Default constructor for test class Combinators
public Combinators() { }
[ "public AuxiliarTest()\n {\n }", "public Chain() {\r\n\r\n\t\t}", "public TestSequence() {\n }", "private Tester() {\n }", "public MultipleChoiceSet() {\n }", "public AllLaboTest() {\n }", "public MuxLearner(Learner base) { this(\"\", base); }", "public SwerveAutoTest() {\n //...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
.dstore.values.StringValue matching_value = 4;
io.dstore.values.StringValue getMatchingValue();
[ "io.dstore.values.StringValue getValue();", "io.dstore.values.StringValue getSearchValue();", "io.dstore.values.StringValue getValueList1();", "io.dstore.values.StringValue getCondition1();", "io.dstore.values.StringValue getDescription();", "io.dstore.values.StringValue getValueList2();", "io.dstore.va...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates a connection that can then be given to other AWS services like CodePipeline so that it can access thirdparty code repositories. The connection is in pending status until the thirdparty connection handshake is completed from the console.
java.util.concurrent.Future<CreateConnectionResult> createConnectionAsync(CreateConnectionRequest createConnectionRequest);
[ "public Connection createConnection();", "Connection createConnection();", "protected Connection doCreateConnection() throws IOException {\t\n\t\treturn this.rabbitConnectionFactory.newConnection();\t\n\t}", "protected StreamConnection connect() throws IOException {\n StreamConnection sc;\n Stri...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the best image width for a given image type. The image type must be one of LIST_ELEMENT, CHOICE_GROUP_ELEMENT, or ALERT.
public int getBestImageWidth(int imageType) { return 0; // TODO implement getBestImageWidth }
[ "public int getBestImageHeight(int imageType) {\n \t\treturn 0;\n \t\t// TODO implement getBestImageHeight\n \t}", "public int getPreferredHeight(int width) {\n if (!isImageSizeKnown()) return 0;\n\n int imageWidth = image.getWidth(this);\n int imageHeight = image.getHeight(this);\n\n double imageRati...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Declines any incoming call.
public void declineIncomingCall(Context context) { // By the time we receive this intent, we could be shut down and call list // could be null. Bail in those cases. if (mCallList == null) { StatusBarNotifier.clearAllCallNotifications(context); return; } ...
[ "void declineCall();", "public void disconnect() {\n\t\tfor (int j = 0; j < callsOut.size(); j++) {\n\t\t\tActivityCall call = (ActivityCall) callsOut.elementAt(j);\n\t\t\tcall.getDestination().removeCaller(call.getSource());\n\t\t}\n\t}", "private void exitAction_main_region_IncomingCall() {\n\t\ttimer.unsetTi...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gives the payoff matrix for the game
public PayoffMatrix getPayoffMatrix() { return payoffMatrix; }
[ "protected void initMatrix()\r\n {\r\n\tpayoffs = new DoubleTensor[getNumPlayers()];\r\n\r\n\tfor(int i=0; i<getNumPlayers(); i++)\r\n\t payoffs[i] = new DoubleTensor(getNumActions());\r\n }", "public HashMap<String, int[]> memberPayments(){\r\n //2d array create\r\n String[][] temp;\r\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Finds and returns the installable unit with the given id, and optionally the given version.
private IInstallableUnit findUnit(String id, Version version) throws CoreException { if (id == null) throw fail(Messages.Op_NoId); VersionRange range = VersionRange.emptyRange; if (version != null && !version.equals(Version.emptyVersion)) range = new VersionRange(version, true, version, true); Query...
[ "PackingUnitEntity getPackingUnitById(Integer id);", "public Manufacturer findById(String id) {\n return manufacturerRepository.findById(id).orElse(null);\n }", "String getUnitVersion();", "public ArmylistUnitUpdate getUnitUpdate(int id){\n return (ArmylistUnitUpdate)this.allUnitUpdates.get(n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Provides a default transport channel provider bean, corresponding to the client library's default transport channel provider. If the library supports both GRPC and REST transport, and the useRest property is configured, the HTTP/JSON transport provider will be used instead of GRPC.
@Bean @ConditionalOnMissingBean(name = "defaultCloudTasksTransportChannelProvider") public TransportChannelProvider defaultCloudTasksTransportChannelProvider() { if (this.clientProperties.getUseRest()) { return CloudTasksSettings.defaultHttpJsonTransportProviderBuilder().build(); } return CloudTas...
[ "@Bean\n @ConditionalOnMissingBean(name = \"defaultOsConfigZonalServiceTransportChannelProvider\")\n public TransportChannelProvider defaultOsConfigZonalServiceTransportChannelProvider() {\n if (this.clientProperties.getUseRest()) {\n return OsConfigZonalServiceSettings.defaultHttpJsonTransportProviderBui...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Adds the web page's general information to the output file
private void outputPageData(Webpage webpage, CSVPrinter html, CSVPrinter html5) { try { synchronized (html) { //Information for the global file ArrayList<String> pageInfo = new ArrayList<String>(); pageInfo.add(webpage.getWARCname()); p...
[ "private void manual()\n \t{\n \t\tString manualFileName = OpenFile.chooseOutputFile(OpenFile.Type.HTML, \"Manual file\", \"electric.html\");\n \t\tif (manualFileName == null) return;\n \t\tPrintWriter printWriter = null;\n \t\ttry\n \t\t{\n \t\t\tprintWriter = new PrintWriter(new BufferedWriter(new FileWriter(manu...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the value of the 'var123' field.
public java.lang.Integer getVar123() { return var123; }
[ "public java.lang.Integer getVar123() {\n return var123;\n }", "java.lang.String getVarValue();", "public java.lang.CharSequence getVar234() {\n return var234;\n }", "public java.lang.CharSequence getVar234() {\n return var234;\n }", "public java.lang.CharSequence getField123() {\n re...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Reset all CPT entries to zeroes.
public void resetEntries() { for (Enumeration e = cpf.keys(); e.hasMoreElements(); ) { Hashtable q = (Hashtable) e.nextElement(); cpf.put(q, new BBNConstant(0.0)); } }
[ "public void setToZero() {\n for (int i = 0; i < rows; i++) {\n for (int j = 0; j < cols; j++) {\n data[i][j] = 0;\n }\n }\n }", "public void clear() {\n\t\tsum = 0;\n\t\tcorrection = 0;\n\t}", "public void zeroOutValues() {\n mHeartRate = 0;\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the validityTo value for this Trm.
public void setValidityTo(Calendar validityTo) { this.validityTo = validityTo; }
[ "public void setValidTo(final Date validTo) {\n this.validTo = validTo;\n }", "public Calendar getValidityTo()\n\t{\n\t\treturn validityTo;\n\t}", "void setValidTo(Date value);", "public void setValidityFrom(Calendar validityFrom)\n\t{\n\t\tthis.validityFrom = validityFrom;\n\t}", "public Date get...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the value of the 'field907' field
public com.maxpoint.cascading.avro.TestExtraLarge.Builder setField907(java.lang.CharSequence value) { validate(fields()[907], value); this.field907 = value; fieldSetFlags()[907] = true; return this; }
[ "public void setField907(java.lang.CharSequence value) {\n this.field907 = value;\n }", "public void setField807(java.lang.CharSequence value) {\n this.field807 = value;\n }", "public void setField908(java.lang.CharSequence value) {\n this.field908 = value;\n }", "public void setField910(java.lang...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the average time per page hit in milliseconds.
public static long getAverageHitTime() { if (_count == 0) return 0L; return _time / _count; }
[ "public double getAvgTimeMillis() {\n return getTimeMillis() / (double) clicks;\n }", "public double getAvgTime() {\n return getTime() / (double) clicks;\n }", "public long getAverageMapTime();", "@Override\n public long getAverageRunTime() {\n final int invocations = invocationCount.g...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
log.debug("Deleting Bookmark["+objId+"] by "+passport.getString("loginName"));
public static void delete(Document passport,String objId) throws Exception { Bookmark obj=BookmarkService.getInstance().get(toLong(objId)); if (obj==null) throw new Exception("error.object.notfound"); ACLManager.isAuthorize(passport,ACL_MODE, ACLManager.ACTION_DELETE, null, toDocument(obj)); obj.setStatus(Statu...
[ "void deleteDeposit (int depositLogId);", "@Override\n public void delete(String id) {\n log.debug(\"Request to delete Bookmark : {}\", id);\n bookmarkRepository.deleteById(id);\n }", "public void destroyById__accessTokens( String appUserId, String fk, final VoidCallback callback){\n\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Log.e(mTag, "response: " + response.substring(0, 100)); Log.e(mTag, "parseList()... " + mSiteData.getGroupId());
private void parseData(String url, String response) { if (response.isEmpty()) { if (!mErrorMessage.isEmpty()) { alertParseErrorAndFinish(mErrorMessage); } else { renderData(); } } else { if (mItemTotal == 0) { ...
[ "private static List<Group> extractGroups(HttpResponse response) {\n List<Group> groups = new ArrayList<>();\n try {\n Gson gson = new Gson();\n Type listType = new TypeToken<ArrayList<Group>>() {\n }.getType();\n groups = gson.fromJson(EntityUtils.toString(response.getEntity()), listType)...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__Element3__Group_4__1" $ANTLR start "rule__Element3__Group_4__1__Impl" ../org.xtext.example.mydsl.group.unchanged.ui/srcgen/org/xtext/example/mydsl/group/unchanged/ui/contentassist/antlr/internal/InternalMyDsl.g:1498:1: rule__Element3__Group_4__1__Impl : ( ( rule__Element3__RepeatableElement2Assignment...
public final void rule__Element3__Group_4__1__Impl() throws RecognitionException { int stackSize = keepStackSize(); try { // ../org.xtext.example.mydsl.group.unchanged.ui/src-gen/org/xtext/example/mydsl/group/unchanged/ui/contentassist/antlr/internal/InternalMyDsl.g:1502:1: (...
[ "public final void rule__Element3__Group_4__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.example.mydsl.group.unchanged.ui/src-gen/org/xtext/example/mydsl/group/unchanged/ui/contentassist/antlr/internal/InternalMyDsl...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns a List of GeoSegment objects. The concatentation of the GeoSegments, in order, is equivalent to this route.
public List<GeoSegment> getGeoSegments() { throw new RuntimeException("Not yet implemented"); }
[ "List<Segment> getSegments();", "Collection<Segment> getSegments();", "public FeatureSegmentVector getSegments () {\n final Location current_location = getEmblFeature ().getLocation ();\n\n if (segments == null) {\n createSegments ();\n } else {\n // see comment on old_location\n if (cur...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the shape of the pit.
ShapeType getPitShape();
[ "Shape getShape();", "public String whatShape();", "public int[] getShape() {\n return shape;\n }", "public double getShape() {\r\n return shape_k;\r\n }", "ShapeType getShapeType();", "protocol.Message.Fence.Shape getShape();", "public IShape getShape() {\n return this.shape.copy()...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method sets the value of the database column PMSTRADE.LINKTO_TRSDEALNO
public void setLINKTO_TRSDEALNO(BigDecimal LINKTO_TRSDEALNO) { this.LINKTO_TRSDEALNO = LINKTO_TRSDEALNO; }
[ "public void setLINKTO_RIPSDEALNO(BigDecimal LINKTO_RIPSDEALNO) {\r\n this.LINKTO_RIPSDEALNO = LINKTO_RIPSDEALNO;\r\n }", "public void setLINKED_DEAL_NO(BigDecimal LINKED_DEAL_NO)\r\n {\r\n\tthis.LINKED_DEAL_NO = LINKED_DEAL_NO;\r\n }", "public BigDecimal getLINKTO_TRSDEALNO() {\r\n retur...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Change visibilities Show or hide the add button, the remove button and the move button
public void vBoxHandler(MouseEvent event){ //Open and close sandwitchmenu if (addBtn.isVisible()){ addBtn.setVisible(false); moveButton.setVisible(false); removeButton.setVisible(false); addBtnAnchor.setVisible(false); moveBtnAnchor.setVisible(false); ...
[ "private void initializeShowBtns()\r\n {\r\n showNxtMvBtn = new JButton(\"SHOW NEXT MOVE\");\r\n showNxtMvBtn.setEnabled(false);\r\n showAllMoves = new JButton(\"SHOW ALL MOVES\");\r\n showAllMoves.setEnabled(false);\r\n showNxtMvBtn.addActionListener(new ActionListener()\r\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test for BikeFare Validate()
@Test public void testBikeFare() { reserveBikeTest = new ReserveBike("BikeId1234567 ", "Mountain Bike", "Large","Blue","Yeti","BikeAvailable","3","Resr12345",""); assertEquals("The Fare Column is Empty",reserveBikeTest.validateReserve()); }
[ "@Test\n\tpublic void testBikeAvailability() {\n\t\t\n\t\treserveBikeTest = new ReserveBike(\"BikeId1234567 \", \"Mountain Bike\", \"Large\",\"Blue\",\"Yeti\",\"\",\"3\",\"Resr12345\",\"$40\");\n\t assertEquals(\"Bike Available\",reserveBikeTest.validateReserve());\n\t \t\t\n\t \n\t}", "@Test\n public vo...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns a new object of class 'E9 Rule'.
E9Rule createE9Rule();
[ "E10Rule createE10Rule();", "E11Rule createE11Rule();", "E7Rule createE7Rule();", "E13Rule createE13Rule();", "E1Rule createE1Rule();", "E3Rule createE3Rule();", "E6Rule createE6Rule();", "E4Rule createE4Rule();", "E5Rule createE5Rule();", "ExprRule createExprRule();", "E2Rule createE2Rule();", ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
DECOMMENT THIS LINE ONLY FOR AIDS SIMULATION if(p.INFECTION_STATE==Parameters.Infection_State.INFECTIOUS) return; IF SOMEONE IS RECOVERED IT CANNOT CHANGE STATE ANYMORE
private void changeInfectionState(Peer p, ArrayList<Peer> tmp, int cycle){ if(p.INFECTION_STATE==Parameters.Infection_State.RECOVERED) return; Random r = new Random(); double prob = r.nextDouble(); if(prob < Parameters.PATCH_RATE){ if(p.INFECTION_STATE==Parameters.Infection_S...
[ "@Override\r\n public void cheating() {\r\n changeState(\"Cheating\", getStudent().getUnableToBecomeARodForAnAxeState());\r\n }", "public void updateState(){\n\t\t\n\t\t\n\t\t\n\t\tArrayList<String> toAdd = new ArrayList<String>();\n\t\tArrayList<String> toRemove = new ArrayList<String>();\n\n\t\tthi...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
INIT A TEXT FIELD AND PUT IT IN A Pane
private TextField initHBoxTextField(HBox container, String initText, boolean editable) { TextField tf = new TextField(); tf.setText(initText); tf.setEditable(editable); container.getChildren().add(tf); return tf; }
[ "private void setTextField() {\n\t\ttextFieldLogic = new FSTextfieldLogic(M_InTe);\n\n\t\ttextFieldLogic.handleNumericInput(7);// control of the user input\n\t\ttextFieldLogic.handleNullInput(M_Add);// handle null input\n\n\t\tM_InTe.setText(\"10\");\n\t}", "private TextField initTextField(Pane container, String ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
PostRequest that tells the server it wants to change the users permission Sends Keys:
private void postRequest(String permission, String userID) { String url = "http://coms-309-sb-4.misc.iastate.edu:8080/room/setrole"; url = url + "/" + sessionManager.getID() + "/"; Map<String, String> params = new HashMap<>(); params.put("RoomId", sessionManager.getRoomid()); pa...
[ "public void sendKeyRequest() {\n\t\tsend(new Message(\"{Key Request}\", myData.userName, myData.color, MessageType.KEYREQUEST));\n\t\t\n\t\t//Enable listening for key response message\n\t\tkeyRequestSendTime = System.currentTimeMillis();\n\t\tlisteningForKeyResponse = true;\n\t}", "public void sendTestSymRequest...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__Chord__Group__4__Impl" $ANTLR start "rule__ChordParams__Group__0" ../ufscar.Compiladores2.ui/srcgen/ufscar/compiladores2/ui/contentassist/antlr/internal/InternalMusy.g:3001:1: rule__ChordParams__Group__0 : rule__ChordParams__Group__0__Impl rule__ChordParams__Group__1 ;
public final void rule__ChordParams__Group__0() throws RecognitionException { int stackSize = keepStackSize(); try { // ../ufscar.Compiladores2.ui/src-gen/ufscar/compiladores2/ui/contentassist/antlr/internal/InternalMusy.g:3005:1: ( rule__ChordParams__Group__0__Impl rule__Cho...
[ "public final void rule__ChordParams__Group_1__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../ufscar.Compiladores2.ui/src-gen/ufscar/compiladores2/ui/contentassist/antlr/internal/InternalMusy.g:3066:1: ( rule__ChordParams__Group_1__0...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Accuracy test for getEmailKey(). Doesn't load the config files. Expects the default value set.
public void testgetEmailKeyAccuracy() throws Exception { Method method = null; try { method = AccuracyTestHelper .getMethod(ClientLoginAction.class.getName(), "getEmailKey", new Class[] {}); method.setAccessible(true); // retrieves the email ...
[ "public void testGetEmail() throws Exception {\r\n\r\n insertDefaultUsers();\r\n\r\n String expected = \"username@topcoder.com\";\r\n assertEquals(\"getEmail is wrong\", expected, store.getEmail(\"username\"));\r\n }", "String getEmailPref(User user, Container container, EmailPref pref, Em...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the parallel module of this science app.
@Override public java.lang.String getParallelModule() { return _scienceApp.getParallelModule(); }
[ "int getParallelism();", "public ParallelismConfiguration getParallelismConfiguration() {\n return this.parallelismConfiguration;\n }", "public String getMODULE() {\r\n return MODULE;\r\n }", "public ParallelEnvironment getParallelEnvironment() {\n return parallelEnvironment;\n }...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Instantiates a new sortable operator.
SortableOperator(int value) { this.value = value; }
[ "public CommandComparator(){}", "public Sort() {}", "Sort createSort();", "public SmartSorting() {\n this(DSL.name(\"smart_sorting\"), null);\n }", "public Sort build() {\n return new Sort(this);\n }", "public CustomSort()\n {\n // initialise instance variables\n\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "ruleEventProp" $ANTLR start "entryRuleMetaConst" InternalSymboleoide.g:603:1: entryRuleMetaConst : ruleMetaConst EOF ;
public final void entryRuleMetaConst() throws RecognitionException { try { // InternalSymboleoide.g:604:1: ( ruleMetaConst EOF ) // InternalSymboleoide.g:605:1: ruleMetaConst EOF { before(grammarAccess.getMetaConstRule()); pushFollow(FOLLOW_1); ...
[ "public final void entryRuleEventProp() throws RecognitionException {\n try {\n // InternalSymboleoide.g:579:1: ( ruleEventProp EOF )\n // InternalSymboleoide.g:580:1: ruleEventProp EOF\n {\n before(grammarAccess.getEventPropRule()); \n pushFollow(FOLLO...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "ruleEventName" $ANTLR start "rule__Model__Alternatives" InternalDsl.g:5015:1: rule__Model__Alternatives : ( ( ( rule__Model__GenAssignment_0 ) ) | ( ( rule__Model__ProcessconfigAssignment_1 ) ) | ( ( rule__Model__ProcAssignment_2 ) ) | ( ( rule__Model__SchAssignment_3 ) ) | ( ( rule__Model__TestAssignment_4...
public final void rule__Model__Alternatives() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalDsl.g:5019:1: ( ( ( rule__Model__GenAssignment_0 ) ) | ( ( rule__Model__ProcessconfigAssignment_1 ) ) | ( ( rule__Model__ProcAssignment_2 ) ) | ( ( rule_...
[ "public final void ruleEventName() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalDsl.g:5004:1: ( ( ( rule__EventName__Alternatives ) ) )\n // InternalDsl.g:5005:2: ( ( rule__EventName__Alternatives ) )\n {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
reserved keys start with _
@Test public void testGetReservedKeys() { assertEquals("Timestamp must match",TIMESTAMP.toString(), ev.get("_timestamp")); assertEquals("Sources must match",source,ev.get("_source")); }
[ "protected void validateKeys(String[] param){\n \n }", "@Test\n public void testFieldNameStartingWithUnderscore() {\n PivotSchemaExtract.validateFieldName(\"_AbcD12Ad\");\n }", "private void importKey() {\n }", "private void SetReservedWord() {\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Caches the e s f user e s f user role in the entity cache if it is enabled.
public static void cacheResult( it.ethica.esf.model.ESFUserESFUserRole esfUserESFUserRole) { getPersistence().cacheResult(esfUserESFUserRole); }
[ "@Override\n\tpublic void cacheResult(ExtRole extRole) {\n\t\tentityCache.putResult(ExtRoleModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\tExtRoleImpl.class, extRole.getPrimaryKey(), extRole);\n\n\t\tfinderCache.putResult(FINDER_PATH_FETCH_BY_C_N,\n\t\t\tnew Object[] { extRole.getCompanyId(), extRole.getName() }, extRole);\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This physically creates the look of the menu bar. It should be called upon start up and when any change to a sim setting would cause a change in the menu bar. (e.g. when the sim starts)
public void updateMenuBar() { if (!AvroraGui.instance.getSimulation().isRunning()) { menuBar.removeAll(); JMenu newMenu; newMenu = new JMenu(FILE); menuBar.add(newMenu); JMenuItem newItem; newItem = new JMenuItem(SIMOPTIONS); ...
[ "public SIPCommMenuBar() {\n\t\tloadSkin();\n\t}", "public SIPCommMenuBar()\n {\n loadSkin();\n }", "public void createMenuBar() {\r\n\t\taddMenuItems();\r\n\t\tshell.setMenuBar(myMenu);\r\n\t}", "protected void setUpMenuBar() {\n setUp2Dvs3DMenuClickHandlers();\n setupMultiplayerMe...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the user currency.
public String getUserCurrency() { return sessionData.getUserCurrency(); }
[ "java.lang.String getUserCurrency();", "public typekey.Currency getMoneyCurrency() {\n return ((gw.cc.metric.entity.MoneyMetricDelegate)__getDelegateManager().getImplementation(\"gw.cc.metric.entity.MoneyMetricDelegate\")).getMoneyCurrency();\n }", "public String getCurrency() {\r\n return currency;\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Looks up a symbol in a particular scope in the symbol table as well as any outer scopes from that specified scope Note: an exception is thrown if the specified level is = largest scope level
public Object lookup(String s, int level) { int lastLevel = getCurrScopeLevel(); // some error checking if (scopes.size() == 0) { throw new RuntimeException("Must enter a scope before looking up in table"); } else if (level < 0 || level >= lastLevel) { th...
[ "public Object peek(String s, int level) {\n int lastLevel = getCurrScopeLevel();\n\n // some error checking\n if (scopes.size() == 0) {\n throw new RuntimeException(\"Must enter a scope before peeking in table\");\n }\n else if (level < 0 || level >= lastLevel) {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Enumerate and delete all eligible files.
private void enumAllFileList() { if (!TextUtils.isEmpty(dirPath)) { File adDir = new File(dirPath); if (adDir.exists() && adDir.isDirectory()) { if (!TextUtils.isEmpty(regEx)) { DeleteFileFilter filter = new DeleteFileFilter(isPrefix, regEx); ...
[ "private void clearFiles() {\r\n File file = new File(\"test_files/upload\");\r\n File[] files = file.listFiles();\r\n for (File delFile : files) {\r\n delFile.delete();\r\n }\r\n file = new File(\"test_files/stress.jar\");\r\n file.delete();\r\n }", "static...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
you can use this constructor to create the alarm. Just pass in the main activity as the context, any extras you'd like to get later when triggered and the timeout
public Alarm_Msg(Context context, Bundle extras){ /*AlarmManager alarmMgr = (AlarmManager)context.getSystemService(Context.ALARM_SERVICE); Intent intent = new Intent(context, Alarm_Msg.class); intent.putExtra(REMINDER_BUNDLE, extras); PendingIntent pendingIntent = ...
[ "public Alarm(Context context, Bundle extras){\n AlarmManager alarmMgr =\n (AlarmManager)context.getSystemService(Context.ALARM_SERVICE);\n Intent intent = new Intent(context, Alarm.class);\n intent.putExtra(REMINDER_BUNDLE, extras);\n PendingIntent pendingIntent =\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Delete the node with the given path. The call will succeed if such a node exists, and the given version matches the node's version (if the given version is 1, it matches any node's versions). A KeeperException with error code KeeperException.NoNode will be thrown if the nodes does not exist. A KeeperException with erro...
public void delete(final String path, int version) throws InterruptedException, KeeperException { final String clientPath = path; PathUtils.validatePath(clientPath); final String serverPath; // maintain semantics even in chroot case // specifically - root cannot be deleted ...
[ "public void delete(String path, int version)\n throws InterruptedException, KeeperException {\n TraceScope traceScope = null;\n try {\n traceScope = Trace.startSpan(\"RecoverableZookeeper.delete\");\n RetryCounter retryCounter = retryCounterFactory...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Set the value of the footerClass property.
public void setFooterClass(java.lang.String footerClass) { this.footerClass = footerClass; }
[ "public java.lang.String getFooterClass() {\n if (null != this.footerClass) {\n return this.footerClass;\n }\n ValueBinding _vb = getValueBinding(\"footerClass\");\n if (_vb != null) {\n return (java.lang.String) _vb.getValue(getFacesContext());\n } else {\n return null;\n }\n }", ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
C prototype definition: int16_t (ps2000_get_timebase) (int16_t handle, int16_t timebase, int32_t no_of_samples, int32_t time_interval, int16_t time_units, int16_t oversample, int32_t max_samples)
short ps2000_get_timebase(short handle, short timebase, int no_of_samples, IntByReference time_interval, ShortByReference time_units, short oversample, IntByReference max_samples);
[ "long getSamplePeriod();", "int ps2000_get_times_and_values(short handle, Memory times, Memory buffer_a, Memory buffer_b, Memory buffer_c, Memory buffer_d, ShortByReference overflow, short time_units, int no_of_values);", "short ps2000_run_block(short handle, int no_of_values, short timebase, short oversample, ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Removes a specific SoundLevelListener of the list of listeners interested in and notified about changes in stream sound level related information.
public void removeStreamSoundLevelListener( SoundLevelListener listener) { synchronized(soundLevelListeners) { soundLevelListeners.remove(listener); } }
[ "public void removeLocalUserSoundLevelListener(SoundLevelListener l)\n {\n synchronized(localUserAudioLevelListeners)\n {\n localUserAudioLevelListeners.remove(l);\n \n if (localUserAudioLevelListeners.isEmpty())\n {\n //if this was the last li...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Store the given value at the given location in memory. The given location should be a byte location, but if it isn't wordaligned it will be truncated.
public void storeValue(long location, long value) { // get the word address from the byte address long memoryAddress = location >> 2; // error if we're out of bounds if (memoryAddress >= memory.size()) { throw new IllegalArgumentException("Memory address out of bounds"); } // Set the word we want. ...
[ "private void StoreValue(int location, int value)\r\n {\r\n if(location < 0)\r\n mem.MemWrite(lastLocation, value);\r\n else\r\n mem.MemWrite(location, value);\r\n }", "void setmem(int offset,short value){\n byte Fbyte = getFbyte(value);\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
getAction gets the actor that wants to hunt and the gameMap and sees if the actor current location is adjacent to a food source which would be another actor
@Override public Action getAction(Actor actor, GameMap map) { Location currentLocation = map.locationOf(actor); target = getLocation(currentLocation, map); if (actor.getDisplayChar() == 'P' || actor.getDisplayChar() == 'p') { } if (target != null && adjacent(actor, target,...
[ "@Override\n public Action getAction(Actor actor, GameMap map) {\n Dinosaur dino = (Dinosaur) actor;\n dinoClass = dino.getClass();\n here = map.locationOf(dino);\n\n Action ret = null;\n for(Exit exit: here.getExits()){\n if (map.isAnActorAt(exit.getDestination())) ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__QualifiedName__Group_1__1__Impl" $ANTLR start "rule__Number__Group_1__0" ../org.xtext.example.rmodp.ui/srcgen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:26236:1: rule__Number__Group_1__0 : rule__Number__Group_1__0__Impl rule__Number__Group_1__1 ;
public final void rule__Number__Group_1__0() throws RecognitionException { int stackSize = keepStackSize(); try { // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:26240:1: ( rule__Number__Group_1__0__Impl ru...
[ "public final void rule__Number__Group_1__1__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:26280:1: ( ( ( rule__...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Method responsible to ensure arrival location value and arrival location name value re not blank. Method also check to see if arrival location name contain only combinations the following: Uppercase and lowercase characters from A to Z Spaces Dash/Hyphen Parenthesis
protected void validateArrivalLocation(final FareFinderForm fareFinderForm, final Errors errors) { final Boolean isNotBlank = validateBlankField(FIELD_ARRIVAL_LOCATION_NAME, fareFinderForm.getArrivalLocationName(), errors); if (isNotBlank) { validateBlankField(FIELD_ARRIVAL_LOCATION, fareFinderForm.getArrival...
[ "private boolean isValidInputLocation() {\n return !TextUtils.isEmpty(edLocation.getText().toString());\n }", "protected boolean isAirportValid(String airport) {\n return (airport.length() == 3 || airport.length() == 4) && airport.matches(\"[A-Z]+\");\n }", "private boolean validateAddressLine1(St...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Adds another viewImport value.
public void addViewImport(Object value) throws DmcValueException { ((ViewDMO) core).addViewImport(value); }
[ "public void addViewImport(String value){\n ((ViewDMO) core).addViewImport(value);\n }", "public void addSharedImport(String value){\n ((ViewDMO) core).addSharedImport(value);\n }", "public void addSharedImport(Object value) throws DmcValueException {\n ((ViewDMO) core).addSharedImpor...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Method to move the values right if the start button was clicked. Firstly, all the tiles are moved up while there are empty spots ( 0 values ). Then, if there are equal values on the tiles it makes the sum of those 2.
public void right() { if (start) { for (int z = 0; z <= 3; z++) { for (int row = 3; row >= 0; row--) for (int col = 3; col >= 0; col--) { int rowPos = row; int colPos = col; while (rowPos != 0...
[ "public void down(){\n if(start) {\n for (int z = 0; z <= 3; z++) {\n for (int row = 0; row <= 3; row++) {\n for (int col = 0; col <= 3; col++) {\n int rowPos = row;\n int colPos = col;\n\n while...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO test addition for cases where both numbers and result is out of allowed range
@Test public void testAddOutOfRange() { Integer result = SimpleCalc.add(40, 10); assertNull("Input value 40 is out of range [-10, 10]", result); }
[ "private void validateResultPermissLimitCalculations(BigDecimal result) throws UndefinedNumberException {\n if (result.compareTo(MAX_LIMIT_VALUE) >= 0 || result.compareTo(MIN_LIMIT_VALUE) <= 0) {\n throw new UndefinedNumberException(\"Exceeded the allowable limit: 1E150\");\n }\n }", "...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
What's the JDBC driver's minor version number?
public int getDriverMinorVersion() { return m_conn.getDriver().getMinorVersion(); }
[ "public int getJDBCMinorVersion() throws SQLException {\n return 0;\n }", "public int getDatabaseMinorVersion() throws SQLException {\n return connection.getDatabaseMinorVersion();\n }", "public int getDriverMinorVersion() {\n return Driver.MINOR_VERSION;\n }", "public String get...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Run the Set keySet() method test.
@Test public void testKeySet_1() throws Exception { PatriciaTrie fixture = new PatriciaTrie(); fixture.incrementSize(); fixture.modCount = 1; Set<Object> result = fixture.keySet(); // add additional test code here assertNotNull(result); assertEquals(1, result.size()); }
[ "public void testNormalKeySet()\r\n throws Exception\r\n {\r\n try\r\n {\r\n SCOMapTests.checkKeySet(pmf,\r\n HashMap1.class,\r\n ContainerItem.class,\r\n String.class);\r\n }\r\n finally\r\n {\r\n clean(Hash...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__VoidOperation__Group__5" $ANTLR start "rule__VoidOperation__Group__5__Impl" InternalBSQL2Java.g:2120:1: rule__VoidOperation__Group__5__Impl : ( 'PRE' ) ;
public final void rule__VoidOperation__Group__5__Impl() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalBSQL2Java.g:2124:1: ( ( 'PRE' ) ) // InternalBSQL2Java.g:2125:1: ( 'PRE' ) { // InternalBSQL2Java.g:2125:1:...
[ "public final void rule__VoidOperation__Group_6_1__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalBSQL2Java.g:2436:1: ( rule__VoidOperation__Group_6_1__1__Impl )\n // InternalBSQL2Java.g:2437:2: rule__VoidOperation__Gro...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "CURRENT_TIMESTAMP" $ANTLR start "INDEXWHERE"
public final void mINDEXWHERE() throws RecognitionException { try { int _type = INDEXWHERE; int _channel = DEFAULT_TOKEN_CHANNEL; // E:\\workcode\\mile\\ctumile\\ctumile_killbug\\src\\mergeserver\\server\\src\\main\\java\\com\\alipay\\mile\\server\\T2\\mileSqlCondition.g:265:...
[ "ReadBlueQuery<V> where(BlueIndexCondition<?> indexCondition);", "protected void timestampIncrementingWhereClause(ExpressionBuilder builder) {\n builder.append(\" WHERE \");\n coalesceTimestampColumns(builder);\n builder.append(\" < ? AND ((\");\n coalesceTimestampColumns(builder);\n builder.append...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates new form JDetalhesCompra
public JDetalhesCompra() { initComponents(); }
[ "Compleja createCompleja();", "public CommandeCreation() {\n initComponents();\n jPanel2.setVisible(false);\n try {\n initView();\n } catch (Exception ex) {\n Logger.getLogger(Transaction.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "public ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Function add timeUnit to timeUnits list
public void addTimeUnit(TimeUnit unit) { timeUnits.add(unit); }
[ "public void addUnits(Unit[] u)\r\n\t{\r\n\t\tfor(int i = 0; i < u.length; i++)\r\n\t\t{\r\n\t\t\tthis.addUnit(u[i]);\r\n\t\t}\r\n\t}", "public void setTimeUnit(TimeUnit timeUnit);", "public void addTime(Time a){\n\t\ttimes.add(a);\n\t}", "public ArrayList<String> Time(String from, float amount, String[] unit...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Return a set of Qname defining reports this node supports.
@Override public Collection<QName> getSupportedReports() throws WebdavException { final Collection<QName> res = new ArrayList<>(); res.addAll(super.getSupportedReports()); res.addAll(supportedReports); return res; }
[ "Set<String> getSQWRLQueryNames();", "String getReportsTo();", "public abstract Set<Measure> supportedMeasures();", "protected void initSupportedReports() {\n if (exists()) {\n supportedReports.addReportType(ReportType.EXPAND_PROPERTY);\n if (isCollection()) {\n sup...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
private String getPathToSampleSummary() Return the Text of the pathToSampleSummary
private String getPathToSampleSummary() { return pathToSampleSummary.getText(); }
[ "public String getSample_path() {\n return sample_path;\n }", "public String getSummaryReportPath() {\n\t\treturn summaryReportPath;\n\t}", "java.lang.String getSummary();", "public String sampleFilenamePath() {\n\t\treturn product.getCode() + \"/\" + sampleFilename;\n\t}", "public String getSumma...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Clears the value of the 'field809' field
public com.maxpoint.cascading.avro.TestExtraLarge.Builder clearField809() { field809 = null; fieldSetFlags()[809] = false; return this; }
[ "public com.maxpoint.cascading.avro.TestExtraLarge.Builder clearField232() {\n field232 = null;\n fieldSetFlags()[232] = false;\n return this;\n }", "public com.maxpoint.cascading.avro.TestExtraLarge.Builder clearField987() {\n field987 = null;\n fieldSetFlags()[987] = false;\n re...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns an ordered range of all the council sessions where typeId = &63;. Useful when paginating results. Returns a maximum of end start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtilALL_POS will r...
public java.util.List<CouncilSession> findByTypeId( long typeId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CouncilSession> orderByComparator);
[ "public java.util.List<CouncilSession> findByTypeId(\n\t\tlong typeId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<CouncilSession>\n\t\t\torderByComparator,\n\t\tboolean useFinderCache);", "public java.util.List<CouncilSession> findByTypeId(\n\t\tlong typeId, int start, int end);", ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates a postscript file of the receiving graph in a graphical form. This method applies only to the DotPostscript DisplayPref.
protected void process_DotPostscript_display(Writer stream, DisplayPref dp, boolean hasNodeLosses, boolean hasLossMatrix) { try { //Originally this used a temporary file name for dot file output -JL FileWriter tempfile = new FileWriter("catgraph.dot-in"); c...
[ "public static void writePostscript(final String filename) {\n// psfile = file(filename, 'w');\n// psfile.write(_canvas.postscript(pageanchor='sw',\n// y='0.c',\n// x='0.c'));\n// psfile.close();\n throw new UnsupportedOperationException();...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Resolver allowing to find matching JNDI names for beans within the same container.
public interface EZBContainerJNDIResolver extends EZBJNDIResolver { /** * @return URL used by this resolver. */ URL getURL(); /** * Allows to find EJB JNDI name. * @return a list of matching JNDI objects for the given interface and bean * name. * @param interfaceName ...
[ "public interface JndiNameNormalizer {\n\n\t/**\n\t * Method for ensuring that the given JNDI name is suitable for a JNDI\n\t * lookup.\n\t * \n\t * @param jndiName\n\t * Raw JNDI name\n\t * @return normalized JNDI name.\n\t */\n\tString normalize(String jndiName);\n\n}", "NameResolver<S> getResolver()...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
mergeVenTransactionFeeList merges a list of VenTransactionFee
public ArrayList<VenTransactionFee> mergeVenTransactionFeeList( List<VenTransactionFee> venTransactionFeeList);
[ "public VenTransactionFee mergeVenTransactionFee(VenTransactionFee venTransactionFee);", "public ArrayList<VenTransactionFee> persistVenTransactionFeeList(\n\t\t\tList<VenTransactionFee> venTransactionFeeList);", "public void removeVenTransactionFeeList(List<VenTransactionFee> venTransactionFeeList);", "publi...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Initialize Ray runtime with the default runtime implementation.
public static void init() { try { Class clz = Class.forName("io.ray.runtime.DefaultRayRuntimeFactory"); RayRuntimeFactory factory = (RayRuntimeFactory) clz.newInstance(); init(factory); } catch (Exception e) { throw new RuntimeException("Failed to initialize Ray runtime.", e); } }
[ "private static synchronized void init(RayRuntimeFactory factory) {\n if (runtime == null) {\n runtime = factory.createRayRuntime();\n Runtime.getRuntime().addShutdownHook(new Thread(Ray::shutdown));\n }\n }", "private void initRuntime() throws Exception {\n\n // Create a node runtime\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Power on a VM
public void powerOnVM(OccpVM vm) throws OccpException;
[ "public void powerOn() \n {\n try \n {\n // your code here\n \tSystem.out.println(\"Powering on virtual machine '\"+vm.getName() +\"'. Please wait...\"); \n \tTask t=vm.powerOnVM_Task(null);\n \tif(t.waitForTask()== Task.SUCCESS)\n \t{\n\t \tSyste...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Tests that the equals method can determine if two notes are equal.
@Test public void testEquals() { Note note1; Note note2; note1 = new Note(1, 1, 0, Pitch.A, 1, 1); note2 = new Note(1, 1, 0, Pitch.A, 1, 1); assertEquals(true, note1.equals(note2)); note1 = new Note(1, 1, 0, Pitch.A, 1, 1); note2 = new Note(1, 1, 0, Pitch.B, 1, 1); assertEquals(false...
[ "boolean equalsNote(Note n) {\n return (this.pitch.ordinal() == n.getPitch().ordinal()\n && this.beats == n.getBeats()\n && this.getOctave() == n.getOctave()\n && this.getStartTime() == n.getStartTime());\n }", "public boolean equals(Note otherNote) {\n\t\treturn getMidiNumber...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Compares this date to the given date for equality.
public boolean equals(SimpleDate anotherDate) { return this.getMonth() == anotherDate.getMonth() && this.getDay() == anotherDate.getDay() && this.getYear() == anotherDate.getYear(); }
[ "@SuppressWarnings(\"deprecation\") // GWT requires Date\n public static boolean isSameDate(Date date0, Date date1) {\n assert date0 != null : \"date0 cannot be null\";\n assert date1 != null : \"date1 cannot be null\";\n return date0.getYear() == date1.getYear()\n && date0.getMonth() == date1.getM...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Parses the specified XML string to a record set with a collection of record objects.
public static RecordSet parse(String xmlString) throws Exception { try { Serializer serializer = new Persister(); return serializer.read(RecordSet.class, xmlString); } catch (Exception ex) { throw new Exception("Error when parsing the XML file. It's probab...
[ "public static IdSet parse(String str) {\n if (StringUtils.isEmpty(str)) {\n throw new IllegalArgumentException(\"Cannot parse IdSet: String is empty\");\n }\n IdSet set = new IdSet();\n String[] parts = str.split(\"[,.]\");\n for (String part : parts) {\n if...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
FaceBook: Step 1: Download and set the path Step 2: Launch the chromebrowser Step 3: Load the URL Step 4: Maximise the window Step 5: Add implicit wait Step 6: Click on Create New Account button Step 7: Enter the first name Step 8: Enter the last name Step 9: Enter the mobile number Step 10: Enterthe password Step 11: ...
public static void main(String[] args) { WebDriverManager.chromedriver().setup(); ChromeDriver driver = new ChromeDriver(); driver.get("https://en-gb.facebook.com/"); driver.manage().window().maximize(); driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS); driver.find...
[ "@Then(\"Verify Create an Account Page has all fields and enter the details to create account\")\r\n\tpublic static void ypIf(DataTable data)\r\n\t{\r\n List<List<String>> rb=data.raw();\r\n\t\tMyStore mystore=PageFactory.initElements(driver,MyStore.class);\r\n\t try{ if(Create_Header.getText().equalsIgnoreCase...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Create a new LexerException for the current line and column number. This method is the best way to create a LexerException.
protected LexerException createLexerException(String message, int column){ return new LexerException(message, currentLine, column, getLine(currentLine)); }
[ "protected LexerException createLexerException(String message){\n\t\treturn new LexerException(message, currentLine, currentColumn, getLine(currentLine));\n\t}", "public LexerException() {\n\n\t}", "public ScriptLexerException() {\r\n\t}", "public SyntaxException() {\n\t\tsuper();\n\t}", "public WddxParseEx...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the "return" element
public java.lang.String getReturn() { synchronized (monitor()) { check_orphaned(); org.apache.xmlbeans.SimpleValue target = null; target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(RETURN$0, 0); if (targ...
[ "public org.apache.xmlbeans.XmlString xgetReturn()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlString target = null;\n target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(RETURN$0, 0);\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Tries to give an item to a character.
public Item giveItem(String itemName, Player character) { Item item = items.remove(itemName); if(item != null) { character.items.put(item.getName(), item); } return item; }
[ "private void giveCharachterItem(Command command){\n if(!command.hasSecondWord()){\n System.out.println(\"give what?\");\n }\n if(!command.hasThirdWord()){\n System.out.println(\"give alexander what?\");\n }\n \n String charachter = command.getSecondWo...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets JS function type.
JSFunctionType getJSFunctionType();
[ "public FunctionType getType();", "public Short getFunctionType() {\n return functionType;\n }", "public String getFunType() {\r\n return funType;\r\n }", "public char getFunctionType() {\r\n return functionType;\r\n }", "java.lang.String getTypeCode();", "public String getFu...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Remove scheduled flows. Does not interrupt.
public synchronized void removeRunnerSchedule(Schedule s) { logger.info("Removing " + s + " from the schedule runner."); schedules.remove(s); // MonitorImpl.getInternalMonitorInterface().workflowEvent(null, // System.currentTimeMillis(), // WorkflowAction.UNSCHEDULE_WORKFLOW, // WorkflowState.NOP, ...
[ "@Override\n public void purgeFlows() {\n setOfFlowsToAdd.clear();\n setOfFlowsToDelete.clear();\n }", "void unschedule();", "public void removeScheduledRecording(ScheduledRecording... schedules) {\n Log.i(TAG, \"Removing \" + Arrays.asList(schedules));\n if (!SoftPreconditions...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get the maximum delay
public int getMaxDelay (){ return this.maxDelay; }
[ "int getAbsoluteMaximumDelay();", "Duration getMaxDelay();", "public Integer getMaxTimeDelay() {\n\t\treturn maxTimeDelay;\n\t}", "public abstract long maxDelayTime();", "TimeUnit getMaxDelayUnit();", "long getMaxWaitMillis();", "long getMaxTimeMs();", "String getMaximumRedeliveryDelay();", "com.goo...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Return the size, in bits, of the field 'capsule.options'
public static int sizeBits_capsule_options() { return 8; }
[ "public static int size_capsule_options() {\n return (8 / 8);\n }", "public static int sizeBits_capsule_type() {\n return 8;\n }", "public short get_capsule_options() {\n return (short)getUIntElement(offsetBits_capsule_options(), 8);\n }", "public static int totalSizeBits_capsule...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }