query stringlengths 8 1.54M | document stringlengths 9 312k | negatives listlengths 19 20 | metadata dict |
|---|---|---|---|
randomization utilities Gets a random int between zero and the param upper (exclusive). | public int getRandomInt(int upper) {
int retVal = myRandom.nextInt() % upper;
if (retVal < 0) {
retVal += upper;
}
return (retVal);
} | [
"private int randomInt(int lower, int upper) {\n\t\treturn (int) ((upper - lower + 1) * Math.random()) + lower;\n\t}",
"private static int randInt(int lower, int upper) {\n\t\tRandom random = new Random();\n\t\treturn random.nextInt((upper - lower) + 1) + lower;\n\t}",
"private int randomGen(int upperBound) {\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the last e s f result in the ordered set where esfMatchId = &63; and esfMatchTypeId = &63; and shooterQualification = &63;. | public static it.ethica.esf.model.ESFResult findByESFMId_STId_SQId_Last(
long esfMatchId, long esfMatchTypeId, long shooterQualification,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.kernel.exception.SystemException,
it.ethica.esf.NoSuchResultException {
retur... | [
"public static it.ethica.esf.model.ESFResult fetchByESFMId_STId_SQId_Last(\n\t\tlong esfMatchId, long esfMatchTypeId, long shooterQualification,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException {\n\t\treturn getPersistence()\n\t... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Trades in wrappers for complimentary chocolates. | static boolean tradeWrappersForChocolate(Shopper shopper) {
int wrappersNeeded = shopper.getOrder().getWrappersNeeded();
Map<ChocolateFlavorType, Integer> chocololateWrappersCountByType =
Shopper.getCountByFlavor(
shopper.getWrappers());
ChocolateFlavorTy... | [
"public void chooseComp(MTComponent c){\n\t\tfor(MTComponent i: components){\n\t\t\tif(i != c)\n\t\t\t\ti.setChoosed(false);\n\t\t\telse i.setChoosed(true);\n\t\t}\n\t}",
"public void choisirCarte(){\n\t\t\n\t}",
"private HBox setUpCurrencyChoices(){\n futureValueChoice = new RadioButton(\"Future Value\"... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Callback for Fragment: New Challenge. Database holding all expenses is updated from here.... | @Override
public void challengeGetDataFromFragment(String name, String newGoal, String buttonPressed) {
if (buttonPressed.equals("OK") && !name.isEmpty() && !newGoal.isEmpty()) {
// Old challenge is done....
DBMarkChallenge.asDone(key1OfActiveChallenge, moneyLeft);
// ... | [
"public void expensesRefresh() {\n expensesListData.clear();\n DBList.expenses(key1OfActiveChallenge, expensesListAdapter, expensesListData);\n }",
"@Override\n public void expensesGetDataFromFragment(String dialogText, String spendFor, String buttonPressed) {\n\n if (buttonPressed.equa... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Moving north without a north door should not change the current room. Make a CoffeeMakerQuest and move north until getting to a room with no north door. Get the current room. Then move north. The current room should not have changed. | @Test
public void testCMQMoveNorthWithoutNorthDoor()
{
CoffeeMakerQuest CMQ = new CoffeeMakerQuest();
while (CMQ.getCurrentRoom().hasNorthDoor())
CMQ.moveNorth();
Room first = CMQ.getCurrentRoom();
CMQ.moveNorth();
assertEquals(CMQ.getCurrentRoom(), first);
} | [
"@Test\n\tpublic void testCMQMoveNorthWithNorthDoor()\n\t{\n\t\tCoffeeMakerQuest CMQ = new CoffeeMakerQuest();\n\t\tRoom first = CMQ.getCurrentRoom();\n\t\tCMQ.moveNorth();\n\t\tassertEquals(CMQ.getCurrentRoom(), first.getNorthRoom());\n\t}",
"@Test\n\tpublic void testCMQMoveSouthWithoutSouthDoor()\n\t{\n\t\tCoff... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This constructs the Go space on the GameBoard. | public GoSpace( GameBoard g, int x, int y, int o )
{
super( g, 0, x, y, o );
name = "Go";
buyable = false;
canHaveBuildings = false;
b = g.getBank();
goodLocs[0][0] = myX;
goodLocs[0][1] = myY;
goodLocs[1][0] = myX + 24;
goodLocs[1][1... | [
"public GameBoard(){\r\n\t\tthis.Spaces = new Coordinate[GRID_HEIGHT][GRID_WIDTH];\r\n\t\tint i = 0; \r\n\t\tint j = 0;\r\n\t\tfor (j = 0; j < GRID_HEIGHT; j++){\r\n\t\t\tfor (i = 0; i < GRID_WIDTH; i++){\r\n\t\t\t\tSpaces[j][i] = new Coordinate();\r\n\t\t\t\tSpaces[j][i].getCoord().setNum(i);\r\n\t\t\t\tSpaces[j][... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the billToAdditionalAddressInformation value for this Account. | public void setBillToAdditionalAddressInformation(java.lang.Object billToAdditionalAddressInformation) {
this.billToAdditionalAddressInformation = billToAdditionalAddressInformation;
} | [
"public void setAdditionalAddressInformation(java.lang.Object additionalAddressInformation) {\n this.additionalAddressInformation = additionalAddressInformation;\n }",
"public java.lang.Object getBillToAdditionalAddressInformation() {\n return billToAdditionalAddressInformation;\n }",
"publi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Generates balanced weight values for each node, where each node has 1 weight. | public static List<Long> balancedNodeWeights(final int numberOfNodes) {
return balancedNodeWeights(numberOfNodes, numberOfNodes);
} | [
"public void generateWeight(double ratio)\n\t{\n\t\tfor(LJEdge e : graph.edgeSet())\n\t\t{\n\t\t\tdouble ram = Math.random()-0.5;\n\t\t\tif(ram > 0)\n\t\t\t{\n\t\t\t\tgraph.setEdgeWeight(e,1);\n\t\t\t\toriginalGraph.setEdgeWeight(originalGraph.getEdge(graph.getEdgeSource(e), graph.getEdgeTarget(e)),1);\n\t\t\t}\n\t... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test the property 'callId' | @Test
public void callIdTest() {
model.setCallId("TEST_STRING");
Assert.assertEquals("TEST_STRING", model.getCallId());
} | [
"public void setCallId(java.lang.Integer value) {\n this.callId = value;\n }",
"public void setCallId(String callId) throws ParseException,NullPointerException;",
"@Test\n public void whisperCallControlIdsTest() {\n // TODO: test whisperCallControlIds\n }",
"public java.lang.Integer getCallId... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__JvmUpperBoundAnded__Group__0" $ANTLR start "rule__JvmUpperBoundAnded__Group__0__Impl" ../org.xtext.lwc.instances.ui/srcgen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:11819:1: rule__JvmUpperBoundAnded__Group__0__Impl : ( '&' ) ; | public final void rule__JvmUpperBoundAnded__Group__0__Impl() throws RecognitionException {
int stackSize = keepStackSize();
try {
// ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:11823:1: ( ( '&' ) )
... | [
"public final void rule__JvmUpperBoundAnded__Group__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:14595:... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
input: the array of String words, the length of line output: the list of justificated lines edge cases: the words is null, the words is empty, words has single element, words contains null elements, L matches the word lengths test cases: L is negative, L is zero, L is lower the minimum word length assumptions: use extr... | public List<String> fullJustify(String[] words, int L) {
if (words == null || words.length == 0) {
return Collections.emptyList();
}
final List<String> result = new ArrayList<>();
int word = 0;
while (word < words.length) {
int j = word + 1;
... | [
"public static List<String> fullJustify(String[] words, int L) {\n\t\tList<String> result = new LinkedList<String>();\n\t\tint i = 0;\n\t\tStringBuffer sb;\n\t\twhile (i < words.length) {\n\t\t\tsb = new StringBuffer();\n\t\t\tint j = i;\n\t\t\twhile (j < words.length && length(words, i, j) < L) {\n\t\t\t\tj++;\n\t... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
write method to update student record(score) by sid | public static int update(int sid , int score)
{
//code to be added
int temp=0;
Connection con= MyConnection.connect();
try
{
Statement myStmt=con.createStatement();
String qry="update members set score="+score+" where sid="+sid;
temp=myStmt.e... | [
"boolean updateStudent(Student student);",
"void writeScore(String name, int userScore) throws SQLException;",
"public boolean UpdateScore(Integer studentID, Integer vraagID,\r\n Integer score) {\r\n try {\r\n this.statement = connection.createStatement();\r\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
void UserConfig_set_peer_channel_config_limits(struct LDKUserConfig NONNULL_PTR this_ptr, struct LDKChannelHandshakeLimits val); | public static native void UserConfig_set_peer_channel_config_limits(long this_ptr, long val); | [
"public static native long UserConfig_get_peer_channel_config_limits(long this_ptr);",
"public static native void UserConfig_set_channel_options(long this_ptr, long val);",
"public static native long UserConfig_new(long own_channel_config_arg, long peer_channel_config_limits_arg, long channel_options_arg, boole... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns true if the semantic action provided can be supported. | public static boolean isSupportedSemanticAction(int semanticAction) {
return SUPPORTED_SEMANTIC_ACTIONS.contains(semanticAction);
} | [
"private boolean actionSupported(@NonNull OmniboxAction action) {\n switch (action.actionId) {\n case OmniboxActionId.PEDAL:\n case OmniboxActionId.HISTORY_CLUSTERS:\n return true;\n\n case OmniboxActionId.ACTION_IN_SUGGEST:\n return OmniboxActio... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Checks to see if a particular file exists. If the file does not exist, yet a backup file exists, the backup file will be moved to the original file location. If this method returns true, there will be a file located at file. | public static boolean ensureExistsFromBackup(final File file, final File backupFile) throws IOException {
if(file.exists()) { //if the file exists
return true; //there's nothing more to do; return true
} else { //if the file doesn't exist
if(backupFile.exists()) { //if the backup file exists
move(backupFi... | [
"public static boolean ensureExistsFromBackup(final File file) throws IOException {\n\t\treturn ensureExistsFromBackup(file, getBackupFile(file)); //check to see if the file exists, using the default filename for the backup file\n\t}",
"public boolean existFile() {\n return this.file.exists();\n }",
"... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method sets the value of the database column CTSTRS_HISTORY.INSTRUCTIONS2 | public void setINSTRUCTIONS2(String INSTRUCTIONS2) {
this.INSTRUCTIONS2 = INSTRUCTIONS2 == null ? null : INSTRUCTIONS2.trim();
} | [
"public String getINSTRUCTIONS2() {\r\n return INSTRUCTIONS2;\r\n }",
"public void setINSTRUCTIONS1(String INSTRUCTIONS1) {\r\n this.INSTRUCTIONS1 = INSTRUCTIONS1 == null ? null : INSTRUCTIONS1.trim();\r\n }",
"public void setColumn2(String column2) {\n this.column2 = column2 == null ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
bidirectional manytoone association to Subject | @ManyToOne
@JoinColumn(name="subjectId", nullable=false)
public Subject getSubject() {
return this.subject;
} | [
"public void addSubject(Subject s) {\n // TODO implement here\n }",
"Subject save(Subject subject);",
"@ApiModelProperty(example = \"null\", value = \"Subject of association (what it is about), e.g. ClinVar:nnn, MGI:1201606\")\n public BioObject getSubject() {\n return subject;\n }",
"public vo... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Return the name of the default listener method to delegate to. | protected String getDefaultListenerMethod() {
return this.defaultListenerMethod;
} | [
"protected String getDefaultListener()\n {\n return DEFAULT_LISTENER;\n }",
"protected String getListenerMethodName(Message originalMessage, Object extractedMessage) {\n\t\treturn getDefaultListenerMethod();\n\t}",
"ListenerMethod getListenerMethod();",
"ListenerName listenerName();",
"@Suppres... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
A breakpoint specific to the Java debug model. A Java breakpoint supports: a hit count a suspend policy that determines if the entire VM or a single thread is suspended when hit a thread filter to restrict a breakpoint to a specific thread within a VM an installed property that indicates a breakpoint was successfully i... | public interface IJavaBreakpoint extends IBreakpoint, ITriggerPoint {
/**
* Suspend policy constant indicating a breakpoint will suspend the target
* VM when hit.
*/
public static final int SUSPEND_VM = 1;
/**
* Default suspend policy constant indicating a breakpoint will suspend only
* the thre... | [
"public void testListenersOnConditionalBreakpoint() throws Exception {\n String typeName = \"HitCountLooper\";\n Collector collector = new Collector();\n JDIDebugModel.addJavaBreakpointListener(collector);\n IJavaLineBreakpoint bp = createConditionalLineBreakpoint(16, typeName, \"return ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the circle which visualizes the grid item. | public void setCircle(Circle circle) {
this.circle = circle;
} | [
"public void setCircle(int circle) {\n this.circle = circle;\n }",
"public void setCircle(Circle circle) {\n this.circle = circle;\n }",
"void setAsCircle(float radius) {\n\t\tmShape.m_type = ShapeType.CIRCLE;\n\t\tmType = Box2DShapeType.CIRCLE;\n\t\tmShape.m_radius = radius;\n\t\t\n\t}",
... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Return whether the given node is visible in the page based on the mode in the configuration. | protected boolean isVisible(IDiffNode node) {
ISynchronizePageConfiguration configuration = getConfiguration();
if (configuration.getComparisonType() == ISynchronizePageConfiguration.THREE_WAY
&& node instanceof IThreeWayDiff) {
IThreeWayDiff twd = (IThreeWayDiff) node;
int mode = configuration.getM... | [
"public boolean isNodeVisible(Object node);",
"@VTID(38)\r\n boolean getVisible();",
"boolean isVisible(ElementPath path);",
"public abstract boolean isVisibile();",
"private boolean visible() {\r\n return NOT(GO() && CATS(Cc,Cn,Co,Cs,Zl,Zp)) && POINT();\r\n }",
"private boolean visibles() {\r\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
end public void set_layout(floorplan f) | public floorplan get_layout() {
return layout;
} | [
"public void setLayout(int l) {\r\n\t\tlayout = l;\r\n\t}",
"public abstract int setLayout();",
"protected abstract void iniciarLayout();",
"Board createLayout();",
"void updateLayout();",
"public void applyLayout ( LayoutAlgorithm layout );",
"private void draw_and_set_initial_layout(Canvas canvas){\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Enter Mailing Address for Canada | public void EnterMailingAddress_Canada(String addressline1,String addressline2,String city,String State,
String zip, String country,String phonenumber)
{
MailingAddressLine1.clear();
MailingAddressLine1.sendKeys(addressline1);
MailingAddressLine2.clear();
MailingAddressLine2.sendKeys(addressline... | [
"public void enterEmail() {\n\t\tpageUtils.sendKeysAfterClearingElement(driver, txtEmail, \"naga.ch199@gmail.com\");\n\t}",
"private static void promptAddress() {\n\t\tSystem.out.print(\"Please enter an address: \");\n\t}",
"public void enterEmailAddress(String email) {\r\n\t\t\r\n\t\temailAddress.sendKeys(emai... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the value of nb. | public void setNb(long nb) {
this.nb = nb;
} | [
"public long getNb() {\n return nb;\n }",
"public void setNbPages(int nbPages) {\n\t\tthis.nbPages = nbPages;\n\t}",
"public void setN(int value) {\n this.n = value;\n }",
"public void setNit(int value) {\n this.nit = value;\n }",
"public void setNbIterations(int nbIterations) {\n\t\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Essentially connects the given test field to the O!FMS background code to act as the 'field ready' indicator. It does so to enable a developer to be able to use multiple UIs and just reset the indicator depending on which UI they wish to use. | public void setFullFieldReady(JTextField fieldReady) {
fullFieldReady = fieldReady;
} | [
"public void checkIfFieldReady() {\n boolean redReady = isRedReady();\n boolean blueReady = isBlueReady();\n if (redReady && blueReady) {\n fullFieldReady.setBackground(READY);\n GovernThread game = GovernThread.getInstance();\n if (game != null) {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Identity of the consumer for whom this quota operation is being performed. This can be in one of the following formats: project:<project_id>, project_number:<project_number>, api_key:<api_key>. string consumer_id = 3; | com.google.protobuf.ByteString getConsumerIdBytes(); | [
"java.lang.String getConsumerId();",
"protected String getConsumerId() {\n return (String) RequestContext.getCurrentContext().get(AcheronRequestContextKeys.CONSUMER_ID);\n }",
"public String getConsumerId() {\n return consumerId;\n }",
"@ApiModelProperty(value = \"ID of the consumer\")\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Register the component for the player using the strategy INVENTORY | @Override
public void registerEntityComponentFactories(EntityComponentFactoryRegistry entityComponentFactoryRegistry) {
entityComponentFactoryRegistry.registerForPlayers(SLEEP_TRIES, playerEntity -> {
// Create an IntComponent with a default value. This will be saved on the player Nbt
... | [
"public abstract void accept(Player player, String component);",
"public static final void register(EntityPlayer player)\n{\nplayer.registerExtendedProperties(CharacterInfo.CHAR_PROPS, new CharacterInfo(player));\n}",
"int registerPlayer(String name, ITankGameGUI application, boolean singlePlayerMode) throws Ex... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Show the number of total cards and locked cards | private void showCardStats() {
TextView unlockedNum = findViewById(R.id.UnlockedNum);
unlockedNum.setText(
" " + this.masterDeck.retrieveUnlockedCardNames().size() +
" / " + this.masterDeck.deckSize()
);
} | [
"public int getTotalCards() {\n\t\treturn cards.size();\n\t}",
"int getLeftCardCount();",
"public int cardCount(){\n return this.setOfCards.numCards();\n }",
"public int getCardsUsed() {\n return cardsUsed;\n }",
"public int getCardCount() {\n return cardSet.totalCount();\n }",
"pu... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
required string query_logic_name = 1; | public com.google.protobuf.ByteString getQueryLogicNameBytes() {
java.lang.Object ref = queryLogicName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
queryLogic... | [
"java.lang.String getQueryLogicName();",
"boolean hasQueryLogicName();",
"public java.lang.String getQueryLogicName() {\n java.lang.Object ref = queryLogicName_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
optional .Docid fetchDocid = 2; | boolean hasFetchDocid(); | [
"public String getDocumentNo();",
"public int getLBR_DocLine_Details_ID();",
"public int getLBR_NotaFiscalDocRef_ID();",
"public Document getDocumentByID_Or_UNID(String id);",
"String getSickDetail(Integer docloginid, Integer usersickid) throws Exception;",
"public void setDocumentNo (String DocumentNo);"... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
method to identify the attributes when the words which are identifies as nouns are in adjective phrases | public ArrayList getAdjectiveAttribute() {
adjAttributeList = new ArrayList();
//adjAttributeList = new ArrayList();
int adjectiveExist = 0;
int adjectiveNoun = 0;
int nnCount = 0;
String adj = "";
List<Tree> leaves;
String phraseNotation = "NP[<NNS|NN]!$... | [
"public ArrayList getAttributeList() {\n nounList = new ArrayList();\n attributeLists = new ArrayList();\n ArrayList adjAtt = new ArrayList();\n int separator = 0;\n List<Tree> leaves;\n String phraseNotation = \"NP([<NNS|NN|NNP]![<JJ|VBG])!$VP\";// !<VBG\";//@\" + phrase +... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Processes the response for retrieveDispute | private RetrieveDisputeResponse handleRetrieveDisputeResponse(HttpContext context)
throws ApiException, IOException {
HttpResponse response = context.getResponse();
//invoke the callback after response if its not null
if (getHttpCallback() != null) {
getHttpCallbac... | [
"private ListDisputesResponse handleListDisputesResponse(HttpContext context)\r\n throws ApiException, IOException {\r\n HttpResponse response = context.getResponse();\r\n\r\n //invoke the callback after response if its not null\r\n if (getHttpCallback() != null) {\r\n get... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
values will take in a roman letter and return the value of it | private static int values(char romanNumeral)
{
//check each letter and match it with a value
if(romanNumeral == 'I') return 1;
if(romanNumeral == 'V') return 5;
if(romanNumeral == 'X') return 10;
if(romanNumeral == 'L') return 50;
if(romanNumeral == 'C') return 100;
... | [
"@Test\n\tpublic void testReturnGoodRomanValue() {\n\t\tint nombre = 10;\n\t\tString result = ChiffresRomains.conversionEntierRomain(nombre);\n\t\tAssert.assertEquals(result.length(), 1);\n\t\tAssert.assertEquals(result, \"X\");\n\t}",
"private static int convertToInt(String romanNumeral)\n {\n //total v... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the BKA001 value for this KA04View. | public void setBKA001(String BKA001) {
this.BKA001 = BKA001;
} | [
"public void setBAA001(String BAA001) {\n this.BAA001 = BAA001;\n }",
"public String getBKA001() {\n return BKA001;\n }",
"public String getBAA001() {\n return BAA001;\n }",
"public void setBKA247(String BKA247) {\n this.BKA247 = BKA247;\n }",
"public void setAKA101(S... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates new form ETHStatusPanel. | public SyncStatusPanel()
{
initComponents();
} | [
"public RSPStatusPanel() \n {\n initComponents();\n }",
"public CompareFrameNew() {\n initComponents();\n setStatus(\"Status\", false);\n }",
"public InProgressPanel() {\n\t\t\t\n\t\t\tpnlInfo = new IncidentPanel();\t\n\t\t\t\n\t\t\tlblMessage = new JLabel(\"Message: \");\n\t\t\ttx... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Remove an annotation from the specified method parameter. | public AnnotatedTypeBuilder<X> removeFromMethodParameter(Method method, int position,
Class<? extends Annotation> annotationType) {
if (methods.get(method) == null) {
throw new IllegalArgumentException("Method " + method + " not present on class " + getJavaClass());
} else {
if (methodParameters.get(method... | [
"public void removeMember(Annotation member);",
"@Override\n public void removeAnnotation(Annotation annotation) {\n RemoveAnnotationVisitor removeAnnotationRecipe = new RemoveAnnotationVisitor(getVariableDeclarations(), annotation.getFullyQualifiedName());\n refactoring.refactor(rewriteSourceFil... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get Free Fall interrupt enabled status. Will be set 0 for disabled, 1 for enabled. | public boolean getIntFreefallEnabled() {
buffer[0] = (byte) I2Cdev.readBit(MPU6050_Registers.MPU6050_RA_INT_ENABLE, MPU6050_Registers.MPU6050_INTERRUPT_FF_BIT);
return buffer[0] == 1;
} | [
"public boolean getIntFreefallStatus() {\n buffer[0] = (byte) I2Cdev.readBit(MPU6050_Registers.MPU6050_RA_INT_STATUS, MPU6050_Registers.MPU6050_INTERRUPT_FF_BIT);\n return buffer[0] == 1;\n }",
"byte getIntEnabled() {\n I2Cdev.readByte(MPU6050_Registers.MPU6050_RA_INT_ENABLE);\n ret... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
optional string adIconUrl = 91; optional string adIconUrl = 91; | boolean hasAdIconUrl(); | [
"java.lang.String getAdIconUrl();",
"java.lang.String getAdPic();",
"com.google.protobuf.ByteString\r\n getAdIconUrlBytes();",
"public void setImgUrl(String url){\n this.img_url_link = url;\n }",
"public java.lang.String getAdIconUrl() {\r\n java.lang.Object ref = adIconUrl_;\r\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
True if has "classCode" attribute | public boolean isSetClassCode()
{
synchronized (monitor())
{
check_orphaned();
return get_store().find_attribute_user(CLASSCODE$30) != null;
}
} | [
"public boolean isCodeAttribute()\r\n\t{\r\n\t\treturn false;\r\n\t}",
"boolean isClassProperty();",
"public static boolean classCodeExists(String classCode)\n\t{\n\t\tString sql = \"SELECT COUNT(*) FROM Class c WHERE c.classCode = ?;\";\n\t\ttry(Connection conn = DriverManager.getConnection(db, user, pwd);\n\t... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Obtains workable kubernetes client. | public static KubernetesClient k8sClient(KubevirtApiConfig config) {
if (config == null) {
log.warn("Kubernetes API server config is empty.");
return null;
}
String endpoint = endpoint(config);
ConfigBuilder configBuilder = new ConfigBuilder().withMasterUrl(endp... | [
"public CuratorFramework getClient() {\n\n\t\tif (m_client == null) {\n\t\t\treturn null;\n\t\t}\n\n\t\tif (m_client.getState() == CuratorFrameworkState.STOPPED) {\n\t\t\tSystem.out.println(\" =================@@> DETECTED STOPPED client on CLUSTER instance\");\n\t\t\t//m_client.start();\n\t\t}\n\t\treturn m_client... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Add a Jlist with the specified model into a JScrollpane and return the list. | JList addScrolledList(ListModel model, Object constraints); | [
"JList addScrolledList(ListModel model, ListCellRenderer renderer, Object constraints);",
"JList addList(ListModel model, Object constraints);",
"JList addList(ListModel model, ListCellRenderer renderer, Object constraints);",
"private JList<String> addAList(JList<String> list, int cellHeight,\r\n\t\t\tint ce... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the CDTYP value for this CodeCD. | public int getCDTYP() {
return CDTYP;
} | [
"public String getCdntype() {\r\n return cdntype;\r\n }",
"public String getcType() {\n return cType;\n }",
"public void setCDTYP(int CDTYP) {\n this.CDTYP = CDTYP;\n }",
"public java.lang.CharSequence getCOSTTYPECD() {\n return COST_TYPE_CD;\n }",
"public java.lang.Cha... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Logic to read the file and convert it into an 2D Array, where every array index contains contents of a line in chars. | private static char[][] convertFileIntoArray(File inputFile) {
BufferedReader br = null;
char[][] rowIdxContentsArr = null;
try{
FileReader fileRdr = new FileReader(inputFile);
br = new BufferedReader(fileRdr);
String content;
int row = 0;
// Read ever... | [
"public FileRead(File file) {\n // TODO: read the file content and store content into numbers\n\n String filePath = \"array.txt\";\n\n\n FileReader inputFile = new FileReader(filePath);\n\n\n BufferedReader br = new BufferedReader(inputFile);\n ArrayList<int[]> rows = new ArrayLis... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Output only. Policy information for the asset. .google.ads.googleads.v9.resources.AssetPolicySummary policy_summary = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; | @java.lang.Override
public com.google.ads.googleads.v9.resources.AssetPolicySummaryOrBuilder getPolicySummaryOrBuilder() {
return getPolicySummary();
} | [
"@java.lang.Override\n public com.google.ads.googleads.v9.resources.AssetPolicySummary getPolicySummary() {\n return policySummary_ == null ? com.google.ads.googleads.v9.resources.AssetPolicySummary.getDefaultInstance() : policySummary_;\n }",
"public com.google.ads.googleads.v9.resources.AssetPolicySummary ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
method getTaxlev Return the 'taxlev' class variable as a String | public String getTaxlev(String s) {
return ((taxlev != INTNULL) ? new Integer(taxlev).toString() : "");
} | [
"public int getTaxlev() {\n return taxlev;\n }",
"public String getTaxAsString()\r\n {\r\n return String.valueOf(tax * 100);\r\n }",
"public String getTaxNo() {\n return taxNo;\n }",
"public String getTaxcod() {\n return taxcod;\n }",
"public String getTaxcom() {\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Function used for Add people with param: firstname, lastname and email. Then click button Add People | public void AddPeople(String firstName, String lastName, String email) {
txtfirstName1.sendKeys(firstName);
txtlastName1.sendKeys(lastName);
txtemail1.sendKeys(email);
btnAddPeople.click();
} | [
"public void ClickAddPeople(){\t\n\t\tlnkAddPeople.click();\n\t}",
"@UiHandler(\"btnAdd\")\r\n\tvoid onBtnAddClick(ClickEvent event) {\n\t\tpresenter.goTo(new AddPersonPlace(\"\"));\r\n\t}",
"private void addContact(){\r\n\t\tif (findPerson(nameTextField.getText()) != -1){\r\n\t\t\tJOptionPane.showMessageDialog... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
2 boards have same tiles or not | public boolean isSameTiles(Board given) {
for (int i = 0; i < N; i++) {
for (int j = 0; j < N; j++) {
if(tiles[i][j] != given.tiles[i][j])
return false;
}
}
return true;
} | [
"boolean compareBoard();",
"private static boolean haveSameColor(Cell[][] cellBoard, int x1, int y1,\n\t\t\tint x2, int y2) {\n\t\tCell cell1 = getCell(cellBoard, x1, y1);\n\t\tCell cell2 = getCell(cellBoard, x2, y2);\n\t\tif (cell1 == null || cell2 == null)\n\t\t\treturn false;\n\t\treturn cell1.hasCandy()\n\t\t... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Ensure a TypeSystem handle for this container. | public int ensureTypeSystemHandle(Frame frame, int iReturn)
{
ObjectHandle hTS = m_hTypeSystem;
if (hTS == null)
{
ModuleConstant idModule = getModule();
ModuleStructure module = (ModuleStructure) idModule.getComponent();
Map<ModuleConstant, St... | [
"TypeSystemDefinition createTypeSystemDefinition();",
"TypeSystem getTypeSystem();",
"SystemT createSystemT();",
"public void typeSystemInit(TypeSystem typeSystem)\n throws ResourceInitializationException {\n\n String sentenceTypeName =\n CasConsumerUtil.getRequiredStringParameter(getUimaContex... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
A header value part is in the case of a simple header the whole value of a header or in the complex case the building block for attributes, diretives and clauses. It can the the directive or attribute name. It can be the value of an attribute or directive or it can be the main part of a clause to which parameters are a... | public interface HeaderValuePart extends PsiElement, StubBasedPsiElement<HeaderValuePartStub> {
/**
* The text of a header value part can be broken into several parts. This method returns the unwrapped text without
* the newlines and without the extra continuation spaces.
*
* @return The unwrapped text.
... | [
"public void parsedHeader(Buffer name, Buffer value) throws IOException {\r\n\t\t}",
"public void setHeader(eu.rawfie.uxv.Header value) {\n this.header = value;\n }",
"public void setHeader (String name, String val);",
"java.lang.String getHeader();",
"void setHeader(String headerName, String headerValu... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
A humanreadable string with additional information about this item, like type or symbol information. .google.protobuf.StringValue detail = 4; | public com.google.protobuf.StringValue getDetail() {
return detail_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : detail_;
} | [
"public String getDetails() {\n\t\treturn \"Protein bar: \" + name + \", Fat: \" + fat + \", Energy: \" + energy + \", Carbohydrate: \"\n\t\t\t\t+ carbohydrate + \", Protein: \" + protein + \", Fiber: \" + fiber;\n\t}",
"public synchronized String getItemDetails(){\n \tString s = \"\\n=========================... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method sets the value of the database column regsat_regist.subjectb | public void setSubjectb(String subjectb) {
this.subjectb = subjectb;
} | [
"public String getSubjectb() {\n return subjectb;\n }",
"public void setSubjectc(String subjectc) {\n this.subjectc = subjectc;\n }",
"public void setSubjecta(String subjecta) {\n this.subjecta = subjecta;\n }",
"public void update(Subject subject){\n\t int id = -1;\n SqlS... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Simple test of the GetOpt class | public void testGetOpt() throws Exception {
String str;
while ((str = this._getOpt.nextArg()) != null) {
// it's so happened that all the test arguments begin with different
// letter, so we can just check by that. In general, we can also
// use String.equals() metho... | [
"@Test(timeout = 4000)\n public void test01() throws Throwable {\r\n OptionBuilder.withLongOpt(\"H\");\r\n Option option0 = OptionBuilder.create(\"H\");\r\n assertEquals(-1, option0.getArgs());\r\n }",
"String getOption();",
"@Test(timeout = 4000)\n public void test06() throws Throwable {\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Finds all chunks that are eligible for mob spawning and updates the specified set accordingly | protected abstract void updateSpawnerChunks(WorldServer world, Set<ChunkPos> spawnerChunks); | [
"private void setAllAvailable() {\r\n for (int large = 0; large < 9; large++) {\r\n for (int small = 0; small < 9; small++) {\r\n Tile tile = mSmallTiles[large][small];\r\n if (tile.getOwner() == Tile.Owner.NEITHER)\r\n addAvailable(tile);\r\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__Facet__Group__8__Impl" $ANTLR start "rule__Vector__Group__0" InternalMyDsl.g:537:1: rule__Vector__Group__0 : rule__Vector__Group__0__Impl rule__Vector__Group__1 ; | public final void rule__Vector__Group__0() throws RecognitionException {
int stackSize = keepStackSize();
try {
// InternalMyDsl.g:541:2: ( rule__Vector__Group__0__Impl rule__Vector__Group__1 )
// InternalMyDsl.g:542:2: rule__Vector__Group__0__Impl rule__Vector__Group__1
{
pushFollow(FOLLOW_13);
... | [
"public final void ruleVector() throws RecognitionException {\n\n\t\t\t\tint stackSize = keepStackSize();\n\t\t\t\n\t\ttry {\n\t\t\t// InternalMyDsl.g:116:2: ( ( ( rule__Vector__Group__0 ) ) )\n\t\t\t// InternalMyDsl.g:117:2: ( ( rule__Vector__Group__0 ) )\n\t\t\t{\n\t\t\t// InternalMyDsl.g:117:2: ( ( rule__Vector_... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__TypeInfo__Group_2__1" $ANTLR start "rule__TypeInfo__Group_2__1__Impl" InternalGaml.g:15660:1: rule__TypeInfo__Group_2__1__Impl : ( ( rule__TypeInfo__SecondAssignment_2_1 ) ) ; | public final void rule__TypeInfo__Group_2__1__Impl() throws RecognitionException {
int rule__TypeInfo__Group_2__1__Impl_StartIndex = input.index();
int stackSize = keepStackSize();
try {
if ( state.backtracking>0 && alreadyParsedRule(input, 933) ) { return ; }
... | [
"public final void rule__TypeInfo__Group_2__1() throws RecognitionException {\n int rule__TypeInfo__Group_2__1_StartIndex = input.index();\n\n \t\tint stackSize = keepStackSize();\n \n try {\n if ( state.backtracking>0 && alreadyParsedRule(input, 932) ) { return ; }\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Method return list forum which crated between dates. If forums are not exist return empty list. | public List<Forum> getListForumCreatedBetweenDateByIdForum(Date minDate,Date maxDate); | [
"public List<Post> getPostsByThread(ForumThread thread);",
"public String listByForum() {\n if (page < 1) {\n page = 1;\n }\n forum = forumRemote.get(forum.getId());\n //List<Topic> topicList = topicRemote.getByForum(forum.getId());\n if (topicTitle == null) {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns blankString if s is blank; Returns s itself otherwise. | public static String ifBlank( final String s, final String blankString ) {
return ifBlank( s, blankString, false );
} | [
"public static String convertNullToBlank(String s) {\n \tif(s==null) return \"\";\n \treturn s;\n }",
"private static String trimAndNullAsEmpty(String s) {\n if (s != null && !s.trim().equals(STRING_NULL)) {\n return s.trim();\n } else {\n return \"\";\n }\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO LOGIC TO CHOOSE WHAT HAND TO PLAY WILL DEFAULT TO A RANDOM HAND | public static JHand GenerateHand()
{
Random randomGenerator = new Random();
int randomInt = randomGenerator.nextInt(4);
switch(randomInt)
{
case 0:
return JHand.Lizard;
case 1:
return JHand.Paper;
case 2:
return JHand.Rock;
case 3:
... | [
"private void handManager()\r\n\t{\r\n\t\tswitch(this.handState)\r\n\t\t{\r\n\t\t\tcase INITIALISINGHAND:\r\n\t\t\t\tSystem.out.println(\"\\nPlaying hand number \" + turno);\r\n\t\t\t\tinitialiseHand();\r\n\t\t\t\tbreak;\r\n\t\t\tcase INGOINGHAND:\r\n\t\t\t\tturnManager();\r\n\t\t\t\tbreak;\r\n\t\t\tcase CONCLUDING... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the given date with the time values cleared. | public static Date clearTime(Date date) {
if (date == null) {
return null;
}
Calendar c = Calendar.getInstance();
c.setTime(date);
clearTime(c);
return c.getTime();
} | [
"@SuppressWarnings(\"deprecation\") // GWT requires Date\n public static void resetTime(Date date) {\n long msec = resetMilliseconds(date.getTime());\n date.setTime(msec);\n date.setHours(0);\n date.setMinutes(0);\n date.setSeconds(0);\n }",
"public org.mhealth.open.data.avro.SObservation.Builder... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Return the xy path length from the DCA to a HelicalTrackHit. | public static double PathLength(HelicalTrackFit helix, HelicalTrackHit hit) {
// Calculate the shortest path length from the DCA to the hit x-y coordinates
double path0 = PathCalc(helix.xc(), helix.yc(), helix.R(), helix.x0(), helix.y0(), hit.x(), hit.y());
if (hit instanceof HelicalTrack2DHit... | [
"public double getPathLength() {\n\t\tdouble res = 0.0;\n\n\t\tfor (int i = 1; i < points.size(); ++i)\n\t\t\tres += points.get(i - 1).distance(points.get(i));\n\n\t\treturn res;\n\t}",
"public static double PathLength(CircleFit cfit, HelicalTrackHit hit1, HelicalTrackHit hit2) {\n // Find the position on... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Represents a "point" object with position in euclidean space. Creates a copy of specified point. | public Point(Point point) {
this(point.coordinates);
} | [
"public Point(Point point) {\n this.x = point.x;\n this.y = point.y;\n }",
"Point(Point oldPoint){\n this.x = oldPoint.x; \n this.y = oldPoint.y; \n }",
"Point(double x, double y){\n this.x = x; \n this.y = y; \n }",
"public Point() {\n this.x = ne... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Retrieves the pin to validate the credit card for this checkout process. | public int getCreditCardPin() {
return creditCardPin;
} | [
"int getCardPin();",
"int getPinNumber();",
"public String getPIN() {\n return PIN;\n }",
"public boolean validatePin( String pin );",
"java.lang.String getCreditCardNumber();",
"public int getPinNumber()\r\n\t{\r\n\t\treturn pinNumber;\r\n\t}",
"public String getPIN();",
"public String getP... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
.com.github.jtendermint.jabci.types.ResponseBeginBlock begin_block = 11; | com.github.jtendermint.jabci.types.Types.ResponseBeginBlockOrBuilder getBeginBlockOrBuilder(); | [
"com.github.jtendermint.jabci.types.Types.ResponseBeginBlock getBeginBlock();",
"com.github.jtendermint.jabci.types.Types.RequestBeginBlock getBeginBlock();",
"com.github.jtendermint.jabci.types.Types.RequestBeginBlockOrBuilder getBeginBlockOrBuilder();",
"com.github.jtendermint.jabci.types.Types.ResponseEndB... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Replace the macros before firing the URL | public static String substituteMacros(String url, Map<String, String> macroSubstitutions) {
if(macroSubstitutions != null && macroSubstitutions.size() > 0) {
final Iterator<Map.Entry<String, String>> iterator = macroSubstitutions.entrySet().iterator();
while(iterator.hasNext()) {
... | [
"private static List<String> replaceMacro(List<String> content, String macro, String newStr)\n {\n List<String> retVal = new ArrayList<String>();\n \n for(String line: content)\n {\n if(line.indexOf(macro) > -1)\n {\n line = line.replaceAll(macro, ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the list of all webhooks in the specified agent. | public com.google.cloud.dialogflow.cx.v3beta1.ListWebhooksResponse listWebhooks(
com.google.cloud.dialogflow.cx.v3beta1.ListWebhooksRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getListWebhooksMethod(), getCallOptions(), request);
} | [
"public WebhooksList webhooksGet () throws ApiException {\n Object postBody = null;\n byte[] postBinaryBody = null;\n \n // create path and map variables\n String path = \"/webhooks\".replaceAll(\"\\\\{format\\\\}\",\"json\");\n\n // query params\n List<Pair> queryParams = new ArrayList<Pair>()... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
clause detection Detects clauses in the sentence. | public boolean detectClauses() {
return ClauseDetector.detectClauses(this);
} | [
"@Override\n public Void visitProgram(GraafvisParser.ProgramContext ctx) {\n for (GraafvisParser.ClauseContext clause : ctx.clause()) {\n visitClause(clause);\n }\n return null;\n }",
"static boolean hasDSLSentences( final GuidedDecisionTable52 model ) {\n for ( Compos... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Downgrade to system.peers if we get an invalid query error as this indicates the peers_v2 table does not exist. Also downgrade on server error with a specific error message (DSE 6.0.0 to 6.0.2 with search enabled. | @Override
public void onFailure(Throwable t) {
if (t instanceof InvalidQueryException
|| (t instanceof ServerError
&& t.getMessage().contains("Unknown keyspace/cf pair (system.peers_v2)"))) {
isPeersV2 = false;
MoreFutures... | [
"public void basicpeerdown(int peer) {\n mcui.debug(\"Node \"+peer+\" crashes!\");\n nodesStatus[peer] = CRASHED;\n // If the sequencer crashes, then set a new sequencer\n if(peer == sequencer_id){\n \tsetNewSequencer();\n }\n }",
"private List<Action> peersV2NotSuppor... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates a new instance of GenericMagCardReader | public MagCardReaderGeneric() {
reset();
} | [
"public static ICAT1604Reader getInstance() {\n return Creator.INSTANCE;\n }",
"public T build(PacketReader reader) throws ArtemisPacketException;",
"public Card() {\n\n }",
"public Card build() {\n return new Card(frontFace, backFace);\n }",
"private Card getCardFromJSON(byte[] paylo... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Method to override to produce output relation profile typical of particular operation | public void computeOutRelProf(List<RelationProfile> lrp) {
} | [
"public void printLPProfile() {\n bEngine.printProfile();\n }",
"protected void summarize() { }",
"private void generatePolymorphism() {\n\t\ttry {\n\t\t\t// Design Principle Polymorphism\n\t\t\tcsvWriter.append(\",Polymorphism,,,,,\");\n\t\t\t// For each class in the project\n\t\t\tfor(String key: cl... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Set method for struct member 'active_viewer_key'. Field Documentation Blender Source Code Defines the node tree instance to use for the "active" context, in case multiple different editors are used and make context ambiguous. | public void setActive_viewer_key(bNodeInstanceKey active_viewer_key) throws IOException
{
long __dna__offset;
if ((__io__pointersize == 8)) {
__dna__offset = 424;
} else {
__dna__offset = 328;
}
if (__io__equals(active_viewer_key, __io__address + __dna__offset)) {
return;
} else if (__io__same__en... | [
"public bNodeInstanceKey getActive_viewer_key() throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\treturn new bNodeInstanceKey(__io__address + 424, __io__block, __io__blockTable);\n\t\t} else {\n\t\t\treturn new bNodeInstanceKey(__io__address + 328, __io__block, __io__blockTable);\n\t\t}\n\t}",
"... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
writeICFToJsonFile: Write an ICF class to a JSON file | static void writeICFToJsonFile(ICF icf, File file) {
ObjectMapper mapper = new ObjectMapper();
try {
mapper.writerWithDefaultPrettyPrinter().writeValue(file, icf);
} catch (IOException e) {
e.printStackTrace();
}
} | [
"private void writeFile() {\n FileOutputStream outputStream = null;\n try {\n outputStream = openFileOutput(filename, Context.MODE_PRIVATE);\n\n String json = gson.toJson(cats);\n byte[] bytes = json.getBytes();\n outputStream.write(bytes);\n\n ou... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Clears the value of the 'field1000' field | public com.maxpoint.cascading.avro.TestExtraLarge.Builder clearField1000() {
field1000 = null;
fieldSetFlags()[1000] = false;
return this;
} | [
"public com.maxpoint.cascading.avro.TestExtraLarge.Builder clearField1001() {\n field1001 = null;\n fieldSetFlags()[1001] = false;\n return this;\n }",
"public com.maxpoint.cascading.avro.TestExtraLarge.Builder clearField232() {\n field232 = null;\n fieldSetFlags()[232] = false;\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
get the diff between originalText and revisedText | public static String getDiffString(String originalText, String revisedText) {
List<String> originalLines = stringTextToLines(originalText);
List<String> revisedLines = stringTextToLines(revisedText);
Patch patch = DiffUtils.diff(originalLines, revisedLines);
List<String> diffStrs = DiffUtils.generateUnifiedDiff... | [
"private String getDifference(String file1Text, String file2Text) {\n\tDiff_Match_Patch diff_match_patch = new Diff_Match_Patch();\n\tLinkedList<Diff> d = diff_match_patch.diff_main(file1Text, file2Text);\n\tdiff_match_patch.diff_cleanupSemantic(d);\n\treturn diff_match_patch.diff_prettyHtml(d);\n }",
"public ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Interface describing hyper edge behavior Hyper edge is a set of vertices | public interface IHyperEdge<V extends IVertex> extends IGObject {
/**
* Add vertex to the edge
*
* @param v Vertex to add
* @return Vertex added to the edge, <code>null</code> upon failure
*/
public V addVertex(V v);
/**
* Add collection of vertices to the edge
*
* @... | [
"public interface EdgeGraph<V, E> extends Graph<V, Edge<V, E>> {\n\n /**\n * Method to get the edges as an iterable.\n *\n * @return a SizedIterable\n */\n SizedIterable<Edge<V, E>> edges();\n\n /**\n * Method to add an edge to this EdgeGraph.\n *\n * @param edge the edge t... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/////////////////////////////////////////////////////// Accessor methods for field: counter Field type: long Offset (bits): 8 Size (bits): 32 /////////////////////////////////////////////////////// Return whether the field 'counter' is signed (true). | public static boolean isSigned_counter() {
return true;
} | [
"public static boolean isSigned_count() {\n return false;\n }",
"public boolean isUnsigned() { return unsignedFlag; }",
"public static boolean isSigned_sampleCnt() {\n return true;\n }",
"boolean isUnsigned();",
"public boolean isSigned()\n\t{\n\t\treturn signed;\n\t}",
"public boolean... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Change handled state of an education feedback item by it's ID. | @RequestMapping("/handle/{id}")
public String handle(@PathVariable long id, Model model, HttpServletRequest request) {
EducationFeedback educationFeedback = educationFeedbackService.get(id);
boolean handle = !educationFeedback.isHandled();
educationFeedback.setHandled(handle);
educat... | [
"Feedback updateFeedbackEntry(String feedbackID, Feedback feedbackEntry) throws FeedbackManagementException;",
"public void changeId(Integer newID){\n itemID = newID;\n }",
"public void setEditedItem(Object item) {editedItem = item;}",
"protected abstract boolean processItemFeedBack(Item item, Integ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ constructClassInstanceTriples method constructs triples of an instance of type subjectClass | private static String constructClassInstanceTriples(Class subjectClass, Property uniqueIdentifierProperty,
ArrayList<InsertionPropertyValue> instancePropertyValueList) {
/*
* triplesBuilder is used to build instance triples
*/
StringBuilder triplesBuilder = new StringBuilder();
/*
* tempBuilder is a... | [
"public ArrayList<Triple> createTenLearningObjectAnnotationTriples(Node subject ,TenLearningObjectAnnotationsBean tenLearningObjectAnnotationsBean){\r\n\t\t\r\n\t\tString LOG_METHOD_NAME = \"ArrayList createTenLearningObjectAnnotationTriples(Node, TenLearningObjectAnnotationsBean)\";\r\n\t\tlog.debug(this.getClass(... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method returns the value of the database column tp_goods.goods_sn | public String getGoodsSn() {
return goodsSn;
} | [
"public void setGoodsSn(String goodsSn) {\n this.goodsSn = goodsSn == null ? null : goodsSn.trim();\n }",
"public String getProductSn() {\r\n return productSn;\r\n }",
"public String getSn() {\n return sn;\n }",
"public String getOrder_sn() {\n return order_sn;\n }",
"publi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ MathPrefixDefnSig (',' MathPrefixDefnSig) | static boolean MathPrefixDefnSigs(PsiBuilder b, int l) {
if (!recursion_guard_(b, l, "MathPrefixDefnSigs")) return false;
boolean r;
Marker m = enter_section_(b, l, _NONE_);
r = MathPrefixDefnSig(b, l + 1);
r = r && MathPrefixDefnSigs_1(b, l + 1);
exit_section_(b, l, m, r, false, CategoricalSigL... | [
"static boolean MathDefnSig(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"MathDefnSig\")) return false;\n boolean r;\n Marker m = enter_section_(b);\n r = MathPrefixDefnSig(b, l + 1);\n if (!r) r = MathPostfixDefnSig(b, l + 1);\n if (!r) r = MathOutfixDefnSig(b, l + 1);\n if (!r) r = M... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Crreates a dialog in which we can choose which slot we want to save the current city in. | public void saveCityDialog(final SharedPreferences sharedPref){
AlertDialog.Builder builder = new AlertDialog.Builder(this);
builder.setTitle(R.string.save_dialog_title).setItems(new String[]{sharedPref.getString(SharedPrefKeys.SLOT1_KEY,
getResources().getString(R.string.empty)), shared... | [
"public static JDialog createRegionDialog(final ChampionSelectGUI t) {\n\t\tfinal JPanel contentPanel = new JPanel();\n\t\tJLabel request = new JLabel(\"Please select your region\");\n\t\tcontentPanel.add(request);\n\t\trequest.setAlignmentX(Component.CENTER_ALIGNMENT);\n\t\tfinal Choice input = new Choice();\n\t\t... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
adds the players' panel into the panel of the map | public static void addUnitPanels() {
for (MovingUnit mu : GameStats.getPlayers()) {
MapGPanel.getInstance().add(mu);
}
} | [
"private void addPanelsToFrames()\r\n {\r\n //shtimi i të gjitha paneleve tek kornizat përkatëse\r\n gameContainer.add(leftTop);\r\n gameContainer.add(rightTop);\r\n gameContainer.add(leftBottom);\r\n gameContainer.add(rightBottom);\r\n }",
"private void addPiecePanels(){\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets (as xml) the "color" attribute | public org.apache.xmlbeans.XmlString xgetColor()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlString target = null;
target = (org.apache.xmlbeans.XmlString)get_store()... | [
"public String getColor() {\n return (String) getAttributeInternal(COLOR);\n }",
"public String getColor() {\n return (String)getAttributeInternal(COLOR);\n }",
"org.apache.xmlbeans.XmlString xgetColor();",
"public String getColour() {\n return (String) getAttributeInternal(COLOUR);... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Here, you are ensured that both dest and src have same parameterized type for WildcardType. So, it's safe to copy elements from src to dest. | public static <T extends Number> void myGenericMethod(WildcardType<T> dest, WildcardType<T> scr) {
} | [
"public void myWildcard(WildcardType<? extends Number> dest, WildcardType<? extends Number> scr) {\n }",
"public void copy(T x, T y);",
"Copiable copy();",
"public void copyParameters(TrianaType source) {\n }",
"public static <T, K> void copyBeans(List<T> dest, List<K> orig, Class<T> destClzz) throws ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates an exclusion selector. | private AntPathExclusionSelector(String excludes) {
StringTokenizer tok = new StringTokenizer(excludes, ", ", false); // ANT style
while (tok.hasMoreTokens()) {
patterns.add(tok.nextToken());
}
} | [
"Excludes createExcludes();",
"ExcludeType createExcludeType();",
"AggregationBuilder buildExcludeFilteredAggregation(Set<String> excludeNames);",
"@UsesAdsUtilities({AdsUtility.SELECTOR_BUILDER})\n SelectorBuilderInterface<SelectorT> notIn(String field, String... values);",
"@UsesAdsUtilities({AdsUtility.... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Fetch records that have id_tipoOperacion IN (values) | public List<matera.jooq.tables.pojos.Presupuesto> fetchByIdTipooperacion(Integer... values) {
return fetch(Presupuesto.PRESUPUESTO.ID_TIPOOPERACION, values);
} | [
"public Ruta[] findWhereIdTipoRutaEquals(int idTipoRuta) throws RutaDaoException;",
"@SuppressWarnings(\"unchecked\")\r\n\tpublic List<PoliticaValor> getUnionParametrosEntrada(Long idPerfil, Long idPosicion, Long idEmpresa) {\r\n\t\tStringBuffer sb=new StringBuffer(\"from PoliticaValor as pv where\"); \r\n\t\tSt... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Main method for running this filter. | public static void main(String[] args) {
runFilter(new RUS(), args);
} | [
"public static void main(String[] args) {\n new TestFilter().testDilateOperation();\n }",
"public static void main(String[] args) {\n PixelateFilter pixelateFilter = new PixelateFilter(new File(args[0]), new File(args[1]), Integer.parseInt(args[2]));\n pixelateFilter.export(new File(args[1... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Instantiates a new water meter. | public WaterMeter(WaterGasMeterConfiguration waterGasMeterConfigurationParam)
{
this();
setConfiguration(waterGasMeterConfigurationParam);
} | [
"public WaterMeter()\r\n\t{\r\n\t\tsuper(DeviceTypeEnum.WATER_METER);\r\n\t}",
"public WaterMeter(Radio radio)\r\n\t{\r\n\t\tsuper(radio, DeviceTypeEnum.WATER_METER);\r\n\t}",
"public WaterMeter(String deviceIdParam, Radio radio)\r\n\t{\r\n\t\tsuper(deviceIdParam, radio, DeviceTypeEnum.WATER_METER);\r\n\t}",
... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Removes all the invitati riuniones where id_segreteria = &63; and id_riunione = &63; from the database. | public static void removeBySegreteriaRiunione(long id_segreteria,
long id_riunione) {
getPersistence().removeBySegreteriaRiunione(id_segreteria, id_riunione);
} | [
"public void eliminaCircuitoRutero (){\n\t\n\tfor (OpeCircuito circuito: listaCircuitoSeleccionado){\n\t\t\n\t\tservicioRutero.eliminaCircuitoRutero(circuito.getIdCircuito(), tripulacion.getFechaOperacion() );\n\t\t\t\t\n\t\t}\n\t\n\t\n\t\n\t\n}",
"public void eliminarRutas() {\n try {\n con = ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Wrapped the specified input source in an AddRootElementInputStream | public DocumentFragmentInputSource(InputSource inputSource)
throws IOException {
//Construct this using the inputsource provided
if (inputSource.getByteStream() != null) {
this.setByteStream(
new AddRootElementInputStream(inputSource.getByteStream()));
} else ... | [
"public void testAddMetadataFileByInputStream(ArchiveSource src) throws IOException {\n\t\tsrc.clear();\n\t\ttry {\n\t\t\tsrc.startWrite();\n\t\t\taddMetadataFileByInputStream(src, m_metafile1, m_metadata1);\n\t\t\taddMetadataFileByInputStream(src, m_metafile2, m_metadata2);\n\t\t} finally {\n\t\t\tsrc.finishWrite(... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the flag indicating if subflows must be segmented. | public void setSegmentSubFlows (boolean value) {
segmentSubFlows = value;
} | [
"public boolean segmentSubFlows () {\r\n \t\treturn segmentSubFlows;\r\n \t}",
"void setSegmented(boolean segmented);",
"public void setHasBeenSegmentedFlag (boolean hasBeenSegmented) {\r\n \t\tsegApplied = hasBeenSegmented;\r\n \t}",
"public void setDeclaredInControlFlow(boolean b)\n {\n if (b)\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Procedure to check if a Equipment file exist | @RequestMapping("/checkEquipmentFile")
public @ResponseBody String checkEquipmentFile(@RequestParam("filename") String filename)
{
filename = NOpenFileUtil.replaceSlash(filename + "/" + filename + ".json");
if(NOpenFileUtil.checkEquipmentFileExist(filename))
{
return "exist";
}
return null;
... | [
"public boolean doesFileExist();",
"public boolean checkIfFileExist(){\n if(f.exists()) {\n return true;\n }else{\n return false;\n }\n }",
"public void checkIfXslCreated() {\n final File extStore = Environment.getExternalStorageDirectory();\n File myF... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get an enumeration of all WindowStates supported by this portal. | public Enumeration getSupportedWindowStates() {
return windowStates.elements();
} | [
"public java.util.Enumeration getSupportedWindowStates() {\n return new Enumerator(windowStates);\n }",
"public State[] getAllStates();",
"public ArrayList<DrawableGraphState> getStates() {\r\n\t\treturn new ArrayList<DrawableGraphState>(states);\r\n\t}",
"Collection<STATE> getAllStates();",
"publ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Check whether or not the item is enchanted. | public boolean isEnchanted() {
ItemMeta meta = getItemMeta();
if (meta instanceof EnchantmentStorageMeta) {
return ((EnchantmentStorageMeta)meta).hasStoredEnchants();
}
return getItemMeta().hasEnchants();
} | [
"public boolean isEnchanted() {\n return enchanted;\n }",
"public static boolean isEnchantable(L2ItemInstance item)\n\t{\n\t\t// only items in inventory and equipped can be enchanted\n\t\treturn item.getItem().isEnchantable() && (item.getLocation() == L2ItemInstance.ItemLocation.INVENTORY || item.getLoc... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
The forecast for the Keyword Plan campaign for the week. .google.ads.googleads.v13.services.ForecastMetrics forecast = 2; | com.google.ads.googleads.v13.services.ForecastMetrics getForecast(); | [
"com.google.ads.googleads.v13.services.ForecastMetricsOrBuilder getForecastOrBuilder();",
"public com.google.ads.googleads.v13.services.KeywordPlanKeywordForecast getKeywordForecasts(int index) {\n if (keywordForecastsBuilder_ == null) {\n return keywordForecasts_.get(index);\n } else {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
creates the players objects and sets the first players as active players. | private void createPlayers() {
if (playerCount <= 1 || playerCount > GameOptions.getInstance().maximalPlayers) {
throw new IllegalArgumentException(playerCount + " is not a valid players count");
}
players = new Player[playerCount]; // initialize the players array.
for (int i... | [
"private void initPlayers() {\n this.playerOne = new Player(1, 5, 6);\n this.playerTwo = new Player(2, 0, 1);\n this.currentPlayer = playerOne;\n\n }",
"public void createPlayers() {\n\t\t\n\t\twhite = new Player(Color.WHITE);\n\t\twhite.initilizePieces();\n\t\tcurrentTurn = white;\n\t\t\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test case number: 31 / 3 covered goals: Goal 1. org.objectweb.cjdbc.driver.ResultSetMetaData.(Lorg/objectweb/cjdbc/driver/DriverResultSet;)V: rootBranch Goal 2. org.objectweb.cjdbc.driver.ResultSetMetaData.getSchemaName(I)Ljava/lang/String;: I4 Branch 19 IF_ICMPLT L153 false Goal 3. org.objectweb.cjdbc.driver.ResultSet... | @Test(timeout=300000)
public void test31() throws Throwable {
Field[] fieldArray0 = new Field[1];
DatabaseProcedure databaseProcedure0 = new DatabaseProcedure("4+q@\nsVq{ZWVHn", "4+q@\nsVq{ZWVHn", 5210);
ArrayList arrayList0 = databaseProcedure0.getParameters();
DriverResultSet driverResul... | [
"@Test(timeout=300000)\n public void test41() throws Throwable {\n ResultSetMetaData resultSetMetaData0 = new ResultSetMetaData((DriverResultSet) null);\n try { \n resultSetMetaData0.getCatalogName(0);\n fail(\"Expecting exception: SQLException\");\n \n } catch(SQLException e) {... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Instantiates a new numeric constants. | private NumericConstants() {
// Numeric Constants
} | [
"IntConstant createIntConstant();",
"DoubleConstant createDoubleConstant();",
"NumValue createNumValue();",
"ConstantValue createConstantValue();",
"public NumericConstantExpression(String numericConstant) {\r\n this.numconst = numericConstant;\r\n }",
"public Constant (int value){\r\n this.val... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns a Vector of all MuAction instances matching the specified action id. | public static Vector getActionInstances(String muActionId) {
Vector actionInstances = new Vector();
// Iterate on all MainFrame instances
Iterator mainFrameActions = mainFrameActionsMap.values().iterator();
while(mainFrameActions.hasNext()) {
Iterator actionAndIds = ((... | [
"Iterable<Action> getActions(GameState state, int id);",
"public Bmv2ModelAction action(int id) {\n return actions.get(id);\n }",
"public abstract ActionSet getActionsInPackage(int pkgId);",
"List<ActionDAOBean> getActionByID(int actionId);",
"public ActionList getActions();",
"Collection<ACTION... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the y component of the force field | @Setter
public void setYComponent( double f )
{
this.m_Force.y = f;
} | [
"public void setY(double y)\r\n\t{\t\r\n\t\tvirtualDxfPoint.setTransformationY(y);\r\n\t\tAnchor.setY(y);\r\n\t}",
"public void setY(double y){\n this.y = y;\n }",
"public void setY(double y){\n this.yCoord = y;\n }",
"@Override\n\tprotected void setY(int y) {\n\t\tsuper.setY(y);\n\n\t\tif... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates the constant source builder | public ConstantSourceBuilder()
{
setName("Random value");
setUnit("N/A");
setSourceName("xkcd");
setSourceLink("https://xkcd.com/221/");
} | [
"static Builder builder() {\n return new SourceContextImpl.Builder();\n }",
"static Builder builder(SourceContext source) {\n return new SourceContextImpl.Builder((SourceContextImpl) source);\n }",
"Const createConst();",
"private ConstantBindingBuilder bind(String name, Object source) {\n Constant... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |