query stringlengths 8 1.54M | document stringlengths 9 312k | negatives listlengths 19 20 | metadata dict |
|---|---|---|---|
Set the ShippingAddressesSection of the PaymentRequest UI. | public void setShippingAddressesSection(SectionInformation shippingAddressesSection) {
mShippingAddressesSection = shippingAddressesSection;
} | [
"void setShipFromAddressArray(int i, x0401.oecdStandardAuditFileTaxPT1.SupplierAddressStructure shipFromAddress);",
"void setAddressDeliveryPointArray(org.apache.xmlbeans.XmlObject[] addressDeliveryPointArray);",
"public void setAddresses(java.util.List<String> addresses) {\n\t\t_ipAddresses = addresses;\n\t}",... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Runs the program by calling the main function without parameters. | public void Run() {
//carga las notas, todos lo hacemos con if's pero el no, el con un hashmap, anda ya...
Note2Dur = new HashMap<String,Integer> ();
cargaNote();
executeFunction ("main", null);
Player player = new Player();
player.play(patterns_musicote);
} | [
"public static final void main(String[] args) {}",
"public static void main(String[] args)\n\t{\n\t\t// do nothing...\n\t}",
"public static void main( String[] args ) { launch( args ); }",
"public static void main(String... args) {\n new Main().run(args);\n }",
"public static void main(String[] ar... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This helper method swaps elements of the double[] at i and j by setting double[i] to a temp so that the value isn't lost. It then sets double[i] to double[j] and setting double[j] to the temp | private void swap(int[] a, int i, int j)
{
int temp = a[i];
a[i] = a[j];
a[j] = temp;
} | [
"private static void swap(double[] a, int i, int j) {\r\n\t\tdouble temp = a[i]; // store ith index temporarily\r\n\t\ta[i] = a[j]; // swap i & j\r\n\t\ta[j] = temp; // set j to i\r\n\t}",
"private static void exchange(double a[], int i, int j){\n \tif(a.length <= 0)return;\n \t\n \tdouble temp = a[i];\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Contents of Hashtables property[0] property[1] ||| ||| |Name | "Lakeshore" | |Name | "Dixie" | ||| ||| |Cost | 50 | |Cost | 60 | ||| ||| |House1 | 150 | |House1 | 190 | ||| ||| |House2 | 250 | |House2 | 290 | ||| ||| |etc... | | |etc... | | ||| || | public static void init ()
{
property = new Hashtable [34];
for (int i = 0 ; i < 34 ; i++)
property [i] = new Hashtable ();
initNames ();
initCost ();
} | [
"public String getHouses(){\n\n String myProperties = \"\";\n\n int i = 1;\n\n for (HouseTest house : houses) {\n myProperties += \"(\"+i+\") Name: \"+ house.getHouseName()+\"; Value: \"+ house.getValue()+\"; Rent: \"+\n house.getRent()+\"\\n\";\n i++;\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the document frequency of this term number of documents where this term appears. | public int df(){
return df;
} | [
"public int getNumberOfDocsContainingWord()\r\n\t{\r\n\t\t\r\n\t\treturn freq;\r\n\t}",
"public int getTermFreq(String queryTerm){\r\n \tint termFreq = 0;\r\n \r\n \ttry {\r\n \t\tIndexReader indexReader = DirectoryReader.open(kbIndexDirectory);\r\n\r\n \t Bits liveDocs = MultiFields.getLiveDocs(... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
POST request to either add new users or update an existing one if the id is given | @PostMapping("/usermanagement")
public Object addUser(@RequestParam(required = false) Integer id, @RequestParam String email,
@RequestParam String firstName, @RequestParam String lastName, @RequestParam String password,
@RequestParam(required = false) boolean enabled, @RequestParam String role,
@RequestParam ... | [
"UserResponse addNewUser(UserRequest user);",
"@Override\n\t@POST\n\t@Path(\"/add\")\n\t//Method to create a new user, accepts a JSON payload with first name and last name, and return a new user with a unique identifier.\n\t//If an invalid name is contained in the JSON payload (first name left blank/null or last ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
fills the volunteer string variables for later usage | private void fillVolunteers(){
if(((EditText) findViewById(R.id.volunteer1)).getText() != null)
vol1 = ((EditText) findViewById(R.id.volunteer1)).getText().toString();
if(((EditText) findViewById(R.id.volunteer2)).getText() != null)
vol2 = ((EditText) findViewById(R.id.volunteer2)).getText().toString();
... | [
"public void myTeamInformation()\n {\n teamNumber = 5;\n teamMember1 = \"Levi Sutton\";\n teamMember2 = \"Cameron Paige\";\n course = \"CS1301\";\n dateCreated = new Date();\n }",
"public void populateData(){\r\n \tboolean byPassSb = validate(sbVacancyTempCode, \"sb\", null);\r\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
required int32 wRatio = 2; | public boolean hasWRatio() {
return instance.hasWRatio();
} | [
"float getUniformWidth();",
"public void set_width(int w){width = w;}",
"@DISPID(202) //= 0xca. The runtime will prefer the VTID if present\r\n @VTID(102)\r\n float widthRelative();",
"public double getDesiredWidth();",
"public float getWidth() {\n/* 425 */ return this.width;\n/* */ }",
"p... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ access modifiers changed from: private | public void logNotificationExpansion(String str, boolean z, boolean z2) {
this.mNotificationLogger.onExpansionChanged(str, z, z2);
} | [
"@Override\n }",
"protected void method_5557() {}",
"@Override\n public void extornar() {\n \n }",
"@Override\r\n public void publicando() {\n }",
"@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}",
"private InternalReflect() {\n\t\t\t// do nothing\n\t\t}",
... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the roomClass of this Form. | public RoomClassEnum getRoomClass() {
return this.roomClass;
} | [
"public char getRoomType(){\n\t\tif (name.equals(\"Kitchen\")) return CludoBoard.kitchen;\n\t\tif (name.equals(\"Hall\")) return CludoBoard.hall;\n\t\tif (name.equals(\"Study\")) return CludoBoard.study;\n\t\tif (name.equals(\"BallRoom\")) return CludoBoard.ballroom;\n\t\tif (name.equals(\"DiningRoom\")) return Clu... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | public void updateuser(String username) {
} | [
"@Override\n }",
"@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}",
"@Override\n public void extornar() {\n \n }",
"@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}",
"@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}",
"@Override\r\n\tpublic void wydaj() {\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Retorna valor de propiedad codigoPedido | public String getCodigoPedido(){
return this.codigoPedido;
} | [
"public String getCodigo()\r\n\t{\r\n\t\treturn codigo;\r\n\t}",
"public String getCodPassageiro() {\n return codPassageiro;\n }",
"public int getCodigo() {\n return codigo;\n }",
"private int getCodigo() {\n\t\treturn codigo;\n\t}",
"public String getCodigo() {\r\n return (String) getA... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get the number of walls of the maze. | public int getWallField() {
return Integer.parseInt(this.wallField.getText());
} | [
"public int getMazeWidth();",
"public int getWallCounter()\n\t{\n\t\treturn wallCounter;\n\t}",
"public static int sizeOfMaze(Maze3d maze){\r\n\t\tint width = maze.getMaze3d().length;\r\n\t\tint height = maze.getMaze3d()[0].length;\r\n\t\tint depth = maze.getMaze3d()[0][0].length;\r\n\t\t\r\n\t\t//summing up al... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Assert that the node in the federated repository given by the supplied path represents the same node in the underlying source given by the path, source name, and workspace name. | protected void assertSameNode( String pathInFederated,
String pathInSource,
String sourceName,
String workspaceName,
String... extraChildren ) {
FEDERATED_TIMER.start();
... | [
"@Test\n public void testPath2() {\n Path path = new Path(2);\n Node n1 = new Node(2);\n Node n2 = new Node(3);\n path.addNode(n1);\n path.addNode(n2);\n assertEquals(path.indexOf(n2), 1);\n }",
"@Test\n public void testGetSource() {\n nodeReference result = testEdge.getSource();\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
RestRequestDesktopPanel does not need a bottom tool bar | @Override
protected void addBottomToolbar(JPanel panel) {
} | [
"public SwingOwner createTopToolBar() { return new RMViewerTopToolBar(this); }",
"private void setAllianceRequestPane() { allianceRequestPane = new AllianceRequestPane(); }",
"private Node getToolBar() \n\t{\n\t\treturn new HBox(15)\n {{\n setAlignment(Pos.CENTER_LEFT);\n queryText... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Create new String required chars validator that throws given exception on invalid parameter. | public static Validator<String> requiredChars(final BiFunction<String, StringRequiredCharsValidator, ? extends IllegalArgumentException> exception, final String... chars)
{
return requiredChars(chars, exception);
} | [
"@Test\n void passwordWithLessThanEightCharacters_returnsIllegalArgumentException() {\n\n String shortPassword = \"shO7t\";\n\n assertThrows(IllegalArgumentException.class,() -> checkString(shortPassword));\n }",
"public NotValidInputException(){\n super(\"Input parameter not valid.\");... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Prints name and classes taken. | public static void main(String[] args)
{
/**System.out.println("Name: Alexander Brannon");
System.out.println("Previous Computer Courses:");
System.out.println(" None");*/
float x = 0;
x = 10 / 4;
System.out.print(x);
} | [
"static void printClassNames(Class<?> cls) {\n System.out.println(\"getCanonicalName(): \" + cls.getCanonicalName());\n System.out.println(\"getSimpleName(): \" + cls.getSimpleName());\n System.out.println(\"getTypeName(): \" + cls.getTypeName());\n System.out.println(\"getName(): ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Copies the animations from another model into this model. Specifically, copies all motion from similarly named bones and copies in the "Anim" blocks at the top of the MDL for the newly added sections. In addition, any bones with significant amounts of motion that were not found to correlate with the contents of this mo... | public void addAnimationsFrom(EditableModel other) {
// this process destroys the "other" model inside memory, so destroy
// a copy instead
other = EditableModel.deepClone(other, "animation source file");
final List<AnimFlag> flags = getAllAnimFlags();
final List<EventObject> eventObjs = sortedIdObjects(Even... | [
"public void setupMotionViews() {\n int n = getChildCount();\n this.mModel.build();\n this.mInTransition = true;\n int layoutWidth = getWidth();\n int layoutHeight = getHeight();\n int arc = this.mScene.gatPathMotionArc();\n if (arc != -1) {\n for (int i =... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Deserialize into a new instnace of ActorName by reading from the given input stream. | public void readExternal(ObjectInput in)
throws IOException, ClassNotFoundException {
actorName = (Name) in.readObject();
} | [
"public T deserialize(InputStream input) throws IOException, IllegalArgumentException;",
"protected static Actor load(String name){\r\n try{\r\n fileIn = new FileInputStream(\"SaveFiles/Actors/\" + name);\r\n objectIn = new ObjectInputStream(fileIn);\r\n Actor actor = (Acto... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ renamed from: a | public final GridPagerSnapHelper mo22743a(int i) {
if (this.f25436a > 0) {
this.f25436a = i;
return this;
}
throw new IllegalArgumentException("row must be greater than zero");
} | [
"public interface C3511a {\n /* renamed from: a */\n void mo29057a(int i);\n }",
"interface C4511c {\n /* renamed from: a */\n void mo29775a();\n }",
"public interface ans {\n /* renamed from: a */\n void mo1174a();\n}",
"public interface C24712af {\n /* renamed from... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Build Binary Search Tree. 6 / \ 3 3 \ / 4 4 | public static void main(String[] args) {
SimpleTreeNode binaryTree = new SimpleTreeNode(6);
binaryTree.left = new SimpleTreeNode(3);
binaryTree.right = new SimpleTreeNode(3);
binaryTree.left.right = new SimpleTreeNode(4);
binaryTree.right.left = new SimpleTreeNode(4);
... | [
"public static TreeNode buildValidBST() {\n TreeNode root = new TreeNode(20);\n TreeNode node1 = new TreeNode(10);\n TreeNode node2 = new TreeNode(50);\n TreeNode node3 = new TreeNode(3);\n TreeNode node4 = new TreeNode(15);\n TreeNode node5 = new TreeNode(30);\n Tre... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Acquire the other 2 sides not : this parallel relationship. | public List<Segment> GetOtherSubsegmentSides(Parallel parallel)
{
List<Segment> segs = new ArrayList<Segment>();
segs.add(parallel.getSegment1());
segs.add(parallel.getSegment2());
return GetOtherSubsegmentSides(segs);
} | [
"public abstract AbstractGenome crossover(AbstractGenome partner);",
"@Override\n public void crossGenomes(Genome genomeA, Genome genomeB) {\n double geneA = genomeA.getGene(0);\n double geneB = genomeB.getGene(0);\n genomeA.setGene(0, geneB);\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Getter method for aResponse | public String getaResponse() {
return aResponse;
} | [
"public String getResponse() {\n return(response);\n }",
"public ResponseInfo getResponseInfo() {\n return this.responseInfo;\n }",
"public ResponseType getResponse() {\n\t\t\treturn localResponse;\n\t\t}",
"public ResponseMsgType getResponse(){\r\n return localRes... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
In lollipop, the native implementation was replaced with java this is a copy of the aosppie implementation | @Implementation(maxSdk = KITKAT_WATCH)
protected boolean nativeParse3339(String s) {
int len = s.length();
if (len < 10) {
throwTimeFormatException("String too short --- expected at least 10 characters.");
}
boolean inUtc = false;
// year
int n = getChar(s, 0, 1000);
n += getChar(s,... | [
"private NativeSupport() {\r\n\t}",
"@LayoutlibDelegate\n /*package*/ static Bitmap nativeCreateFromParcel(Parcel p) {\n Bridge.getLog().error(LayoutLog.TAG_UNSUPPORTED,\n \"AIDL is not suppored, and therefore Bitmaps cannot be created from parcels.\",\n null /*data*/);\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Change la valeur de operator | protected void setOperator(char c)
{
this.operator = c;
} | [
"public void setOperator(String val){ this.operator = val;\t}",
"public abstract void setOperator(int operator);",
"public void setOperator(Operator operator) {\n\n\t}",
"public void setOperator(String v){\n\t\ttry{\n\t\tsetProperty(SCHEMA_ELEMENT_NAME + \"/operator\",v);\n\t\t_Operator=null;\n\t\t} catch (Ex... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
constructors Create a new plan. | public CreateWaste() {
} | [
"public Plan()\n {\n\n }",
"public BayPlan() {\n \n }",
"public PlanoFornecimento()\r\n {\r\n create();\r\n }",
"public Plan createPlan(QueryData data, Transaction tx) {\r\n\t this.tx = tx;\r\n this.fields = (ArrayList<String>) data.fields();\r\n \r\n // Step 1: C... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
end method getRecord add record to file | public void addRecord( RandomAccessAccountRecord record )
{
if ( record.getAccount() == 0 )
return;
// delete record by setting account number to 0
try {
int accountNumber = record.getAccount();
// seek to record position
file.seek( ( accountNumber - 1 ) *
RandomAccessAccountRecord.size() );
// set account... | [
"int insert(AttachmentFile record);",
"int insert(FileStore record);",
"private void write(String record){\n // write the line\n currentFile.write(record);\n // if we are over the limit, create a new file\n if(currentFile.count > maxRecords){\n // close the current file\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ storico / Operazione: Inserisce Accertamenti Consente di inserire: Un accertamento Uno o più Subaccertamenti legati all'accertamento Altri accertamenti con i dati specificati in input. Per altri accertamenti si intendono gli eventuali accertamenti pluriennali legati all'accertamento principale. Si assume che t... | @WebMethod
@WebResult
InserisceStoricoImpegnoAccertamentoResponse inserisceStoricoImpegnoAccertamento(@WebParam InserisceStoricoImpegnoAccertamento request); | [
"public void inserirRegistroAtendimentoSolicitante(\r\n\t\t\tInteger idRegistroAtendimento, Integer idCliente,\r\n\t\t\tCollection colecaoEndereco, String pontoReferencia,\r\n\t\t\tString nomeSolicitante, boolean novoSolicitante,\r\n\t\t\tInteger idUnidadeSolicitante, Integer idFuncionario,\r\n\t\t\tCollection cole... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ add suite to test suite list | public static void addTestSuita(Item suita){
suitetest.add(suita);} | [
"void addTestSuites(List<TestSuiteList> testSuites);",
"public void attachSuite() {}",
"public void addTestSuite(Class testClass) {\n TestSuite root = new TestSuite(testClass.getName());\n for (String browser : this.browsers) {\n root.addTest(new SeleniumBrowserRunnerTestSuite(testClass... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Translates this VIL map to a Java map. | @Invisible
public java.util.Map<K, V> toMappedMap() {
java.util.Map<K, V> result = new HashMap<K, V>();
for (K k : keys()) {
result.put(k, get(k));
}
return result;
} | [
"public void toMap (Map map);",
"public static String getIANA2JavaMapping(String ianaEncoding) {\n String java = (String) encodingIANA2JavaMap.get (ianaEncoding.toUpperCase ());\n return java == null ? ianaEncoding : java;\n}",
"public PVMap(InputStream in)\n\t{\n\t\ttry\n\t\t{\n\t\t\tDocumentBuil... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Must be changed in part 2: / OK | @Override void checkWhetherArray(SyntaxUnit use) {
} | [
"@Override\n\tpublic void oku2() {\n\t\t\n\t}",
"protected void method_5557() {}",
"public static void Q22()\r\n\t{\r\n\t}",
"public void mo28221a() {\n }",
"private static void EX5() {\n\t\t\r\n\t}",
"public void mo1857d() {\n }",
"public void mo5201a() {\n }",
"@... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the string representing the author(s) for the cited object | public void setCreators(List <PersonName> creators){
this.creators = creators;
} | [
"public void setAuthor(Story s, String newAuthor);",
"public void setAuthor(String aStr)\n {\n addInfoDictValue(\"Author\", aStr);\n }",
"public void setAuthor(String newAuthor) { //Use of \"this\"\r\n this.author = newAuthor;\r\n }",
"public void setAuthors(String newVal) {\n if ((new... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
StockDataFeeder Last updated for Symbol Daily feeds | @Query("SELECT MAX(s.date) FROM StockData s WHERE s.symbol = :symbol")
public Date getLastUpdated(@Param("symbol") String symbol); | [
"public void lastStockUpdated(){\r\n SharedPreferences pref = getSharedPreferences(getString(R.string.pref_main), MODE_PRIVATE);\r\n\r\n long update = pref.getLong(getString(R.string.pref_stock_last_update), 0);\r\n if (update != 0){\r\n mTvLastUpdate.setText(Helpers.getSimpleDateTim... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
POST /productsetdetails : Create a new productSetDetails. | @PostMapping("/product-set-details")
public ResponseEntity<ProductSetDetailsDTO> createProductSetDetails(@Valid @RequestBody ProductSetDetailsDTO productSetDetailsDTO) throws URISyntaxException {
log.debug("REST request to save ProductSetDetails : {}", productSetDetailsDTO);
if (productSetDetailsDTO... | [
"public void createNewProduct() \n\t{\n\t\ttry {\n\t\t\tproductService.createProduct(currentNewProduct, currentSelectedSupplierId, currentCategoryId );\n\t\t\tMessages.addGlobalInfo(\"Create product details was successful.\");\n\t\t\tcurrentNewProduct = new Product();\n\t\t} catch(Exception e) \n\t\t{\n\t\t\tMessag... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test invalid trusted parameters which are not prefixed with 'oauth' 'xoauth' or 'opensocial'. | @Test
public void testTrustedParamsInvalidParameter() throws Exception {
serviceProvider.setCheckTrustedParams(true);
MakeRequestClient client = makeNonSocialClient("owner", "owner", GADGET_URL);
client.setTrustedParam("oauth_magic", "foo");
client.setTrustedParam("opensocial_magic", "bar");
clien... | [
"protected void verifyParameterLegality(Parameter... parameters) {\r\n for (Parameter parameter : parameters)\r\n if (illegalParamNames.contains(parameter.name))\r\n throw new IllegalArgumentException(\"Parameter '\" + parameter.name + \"' is reserved for RestFB use - \"\r\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the end time. | public void setEndTime(Date endTime) {
this.endTime = endTime;
} | [
"public void setEndTime()\n {\n endTime_ = new Date().getTime();\n recalc();\n }",
"public void setTimeEnd(Date timeEnd) {\r\n\t\tthis.timeEnd = timeEnd;\r\n\t}",
"public void setEndTime(int time){\n\t\tthis.endTime = time;\n\t}",
"public void setEndTime(Date time)\r\n\t{\r\n\t\tthis.endTi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
We can safely assume an element has only one type associated with it | public void serialize(final javax.xml.namespace.QName parentQName,
javax.xml.stream.XMLStreamWriter xmlWriter, boolean serializeType)
throws javax.xml.stream.XMLStreamException,
org.apache.axis2.databinding.ADBException {
java.lang.String namespace = parentQName.getNa... | [
"public default boolean isTypeElement() {\n return asTypeElement() != null;\n }",
"public abstract HTMLElementType getType();",
"@Override\n public InputTypeElement asTypeElement() {\n return (element instanceof TypeElement) ? environment.element(((TypeElement) element)) : null;\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Svuota il set dei sottoscrittori e ferma il server HTTP. | @Override
public void onStop()
{
eventSubscribers.clear();
http.stop();
} | [
"private void leggiSegnalazioniDaWeb() {\n\n new LeggiSegnalazioniTask(this).execute();\n\n\n\t}",
"public HttpTest() {\n urls = new Vector();\n urls.addElement(\"http://cds.cmsg.sun.com:80/serverscript/serverscript\");\n urls.addElement(\"http://www.sun.com/\");\n urls.addEleme... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Access modifiers changed, original: protected|final | public final void j() {
if (k()) {
boolean z;
MediaCrypto mediaCrypto;
e a;
String str = this.l.b;
if (this.m == null) {
z = false;
mediaCrypto = null;
} else if (this.d == null) {
throw new g... | [
"protected void method_5557() {}",
"@Override\n }",
"@Override\r\n public void publicando() {\n }",
"@Override\n public void extornar() {\n \n }",
"protected void method_2117() {\n }",
"@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}",
"protected abstrac... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
getNameSpace purpose. The NameSpaceInfo from the specified prefix | public synchronized NameSpaceInfo getNameSpace(String prefix) {
NamespaceInfo ns = catalog.getNamespaceByPrefix(prefix);
return ns != null ? new NameSpaceInfo( ns, catalog ) : null;
//NameSpaceInfo retNS = (NameSpaceInfo) nameSpaces.get(prefix);
//
//return retNS;
... | [
"public String getNameSpacePrefix() {\r\n/* 197 */ return this._nsPrefix;\r\n/* */ }",
"public String getNameSpacePrefix() {\r\n/* 503 */ return this._nsPrefix;\r\n/* */ }",
"public String getNamespacePrefix( );",
"public String lookupNamespaceURI(String prefix) {\n/* 2602 */ return ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Return the number of lines in the document. | public int numberOfLines(); | [
"public int getNumberOfLines() {\n if (document==null || document.getLength()==0) return 0;\n Element root=document.getDefaultRootElement();\n return root.getElementCount();\n }",
"public int getLineCount()\n {\n return getHereDoc().size();\n }",
"public int getLineCount()\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Draw the "ocean" background. | @Override
public void draw(Graphics2D g) {
g.setColor(Color.blue);
g.fillRect(0, 0, getWidth(), getHeight());
nemo.draw(g);
nemo2.draw(g);
// Draw our snail!
algorithm.draw(g);
// Move the fish!
fish1X -= 1;
fish2X -= 2;
//Draws Submarine
ringo.draw(g);
} | [
"void drawBackground(){\n\t\tg.setColor(Color.white);\n\t\tg.fillRect(0, 0, width, margin);\n\t\tg.setColor(Color.gray);\n\t\tg.fillRect(0, margin, width, road);\n\t\tg.setColor(Color.yellow);\n\t\tg.fillRect(0, margin+road, width, yellow);\n\t\tg.setColor(Color.gray);\n\t\tg.fillRect(0, margin + yellow + road, wid... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method adds a listener to the changes of IAPIProjectsManager's object | public void addAPIProjectListener(IAPIProjectManagerListener listener, String projectID, String version) throws RemoteException, ServiceException; | [
"@Override\n public void registerListener(ShowProjectsViewListener projectsView) {\n mListener = projectsView;\n }",
"private void registerLaunchListener() {\n// Project[] openProjects = ProjectManager.getInstance().getOpenProjects();\n// for (Project project : openProjects) {\n// ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
not important, we don't want drag & drop | @Override
public boolean onMove(RecyclerView recyclerView, RecyclerView.ViewHolder viewHolder, RecyclerView.ViewHolder target) {
return false;
} | [
"public boolean canDisableDrop() {\n/* 1599 */ return false;\n/* */ }",
"@Override\r\n public boolean mouseDragged(MouseEvent me){\r\n return false;\r\n }",
"public boolean isNoDrag() {\n/* 1897 */ return this.permissions.hasPermission(Permissions.Allow.NO_DRAG.getBit());\n/* */... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method should be exclusively used by DatabaseConnectionFactoryImpl to get a transaction aware version of a connection. If the connection is transaction aware then it will be realy returned if it is not involved in a pending transaction. This method is protected so that only classes from this package can access it. | protected void returnTransactionalConnection(
Connection cntDBConnection,
DatabaseConnectionFactoryImpl connectionFactory
)
{
// Many external connection pools already integrate with transaction
// managers so we don't have to do anything, just call the real
// co... | [
"protected abstract Connection getConnectionFromTransactionManager();",
"@Override\n\tpublic Connection getConnection() throws SQLException {\n\t\tlog.info(\"Returning Connection\");\n\t\treturn connection;\n\t}",
"protected final ConnectionWraper getConnection() throws SQLException {\n\n\t\t// Si se establecio... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Remove an IP address from a server. This does not release it back to GleSYS pool of free ips. The address will be kept on the account so that you can use it for other servers or the same server at a later time. To completely remove the IP address from this account, use removeFromServerAndRelease to do so | @Named("ip:remove")
@POST
@Path("/ip/remove/format/json")
@SelectJson("details")
@Consumes(MediaType.APPLICATION_JSON)
IpDetails removeFromServer(@FormParam("ipaddress") String ipAddress,
@FormParam("serverid") String serverId); | [
"public static void serverShutDown(){\n\t\tObject[] params = new Object[] { myIpAddress };\n\t\tXmlRpcHelper.SendToAllMachines(machines, \"RegisterHandler.removeMachineIp\", params);\n\t}",
"public void remove(String address);",
"public void unban(Client client) throws IOException {\r\n this.rcon.sendNoR... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Registers a listener that will be notified once the data is loaded. | public void registerListener(Callback appsStorageStatsListener) {
if (!mAppsStorageStatsListeners.contains(appsStorageStatsListener)) {
mAppsStorageStatsListeners.add(appsStorageStatsListener);
}
} | [
"public void addDataReceivedListener(IDataReceived listener)\n {\n listeners.add(listener);\n }",
"protected void registerListener() {\r\n\t}",
"private void registerListener() \r\n\t{\n\t}",
"public synchronized void addDataChangeListener(IDataChangeListener listener)\n {\n this.listener... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Invalidate the stack unwind | public void invalidateCache() {
synchronized (lock) {
unwound = null;
}
} | [
"public void checkScopeStackUndo(){\n checkScopeStack.undo();\n }",
"@Override\n\tpublic void restoreState() throws Exception {\n\t\tgetDecoratee().restoreState();\n\t}",
"private void cleanStack() {\n // See whether the current frame was incompatible with its start\n // state.\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
in XML, if the prefix is empty (:abc) do not add the ":" | public String toPrefixXML(String nsname) {
return toPrefix(nsname, false, true);
} | [
"private static final String getPrefix(Element e) {\n \tString qname = e.getTagName();\n int idx = qname.indexOf(':');\n if (idx < 0) return \"\";\n else return qname.substring(0, idx);\n }",
"boolean isUsePrefix();",
"com.walgreens.rxit.ch.cda.EnPrefix addNewPrefix();",
"Pr... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the value of the 'EPISODE_SELLING_ROTATION_ID' field. | public java.lang.Long getEPISODESELLINGROTATIONID() {
return EPISODE_SELLING_ROTATION_ID;
} | [
"@Nullable\r\n public final Long getRotationStringAsLong() {\r\n return getMediaInfo().getAsLong(StreamKind.Video, getStreamNumber(), Video.ROTATIONSTRING);\r\n }",
"public Number getSocietyId() {\r\n return (Number)getAttributeInternal(SOCIETYID);\r\n }",
"public long getReservationId()\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get all the bulk extract entities for a particular App and EdOrg. | private Iterable<Entity> getEdOrgBulkExtractEntities(String appId, String edOrgId, boolean isPublicData) {
NeutralQuery query = new NeutralQuery(new NeutralCriteria("tenantId", NeutralCriteria.OPERATOR_EQUAL,
getPrincipal().getTenantId()));
query.addCriteria(new NeutralCriteria("applica... | [
"@GET\n @Produces({ MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON })\n public List<TaskData> getEntities() {\n //datastore dump -- only do this if there are a small # of entities\n //same code as above method\n return getEntitiesBrowser();\n }",
"public ExtEntityIssuedIdBulkResponse fetchAll... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
standaloneask persessionchild dummy data types just for this sample | interface Keys {} | [
"public static void main(String[] args) {\n\t\t\n\t\tchildclass cd=new childclass();\n\t\tcd.getStringdata();\n\t\tcd.getData();\n\t\t\n\t\t\n\n\t}",
"public static void main(String[] args) {\n ChildClass pc = new ChildClass();\n // no rum time polymorphism parent class method will be called\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get the API client. | public ApiClient getApiClient() {
return apiClient;
} | [
"public ApiClient getApi(){\n return retrofit.create(ApiClient.class);\n }",
"public static HttpRestClient getClient() {\n return HttpRestClientHolder.INSTANCE;\n }",
"public static HttpClient getClient() {\r\n return client;\r\n }",
"private Client getClient() {\n String ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | public boolean esUsuarioGratuito() {
return this.tipoUsuario.esGratuito();
} | [
"@Override\n }",
"@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}",
"@Override\n public void extornar() {\n \n }",
"@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}",
"@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}",
"@Override\r\n\tpublic void wydaj() {\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
repeated .StringPoint p = 1; The list of points | java.util.List<de.qaware.chronix.converter.serializer.gen.StringProtocolBuffers.StringPoint>
getPList(); | [
"public static Point parsePoint(String p)\n {\n char[] chs = p.toCharArray();\n int index = -1;\n for(int i = 1; i<chs.length; i++)\n {\n if(chs[i] == ',')\n {\n index = i;\n break;\n }\n }\n if(index == -1)\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
optional string send_user_nickname = 7; | public boolean hasSendUserNickname() {
return ((bitField0_ & 0x00000020) != 0);
} | [
"void askNickname();",
"public void setuNickname(String uNickname) {\n this.uNickname = uNickname;\n }",
"public void setNickName(String name){\n\t\tthis.nickname = name;\n\t}",
"public void sendUserName();",
"String getNickname(int userId);",
"public String getNickname() {\n\t\treturn \"aaaa\"... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Display an essay question | public void display() {
io.writeLine(prompt);
} | [
"public String displayQuestion() {\n\t\t\n\t\t\n\t\treturn \"Question\";\n\t}",
"public void displayQuestion(){\n\t\tsuper.displayQuestion();\n\t\tdisplayOptions();\n\t}",
"public String getQuestionDisplay();",
"private void displayQuestion(Question q){\n\t\t((TextView)findViewById(R.id.question_tv_sreen)).se... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Author: NagarajuKasarla Method to verify website details on About screen | public void verifyWebSite(Client client) {
client.verifyElementFound("NATIVE", "xpath=//*[@id='customerSupport' and @text='"+getLangPropValue("supportWebsiteValue")+"']", 0);
client.verifyElementFound("NATIVE", "text=${patentWebsiteLabel}", 0);
client.verifyElementFound("NATIVE", "xpath=//*[@text='"+getLangPropVa... | [
"boolean hasAboutusUrl();",
"@Test\n public void goToAboutPageFromLandingPage() {\n\n // open first page as landing page and click on about link\n // verify opening of about page\n\n String pageTitle = goToLandingPage().clickAboutLink().getMainTitle();\n\n Assert.assertEquals(\"Mis ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | @Override
public int selectbookTotalCost() {
return dao.selectbookTotalCost(session);
} | [
"@Override\n }",
"@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}",
"@Override\n public void extornar() {\n \n }",
"@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}",
"@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}",
"@Override\r\n\tpublic void wydaj() {\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Removes all previously added prerequisites. | public TestFrameworkGroupBuilder prerequisitesClear() {
prerequisites.clear();
return this;
} | [
"public void clearDependentProjects() {\r\n \t\tthis.dependentProjects.clear();\r\n \t}",
"public void clearComponentDependencies() {\n componentDependencies.clear();\n }",
"public void removeDependencies(List<Service> obs_deps){\n\t\n\t this.services.removeAll(new HashSet(obs_deps));\n\t}",
... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Funcion que retorna true o falso segun existan o no registros que cumplan la condicion recibida por parametro | public boolean ExistRegistros(String _tabla, String _condicion){
ValorRetorno = false;
abrir();
try{
Cursor c = nBD.rawQuery("SELECT count(*) as cantidad FROM " + _tabla +" WHERE " + _condicion , null);
c.moveToFirst();
if(c.getDouble(0)>0)
ValorRetorno = true;
}catch(Exception e){
Log.v("Excepc... | [
"public boolean existe(Diagnostico diagnostico);",
"public boolean validarInstitucionUnica(){\r\n\t\tInstitucion iEncontrada = srvInstitucion.buscarPorIdentificacion(institucion.getIdentificacion());\r\n\t\tif(iEncontrada == null){\r\n\t\t\treturn true;\r\n\t\t}else{\r\n\t\t\t/* Se considera el caso en el que ya ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Extract myself from my parent. | protected void extract()
{
if( _parent != null )
{
SpItem[] spItemA = { this } ;
_parent.extract( spItemA ) ;
}
} | [
"public BTPosition<E> getParent() { return parent; }",
"ElementProcessor getParent();",
"public T getParent();",
"public abstract S getParent();",
"public Item getParent() {\n\t\treturn parent;\n\t}",
"public ParseNode parent() { return parent; }",
"@Override\r\n\tpublic Object getParent() {\n\t\treturn... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
The service is starting, due to a call to startService() | @Override
public int onStartCommand(Intent intent, int flags, int startId) {
return mStartMode;
} | [
"@Override\n\tprotected void startService() {\n\t\t\n\t}",
"@Override\n\tprotected void startService() {\n\n\t}",
"public void start(){\n this.setServiceState(STATE.RUNNING);\n }",
"public static void \n onStart() \n {\n try {\n if(sInstance != null) \n\tthrow new IllegalStateException\n\t... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method is not absolutely consistent with equals if the values are not Comparablesthatcanbecompared. | @Override
public int compareTo(final ITerm<? extends Object, ? extends IAssignment> o) {
final int classNameCompared =
this.getClass().getCanonicalName().compareTo(o.getClass().getCanonicalName());
if (classNameCompared != 0) {
return classNameCompared;
}
final Constant<?, ?> ot... | [
"@Test\n public void testEquals() {\n MyComparableObjectSeries s1 = new MyComparableObjectSeries(\"A\");\n MyComparableObjectSeries s2 = new MyComparableObjectSeries(\"A\");\n assertTrue(s1.equals(s2));\n assertTrue(s2.equals(s1));\n\n // key\n s1 = new MyComparableObjec... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Triggers the processing of both the start and end of the tag. | public String doEnd() throws JspException {
if (tagStack.isEmpty() || !tagClass.isInstance(tagStack.peek())) {
LOG.error("Tag nesting error - expecting {} but got tag stack {}", tagClass, tagStack);
if (null != jspLog)
jspLog.error("Tag nesting error - expecting {} but go... | [
"private void startTag(){\n startTagBegin();\n }",
"@Override\n public boolean onTagStart(String tag, FutureParserContext ctx) {\n return true;\n }",
"void start(TagSub adapter) throws HtmlWalkerException;",
"@Override\n protected Object processStart(Tag tag) throws IOExceptio... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Does the set contain the point p? | public boolean contains(Point2D p) {
return get(p);
} | [
"public boolean contains(Point2D p) {\n return mSet.contains(p);\n }",
"public boolean contains(Point2D p) {\n\t\t if (p == null) throw new NullPointerException(p +\" can't be null!\");\r\n\t\t return set.contains(p);\r\n\t }",
"public boolean contains( Point p );",
"public boolean contains(Point2... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
KiBeam/Data.java . Generated by the IDLtoJava compiler (portable), version "3.2" from KiBeam.idl Saturday, April 2, 2011 8:04:08 PM CEST | public interface Data extends DataOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity
{
} | [
"public Object getData() { return pData; }",
"@java.lang.Override\n\t\t\t\tpublic com.google.protobuf.ByteString getData() {\n\t\t\t\t\treturn data_;\n\t\t\t\t}",
"public byte[] getData()\r\n/* 49: */ {\r\n/* 50: 94 */ return this.data;\r\n/* 51: */ }",
"com.google.protobuf.ByteString\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
required int32 rs = 1; | public Builder clearRs() {
bitField0_ = (bitField0_ & ~0x00000001);
rs_ = 0;
onChanged();
return this;
} | [
"PrimitiveTypeInt createPrimitiveTypeInt();",
"int getI32ValCount();",
"int getVint32();",
"public int prepareInt() {\n return 0;\n }",
"int getSrval();",
"Integer mo58684d();",
"static Integer m3() {\n return 99; // autoboxing 99 into an Integer.\n }",
"public int R(){\n return R;\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
actionPerformed method that takes the ActionEvent event currently form the ControlPanel class to assign operations to each button. Buttons are ran by a central control statement of if else statements ending with the exit option | @Override
public void actionPerformed(ActionEvent event) {
try{
//Get the title of the sequence from infoPanel
sequDesc = infoPanel.getSequenceDescription();
//Get the input sequence from the translationPanel
sequBody = translateP... | [
"public void actionPerformed(ActionEvent e){\n\t\tfor (int i=0; i<jbnButtons.length; i++){\n\t\t\tif(e.getSource() == jbnButtons[i]){\n\t\t\t\tswitch(i){\n\t\t\t\t\tcase 0:\n\t\t\t\t\t\taddDigitToDisplay(i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 1:\n\t\t\t\t\t\taddDigitToDisplay(i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcas... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
optional string studentId = 3; | java.lang.String getStudentId(); | [
"Optional<Student> getStudById(long studentId);",
"public int getID ()\n {\n return student_id;\n }",
"public void setStudentId(int newStudentId) {\r\n studentId = newStudentId;\r\n }",
"public String getstudentid(){\r\n \r\n return gradeItemStudentid;\r\n }",
"public Stri... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Ensure that the background thread is terminated with the Activity. | @Override
protected void onDestroy() {
super.onDestroy();
mThread.quit();
} | [
"public final void exit() {\n if (Thread.currentThread() != this) {\n log.warn(\"exit() - exit app thread asynchronously\");\n mWorkerHandler.sendEmptyMessage(ACTION_WORKER_THREAD_QUIT);\n return;\n }\n\n mReady = false;\n\n // TODO should remove all pend... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This adds a property descriptor for the Dependency feature. | protected void addDependencyPropertyDescriptor(Object object) {
itemPropertyDescriptors.add
(createItemPropertyDescriptor
(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
getResourceLocator(),
getString("_UI_RightType1_dependency_feature"),
getString("_UI_PropertyDescriptor_... | [
"protected void addDependencyPropertyDescriptor(Object object) {\n\t\titemPropertyDescriptors.add\n\t\t\t(createItemPropertyDescriptor\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\n\t\t\t\t getResourceLocator(),\n\t\t\t\t getString(\"_UI_LeftType2_dependency_feature\"),\n\t\t\t\t g... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Initialize your data structure here. | public Logger() {
hmap = new HashMap<>();
} | [
"@Override\n\tpublic void initData() {\n\n\t\t\n\t}",
"private void initializeData() {\n employees.put(1, \"Amos Burton\");\r\n employees.put(2, \"Julie Mao\");\r\n employees.put(3, \"Alex Kamal\");\r\n employees.put(4, \"James Holden\");\r\n employees.put(5, \"Josephus Miller\"... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Instantiates and sets the parameters for the required modifiers. | public void setModifierParameters(List<Settings> modifierParameters) {
if (modifierParameters != null && !modifierParameters.isEmpty()){
Modifier modifier = null;
//create instances
int nbModifier = 0;
for (Settings modifierSettings : modifierParameters){
try {
//instantiate and set titl... | [
"protected abstract void initParams();",
"private void initParams() {\n }",
"public abstract void initializeParameters();",
"public void declareParams() {\n\r\n this.fGmFormatParam = new GeneSetMatrixFormatParam();\r\n this.fChipsTargetParam = new ChipChooserMultiParam(\"chip_target\"... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Complete the 'numberOfPaths' function below. The function is expected to return an INTEGER. The function accepts 2D_INTEGER_ARRAY a as parameter. | public static int numberOfPaths(List<List<Integer>> a) {
// Write your code here
int totalPaths = 0;
if(a.get(0).get(0) == 0) {
return 0;
}else if(a.size()==1 && a.get(0).size()==1){
return 1;
}
if(a.get(0).size()>1) {
List<List<Integer>> temp = new ArrayList<>();... | [
"@Override\n public long findNumberOfPaths() {\n double numberOfPaths = 1;\n\n //GridSize == k in the formula\n //PathLength == n in the formula (n == 2k by definition)\n final long pathLength = 2 * gridSize;\n for (int i = 0; i < gridSize; i++) {\n numberOfPaths *= ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets parameter values from command line options. | static void initParams(ParseConfig ht) {
params.mfactor = ht.getOption("grid.mfactor", params.mfactor);
params.maxlevel = ht.getOption("grid.maxlevel", params.maxlevel);
} | [
"public void setCommandLineArgs(String[] args);",
"public void setCommandLine(Map<String, String> args);",
"private void setSearchParameters(CommandLine commandLine)\n throws IllegalArgumentException, IOException, SearchParameterException, InvalidRunStateException {\n // options that are prese... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Search the memory cache by a unique key. | public Bitmap get(String key){
if(key != null)
return cache.get(key);
return null;
} | [
"boolean search(int key);",
"CacheEntry lookupEntry(Object key);",
"@Override\n\tpublic Record getRecord(String key) throws RecordNotFoundException{\n\t\tisLoading = false;\n\t\tisWalking = false;\n\t\tisRandomAccess = true;\n\t\tsearchCounter = 0;\n\t\tint code = getHash(key);\n\t\t\n\t\tfor(Record rec : data[... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
does the system percolate? | public boolean percolates() {
for (int i = n; i > 0; i--) {
if (root(0) == root(sites.length - i)) {
return true;
}
}
return false;
} | [
"public boolean percolates() // does the system percolate?\n {\n return isPercolate;\n }",
"public void chocolate() {\n\t\tmda.dispose_drink(2);\n\t}",
"public void cry() {\n\t}",
"@Override\r\n\tpublic void doMakeup() {\n\t\tSystem.out.println(\"rose powder applied... \");\r\n\t}",
... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
[5] expr = LPAREN expr.e RPAREN | public Symbol reduce(Symbol[] _symbols, int offset) {
final Symbol _symbol_e = _symbols[offset + 2];
final Expr e = (Expr) _symbol_e.value;
return e;
} | [
"private Expr parseExpression() {\n\t\tbegLog(\"Expression\");\n\t\tExpr op1 = parseAssignmentExpression();\n\t\tExpr expr = parseExpressionPrime(op1);\n\t\tendLog();\n\t\treturn expr;\n\t}",
"IExpr genParen(IExpr expr);",
"Tree parExpression() {\n\t\tint pos = S.pos;\n\t\taccept(LPAREN);\n\t\tTree t = expressi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Draw the point when selected | public abstract void drawSelected(Graphics2D g2); | [
"@Override\n\tprotected void drawPoint(DrawContext dc, PickSupport pickCandidates) {\n\t\tsuper.drawPoint(dc, pickCandidates);\n\t}",
"private void onPlotClicked(PointF point) {\n if (plot.getGraphWidget().getGridRect().contains(point.x, point.y)) {\n Number x = plot.getXVal(point);\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
method for pick picture from gallary | void dispatchPickPictureIntent(Activity activity, int requestCode){
Intent takePictureIntent = new Intent(Intent.ACTION_PICK, android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI);
// Ensure that there's a gallary activity to handle the intent
if (takePictureIntent.resolveActivity(acti... | [
"private void choosePicture() {\n Intent getPicture = new Intent(\n Intent.ACTION_PICK,\n android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI);\n startActivityForResult(getPicture, GET_FROM_GALLERY);\n }",
"private void pickImage() {\n\t\ttheImageFile = Ope... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Action for 'NO' Button | public void onClick(DialogInterface dialog, int id) {
dialog.dismiss();
} | [
"public static void btnNoPressed() {\r\n\t\tselection = JOptionPane.NO_OPTION;\r\n\t\tpropagating = false;\r\n\t\tdialog.dispose();\r\n\t}",
"public void clickedNo() {\n\t\t\n\t\t// Get rid of Yes/No buttons now that they have been clicked\n\t\tgetObject(\"yes\").setVisible(false);\n\t\tgetObject(\"no\").setVisib... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Make sure both the methods are finished before dismissing the entire alert | private void checkDialog() {
if (!(isLedRunning || isVibrationRunning)) {
alert.dismiss();
isRunning = false;
finish();
}
} | [
"public static void dismiss() \r\n\t{\n\t\talert.dismiss();\r\n\t}",
"@Override\r\n\t\t\tpublic void onFinish() {\n\t\t\t\tsuper.onFinish();\r\n\t\t\t\tdialog.dismiss();\r\n\t\t\t}",
"@Override\n public void doConfirm() {\n onlyAlertDialog.dismiss();\n }",
"@Override\n\tpu... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
6 mark task4 as completed | public void markTaskFourAsCompleted() {
$$("#todo-list li").findBy(exactText("task4")).find(".toggle").click();
} | [
"private void doneMultipleTasks() {\n Task doneTask;\n Collections.sort(_taskNumbers);\n for (int i = 0; i < _taskNumbers.size(); i++) {\n doneTask = markTaskAsDone(_taskNumbers.get(i) - 1 - i);\n feedbackCompletedTasks(doneTask, i);\n }\n setDisplay(_msgComp... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Create a constructor that calls super and passes the name of this class | public SunshineSyncIntentService() {
super(SunshineSyncIntentService.class.getName());
} | [
"private SingleClass(String name) {\n this.name=name;\n }",
"public CTAStation(String name) {\n super(name); // Hello super() call\n }",
"public Apple(){//first line of any constructor is automatically\n //calling super() ,if we do not call any super()!!!!!\n\n //I want to reus... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gives the value of an item that might be sold to a shopkeeper by a player/mob. Takes current stock into account. | public ShopKeeper.ShopPrice pawningPrice(MOB buyerShopM, MOB sellerCustM, Environmental product,
ShopKeeper shopKeeper, CoffeeShop shop); | [
"long getSellValue(@Nonnull ItemInfo info);",
"public static void valueShopSellItem(Client c, int item) {\r\n\t\tString result = \"\";\r\n\t\tif (shops[c.shopOpen].buyAll == false || shops[c.shopOpen].buyBack == false) {\r\n\t\t\tresult = \"This shopkeeper doesn't buy items.\";\r\n\t\t}\r\n\t\tif (shops[c.shopOpe... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates a new noframes tag with no parent. | public NoFrames()
{
super("noframes");
} | [
"public void noframes(Attributes atts) throws SAXException {\n startSimpleElement(NOFRAMES,atts);\n }",
"public static com.google.gwt.user.client.Element createIFrame() {\n return Document.get().createIFrameElement().cast();\n }",
"public NoFrames()\n {\n //set default attributes here\n _el... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Step1: Counter to keep the track the number of modifications | public static boolean checkPossibility(int[] nums) {
int count = 0;
for(int i = 0; i < nums.length - 1; i++) {
//Step 2: Look for cases when the ith element is lower than i + 1 element
if(nums[i] > nums[i+1]){
++count;
//Step 3: If count is more th... | [
"@Override\n\tpublic void incrementCheckCounter() {\n\t\t\n\t}",
"long updateCounter();",
"void countMe(){\n counters.increaseValueByOne(COUNTER_INDEX);\n }",
"public static void incrementCounter() {\r\n\t\tcounter += 1;\r\n\t}",
"public void addCount() {\n this.count ++;\n }",
"public... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
optional .com.heme.logic.module.SetPasswdReq SetPasswdReqInfo = 46; | public Builder setSetPasswdReqInfo(
com.heme.logic.module.Data.SetPasswdReq.Builder builderForValue) {
if (setPasswdReqInfoBuilder_ == null) {
setPasswdReqInfo_ = builderForValue.build();
onChanged();
} else {
setPasswdReqInfoBuilder_.setMessage(builderForValue.bu... | [
"@Override\r\n public IMResponse modifyPasswd(ModifyPasswdPojo pojo) {\n return null;\r\n }",
"public void passPassword(String pswd);",
"public void setPassword(String string)\r\n/* 91: */ {\r\n/* 92: 90 */ this.password = string;\r\n/* 93: */ }",
"public void pwdInit(TSUser user, String... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Set a new items list with selecting a item | void setItems(@NonNull List<E> items, int selectedIndex); | [
"public void setReturnedItems(Object message) {\r\n\r\n\t\tproducts = (ArrayList<Item>) ((Msg) message).newO;\r\n\t\t// String ids[] = new String[products.size()];\r\n\t\tString names[] = new String[products.size()];\r\n\t\t// float price[] = new float[products.size()];\r\n\t\t// float instock[] = new float[product... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
For Android > 4.1.1 | public void openFileChooser(ValueCallback<Uri> uploadMsg, String acceptType, String capture) {
openFileChooser(uploadMsg, acceptType);
} | [
"int m58304k() {\n return VERSION.SDK_INT;\n }",
"private static boolean m4837f() {\n return Build.VERSION.SDK_INT >= 24;\n }",
"private static String m6487d(Context context) {\n try {\n return context.getPackageManager().getPackageInfo(context.getPackageName(), 16384).vers... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Setter for bean injection | public void setDao(SynchronizableEntityDao dao) {
this.dao = dao;
} | [
"@Override\n\tpublic void inject() {\n\t}",
"void inject(HorvikContainer container, Bean<T> bean, Object instance, Contextual contextual);",
"@PostConstruct\n\tpublic void initBean() {\n\t}",
"public void injectByField() throws Exception {\n\t\tProperties properties = new Properties();\n\t\tproperties.load(Co... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the type of refund. full (current rate): A full refund of the amount paid at the current rate. full (fixed rate): A full refund of the amount paid at the fixed rate. Note: deprecated refund implementation only. partial: Part of the invoice is being refunded, rather than the full invoie amount. underpayment: The pa... | @JsonProperty("type")
public void setType(final String type) {
this.type = type;
} | [
"public void setRefundAmount(AmountType refundAmount) {\n\t this.refundAmount = refundAmount;\n\t}",
"public void setRefund(BigDecimal refund) {\n this.refund = refund;\n }",
"public void setRefundRequired(Boolean refundRequired) {\n this.refundRequired = refundRequired;\n }",
"public v... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ renamed from: n | public boolean mo8708n() {
return C0000a.m8a(this.f3764n, 0);
} | [
"public int n(){\n \t\t\treturn n;\n \t\t}",
"private static int newSize(int n) {\n int res = 1;\n while (res < n) res*=2;\n return res;\n }",
"public int nthUglyNumber(int n) {\n PriorityQueue<Integer> queue = new PriorityQueue<>();\n for(int i = 1; i <= 1690; i++) {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates a new Transform with the parameter Transform as its parent | Transform( Transform parent,
float a11, float a12, float a13, float a14,
float a21, float a22, float a23, float a24,
float a31, float a32, float a33, float a34
)
{
setParent(parent);
this.a11 = a11; this.a12=a12; this.a13=a13; this.a14=a14;
this.a21 = a21; this.a22=a22; this.a23=a23; this.a24... | [
"public Transform(GameObject parent) {\n this.topPos = this.size = Vector2.Zero();\n this.botPos = this.topPos.add(this.size);\n rotatedPos = topPos;\n rotatedSize = size;\n this.rot = 0;\n gameObject = parent;\n }",
"public Transform(T object, Transform<T> parent, Transform<T> orig){\n\t\tthis... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__XListLiteral__Group_3__1" $ANTLR start "rule__XListLiteral__Group_3__1__Impl" InternalStubbrLang.g:34693:1: rule__XListLiteral__Group_3__1__Impl : ( ( rule__XListLiteral__Group_3_1__0 ) ) ; | public final void rule__XListLiteral__Group_3__1__Impl() throws RecognitionException {
int stackSize = keepStackSize();
try {
// InternalStubbrLang.g:34697:1: ( ( ( rule__XListLiteral__Group_3_1__0 )* ) )
// InternalStubbrLang.g:34698:1: ( ( rule__XListLiteral_... | [
"public final void rule__XListLiteral__Group_3_1__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../jpaqldsl.ui/src-gen/jpaqldsl/ui/contentassist/antlr/internal/InternalJPAQLDsl.g:18786:1: ( rule__XListLiteral__Group_3_1__1__Impl )\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
do nothing, contexts will be closed through fetch projection | @Override
public void onSuccess(@Nullable List<TaskResult> result) {
} | [
"public void fetch() {\n\t\t studentDao.fetch();\n\t}",
"@Override\n\tpublic void generateFetchMode(Criteria criteria) {\n\t\t\n\t}",
"@Override\n protected void doPrefetched() {\n }",
"public void fetchGeofences() {\r\n mGeofenceList.clear();\r\n ArrayList<GeofenceObject> mGeoObjectList =... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | @Override
public void addPirateDetails(PirateDetails pirateDetails) {
pirateDetailsDao.addPirateDetails(pirateDetails);
} | [
"@Override\n }",
"@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}",
"@Override\n public void extornar() {\n \n }",
"@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}",
"@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}",
"@Override\r\n\tpublic void wydaj() {\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates a new instance of ParametriRicerca | public ParametriRicerca() {
} | [
"private Carro crearCarro() {\n return new Carro(\n vista.getTxtPlaca().getText(),\n vista.getTxtMarca().getText(),\n vista.getTxtModelo().getText(),\n Double.parseDouble(vista.getTxtPrecio().getText())\n );\n }",
"public Prova() {\r\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
repeated .protobuf.Person.PhoneNumber phoneNumber = 4; | protobuf.DataInfo.Person.PhoneNumberOrBuilder getPhoneNumberOrBuilder(
int index); | [
"data.PersonProto.PersonOrBuilder getPersonOrBuilder();",
"com.google.protobuf.StringValueOrBuilder getContactPhoneNumberOrBuilder();",
"com.google.protobuf.StringValue getContactPhoneNumber();",
"java.util.List<? extends proto.EmployeeData.Employee.PhoneNumberOrBuilder> \n getPhoneNumberOrBuilderList(... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |