query
stringlengths
8
1.54M
document
stringlengths
9
312k
negatives
listlengths
19
20
metadata
dict
returns the total number of calls to the method isValid of any object of the class Solution since the last call to the method resetNumberOfCalls.
public int getNumberOfCalls(){ return this.numberOfCalls; }
[ "public Integer getNeedCorrectCnt() {\r\n return needCorrectCnt;\r\n }", "public int getTimesCorrect()\n\t{\n\t\treturn _timesCorrect;\n\t}", "public int getCalledCount() {\n return count;\n }", "int getNumberOfCalls();", "public int getMissedCallCount() {\n final Cursor m...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get the shared field includes.
public Iterator getSharedFieldIncludes() { return m_sharedFieldIncludes.iterator(); }
[ "String[] getIncludes();", "@Override\n public String[] getIncludes() {\n return this.includes;\n }", "List<String> getForwardingContextDataInclude();", "java.lang.String getIncludeObject();", "public Iterator<WikiName> getIncludes()\n {\n return new FilteredDependencyIterator(_depend...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
repeated .com.elarian.hera.proto.ActivitySessionState sessions = 1;
private void addSessions(com.elarian.hera.proto.ActivityStateOuterClass.ActivitySessionState value) { value.getClass(); ensureSessionsIsMutable(); sessions_.add(value); }
[ "com.google.search.now.feed.client.StreamDataProto.StreamSessions getStreamSessions();", "public interface HttpSocketSession {\n\n String id();\n\n State state();\n\n State close();\n\n HttpSocketMessage payload(byte[] msg);\n\n HttpSocketMessageProducer producer();\n\n\n public interface State ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Ajoute un nouvel arret en position 'positionA'
public void ajouterArret(ARRET newA, int positionA);
[ "public void addAeroporto() {\r\n\t\t\r\n\t}", "public void aggiungiAgnello(int posizione) {\r\n\t\tif (agnello[posizione] == null) {\r\n\t\t\tagnello[posizione] = new Ovino(\"./img/agnello.png\");\r\n\r\n\t\t\tagnello[posizione].setLocation((int) posizioniAgnelli\r\n\t\t\t\t\t.getLocalizzazione(new Posizione(\"R...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns a short description of the servlet.
@Override public String getServletInfo() { return "Short description"; }
[ "public String getServletInfo()\n {\n return \"Short description\";\n }", "public String getServletInfo() {\r\n\t\treturn \"Short description\";\r\n\t}", "public String getServletInfo()\r\n {\r\n\treturn \"Short description\";\r\n }", "@Override\n public String getServletInfo() {\n re...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO: Investigate about the complexity Complexity: O(N), still not sure about the correct complexity Space: O(N), we need to use a temporal Node as helper
public Node reverse(Node head) { Node current = head; Node previous = null; while (current != null) { if(isEven(current.data)) { current = reverseEvenListElements(current); if(previous != null) { previous.next = current; ...
[ "private Record<F, E> getNodeBeforeCurrentForRecords(Record<F, E> temp) {\r\n Record<F, E> temp2 = head2;\r\n if (head2 != null) {\r\n if (head2.next2 != null) {\r\n while (temp2.next2 != temp) {\r\n temp2 = temp2.next2;\r\n }\r\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Method to insert data
public void insert(FundTransfer fundTransfer);
[ "int insert(DatavInfo record);", "public void insertData(String input);", "private void insertData() {\n insertPaymentMethods();\n insertCustomers();\n insertPayment();\n insertOrders();\n insertOrderHistory();\n insertOrderItems();\n }", "protected void insertData...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
inicializa un nuevo proceso en la cola del arreglo de procesos
public boolean nuevoProceso(String name, int time){ boolean writted = false; int index = 0; while (!writted && index <= this.maxLengt) { if (this.length() > this.maxLengt-1) { JOptionPane.showMessageDialog(null, "Lista de procesos llena"); ...
[ "public Promociones() {\n }", "@PostConstruct\n\tpublic void novo() {\n\t\tproduto = new Produto();\n\t\thistorico = new Historico();\n\t\t/* quando a tela abrir o painel deve sumir */\n\t\texibePainelDados = false;\n\n\t}", "public Produto() {\r\n\t}", "private void crearPresupuesto()\r\n/* 141: */ ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Write code here that turns the phrase above into concrete actions
@Then("^Enter the valid passwordsdsd in password field \"([^\"]*)\"$") public void enter_the_valid_passwordsdsd_in_password_field(String arg1) throws Throwable { login.enterpasswordfield(arg1); }
[ "@Override\n public void doAction(MentionOf s) {\n\t\n }", "public void action(String name) {}", "@Override\n\t\tpublic void action() {\n\n\t\t}", "private void processAction(char action) throws IOException {\n switch (action) {\n case 'u':\n Viite tallennettava = getRef...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the field21 value for this TMsgOutParam.
public java.lang.String getField21() { return field21; }
[ "public int getField22() {\n return field22_;\n }", "public int getField22() {\n return field22_;\n }", "public String getParamOut() {\n return (String) getValue(null, null, KEY_OUT);\n }", "public int getField23() {\n return field23_;\n }", "public java.lang.String...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Type text into path field.
public void setPathValue(String value) throws InterruptedException { IDE().INPUT.typeToElement(pathField, value, true); }
[ "public void setPathTextField(String pathTextField) {\n this.pathTextField.setText(pathTextField);\n }", "public String getPathTextField() {\n return pathTextField.getText().toString();\n }", "private void updatePathField(){\n String path = controller.getCurrentPath();\n curren...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "ruleUnaryExpression" $ANTLR start "entryRulePrimaryExpression" ../com.dexels.navajo.dsl.tsl/srcgen/com/dexels/navajo/dsl/tsl/parser/antlr/internal/InternalTsl.g:4166:1: entryRulePrimaryExpression returns [EObject current=null] : iv_rulePrimaryExpression= rulePrimaryExpression EOF ;
public final EObject entryRulePrimaryExpression() throws RecognitionException { EObject current = null; EObject iv_rulePrimaryExpression = null; try { // ../com.dexels.navajo.dsl.tsl/src-gen/com/dexels/navajo/dsl/tsl/parser/antlr/internal/InternalTsl.g:4167:2: (iv_rulePrimaryExpre...
[ "public final EObject entryRulePrimaryExpression() throws RecognitionException {\r\n EObject current = null;\r\n\r\n EObject iv_rulePrimaryExpression = null;\r\n\r\n\r\n try {\r\n // InternalRtVil.g:2124:2: (iv_rulePrimaryExpression= rulePrimaryExpression EOF )\r\n // Inte...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Interface for Update manager Manages listener (observer) sets and notifications to the listeners.
public interface IMsoEventManagerIf { /** * Add a listener in the Client Update Listeners queue. * * @param aListener The listener */ public void addClientUpdateListener(IMsoUpdateListenerIf aListener); /** * Remove a listener in the Client Update Listeners queue. *...
[ "public interface UpdatesListener {\n\n /** Before update. */\n void beforeUpdate();\n\n /** After update. */\n void afterUpdate();\n }", "interface UpdateListener {\n\n\n /**\n * This method gets called when the callback listener is registered\n *\n * @param allListene...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
GENFIRST:event_txtCliNomFocusLost TODO add your handling code here:
private void txtCliNomFocusLost(java.awt.event.FocusEvent evt) { if (!txtCliNom.getText().equalsIgnoreCase(strDesLarPrv)) { if (txtCliNom.getText().equals("")) { txtCliCod.setText(""); txtCliNom.setText(""); } else { BuscarC...
[ "private void cphFocusLost(java.awt.event.FocusEvent evt) {\n // TODO add your handling code here:\n guardarBaseDatos(1);\n }", "void textFieldBlueAmount_FocusLost(java.awt.event.FocusEvent event)\n\t{\n\t\t\t \n\t\ttextFieldBlueAmount_FocusLost_Interaction1(event);\n\t}", "public void Controll...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Toast.makeText(getActivity(), " voce clicou em NAO", Toast.LENGTH_SHORT).show();
public void onClick(DialogInterface dialog, int which) { dialog.cancel(); }
[ "@Override\n public void onClick(View view) {\n Toast.makeText(getActivity(), \"Ini event positif\", Toast.LENGTH_SHORT).show();\n }", "private void showToast(String msg)\n\t{\n\t\tToast.makeText(getActivity(), msg, Toast.LENGTH_SHORT).show();\n\t}", "@Override\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Validates the the function is already defined, that the type of the parameters match the formal parameters. It returns the return type of the function.
@Override public Object visitFunctionCallExpression(AstFunctionCallExpression functionCall) { ExpressionRecord record = checkFunctionCall(functionCall.getName(), functionCall.getAstExpressions(), functionCall.getLine()); AatExpression tree = null; FunctionEntry functionEntry = functionEnv.find(f...
[ "public Type check(TypeEnvironment G) throws TypeError {\n\t\tif (! (funType instanceof FunType)) throw new TypeError(\"declared type of function \"+this+\n\t\t\t\t\" must be a function type, but instead is \"+funType);\n\t\tFunType functionType = (FunType)funType;\n\n\t\t// check that formals are pairwise distinct...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Faire avancer dans la pelouse
public Position avancer(final Pelouse pelouse){ Position position = this; //vérifier si la tondeuse peut avancer sur la pelouse. if(!peutAvancer(pelouse)){ return position; } // Ne marchera que sur jvm >= 1.7 switch(direction.toString()){ case "N" : y =y+1; position= new Position(x, y, d...
[ "private void escribirEnPantalla() {\n }", "@Override public void avvia() {\n super.avvia();\n this.setModificato(false);\n }", "public void avanzar (){\n\n }", "@Override\r\n\t\t\tpublic void acaoAoSair() {\n\t\t\t\t\r\n\t\t\t}", "public void cierra(){\n vcerradura=true;\r\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public boolean analyze(String target, String searchStr) { return target.contains(searchStr); }
[ "@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" ] ] } }
look up a player
@Override public SoccerPlayer getPlayer(String firstName, String lastName) { String key = firstName + "#" + lastName; return database.get(key); }
[ "Player findByName(String name);", "public Player getPlayer(String username);", "public Player getPlayerWithId(String playerId);", "public Player getPlayer(String name){\n for (Player p : playerList) {\n if (p.name.equals(name)){\n return p;\n }\n }\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/TODO /TODO / Isolate nibbles
public static long LOW_NIBBLE(long A) { return ((A) & 0x0fL); }
[ "@Test\n public void testGetOneByte() {\n NibbleArray nibbleArray = new NibbleArray(new byte[] { 0b0001__0000 });\n assertEquals(0b0001, nibbleArray.get(1));\n assertEquals(0b0000, nibbleArray.get(0));\n }", "@Test\n public void testSetTwoBytes() {\n NibbleArray nibbleArray = ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method corresponds to the database table tb_pro_alter_detail
public void setLimitStart(Integer limitStart) { this.limitStart=limitStart; }
[ "@Override\n\tpublic String visitStmtAlterTable(GramaticaSQLParser.StmtAlterTableContext ctx) \n\t{\n\t\treturn super.visitStmtAlterTable(ctx);\n\t}", "public String getSqlUpdateFromV002() {\n return null;\r\n }", "@Override\n\tpublic void modifyProduct(TblProduct tblProduct, List<TblProduct> proList)...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
find the max of two integers
private static int max(int a, int b) { if (a>b) return a; return b; }
[ "int imax2(int int1, int int2);", "public static int max(int a, int b) \n\t { \n\t return (a > b)? a : b; \n\t }", "int maxVal(int a , int b) {\r\n\t\treturn (a>b)?a:b;\r\n\t}", "static int max(int a, int b) {\r\n\t\treturn ((a > b) ? a : b);\r\n\t}", "private int max(int a, int b) {\r\n\t\tret...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
og:video:type A MIME type for this video. (Structured)
public String videoType() { return string(og_video_type); }
[ "public String getContentType() {\n try {\n URL url = getLocator().getURL();\n String urlFile = url.getFile();\n if (urlFile.endsWith(\".mov\")) return \"video.quicktime\"; else if (urlFile.endsWith(\".mpg\")) return \"video.mpeg\"; else if (urlFile.endsWith(\".avi\")) return...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets net balance of all accounts of a user in CAD.
private double getTotalBalance() { return getAssetBalance() - getDebtBalance(); }
[ "private double getNetTotal() {\n double balance = 0;\n for (ArrayList<Account> accountList : accounts) {\n for (Account account : accountList) {\n if (account instanceof DebtAccount) {\n balance -= account.balance;\n } else {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This funnction calculaes the cost of the state space node
@SuppressWarnings("unchecked") public void getCost(NodeState old, int row, int col,boolean flag) { int sum = 0; this.reducecost = (int[][]) old.reducecost.clone(); // row min value reduction for (int i = 0; i < this.reducecost.length; i++) { if(i == row) continue; int min = this.reducecos...
[ "int calculateCost(T state);", "double getCostForCurrentState();", "public int calcCost(Node n){\n\t\tNode start = getMaze().getStart();\n\t\tint g = n.getgCost();\n\t\tint h = Math.abs((int)start.getLoc().getX()-(int)n.getLoc().getX())+Math.abs((int)start.getLoc().getY()-(int)n.getLoc().getY()); \n\t\treturn g...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the command that has been put into the queue for this client.
public void setNextCommand(int nextCommand) { this.nextCommand = nextCommand; }
[ "private void setCommand(String command) {\n this.command = command;\n }", "@Override\r\n\tprotected void resetInputQueueTo(String command) {\r\n\t\tsynchronized(this.inputQueue) {\r\n\t\t\tthis.inputQueue.clear();\r\n\t\t\tthis.inputQueue.add(command);\r\n\t\t}\r\n\t}", "public void setComman...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Multiple documents Skip to
@Test public void testCase4 () throws IOException { //System.out.println("testCase4"); ki = new KrillIndex(); ki.addDoc(createFieldDoc1()); ki.addDoc(createFieldDoc0()); ki.addDoc(createFieldDoc3()); ki.addDoc(createFieldDoc4()); ki.commit(); SpanQuer...
[ "public void useIteratorSkip() {\n UjoIterator<Item> items = session.createQuery(Item.NOTE.where(NOT_EQ, \"XXXXX\")).iterator();\n\n boolean skip = items.skip(1);\n if (items.hasNext()) {\n Item item = items.next();\n logInfo(\"Item: {}\", item);\n }\n\n skip...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Called to sell a item
boolean sell(Item item, int amount) { Player player = (Player) DomainGame.getInstance().getPlayer(); if (((Inventory) player.getItemInventory()).removeItem(item, amount)) { player.addGold(item.getSellValue() * amount); return true; } return false; }
[ "public void sellItem() {\n\n\t}", "@Override\n protected void handleSellIn(Item item)\n {\n }", "public void sell() {\n if (!World.getPlayer().hasMerchantList()) {\n return;\n }\n \n final MerchantList merchantList = World.getPlayer().getMerchantList();\n as...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
training all input data
public double trainAll() { double totalError = 0; for (int i = 0; i < inputs.length; i++) { double error = 0; double[] output = forwardPropagation(inputs[i]); outputs[i] = output; for (int j = 0; j < numOutput; j++) { error += Math.pow(outp...
[ "void train() {\n findFeatures();\n trainWeights();\n }", "public void train(DataSet trainingDataSet);", "public abstract void train(double[][] input, double[][] target);", "public void train(List<Datum> _trainData ){\n\t\ttrainData = _trainData;\n\t\tint totalIter = 1;\n\t\tint numWordsInTra...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
The main thread logic.
public void run() { // Do while the thread is not interrupted while (!isInterrupted()) { String url; try { url = urlPool.getNextUrlToCheck(); } catch (InterruptedException e1) { System.out.println(getName() + " interrupted on waiting a link"); return; } try { checkIf...
[ "@Override\n\t\t\tpublic void run() {\n\t\t\t\t_main();\n\t\t\t}", "public void run() {\n \t\n }", "@Override\n public synchronized void run() {\n }", "@Override\n\tpublic void run() {\n\t\ttry {\n\t\t\tthis.main(null);\n\t\t} catch (IOExcept...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Verify that the coordinate has no bit set after the 8th LSB
@Override public long i02hash(int i) { assert (i == -1) || ((i & 0xFFFF0000) == 0); return ((long) LUPT_TO_HASH[(i >>> 8) & 0x000000FF]) << 16 // apply the mask just in case of -1 value | LUPT_TO_HASH[i & 0x000000FF]; }
[ "public boolean hasCoordinate() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "boolean hasProblemLocationOffset();", "@Test\r\n\tpublic final void testHasMaskedBitsFalse() {\r\n\t\tcells.initialize();\r\n\t\tassertFalse(cells.hasMaskedBitsFalse(0, 0, Cells.CW_RIGHT));\r\n\t\t\r\n\t\tWall w...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Given an array of numbers nums, in which exactly two elements appear only once and all the other elements appear exactly twice. Find the two elements that appear only once. For example: Given nums = [1, 2, 1, 3, 2, 5], return [3, 5].
public int[] singleNumberIIIOne(int[] nums) { if(nums == null || nums.length == 0) return null; HashMap<Integer, Integer> hashMap = getIntegerIntegerHashMap(nums); int[] ret = new int[2]; int j = 0; for(int i = 0; i < nums.length; i++) { if(hashMap.get(nums[i]) == 1) ...
[ "public List<Integer> findDuplicates2(int[] nums) {\n List<Integer> duplicates = new ArrayList<>();\n // check corner cases\n if (nums == null || nums.length == 0) {\n return duplicates;\n }\n \n Map<Integer, Integer> counter = new HashMap<>();\n\n for (in...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Write a function to find the second largest number in a given array.
public static void main(String[] args) { int[] arr = { 3, 6, 10, 8, 6, }; int n = arr.length; int highest = Integer.MIN_VALUE; int secondHighest = Integer.MIN_VALUE; for (int i = 0; i < n; i++) { if (arr[i] > highest) { secondHighest = highest; highest = arr[i]; } if (arr[i] < h...
[ "public static int secondLargestNumber(int[] arr){\n // declare variables\n int fmax = 0; // first largest\n int smax = 0; // second largest\n\n // assign first element to fmax, smax\n fmax = arr[0];\n smax = arr[0];\n\n // compare with remaining elements\n //...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method sets the value of the database column MEM_BASE_URLRESOURCE.URLNAME
public void setUrlname(String urlname) { this.urlname = urlname == null ? null : urlname.trim(); }
[ "void setResUrl(String resURL);", "private void updateJDBCURL() {\n\t\tif (this.currentJDBCURLTemplate == null)\n\t\t\treturn;\n\n\t\t// Update the JDBC URL based on our current settings. Do this\n\t\t// by replacing the placeholders in the template with the\n\t\t// current values of the host/port/database fields...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates a new ListenableFuturestyle stub that supports unary calls on the service
public static CityFutureStub newFutureStub( io.grpc.Channel channel) { return new CityFutureStub(channel); }
[ "private static final class <init> extends AbstractFuture\n{\n\n boolean setFuture(ListenableFuture listenablefuture)\n {\n boolean flag = set(listenablefuture);\n if (isCancelled())\n {\n listenablefuture.cancel(wasInterrupted());\n }\n return flag;\n }", "p...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
just add new element to the containing class
@Override public PsiElement replace(@NotNull PsiElement newElement) throws IncorrectOperationException { final PsiClass containingClass = getContainingClass(); if (null != containingClass) { CheckUtil.checkWritable(containingClass); return containingClass.add(newElement); } return null; ...
[ "public ELEMENT addClass(Object class_,Object...fragments);", "@Override\n\tpublic void addInnerClass(InnerClass component)\n\t{\n\t}", "@Override\r\n\tprotected void makeNewElement() {\n\t\tcount++;\r\n\t}", "public void addClass(Class classe){\n classes.add(classe);\n }", "public void addElement...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Obtiene el identificador de la Eps.
public Long getEpsId() { return (this.epsId); }
[ "private int getMyId() {\r\n\t\t\tfor (int i = 0; i < servers.size(); i++) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tif (InetAddress.getLocalHost().getHostAddress().equals(servers.get(i).getPvt_ip())) {\r\n\t\t\t\t\t\treturn servers.get(i).getId();\r\n\t\t\t\t\t}\r\n\t\t\t\t} catch (UnknownHostException e) {\r\n\r\n\t\t\t\t}...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
if the node has more than two children, the tree isn't a binary tree
public boolean isBinaryRoot(Node node) { if (node.children.size() > 2 ){ return false; } for (Node child: node.children) { // if the node has any decendant which is not a binary root, the tree isn't a binary tree if (!isBinaryRoot(child)){ return false; } } return true; }
[ "public Boolean isChildren();", "public boolean isLeaf()\r\n {\r\n return (leftChild == null) && (rightChild == null);\r\n }", "public boolean hasOnlyCompleteNode(){\n if (isEmpty()){\n return true;\n }\n else{\n int childCount = 0;\n if (!this.leftChil...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method returns the value of the database column goku_bussiness.remarks
public String getRemarks() { return remarks; }
[ "public String getBoqDescription() {\r\n return (String) getAttributeInternal(BOQDESCRIPTION);\r\n }", "public String getBrief() {\n return this.brief;\n }", "@AutoEscape\n\tpublic String getBenefits();", "public String getBbl() {\n return bbl;\n }", "public String getTableRema...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
the method checks if x flags could be set on given peaks
private boolean checkXFlags (int x, boolean[] peaks) { if (x == 0) { throw new IllegalArgumentException("You cannot check 0 flags."); } int flags = x; int pos = 0; int N = peaks.length; while (pos < N && flags > 0) { if (peaks[pos]) { ...
[ "private boolean isPeak(int index) {\n\t\treturn (\tonset_peek[index] > onset_peek[index - 1] &&\n\t\t\t\t\tonset_peek[index] > onset_peek[index + 1] && \n\t\t\t\t\tonset_peek[index] > 0.);\n\t}", "private void xnpcmchk(NPWORKT Ppnpwt,int Pcnt,int Pmsk) //~v0.1R~\r\n{\r\n int ii,cnt;\r\n//**********...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public T findUniqueResultByProperty(String propertyName, Object value) { return null; }
[ "@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" ] ] } }
/ compiled from: MediaMetaDataRetrieverThread
public interface a { void onSuccess(); }
[ "public void onTimedMetaDataAvailable(android.media.MediaPlayer mp, android.media.TimedMetaData data);", "public MediaInfo(String currentURI, String currentURIMetaData, String nextURI, String nextURIMetaData, UnsignedIntegerFourBytes numberOfTracks, String mediaDuration, StorageMedium playMedium) {\n/* 89 */ ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Pre: Takes the vertex in question Post: Returns an ArrayList of successors
private ArrayList<Vertex> successors(Vertex v){ ArrayList<Vertex> success = new ArrayList<Vertex>();//Creates list of successors for(int i = 1; i <=3; i++){//determines one of the numbers in the operator for(int j = 1; j<= 3; j++) {// determines the other number Operator test = new Operator(i,j);//creates an...
[ "Set<V> getPredecessors(V vertex);", "public void printSuccessorsOf(int vertex) {\n\t\tArrayList<Integer> successorsArray = successorsOf(vertex);\n\t\t\n\t\tSystem.out.print(\"Successeurs de \" + vertex + \": \");\n\t\tif(successorsArray.size() == 0)\n\t\t\tSystem.out.print(\"/\");\n\t\tfor(int i = 0; i < succes...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override protected void onCreate(Bundle arg0) { super.onCreate(arg0); setContentView(R.layout.sdrecord_activity); dateHour = getIntent().getStringExtra("dateHour"); isFirstItem = getIntent().getBooleanExtra("isFirstItem", false); LinearLayout backLayout = (LinearLayout)findViewById(R.id.sd_back_layout); I...
[ "@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 a new Shopping Group
@RequestMapping(value = "/create", method = RequestMethod.GET) public ModelAndView create() { ModelAndView result; final ShoppingGroupForm shoppingGroupForm; Collection<Category> cats; shoppingGroupForm = new ShoppingGroupForm(); cats = this.categoryService.findAll2(); result = new ModelAndView(...
[ "Group createNewGroup (Group group);", "public int Group_create();", "public EmployeeGroup create(EmployeeGroup employeeGroup);", "long createGroup(long typeId, FxGroupEdit group, String parentXPath, String assignmentAlias) throws FxApplicationException;", "public void create(GroupMap testGroup) {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Invoke the QueryName action.
public void QueryName() { invoke(QueryName,null,null); }
[ "public void action(String name) {}", "public abstract int executeAction(\n\t\tBaseForm form,\n\t\tConnection conn,\n\t\tBaseHome query,\n\t\tHttpServletRequest request);", "public void showQuery(String query){this.log(query);}", "private void btnQueryClicked() {\n\t\t\t\tif (!input.getText().equals(\"\")) {\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Generated: Get procedure for Value
public String getValue() { return this.value; }
[ "com.ubbcluj.amcds.myDalgs.communication.Protocol.Value getValue();", "I getValue();", "@Override\n public Object getValue()\n {\n return \"value\";\n }", "public Object getValue()\n/* */ {\n/* 90 */ return this._value;\n/* */ }", "public String getValue ();"...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
sets new owner of tile
protected void setOwner(Player owner){ this.owner = owner; }
[ "@Override\n public void setOwner(Player owner) {\n // TODO: Erik - this only works if called on the server!\n super.setOwner(owner);\n tile.setOwner(owner);\n for (Unit unit : getUnitList()) {\n unit.setOwner(owner);\n if (unit.getLocation() instanceof Co...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Checks whether the 'feature1' field has been set.
public boolean hasFeature1() { return fieldSetFlags()[1]; }
[ "private boolean internalFeatureCheck(int feature) {\n if (FeatureMap.get(feature)) {\n return true;\n }\n return false;\n }", "public boolean isSetAddressLine1()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().c...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the user input last name.
public void setLastName(String lname){ this.lname = lname; }
[ "public void setLastname(String newValue);", "public void setLastName(String in)\r\n\t{\r\n\t\tlast = in;\r\n\t}", "public void SetLastName(String inputLastName)\n {\n this.lastName = inputLastName;\n }", "public void setLastname(java.lang.String value)\n {\n this.lastname = value;\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Displays the given score for Team B
public void displayForTeamB(int score) { TextView scoreView = (TextView) findViewById(R.id.team_b_score); scoreView.setText(String.valueOf(score)); }
[ "public void displayForTeamB(int score) {\n TextView scoreTeamBView = (TextView) findViewById(R.id.team_b_score);\n scoreTeamBView.setText(String.valueOf(score));\n }", "public void displayGolsForTeamB(int score) {\n TextView scoreView = (TextView) findViewById(R.id.text1teamB);\n s...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Finds the lightest Player (lowest weight variable).
public Player lightestPlayer() { // Set arbitrarily high: int lowestWeight = Integer.MAX_VALUE; Player lightestPlayer = null; for (int i = 0; i < players.size(); i++) { int weight = players.get(i).getWeight(); if (lowestWeight > weight) { ...
[ "public Players getFirstPlayer() {\r\n \tint maxScore = 0;\r\n \tPlayers starter = players[0];\r\n\t\tMap<Shape, Integer> shapeResult = new HashMap<Shape, Integer>();\r\n\t\tMap<Color, Integer> colorResult = new HashMap<Color, Integer>();\r\n \tfor(Players p: players) {\r\n \t\tshapeResult.clear();\r\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns a value representing the cell's position in the cells collection of the the cell is contained within.
@JsProperty public native int getCellIndex();
[ "public Cell getPosition() {\n\t\treturn positionCell;\n\t}", "public int getCell()\n\t{\n\t\treturn cell;\n\t}", "public SubCell getPosition()\n {\n return position;\n }", "int getCellX();", "public int getCellX() {\n return cellX_;\n }", "public int getEdit_cell_posi...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO: Warning this method won't work in the case the id fields are not set
@Override public boolean equals(Object object) { if (!(object instanceof CCliente)) { return false; } CCliente other = (CCliente) object; if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) { return false; ...
[ "public int getId () { return id; }", "public int getId(){ return this.id;}", "public int id() {return this.id;}", "@Override\n public int getId() { return id; }", "public void setId(long id){ \r\n this.id = id; \r\n }", "public void setId( int id ) { this.id = id; }", "@Override\n pub...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the graph found by reading the input graph file. No attributes will be returned.
public static DirectedNodeEdgeGraph<String> readDotFile(String filename) { return readDotFile(filename, null, null); }
[ "public static Graph readGraph(String filename) { return readGraph(filename, null) ; }", "public static Graph readGraph(Scanner in) {\n \treturn readGraph(in, false);\n }", "public static Graph readGraph() {\n\t\tGraph g = new Graph();\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Stores the User in Datastore.
public void storeUser(User user) { Entity userEntity = new Entity("User", user.getEmail()); userEntity.setProperty("aboutMe", user.getAboutMe()); userEntity.setProperty("profilePic", user.getProfilePic()); datastore.put(userEntity); }
[ "public void storeUser(User u);", "public void storeUser(User user) {\n Entity userEntity = new Entity(\"User\", user.getEmail());\n\n userEntity.setProperty(\"email\", user.getEmail());\n userEntity.setProperty(\"aboutMe\", user.getAboutMe());\n\n datastore.put(userEntity);\n }", "private void sto...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public void remove(Integer bno) throws Exception { dao.delete(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" ] ] } }
Handles HTTP head requests
private static void HandleHEADRequest(HttpExchange exchange) throws IOException { if (debuggingOutput) { System.out.println("Client accepted"); PrintHTTPRequest(exchange); } URI requestURI = exchange.getRequestURI(); String requestPath = requestURI.getPath(); ...
[ "@Override\n\tprotected void doHead(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doHead(req, resp);\n\t}", "public RequestResult head() throws IOException, ServletException {\n request.setMethod(Method.HEAD);\n run();\n return new RequestResult(reque...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
setPeso() Mudar o peso do Jogador
public void setPeso(int peso) { this.peso = peso; }
[ "public void setPeso(double peso){\r\n\t\tthis.peso = peso;\r\n\t}", "@Test\n\tpublic void testSetPeso() {\n\t\tSystem.out.println(\"setPeso\");\n\t\tdouble peso = 0.0;\n\t\tProducto instance = new Producto();\n\t\tinstance.setPeso(peso);\n\n\t}", "public void setRegistroPeso(RegistroPeso registroPeso)\r\n/* 35...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
String sql = "UPDATE proizvodi SET proizvod_naziv='" + proizvod.getProizvod_naziv() + "', proizvod_cena='" + proizvod.getProizvod_cena() + "', proizvod_opis='" + proizvod.getProizvod_opis() + "' WHERE proizvod_id='" + proizvod.getProizvod_id() + "'"; jdbcTemplate.update(sql); return true;
@Override @Transactional public boolean updateProizvod(Proizvod proizvod) { getSession().saveOrUpdate(proizvod); return true; }
[ "@Test\n public void updateTest() {\n String sql = XMLUtils.getSQLByKey(\"updateCustomer\");\n Object[] data = {\"老苏\",7};\n int rows = jdbcTemplate.update(sql, data);\n System.out.println(\"update rows = \" + rows);\n }", "@Test\n public void test01(){\n jdbcTemplate.u...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
remove an element at specific index method
public static void removeElementAtIndex(int array[],int element){ }
[ "E removeIndex(int index);", "void removeFromIndex(int index);", "void remove(int aIndex);", "E remove(int ndx);", "public E remove( int index ) throws IndexOutOfBoundsException;", "@Override\n public void removeIndex(Integer index)\n {\n\t \n }", "public E remove( int i );", "public Object remove...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
repaint the feedback panel so errors are shown
@Override protected void onError(AjaxRequestTarget target, Form<?> form) { target.add(feedbackPanel); }
[ "public void repaintNeeded() {\n\t}", "private void displayErrorScreen( final String errorMessage ) \n { \n System.out.println(\"displayErrorScreen() called.\"); \n Dimension pDim = this.formsInterac...
{ "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() { jScrollPane1 = new javax.swing.JScrollPane(); jTextArea1 = new javax.swing.JTextArea(); jTextField1 = new javax.swing.JTextField(); ...
[ "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" ] ] } }
This method was generated by MyBatis Generator. This method sets the value of the database column tb_express.last_update_time
public void setLastUpdateTime(DateTime lastUpdateTime) { this.lastUpdateTime = lastUpdateTime; }
[ "public void setLastUpdated(long time);", "private void setLastUpdateTime(long updateTime) {\r\n\t\tthis.lastUpdateTime = updateTime;\r\n\t\tuserView.setLastUpdateTime(this.lastUpdateTime);\r\n\t}", "public void setLastUpdate(Timestamp lastUpdate){\n this.lastUpdate = lastUpdate;\n }", "public Date ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Parse a sherdog page
@Override public Fighter parseDocument(Document doc) throws IOException { Fighter fighter = new Fighter(); fighter.setSherdogUrl(ParserUtils.getSherdogPageUrl(doc)); logger.info("Refreshing fighter {}", fighter.getSherdogUrl()); try { Elements name = doc.select(".bio_f...
[ "private int parsePage(){\n\t\t_parse_error = 0;\n\t\t_tempsearch = 0;\n\t\t_related.clear();\n\n\t\tString s = getTextBetween(\"translated_short_prefix_\", \"\\\" class=\");\n\t\tint findRelated = 0;\n\t\twhile ( !s.equals(\"\") )\n\t\t{\n\t\t\tfindRelated++;\n\t\t\tString cat = getTextBetween(\"href=\\\"/results?...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
some handy little functions
public static double Sigmoid(double input) { return Sigmoid(input, 1.0); }
[ "void mo3958xv();", "protected void method_5557() {}", "void mo62419c();", "void mo92856b();", "void mo37715E_();", "void mo37730d();", "protected abstract void mo3493a();", "void mo81895d();", "void mo104306b();", "void mo12992b();", "void mo104304a();", "void mo67483c();", "private static ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get the name of this log level
@Override public String toString() { return this.name; }
[ "public java.lang.String getLevelName() {\n java.lang.Object ref = levelName_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n levelName_ = s;\n return s;\n } else {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public Seqence selectSeq() { return null; }
[ "@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" ] ] } }
karakterin sahip oldugu petlerin isimlerinin listesini donucek
public ArrayList<String> getPetNames(){ return null; }
[ "private static void urunleriListele() {\n\t\tSystem.out.println(\"NO\\tURUNLER\\t FIYATLAR\");\n\t\tSystem.out.println(\"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\");\n\n\t\t// 6. adimda ise for kullanip runtime de gormek istiyorum\n\t\tfor (int i = 0; i < urunler.size(); i++) { // ArrayList te uzunluk size ile belirti...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the attribute value for CvId, using the alias name CvId.
public Number getCvId() { return (Number) getAttributeInternal(CVID); }
[ "public abstract java.lang.Short getCv_id();", "public String getMetadataValue(String id, String key);", "public String getSrcIDType(String id, String attrName);", "public static com.matisse.reflect.MtAttribute getIdAttribute(com.matisse.MtDatabase db) {\n return (com.matisse.reflect.MtAttribute)db.get...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns only the exact time of the departure date
public String getCheckOutHourString() { if(!date2TimeSet)return "Unknown"; SimpleDateFormat tempF = new SimpleDateFormat("HH:mm"); return tempF.format(date2.getTime()); }
[ "long getEchoDepartureTime();", "public int getDepartureTime() {\n\t\treturn this.departureTime;\n\t}", "public String getDepartureDate() {\r\n return listOfFlights.get(0).getDepartureDate();\r\n }", "public java.lang.String getDeptTime () {\n\t\treturn deptTime;\n\t}", "public String getTimeOnly() {\r\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Created by chenxiaofeng on 16/8/14.
public interface BuycarOperator { /** * 设置ID * @param id */ void setId(Long id); /** * 立即购买 */ void buyAtOnce(); /** * 添加购物车 */ void addBuyCar(); /** * 查看购物车 */ void viewBuyCar(); }
[ "@Override\n public void extornar() {\n \n }", "@Override\n }", "private static void EX5() {\n\t\t\r\n\t}", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n \tpublic void init() {\n \n \t}", "@...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method prints out the ArrayList of plays created in the Play class
public void getPlays() { ArrayList<Play> plays=Play.getPlayList(); for(int i=0;i<plays.size();i++) { System.out.println(plays.get(i)); } }
[ "public void printPlaylist(){\n System.out.println(toString());\n }", "public void showPlaylist(){\n\t\tSystem.out.print( msc.getPlaylist());\n\t}", "public void showPlayer()\n {\n for (Player player : playerList)\n {\n System.out.println(player.getName());\n } \n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Inflate the menu; this adds items to the action bar if it is present.
@Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.menu_splash, menu); return true; }
[ "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflator = getMenuInflater();\n\t\tinflator.inflate(R.menu.activity_action_bar, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\r\n public boolean onCreateOptionsMenu( android.view.Menu menu)\r\n {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
optional int32 cast_activity = 2;
public int getCastActivity() { return castActivity_; }
[ "int getBroadcastTypeValue();", "public interface LOCATION_FORWARD\n{\n\tshort value = (short)(3);\n}", "public int getMsgType(){\r\n return localMsgType;\r\n }", "DSTTYPE convert (int value);", "public void onTrackLimitationNotice(int arg0){\n\r\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
NOTE:So with these two annotations Id and Entity JPA can create a topic instance to Row instance in table and vice versa also. Constructors 1.NoArg constructor 2.Arg constructor to initialize the
public Topic() { }
[ "public AnyEntityDetailPK() {\n\t\t\n\t}", "public Topic(){}", "public SampleEmbeddedEntity() {\n\t\t\n\t}", "public TableTransactionModel(int Id){\n \n }", "public Topic(int idTopic, String nomTopic, ArrayList<Post> topicList, ArrayList<Role> topicRoleList){\n this.idTopic=idTopic;\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Scales the values in this array by c.
public static double[] multiply(double[] a, double c) { double[] result = new double[a.length]; for (int i = 0; i < a.length; i++) { result[i] = a[i] * c; } return result; }
[ "Matrix scaledBy(double c);", "public final void scale(double s) {\n int i;\n\n for (i = 0; i < length; i++) {\n values[i] = values[i] * s;\n }\n }", "public void multiplyByConstant(double c) {\n \n ContinuousProbabilityTree temp;\n \n if (this.isPr...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public void onConnectionFailed(ConnectionResult arg0) { if (!arg0.hasResolution()) { return; } if (!mIntentInProgress) { // store mConnectionResult MyApplication.mConnectionResult = arg0; if (signedInUser) { } } ...
[ "@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" ] ] } }
Adds all actors used in the Game world
void addActors() { //Creating the actors Player player = new Player(); Version version = new Version(); Timer timer = new Timer(); //Addings the actors addObject(player, playerStartX, playerStartY); //For loop to add enemies (based on enemies int) ...
[ "public void addActors(List<Actor> actors) {\n addPool.addAll(actors);\n }", "public void paintAllActors(Graphics g) {\n\t\tArrayList<Monster> monsters = getMap().getMonsters();\n\t\tPlayer player = getGame().getPlayer();\n\t\tfor(Monster m : monsters) {\n\t\t\tpaintActor(g,m);\n\t\t}\n\t\tpaintActor(g,...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Constructor for objects of class Ticket setting the destination and price. The date will contain the current system date and time
public Ticket(String destination, int price) { this.destination = destination; this.price = price; issuedateTime = new Date(); }
[ "public Ticket(String destination, int price)\n {\n this.destination = destination;\n this.price = price;\n datePurchased = new Date();\n }", "public Ticket(String ticketName, int price)\n {\n this.destination = ticketName;\n this.price = price;\n datePruchased =...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
sql = "CREATE TABLE IF NOT EXISTS barrierRestrictionTable (refIf INTEGER PRIMARY KEY, wayId INTEGER)";
private void addToBarrierRestrictionTable(long refId, long wayId) { Statement stmt = null; try { stmt = mTmpConnection.createStatement(); String sql = String.format("INSERT OR IGNORE INTO barrierRestrictionTable VALUES( %d, %d)", refId, wayId); stmt.execute(sql); ...
[ "public void createTable() {\n try {\n PreparedStatement ps = getConnection().prepareStatement(\"CREATE TABLE IF NOT EXISTS REFERAL (\" +\n \" ID INT NOT NULL AUTO_INCREMENT,\" +\n \" PLAYERNAME VARCHAR(16) NOT NULL,\" +\n \" PLAYER...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Initialize the contents of the frame.
private void initialize() { frmSpecialties = new JFrame(); frmSpecialties.getContentPane().setBackground(Color.WHITE); frmSpecialties.setTitle("Specialties"); frmSpecialties.setIconImage(Toolkit.getDefaultToolkit().getImage(Specials_Screen.class.getResource("/General_images/GI_icon.png"))); frmSpecialties.set...
[ "public void initializeFrame();", "private void initialize() {\n\t\tsetFrame();\n\t\tsetheader();\n\t\tsetList();\n\t}", "public MainFrame() {\n\t\tsuper();\n\t\tinitialize();\n\t}", "public frame() {\n initComponents();\n read_init_config();\n }", "private void initialize() {\n\t\tinitData...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
public static void main(String[] args) { }
[ "@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" ] ] } }
/ Disini adalah proses memasukan/mengirimkan parameter key dengan data value, dan nama key nya harus sesuai dengan parameter key yang diminta oleh jaringan API.
@Override protected Map<String, String> getParams() { Map<String, String> params = new HashMap<String, String>(); params.put("nama_hotel", hotel.getNamaHotel()); params.put("alamat_hotel", hotel.getLokasiHotel()); params.put("harga_hotel", Str...
[ "@Override\n protected Map<String, String> getParams()\n {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"namaBuku\", namaBuku);\n params.put(\"pengarang\", pengarang);\n params.put(\"harga\", String.val...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
RETURNS : true iff this player is under contract, and not injured, and not suspended EXAMPLE: Player gw = Players.make ("Gordon Wayhard"); System.out.println (gw.available()); // prints true gw.changeInjuryStatus (true); System.out.println (gw.available()); // prints false DESIGN STRATEGY : return underContract && !inj...
@Override public boolean available() { return (underContract && !injured && !suspended); }
[ "boolean isPlayerAllowed (Player player);", "boolean isAcceptingPlayers();", "boolean getPlayerStatus(IPlayer player);", "ObservableBooleanValue getOpponentReadyStatus();", "public boolean available () {\n\n return contract && !injured && !suspended;\n\n }", "boolean isPerPlayer();", "boolean ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
int32 num_photos_shared = 4;
@java.lang.Override public int getNumPhotosShared() { return numPhotosShared_; }
[ "int getPhotoCount();", "static void m80017a(ImageShareWrapper aVar, Parcel parcel, int i) {\n }", "public int GetPhotoCount() {\n return this.photos.size();\n }", "public void setSharedCount(int count) {\n this.shareCount = count;\n }", "public int getSize() {\r\n\t\treturn photos.si...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ renamed from: c
public abstract float mo8096c(int i);
[ "@Override\n\tpublic void c() {\n\t\t\n\t}", "@Override\r\n\tvoid c() {\n\t\t\r\n\t}", "protected void c() {\n\n\t}", "void mo3976c(C5247d c5247d);", "void mo62419c();", "void m28293a(C5003c c5003c, C5006e c5006e);", "void mo24495a(C12578a c12578a);", "void mo22731b(C33642d c33642d);", "public void ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
constructeur avec tous les attributs
public Clients(int codeClient, String client, String prenomClient, String adresse1, String adresse2, String codePostal, String ville, String numTel, String assurance, String email, String remarque, boolean archive) { super(); CodeClient = codeClient; Client = client; PrenomClient = prenomClient; Adresse...
[ "private Attributes() {}", "public MakesAttributes() {\n }", "public Relation(){\n listOfAttributes = new ArrayList<Attribute>();\n }", "protected AttributeFactory() {\n\n }", "public Attributes_____() {\n }", "public Anormalidade() {\n }", "public AtributosMetodos()\n\t{\n\t\t// Cad...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Lambda is stored but not compared
@SuppressWarnings("ImplicitSamInstance") public GradleProcessExecutor( @NonNull Function<Action<? super ExecSpec>, ExecResult> execOperations) { this.execOperations = execOperations; }
[ "public static void testWithLambdaExpression() {\n\t\t// implementation par fonction lambda\n\t\tSquareRoot squareRoot = (n) -> (Math.sqrt(n));\n\t\tSquareRoot squareRoot2 = (n) -> (Math.sqrt(n));\n\t\tSystem.out.println(\"testWithLambdaExpression : squareRoot = \" + squareRoot);\n\t\tSystem.out.println(\"testWithL...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns all records from database.
public List<WordRecord> getAllRecords() { List<WordRecord> result = new ArrayList<>(); for (List<WordRecord> list : map.values()) { for (WordRecord item : list) { result.add(item); } } Collections.sort(result); return result; }
[ "public static List<Records> getAllRecords() {\n return new Select().from(Records.class).execute();\n }", "public ArrayList<Record> getAll() throws DatabaseException\n\t{\n\t\treturn null;\n\t}", "Collection<Cellink> getAll() throws SQLException;", "public Cursor getAllRecords() {\n return db...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method empties all input text
private void emptyInputEditText() { textInputEditTextEmail.setText(null); textInputEditTextPassword.setText(null); }
[ "public void resetText() {\n\t\tinput.setText(\"\");\n\t}", "public void clear(){\n textField.clear();\n }", "public void clear() {\n super.clear();\n text = null;\n }", "private void clearTxt() {\n\t\ttxt_name.setText(\"\");\r\n\t\ttxt_age.setText(\"\");\r\n\t\ttxt_sex....
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Construct a bonus life powerup in the world.
public BonusLife(final Position position) { super(position, true); }
[ "public PowerUp(World world){\n this(0, 0, world);\n moveToRandomLocation(world);\n setEntityType(5);\n }", "private void createRandomPowerUp(Enemy e) {\n\t\tint r = GMath.random.nextInt(7);\n\t\tPowerUp p;\n\t\t\n\t\tif (r == 0)\n\t\t\tp = new PowerHealth(e);\n\t\telse if (r == 1)\n\t\t\t...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Closes the activity after each test
@After public void tearDown() throws Exception { solo.finishOpenedActivities(); }
[ "@After\n public void tearDown() throws Exception {\n solo.finishOpenedActivities();\n }", "@After\n public void tearDown() throws Exception\n {\n solo.finishOpenedActivities();\n }", "@AfterEach\n\tvoid close() {\n\t\tSystem.out.println(\"Test Completed\");\n\t}", "@After\r\n public v...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Created by Yasser.Ibrahim on 6/28/2018.
@Singleton @Component(modules = {ApplicationModule.class, ApiModule.class, PreferencesModule.class}) public interface ApplicationComponent { void inject(UserPresenterImp presenter); void inject(OrderPresenterImp presenter); }
[ "@Override\n public void extornar() {\n \n }", "@Override\n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "private static void EX5() {\n\t\t\r\n\t}", "Eisdiele() {\r\n\r\n\t}", "@Override\n\t\tpublic...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
final Resource resource = request.getResource();
@Override public void execute() { final Resource newResource = request.getNewResource(); // final StmtIterator stmtIterator = listStatements(resource); // processStatements(newResource, stmtIterator); final Point point = request.getLocation(); if (point != null && !newResource.hasProperty(Schema.xOffs...
[ "Resource getRequestResource();", "public IResource getResource() {\n return resource;\n }", "private WebResource getWebResource() {\n return getClient().resource(serverUrl).path(\"rip\");\n }", "com.weizhu.proto.TagProtos.Resource getResource();", "@Public\n @Stable\n public abstract URL...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
returns the recipe of this operation given a starting name and depth
String operationRecipe(int depth);
[ "public Recipe getRecipe()\n {\n return new Recipe(\"[Blank Recipe]\");\n }", "public java.lang.String getRecipeName(){\r\n\t\treturn name;\r\n\t}", "public static final RecipesExtractor recipes()\n\t{\n\t\treturn ExtractorBase;\n\t}", "public String getRecipeName() { \r\n \t\r\n return...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
P2P Interface Implementation Bizingo Getters
@Override public String get_chat_msg() { if(technology!=null) { return this.technology.get_chat_msg(); }else { return ""; } }
[ "public Punto getp2()\t{\n\t\t return p2;\n\t}", "private Point getPoint2()\n {\n return this.p2;\n }", "public Point getP1(){ return p1; }", "public Point getP2() {\n return this.p2;\n }", "public P getP();", "public Point getP2()\n {\n return this.p2;\n }", "public Point getP2() {\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method works according to the specification of implemented class.
@DSGenerator(tool_name = "Doppelganger", tool_version = "2.0", generated_on = "2013-12-30 13:01:12.915 -0500", hash_original_method = "74D7DA825347EF6AE406AA95D0E4A742", hash_generated_method = "BF4E7EBEADA9B24FA382B98587EC8F69") @Override public SSLEngineResult.HandshakeStatus getHandshakeStatus() { i...
[ "@Override\n }", "@Override\n public void extornar() {\n \n }", "@Override\n\tpublic void operationImpl() {\n\t\tSystem.out.println(\"concreteImplementorA\");\n\t}", "public abstract class_503 method_279();", "@Override\n protected void checkSubclass() {\n }", "@Override\n p...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get the "zipCode" field value This field is mapped on the database column "ZIP_CODE" ( type "INTEGER", NotNull : false )
public Integer getZipCode() { return this.zipCode; }
[ "public Integer getZipcode() {\r\n return zipcode;\r\n }", "public int getZipcode() {\n\t\treturn this.zipcode;\n\t}", "public java.lang.Integer getZipcode() {\n return zipcode;\n }", "public String getZipCode() {\n return this.zipCode;\n }", "public int getZipCode(){\r\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Inflate the menu; this adds items to the action bar if it is present.
@Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.activity_main, menu); return true; }
[ "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflator = getMenuInflater();\n\t\tinflator.inflate(R.menu.activity_action_bar, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\r\n public boolean onCreateOptionsMenu( android.view.Menu menu)\r\n {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }