query
stringlengths
8
1.54M
document
stringlengths
9
312k
negatives
listlengths
19
20
metadata
dict
This will return relative eventpaths that have at least 1 open online event in it. So if you pass the eventpath for football it will return all the football leagues that have open events. However, if you pass in a league in the first place it will return itself if it has events. Very handy for teaser betting where the ...
public List<EventPath> searchOpenOnlineEventPathsByPath(Workspace workspace, String eventPath) throws SessionException;
[ "ImmutableList<Eventable> getShortestPath(StateVertex start, StateVertex end);", "private List<HEKPath> getChildrenEvents(HEKPath path, Interval<Date> timeRange, boolean overlapmode) {\n\n \tList<HEKPath> result = new ArrayList<>();\n\n // this only works if the path is known to the cache\n if (c...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Prints items in cart.
private void displayItemsInCart() { System.out.println("Current item \tItemId \tQuantity \tItem total"); Map<Item, Integer> cartItemMap = cart.getCartItemMap(); for (Item item : cartItemMap.keySet()) { int quantity = cartItemMap.get(item); String quantityStr = String.valueOf(quantity); ...
[ "private void listCart() {\n\t\tif (shoppingCart.size() == 0) {\n\t\t\tSystem.out.print(\"Your shopping cart is empty\\n\");\n\t\t\treturn;\n\t\t}\n\n\t\tSystem.out.print(\"================================================================================\\n\");\n\t\tSystem.out.printf(\"%-4s%-22s%-40s%-8s%-6s\\n\", \...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the number of access request statuses.
public int countAll() throws SystemException { Long count = (Long)FinderCacheUtil.getResult(FINDER_PATH_COUNT_ALL, FINDER_ARGS_EMPTY, this); if (count == null) { Session session = null; try { session = openSession(); Query q = session.createQuery(_SQL_COUNT_ACCESSREQUESTSTATUS); count = (L...
[ "int getAccessLogCount();", "int getRentalRequestsCount() throws ServiceException;", "public long getRequestCount()\n {\n return m_cRequests;\n }", "public int getRequestsCount() {\n return instance.getRequestsCount();\n }", "public long getNRequests() {\n return basi...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Called once after isFinished returns true
@Override protected void end() { System.out.println("\nEnded "+ this.getClass().getSimpleName() +"("+ state +") at " + String.format("%.2f",(Timer.getFPGATimestamp()-Robot.enabledTime)) + "s"); }
[ "@Override\n\t\t\tprotected boolean isFinished() {\n\t\t\t\treturn true;\n\t\t\t}", "@Override\n protected boolean isFinished() {\n\n return false;\n\n }", "@Override\r\n protected boolean isFinished() {\n return false;\r\n }", "protected final boolean isFinished(){ return true; }", "prote...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates an instance of FailActivity class.
public FailActivity() { }
[ "private ActivityCreator() {\n\n }", "public RuleFailure() {\n // this is NOT calling the other constructors, this is on purpose...\n }", "AlwaysFailure createAlwaysFailure();", "private Activity createMockActivity() {\n final Activity activity = mock(Activity.class);\n doReturn(mActi...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Does click the "add checklist button".
public CheckListModal clickCheckListButton() { checkListButton.click(); return new CheckListModal(); }
[ "public void clickAdd() {\n\t\tthis.Add.click();\r\n\t}", "@Test(priority=3)\n\tpublic void create_listbutton() {\n\t\t\t\tdriver.findElement(By.xpath(\"//*[@id='list-name']\")).clear();\n\t\t\t\tdriver.findElement(By.xpath(\"//*[@id='list-name']\")).click();\n\t\t\t\tdriver.findElement(By.xpath(\"//*[@id='list-n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
end of method parse() run() for Thread A default run method, used for operating this parser object in the background. It is intended for extending Thread or implementing Runnable. Turn off with Jnorun .
public void run() { yyparse(); }
[ "@Override\n\t\tpublic void run() {\n\t\t\ttry \n\t\t\t{\n\t\t\t\tmyExpParserClass.parse();\n\t\t\t} catch (Exception e) {\n\t\t\t\t// TODO: handle exception\n\t\t\t}\n\t\t\tsuper.run();\n\t\t}", "protected void threadRun(){\n while (isRunning()){\n Message m;\n try {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method corresponds to the database table t_mgm_supplier_synthesis_check
@Override public boolean equals(Object that) { if (this == that) { return true; } if (that == null) { return false; } if (getClass() != that.getClass()) { return false; } TMgmSupplierSynthesisCheck other = (TMgmSupplierSynth...
[ "public Criteria andSynthesisUploadNameEqualToColumn(TMgmSupplierSynthesis.Column column) {\n addCriterion(new StringBuilder(\"synthesis_upload_name = \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }", "public Criteria andSynthesisUploadNameGreaterT...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Autogenerated main method to display this JPanel inside a new JFrame.
public static void main(String[] args) { JFrame frame = new JFrame(); frame.getContentPane().add(new AddAdminPanel()); frame.setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE); frame.pack(); frame.setVisible(true); }
[ "public void mainPanel() {\r\n panel = new JPanel();\r\n panel.setBackground(Color.LIGHT_GRAY);\r\n \r\n mainLabel = new JLabel(\"Welcome to your address book.\");\r\n mainLabel.setFont(new Font(\"Times New Roman\", Font.BOLD, 22));\r\n panel.add(mainLabel);\r\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Function to print an array. You can use it for debugging purposes. It takes as input the array to be displayed.
public static void printArray(int[] arr) { for (int i = 0; i < arr.length; i++) { System.out.print(arr[i] + " "); } System.out.println(); }
[ "public static void printArray(int[] array){\n int length=array.length;\n System.out.print(\"[ \");\n for(int j=0;j<length;j++){\n System.out.print(array[j]+\" \");\n }//end for\n System.out.println(\"]\");\n }", "public static void printArray(Object array[]) {\n\t...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
login to entry once and client handle
private void login() throws IOException { out.println("Please Login :"); while (true) { out.println("Enter your Chat Name :"); String chatName = input.readLine(); out.println("Enter your Password :"); String password = input.readLine(); client = handler.login(chatName, password); if (client != nu...
[ "private static void login() {\n\t\t\n\t}", "public void login() {\n loggedIn = true;\n chat = new StringBuilder();\n address = new InetSocketAddress(host, port);\n try {\n clientSC = SocketChannel.open(address);\n send(id + \" logged in\");\n } catch (IOEx...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
DGP method from Class HashCode
public int hashCode(){ return fscp.HashCode.HashCodeM(this); }
[ "int getGdsHash();", "public abstract int formHashCode();", "Object hashKey();", "protected abstract int hashPrimaryValue();", "protected long getHash(long dpid) {\n // This code assumes DPID is sequentially assigned.\n // TODO consider equalization algorithm\n return dpid % numberThrea...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
public List<QAQuestion> getQuestionsByTopicQA(String topic) { return questionDao.getQuestionsByTopicQA(topic); }
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
C'est le controlleur principale qui relie le modele et la vue.
public HomeController() { _imagesList = null; _lastAccessedFolder = new File(System.getProperty("user.dir")); _referenceImage = null; }
[ "public Receveur() {\r\n\t\tthis.mv = Controleur.getInstance().getModeleVue();\r\n\t}", "void pinteModelo();", "public Vendedor() {\n initComponents();\n updateTabla();\n Comobox();\n }", "@Override\n\tprotected void onModelChanged()\n\t{\n\t\tsuper.onModelChanged();\n\t}", "public v...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
int A, B, C, D, DIFERENCA;
public static void main(String[] args) throws IOException { int DIFERENCA; BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out)); // A = Integer.parseInt(in.readLine()); // B = Integer.parseInt(in.readLine()); // C = Inte...
[ "void mo34120a(C10449be beVar, int i);", "void mo7816a(int i, int i2, int i3, int i4);", "void mo286a(int i, int i2, int i3, int i4, int i5);", "static void exercise4(){\n\n int a = 1, b=2, c=3, d=4, aux;\n System.out.println(\"Valores iniciales\");\n System.out.printf(\"a = %d\\n\", a);\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Adds the users information to this set of projects.
public void addUser(String user) { this.myName = user.substring(0, user.indexOf("\n")+1); this.myEmail = user.substring(user.indexOf("\n")+1, user.length()); }
[ "void addUsersToProject(List<User> users, Project project);", "private void createAddUsersToProject() {\n \t//Initialize both lists\n \tavailableUsers = new DefaultListModel<User>();\n \taddedUsers = new DefaultListModel<User>();\n \t//Create panel for the added Users \n \tfinal JPanel panAddedUser...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method corresponds to the database table t_cpy_landinfo
public Criteria andPlotLocationGreaterThanOrEqualToColumn(TCpyLandinfo.Column column) { addCriterion(new StringBuilder("plot_location >= ").append(column.getEscapedColumnName()).toString()); return (Criteria) this; }
[ "public List<LandInfo> getLandInfoData(LandSearchCriteria criteria) {\n\t\tList<Object> preparedStmtList = new ArrayList<>();\n\t\tString query = queryBuilder.getLandInfoSearchQuery(criteria, preparedStmtList);\n\t\tList<LandInfo> landInfoData = jdbcTemplate.query(query, preparedStmtList.toArray(), rowMapper);\n\t\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Add notes to a meeting. This method is used when a future meeting takes place, and is then converted to a past meeting (with notes). It can be also used to add notes to a past meeting at a later date.
@Override public void addMeetingNotes(int id, String text) { // Exception thrown if meeting does not exist. if (! this.idIntegersList.contains(id) ) { throw new IllegalArgumentException("Meeting ID does not exist."); } Meeting meeting = getMeeting(id); // This i...
[ "public void addNote(Note n) {\n \t\tthis.notes.add(n);\n \t}", "public void addNote(Note note){\n\n if (!noteList.contains(note)) {\n noteList.add(note);\n }\n\n }", "@Test\n\tpublic void testAddMeetingNotesInValidMeetingEmptyNotesInputTestNoMettingAdded(){\n\t\tTestContactManager.a...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
.TW.Tezos.Proto.Operation.OperationKind kind = 7;
int getKindValue();
[ "com.id.configuration.proto.Operation getOperation();", "com.message.ClientMessage.Operation getOperation();", "public int GetOperationID (String opName);", "com.google.protobuf.ByteString getOperationsBytes(int index);", "ppl.delite.runtime.messages.Messages.RemoteOp getOp();", "public int getCurrentOper...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Uri for getting the link id
public static int getIntegerLinkID(Uri uri){ return Integer.parseInt(uri.getPathSegments().get(1)); }
[ "public String getLinkIdentifier(String guid) throws Exception;", "public Integer linkId() {\n return linkId;\n }", "public StrColumn getLinkId() {\n return delegate.getColumn(\"link_id\", DelegatingStrColumn::new);\n }", "@Schema(description = \"An HTTP link for an identifier, if a suitab...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
When vertx is ready, maybe just started, or have been started already. NOTE: can't call vertxPlatforms related methods within this callback method, which will cause infinite waiting.
void whenReady(Vertx vertx);
[ "@Override\n public void init(Vertx vertx) {\n }", "private void getReady() {\n\t\teventRequestManager = remoteVirtualMachine.eventRequestManager();\n\t\teventQueue = remoteVirtualMachine.eventQueue();\n\t\tremoteVirtualMachine.resume();\n\t}", "public void onServerReady() {\n\t}", "@Override\n publi...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test for stack methods.
@Test public void pushPopPeekTest() { Stack<String> stack = new Stack<>(); stack.push("One"); stack.push("Two"); stack.push("Three"); stack.push("Four"); stack.push("Five"); String result = stack.peek(); assertThat(result, is("Five")); result =...
[ "void demonstrateStack() {\n }", "public void testPush()\n {\n stack.push(\"Hello\");\n assertEquals(\"Hello\", stack.top());\n }", "@Test\n\tvoid testStack() {\n\t\tStack myStack = new Stack();\n\t\tassertEquals(0, myStack.getSize());\n\t\t// Step 2. Create the expected value variable\n\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
leetcode submit region end(Prohibit modification and deletion)
@Test public void test() { Solution solution = new Solution(); int[] nums = {1, 3, 1, 2, 0, 5}; int[] slide = solution.maxSlidingWindow(nums, 3); System.out.println(Arrays.toString(slide)); }
[ "@Override\r\n public void exitPlanning_problem(Planning_problemContext ctx) {\n\r\n }", "void commitThanePark();", "public void submitComplain() {\n\n }", "@Override\n public void run() {\n for (DemigodsStructure save : DemigodsStructureType.Util.getStructur...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the set of group names.
public static Set<String> groups() { return groups.keySet(); }
[ "public Set<String> getGroupsList() throws RemoteException;", "public Set<String> getGroupIds() {\n return groupIds;\n }", "@Override\n public Set<String> getGroups() {\n return groups;\n }", "public List<String> getAllGroups(){\n\tList<String> set1=new ArrayList<String>();\n\n\tQuery grou...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Container's getter for ContractFormLookup
public LookupCodeLookupImpl getContractFormLookup() { return (LookupCodeLookupImpl)findViewObject("ContractFormLookup"); }
[ "org.spin.grpc.util.Access getForms(int index);", "public interface CatalogFieldMap extends ServiceDictionary<CatalogFormFieldProvider> {\n\t\n\tString BASIC_CELL = \"genericValue\";\n\n}", "ValueModel<B> getFormObjectHolder();", "@Override\r\n\tpublic FormBean getFormBean(HstRequest request) {\n\t\tHippoBean...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Checks to see if the given pin matches with the one in the keypad
public boolean validatePin(String thePin){ return (thePin.equals(myPin)); }
[ "public boolean VerifyPin(byte pin[]) throws WrongLengthOfPINException, WrongPINCharactersException, CardException, WrongPINException {\n\n if ((pin.length < 4) || (pin.length > 8)) {\n throw new WrongLengthOfPINException();\n }\n String password = new String(pin);\n if (!pass...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method corresponds to the database table gc_trader_wallet_change_log
int deleteByExample(GcTraderWalletChangeLogExample example);
[ "@Override\r\n\tpublic Integer log() {\n\t\tEmPa_OperateDal dal=new EmPa_OperateDal();\r\n\t\tString opeatecontent = \"更改状态,支付号为:\"\r\n\t\t\t\t+ model.getEmpa_number() + \",角色类型为:总经理助理\";\r\n\t\tInteger k = dal.AddEmpayLog(model.getEmpa_number(), opeatecontent);\r\n\t\treturn k;\r\n\t}", "@Override\r\n\tpublic Li...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Set runtime environment variable for chromedriver
public static void main(String[] args) throws Exception { System.setProperty("webdriver.gecko.driver", "Drivers\\geckodriver.exe"); WebDriver driver=new FirefoxDriver(); driver.get("https://www.facebook.com/r.php"); driver.manage().window().maximize(); Thread.sleep(5000); //Keyboard shortcust witho...
[ "public static void setDriverProperty() {\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"C:\\\\Users\\\\souvighosh\\\\Documents\\\\SleepCountry_Automation\\\\TaskWorldAutomate\\\\TaskWorldLogin\\\\src\\\\main\\\\java\\\\driver\\\\chromedriver.exe\");\n\t}", "@BeforeSuite\n\tpublic void setUP()\n\t{\n\t\tS...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Prints the letter "J" in large block letter to standard output.
public static void main(String[] args) { System.out.println("JAVAJAVAJAVA"); System.out.println("JAVAJAVAJAVA"); System.out.println(" JAVA"); System.out.println(" JAVA"); System.out.println(" JAVA"); System.out.println(" JAVA"); System.out.println("J ...
[ "@Override\r\n\tpublic void run() {\n\t\tfor(char i = 'A'; i <= 'J'; i++){\r\n\t\t\tSystem.out.println(i+\" \");\r\n\t\t}\r\n\t}", "@Override\r\n\tpublic void brake() {\n\t\tSystem.out.println(\"»πΠΗ΅°ΈβΊζΕΰ\");\r\n\t}", "private String printOutput(int i, int j) {\r\n if (i == j) {\r\n return ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get all the classes in string
public String getClassListToString() { String ret = "Nombre de résultats : "+this.classList.size(); for(int i=0; i<this.classList.size(); i++) { ret+="\n"+this.classList.get(i); } return ret; }
[ "private ArrayList<String> parseClasses(String classString) {\n\n ArrayList<String> classes = new ArrayList<String>();\n int prevComma = -1;\n int nextComma = classString.indexOf(\",\", prevComma + 1);\n\n while (nextComma != -1) {\n classes.add(classString.substring(prevComma...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ This is the testing for Field Checking class CheckTimes
@Test public void checkCheckTimeNotInts(){assertFalse(checkTime("p:pppm"));}
[ "private void checkField() {\n }", "@Test\n public void dayLightSavingTimeTest() {\n TimeCalc calc = new TimeCalc();\n assertTrue(calc.calculateRegular(new TimeEntry(0,\"JunitUser\",\"26.3.2017\", \"2:00\", \"05:00\")) == 120);\n }", "@Test\n public void testFields() {\n Assert.asse...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
public int compareTo(Date data) { if(this.getYear()>data.getYear()) return 1; else if(this.getYear()==data.getYear()) { return 0; }else{ return -1; } }
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Updates the element given as parameter from the according table (the one with the same name), searching it by id (which in the table may not be the "id" field necessarily, but "something_id", that's why it is specified through idName variable. Finally, the field and value variables specify which field should be updated...
public void update(String idName, int id, String field, int value) { update(idName, id, field, String.valueOf(value), false); }
[ "public void update(String TableName, int rowID, Object obj) {\n\n }", "public void update(int id, String name);", "@Override\n void update() {\n Connection cx = ORM.connection();\n try {\n String sql = String.format(\n \"update %s set name=? where id=?\", TABLE...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ create a helper that brings you to the first/next available part of the chain. Otherwise, you will run into null situations. / is always assigning chain[index].iterator() to iter (the private field) whenever chain[index] != null, but it should only do that when iter == null is also true (i.e. both those conditions ne...
@Override public boolean hasNext() { while (index < chains.length) { //chain == null if (chains[index] == null) { index++; } //chain != null an...
[ "public void advanceIterator() throws NullPointerException {\n \tif(offEnd()) {\n \t\tthrow new NullPointerException(\"advanceIterator(): The iterator is equal to null and cannot advance.\");\n \t}\n \titerator = iterator.next;\n }", "private Iterator<E> getNextIterator() {\n Iterator<E>...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Can the amount of power be drawn?
protected boolean canDrawCellPower(double amount) { return getEfficiency() > 0 && this.cellPower >= amount / getEfficiency() && this.tileCell.storedPower >= amount / getEfficiency(); }
[ "private void drawPower(Graphics g, int x, int y, Color C, int P) {\n g.setColor(C);\n g.fillRect(x,y,20,20);\n g.setColor(C.darker());\n g.fillRect(x+2, y+2, 16, 16);\n g.setColor(C.brighter());\n if (P==5) {\n g.fillOval(x+2,y+2,7,7);\n g.fillOval(x+...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Checks for empty fields in the log in process to return a false value
@Test public void testCheckForEmptyFieldsAllInvalid() throws Exception { mLoginActivity = new LoginActivity(); assertEquals(false, mLoginActivity.checkForEmptyFields(emptyString, emptyString)); }
[ "private boolean checkEmptyFields() {\r\n boolean empty = false;\r\n if (etCorreo.getText().toString().equalsIgnoreCase(\"\") ||\r\n etPassword.getText().toString().equalsIgnoreCase(\"\")){\r\n empty = true;\r\n }\r\n\r\n return empty;\r\n }", "private bool...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ OUTPUT RULE LINKED LIST WITH RECONVERSION Outputs contents of rule linked list (if any) with reconversion.
public void outputRulesWithReconversion() { // Check for empty rule list if (startRulelist == null) System.out.println("No rules generated!"); // Loop through rule list int number = 1; RuleNode linkRuleNode = startRulelist; while (linkRuleNode != null) { System.out.print("(" + number + ") "); outp...
[ "public List<Rule> getSource2TargetRules();", "public void transform(List<String> input) {\n\t\tSystem.out.println(\"Original input: \" + input);\n\t\tfor (Rule rule : rules) {\n\t\t\tSystem.out.println(\"Applying rule: \" + rule);\n\t\t\trule.apply(input);\n\t\t\tSystem.out.println(\" --> \" + input);\n\t\t}\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public BoardVO get(Long bno) { return mapper.read(bno); }
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Detailed error log of the retrieval attempt
private void logError(int resultCode, int errorCode, String errorMessage) { Log.e(ForecastRetrievalServiceMainActivityResultReceiver.TAG, "Result failure in onReceiveResult"); Log.e(ForecastRetrievalServiceMainActivityResultReceiver.TAG,"Result code: " + resultCode); Log.e(ForecastRetrievalServi...
[ "@Override\n public void onFailure(Throwable t) {\n // Log error here since request failed\n }", "@Override\n public void onFailure(@NonNull Exception e) {\n Log.d(\"QUERY\", e.toString());\n }", "publi...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Clears the two paths
public void resetPath() { this.path.clear(); this.pathSegment.clear(); }
[ "public void clearGotoPath() {\n }", "public synchronized void reset() {\r\n\t\tfinish();\r\n\t\tpaths.clear();\r\n\t\tlogger.debug(\"paths reset\");\r\n\t}", "public void resetUnfinishedPaths() {\r\n unfinPaths.clear();\r\n }", "public void cleanAll() {\n\t\tm_path.reset();\n\t}", "public void...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Projet : demo Package : com.example.services File : CategoryService Created on : 2021, Monday 13 of September Created at : 5:33 AM Author name : Brice dymas
public interface CategoryService extends CommonGenericCrudService<Category> { public void setUpCategories(); Page<Category> getSinglePage(Pageable pageable); }
[ "public interface CategoryService {\n\n /**\n * 根据商品id和商标分类id值添加商品到商标种类\n * @param cid\n * @param gid\n */\n void addGoodsToCategory(long cid,long gid) throws BizExeption;\n\n /**\n * 根据商品id和商标分类id值从商标里删除商品的对应\n * @param cid\n * @param gid\n */\n void deleteGoodsToCategory(lo...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ MUTATORS The procedure to set the value of a matrix's compartment.
public void set(int numRows, int numColumns, double value) { matrix[numRows][numColumns] = value; }
[ "public void SetValue(Matrix[] value)\n\t{\n\t\tthrow new NotImplementedException();\n\t}", "public native void setMatrixValue(String value);", "protected void setMatrixA(int i, int j, double value) {\r\n\tmatrixA.set(i,j,value);\r\n}", "@Test\n\tpublic void doesSetElementSetValueAtCorrectLocation() {\n\t\t\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub input(); write(); reader();
public static void main(String[] args) { writer(); }
[ "@Override\n public void readWrite() {\n }", "@Override\n\t\t\tpublic void writing() {\n\t\t\t\t\n\t\t\t}", "protected void read() {\n\t}", "@Override\n\tpublic void writing() {\n\t\t\n\t}", "public ReadAndWrite() {\n }", "@Override\r\n public void write(DataOutput out) throws IO...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "ruleEHPCETL" $ANTLR start "entryRuleEHPCBasedata" InternalOptimizationParser.g:2840:1: entryRuleEHPCBasedata returns [String current=null] : iv_ruleEHPCBasedata= ruleEHPCBasedata EOF ;
public final String entryRuleEHPCBasedata() throws RecognitionException { String current = null; AntlrDatatypeRuleToken iv_ruleEHPCBasedata = null; try { // InternalOptimizationParser.g:2840:52: (iv_ruleEHPCBasedata= ruleEHPCBasedata EOF ) // InternalOptimizationParser...
[ "public final EObject entryRuleData() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleData = null;\n\n\n try {\n // ../com.polimi.ase.concretesyntax.xtext.smartcity/src-gen/com/polimi/ase/concretesyntax/xtext/parser/antlr/internal/InternalSmartCity.g:1031:2...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Utility method to write an element start tag.
private void writeStartElement(java.lang.String prefix, java.lang.String namespace, java.lang.String localPart, javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException { java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); ...
[ "public void writeStartTag(String element)\r\n\t\tthrows XMLStreamException\r\n\t{\r\n\t\t/*\r\n\t\t * Write start tag for XML block.\r\n\t\t */\r\n\t\twriteStartElement(element);\r\n\t\twriteStartElementEnd();\r\n\t}", "public abstract StartElement createStartElement(String prefix, String namespaceUri, String lo...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
firstName: with default state. .id : firstName .type : text .title : .class : Html.INPUT.text .name : firstName .classIndex : 0
protected TextGuiTestObject text_firstName() { return new TextGuiTestObject( getMappedTestObject("text_firstName")); }
[ "public void setFirstName(String firstName){\n this.firstName = firstName;\n }", "public void setFirstName(String firstName)\n {\n this.firstName = firstName;\n }", "private void setFirstName(String firstName) {\r\n\t\tthis.firstName=firstName;\r\n\t}", "public void setfirstName(String firstName)...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
public static void main(String[] args) { String str = "welcome to chennai"; // converting the String to Char array char[] str1 = str.toCharArray(); int s = 0; for (int i = 0; i < str1.length; i++) { if (str1[i] == 'e') { s = s + 1; System.out.println(s); } } }
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get the CSV file name from command line.
public String getCSVFileName(String[] args) { String csvFileName = ""; if (args.length != EXPECTED_LENGTH) { System.out.println(USAGE); System.exit(8); } if (Arrays.asList(args).contains("--csv-file") && Arrays.asList(args) .contains("--output-dir")) { csvFileName = args[Array...
[ "public static String getFileName(String[] args) {\n\t\tString fileName = args[0];\n\t\treturn fileName;\n\t}", "public String getFileName() {\n return this.csvFile;\n }", "public void setCsvFile() {\n for (int i = 0; i < this.commandArgument.length - 1; i++) {\n if (this.commandArgument[i].eq...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates an instance of AzureStorageJobTaskDetails class.
public AzureStorageJobTaskDetails() { }
[ "public JobTaskDetails() {\n }", "public JobQueueInfo() {\n\n\t}", "private Job initJob()\n\t{\n\t\tvar job = new Job();\n\t\t\n\t\t// Required fields\n\t\tjob.setName(\"test1job\");\n\t\tjob.setOwner(\"bud\");\n\t\tjob.setTenant(\"fakeTenant\");\n\t\tjob.setDescription(\"This is a fake job that will never r...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
See calculate(...). Calls it with yearFrom = 1 and yearTo = 3000.
public List<Statistics> calculate(int interval) { return calculate(1, 3000, interval); }
[ "public int calculateAgeYears();", "public LocalDate minusYears(long yearsToSubtract) {/*implementation*/}", "static int soulYears(int currentYear, int soulYear)\n {\nint age = soulYear - currentYear;\nreturn age;\n }", "public Date generateDateTime(Integer uptoYearsRange);", "int calculateYearsToRetirement...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test case number: 5 / 59 covered goals: Goal 1. org.apache.commons.lang3.StringUtils.join(Ljava/util/Iterator;Ljava/lang/String;)Ljava/lang/String;: Line 3046 Goal 2. org.apache.commons.lang3.StringUtils.join([Ljava/lang/Object;C)Ljava/lang/String;: I3 Branch 219 IFNONNULL L2839 true Goal 3. org.apache.commons.lang3.St...
@Test public void test005() throws Throwable { String[] stringArray0 = StringUtils.split(":kWVe29[`7", ":kWVe29[`7", 924); String string0 = StringUtils.join((Object[]) stringArray0, 'N'); boolean boolean0 = StringUtils.isNumeric("tx"); String string1 = StringUtils.join((Iterator<?>) null, "I...
[ "@Test\n public void test208() throws Throwable {\n String string0 = StringUtils.trim((String) null);\n boolean boolean0 = StringUtils.containsOnly((CharSequence) null, (String) null);\n String string1 = StringUtils.chomp((String) null);\n boolean boolean1 = StringUtils.endsWith((CharSequence...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the distanceMatrixType for this DistanceMatrixTypeDE object
public void setValueObject(DistanceMatrixType distanceMatrixType) { if (distanceMatrixType != null) { value = distanceMatrixType; } }
[ "protected void setMdType(MdRef mdRef, String mdtype) {\n try {\n mdRef.setMDTYPE(Mdtype.parse(mdtype));\n } catch (MetsException e) {\n mdRef.setMDTYPE(Mdtype.OTHER);\n mdRef.setOTHERMDTYPE(mdtype);\n }\n }", "public void setType(boolean mType) {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override protected void onResume() { super.onResume(); LogManager.d(this.getClass() + "onResume"); }
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
//Statement to fetch all the records private PreparedStatement ps_fetchEmployees;
public Index() { super(); }
[ "public Set<Employee> select_By_DepartmentID(Integer departmentID) {\n int numOfRowSelected = 0;\n String querySelectEmployee = \"select * from employee e where e.ID_DEPARTEMENT = \" + departmentID;\n Statement stmt = null;\n Connection co = Connect.getConnection();\n Set<Employe...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates a landing sequence ordered by an aircraft landing time (generated randomly).
public Aircraft[] createLandingSequenceSortedByRandomTimes() { // Creates a landing sequence where for each aircraft, it's landing time is close as possible to it's target time. Aircraft[] aircraftLandingSequence = createAircraftsWithRandomLandingTimeLessThenTargetTime(); Arrays.sort(aircraftLandingSequence); ...
[ "public void scheduleNext(){\n // every minute we check if there is new taking off plane or landing plane\n if(nextLandArrivalTime == clock){\n landLine.insert(new Airplane(clock));\n //generate a random number whose average value is avgLandArrivalTime and added to next arrival t...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Possibly unproxy the given reference and reassociate it with the current session.
public Object unproxyAndReassociate(Object maybeProxy) throws HibernateException;
[ "private Proxy promoteReference() {\n\t\t\tif ( bound || force_strong_ref || strong_ref != null ) return strong_ref;\n\n\t\t\tstrong_ref = weak_ref.get();\n\t\t\tif ( strong_ref == null ) {\n\t\t\t\tLOG.debug( \">>> Referent for weak reference was null \" +\n\t\t\t\t\t\"for object {} ({})\", object_id, delegate_to_...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Triggered when an item is used on an object
void useItemOnObject(Item item, server.model.objects.Object object);
[ "public void useItem(Item item){\r\n\t\tif (!item.canBeUsed()){ // No puede seguir usandose\r\n\t\t\tthis.pickItem(item.getId()); // Se borra del container\r\n\t\t\tfor (InventoryObserver o : this.observers)\r\n\t\t\t\to.itemEmpty(item.getId());\r\n\t\t}\r\n\t\tthis.emitInventoryChange();\r\n\t}", "public void us...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub img_animation1.layout(1500,400,1500,1000);
@Override public void onAnimationEnd(Animation animation) { bill2000Snap.setBackgroundResource(R.drawable.bill_2000); imagefinger.setVisibility(View.INVISIBLE); cashView.setText("2,500/- Tsh"); }
[ "public void refreshAnimation() {\n RotateAnimation rotateAnimation = new RotateAnimation(0, 360,getWidth()/2,getHeight()/2);\n rotateAnimation.setInterpolator(new LinearInterpolator());\n rotateAnimation.setDuration(500);\n rotateAnimation.setRepeatCount(-1);\n// rotateAnimation....
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__PlusExpr__Group_1_0__0__Impl" $ANTLR start "rule__PlusExpr__Group_1_0_0__0" InternalResoluteParser.g:6856:1: rule__PlusExpr__Group_1_0_0__0 : rule__PlusExpr__Group_1_0_0__0__Impl rule__PlusExpr__Group_1_0_0__1 ;
public final void rule__PlusExpr__Group_1_0_0__0() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalResoluteParser.g:6860:1: ( rule__PlusExpr__Group_1_0_0__0__Impl rule__PlusExpr__Group_1_0_0__1 ) // InternalResoluteParser.g:6861:2: ...
[ "public final void rule__PlusExpr__Group_1__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalResoluteParser.g:6739:1: ( ( ( rule__PlusExpr__Group_1_0__0 ) ) )\n // InternalResoluteParser.g:6740:1: ( ( rule__PlusExpr...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
GETTING CONNECTION FROM confix.xml data with DataSource
public Connection getConnection() throws SQLException { Connection con = null; try { Context initContext = new InitialContext(); Context envContext = (Context) initContext.lookup("java:/comp/env"); DataSource ds = (DataSource) envContext.lookup("jdbc/st4db"); con = ds.getConnection(); } catch...
[ "private void initDataSource() throws CarbonException, XMLStreamException, NamingException,\n SQLException, IOException {\n InputStream xmlInputStream = null;\n String regConfigPath = Constants.REGISTRY_XML_PATH;\n File file = new File(regConfigPath);\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Created by srujant on 13/11/18.
public interface WMAuthenticationSuccessHandler { void onAuthenticationSuccess(HttpServletRequest request, HttpServletResponse response, WMAuthentication authentication) throws IOException, ServletException; }
[ "@Override\n public void extornar() {\n \n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n }", "private static void EX5() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "protected void method_5557() {}", "@Override\n\t...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Set the Type of the resource.
public CheckDomainAvailabilityResultInner withType(String type) { this.type = type; return this; }
[ "public void setType(final String resourceType) {\n type = resourceType;\n }", "public void setResourceType(java.lang.String resourceType)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
XStream xStream = new XStream(); TextMessage textMessage = new TextMessage(); textMessage.setContent("this is content"); textMessage.setMsgId("1232323"); textMessage.setCreateTime(new Date().getTime()); textMessage.setFromUserName("fromUser"); textMessage.setToUserName("toUser"); xStream.alias("xml",textMessage.getClas...
@Test public void testXstream(){ String t = "oBuv-0IIZxHg2llOPuYnthMkqNYo"; System.out.println(t.length()); }
[ "public void convertirMensaje(String mensaje) {\n XStream xstream = new XStream(new DomDriver());\n//[1] alias opcionales\n xstream.alias(\"candidato\", Candidato.class);\n Candidato candidato = (Candidato) xstream.fromXML(mensaje);\n System.out.println(candidato.getNombre());\n\n// ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This guarantee's at least some movement
public void mousePressed(MouseEvent e) { robot.moveIn(); // Keep moving as long as the button is clicked timer = new Timer(100, moveInAction); timer.start(); }
[ "private void tryToMove() {\r\n\t\tif (safeToMoveForward()) {\r\n\t\t\tapplyForwardAcceleration();\r\n\t\t} else {\r\n\t\t\tapplyReverseAcceleration(); // assume it's okay to reverse\r\n\t\t}\r\n\t}", "@Override\n\tprotected void beforeMove() {\n\t\t\n\t}", "@Override\n public boolean move() {\n retur...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
endregion region Collect System Info
private void collectSystemInfo(SnmpHandler handler, DeviceSnmp device, DeviceMapper deviceMapper) { SystemEntry system = handler.collectSystem(); if (system == null) return; DeviceSysOID sysOid = SharedData.getInstance().FindVendorAndModel(system.getSysObjectID()); DeviceNetwork networkDev =...
[ "public String[] getSysInfoStrings() {\r\n\t\tString[] str = {\r\n\t\t\t\t\"User's account name: \" + usrname,\r\n\t\t\t\t\"OS name: \" + osname,\r\n\t\t\t\t\"OS version: \" + osvers,\r\n\t\t\t\t\"OS architecture: \" + osarch };\r\n\t\treturn str;\r\n\t}", "@Override\n public String getD...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
private LinearLayout mLlDiagnosing; private MultiGridView mGvDiagnosing;
@Nullable @Override public View onCreateView(@Nonnull LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View root; if (GlobalData.isPad()) { root = inflater.inflate(R.layout.fragment_check_work, container, false); } else { root = inflater....
[ "private void init(View view) {\n Gv_Toolgridview1 = (GridView) view.findViewById(R.id.Gv_Toolgridview1);\n Gv_Toolgridview2 = (GridView) view.findViewById(R.id.Gv_Toolgridview2);\n\n Im_ToolshowPicture =(ImageView)view.findViewById(R.id.Im_ToolshowPicture);\n Tv_Toolshowsentence=(TextVi...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Update status label based on selected row in transfer table
@SuppressWarnings("unchecked") @Override public void execute() { if (getSelectedRow() == -1) { return; } Vector<Object> row = (Vector<Object>) transferTableModel .getDataVector().get(getSelectedRow()); TransferStatus status = (TransferStatus) row.get(4); String label = ""; switch (status) { ca...
[ "private void totalBtnMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_totalBtnMouseClicked\n DefaultTableModel RecordTable = (DefaultTableModel) transTable.getModel();\n int SelectedRows = transTable.getSelectedRow();\n \n //checking if the status equals to the status of t...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Retrieves the fax field.
public Phone getFax() { return fax; }
[ "public String getFax() {\n return fax;\n }", "public java.lang.String getFax() {\n\t\treturn fax;\n\t}", "public DFPhone getFax() {\n return fax;\n }", "public String getFaxnumber() {\n return faxnumber;\n }", "@Override\n\tpublic java.lang.String getFax() {\n\t\treturn _dmHistorySh...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get the saved Boolean value
public static boolean getBoolean(@NonNull Context context, @NonNull String key) { return getPreferences(context).getBoolean(key, false); }
[ "public Boolean getBoolValue() {\n return boolValue;\n }", "boolean getVarBool();", "public boolean getBoolean() {\r\n \t\treturn getBoolean(false);\r\n \t}", "@Override\n boolean getAsBoolean();", "public boolean getBoolean(){\n return this.value;\n }", "public boolean getboolean()...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public ArrayList<SearchPhotoBean> parse(String response) throws JSONException,Exception { JSONObject parser = new JSONObject(response); if(parser.getString(SearchPhotoParser.STATUS).equalsIgnoreCase(SearchPhotoParser.OK_STATUS)) { JSONObject photoInfo = parser.getJSONObject(SearchPhotoParser.P...
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
metodo para adicionar mascara
@Override public void adicionaMascara() { }
[ "@Override\r\n\tpublic void alta(Marca Marca) {\n\t\t\r\n\t}", "public static void adicionarMoto(){\r\n String modelo = \"CG\";\r\n String marca = \"Honda\";\r\n String placa = \"ddd4444\";\r\n int cilindrada = 125;\r\n Moto moto = new Moto (modelo, marca, placa, cilindrada);\r\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
=================================================================================== Compare Date ============ Match Date Is this date match the specified date? e.g. date: 2011/11/27 date.isMatch(2011/11/24): true date.isMatch(2011/11/27): false date.isMatch(2011/11/28): false
public boolean isMatch(Date date) { assertArgumentNotNull("date", date); return _cal.getTimeInMillis() == date.getTime(); }
[ "public static boolean datesAreEqual(Date date1, Date date2) {\n Calendar cDate1 = getInstance();\n cDate1.setTime(date1);\n Calendar cDate2 = getInstance();\n cDate2.setTime(date2);\n if (cDate1.get(YEAR) != cDate2.get(YEAR)) {\n return false;\n } else {\n if (cDate1.get(MONTH) ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
optional bytes secret_1 = 9 [(.description) = "Spare shared secret"];
@java.lang.Override public boolean hasSecret1() { return ((bitField0_ & 0x00000100) != 0); }
[ "void setSecret(String secret);", "public static String protectedSecretMM(){return \"xxxxxxxxxxxxxxxxxxxxxxxxxxxxx\";}", "public void setSecret( String s ) {\r\n\tsecret=s;\r\n }", "String getSecret(String secretName);", "io.fathom.cloud.protobuf.CloudCommons.SecretData getSecretData();", "com.google.p...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Encrypts a single character
private String encryptCharacter(final Integer ch) { String string = "/"; if (' ' != ch) { int index = ALPHANUMERIC.indexOf(ch); if (index >= 0 && index < ALPHANUMERIC.length() ) { string = MORSE.get(index); } else throw new IllegalArgumentException("The " + ch + " is not a valid string of morse alphabe...
[ "String encrypt(String value);", "public static char encryptChar(char c, char key) {\n\t\tint cNum = (int)(c - 65); // converting to unicode\n\t\tint keyNum = (int)(key - 65) / 2; // converting to unicode\n\t\t\n\t\t// if not in the range of A - Z return the character\n\t\tif(c < 65 || c > 91){\n\t\t\treturn c;\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Created by Administrator on 2019/9/25 0025.
public interface StudentService { public List<Student> findAll(); }
[ "@Override\n public void extornar() {\n \n }", "@Override\n }", "public void mo5201a() {\n }", "@Override\n public int utilite() {\n return 0;\n }", "public void mo1857d() {\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This test demonstrates that APs are ignored for inserts through a virtual layer CASE 3966
@Test public void testInsertWithAccessPattern_Case3966_VL() throws Exception { this.helpTestAccessPatternValidation( "insert into vm1.g37 (e1, e2, e3, e4) values('test', 1, convert('true', boolean) , convert('12', double) )" ); //$NON-NLS-1$ }
[ "@Override\n public int testInsertTripartiteOrder(String applyId, String orderSn) {\n System.out.println(\"lalalalalalalalalalalalalalla\");\n return 666;\n }", "int insertSelective(LabTestReqInfo record);", "@Test(timeout = 4000)\n public void test47() throws Throwable {\n DefaultDB...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method randomly draws a card from the deck. The deck will automatically remove the drawed card.
public Card Draw(){ Random rand = new Random(); int rand_idx = rand.nextInt(deck.keySet().size()); int rand_num = (Integer) deck.keySet().toArray()[rand_idx]; Card card = deck.get(rand_num); deck.remove(rand_num); return card; }
[ "public Card draw(){\r\n\t\tint x = this.getDecksize();\r\n\t\tint randomNumber = generator.nextInt((x)); //next int sets it from 0 to size, have to create an int to store the value\r\n\t\tCard drawn_card = deck.get(randomNumber); //gets a random card from the deck list\r\n\t\tdeck.remove(randomNumber);\r\n\t\tretu...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Bring all projections to the top level so we can run them all at once. Used for multithreaded and GPUenabled runs.
private Projection[] collectProjections(){ ArrayList<Projection> projections = new ArrayList<Projection>(Arrays.asList(myProjections)); LinkedList<Node> nodesToProcess = new LinkedList<Node>(); nodesToProcess.addAll(Arrays.asList(myNodes)); Node workingNode; while(nodesToProcess.si...
[ "@Override\n public void reset() {\n proj = new Matrix4f().perspective((float) Math.toRadians(Game.game().getOption(\"fov\")), Game.game().getOption(\"ar\"), 0.05f, 200.0f);\n mvp.identity();\n }", "public void init(){\n\t\t// Setup projection matrix in a perspective mode\n\t\tprojection = Matrix4f.perspe...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Construct a new Map that is a clone of self except that it includes the new pair. If there already exists another pair with the same key, the new collection will instead have one with the new elment.
public Map puttingAt(Object key, Object element) throws IllegalElementException;
[ "public static <K, V> Lens.Simple<Map<K, V>, Map<K, V>> asCopy() {\n return adapt(asCopy(HashMap::new));\n }", "public DoubleMap<T> duplicate() { return new DoubleMap<T>( indexes, initial ); }", "@Override\n @SuppressWarnings(\"unchecked\")\n public Bytes2ObjectOpenHashMap<V> clone() {\n Bytes2Ob...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ Devuelve el dia de fecha de corte de un plan
public int fechaCorte(String id_producto, Conexion c) { String str = "SELECT af.dia_cobro FROM afilia af"; str += " WHERE af.id_producto = " + "'" + id_producto + "'"; str += " and af.fecha_afilia >= ALL"; str += " (SELECT ad.fecha_afilia FROM afilia ad"; str += " WHERE af.id_pro...
[ "private int getDayOfThePlan(){\n //insert code to get the required date\n int day = 2;\n return day;\n }", "public Date getPlanaog() {\n return planaog;\n }", "public static Date calculaFechaCorte() {\n Calendar fecCorte = Calendar.getInstance();\r\n fecCorte.add...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Set the urgency group value to assign to the codelet in the coderack
public void setUrgency(double urgency) { codeletBeingConstructed.setUrgency(urgency); }
[ "public void setUrgent (com.justonetech.system.domain.SysCodeDetail urgent) {\r\n\t\tthis.urgent = urgent;\r\n\t}", "@Nonnull\n public B setUrgency(@Nonnull final Urgency urgency) {\n this.urgency = urgency;\n return cast();\n }", "@Override\n\tpublic void setLevel(java.lang....
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Modifier la classe Technicien pour ajouter un attribut grade de type int avec son getter et son setter
@Test public void exo302AjoutAttributGrade() throws Exception { TestUtils.checkPrivateField("Technicien", "grade", TestUtils.INTEGER); TestUtils.checkMethod("Technicien", "getGrade", TestUtils.INTEGER); TestUtils.checkMethod("Technicien", "setGrade", "void", TestUtils.INTEGER); Object d = TestUtils.getClasse(...
[ "public void setGrade(int grade){\n this.grade = grade;\n }", "public void setGrade(Integer grade)\r\n/* 158: */ {\r\n/* 159:137 */ this.grade = grade;\r\n/* 160: */ }", "public int getGrade ()\n {\n return grade ;\n }", "public void setGradeLevel(int GL) {GradeLevel = GL;...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
test vol lopping when call number has series small folder suffix
@Test public void testSeriesSmallFolderSuffix() { String callnum = "M1090 SERIES 16 SMALL FOLDER 72.06"; assertEquals("M1090", CallNumUtils.removeNonLCDeweyVolSuffix(callnum, CallNumberType.OTHER)); assertEquals("M1090", CallNumUtils.removeNonLCDeweySerialVolSuffix(callnum, CallNumberType.OTHER)); }
[ "@Test\n\tpublic void testLCSerialVolumeSorting()\n\t{\n\t\tString lopped = \"B8.14 L3\";\n\t\tString shelfkey = edu.stanford.CallNumUtils.getShelfKey(lopped, CallNumberType.LC, \"fake\").toLowerCase();\n\t\t// compute list: non-serial volume sorting\n\t\tMap<String,String> volSortString2callnum = new HashMap<Strin...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
========================= Getters/setters ========================= Get data file manager used for deserilization of data.
public DataFileManager getDataFileManager() { return dataFileManager; }
[ "private DataManager() {\r\n\r\n File dir = new File(GAME_RECORDS_DIRECTORY);\r\n // If data directory doesn't exist, create it\r\n if (!dir.exists()) {\r\n dir.mkdir();\r\n }\r\n\r\n executorService = Executors.newSingleThreadExecutor();\r\n }", "public DataManage...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
private static NSDictionary construireDictionnaire(EOMotclefs keyword) { NSMutableDictionary dico = new NSMutableDictionary(); dico.takeValueForKey(null, "10_motclefid"); if (keyword.toProjet().primaryKey() != null) { dico.takeValueForKey( Integer.valueOf(keyword.toProjet().primaryKey()), "20_projetI...
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test of division method, of class Complex.
@Test public void testDivision() { Complex res=z.division(w); Complex cor = new Complex(-1.0000000000000002,1.0000000000000002); assertEquals(res,cor); }
[ "@Test\n public void test75() throws Throwable {\n Complex complex0 = new Complex(0.0, 0.0);\n Complex complex1 = complex0.divide(complex0);\n }", "@Test\n\tvoid testDiv() {\n\t\tassertEquals(ComplexNumber.parse(\"2+3i\").div(ComplexNumber.parse(\"2+2i\")).getReal(), 1.25);\n\t\tassertEquals(Complex...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
get getCashCancelListDetailExcel excel file
File getCashCancelListDetailExcel(CashSub sub);
[ "public static void listToExcel(List<? extends C100> lista) throws IOException {\n\t\t\r\n\t\tlong timeInicial = System.currentTimeMillis();\r\n\t\tString pathExcel = \"C:\\\\JavaCode\\\\Desktop\\\\teste.xls\";\r\n\t\tFileWriter excel = new FileWriter(new File(pathExcel));\r\n\r\n\t\tBufferedWriter writer = new Buf...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.
@SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { jPopupMenu1 = new javax.swing.JPopupMenu(); jPopupMenu2 = new javax.swing.JPopupMenu(); jDialog1 = new javax.swing.JDialog(); ...
[ "public StForm() {\n initComponents();\n }", "public CineForm() {\n initComponents();\n }", "public javaform() {\n initComponents();\n }", "public EditDemographicForm() {\n initComponents();\n }", "public FightForm() {\n initComponents();\n }", "public For...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
public static void main(String[] args) { int code = 64; int n = 3, m= 4, count = 5, rcount = 0; String Result = ""; if(n*m <= count){ for(int j = 0 ; j < n ; j++){ for(int k = 0 ; k<m ; k++){ code++; Result = Result + " " + Character.toString((char)code); } System.out.print...
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Create an entity for this test. This is a static method, as tests for other entities might also need it, if they test an entity which requires the current entity.
public static AccountTransction createEntity(EntityManager em) { AccountTransction accountTransction = new AccountTransction() .amount(DEFAULT_AMOUNT) .origin(DEFAULT_ORIGIN) .transactionType(DEFAULT_TRANSACTION_TYPE); return accountTransction; }
[ "protected abstract Entity createEntity();", "EntityInstance createEntityInstance();", "@Override\n protected void createEntity() {\n Company company = createCompany(1001);\n setEntity(company);\n }", "public final Entity createEntity() {\n Entity entity = new Entity(this);\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Ritorna il valore, sotto forma di stringa, della frazione. Scegliere tra: 1 > Frazione 1 2 > Frazione 2 3 > Frazione 3
public String stampa(int numeroFrazione){ numeroFrazione--; String ris = numeratori[numeroFrazione] + "/" + denominatori[numeroFrazione]; // printfn(ris); return ris; }
[ "private static String codificaNome(String nome) //metodo per la codifica della terna di caratteri nel codice fiscale (per nome e cognome)\n\t{\n\t\tint num = 0, consonanti = 0;\n\t\tString terna = \"\";\n\t\tfor (int i = 0; i < nome.length(); i++) {\n\t\t\tif (!DataProcessing.isVocale(nome.charAt(i)))\n\t...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Name of user's father or husband.
@ApiModelProperty(value = "Name of user's father or husband.") public String getFatherOrHusbandName() { return fatherOrHusbandName; }
[ "public String getName() {\n if (this.father == null) {\n return name;\n }\n return father.getName() + \".\" + name;\n }", "public String getFather() {\n\t\treturn father;\n\t}", "public String getName()\n {\n User user = userManager.getLoggedUser();\n if(user...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
chages view to certainIngrecientbatchListView
@Override public void update(int index, IngredientDTO object, String value) { (IngredientListView.this).prod.setView(new CertainIngredientBatchListView((IngredientListView.this).prod, object.getID())); }
[ "protected void callist() {\n\t\tIntent i2 = new Intent(this,My_list.class); \n\t\tstartActivity(i2);\n\n\t}", "@Override\n\tpublic void onShowAllClick(SeriseListView view) {\n\n\t}", "private void controlerlistview() {\n\n //setup for name\n final String[] nameStrings = new String[20];\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the person's birthdate
public void setBirthDate(LocalDate bd){ birthDate = bd; }
[ "void setBirthDate(Date birthDate);", "private void setBirthDate(OurDate birthDate) {\r\n\r\n\t\r\n\t\t\r\n\t\tthis.birthDate=birthDate;\r\n\t}", "public void setBirth(Date birth) {\n\t\tthis.birth = birth;\n\t}", "public void setBirthDate(Date birthDate){\r\n\t this.birthDate=birthDate;\r\n\t}", "public ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Insert at the end
public void insertAtEnd(int d){ Node temp = head; Node temp2 = new Node(d); while(temp.next != null){ temp = temp.next; } temp.next = temp2; temp2.next = null; }
[ "void insertAfter(Object data){\n if(length() > 0 && index() >= 0){\n \n if(index == length -1){\n append(data);\n }else{\n length++;\n Node newNode = new Node(data);\n newNode.next = cursor.next;\n newNode.previous = cursor;\n cursor.next = newNode;\n }\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This callback is important for handling errors that may occur while attempting to connect with Google. More about this in the next section.
@Override public void onConnectionFailed(ConnectionResult result) { Log.d(TAG, "I failed"); }
[ "@Override\n\tpublic void onConnectionFailed(ConnectionResult result) {\n\t\t// This callback is important for handling errors that\n\t\t// may occur while attempting to connect with Google.\n\t\t//\n\t\t// More about this in the 'Handle Connection Failures' section.\n\t\tLog.i(\"gpsconnection\",\"connection failed...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
optional .datayes.mdl.mdl_szl2_pbmsg.double_3 Turnover = 3;
datayes.mdl.mdl_szl2_pbmsg.MDLSZL2Msg.double_3OrBuilder getTurnoverOrBuilder();
[ "datayes.mdl.mdl_szl1_pbmsg.MDLSZL1Msg.float_3 getOpenPrice();", "datayes.mdl.mdl_szl1_pbmsg.MDLSZL1Msg.double_3 getOpenIndex();", "void WinOver()\n\t{\n\t\tM.sound3Pause();\n\t\tM.stop();\n\t\tmGR.mAdd++;\n\t\tmGR.resumeCounter = 0;\n\t\tif(M.PlayerLife<=0)\n\t\t{\n\t\t\tM.GameScreen = M.GAMEOVER;\n\t\t\tM.Pla...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Implementations will deploy the given definition to the given destination. For now we just have a filesystem Path implementation In the future we could have FTP implementations for example...
public interface StructureImplementor<T> { void implement(StructureDefinition definition, T destination) throws IOException; }
[ "public abstract String getDestPath();", "PhysicalPath createPhysicalPath();", "public interface ExcelFileTransferable {\n\n public Path createFile();\n\n}", "@Override\n @NonNull String destination();", "public void setDestination(Destination destination) {\n this.destination = destination;\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Draws all child components and Drawables to the screen.
public void draw(Graphics g, int leftInset, int topInset, int rightInset, int bottomInset) { Graphics2D g2d = (Graphics2D) g; if (backgroundColor.getAlpha() > 0) { g2d.setColor(backgroundColor); g2d.fillRect(leftInset, topInset, pixelWidth(), pixelHeight()); } for (Drawable d: drawables) { if (!d.isV...
[ "protected final void drawChildren() {\n for(int i = 0; i < children.length; i++) { //Iterate through all the children\n if(children[i].visible()) { //If the child isn't visible, there is no point in drawing it, so make sure that it is visible\n children[i].repaint();\n }...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get all Books from DB.
List<Book> findAll();
[ "public List<Book> getAllBooks() {\n return (List<Book>)bookRepository.findAll();\n }", "public List<Book> getAll() {\n\t\tList<Book> books = new ArrayList<Book>();\n\t\tbookRepository.findAll().forEach(b -> books.add(b));\n\t\treturn books;\n\t}", "List<Book> getAll() throws SQLException, DaoExceptio...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }