query
stringlengths
8
1.54M
document
stringlengths
9
312k
negatives
listlengths
19
20
metadata
dict
.proto.Platform platform = 11;
proto.PlatformOrBuilder getPlatformOrBuilder();
[ "proto.Platform getPlatform();", "proto.PlatformVersion getPlatformVersion();", "public interface BSPRPCProtocolVersion extends VersionedProtocol {\n public static final long versionID = 0L;\n}", "org.jetbrains.kotlin.gradle.idea.proto.generated.kpm.IdeaKpmUnknownPlatformProto getUnknown();", "public voi...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets next integer from the console input, with error checking. Prints "invalid option" if not an integer
private static int getNextInt() { int input = -1000; try { input = scanner.nextInt(); } catch(Exception e) { System.out.println("Invalid option"); scanner.next(); } return input; }
[ "public int getNextIntFromCommandLine() {\r\n\t\tint choice = 0;\r\n\t\ttry {\r\n\t\t\tString s = scanner.readLine();\r\n\t\t\tchoice = new Scanner(s).nextInt();\r\n\t\t} catch (Exception e) {\r\n\t\t\tout.println(\"Try to type a Number ! ^.^\");\r\n\t\t}\r\n\r\n\t\treturn choice;\r\n\t}", "public static int getI...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sell the quantity of product.
public void sell(int quantity) { if (quantity <= this.quantity) { this.quantity -= quantity; } else { System.err.println("Not enough products !"); } }
[ "public void sellProduct(){\n if(quantity > 0)\n this.quantity -= 1;\n else\n throw new IllegalArgumentException(\"Cannot sell \"+ this.model +\" with no inventory\");\n\n }", "public void sellProduct() throws MyException\r\n\t{\r\n if (getQuantity()<=0)\r\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Tells whether this move will cause damage to a target
public boolean doesDamage() { return style() != MoveStyle.STATUS; }
[ "public void setCanAttack(boolean canAttack){ target.setCanAttack(canAttack);}", "public boolean getCanAttack(){return target.getCanAttack();}", "public void setEnemyTargetted(boolean isEnemyTargetted) {\r\n\t\tenemyTargetted = isEnemyTargetted;\r\n\t}", "public synchronized boolean isOnTarget()\n {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
I pop the next screen from the stack and set to the game
public static void popNextScreen(SpikeQuestGame aGame) { if (!aGame.screenStack.isEmpty()) { Screen nextScreen = aGame.screenStack.pop(); try { aGame.setScreen(nextScreen); } catch (Exception e) { //TODO; CREATE ERROR SCREEN?? ...
[ "@Override\n public void switchScreen() {\n if (!dsp.contains(\"state\")) {\n gsm.pop(new PrologueScreen(context, gsm), null);\n } else {\n PlayerState ps = PlayerState.valueOf(dsp.getString(\"state\", \"Town\"));\n\n if(ps == PlayerState.TOWN || ps == PlayerState.D...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "ruleMachineDecl" $ANTLR start "entryRuleMachineBody" ../br.ufpe.cin.Tupi/srcgen/br/ufpe/cin/parser/antlr/internal/InternalTupi.g:317:1: entryRuleMachineBody returns [EObject current=null] : iv_ruleMachineBody= ruleMachineBody EOF ;
public final EObject entryRuleMachineBody() throws RecognitionException { EObject current = null; EObject iv_ruleMachineBody = null; try { // ../br.ufpe.cin.Tupi/src-gen/br/ufpe/cin/parser/antlr/internal/InternalTupi.g:318:2: (iv_ruleMachineBody= ruleMachineBody EOF ) ...
[ "public final EObject entryRuleMachine() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleMachine = null;\n\n\n try {\n // ../ac.soton.xtext.machineDsl/src-gen/ac/soton/xtext/parser/antlr/internal/InternalMachineDsl.g:69:2: (iv_ruleMachine= ruleMachine EOF )...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test whether the absolute name equals the parameter.
public boolean absoluteNameEquals(String s) { return absoluteName.equals(s); }
[ "default boolean nameEquals(@NonNull String name) {\n // implicit null check of the parameter\n return name.equals(getSimpleName());\n }", "public boolean whatIsIt(String name) {\r\n\t\treturn name.equals(this.name);\r\n\t}", "String isNameExistByName(String name);", "public boolean containsI...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Used to open the form with the given name If the form is set to blocking, then the form will be opened in a modal form. This means that the application is blocked until the form is closed. This enables the form to pass values back to the calling form. To do this, the calling form can pass its form manager to the form a...
public void openForm(String formName, EJParameterList parameterList, boolean blocking) { try { EJInternalForm form = createInternalForm(formName, parameterList); openForm(form, blocking); } catch (Exception e) { handleException(e); ...
[ "public void openForm(EJInternalForm form, boolean blocking)\n {\n // First call the preFormOpened action controller method. This will\n // allow users to stop the opening of the form if they so wish\n form.getActionController().getUnmanagedController().preFormOpened(new EJForm(form));\n\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test whether or not the cards in selectedCards are a set, and adjust the board accordingly. This includes setting all BoardSquares to have currentlySelected = false, and then clearing the selectedCards array.
public boolean testSelected() { // test if set boolean set = Card.isSet( selectedCards.get(0).getCard(), selectedCards.get(1).getCard(), selectedCards.get(2).getCard() ); // set currentlySelected to false and replace with new Cards (if app...
[ "private void removeSelectedCards() {\n\t\tcards.removeAll(getSelectedCards());\n\t\tupdateTable();\n\t}", "protected void hideAndClearSelectedCards() {\r\n\t\tfor(int i = 0; i < handButtons.length; i++) {\r\n\t\t\thandButtons[i].setVisible(true);\r\n\t\t\thandButtons[i].setSelected(false);\r\n\t\t}\r\n\t\tselect...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by Apache iBATIS ibator. This method returns the value of the database column V_RP_HR_BSC_GPRS_CS.MCSX_LEVEL3
public Float getMcsxLevel3() { return mcsxLevel3; }
[ "public Float getCsxLevel3() {\r\n return csxLevel3;\r\n }", "public void setMcsxLevel3(Float mcsxLevel3) {\r\n this.mcsxLevel3 = mcsxLevel3;\r\n }", "public void setCsxLevel3(Float csxLevel3) {\r\n this.csxLevel3 = csxLevel3;\r\n }", "public Float getMcsxLevel9() {\r\n re...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
auto generated Axis2 call back method for changeUserRoleToOrganisation method override this method for handling normal response from changeUserRoleToOrganisation operation
public void receiveResultchangeUserRoleToOrganisation( net.agef.jobexchange.webservice.tests.util.UserWSStub.ChangeUserRoleToOrganisationResponse result ) { }
[ "public void receiveResultchangeUserRoleToAlumni(\r\n net.agef.jobexchange.webservice.tests.util.UserWSStub.ChangeUserRoleToAlumniResponse result\r\n ) {\r\n }", "@Override\n public void onUserRoleChanged(JSONObject jsonObject) {\n }", "boolean setUserRo...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
return prioridad.toString() + " " + elem.toString();
public String toString() { return "("+prioridad.toString() + ")" + elem.toString(); }
[ "public String toString(){\n return \"(\"+siglas+\") \"+nombre;\n }", "public String getStringObjetos()\n {\n String aDevolver=\"\";\n ArrayList<String> elementosQueHay = getDescripcionElementos();\n if(elementosQueHay.size()==0)\n {\n aDevolver = \"En esta habi...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Assert greater than order table init rows.
public void assertGreaterThanOrderTableInitRows(final DataSource dataSource, final int tableInitRows, final String schema) { String tableName = Strings.isNullOrEmpty(schema) ? "t_order" : String.format("%s.t_order", schema); int recordsCount = getTargetTableRecordsCount(dataSource, tableName); a...
[ "@Test\n void isSorted() throws Exception{\n Table randomNumbersTable = new Table(table2.length, table2);\n assertEquals(false, sorter.isSorted(randomNumbersTable));\n }", "@Test\n public void testOrderNum() {\n assertEquals(\"Test orderNum variable\", 0, table.getOrderNum());\n\n }", "...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates a SecureFile entity with the details of the mock multipart file provided.
public static SecureFile mockSecureFile(MockMultipartFile file) { final SecureFile savedFile = mock(SecureFile.class); when(savedFile.getFilename()).thenReturn(file.getOriginalFilename()); when(savedFile.getContentType()).thenReturn(file.getContentType()); when(savedFile.getLength()).the...
[ "public static SecureFileEntity mockSecureFile(final String filename) {\n final SecureFileEntity file = mock(SecureFileEntity.class);\n when(file.getFilename()).thenReturn(filename);\n when(file.getContentType()).thenReturn(MediaType.IMAGE_GIF.toString());\n when(file.getPlainData()).the...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
test 3: testing two column (1 long, 1 shor) table
public void testTwoColumnsLongAndShort() throws SQLException { Statement st = createStatement(); st.execute("create table testing (a varchar(32384), b int)"); st.execute("insert into testing values (PADSTRING('1 2 3 4 5 6 7 8 9 0', 32384), 1)"); st.execute("insert into testing v...
[ "public void testTwoColumnsShortAndLong() throws SQLException {\n Statement st = createStatement();\n \n st.execute(\"create table testing (a int, b varchar(32384))\");\n st.execute(\"insert into testing values (1, PADSTRING('1 2 3 4 5 6 7 8 9 0', 32384))\");\n st.execute(\"insert...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ Bid Rules: 1. A user cannot bid a lower price for the same auction 2. A user shouldnt bid a higher price of its previous price is the highest in the auction at the moment. 3.
public boolean validateBid(int auctionID, int price) throws SQLException { if (price <= getMaxBidPrice(auctionID)) { return false; } return true; }
[ "@Override\n public double auction(double bidPrice, double marketPrice) {\n if (bidPrice > marketPrice) {\n return bidPrice;\n }\n\n // Lose\n return 0;\n }", "@Override\n public UserBid bid(Auction auction, float price, User buyer) throws BidException {\n\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method sets the value of the database column TB_USER_MARRY_STANDARD.CHILDREN
public void setChildren(String children) { this.children = children; }
[ "void setChildren(List<Child> children) {\n this.children = children;\n }", "public void setChildCount (int childCount) {\n this.childCount = childCount;\n }", "public void setNumberOfChildren(int value) {\n this.numberOfChildren = value;\n }", "public void setChildren(List chil...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns true if this User is authorized for 'all' groups/devices
public boolean isDeviceGroupAll() throws DBException { java.util.List<String> groups = this.getDeviceGroups(false/*refresh*/); if (ListTools.isEmpty(groups)) { return this.getDefaultDeviceAuthorization(); } else { for (String groupID : groups) { ...
[ "public boolean getDefaultDeviceAuthorization()\n {\n if (this.isAdminUser()) {\n // -- authorized for \"ALL\" devices\n return true;\n } else {\n // -- check for \"ALL\" device authorization\n return DBConfig.GetDefaultDeviceAuthorization(this.getAccount...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "APOSTROPHE" $ANTLR start "QUOTATION"
public final void mQUOTATION() throws RecognitionException { try { // /home/arv/workspace/master/meteor/meteor-meteor/src/main/java/eu/stratosphere/meteor/Meteor.g:395:3: ( '\\\"' ) // /home/arv/workspace/master/meteor/meteor-meteor/src/main/java/eu/stratosphere/meteor/Meteor.g:395:5: '\...
[ "protected void lexQuotedStringLiteral() {\n\t\tlexStringLiteral('\\'', DSLMessage.NON_TERMINATING_QUOTED_STRING);\n\t}", "protected token readQuotedReservedWord() throws IOException, DasmError {\n charBuf.reset();\n for (;;) {\n readNextChar();\n if (isSeparator(nextChar))\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Verify if card is Queen of Spades
public boolean isQueenOfSpades() { if (suit == Suit.SPADES && rank == Rank.QUEEN) { return true; } else { return false; } }
[ "private boolean canCastleQueenside(String side) {\n if (!ruleEnforcer.inCheck(side)) {\n if (side.equals(\"white\")) {\n if (board.getwK().getMoveCount() == 0 && board.getwR1().getMoveCount() == 0) {\n String[] moves = {\"d1\", \"c1\"};\n retur...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
end of BoardChannelSimulator::readAndParseIntFromMapSimDataFile BoardChannelSimulator::getNextMaxWallValue Returns the next simulated or file supplied maximum wall value. If simulationType is RANDOM, the value is generated randomly. If simulationType is FROM_FILE, value is from data loaded from a file.
public int getNextMaxWallValue() { if(simulationType == UTSimulator.RANDOM){ return(getNextMaxWallValueRandom()); } else if(simulationType == UTSimulator.FROM_FILE){ return(getNextMaxWallValueFromFile()); } else{ return(0); } }
[ "public int getNextMaxWallValueFromFile()\r\n{\r\n\r\n int value = bufferA[bufferAIndex++];\r\n \r\n if (bufferAIndex >= bufferADataEnd) { bufferAIndex = 0; }\r\n \r\n return(convertChartPercentageToSampleCounts(value));\r\n \r\n}", "public int getNextWallMapValueFromFile()\r\n{\r\n\r\n retur...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Remove cached jsonNodes if they are old
void disposeOldCache() { if (System.currentTimeMillis() - cacheCreatedAt > MAX_CACHE_AGE) { jsonNodeCache.clear(); cacheCreatedAt = System.currentTimeMillis(); } }
[ "public static File removeNodeFromCachingFileJson(int nodeID,File oldCachingFile) {\r\n\t\tFile newCachingFile = new File(tmpFolder+File.separator+oldCachingFile.getName());\r\n\t\ttry {\r\n\t\t\tJSONParser parser = new JSONParser();\r\n\t\t\tJSONObject jObj = (JSONObject)parser.parse(new FileReader(oldCachingFile)...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Use GetDataVersionResponse.newBuilder() to construct.
private GetDataVersionResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); }
[ "private GetDataVersionRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "com.google.protobuf.ByteString getResponseData();", "com.exacttarget.wsdl.partnerapi.VersionInfoResponseMsgDocument.VersionInfoResponseMsg getVersionInfoResponseMsg();",...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Adds a body to be excluded from this sensor's detection.
public void addExcludedBody(Body b) { if (!this.excludedBodies.contains(b)) this.excludedBodies.add(b); }
[ "public void setIgnoreAttachedBody(boolean flag);", "public boolean getIgnoreAttachedBody();", "public BodyList getExcludedBodies() {\n\t\treturn excludedBodies;\n\t}", "public final void removeBody( Body body )\n {\n if (this.bodies.remove( body ) )\n {\n removeBodyImpl( body );\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Performs variable interpolation for the given input string. All environment variable expressions (\$[azAZ_][azAZ09_]+\$, e.g. $fileName$ or $author$) in the given string are replaced with their corresponding environment value.
public String interpolate(String str) { PatternMatcherInput input = new PatternMatcherInput(str); Map keys = new HashMap(); // map all found varaiable expressions with their environment variable... while (_matcher.contains(input, _variablesPattern)) { MatchResult...
[ "public String resolveVariables(Map<String, String> envMap, String input) {\n String result = input;\n if (input != null && input.trim().length() > 0) {\n Pattern pattern = Pattern.compile(\"\\\\$\\\\{[^}]*}\");\n Matcher matcher = pattern.matcher(result);\n while (mat...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
On clicking the share button Added a click listener to my menu item, and used an intent to pop up the share menu
@Override public boolean onOptionsItemSelected(MenuItem item) { switch (item.getItemId()) { case R.id.mShare: Intent i = new Intent( android.content.Intent.ACTION_SEND); i.setType("text/plain"); i.putExt...
[ "public void share(View view){\n Toast.makeText(this, \"Loading share options ...\", Toast.LENGTH_SHORT).show();\n //Create an intent to share\n Intent sharingIntent = new Intent(Intent.ACTION_SEND);\n sharingIntent.setType(\"text/plain\");\n String shareBody = \"You should check ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
reversing the linked list in pairs iteratively
public SLL_LinkNode ite_reverseInPairs(SLL_LinkNode head) { SLL_LinkNode temp1, temp2, new_head = head.getNext(); while (head != null && head.getNext() != null) { temp1 = head.getNext(); temp2 = temp1.getNext(); if (temp2 == null || temp2.getNext() == null) head.setNext(temp2); else head.setNext...
[ "public ListNode reverseInPairs(ListNode head) {\n\t\tif (head == null || head.next == null) {\n\t\t\treturn head;\n\t\t}\n\t\tListNode newHead = head.next;\n\t\thead.next = reverseInPairs(head.next.next);\n\t\tnewHead.next = head;\n\t\treturn newHead;\n\t}", "public SLL_LinkNode rec_reverseInPairs(SLL_LinkNode h...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
optional .com.mwr.jdiesel.api.Message.ReflectionResponse reflection_response = 8;
boolean hasReflectionResponse();
[ "private ReflectionResponse(Builder builder) {\n super(builder);\n }", "boolean hasReflectionRequest();", "com.exacttarget.wsdl.partnerapi.DefinitionResponseMsgDocument.DefinitionResponseMsg getDefinitionResponseMsg();", "RecoveryWalkResponseInner innerModel();", "com.czht.face.recognition.Czhtd...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method returns the value of the database column sys_contentmain.VIDEOFLASHLURL
public String getVideoflashlurl() { return videoflashlurl; }
[ "private String getVideoUrl(){\n\n if (! mStepsModel.getVideoURL().equals(\"\")) return mStepsModel.getVideoURL();\n else if(! mStepsModel.getThumbnailURL().equals(\"\")) return mStepsModel.getThumbnailURL();\n\n return null;\n\n }", "java.lang.String getVideoUrl();", "public String get...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the admin name.
public static String getAdminName() { String value = null; try { XMLConfiguration xmlConf = new XMLConfiguration(AppConfig.class.getResource("/com/pimmanager/configuration/config.xml")); value = xmlConf.getString("admin.name"); } catch (ConfigurationException ce) { ...
[ "public static String getAdminNameProperty(){\r\n\t\treturn getProperties(PROP_ADMIN_NAME);\r\n\t}", "public String getAdminname() {\n return adminname;\n }", "public String getAdminName() {\n return adminName;\n }", "public String getAdminName() {\n\t\treturn adminName;\n\t}", "public S...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the value of the invocations property.
public int getInvocations() { return invocations; }
[ "public long getInvocations() {\n return invocations_;\n }", "public long getInvocations() {\n return invocations_;\n }", "public Object getInvokedValue() {\n\t\treturn invokedValue;\n\t}", "public Invocation getInvocation() {\n\t\treturn invocation;\n\t}", "public int getNumInvocations() {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Checks whether the colorName is a valid CSS color. This includes the "special" colors: "transparent", "inherit" or "currentcolor". Color names are caseinsensitive. Here are some examples of valid colors: "00f", "0f0f0f", "00F", "0F0F0F", "rgb(255,0,0)", "rgba(0,0,0,0)", "red", "rgb(100%, 0%, 0%)", "hsl(0, 100%, 50%)", ...
public static boolean isValidColorName(String colorName) { if (null == colorName) { return false; } String str = colorName.toLowerCase(); return (isSpecialColorName(str) || ColorName.lookup(str) != null || COLOR_RE.test(str)); }
[ "private boolean isValidColor(String color) {\n\t\tif(color == null)\treturn false;\n\t\t\n\t\tboolean validHex = color.matches(\"^[0-9a-fA-F]+$\");\n\t\tboolean validLength = color.length() == 6;\n\t\t\n\t\tif(validHex && validLength)\treturn true;\n\t\treturn false;\n\t}", "private boolean checkColor(String col...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
fim do metodo sendMacroUR
public void sendMacroUA(ApplicationMacro applicationMacro, String applicationType) throws ClassNotFoundException, InstantiationException, IllegalAccessException { ArrayList<String> commandAL = new ArrayList<String>(); commandAL = applicationMacro.getCommandAL(); System.out .println("\nMacro seleciona...
[ "public void sendMacroUR(UserMacro userMacro) throws IOException {\n\t\tArrayList<String> commandAL = new ArrayList<String>();\n\n\t\tcommandAL = userMacro.getCommandAL();\n\n\t\tint amountCom = commandAL.size();\n\t\tfor (int indexCom = 0; indexCom < amountCom; indexCom++) {\n\t\t\tswitch (commandAL.get(indexCom))...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
optional .speech.multilang.ForwardingControllerParams forwarding_params = 3;
speech.multilang.Params.ForwardingControllerParams getForwardingParams();
[ "speech.multilang.Params.ForwardingControllerParamsOrBuilder getForwardingParamsOrBuilder();", "speech.multilang.Params.ForwardingControllerParams.Type getType();", "speech.multilang.Params.OutputControllerParams getOutputParams();", "public Builder setForwardingParams(speech.multilang.Params.ForwardingContro...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
It gets the notifier.
public PaneListenerNotifier getNotifier(){ return notifier; }
[ "private Notifier getNotifier() {\r\n return getLocalFacade().getGlobalFacade().getNotifier();\r\n }", "public RunNotifier getNotifier() {\n return notifier;\n }", "public EaseNotifier getNotifier(){\n\t return easeUI.getNotifier();\n\t}", "public EaseNotifier getNotifier() {\n r...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns a new object of class 'Shipment Contact Mech'.
ShipmentContactMech createShipmentContactMech();
[ "ShipmentContactMechType createShipmentContactMechType();", "Shipment createShipment();", "ShipmentPackage createShipmentPackage();", "Shipment getShipment();", "ShipmentItem createShipmentItem();", "ShipmentGatewayFedex createShipmentGatewayFedex();", "ShipmentType createShipmentType();", "ShipmentPa...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Tests that the samhsa checker is invoked and returns true when a fiss claim with no data is passed, as the matches should have nothing to match as a positive samhsa result.
@Test public void testHasNoSamhsaDataWhenFissClaimResponseWithNoDataExpectTrue() { RdaFissClaim fissClaim = mock(RdaFissClaim.class); boolean hasNoSamhsa = samhsaMatcher.hasNoSamhsaData(fissClaim); assertTrue(hasNoSamhsa); }
[ "@Test\n public void testHasNoSamhsaDataWhenMcsClaimResponseWithNoDataExpectTrue() {\n\n RdaMcsClaim mcsClaim = mock(RdaMcsClaim.class);\n\n boolean hasNoSamhsa = samhsaMatcher.hasNoSamhsaData(mcsClaim);\n\n assertTrue(hasNoSamhsa);\n }", "@Test\n public void isValidSaq() {\n Saq validSaq = n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
.RetrieveFileRequestToSN retrieveFileRequestToSN = 9;
edu.usfca.cs.dfs.StorageMessages.RetrieveFileRequestToSN getRetrieveFileRequestToSN();
[ "edu.usfca.cs.dfs.StorageMessages.RetrieveFileRequestToSNOrBuilder getRetrieveFileRequestToSNOrBuilder();", "public boolean hasRetrieveFileRequestToSN() {\n return msgCase_ == 9;\n }", "public boolean hasRetrieveFileRequestToSN() {\n return msgCase_ == 9;\n }", "boolean hasRetrieveFileRequ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Original signature : void sd_journal_close(sd_journal) native declaration : /usr/include/systemd/sdjournal.h:103
public static void sd_journal_close(Pointer<SystemdJournalLibrary.sd_journal > j) { sd_journal_close(Pointer.getPeer(j)); }
[ "public static int sd_journal_open(Pointer<Pointer<SystemdJournalLibrary.sd_journal > > ret, int flags) {\n\t\treturn sd_journal_open(Pointer.getPeer(ret), flags);\n\t}", "short ps2000_close_unit(short handle);", "void serial_close(urg_serial_t serial);", "public static int sd_journal_process(Pointer<SystemdJ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Seek to the specified position relative to an origin.
public void seek(long where, Origin whence) throws IOException;
[ "public void seek(long position) throws IOException;", "public int seek(int fd, int offset, int where);", "protected void seek(int position)\n\t{\n\t\tSystem.println(\" -- Seeking Request: \" + position);\n\t\t//m.UnLock();\n\t\tseek_disk(position);\n\t\tint travelDistance = Math.abs(headPos - position);\n\t\th...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Add a new revert function to the operation. Functions are executed in LIFO order, i.e. reverse of the calling order. Revert functions are only called if the execute phase completed without errors.
public void addRevertFunction(Consumer<T> function) { this.revertFunctions.addFirst(function); }
[ "void alterFunction(\n ObjectPath functionPath, CatalogFunction newFunction, boolean ignoreIfNotExists)\n throws FunctionNotExistException, CatalogException;", "abstract protected void revert();", "public void addExecuteFunction(Consumer<T> function) {\r\n throwIfExecuted();\r\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This reads all SQLite tables in the latest SQLite file and converts the read data to JSON.
@Override synchronized String readTables() { JsonParser jsonParser = new JsonParser(); JsonObject tablesObject = new JsonObject(); super.tableNames.forEach( table -> { String tableStr = readTable(table); try { JsonElement tableElement = jsonParser.parse(tableS...
[ "private JsonSQLite createJsonTables(JsonSQLite sqlObj) {\n boolean success = true;\n JsonSQLite retObj = new JsonSQLite();\n SQLiteDatabase db = null;\n ArrayList<JsonTable> jsonTables = new ArrayList<>();\n long syncDate = 0;\n\n try {\n db = getConnection(true...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__Term__Group__0__Impl" $ANTLR start "rule__Term__Group__1" ../eu.quanticol.caspa.ui/srcgen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:9000:1: rule__Term__Group__1 : rule__Term__Group__1__Impl rule__Term__Group__2 ;
public final void rule__Term__Group__1() throws RecognitionException { int stackSize = keepStackSize(); try { // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:9004:1: ( rule__Term__Group__1__Impl rule__Term__Group__2 ) ...
[ "public final void rule__Term__Group__1() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.openmodelica.modelicaml.editor.xtext.modeleditor.ui/src-gen/org/openmodelica/modelicaml/editor/xtext/model/ui/contentassist/antlr/inte...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__GBraceExpression__Group__2__Impl" $ANTLR start "rule__GBraceExpression__Group__3" ../org.gemoc.gel.xtext.ui/srcgen/org/gemoc/gel/ui/contentassist/antlr/internal/InternalGEL.g:8385:1: rule__GBraceExpression__Group__3 : rule__GBraceExpression__Group__3__Impl ;
public final void rule__GBraceExpression__Group__3() throws RecognitionException { int stackSize = keepStackSize(); try { // ../org.gemoc.gel.xtext.ui/src-gen/org/gemoc/gel/ui/contentassist/antlr/internal/InternalGEL.g:8389:1: ( rule__GBraceExpression__Group__3__Impl ) ...
[ "public final void rule__GBraceExpression__Group__3__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.gemoc.gel.xtext.ui/src-gen/org/gemoc/gel/ui/contentassist/antlr/internal/InternalGEL.g:8400:1: ( ( ')' ) )\n // ../...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Retrieve all records CatalogProductIndexPriceOptIdx.
public List<CatalogProductIndexPriceOptIdx> select(int maxResult);
[ "public List<CatalogProductIndexPriceOptIdx> selectAll();", "public IndexPrice getPriceIndex() {\n return _priceIndex;\n }", "@javax.annotation.Nullable\n public String getIndexPrice() {\n return indexPrice;\n }", "public PriceIndex getPriceIndex() {\n return _settlement.getPriceIndex();\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
checks whether the current user is the organizer of the event or participates and sets correspondingly the visibility of participatebutton and textView;
private void setParticipationState() { if (firebaseUser.getUid().equals(item.getEventOrganizer())) { tvParticipate.setVisibility(View.GONE); btnParticipate.setVisibility(View.GONE); } else if (item.getEventParticipants() == null) { tvParticipate.setText(getString(R.st...
[ "public void setButtonInterested(Long idSelectedUser ,Long idEvent) {\n Iterable<Event> events = eventService.getAllEvents();\n AtomicBoolean exist = new AtomicBoolean(false);\n events.forEach(event -> {\n if(event.getId().equals(idEvent)){\n event.getParticipants().fo...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
an observer for configuration view model.This method will get the configuration data from the endpoint and will display it
private void observeConfigViewModel(final ConfigurationViewModel viewModel) { viewModel.getConfigObservable().observe(this, new Observer<Config>() { @Override public void onChanged(Config config) { if (!config.isCallEnabled()) callButton.setVisibility(View.INVISIBLE); ...
[ "private void getConfiguration(){\n //create the url\n String url = API_BASE_URL + \"/configuration\";\n //set the request parameters that get appended to the request url\n RequestParams params = new RequestParams();\n params.put(API_KEY_PARAM, getString(R.string.api_key)); // (ke...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method returns the value of the database column POSSalesDetail.POSSalesNo
public String getPossalesno() { return possalesno; }
[ "public Integer getPossalesdetailid() {\r\n return possalesdetailid;\r\n }", "public void setPossalesno(String possalesno) {\r\n this.possalesno = possalesno;\r\n }", "public int getComuneResidenzaCod() {\r\n return comuneResidenzaCod;\r\n }", "public static int getIndRecaudacion...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get the negativeOutcomeExpression property: Negative outcome expression.
public String negativeOutcomeExpression() { return this.negativeOutcomeExpression; }
[ "public Prediction withNegativeOutcomeExpression(String negativeOutcomeExpression) {\n this.negativeOutcomeExpression = negativeOutcomeExpression;\n return this;\n }", "public AbstractComponent getNegativeOutcomeStep () {\n\n\t\t// Return the negative rule.\n\t\treturn negativeOutcomeStep;\n\t}",...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Use SeatWorkQuestion.newBuilder() to construct.
private SeatWorkQuestion(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); }
[ "private SeatWorkInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private QuestionSuvery(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n }", "private SubmitMySeatWorkTestingAnswersRequest(com.google.protobuf.GeneratedMessag...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Setter for property soapaction.
public void setSoapaction(java.lang.String soapaction) { if(soapaction!=null) { this.soapaction=soapaction.trim(); if(soapaction.startsWith("\"")) { this.soapaction = soapaction; }else { this.soapac...
[ "public void setSoapAction(String soapAction) {\n this.soapAction = soapAction;\n }", "public void setSoapAction(String soapAction)\n {\n if ( ( soapAction != null) && ( !soapAction.equals(\"\")) )\n {\n mSoapAction = soapAction;\n }\n }", "public String getSoapAc...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Checks whether a double has a zero fractional part, i.e. it represents an integer number.
public static boolean hasNoFractionalPart(double d) { if (d == (int) d) { return true; } else { return false; } }
[ "public static boolean isDoubleZero(double a) {\n return Math.abs(a) <= Constants.DOUBLE_EQUAL_PRECISION;\n }", "public static boolean isDoubleNotZero(double a) {\n return Math.abs(a) > Constants.DOUBLE_EQUAL_PRECISION;\n }", "public static boolean isZero(Double x) {\r\n return x != null && x.equals(...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method returns a discount customer invoice detail for the current year
public CustomerInvoiceDetail getDiscountCustomerInvoiceDetailForCurrentYear(CustomerInvoiceDetail customerInvoiceDetail, CustomerInvoiceDocument customerInvoiceDocument);
[ "public CustomerInvoiceDetail getDiscountCustomerInvoiceDetail(CustomerInvoiceDetail customerInvoiceDetail, Integer universityFiscalYear, String chartOfAccountsCode, String organizationCode);", "public CustomerInvoiceDetail getCustomerInvoiceDetailFromOrganizationAccountingDefaultForCurrentYear();", "public Cus...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the points for a rule.
public void setPoints(String ruleName, int points) { if (!protocol.containsKey(ruleName)) { throw new IllegalArgumentException(); } else if (points < 0) { throw new IllegalArgumentException(); } protocol.get(ruleName).setScore(points); owner.notifyChange...
[ "public void setPoints(int points) {\n this.points = points;\n }", "public void setPoints(String points);", "public void setPoints(int points) {\n if (points >= 0) {\n this.points = points;\n }\n }", "public void setPoints(ArrayList<Coordinate> points){\n this.poin...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
//ToolBox Meetings on HSEQ link
public void clickToolBoxMeetingsOnHSEQ() { ToolboxMeetings_Link_HSEQ.click(); }
[ "public boolean verifyToolBoxMeetingsOnHSEQ() {\r\n\t\tboolean status = new VerificationHelper(driver).isDisplayed(ToolboxMeetings_Link_HSEQ);\r\n\t\treturn status;\r\n\t}", "public OntologyLinkModeTool()\n \t{\n \tedu.tufts.vue.ontology.ui.OntologyBrowser.getBrowser().addOntologySelectionListener(this)...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Merges VariantContexts from gVCFs into a single hybrid. Assumes that none of the input records are filtered.
public VariantContext merge(final List<VariantContext> vcs, final Locatable loc, final Byte refBase, final boolean removeNonRefSymbolicAllele, final boolean samplesAreUniquified) { Utils.nonEmpty(vcs); // establish the baseline info (sometimes from the first VC) ...
[ "@DataProvider(name = \"toyIntegratedVariants\")\n public Object[][] getAnnotateStructuralVariantTestData() {\n return new Object[][]{\n { createVariantContext(\"chr1\", 10, 50, null, null, null,\n \"<CNV>\", 40, null, null, null),\n createAttri...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the ipRouteConfig value for this HostNetworkConfig.
public com.vmware.converter.HostIpRouteConfig getIpRouteConfig() { return ipRouteConfig; }
[ "public com.vmware.converter.HostIpRouteConfig getConsoleIpRouteConfig() {\r\n return consoleIpRouteConfig;\r\n }", "public NetworkInterfaceIpConfigurationInner ipConfiguration() {\n return this.ipConfiguration;\n }", "public com.vmware.converter.HostIpRouteTableConfig getRouteTableConfig() ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
The CRUD operations for AAT application or done true the TransferService. Who is responsible for delegating requests to the Repositories. We try to encapsulate DataTypes and backend operations for the UI layered. These 3 Entity Objects Account, Transfer and Transaction are the only one that can be used in the UI layer....
@Validated public interface TransferService { /** * Creating a account in the UI layer with minimal conversion of Data Type. * Minimal requirements are a balance and user-name. * * @param balance * (What the account can afford). * @param roodToegestaan * (Wh...
[ "public interface AccountService extends Service {\n\n /**\n * Calculates the transactioned volume for the account during the period.\n */\n BigDecimal calculateTransactionedVolume(TransactionVolumeDTO params);\n\n /**\n * Returns the account that matches the owner and type\n */\n Accoun...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Resets the valid moves and any associated variables to its default.
private void resetValidMove() { validMoves = null; setToValidMoveColor = false; validMoveFlag = false; }
[ "private void resetMoves(){\n\t\tunusedMoves.addAll(moves);\n\t\tmoves.clear();\n\t}", "public void resetMove() {\n\t\tthis.moveMade = false;\n\t}", "public void resetValidMoves(){\n\t\tthis.validMoves = new ArrayList<int[]>();\n\t}", "private void setDefaults() {\n originalX = defaultX;\n origi...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Verifies that the state is running.
private void verifyIsRunning() { checkState(isRunning, "Not running. Forgot to call start()?"); }
[ "public boolean checkRunCondition() {\n return getTime() < endTime || runningProcesses > 0;\n }", "public boolean checkGameRunning() \n\t{\n\t\treturn this.gameRunning;\n\t}", "boolean isRunning() throws SchedulerException;", "public boolean isRunning() {\n\t\treturn \"RUNNING\".equals(this.exitCode...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
getter method for previousOrderCount
public int getPreviousOrderCount() { return previousOrderCount; }
[ "public double getPrevCount()\n {\n\n return this.prevCount;\n }", "public int getPreviousStatus() {\r\n return(this.previousStatus);\r\n }", "public void setPreviousOrderCount(int previousOrderCount) {\n this.previousOrderCount = previousOrderCount;\n }", "public int getPrevN...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
FIND ALL CATEGORY 3
@Override public List<Cat3> listAllCat3() { List<Cat3> cat3List = new ArrayList<>(); cat3Repository.findAll().iterator().forEachRemaining(cat3List::add); return cat3List; }
[ "@Override\n public List<BaseCategory3> getCategory3(Long category2Id) {\n QueryWrapper<BaseCategory3> baseCategory3QueryWrapper = new QueryWrapper<>();\n baseCategory3QueryWrapper.eq(\"category2_id\",category2Id);\n return baseCategory3Mapper.selectList(baseCategory3QueryWrapper);\n }", ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns a directory where this artifact can be found or stored. This is composed of the group namd and the project name like this: group/project
public String getArtifactDir() { return group + File.separator + project; }
[ "public Path getRepositoryGroupBaseDir();", "java.lang.String getProjectDir();", "public File getProjectDir() {\n\t\treturn new File(location, name + PROJECT_DIR_SUFFIX);\n\t}", "String getArtifactPath();", "public String getPackageAsDirectoryName() {\r\n return getPackageName().replace('.', '/');\r\n }...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
The following APIs are all related to Resizing.
public interface Resizing { }
[ "void resizeObject();", "abstract void resize(int size);", "@Override\n public void onResized(CB_RectF rec) {\n }", "public abstract void windowResized();", "public static Result resize() {\n Logger.info(\"CalendarController.json() has resize\");\n Long id = Long.valueOf(Form.form().bindFrom...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Constructs a new TargetNotConnectedException with the specified error message.
public TargetNotConnectedException(String message) { super(message); }
[ "public NotConnectedException(String message) {\n\t\tsuper(message);\n\t}", "public NotConnectedException() {}", "public NoConnectionProvidedException(String message) {\n super(message);\n }", "public NetworkException(String message) {\n super(message);\n }", "public LogicalToPhysicalTranslato...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
set the tabulator specific font size, actually enabled for digital tab only
public void setTabFontSize(int tabSelectionIndex, int newFonSize) { if (tabSelectionIndex == 0) { //actual no special font size adaption enabled } else if (tabSelectionIndex > 0) { if (this.displayTab.getItem(tabSelectionIndex) instanceof DigitalWindow) { //this.settings.setDigitalDisplayFontSize(...
[ "public void setFontSize(int fontSize);", "private void setFontSizes() {\n int numberSizeOne = this.currentNumberPair.getFontSizeOne();\n int numberSizeTwo = this.currentNumberPair.getFontSizeTwo();\n theView.getLeftOption().setFont(new Font(\"Tahoma\", numberSizeOne));\n theView.getRi...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Provided a didl xml string, generates document, returns XMLSignature XML fragment Used for DIDL Level Signatures
public String signDidl(String didl) throws Exception { InputSource IS = new InputSource(new StringReader(didl)); org.w3c.dom.Document doc = db.parse(IS); String sig = this.signDidl(doc); log.debug("from xmlsig:" + sig); return sig; }
[ "protected abstract String getXMLSignature(Object node, \n boolean elements, boolean attributes, boolean text, boolean pi);", "private String signXML(String refurl, String digest) throws Exception {\n doc = db.newDocument();\n signature = new XMLSignature(doc, \"\", XMLSignature.ALGO_ID_...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
verifica se logou com sucesso
@Then("^o usuario se loga no aplicativo cetelem$") public void verificaSeUsuarioLogadoComSucesso() throws Throwable { Assert.assertTrue(login.validaSeLoginSucesso()); }
[ "public static boolean login() {\n\t\t// DB\n\t\tString[] usr = { \"NICOLAS\", \"CELESTE\" };\n\t\tString[] pass = { \"cerveza\", \"fernet\" };\n\t\tString usrAuth = \"\";\n\t\tboolean auth = false;\n\t\tint intentos = 1;\n\n\t\tdo {\n\t\t\tJTextField usuario = new JTextField();\n\t\t\tJTextField password = new JPa...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test delete all phone with delete all true error disabled.
@Test @Rollback( value = true ) @Transactional( propagation = Propagation.REQUIRES_NEW, isolation = Isolation.READ_UNCOMMITTED ) public void testDeleteAllPhoneWithDeleteAllTrueErrorDisabled( ) throws Exception { logger.debug( "Starting test for DeleteAllPhoneWithDeleteAllTrueWithErrorDisabled" ); ...
[ "@Test\n @Rollback( value = true )\n @Transactional( propagation = Propagation.REQUIRES_NEW, isolation = Isolation.READ_UNCOMMITTED )\n public void testDeleteAllPhoneWithErrorDisabled( ) throws Exception {\n\n logger.debug( \"Starting test for DeleteAllPhoneWithErrorDisabled\" );\n requestPar...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns all use cases with repeated ids.
public Set<UseCase> getUseCaseWithDuplicatedIds(Feature feature) { Set<UseCase> result = new HashSet<UseCase>(); HashMap<String, Integer> map = new HashMap<String, Integer>(); for (UseCase usecase : feature.getUseCases()) { Integer num = map.get(usecase.getId()); ...
[ "private List<Error> verifyDuplicatedUseCaseIds(PhoneDocument phoneDocument)\r\n {\r\n List<Error> result = new ArrayList<Error>();\r\n\r\n for (Feature feature : phoneDocument.getFeatures())\r\n {\r\n\r\n Set<UseCase> duplicatedIdUCs = this.getUseCaseWithDuplicatedIds(feature);\r...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test of getCarForce method, of class Step.
@Test public void testGetCarForce() { System.out.println("getCarForce"); Measure expResult = new Measure(22.2, "km"); this.step.setCarForce(expResult); assertEquals(expResult, this.step.getCarForce()); }
[ "@Test\n\tpublic void testSetCarForce() {\n\t\tSystem.out.println(\"setCarForce\");\n\t\tMeasure expResult = new Measure(22.2, \"km\");\n\t\tthis.step.setCarForce(expResult);\n\t\tassertEquals(expResult, this.step.getCarForce());\n\t}", "@Test\n public void testCalcForce() {\n this.console.println(\"cal...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the value of the FinanceManager field.
void setFinanceManager(ABPerson value);
[ "void setFinanceMgrRelationship(ManagerRelationshipType value);", "public void setManager ( Object manager ) {\r\n\t\tgetStateHelper().put(PropertyKeys.manager, manager);\r\n\t\thandleAttribute(\"manager\", manager);\r\n\t}", "public void setManager(Manager manager);", "public void setManager(Manager aManag...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Tests selectCheckbox() with a matching example (input nested inside the label, checkbox not already selected).
@Test public void selectCheckboxNestedMatching() { browseTo("/selectCheckbox-2.html", "selectCheckbox - 2"); driverWrapper.selectCheckbox("Test Checkbox Button"); assertTrue("Checkbox button should have been selected", driverWrapper.isElementChecked("my_input")); }
[ "@Test\n public void selectCheckboxMatchingSelected() {\n browseTo(\"/selectCheckbox-3.html\", \"selectCheckbox - 3\");\n driverWrapper.selectCheckbox(\"Test Checkbox Button\");\n assertTrue(\"Checkbox button should have been selected\",\n driverWrapper.isElementChecked(\"my_i...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
initialize all data output streams (folder /data/XXXXXXXX_XXXXXX.txt
public static void initAllData() { date = new Date(); dataDirSim = dataDir + "/" + dateFormat.format(date); File directory = new File(dataDir); File directorySim = new File(dataDirSim); if (! directory.exists()){ directory.mkdir(); } if (! directorySim.exists()){ directorySim.mkdir(); } ...
[ "protected void initDataStreams() {\n\t\tthis.dataStreams = new HashMap();\n\t\tString dsPath = \"/ndr:NSDLDataRepository/ndr:NDRObject/ndr:data/ndr:format\";\n\t\tList dsNodes = this.getNodes(dsPath);\n\t\t// prtln(dsNodes.size() + \" dsNodes found\");\n\t\tfor (Iterator i = dsNodes.iterator(); i.hasNext();) {\n\t...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
The name of the rule
@ApiModelProperty(example = "toto", required = true, value = "The name of the rule") public String getRuleName() { return ruleName; }
[ "@Override\n\tpublic java.lang.String getName() {\n\t\treturn _rule.getName();\n\t}", "public String getRuleName() {\n return ruleName;\n }", "java.lang.String getRule();", "public static String ruleValidName() {\r\n if (ruleValidName == null) {\r\n ruleValidName = RuleUtils.attributeRuleSte...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets up the pause/play button using an anonymous action listener that changes the internal field isPlaying and the image.
public PausePlayButton(boolean startState) { playImage=new ImageIcon("PlayButton.jpg"); pauseImage=new ImageIcon("PauseButton.jpg"); this.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent arg0) { isPlaying=!isPlaying; if(!isPlaying) { setIcon(playImage); ...
[ "void setPlayButton() {\n\t\t// Create a play button.\n playButton = new Button();\n playButton.setGraphic(new ImageView(playImage));\n playButton.setOnAction(new EventHandler<ActionEvent>() {\n\n\t // ActionHandler for play button.\n\t public void handle(ActionEvent e) {\n\t ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Constructing an ItemList from a given parcel.
protected ItemList(Parcel in) { this.itemArrayList = in.readArrayList(ItemList.class.getClassLoader()); this.listUuid = UUID.fromString(in.readString()); this.creatorUuid = UUID.fromString(in.readString()); this.name = in.readString(); }
[ "public CoronaData.List createFromParcel(android.os.Parcel parcel) {\n\t\t\t\tCoronaData.List list = new CoronaData.List();\n\t\t\t\tClassLoader classLoader = getClass().getClassLoader();\n\t\t\t\tint count = parcel.readInt();\n\t\t\t\tfor (int index = 0; index < count; index++) {\n\t\t\t\t\tlist.add((CoronaData)pa...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
set the ycoordinate of the BoundingBox
void setBoundingBoxY(float y);
[ "@Override\n public void setY(float y) {\n super.setY(y);\n collisionBox.set(getX(), y);\n }", "public void setCollisionBoxY(int y){\n\t\tthis.setY(y-collisionBox.getYoff());\n\t}", "public void setYCoord(int y) { yCoord = y; }", "public void setY(double y){\n this.yCoord = y;\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Lists stories by creator ids
public List<Story> listStoriesByCreatorIds(List<UUID> creatorIds) { EntityManager entityManager = getEntityManager(); CriteriaBuilder criteriaBuilder = entityManager.getCriteriaBuilder(); CriteriaQuery<Story> criteria = criteriaBuilder.createQuery(Story.class); Root<Story> root = criteria.from(Story.cla...
[ "public List<Feed> list(Collection<User> authors, Page page);", "public List getCreatorComments(Agent creator, String toolId, CommentSortBy sortBy);", "List<BlogUser> getAuthors() throws DAOException;", "public List getOwnerComments(Agent owner, CommentSortBy sortBy);", "public List getOwnerComments(Agent o...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
setCoordinateValueDegrees allows the user to set the value of the passed in Coordinate to the specified newValue This call, also updates the Graphics window if needed.
static public void setCoordinateValueDegrees(final Coordinate coordinate, final double newValue){ double valueInDegrees = newValue*Math.PI/180.; setCoordinateValue(coordinate, valueInDegrees); }
[ "static public void setCoordinateValue(final Coordinate coordinate, final double newValue){\n OpenSimContext context=OpenSimDB.getInstance().getContext(coordinate.getModel());\n coordinate.setValue(context.getCurrentStateRef(), newValue);\n SwingUtilities.invokeLater(new Runnable(){\n\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the value of the 'Survey Multi Resp Col Id' attribute. If the meaning of the 'Survey Multi Resp Col Id' attribute isn't clear, there really should be more of a description here...
String getSurveyMultiRespColId();
[ "String getSurveyMultiRespId();", "public Integer getSurveyid() {\n return surveyid;\n }", "public long getSurveyId() {\n return surveyId;\n }", "String getSurveyOptionSeqId();", "java.lang.String getValueId();", "java.lang.String getColId();", "public String getCellIdProperty() {\r...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Disables Venmo in Dropin.
public DropInRequest disableVenmo() { mVenmoEnabled = false; return this; }
[ "public void deactivateVuforia() {\n targetsSkyStone.deactivate();\n }", "void disableMotor();", "public void disable();", "public void desactivatePlayer() {\n\t\tthis.setEnabled(false);\n\t}", "void disableMod();", "public void disable() {\n\t\tdriveMotor.disableControl();\n\t}", "public void...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__ExternalLoad__Group__10" $ANTLR start "rule__ExternalLoad__Group__10__Impl" ../uk.ac.kcl.inf.robotics.rigid_bodies.ui/srcgen/uk/ac/kcl/inf/robotics/ui/contentassist/antlr/internal/InternalRigidBodies.g:7849:1: rule__ExternalLoad__Group__10__Impl : ( 'transformation' ) ;
public final void rule__ExternalLoad__Group__10__Impl() throws RecognitionException { int stackSize = keepStackSize(); try { // ../uk.ac.kcl.inf.robotics.rigid_bodies.ui/src-gen/uk/ac/kcl/inf/robotics/ui/contentassist/antlr/internal/InternalRigidBodies.g:7853:1: ( ( 'transfor...
[ "public final void rule__ExternalLoad__Group__12() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../uk.ac.kcl.inf.robotics.rigid_bodies.ui/src-gen/uk/ac/kcl/inf/robotics/ui/contentassist/antlr/internal/InternalRigidBodies.g:7901:1: ( rule_...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the partnerFlag value for this Account.
public java.lang.String getPartnerFlag() { return partnerFlag; }
[ "public void setPartnerFlag(java.lang.String partnerFlag) {\n this.partnerFlag = partnerFlag;\n }", "public String getPartnerId()\n {\n return partnerId;\n }", "public int getPartnerId() {\n return partnerId;\n }", "public String getPartnerid() {\n return partnerid;\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the literal registry attached to this skript loader
@NotNull @Contract(pure = true) public LiteralRegistry getLiteralRegistry() { return literalRegistry; }
[ "public LiteralRegistry() {\n addEntry(new Entry(SkriptPattern.parse(\"biome[s]\"), BiomeRegistry.Entry.class));\n addEntry(new Entry(SkriptPattern.parse(\"boolean[s]\"), boolean.class));\n addEntry(new Entry(SkriptPattern.parse(\"cat[ ](type|race)[s]\"), CatType.class));\n addEntry(new ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
3. query segment tree / For an integer array (index from 0 to n1, where n is the size of this array), in the corresponding SegmentTree, each node stores an extra attribute max to denote the maximum number in the interval of the array (index from start to end). Design a query method with three parameters root, start and...
public int query(SegmentTreeNode root, int start, int end) { if (root.start == start && root.end == end) { return root.max; } int mid = (root.start + root.end) / 2; int left = Integer.MIN_VALUE; int right = Integer.MIN_VALUE; // on left if (end <= mid) { return query(root.left, start, end); } // on right...
[ "private static SubArrayDetails findMidMaxSubarray(int low, int mid, int high, int[] arr) {\n int leftMax = arr[mid];\n int leftIndex = mid;\n int leftSum = arr[mid];\n\n int rightMax = arr[mid + 1];\n int rightIndex = mid + 1;\n int rightSum = arr[mid + 1];\n\n for (int i = mid - 1; i >= low; ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method has been deprecated, please use method buildBounds instead.
@Deprecated public List<ClassRef> getBounds();
[ "public abstract Bounds getBounds();", "@Override\n // larger bounds than appearance to insure agent won't touch it\n public Rectangle getBounds() {\n return new Rectangle((int)x-45, (int)y-45, 100, 100);\n// return new Rectangle((int)x, (int)y, 16, 16);\n// return new Rectangle((int)x-8, (int)y-8, 32,...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
removes old model and adds new model, but also transfers over some display properties currently used by scale tool, which can't rescale in place so it creates a new model to replace the old one Swap context objects as well
public void replaceModel(Model oldModel, Model newModel, OpenSimContext newContext) { OpenSimContext swap=null; if(oldModel!=null) { removeModel(oldModel); } if(newModel!=null) { try { addModel(newModel, newContext); } catch (IOException ex) { ...
[ "private void resetModel(Entity entity) {\n\n float[] scale = new float[] {1, 1, 1};\n\n double[] pos = new double[3];\n ((PositionableEntity)entity).getStartingPosition(pos);\n\n // send a scale command\n ScaleEntityTransientCommand scaleCmd =\n new ScaleEntityTransien...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
GIVEN a Pay ID with a host and a path.
@Test public void testParseValidPayID() { String host = "xpring.money"; String path = "georgewashington"; String rawPayID = path + "$" + host; // WHEN it is parsed to components. PayIDComponents payIDComponents = PayIDUtils.parsePayID(rawPayID); // THEN the host and path are set correctly. ...
[ "@Test\n public void testParsePayIDEmptyPath() {\n String host = \"xpring.money\"; // Extra '$'\n String path = \"\";\n String rawPayID = path + \"$\" + host;\n\n // WHEN it is parsed to components.\n PayIDComponents payIDComponents = PayIDUtils.parsePayID(rawPayID);\n\n // THEN the Pay ID failed...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Called when the Player is added to the world
protected void addedToWorld(World w) { startingY = getY() + 5; // Starting position of the player + 5 hitbox = new PlayerHitbox(this, 55, 95, -7, -3, false); // Set to false for invisible hitbox getWorld().addObject(hitbox, getX(), getY()); // Adds the hitbox to the world }
[ "void playerAdded();", "void addObjectToPlayer(Player player);", "public void spawnPlayer() {\r\n\t\tmap.updateCoords(me.getHeight(), me.getLength(), \"@\");\r\n\t}", "private void onGameStart() {\n\t\t/*List<PlayerDataClass> players = plugin.getUserList();\n\t\tfor (int i = 0; i < players.size(); i++) {\n\t\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Takes a command as individual arguments to convert a standard command to binary Standard includes the basic logic arithmetic
private static boolean[] stdCommandToBin(String instr, long dest, long source1, long source2) { final int DEST_BR = 5; final int S1_BR = 10; final int SHFT_BR = 16; final int S2_BR = 21; boolean[] machLang = new boolean[COMMAND_LENGTH]; boolean[] opCode; if (in...
[ "private static CommandAPDU genCommand(String commandString) {\n String[] byteStrings = commandString.split(\" \");\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\n for (String byteString : byteStrings) {\n baos.write(Integer.parseInt(byteString, 16));\n }\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method sets the value of the database column Obsr_NewBorn_BirthProcessSummary.NurseOne_Name
public void setNurseoneName(String nurseoneName) { this.nurseoneName = nurseoneName == null ? null : nurseoneName.trim(); }
[ "public String getNurseoneName() {\n return nurseoneName;\n }", "public void setN1(Nurse n1) {\n\t\tthis.n1 = n1;\n\t}", "public void setNurseoneCode(String nurseoneCode) {\n this.nurseoneCode = nurseoneCode == null ? null : nurseoneCode.trim();\n }", "public void setPassengerFirstName(jav...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
get all of account, add them into ArrayList
public ArrayList selectAll() { ArrayList accountList = new ArrayList<>(); String command = "SELECT id, userId, username, password, fullName, nickName, birthDay, gender, email, address, phoneNumber, avatarUrl From user, account WHERE account.userId=user.userId"; conn = new MyConnection().Conne...
[ "public static ArrayList<Account> getAccounts() {\n ArrayList<Account> accounts = new ArrayList<>();\n\n try (Statement statement = connection.createStatement()) {\n ResultSet resultSet = statement.executeQuery(\"SELECT * FROM LOGIN_ACCOUNTS\");\n while (resultSet.next()) { // as...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates new form SQLSyntax
public SQLSyntax() { initComponents(); }
[ "org.lindbergframework.schema.TSqlCommand addNewSqlCommand();", "Statement createStatement();", "ExpressionStatement createExpressionStatement();", "@Override\r\n\tpublic String generate() {\r\n\t\tStringBuilder query = new StringBuilder();\r\n\r\n\t\tquery.append(\"INSERT INTO \").append(tableName).append(\"...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Post visit repeated page index.
void postVisitRepeatedPageIndex( RepeatedPage repeated, int index);
[ "void postVisitRepeatedPage(\n RepeatedPage repeated);", "void preVisitRepeatedPageIndex(\n RepeatedPage repeated,\n int index);", "void postVisitRepeatedGroupIndex(\n RepeatedGroup repeated,\n int index);", "int preVisitRepeatedPage(\n RepeatedPage repeated);", "vo...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the initial architecture.
private static PCMArchitectureInstance initializeInitialArchitecture() { ArchitecturalVersion initialArchitecture = new ArchitecturalVersion(TestConstants.MODEL_NAME, TestConstants.MODEL_PATH, ""); initialArchitecture.setFullPathToAlternativeRepository(TestConstants.ALTERNATIVE_REPOSITORY_PATH); return PCMHel...
[ "private PCMArchitectureInstance initializeInitialArchitecture() {\r\n\t\tArchitecturalVersion initialArchitecture = new ArchitecturalVersion(MODEL_NAME, MODEL_PATH, \"\");\r\n\t\tinitialArchitecture.setFullPathToAlternativeRepository(ALTERNATIVE_REPOSITORY_PATH);\r\n\t\treturn PCMHelper.createArchitecture(initialA...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
add the "Done" button to the nav bar
@Override public void invoke(boolean v) { getNavigationItem().setRightBarButtonItem(doneButton); }
[ "@OnClick(R.id.done_button) public void onDoneButtonClicked() {\n BCUtils.goToMain(this);\n }", "private void setActionBarDone() {\n // Inflate a \"Done/Cancel\" custom action bar view.\n final LayoutInflater inflater = (LayoutInflater) ((CreatePartyActivity)getActivity()).\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Save the events of a page in the trace DB.
private void saveEvents(List<Event> events, MocaTraceType aTraceType) throws SoCTraceException { for (Event e : events) { try { e.check(); } catch (SoCTraceException ex) { logger.debug(ex.getMessage()); throw new SoCTraceException(ex); } traceDB.get(aTraceType).save(e); for (EventParam ...
[ "public void save() throws DBAppException, IOException{\n\t\tint numberOfPages = pages_loaded.size();\n\t\tfor (int i = 1; i <= numberOfPages; i++) {\n\t\t\tsavePage(i);\n\t\t}\n\t}", "public void savePage(int page_number) throws DBAppException, IOException{\n\t\tint page_index = getPageIndexInArrayList(page_numb...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates a solitaire board with the configuration specified in piles. PRE: piles contains a sequence of positive numbers that sum to SolitaireBoard.CARD_TOTAL
public SolitaireBoard(ArrayList<Integer> piles) { cardPiles = new int[CARD_TOTAL + 1]; for(int i = 0; i < piles.size(); i++){ cardPiles[i] = piles.get(i); } numOfPiles = piles.size(); assert isValidSolitaireBoard(); }
[ "public SolitaireBoard(ArrayList<Integer> piles) {\n \n // copy all values from the ArrayList to a partially filled array\n for (int i = 0; i < piles.size(); i++){\n this.piles[i] = piles.get(i);\n }\n // save the number of elements filled\n numPiles = piles.size...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns an ordered range of all the clients where name = &63;. Useful when paginating results. Returns a maximum of end start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtilALL_POS will return the f...
public java.util.List<Client> findByName( String name, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Client> orderByComparator, boolean useFinderCache);
[ "public java.util.List<Client> findByName(\n\t\tString name, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<Client>\n\t\t\torderByComparator);", "public java.util.List<Client> findAll(\n\t\tint start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<Client>\n\t\t\torderByC...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }