query
stringlengths
8
1.54M
document
stringlengths
9
312k
negatives
listlengths
19
20
metadata
dict
Getter for the text overflow settings.
public void textOverflow() { APIlib.getInstance().addJSLine(jsBase + ".textOverflow();"); }
[ "public com.anychart.core.StateSettings textOverflow(com.anychart.graphics.vector.text.TextOverflow value) {\n APIlib.getInstance().addJSLine(String.format(Locale.US, jsBase + \".textOverflow(%s);\", (value != null) ? value.getJsBase() : null));\n\n return this;\n }", "public com.anychart.core.St...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method sets the value of the database column TBL_EMPLOYMENT.ENJOY_POST_SUBSIDIES
public void setEnjoyPostSubsidies(String enjoyPostSubsidies) { this.enjoyPostSubsidies = enjoyPostSubsidies == null ? null : enjoyPostSubsidies.trim(); }
[ "public String getEnjoyPostSubsidies() {\n return enjoyPostSubsidies;\n }", "@Generated\n @Selector(\"setIncludesSubentities:\")\n public native void setIncludesSubentities(boolean value);", "public void setSUB_PURPOSE_CODE(BigDecimal SUB_PURPOSE_CODE)\r\n {\r\n\tthis.SUB_PURPOSE_CODE = SUB_P...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
doneTask method which returns the task information
public String doneTask(Task task) { return "Nice! I've marked this task as done: \n" + task.toString() + "\n"; }
[ "com.netflix.conductor.proto.EventHandlerPb.EventHandler.TaskDetails getCompleteTask();", "public Integer getTaskDone() {\n return taskDone;\n }", "void TaskFinished(Task task) {\n\n repository.finishTask(task);\n }", "public String returnDone(Task t) {\n if (t.getDone()) {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This view will be set when the user does not have a active work step.
private void setNotWorkingView() { //Sets the view. checkInButton.setDisable(true); amountTextField.setDisable(true); endButton.setDisable(true); trashTextField.setDisable(true); reasonComboBox.setDisable(true); checkOutButton.setDisable(false); startButton.setDis...
[ "private void setWorkingView() { //Sets the view.\n checkInButton.setDisable(true);\n startButton.setDisable(true);\n workNrTextField.setDisable(true);\n endButton.setDisable(false);\n checkOutButton.setDisable(false);\n amountTextField.setDisable(false);\n trashText...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Zooms the map to the extent of the target/underlying parcels or to the applicationLocation if the underlying parcels are not yet set.
public void zoomToTargetArea(byte[] applicationLocation) { ReferencedEnvelope targetArea = getExtentOfParcels(); if (targetArea == null && applicationLocation != null) { try { Geometry applicationLocationGeometry = PojoFeatureSource.getWkbReader().read...
[ "private void zoomToExtent(OpenLayersMap map, Point[] points) {\n Bounds bounds = new Bounds(points);\n map.zoomToExtent(bounds);\n }", "private void zoomIntoCurrentLocation() {\n\t\tCameraPosition cameraPosition = new CameraPosition.Builder().target(\n\t\t\t\tnew LatLng(currentLoc.getLatitude(),...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the receiverQualifier value for this TradingNetworks.
public void setReceiverQualifier(java.lang.String receiverQualifier) { this.receiverQualifier = receiverQualifier; }
[ "public java.lang.String getReceiverQualifier() {\r\n return receiverQualifier;\r\n }", "public void setSenderQualifier(java.lang.String senderQualifier) {\r\n this.senderQualifier = senderQualifier;\r\n }", "public void setReceiver(String receiver) {\n Receiver = receiver;\n }", "public voi...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Internal OverlayObject API methods Computes parameters needed for selection grid computation.
protected void computeGridParameters() { float padding = 0.02f * overlay.getScalingValue(); boolean flipX = x2 < x1; float xx1 = flipX ? (x1 + padding) : (x1 - padding); float xx2 = flipX ? (x2 - padding) : (x2 + padding); boolean flipY = y2 < y1; float yy1 = flipY ? (y1 + padding) : (y1 -...
[ "public static void estimate_parameters(){\n\t\tprojection_value = motif_length - motif_corruptions - 1;\n\t\t//bucket_threshold = 2 * background_sequences.size() * (background_seq_length - motif_length + 1) / (int)(Math.pow(4, projection_value));\n\t\t//if(bucket_threshold == 0)\n\t\t\tbucket_threshold = 200;\n\t\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TDD to run the method maxTriple give out the result correctly.
@Test public void testMaxTriple() { MaxTriple test = new MaxTriple(); int[] nums = {1, 2, 3}; int result = 3; assertTrue( "check for the method maxTriple result the max number in the triple integers in the arrays", test.maxTriple(nums) == result); }
[ "@Test\n public void testMaxTripleAgain() {\n MaxTriple test = new MaxTriple();\n int[] a = {10, 5, 9, 11, 13, 8, 20, 9, 3};\n int result = 20;\n\n assertTrue(\"check if the method maxTriple give out correct answer\",\n test.maxTriple(a) == result);\n\n }", "@Test\n public void testMaxOfTh...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Puts this conduitable inside the given conduit. After calling this method, the given conduit will contain this conduitable and this conduitable will have a reference to that conduit.
void setConduit(Conduit conduit);
[ "public interface Conduitable extends ROConduitable {\n\n\t/**\n\t Puts this conduitable inside the given conduit. After calling this method,\n\t the given conduit will contain this conduitable and this conduitable will\n\t have a reference to that conduit.\n\n\t @param conduit The Conduit object that owns this con...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates a simple animation backend that cycles through a list of colors.
public static AnimationBackend createSampleColorAnimationBackend(Resources resources) { // Get the animation duration in ms for each color frame int frameDurationMs = resources.getInteger(android.R.integer.config_mediumAnimTime); // Create and return the backend return new ExampleColorBackend(SampleData...
[ "@Override\n public void run() {\n for(int i = 0; i<250;i++){\n shadesOfRed.add(new Color(i,0,0));\n }\n for(int i = 0; i<250;i++){\n shadesOfGreen.add(new Color(0,i,0));\n }\n for(int i = 0; i<250;i++){\n shadesOfBlue.add(new Color(0,0,i));\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the common JSONObjectEndpoint that is used by noAttributes and noRequiredAttributes.
@NonNull private JSONObjectEndpoint getCommonEndpoint(int postCount) { return new JSONObjectEndpoint(String.format("https://my-json-server.typicode.com/aau-test" + "/json-test/posts/%s", postCount), "version", "download") { @Override public void onSuccess(@NonNull Str...
[ "default String getJsonFormat() {\r\n return null;\r\n }", "java.lang.String getEndpoint();", "public JSONObject toJSON() {\n\t\n\t\tJSONObject req = new JSONObject();\n\t\t\n\t\treq.put(\"method\", method);\n\t\t\n\t\t// the params can be omitted if empty\n\t\tif (params != null && paramsType != JSON...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Set area of the problem
public void setArea(int area);
[ "public void setArea() {\n\t\tthis.area= height*width;\n\t}", "@Override\n\tprotected void setArea()\n\t{\n\t\tsuper.area = dimensions[LENGTH_INDEX] * dimensions[WIDTH_INDEX];\n\t}", "public void setArea(Rectangle2D area) {\n this.area = area;\n }", "public void setArea(double roomArea)\r\n {\r\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method corresponds to the database table PasswordResetToken
List<Passwordresettoken> selectByExample(PasswordresettokenExample example);
[ "Passwordresettoken selectByPrimaryKey(Long id);", "@Query(\"SELECT u FROM Users u WHERE u.resetPasswordToken = ?1\")\n\tUsers FindByResetPasswordToken(String resetPasswordToken);", "PasswordRecover findByToken(String token) throws DAOException;", "public Integer getPasswordReset() {\n return passwordR...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Return format by type
protected String getFormat(String type) { //TODO return null; }
[ "public Object getFormat();", "Format getFormat();", "public Format getFormat();", "String getFormats();", "int getFormat();", "public String getFormatType() {\n return formatType;\n }", "String getFormatter();", "public static Formatter getFormatter(String type) {\r\n\treturn formatters.get...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the last todo in the ordered set where todoInteger = &63;.
public Todo findByTodoInteger_Last( int todoInteger, com.liferay.portal.kernel.util.OrderByComparator<Todo> orderByComparator) throws NoSuchTodoException;
[ "public Todo fetchByTodoInteger_Last(\n\t\tint todoInteger,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<Todo>\n\t\t\torderByComparator);", "public Todo fetchByTodoId_Last(\n\t\tlong todoId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<Todo>\n\t\t\torderByComparator);", "Long findLastTripId() ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates a new test GetFileIDsClient based on the supplied settings. Note that the normal way of creating client through the module factory would reuse components with settings from previous tests.
private GetFileIDsClient createGetFileIDsClient() { MessageBus messageBus = new ActiveMQMessageBus(settings.getMessageBusConfiguration()); ConversationMediator conversationMediator = new CollectionBasedConversationMediator(settings); return new GetFileIDsClientTestWrapper(new ConversationBase...
[ "public static final DataformClient create(DataformSettings settings) throws IOException {\n return new DataformClient(settings);\n }", "public static final ValidationHelperV1Client create(ValidationHelperV1Settings settings)\n throws IOException {\n return new ValidationHelperV1Client(settings);\n }...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "entryRuleNumberLiteral" $ANTLR start "ruleNumberLiteral" ../eu.artist.postmigration.nfrvt.lang.gml/srcgen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4240:1: ruleNumberLiteral returns [EObject current=null] : ( (lv_value_0_0= ruleNumber ) ) ;
public final EObject ruleNumberLiteral() throws RecognitionException { EObject current = null; AntlrDatatypeRuleToken lv_value_0_0 = null; enterRule(); try { // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml...
[ "public final EObject entryRuleNumberLiteral() throws RecognitionException {\r\n EObject current = null;\r\n\r\n EObject iv_ruleNumberLiteral = null;\r\n\r\n\r\n try {\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/interna...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Check if filename is "cpu", followed by a single digit number
public boolean accept(File pathname) { return Pattern.matches("cpu[0-9]", pathname.getName()); }
[ "@Override\n public boolean accept(File pathname) {\n return Pattern.matches(\"cpu[0-9]\", pathname.getName());\n }", "@Override\n public boolean accept(File pathname) {\n return Pattern.matches(\"cpu[0-9]\", pathname.getName());\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
frequency heap with nodes
public void constructFrequencyHeap() { for (Map.Entry<Integer, Double> entry : frequencyMap.entrySet()) { entry.setValue((double) (entry.getValue() / this.symbolNum)); } // // calculate the theoretical entropy here // double entropy = 0.0; // for (Map.Entry<Integer, Double> entry : frequencyMap.entrySet()) {...
[ "private HuffmanTreeNode[] heapify(int freq[][]) {\n\t\tHuffmanTreeNode[] heap = new HuffmanTreeNode[freq.length];\n\t\tfor (int i = 0; i < freq.length; i++)\n\t\t{\n\t\t\theap[i] = new HuffmanTreeNode(freq[i][1], freq[i][0], null, null);\n\t\t}\n\t\t\n\t\theap = heapSort(heap);\n\n\t\treturn heap;\n\t}", "public...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Wrapper method , it makes the network call to fetch the Profile's of a user based on load parameter being true / false. This method can be called directly by passing the userId / Subscriber id of the user and a loaded argument as true / false
public Profile getProfile(String userId, boolean loaded) { if (logger.isLoggable(Level.FINEST)) { logger.entering(sourceClass, "getProfile", new Object[] { userId, loaded }); } if (StringUtil.isEmpty(userId)) { logger.fine("User id is empty, returning null profile"); return null; } Profile profile = ...
[ "public Profile loadProfile(Long userId);", "private void loadFirebase(FirebaseLoadType flt) {\n final FirebaseLoadType fltFinal = flt;\n\n if(fltFinal == FirebaseLoadType.PARTIAL){ // If only a partial load, grab the UID from the UserInfoPrivate object.\n UID = mUserProfile.getUID();\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test: opdatelessthan14 Written By: Carmelo Montanez Date: June 13, 2005 Purpose: Evaluates The "datelessthan" function used together with "fn:false"/or expression (le operator). .
@org.junit.Test public void opDateLessThan14() { final XQuery query = new XQuery( "(xs:date(\"1980-10-25Z\") le xs:date(\"1980-10-26Z\")) or (fn:false())", ctx); final QT3Result res = result(query); result = res; test( assertBoolean(true) ); }
[ "@org.junit.Test\n public void opDateLessThan12() {\n final XQuery query = new XQuery(\n \"(xs:date(\\\"2000-10-25Z\\\") le xs:date(\\\"2000-10-26Z\\\")) or (fn:true())\",\n ctx);\n\n final QT3Result res = result(query);\n result = res;\n test(\n assertBoolean(true)\n );\n }", "@or...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
User u = new User(); u.setUsername("testMybatisss"); u.setPassword("123"); u.setBrithDate(Calendar.getInstance().getTime()); System.out.println(u); int insert = iUserDao.insert(u); System.out.println(u);
@Test public void insert() { // int insert = iUserDao.insert(u); // System.out.println(u); }
[ "@Test\r\n\t\tpublic void insertUserTestCase() {\r\n\t\t\t\r\n\t\t\tUser user = new User();\r\n\t\t\t\t\t\r\n\t\t//\tuser.setBirthDate(LocalDate.parse(\"1994-04-09\"));\r\n\t\t\tuser.setUsername(\"renu\");\r\n\t\t//\tuser.setUserId(1003);\r\n\t\t\t\r\n\t\t\tuser.setEmail(\"renu@gmail.com\");\r\n\t\t\t\t\t\r\n\t\t\t...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the result of interpreting the object as an instance of 'Bar Multiplier'. This implementation returns null; returning a nonnull result will terminate the switch.
public T caseBarMultiplier(BarMultiplier object) { return null; }
[ "double getBar();", "public T caseClassicalBar(ClassicalBar object) {\n\t\treturn null;\n\t}", "public T caseModifiedBar(ModifiedBar object) {\n\t\treturn null;\n\t}", "public T caseBarChart(BarChart object)\n {\n return null;\n }", "public T caseBar(Bar object) {\n\t\treturn null;\n\t}", "public T c...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get the front item from the deque.
public int getFront() { return isEmpty() ? -1 : queue[(front - 1 + len) % len]; }
[ "public int getFront() {\n if (isEmpty()) return -1;\n return cDeque[start];\n }", "@Override\r\n\tpublic T getFront(){\r\n\t\treturn queue[front];\r\n\t}", "public int getFront() {\n if(isEmpty()) {\n return -1;\n }\n return DequeArray[head];\n }"...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Converts a ratio with ideal value of 1 to a score. The resulting function is piecewise linear going from (0,0) to (1,100) to (2,0) and is 0 for all inputs outside the range 02
static double ratioToScore(double ratio) { return (Math.max(0, Math.min(100 * (1 - Math.abs(1 - ratio)), 100))); }
[ "double ratioToScore(double ratio) {\n\t\treturn (Math.max(0, Math.min(100 * (1 - Math.abs(1 - ratio)), 100)));\n\t}", "abstract int calculateScore();", "private float getExpectedScore() {\r\n\t\texp = (float) (rb - ra) / 400;\r\n\t\tdenominator = (float) (1 + Math.pow(10, exp));\r\n\t\texpectedScore = 1 / deno...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates a background thread and runs the loop on it
public Thread runInBackground() { Thread t = new Thread() { public void run() { RateLimitedLoop.this.run(); } }; t.start(); return t; }
[ "public synchronized void startLoop() {\n connectionThread = new Thread(new Runnable() {\n @Override\n public void run() {\n looped = true;\n data();\n }\n });\n connectionThread.start();\n }", "public static void loop() {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
GAME INITIALIZIATION TESTS / If the total number of states is equal to the length of the state array the number of items added to the state array will be equal to the number of total states
@Test public void testValidStateCount() { int total_states = 4; int array_states = 4; int ret_val; Room[] test_states = new Room[array_states]; ret_val = CoffeeMaker2.init_game(total_states, test_states); assertEquals(total_states, ret_val); }
[ "public GameState(int initialStones) \n {\n \tif (initialStones < 1) initialStones = 4;\n \tfor (int i=0; i<6; i++)\n \t\tstate[i] = state[i+7] = initialStones;\n }", "private int numberValidStates() {\n int n = 0;\n for (int i = 0; i < states.length; i++) {\n i...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Adds the contents of an iterator to an existing Collection.
public static <T> void addToCollection(Collection<T> collection, Iterator<T> elementsToAdd) { while (elementsToAdd.hasNext()) { T next = elementsToAdd.next(); collection.add(next); } }
[ "public static <T> void addAll(@Nonnull Iterator<T> iterator, @Nonnull Collection<T> collection) {\n while (iterator.hasNext()) {\n collection.add(iterator.next());\n }\n }", "void addAllInternal(Collection c);", "public void AddIterator()\r\n {\n }", "public static <T> void ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get layout type of row item. It can be customize by user. In default mode it equals with getViewType.
public int getLayoutType() { return getViewType(); }
[ "public final int getViewType() {\n return _type;\n }", "String getViewType();", "public int getViewTypeValue()\r\n {\r\n return viewType.getValue();\r\n }", "public ViewType getViewType()\r\n {\r\n return viewType;\r\n }", "private int getCellTemplateItemType(WXCell cell...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Setter for includeJurisCodes Set this value to true to include Juris Code in the response.
public void setIncludeJurisCodes(Boolean value) { this.includeJurisCodes = value; }
[ "public Boolean getIncludeJurisCodes() {\n return this.includeJurisCodes;\n }", "public void setJurisCode(java.lang.String jurisCode) {\n this.jurisCode = jurisCode;\n }", "public java.lang.String getJurisCode() {\n return jurisCode;\n }", "public void setJurisName(java.lang.Stri...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Warp the mouse to x, y in the RFB coordinates
void warpMouse(int x, int y) { bitmapData.invalidateMousePosition(); mouseX = x; mouseY = y; bitmapData.invalidateMousePosition(); try { rfb.writePointerEvent(x, y, 0, MOUSE_BUTTON_NONE); } catch (IOException ioe) { Log.w(TAG, ioe); } }
[ "private void updateMousePos() {\n PointerInfo a = MouseInfo.getPointerInfo();\n Point b = a.getLocation();\n x = (int) b.getX();\n y = (int) b.getY();\n }", "public void mouseDragged() {\n camera1.tumble( -1.0f * radians(mouseX - pmouseX), -1.0f * radians(mouseY - pmouseY));\n}", ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Handles the button click event for the products button Opens the Product Management Screen
private void onProductsButtonClick() { new ManagementProductScreen(this.authentificationStore).open(); }
[ "public void clickOnBuyProductsButton() {\r\n\t\tbuyProductsButton.click();\r\n\t}", "public void goIntoProducts() {\r\n\t\tActions act = new Actions(driver);\r\n\t\t//hovering over the tag button\r\n\t\tact.moveToElement(this.tagButton).build().perform();\r\n\t\t//clicking on products button\r\n\t\tthis.products...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the given value as the new text representation.
public void setTextValue(String aValue) { getTextNodes().clear(); if (aValue != null) getTextNodes().add(new AeTextNodeDef(aValue, false)); }
[ "public void setToValTxt(String value) {\n\t\tsetValue(3, value);\n\t}", "public void setValue(String value) {\n createReplaceValue().addText(value);\n }", "public void setFromValTxt(String value) {\n\t\tsetValue(2, value);\n\t}", "public void setTextValue(String textValue) {\n\t\tthis.textValue =...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Params: ArrayList pieces: An ArrayList of all the pieces on the board Returns: boolean check: true = incheck; false = outofcheck
public boolean kingCheck(ArrayList<Piece> pieces) { boolean check = false; int[] kingCoords = new int[]{this.getX(), this.getY()}; for (Piece piece : pieces) { if (piece.getColor() != this.getColor()) { // If the color does not match the king's color... for (in...
[ "@Override\n\tpublic boolean inCheck(Piece[][] board){\n\t\treturn false;\n\t}", "boolean checkPlacement( Square[] piece, Board board, Color color){\n\n \t//Checks for out of bounds or already taken\n \tfor (Square s : piece){\n \t\t\n \t\t//System.out.println(s.xLoc);\n \t\t//System.out.println(s....
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method sets the value of the database column ddj_ckb.ckqhdz
public void setCkqhdz(String ckqhdz) { this.ckqhdz = ckqhdz; }
[ "public void setJP_BankDataCustomerCode1 (String JP_BankDataCustomerCode1);", "public void setJP_BankDataCustomerCode2 (String JP_BankDataCustomerCode2);", "public void setCkshdz(String ckshdz) {\r\n\t\tthis.ckshdz = ckshdz;\r\n\t}", "public String getCkqhdz() {\r\n\t\treturn ckqhdz;\r\n\t}", "public void s...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Set the psDataInMB property: The PS data transit in MB.
public InMageProtectedDiskDetails withPsDataInMB(Double psDataInMB) { this.psDataInMB = psDataInMB; return this; }
[ "public Double psDataInMB() {\n return this.psDataInMB;\n }", "public void setMemDemandMB(int value) {\n this.memDemandMB = value;\n }", "public Double sourceDataInMB() {\n return this.sourceDataInMB;\n }", "public Double targetDataInMB() {\n return this.targetDataInMB;\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__LIST_OF_NET_ASSIGNMENTS__AssignmentsAssignment_1_1" $ANTLR start "rule__LIST_OF_NET_DECL_ASSIGNMENTS__NetsAssignment_0" ../com.ironglass.hdlforge.ui/srcgen/com/ironglass/hdlforge/ui/contentassist/antlr/internal/InternalSystemVerilog.g:3451:1: rule__LIST_OF_NET_DECL_ASSIGNMENTS__NetsAssignment_0 : ( ru...
public final void rule__LIST_OF_NET_DECL_ASSIGNMENTS__NetsAssignment_0() throws RecognitionException { int stackSize = keepStackSize(); try { // ../com.ironglass.hdlforge.ui/src-gen/com/ironglass/hdlforge/ui/contentassist/antlr/internal/InternalSystemVerilog.g:3455:1: ( ...
[ "public final void rule__LIST_OF_NET_DECL_ASSIGNMENTS__Group__0__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../com.ironglass.hdlforge.ui/src-gen/com/ironglass/hdlforge/ui/contentassist/antlr/internal/InternalSystemVeril...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Submits a job to the remote storm cluster. Sends the input jar to the server and then submits the supplied topology w/ the given job_name.
@Override public CompletableFuture<BasicMessageBean> submitJob(String job_name, String input_jar_location, StormTopology topology, Map<String, Object> config_override) { final CompletableFuture<BasicMessageBean> future = new CompletableFuture<BasicMessageBean>(); logger.info("Submitting job: " + job_name + " jar:...
[ "ILocalTopology submitTopology(String topologyName, Map<String, Object> conf, StormTopology topology) throws TException;", "ILocalTopology submitTopologyWithOpts(String topologyName, Map<String, Object> conf, StormTopology topology,\n SubmitOptions submitOpts) throws TExce...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Membership status of this user list. Indicates whether a user list is open or active. Only open user lists can accumulate more users and can be targeted to. .google.ads.googleads.v14.enums.UserListMembershipStatusEnum.UserListMembershipStatus membership_status = 6;
public Builder setMembershipStatus(com.google.ads.googleads.v14.enums.UserListMembershipStatusEnum.UserListMembershipStatus value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000020; membershipStatus_ = value.getNumber(); onChanged(); return t...
[ "@java.lang.Override public com.google.ads.googleads.v14.enums.UserListMembershipStatusEnum.UserListMembershipStatus getMembershipStatus() {\n com.google.ads.googleads.v14.enums.UserListMembershipStatusEnum.UserListMembershipStatus result = com.google.ads.googleads.v14.enums.UserListMembershipStatusEnum.UserList...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Checks if is intersects.
public final boolean isIntersects() { return myIntersects; }
[ "public boolean areIntersecting() {\n return intersection != null;\n }", "@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.Boolean isIntersection();", "boolean intersects( Geometry gmo );", "@Override\n public boolean inCurrentIntersection() {\n if(memoInCurrentIntersection ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns true if value store has a gettable value with supplied name.
boolean isGettable(String name) throws UnifyException;
[ "protected boolean variableTableContains(String name) {\n return getMetaClass().getRealClass().getVariableAccessorForRead(name).get(this) != null;\n }", "@SuppressWarnings({\"unused\"})\n public boolean exists() {\n return (val != null);\n }", "boolean hasValue(String paramName);", "p...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Create a description writer that will compute a SHA1 hash.
public static HashDescriptionWriter sha1Writer() { return hashWriter(Hashing.sha1()); }
[ "public String getSha1Hash();", "static MessageDigest createSha1MessageDigest() {\n try {\n return MessageDigest.getInstance(\"SHA-1\");\n }\n catch (NoSuchAlgorithmException e) {\n throw new RuntimeException(\"No SHA-1 installed!\", e);\n }\n }", "private vo...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
MAP INPUT: Dimension/partr00000 Key: offset of line in document Value: content of line in document OUTPUT: Key: center Value: documents with same center
@Override public void map(LongWritable key, Text value, Context context) throws IOException, InterruptedException { String documentAndTfidfBuilder; documentAndTfidfBuilder = value.toString().split("\t")[1]; String wordAndTfidfArray[] = documentAndTfidfBuilder.trim().split(" "); double minDistance = Double...
[ "void map(Map<String,Object> document, TDViewMapEmitBlock emitter);", "LineMap getLineMap();", "public void centerOffsets()\r\n \t{\r\n \t\tcenterOffsets(false);\r\n \t}", "IndexMap(ByteBlockSet blockSet, int bytesPerLine, int blockOffset) {\n\n\t\tthis.blockSet = blockSet;\n\t\tByteBlock[] blocks = blockSet....
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Called after an item was marked as deleted (but is still present special case of update!).
default void onMarkItemDeleted (@Nonnull final INTERFACETYPE aItem) {}
[ "public void delete() {\n\t\tstate = ItemState.DELETED;\t\n\t}", "void onItemDeleted();", "default void onMarkItemUndeleted (@Nonnull final INTERFACETYPE aItem)\n {}", "private void onItemDeleted() {\n Log.i(\"BasketFragment\",\"deleted\");\n }", "void onItemRemoved(MfRecord item);", "void item...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Deinvites a player from this faction
public abstract void deinvite(ConquerPlayer player);
[ "public void declineInvite(String player) {\r\n connection.declineInvite(player);\r\n }", "void declineInvitation(String playerId, List<String> playerIdList) throws RemoteException;", "public void onQuit(Player player) {\n UUID uuid = player.getUniqueId();\n\n invitations.remove(player.g...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Return the number of total intervals. Note that this is the same as the number of outer intervals. If timer is running, the current interval is also counted. If the timer was never started, this method returns 0.
public int getNumberOfIntervals() { return totalTimer.getNumberOfIntervals(); }
[ "public int getNumberOfNumbersInInterval() {\n\t\tif (this == EMPTY_INTERVAL || this == TOP_INTERVAL) {\n\t\t\treturn Integer.MAX_VALUE;\n\t\t}\n\n\t\treturn upper - lower + 1;\n\t}", "public TimeSpan getLengthOfLastOuterInterval() {\n return totalTimer.export(isRunning() ? currentOuterInterval() : lastOuterIn...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get the valid neighbors of a location that exist in the grid
List<Location> getValidNeighbors(Location loc, NeighborsDefinitions neighborsDefinitions);
[ "List<Location> getValidNeighbors(Location loc, int[] deltaRow, int[] deltaCol);", "public List<Cell> getNeighbours() {\n List<Cell> neighbours = new ArrayList<>();\n for (int i=-1; i<=1; i++) {\n for (int j=-1; j<=1; j++) {\n if (i==0 && j==0) {continue;}\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
VERIFICA SE INIMIGO MORREU
public void verifaVidaInimigo(){ if (0 >= inimigo.get(idPersonagem).getPontoDeVida()) { inimigo.get(idPersonagem).setPontoDeVida(0); imprimiBotoes(); JOptionPane.showMessageDialog(null, "Você venceu!!!"); trocaPeronagem(); ...
[ "private void jogarIa() {\n\t\tia = new IA(this.mapa,false);\r\n\t\tia.inicio();\r\n\t\tthis.usouIa = true;\r\n\t\tatualizarBandeirasIa();//ATUALIZA AS BANDEIRAS PARA DEPOIS QUE ELA JOGOU\r\n\t\tatualizarNumeroBombas();//ATUALIZA O NUMERO DE BOMBAS PARA DPS QUE ELA JOGOU\r\n\t\tatualizarTela();\r\n\t\tif(ia.isTaTud...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the role of the Tank
public Heroes.Role getRole(){ return Heroes.Role.TANK; }
[ "int getRole();", "CodeableConcept getRole();", "public String getRole()\n {\n return role;\n }", "public String getRole() {\r\n return role;\r\n }", "public int getRoleForName(IASTName name);", "public String getRole() {\n return role;\n }", "public java.lang.String getRole() {...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
The test document says : A user should be able to see a list of the messages posted by all the people they follow, in reverse chronological order. I would ask that if the timeline will include the messages from given user. Usually, in social apps they includes the messages from given user I assumed timeline should incl...
public List<UserMessage> getTimeline(String username) throws UserNotFoundException { User user = userRepository.getUser(username); List<User> users = new ArrayList<>(user.getFollowingUsers()); users.add(user); return messageService.getMessages(users); }
[ "private void addMessageReferenceToPersonalTimelineOfFollowers(Message message) {\n List<User> myFollowers = userDao.getUsersFollowingMe(message.getUserEmail());\n\n for(User follower: myFollowers) {\n template.opsForZSet().add(PERSONAL_TIMELINE_PREFIX + follower.getEmail(), String.valueOf(...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
isAnimated() sets the animated option.
public boolean isAnimated() { return _animated; }
[ "public void setUseAnimations(boolean value);", "public boolean isAnimating() {\n\t\treturn mAnimating;\n\t}", "public void setAnimate(boolean b){ animate = b; }", "@JSProperty(\"animation\")\n void setAnimation(boolean value);", "public boolean isAnimating() {\n\t\treturn animationTimer.isRunning();\n\t}...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
called when myProject is opened
public void projectOpened() { }
[ "public void projectOpened() {\n }", "public void projectOpened() {\n initToolWindow();\n }", "public void doProjectOpen() {\r\n\t\tthis.observerList.notifyObservers(GNotification.PROJECT_OPEN, null);\r\n\t}", "@Override\n public void projectOpened() {\n setupDocumentListener();\n }"...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the task to be added.
public Task getTaskToAdd() { return taskToAdd; }
[ "Task getTask();", "void addNewTask();", "@Override\n\t\tpublic Task<?> getTask(){\n\t\t\treturn task;\n\t\t}", "public org.oasis_open.docs.ns.bpel4people.ws_humantask.types._200803.TTaskDetails addNewTaskDetails()\n {\n synchronized (monitor())\n {\n check_orphaned...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ Time Complexity: O(N), where N is length of the string. Memoization helps in pruning the recursion tree and hence decoding for an index only once. Thus this solution is linear time complexity. Space Complexity: O(N). The dictionary used for memoization would take the space equal to the length of the string. There wou...
private int numDecodings(String s, int index, Map<Integer, Integer> mem) { if(index == s.length()) return 1; if(s.charAt(index) == '0') return 0; if(index == s.length()-1) //index == s.length-1, substr(indx,indx+2) throws exception return 1; if(mem.con...
[ "private List<String> memorizedDfs(String s, Set<String> dict, int start,\n int maxLen, Map<Integer, List<String>> memo) {\n List<String> res = new ArrayList<>();\n if (start == s.length()) {\n res.add(\"\");\n return res;\n }\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
front ist dazu da die Daten auszugeben
public Object front(){ if(this.isEmpty()){ //wenn die Liste leer ist System.out.println("Die Queue ist leer"); return null; }else{ System.out.println(first.getData()); //wenn sie voll ist gibt er die Daten vom ertsen ...
[ "void moveFront(){\r\n\t\tif( length > 0 ){\r\n\t\t\tcursor = head;\r\n\t\t\tindex = 0;\r\n\t\t}\r\n\t}", "void front() {\n startAnimation(frontSubCubes(), Axis.Z, Direction.CLOCKWISE);\n frontCubeSwap();\n }", "Location getFront() {\n return data[front];\n }", "void moveFront()\n {\n\t...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Setter method for the COM property "ElemUntil"
@DISPID(1611005956) //= 0x60060004. The runtime will prefer the VTID if present @VTID(30) void elemUntil( Reference oElemUntil);
[ "@DISPID(1611005956) //= 0x60060004. The runtime will prefer the VTID if present\n @VTID(29)\n Reference elemUntil();", "public void setUntil(String val) {\n\n\t\tuntil = val;\n\n\t}", "String getUntil();", "Expression getUntilExpression();", "public String getUntil() {\n\n\t\treturn until;\n\n\t}", "Re...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Registers the given RDD as a temporary table in the catalog. Temporary tables exist only during the lifetime of this instance of SQLContext.
public void registerRDDAsTable (org.apache.spark.sql.SchemaRDD rdd, java.lang.String tableName) { throw new RuntimeException(); }
[ "private String generateSqlServerTemporaryTableName() {\n return \"temp\" + temporaryTableCounter.getAndIncrement();\n }", "public void dropTempTable (java.lang.String tableName) { throw new RuntimeException(); }", "void removeTemporaryTable(String tablename, String sessionId);", "public void delet...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Emitts notification based on user tasks
public interface NotificationEmitter { /** * Invoke for a user task that transitions to given life cycle phase. * * @param phase life cycle phase that user task transitioned to e.g. Active, Claim, Complete etc * @param data inputs/outputs of the user task at given life cycle phase * @para...
[ "private void transmitStartNotification(String groupName, String taskName, CollATask task) {\n try {\n Server server = Server.getInstance();\n CollAGroup group = server.getGroup(groupName);\n for (String userName : group.getMembers()) {\n try {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Tests whether or not a name matches against at least one include pattern.
protected boolean isIncluded( String name ) { return matchesPatterns( name, includes ); }
[ "protected boolean couldHoldIncluded( String name )\n {\n for( int i = 0; i < includes.length; i++ )\n {\n if( matchPatternStart( includes[ i ], name, isCaseSensitive ) )\n {\n return true;\n }\n }\n return false;\n }", "protected b...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the command line parameter used to specify the output format.
public String getToolFormatParameter();
[ "private static String evaluateOutputFormat(IJellyFishCommandOptions commandOptions) {\n String outputFormat = DEFAULT_OUTPUT_FORMAT_PROPERTY;\n if (commandOptions.getParameters().containsParameter(OUTPUT_FORMAT_PROPERTY)) {\n String helper = commandOptions.getParameters().getParameter(OUTPUT_FORM...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Go through all the parents and get their virtual methods, then just add them. To do this, we test if we first have a parent (java.lang.Object doesn't); if we have a parent, grab his virtual methods, see if we override them, if we don't, then add them, otherwise, ignore. Then, add all of the fields that our parent has (...
private void setupDataLayout() { if (this.isSetup) return; this.isSetup = true; if (JavaStatic.runtime.test("debug")) System.out.println("Setup data layout for: " + this.getName()); //--------------------------------------------------------------------------------------- // Setup the ...
[ "public static ObjectRep determineFields(ObjectRep current, ObjectRep parent) {\n // iterate over parent fields from class, if possible to inherit, add to child, then dump child methods, this way we preserve order\n ArrayList<Field> parentFields = parent.classRep.fields;\n ArrayList<Field> curr...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Stops any currently active video player and removes it from the frame
private void stopVideoPlayer() { mediaSrc.stopStream(); mediaSrc.setObserver(null); player.setVisible(false); }
[ "private void stopVideo() {\n if (mNowPlaying) {\n mNowPlaying = false;\n assert mContentView != null;\n mContentView.stopPlayback();\n }\n }", "private void releaseVideoPlayer(){\n\n if(player != null) {\n player.stop();\n player.rele...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the sHotelID value for this EntityResMain.
public String getSHotelID() { return sHotelID; }
[ "public int getHotelID() {\n\t\treturn hotelID;\n\t}", "public Integer getIdHotel() {\r\n return idHotel;\r\n }", "public Integer getHotelId() {\n return hotelId;\n }", "public int getHotelID() {\n return hotelID;\n }", "public void setSHotelID(String sHotelID) {\n this....
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Return an iterator over the filter's actions. If there are no actions, returns null.
public final Iterator<String> actionsIterator() { return mActions != null ? mActions.iterator() : null; }
[ "@Override\n\tpublic List<UserAction> getActions(UserActionFilter filter) {\n\t\treturn mUserActions.getActions(filter);\n\t}", "public ActionList getActions();", "Collection<ACTION> getAvailableActions();", "public Collection<Action> getActions() {\n\t\treturn Collections.unmodifiableCollection(actionList);\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ Demonstrate how to use Map that includes storing and retrieving elements. Add List into a Map. Like, Map> list = new HashMap>(); Use For Each loop and while loop with Iterator to retrieve data. Use any databases[MongoDB, Oracle, MySql] to store data and retrieve data. Create a HashMap object called capitalCities
public static void main(String[] args) { HashMap<String, String> capitalCities = new HashMap<String, String>(); // Add keys and values (Country, City) capitalCities.put("England", "London"); capitalCities.put("Germany", "Berlin"); capitalCities.put("Norway", "Oslo"); cap...
[ "public static void main(String[] args) {\n HashMap<String, String> names = new HashMap<>();\n\n\n names.put(\"John\", \"Smith\");\n names.put(\"William\", \"Johnson\");\n names.put(\"Scott\", \"Turner\");\n\n\n System.out.println(names.get(\"John\"));\n\n\n List<String> vi...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Function for removing customer from customer queue
public Customer removeCustomer(){ Customer removed = customerArray[outIndex]; outIndex++; if(outIndex== cMaxCustomerQueue) outIndex=0; numCustomers--; return removed; }
[ "private void removeCustomer(){\n System.out.println(\"cashpoint \" + id + \" processed customer \" + queue.get(0).getId());\n System.out.println(\"customer \" + queue.get(0).getId() + \" pays \" + queue.get(0).getBill() + \"€\");\n Balance.getInstance().addValue(this.id, queue.get(0).getBill()...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Perform a search by patient birthday
public List<Patient> getPatientByBirthdate(String birthdate) { mgr = PatientResourceManager.getClient(); ca.uhn.fhir.model.api.Bundle result = mgr.search() .forResource(Patient.class) .where(Patient.BIRTHDATE.exactly().day(birthdate)) .execute(); return this.processPatientBundle(result); }
[ "Birthday getBirthDay();", "public void searchByDateOfBirth(Date date1,Date date2,boolean makeTable){\n\t\tString date1Str = dateToStringFormat(date1);\n\t\tString date2Str = dateToStringFormat(date2);\n\t\tString query = \"SELECT * FROM CUSTOMER WHERE (CUST_DOB BETWEEN \\\"\"+date1Str+\"\\\" AND \\\"\"+date2Str+...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method will check for dirt. If dirt is found it will return an action. If no dirt found it will return null.
protected Direction checkForDirt(Creature c){ Sensor s = c.getSensor(); for (Direction d : Direction.values()){ int value = (int) s.getSense(d.name() + DirtBasedAgentSenseConfig.TYPE_SUFFIX).getValue(); if (value == Environment.DIRT){ return d; } } return null; }
[ "@Override\n public Action getAction(Actor actor, GameMap map) {\n Dinosaur dino = (Dinosaur) actor;\n dinoClass = dino.getClass();\n here = map.locationOf(dino);\n\n Action ret = null;\n for(Exit exit: here.getExits()){\n if (map.isAnActorAt(exit.getDestination())) ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Display the contents of a chunk.
public static void displayChunkContent(Integer [] chunk) { System.out.println(OUTPUT_SEPARATOR); String outStr = ""; for (int elem : chunk) { outStr += elem + ","; if (outStr.length() > OUTPUT_WIDTH) { System.out.println(outStr); outStr = ""; } } if (outStr != "") Syste...
[ "public static void displayFileChunk(Integer [] chunk, int index)\n\t{\n\t\tSystem.out.println(\"file chunk[\" + index + \"] with size \" + chunk.length + \" :\");\n\t\tdisplayChunkContent(chunk);\n\t}", "public void display() {\n int i;\n\n // Only need to look at the number of bytes that are used for\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
String s = documentSnapshot.getString("current balance");
@Override public void onEvent(@Nullable DocumentSnapshot documentSnapshot, @Nullable FirebaseFirestoreException e) { double target = documentSnapshot.getDouble("target"); Budget b = new Budget(documentSnapshot.getString("Budegt Name"), ta...
[ "private void adjustBalance(){\n\n String docRef = iClaimAPI.getInstance().getRef();\n DocumentReference userRef = db.collection(\"Users\").document(docRef);\n\n\n String text = detectedTextView.getText().toString();\n Double amt;\n Double balance;\n\n Pattern p = Pattern....
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get the X texture offset in the case of a texture atlas
public float getTextureXOffset() { int column = index % texture.getNumberOfRows(); return (float) column / (float) texture.getNumberOfRows(); }
[ "public float getTextureOffsetX() {\r\n\t\treturn textureX;\r\n\t}", "public float getTextureYOffset() {\n\t\tint row = index / texture.getNumberOfRows();\n\t\treturn (float) row / (float) texture.getNumberOfRows();\n\t}", "public int getRefPixelX();", "int getNumberOfTextureCoordinates();", "Integer getXOF...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Destroy processor thread pool. Call to explicitly shutdown all pools.
public static void destroy() { QueueProcessor.destroy(); }
[ "public void destroyPool() {\n\n if (executorService != null) {\n executorService.shutdown();\n executorService = null;\n }\n\n // Destroys the entire pool.\n super.destroyPool();\n }", "public void closePool() {\n threadPool.destroy();\n }", "@PreD...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Set value of NumberOfBusinessDays
public final void setNumberOfBusinessDays(com.mendix.systemwideinterfaces.core.IContext context, java.lang.Integer numberofbusinessdays) { getMendixObject().setValue(context, MemberNames.NumberOfBusinessDays.toString(), numberofbusinessdays); }
[ "public final void setNumberOfBusinessDays(java.lang.Integer numberofbusinessdays)\r\n\t{\r\n\t\tsetNumberOfBusinessDays(getContext(), numberofbusinessdays);\r\n\t}", "public void setNumberOfDays(int value) {\n this.numberOfDays = value;\n }", "public void setNumberOfDays( Integer days )\n {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Delegate the current mode to get the strategy to choose a next forest token according to the current game mode.
public MINextForestTokenStrategy getNextForestTokenStrategy() { return modeState.getNextForestTokenStrategy(); }
[ "public SwerveMode nextMode() {\n return values()[(ordinal() + 1) % values().length];\n }", "@Override\n\tpublic synchronized void advanceMode()\n\t{\n\t\tConsole.println(\"Mode Changer: Advance To Next Mode\");\n\t\t// check the value of the modes variable and changeTo the associated\n\t\t/...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
YouTube Video. .google.ads.googleads.v0.common.YouTubeVideoInfo youtube_video = 40;
com.google.ads.googleads.v0.common.YouTubeVideoInfo getYoutubeVideo();
[ "com.google.ads.googleads.v0.common.YouTubeVideoInfoOrBuilder getYoutubeVideoOrBuilder();", "com.google.ads.googleads.v6.resources.Video getVideo();", "com.google.ads.googleads.v1.resources.Video getVideo();", "@java.lang.Override\n public com.google.ads.googleads.v9.common.YoutubeVideoAsset getYoutubeVideoA...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Helper Method. Returns HBox that holds Chart visualizing users TIPI Results vs. Peers
private HBox createChartModule() { // Create TipiChart object TipiChart chart = new TipiChart(); // Create BarChart BarChart<String, Number> barChart = chart.createBarChart(user.getUserScoresAndMetrics()); // Instruct to Chart to grow with window HBox.setHgrow(barChart, Priority.ALWAYS); ...
[ "public Scene createResultsScene(Stage introPrimaryStage) {\n\n // Create Root Pane / BorderPane\n VBox rootNode = new VBox();\n\n // Add CSS Style Class for vbox\n rootNode.getStyleClass().add(\"vbox\");\n\n // Add Title to PrimaryStage\n introPrimaryStage.setTitle(\"TIPI Analysis Results\");\n\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test of retainAll method, of class SegmentedOasisList.
@Test public void testRetainAll() { SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(); instance.add(3); instance.add(2); instance.add(1); instance.add(2); instance.add(3); instance.add(2); Collection c = Arrays.asList(2, 3); bo...
[ "@Test\n public void testRetainAll_Empty() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>();\n\n instance.add(1);\n instance.add(1);\n instance.add(1);\n instance.add(1);\n\n Collection c = Arrays.asList(2, 3);\n instance.retainAll(c);\n\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Remove the callback from the list.
public void removeCallback(EventCallback<T> callback) { callbacks.remove(callback); }
[ "public synchronized void removeCallback(MaestroNoteCallback callback) {\n callbacks.remove(callback);\n }", "public void removeCallback(ITrafficStateCallback callback) {\n mRegisteredCallbacks.unregister(callback);\n mCallbackFirstInvocationTracker.delete(callback.hashCode());\n }", ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the balance of the specified player.
public String getBalanceString(Player player) { return rankupManager.getBalanceString(player); }
[ "public BigDecimal getBalance(Player player) {\n return rankupManager.getBalance(player);\n }", "public double getVaultBalance(UUID playerUUID){\n\t\tdebugOut(\"getting player from UUID\");\n\t\torg.bukkit.OfflinePlayer player = Bukkit.getOfflinePlayer(playerUUID );\n\t\t\n\t\tdebugOut(\"getting vault b...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Initializes a new instance of EuclideanMetricVrpProblemToJSpritConverter.
public EuclideanMetricVrpProblemToJSpritConverter(IDistanceService distanceService) { super(distanceService); }
[ "@Override\n public ConversionResult convertToJsprit(VrpProblem problem) {\n if(problem.getProblemMetric() != VrpProblemMetric.Euclidean){\n throw new ProblemConversionException(\"Metrics must be Euclidean for that converter\");\n }\n problem.setDistanceMatrix(createDistanceMatrix...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__ParameterDecl__Group_1__0__Impl" $ANTLR start "rule__ParameterDecl__Group_1__1" InternalGo.g:6562:1: rule__ParameterDecl__Group_1__1 : rule__ParameterDecl__Group_1__1__Impl rule__ParameterDecl__Group_1__2 ;
public final void rule__ParameterDecl__Group_1__1() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalGo.g:6566:1: ( rule__ParameterDecl__Group_1__1__Impl rule__ParameterDecl__Group_1__2 ) // InternalGo.g:6567:2: rule__ParameterDec...
[ "public final void rule__Parameter__Group_1_0__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../ufscar.Compiladores2.ui/src-gen/ufscar/compiladores2/ui/contentassist/antlr/internal/InternalMusy.g:1541:1: ( rule__Parameter__Group_1_0__2...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "entryRuleAllInstancesOpCall" $ANTLR start "ruleAllInstancesOpCall" InternalOCLlite.g:962:1: ruleAllInstancesOpCall : ( ( rule__AllInstancesOpCall__Group__0 ) ) ;
public final void ruleAllInstancesOpCall() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalOCLlite.g:966:2: ( ( ( rule__AllInstancesOpCall__Group__0 ) ) ) // InternalOCLlite.g:967:2: ( ( rule__AllInstancesOpCall__Group__0 ) ) ...
[ "public final void rule__AllInstancesOpCall__Group__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalOCLlite.g:6528:1: ( rule__AllInstancesOpCall__Group__0__Impl rule__AllInstancesOpCall__Group__1 )\n // InternalOCLlite.g...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
The instructions in the Instruction Window are set differently based on the mode PitchLab is in: Passive/Active Pitch or Passive/Active Relative.
private void redrawInstructions() { switch (DynmVar.mode) { case Constants.PP_PRACTICE: { drawInstructions(IWConsts.PP_INSTRUCTIONS,IWConsts.PP_INST_BOLDS,IWConsts.PP_INST_ITALIC, IWConsts.PP_CAN_SET_ANS_PLACE); break; } case Constants.AP_PRACTICE: { drawInstructions(IWConsts.AP_IN...
[ "public void setMode(String pIP, int pOpMode)\n{\n\n opMode = pOpMode;\n\n if (opMode == NotcherGroup.CUT_MODE){\n\n invokeCutMode(pIP);\n \n }\n\n if (opMode == NotcherGroup.STOPPED_MODE){\n\n invokeStopMode(pIP);\n \n }\n\n}", "public void setMode(int newMode) {\n\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Execute a command on a rover
public void executeCmd(Integer id,Rover.Command cmd){ Rover rover = rovers.get(id); if(rover == null){ throw new IllegalArgumentException("Rover not found"); } rover.doCommand(cmd); }
[ "public abstract void runCommand();", "@Override\n public void runCommand(String command) {\n myCommandAccess.accept(command);\n }", "public void command() {\r\n Parse commandCell = cells.at(1);\r\n Parse processIdCell = cells.at(2);\r\n try {\r\n CommandProcess p = doSpawn(commandCel...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method returns the value of the database column t_green_zz_jzjl.c_xguser
public String getcXguser() { return cXguser; }
[ "public String getUser() {\r\n return this.jdbcSG.getSGFactory().getGenerator().getProperty(\"jdbc.user\", user);\r\n }", "public String getJdbcUser()\n {\n return getStringValue(DataSourceDobj.FLD_JDBC_USER);\n }", "public String getcCjuser() {\n return cCjuser;\n }", "public int g...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Update the score label with the given info
public void updateScoreLabel(int player1Score, int player2Score, String player1Name, String player2Name) { JLabel scoreLabel = (JLabel) scorePanel.getComponent(SCORE_LABEL_INDEX); scoreLabel.setText("Scores - " + player1Name + ": " + player1Score + " win(s) " + player2Name + ": " + player2Score + " win(s)"); }
[ "private void updateScore() {\n // TODO update a score to be displayed to the user\n\n }", "private void updateScore() {\n myScore.setText(\"SCORE: \" + score);\n }", "private void updateScore() {\n\t\tscoreString.updateString(Integer.toString(score));\n\t}", "void updateScore () {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by Apache iBATIS ibator. This method corresponds to the database table V_RP_MN_DISTRICT_3G
public void insertSelective(VRpMnDistrict3G record) { getSqlMapClientTemplate().insert("V_RP_MN_DISTRICT_3G.ibatorgenerated_insertSelective", record); }
[ "public VRpMnDistrict3GDAOImpl() {\n super();\n }", "public WkBadCellDistrict3gDAOImpl() {\n super();\n }", "void District(int w_id) throws InvalidRequestException, TException {\n\t\t/* local varibales */\n\t\tint d_id;\n\t\tint d_w_id;\n\t\tString d_name;\n\t\tString d_street_1;\n\t\tString...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
10 players; last marble is worth 1618 points: high score is 8317 13 players; last marble is worth 7999 points: high score is 146373 17 players; last marble is worth 1104 points: high score is 2764 21 players; last marble is worth 6111 points: high score is 54718 30 players; last marble is worth 5807 points: high score ...
public static void main(String[] args) { System.out.println(winningScoreForMarbleGame(9, 25)); System.out.println(winningScoreForMarbleGame(10, 1618)); System.out.println(winningScoreForMarbleGame(13, 7999)); System.out.println(winningScoreForMarbleGame(17, 1104)); System.out.pri...
[ "public static void calculatePlayerScores() {\n\t\t\n\t\t//Get player index who had lowest trump\n\t\tint hadLowestTrump = findLowestTrumpPlayer();\n\t\tint hadHighestTrump = findHighestTrumpPlayer();\n\t\tint hadGamePoint = findHighestGamePointPlayer();\n\t\t\n\t\t//Loop through player list to calculate score for ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Setter method for property plmnidlist.
public void setPlmnidlist(String plmnidlist) { this.plmnidlist = plmnidlist; }
[ "public String getPlmnidlist() {\n\t\treturn plmnidlist;\n\t}", "public void setPlmnIdValue(String plmnIdValue) throws JNCException {\n setPlmnIdValue(new YangString(plmnIdValue));\n }", "public void setP(List<Production> p);", "public void setM_PriceList_ID (int M_PriceList_ID);", "public void se...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Create new prediction Add symptoms to prediction (if any) And end session
private void createPrediction(Prediction pre) { try { mRef2 = FirebaseDatabase.getInstance().getReference(FirebaseConstants.FIREBASE_TABLE_PREDICTION); mRef2.addListenerForSingleValueEvent(new ValueEventListener() { @Override public void onDataChange(@NonN...
[ "private void createPredictionSymptom(String predictionID) {\n try {\n mRef2 = FirebaseDatabase.getInstance().getReference(FirebaseConstants.FIREBASE_TABLE_PREDICTION_SYMPTOM);\n mRef2.addListenerForSingleValueEvent(new ValueEventListener() {\n @Override\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates a new Dao with the following options: Driver: com.mysql.jdbc.Driver Database: jdbc:mysql://localhost/genericsqlresultset User: root Password: root
public static Dao createStandardDao() { return new Dao(new DataSource( "com.mysql.jdbc.Driver", "jdbc:mysql://localhost/genericsqlresultset?useSSL=false", "root", "root" )); }
[ "public PsvDaoImplJDBC() {\r\n }", "public MySQLCommunityTypeDAO() throws SQLException {}", "T create(ResultSet resultset) throws Exception;", "public DBUtil(){ }", "Query createQuery();", "private StudentExamDaoSql() { }", "public EmpresaDAOHibernate() {\r\n\t\t// TODO Auto-generated constructor stu...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get the protectedItemsCount property: Number of items associated with this policy.
public Integer protectedItemsCount() { return this.protectedItemsCount; }
[ "public Integer protectedItemCount() {\n return this.protectedItemCount;\n }", "public Long protectedItemCount() {\n return this.protectedItemCount;\n }", "public ProtectionPolicy withProtectedItemsCount(Integer protectedItemsCount) {\n this.protectedItemsCount = protectedItemsCount;\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Top 5 items last month
private static void top5itemsLastMonth(List<Inventory> inventoryList) { System.out.println("\nTop 5 items last month"); inventoryList.stream() .filter(p2) .collect(Collectors.groupingBy(Inventory::getName, LinkedHashMap::new,Collectors.summingInt(Inventory::getQuantity))) .entrySet() ....
[ "List<Article> findTop3ByOrderByPostTimeDesc();", "public void testTopOfMonth() throws IOException {\n test3Param(\"'.'yyyy-MM\", \"output/drfa_topOfMonth.log\");\n }", "List<Product> getTop5ProductsByQuantitySold();", "public List<Album> getLatestAlbums(){\n String q = \"SELECT a FROM Album ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
bundleA, bundleB, and fragment on bundleA all use the same namespace. Verify that getting elements by contributor returns all elements from the contributor and only from that contributor.
public void testByContributor() throws IOException, BundleException { Bundle bundleA = null; Bundle bundleB = null; Bundle fragment = null; try { bundleA = BundleTestingHelper.installBundle("0.1", RuntimeTestsPlugin.getContext(), RuntimeTestsPlugin.TEST_FILES_ROOT + "registry/elementsByContributor/A"); ...
[ "public void testBundleWiresStructure() throws Exception {\n\t\ttestBundle1 = installAndStartBundle(TESTBUNDLE_EXPORTPACKAGE);\n\t\ttestBundle2 = installAndStartBundle(TESTBUNDLE_IMPORTPACKAGE);\n\t\ttestBundle3 = installBundle(TESTBUNDLE_FRAGMENT, false);\n\t\ttestBundle4 = installAndStartBundle(TESTBUNDLE_REQUIRE...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
A method to handle replacing the node values with the parallel gateways when necessary in case of the existence of multiple incoming or outgoing transitions for one process
@SuppressWarnings("deprecation") public void replaceValues(Map<String, ArrayList<String>> outTransitionMap, Map<String, ArrayList<String>> inTransitionMap, BPMNmodel BPMNWorkFlow) { /* * This part is to remove all the nodes with multiple outgoing * transitions and replace them with the parallel gate in t...
[ "private void updateTopologyGraph(ExecNode<?> node) {\n TreeMap<Integer, List<Integer>> inputPriorityGroupMap = new TreeMap<>();\n Preconditions.checkState(\n node.getInputEdges().size() == node.getInputProperties().size(),\n \"Number of inputs nodes does not equal to num...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the initial vote value of the peer epoch.
private long getPeerEpoch() { if (self.getLearnerType() == LearnerType.PARTICIPANT) { try { return self.getCurrentEpoch(); } catch (IOException e) { RuntimeException re = new RuntimeException(e.getMessage()); re.setStackTrace(e.getStackTrac...
[ "public final long getInitialValue() {\n return initialValue;\n }", "public int getEpoch() {\n\t\treturn epoch;\n\t}", "public long getLeaderEpoch() {\n return leaderEpoch;\n }", "long getCurrentEpoch();", "@java.lang.Override\n public long getCurrentEpoch() {\n return currentEpoch_;\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Create notification for applicants for a blocked ad
public static Notification createBlockedAdDeclinedApplicationsNotification(User from, User to, Ad ad) { String type = "BlockedAdDeclinedApplications"; String text = "Your application is automatically declined because ad: " + ad.getTitle() + " has been blocked."; return new Notification(from, to,...
[ "private void sendInformNoBids() {\n\t\tACLMessage message = new ACLMessage(ACLMessage.INFORM);\n\n\t\tfor (AID participant : participants) {\n\t\t\tmessage.addReceiver(participant);\n\t\t}\n\n\t\tauction.setNote(\"NO_BIDS\");\n\t\ttry {\n\t\t\tmessage.setContentObject(auction);\n\t\t} \n\t\tcatch (IOException e) {...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Executes the install goal.
@Override public void execute() throws MojoExecutionException { try { init(false); getOutputDirectory().mkdir(); final String folders = jmsPackage.replace(".", File.separator); final File srcFolder = new File(getOutputDirectory(), folders); ...
[ "public void install(String[] args) throws LauncherException {\r\n executeAntTarget(new String[] {\"install\"});\r\n\r\n try {\r\n installProjects();\r\n\r\n generateScripts();\r\n\r\n //registerXFreeDesktopExtensions();\r\n\r\n System.out.println(\"Scriptlandia core installed.\");\r\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Execute click on a directory of PDB files
public void runClick(File pdbDir, File anOutputDirectory, File csvSummary) { if (anOutputDirectory != null) { String[] ext = new String[] { "pdb" }; System.out.println("Running click..."); try { Click.compareAAADirectory(pdbDir, anOutputDirectory, csvSummary); } catch (Exception e) { e.printStackT...
[ "public void clickOnFile(String file) {\n clickOnFile(file, 1);\n }", "public void clickOnFile(int index, int clickCount) {\n getQueueTool().waitEmpty();\n output.printTrace(\"Click \" + Integer.toString(clickCount)\n + \" times on \" + Integer.toString(index)\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get the BO as a record string.
private String getBOASRecord(ZXBO pobjBO) throws ZXException { StringBuffer bo2Record = new StringBuffer(); String strValue; Iterator iter = pobjBO.getDescriptor().getGroup("*").iterator(); while (iter.hasNext()) { Attribute objAtr = (Attribute)iter.n...
[ "java.lang.String getRecord();", "public String getRecord() {\n return (long)S + \" \" + (long)I + \" \" + (long)R;\n }", "String getBillString();", "public String getRecordText();", "public String getObrefno() {\n return (String)getAttributeInternal(OBREFNO);\n }", "public String toSt...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }