query
stringlengths
8
1.54M
document
stringlengths
9
312k
negatives
listlengths
19
20
metadata
dict
Supporting method for testing the transformation test case.
private void doTransformTest(String original, String expected) throws Exception { DOMProtocol protocol = createProtocol(); Document originalDOM = helper.parse(original); Document expectedDOM = helper.parse(expected); XHTMLBasic_MIB2_1Transformer transformer = ...
[ "@Test\n public void transform()\n {\n }", "public void testTransformObject() throws Exception\n {\n StringBuilder buf = new StringBuilder(\"A test string\");\n assertEquals(\"Wrong transformation\", \"A test string\", transformer\n .transform(buf, setUpContext()));\n }...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Check to see we have the necessary permissions for this app.
public static boolean hasCameraPermission(Activity activity) { return ContextCompat.checkSelfPermission(activity, Manifest.permission.CAMERA) == PackageManager.PERMISSION_GRANTED; }
[ "private void checkPermissions() {\n for (String perm : permissions) {\n if (ContextCompat.checkSelfPermission(MainActivity.this, perm) != PackageManager.PERMISSION_GRANTED) {\n permissionsNeeded.add(perm);\n }\n }\n if (permissionsNeeded.size() > 0) {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public EconomyResponse depositPlayer(OfflinePlayer arg0, String arg1, double arg2) { return null; }
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
public List loginVerify(String user, String pass) { return loginUserDao.loginVerify(user, pass); // return null; }
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.
@SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this); this.setLayout(layout); layout.setHorizontalGroup( lay...
[ "public StForm() {\n initComponents();\n }", "public CineForm() {\n initComponents();\n }", "public javaform() {\n initComponents();\n }", "public EditDemographicForm() {\n initComponents();\n }", "public FightForm() {\n initComponents();\n }", "public For...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Calls onSensorEvent from gameView if the accelerometer detetcs acceleration
@Override public void onSensorChanged(SensorEvent event) { if(event.sensor.getType() == Sensor.TYPE_ACCELEROMETER) { gameView.onSensorEvent(event); } }
[ "public void onSensorChanged(SensorEvent event){\n\n\n final float alpha = 0.8f;\n final double SMV = 50.0f;\n // Isolate the force of gravity with the low-pass filter.\n gravity[0] = alpha * gravity[0] + (1 - alpha) * event.values[0];\n gravity[1] = alpha * gravity[1] + (1 - alph...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
System.out.println(Vigenere.ceasarShiftN("ABCDE", 1)); String[] test = Vigenere.partitionString("testarlite", 5); System.out.println(test[0] + " " + test[1]); System.out.println(Vigenere.encrypt("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz", "B"));
public static void main(String[] args) { String temp = Vigenere.encrypt("HELLOMYNAMEISMATTISANDIAMFUCKINGGREATATLEASTSOMETIMESMAYBEIAMTRYINGTOWRITEALONGASSTEXTBUTITDOESNOT" + "SEEMTOBECOMEVERYLONGATALLBUTMAYBEITWILLWORKANYWAYBUTITWILLPROBABLYNOTANDNOWTHEFREAKINGFIREFOXMASTERPASSWORDPIEC...
[ "@Test\n public void testShiftLineLettersForward3() {\n String description = \"Shift lowercase word forward 1 with no wraparound\";\n String actual = Cipher.shiftLineLettersForward(\"testing\",1);\n assertEquals(\"uftujoh\", actual, description);\n }", "String cipher();", "public Stri...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Check whether all the flags in the specified Flags object are present in this Flags object.
public boolean contains(Flags f) { // Check system flags if ((f.system_flags & system_flags) != f.system_flags) return false; // Check user flags if (f.user_flags != null) { if (user_flags == null) return false; Enumeration e = f.user_flags.keys(); while (e.hasMoreElements()) { if (!user_f...
[ "public static boolean isSet(int flags, int mask) {\n \t\treturn (flags & mask) == mask;\n \t}", "public boolean containsAll(EnumerationType ... items) {\r\n boolean ok = true;\r\n for (int i = 0; i < items.length; i++) {\r\n ok = contains(items[i]);\r\n }\r\n return ok;\r\n }", "public boolea...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Write code here that turns the phrase above into concrete actions throw new PendingException();
@Then("^I shouldnt be able to book a room$") public void i_shouldnt_be_able_to_book_a_room(DataTable arg1) throws Throwable { table = arg1.raw(); String hotel = table.get(0).get(1); String room = table.get(1).get(1); WebElement element; WebDriverWait wait = new WebDriverWait(driver,10); /////////////...
[ "@Given(\"^user enter the choice$\")\r\npublic void user_enter_the_choice() throws Throwable {\n throw new PendingException();\r\n}", "@Then(\"^So that I can recommend the type of care to give their animals$\")\n\tpublic void so_that_I_can_recommend_the_type_of_care_to_give_their_animals() throws Throwable {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ Add a new set of Series from a given LevelResult, marking the given ones as shown
public void parseLevelResult(LevelResult result, Map<String, String> seriesNameMapping, double xScale, Vector<String> selectedColumns) { boolean mustRescaleYValues = false; //if we find a column whose name is equal to my constant MAX_Y_STRING, two things can happen: //1. maxYValue == null, then we update i...
[ "private void updateSeries() {\n\t\tif (!isEmpty()) {\n\t\t\tList<GlucoseRecord> records = getRecords();\n\t\t\t// Clear the series\n\t\t\tclearSeries(series);\n\t\t\t// And add back to it\n\t\t\tfor (GlucoseRecord record : records) {\n\t\t\t\tLong timestamp = record.getBloodSugarTimestamp();\n\t\t\t\tInteger blood...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
The execution state of the ScanRun. .google.cloud.websecurityscanner.v1alpha.ScanRun.ExecutionState execution_state = 2;
public Builder clearExecutionState() { bitField0_ = (bitField0_ & ~0x00000002); executionState_ = 0; onChanged(); return this; }
[ "public final String getExecutionStatus()\n {\n return executionStatus;\n }", "public Integer getRunstate() {\n return runstate;\n }", "public com.aiflow.proto.Message.StateProto getExecutionState() {\n @SuppressWarnings(\"deprecation\")\n com.aiflow.proto.Message.StateProto result = co...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the status collection.
public Collection<ICustomerStatusDescription> getStatusCollection();
[ "public List<Status> getStatusList() {\r\n return hibernate.createCriteria(Status.class).list();\r\n }", "public List<Status> allStatus();", "ArrayList<Status> getStatusList()\n {\n return mStatus;\n }", "public Set<Status> getStatuses() {\n return allStatuses;\n }", "public...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method sets the value of the database column wf_module_port.BIND_CHAR_ID:Coloured
public void setBindCharIdColoured(boolean bindCharIdColoured) { this.bindCharIdColoured = bindCharIdColoured; }
[ "public native void\tdefineOutputBindCursor(String variable);", "public void setBindStatus(String bindStatus) {\n this.bindStatus = bindStatus;\n }", "public void setLBR_Boleto_ID (int LBR_Boleto_ID);", "public void setCustomBindVariable(String name, Object value) {\n customBindVariables.put(name...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Removes a node from the linkedlist
private void removeNode(Node node) { if (node.previous != null) // sets the previous node's "next pointer" to the next node node.previous.next = node.next; else // sets the head to the next node if it is the first node head = node.next; if (node.n...
[ "public void remove(Node node);", "public void remove() {\n\t\tNode node = null;\n\t\t\n\t\tif(head == null) throw new NoSuchElementException();\n\t\t\n\t\tif(head.next !=null) {\n\t\t\tnode = head.next;\n\t\t}\n\t\thead = node;\n\t}", "public void remove() {\r\n\t\tNode current = this.head;\r\n\t\tNode previou...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Instantiate the general decimation class.
public DecTTbranch(TauModel finModel, ModConvert convert) { this.finModel = finModel; this.convert = convert; dec = new Decimate(); }
[ "private DSPStaticCalculator( ) {\r\n super();\r\n }", "public Discrete() {\n }", "private DecisionManager() {\n }", "private Calc() {\r\n }", "public DiscountImpl() {\n }", "private XMath()\n\t{\n\t}", "public Derivative(){\n //this is the class\n \n }", "public Derivative(...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Lets us create a mock of the repository we have in mind
@SuppressWarnings("WeakerAccess") public interface End { /** * Tells the builder that it is now time to mock the given repository interface using the * configuration provided thus far. * * @param repositoryInterface the repository interface to mock * @param <E> the type of the repository * @return ...
[ "@Before\n private AdminRepo getMockedAdminrepo(){\n AdminRepo adminRepoMock = Mockito.mock(AdminRepo.class);\n when(adminRepoMock.existsByAdminEmail(anyString())).thenReturn(true);\n return adminRepoMock;\n }", "ERepository createERepository();", "Repository localRepo();", "@Test \...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/////////////////////////////////////////////////////////////////////////// instance methods An sub command or menu with the given id is added to this menu.
@Override protected void add(final long _sortId, final long _id) { final Command command = Command.get(_id); if (command == null) { final Menu subMenu = Menu.get(_id); add(_sortId, subMenu); } else { add(_sortId, command); } }
[ "public MainMenu(String id) {\n\t\tsuper(id);\n\t}", "private void addMenu() {\r\n\t\tadd(menuFile);\r\n\t\tadd(menuEdit);\r\n\t\tadd(menuCamera);\r\n\t\tadd(menuHelp);\r\n\t}", "void addMenu(Menu menu, LocationParameters params);", "void addMenu(String sMenu);", "public ModOptions addSubOption(String id, S...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Makes a shallow copy of the mutation object.
public BatchMutation<K> makeCopy() { return new BatchMutation<K>(keySerializer, mutationMap, countersMutationMap); }
[ "Object shallowCopy();", "public Update cloneShallow() {\n return (Update)cloneShallowContent(new Update());\n }", "public AbstractSyntaxTree copy() {\n Cloner cloner = new Cloner();\n cloner.dontClone(Context.class);\n cloner.dontClone(Z3Object.class);\n cloner.dontClone(Expr.class);\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Persister le nouveau client
public void newMachine(Machine m){ JpaUtil.creerEntityManager(); JpaUtil.ouvrirTransaction(); machineDao.create(m); JpaUtil.validerTransaction(); JpaUtil.fermerEntityManager(); }
[ "public static void SaveAutoClient() {\r\n String PATH = null;\r\n try {\r\n PATH = new java.io.File(\".\").getCanonicalPath() + \"/src/modules/users/client/model/files/json/client.json\";\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n try {...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Method to display all the products.
public void displayAllProducts(List<String> orderDetails){ Customers customer = getCustomer(Integer.parseInt(orderDetails.get(0))); List<Products> allProducts = this.entityManager.createNamedQuery("ReturnAllProducts", Products.class).getResultList(); if (allProducts.size() == 0) { ...
[ "public void printAllProducts()\n {\n manager.printAllProducts();\n }", "@GetMapping(\"/all\")\r\n public List<Product> getAllProducts() {\r\n\treturn productService.getAllProducts();\r\n }", "public List<Product> getAll() {\n return productDAO.findAll();\n }", "public List<Produc...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
constructs an instruction with the given operand types representing the given sequence of actions
public ParselessInstruction(InstructionOperandTypes instructionOperandTypes, LittleManAction... littleManActions) { this(instructionOperandTypes, new LittleManActionSequence(littleManActions)); }
[ "void instruction(int opcode, String type);", "public InstructionHandle addInstruction(String instruction, String... args) {\n Type type;\n switch (instruction) {\n case \"new\":\n return append(factory.createNew(args[0]));\n case \"dup\":\n String...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the text box control associated with the given automation id.
public TextBox getTextBoxByAutomationId(final String id) throws AutomationException { return new TextBox( new ElementBuilder( this.getElementByAutomationId(id, ControlType.Text))); }
[ "public TextField getTextField(String idTxt, AnchorPane pane) {\n return (TextField) pane.lookup(idTxt);\n }", "private static SelenideElement findDescriptionTextBox() {\n return $(By.id(idForDescriptionTextBox));\n }", "public static KeyboardControl fromId(final String id) {\n for(Ke...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method is used to set the createdBy
public void setCreatedBy(final int createdBy) { this.createdBy = createdBy; }
[ "public void setCreatedBy(String createdBy) {\r\n\tthis.createdBy = createdBy;\r\n }", "@Override\n\tpublic void setCreatedBy(long createdBy) {\n\t\t_hording.setCreatedBy(createdBy);\n\t}", "public void setCreatedBy(String createdBy)\n {\n this.createdBy = createdBy;\n }", "public void setCrea...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Adds a scale to a region, based on a given ratio [.0, 1.0].
private void addScale(final Region regions, final double ratio) { double scale = 1 + SCALE_ADDED * (Math.cos(ratio * Math.PI) + 1); regions.setScaleX(scale); regions.setScaleY(scale); }
[ "public void scale(float width, float height);", "public Params setScaleRatio(@FloatRange(from = 0, to = 1) float scaleRatio) {\n this.scaleRatio = scaleRatio;\n return this;\n }", "public void scaleItRatio(float rat) {\n\t \ttry {\n\t \t\tBufferedImage thumbnail = Thumbnails....
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Create a temporary directory.
public static File createTempDirectory(boolean deleteOnExit) throws IOException { return doCreateTempDirectory("acj", null, null, deleteOnExit); }
[ "public static File createTempDir() {\n\t\tFile baseDir = new File(System.getProperty(\"java.io.tmpdir\"));\n\t\tString baseName = System.currentTimeMillis() + \"-\";\n\n\t\tfor (int counter = 0; counter < TEMP_DIR_ATTEMPTS; counter++) {\n\n\t\t\tFile tempDir = new File(baseDir, baseName + counter);\n\t\t\tif (temp...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Performs a recursive repository content export with metadata
private static ImpExpStats exportDocumentsHelper(String token, String fldPath, File fs, boolean metadata, Writer out, InfoDecorator deco) throws FileNotFoundException, PathNotFoundException, AccessDeniedException, RepositoryException, IOException, DatabaseException { log.debug("exportDocumentsHelper({}, {}, {},...
[ "public interface ContentsExtractor\n{\n /**\n * Extracts items of a collection from a structure, such as a JsonNode, into an array of ContentValues.\n *\n * @param base a recursive structure, such as a JsonNode, that contains the items\n * @param itemsPath path to where the items ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
this is NOT a traditional Laplace filter; the "center" weight is actually the bottomcenter cell of the 3x3 matrix. AFAICT it's a typo in the source paper, but works better than the traditional Laplace filter. Redondo R, Bueno G, Valdiviezo J et al. "Autofocus evaluation for brightfield microscopy pathology", J Biomed O...
public static double computeRedondo(ImageProcessor proc) { int h = proc.getHeight(); int w = proc.getWidth(); double sum = 0.0; for (int i = 1; i < w - 1; ++i) { for (int j = 1; j < h - 1; ++j) { double p = proc.getPixel(i - 1, j) + proc.getPixel(i + 1, ...
[ "public float update_bw() {\n float t_map[][] = new float[50][50];\n float max_dist=0.0f;\n\n for (int loop=0; loop<HEIGHT; loop++)\n for (int loop2=0; loop2<WIDTH; loop2++) {\n fpoint center = new fpoint();\n center = v_weights[loop2][loop];\n\n int numinave=0;\n float tot...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Is set1 \equals set2
public static <T> boolean equalSets(List<T> set1, List<T> set2) { if (set1.size() != set2.size()) return false; return subset(set1, set2); // redundant since we checked same size && subset<T>(set2, set1); }
[ "public boolean areEquals(Set<E> set1, Set<E> set2) {\n\t\treturn (this.isSubset(set1,set2)) && (set1.size() == set2.size());\n\t}", "private static boolean compareTwoSets(Set<String> first, Set<String> second) {\n boolean isEqual = false;\n\n// first.removeAll(second);\n// if (first.isEmpty(...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
model.addAttribute("name", "SpringBlog from Millky");
@RequestMapping("/daview/summer") public String daviewSummer(Model model) { return "/season/summer"; }
[ "@RequestMapping(value = \"/programming\")\n public String greeting1(ModelMap map){\n map.addAttribute(\"program\",\"Welcome to the World of Programming\\n JAVA \\n C Programming \\n Python \\n Web \\n Angular \");\n return \"programming\";\n }", "@ModelAttribute\n\tpublic void assignName(Mode...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ 14: / 15:
public ItemEnergyContainer() {}
[ "@Override\r\n\tpublic String Excercise() {\n\t\treturn \"Run 5km for 1 hr\";\r\n\t}", "public void updateTimeScale() {\n time_count = nb_mesures * 10;\n\n // l'\\u00e9chelle minimum est 24 heures soit valeur = 1440 minutes \n if (time_count < 1440) {\n time_count = 1440;\n }\n\n time_scale = time_count/...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
private float x1, x2, y1, y2; / Code to run ONCE when the driver hits INIT
@Override public void init() { telemetry.addData("Status", "Initialized"); downLeft = hardwareMap.servo.get("downLeft"); downRight = hardwareMap.servo.get("downRight"); upLeft = hardwareMap.servo.get("upLeft"); upRight = hardwareMap.servo.get("upRight"); rotL...
[ "@Before\n\tpublic void setup(){\n\t\tpoint2d = new Point2d();\n\t\tpoint2d.setY(4);\n\t\tpoint2d.setX(3);\n\t}", "public void initPoints() {\n \r\n }", "private void init() {\n this.xPosition = game.getWidth() + (float) (Math.random() * game.getWidth());\n this.yPosition = (float) (Math...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public IProductB createProductB() { return new ProductB1(); }
[ "@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" ] ] } }
Returns a pointer pointing at the start if this entrie's data
public long getDataOffset();
[ "public Point getStartPoint() {\r\n \treturn this.p0;\r\n }", "public int getStartOffsetInParent() {\n return start;\n }", "public int getStart() {\n\t\treturn startOffset;\n\t}", "public Point getStart() {\n\t\treturn this.start;\n\t}", "public SDBRow first() {\n versionCheck();\n // ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Only opens files... doesn't actually load any values
protected TreeMap<String, IndexDocValues> load(FieldInfos fieldInfos, String segment, int docCount, Directory dir, int codecId) throws IOException { TreeMap<String, IndexDocValues> values = new TreeMap<String, IndexDocValues>(); boolean success = false; try { for (FieldInfo fieldIn...
[ "private void openFile() {\n\t\ttry {\n\t\t\tfileReader = new FileReader(fileName);\n\t\t\tbufferedReader = new BufferedReader(fileReader);\n\t\t} catch(FileNotFoundException e) {\n\t\t\tSystem.err.println(\"Unable to open file \" + fileName);\n\t\t\te.printStackTrace();\n\t\t\tSystem.exit(1);\n\t\t} finally {\n\t\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates new form EditQuestionsFrame
public EditQuestionsFrame(ExamPOJO editExam){ this(); this.editExam=editExam; lblTitle.setText("EDITING "+editExam.getSubject().toUpperCase()+" PAPER"); loadQuestions(); showQuestion(); }
[ "public QuestionFrame() {\n initComponents();\n }", "public ViewEditQuestion() {\r\n\t\tsetResizable(false);\r\n\t\tsetDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\r\n\t\tsetBounds(100, 100, 800, 400);\r\n\t\tcontentPane = new JPanel();\r\n\t\tcontentPane.setBorder(new EmptyBorder(5, 5, 5, 5));\r\n\t...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the file list to display.
public void setFiles(FileList files) { current = files; txtCurrentPath.setText(files.getPath()); txtCurrentPath.setVisibility(View.VISIBLE); fileList.scrollTo(0, 0); fileListAdapter.setItems(files); }
[ "private void setFileList(ArrayList<File> files) {\n this.list_files.getItems().clear();\n for (File file : files) {\n this.list_files.getItems().add(file.getName());\n \n }\n }", "private void populateList() {\r\n list.setEnabled(false);\r\n listModel.r...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the index of this button.
public void setIndex(int index) { this.index = index; setText(prefix + states[index]); }
[ "public void setIndex(int i) {\n\t\tindex = i;\n\t\tset = true;\n\t\tsetButton(i);\n\t}", "public void setIndexOfButton(int i){\n\t\t_indexOfButton = i;\n\t}", "public void setIndex(Integer index) {\r\n this.index = index;\r\n }", "public void SetIndex(int i){\n this.index = i;\n }", "pu...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
optional double pre_close_price = 16;
public boolean hasPreClosePrice() { return ((bitField0_ & 0x00008000) == 0x00008000); }
[ "public double getClosePrice(){\r\n return closePrice;\r\n}", "datayes.mdl.mdl_szl1_pbmsg.MDLSZL1Msg.float_3 getOpenPrice();", "public Double getClosePrice() {\n return closePrice;\n }", "@Override\r\n\tpublic float price() {\n\t\treturn 70.0f;\r\n\t}", "double priceGrowthMultiplier();", "publi...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
@Override public void mouseExited(MouseEvent e) { }
[ "private void Bersih() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "private String throwException() {\n throw new UnsupportedOperationException(\"Not supported\");\n }", "protected void unsupport...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Inflate the menu; this adds items to the action bar if it is present.
@Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.menu_main2, menu); return true; }
[ "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflator = getMenuInflater();\n\t\tinflator.inflate(R.menu.activity_action_bar, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\r\n public boolean onCreateOptionsMenu( android.view.Menu menu)\r\n {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
FIND BY NAME BOOLEAN
@Override public boolean findBarcode(String barcode, int companyId) { // se consulta en la BD si el barcode del producto existe y es valido return dao.findByBarcode(barcode, companyId)!=null; }
[ "List<Event> findByNameIgnoreCaseStartingWithAndIsActiveTrue(String searchStr);", "boolean search();", "Boolean hasName(String name);", "public boolean has (String name);", "abstract public boolean search();", "List<Item> findByNameContaining(String str);", "protected boolean BbyName(String name)\n {...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ renamed from: d
public void mo3881d(int i, int i2, int i3) { C0701b f = m4017f(i); switch (i2) { case 1: f.f3232K = i3; return; case 2: f.f3234M = i3; return; case 3: f.f3233L = i3; return...
[ "private void d() {\n }", "public void mo1857d() {\n }", "public void setD(String d) {\n this.d = d;\n }", "public boolean d() {\n }", "protected void d()\r\n/* 49: */ {\r\n/* 50:57 */ super.d();\r\n/* 51: */ }", "protected void mo4791d() {\n }", "@Override\n\tpublic voi...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
public static void main(String[] args) { int[] str=new int[5]; str[0]= 1; str[1]= 2; str[2]= 3; str[3]= 4; str[4]= 5; //for(int i=1; i<=5; i++) for(int a:str) { System.out.println(a); } }
[ "@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" ] ] } }
Formats dateUnit using supplied date format
String formattedDate(String dateFormat, DateTimeUnit dateTimeUnit);
[ "String dateFormat(String format, double timestamp, boolean capitalize);", "private static String formatDate(Date date, String desFormat) {\n if (date == null) {\n return \"\";\n }\n SimpleDateFormat dateResultFormat = new SimpleDateFormat(desFormat, Locale.US);\n dateResult...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Return the time from the parent context, since this context is not aware of it
@Override public int getCurrentTime() { return context.getCurrentTime(); }
[ "public double getCurrentTime()\n\t{\n\t\treturn myParent.getCurrentTime();\n\t}", "public Object getCurrentTime() { return this.currently.get(\"time\"); }", "protected long getTime()\r\n {\r\n return this.time;\r\n }", "public Long getCurrentTime() {\r\n\t\treturn time;\r\n\t}", "public String...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise
public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); } throw new IllegalStateException(); }
[ "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case ID:\n return isSetId();\n case DATA:\n return isSetData();\n }\n throw new IllegalStateException();\n }", "public boolean...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Accuracy test. Tests the setBallColor(BallColor) for proper behavior. Verify that BallColor set correctly.
public void testSetBallColorAccuracy() throws Exception { target.setBallColor(ballColor); assertEquals("BallColor set incorrectly.", ballColor, target .getBallColor()); }
[ "public void testGetColor() {\n Mood moodHappy = new Mood(MoodState.HAPPY);\n assertEquals(moodHappy.getColor(), MoodColor.GREEN);\n\n Mood moodSad = new Mood(MoodState.SAD);\n assertEquals(moodSad.getColor(), MoodColor.BLUE);\n\n Mood moodShame = new Mood(MoodState.SHAME);\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Read a single bit from a 16bit device register.
public static boolean readBitW(I2CDevice i2c, int regAddr, int bitNum) throws IOException { int b = readWord(i2c, regAddr); return ((b >> bitNum) & 0x01) == 0x01; }
[ "private int readShort() {\n // read 16-bit value, LSB first\n int byte1 = mData[mPosition++] & 0xff;\n int byte2 = mData[mPosition++] & 0xff;\n return byte1 | (byte2 << 8);\n }", "public boolean readBit() {\n\n boolean b = doGetBit(this.readingMask);\n this.readingMas...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the "items" attribute with a collection of BusServicio entities that are retrieved from Servicio?cap_first and returns the navigation outcome.
public String navigateBusServicioList() { if (this.getSelected() != null) { FacesContext.getCurrentInstance().getExternalContext().getRequestMap().put("BusServicio_items", this.getSelected().getBusServicioList()); } return this.mobilePageController.getMobilePagesPrefix() + "/busServi...
[ "public String navigateCargoBusList() {\n if (this.getSelected() != null) {\n FacesContext.getCurrentInstance().getExternalContext().getRequestMap().put(\"CargoBus_items\", this.getSelected().getCargoBusList());\n }\n return this.mobilePageController.getMobilePagesPrefix() + \"/cargo...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Constructor Construye un nuevo objeto con todos las posiciones con las casillas por defecto.
public Combinacion(int num_casillas) { combinacion = new Casilla[num_casillas]; for (int i = 0; i < combinacion.length; i++) { combinacion[i] = new Casilla(); } }
[ "public Movimientos() {\n initComponents();\n controladortipoMovi = new CtlTipoMovi();\n controladorCliente = new CtlCliente();\n controladorcuentamovi = new CtlCuentaMovi();\n controladorbanco = new CtlBanco();\n controladorsucursal = new CtlSucursal();\n controlado...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get the size of this entry. May be different from the size of the ondisk file.
public long getSize();
[ "public long getSize() {\n if (buffer.isInMemory()) {\n return buffer.getData().length;\n } else {\n return buffer.getFile().length();\n }\n }", "public long getSize() {\r\n\t\treturn mySize.getValue();\r\n\t}", "public String getSize()\n {\n if(m_LocalFile.e...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__XBasicForLoopExpression__Group__9" $ANTLR start "rule__XBasicForLoopExpression__Group__9__Impl" InternalJQVT.g:13466:1: rule__XBasicForLoopExpression__Group__9__Impl : ( ( rule__XBasicForLoopExpression__EachExpressionAssignment_9 ) ) ;
public final void rule__XBasicForLoopExpression__Group__9__Impl() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalJQVT.g:13470:1: ( ( ( rule__XBasicForLoopExpression__EachExpressionAssignment_9 ) ) ) // InternalJQVT.g:13471:1:...
[ "public final void rule__XBasicForLoopExpression__Group__9() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalAle.g:11099:1: ( rule__XBasicForLoopExpression__Group__9__Impl )\n // InternalAle.g:11100:2: rule__XBasicForLoopExp...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
public static void main(String[] args) { Scanner sc=new Scanner(System.in); int n=sc.nextInt(); int arr[]=new int[n]; for(int i=0;i<n;i++) { arr[i]=sc.nextInt(); } int ssm=getSecondSmallest(arr); System.out.println(ssm); }
[ "@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" ] ] } }
endregion region Construction Creates a new file manager Initiates temp properties
public FileManager(String folder) { this.properties = new Properties(); String fileName = "config.properties"; try { File dir = FileUtil.getLocalFile(this.getClass().getResource("/" + folder)); if(dir == null) throw new IllegalStateException(); this.tempDir = dir; } catch(IllegalArgumentException e...
[ "public FileManager() {\n }", "private FileManagerFacade() {\r\n\r\n\t}", "public DirFileFactoryImpl()\n {\n super();\n }", "private FileSystem() {\r\n fileObjects = new Hashtable<String, File>();\r\n fileObjects.put(\"/\", new Directory(\"/\", \"/\"));\r\n handler = Handler.createHandler();\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Return the value associated with the column: status
public java.lang.String getStatus () { return status; }
[ "public Integer getStatus(){\n try{\n return this.getInt(\"status\");\n }catch(Exception e){}\n return null;\n }", "public Integer getStatus(){\n\t\treturn this.status;\n\t}", "public String getValue()\n {\n return userStatus;\n }", "public StatusType getStatus() {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Dummy implementations to avoid NullPointerExceptions in default implementations:
@Override public int getDefaultNetId() { return INVALID_NET_ID; }
[ "private None() {}", "protected static NullPointerException NPE ()\n {\n return new NullPointerException(\n \"ListUtil does not support null elements.\");\n }", "public Value Null() throws ClassMakerException;", "public interface Null {\n\n}", "void dummyMethod();", "void nullMetho...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Set search value for lot number
public void setLotNumber(String arg, String compcode) throws ReadWriteException { setValue(_Prefix + InOutResult.LOTNUMBER.toString(), arg, compcode); }
[ "public void setCTDSearched(int i){ ctdSearched = i; }", "public void setSearchInField(int value) {\n this.searchInField = value;\n }", "private void find() {\n NumberValue newNumberValue = null;\n int number = 0;\n int distance = 0;\n for (int i = 0; i < this.array.length;...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Convenience function to get the trips stored in the database.
public static TripList loadTripList(Context context) { TripList tripList = new TripList(); TripDbHelper dbHelper = new TripDbHelper(context); SQLiteDatabase db = dbHelper.getReadableDatabase(); Cursor cSelect = db.query( TripContract.TripEntry.TABLE_NAME, ...
[ "public ArrayList<TripData> getAllTrips() {\n\n ArrayList<TripData> trips = new ArrayList<TripData>();\n\n Cursor cursor = database.rawQuery(\"SELECT * FROM trips\", null);\n cursor.moveToFirst();\n\n while (! cursor.isAfterLast()) {\n TripData trip = new TripData();\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public KTMMaxIdentifierDao getMaxIdentifierDao() { return null; }
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
constructor new school object is created
public School(List<Teacher> teachers, List<Student> students) { this.teachers = teachers; this.students = students; schoolMoneyEarned=0; schoolMoneySpent=0; }
[ "public School(String name)\n {\n super.name = name;\n super.students = 0;\n }", "public Student(String Name, String Email, String PhoneNumber, String initschool)\n{\n Name = \"James\";\n Email = \"james@patelhs.org\";\n PhoneNumber = \"813-256-3317\";\n School = initSchool;\n}", ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Setter de la position ty de la piece
public void setTy(final int ty) { this.ty = ty; }
[ "public abstract void set (Square square, Piece piece);", "public void setPiece(Piece piece, int col){\n row[col].setPiece(piece);\n\n }", "public void setPiece(Position pos, Piece piece){\n board.getTile(pos).setPiece(piece);\n }", "public void setPiece(Piece piece){\n this.piece=pie...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ access modifiers changed from: packageprivate
public void setShouldDrawText(boolean shouldDrawText2) { this.shouldDrawText = shouldDrawText2; }
[ "protected void method_5557() {}", "@Override\n }", "@Override\n public void extornar() {\n \n }", "public void mo28221a() {\n }", "protected void mo4791d() {\n }", "protected void method_2117() {\n }", "@Override\r\n public void publicando() {\n }", "private ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates a new instance.
public BasicMonitorRegistry() { monitors = Collections.synchronizedSet(new HashSet<Monitor<?>>()); }
[ "public Create() {\n\t\t\tsuper();\n\t\t}", "T createNewInstance();", "public void create() { }", "@SuppressWarnings(\"unchecked\")\n\tpublic static JSONObject createInstance() {\n\t\tJSONObject json = new JSONObject();\n\t\ttry {\n\t\t\tjson = makeRequest(URL + \"/instance\", \"POST\");\n\t\t} catch (Excepti...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public Set<MessageHandler> getMessageHandlers() { return null; }
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Create a WritingStroke with the same shape but a new pause. WritingStrokes are immutable, so this method is necessary to create similarbutdifferent copy.
public WritingStroke deriveWStroke(float newPauseBeats) { return new WritingStroke(newPauseBeats, shape); }
[ "public void changeStrokeShape() {\n if (currentCap == Paint.Cap.ROUND) {\n currentCap = Paint.Cap.SQUARE;\n } else {\n currentCap = Paint.Cap.ROUND;\n }\n }", "public synchronized Stroke startStrokeTransaction() {\n //TODO Throw error if in transaction?\n //TOD...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
find max X,Y and create grid from that
private void createGrid(List<String> lines) { int maxX = 0; int maxY = 0; for (String line : lines) { String[] parts = line.split(" -> "); String[] leftParts = parts[0].split(","); String[] rightParts = parts[1].split(","); int leftX = Integer.par...
[ "public void showGrid() {\n double maxx, maxy; maxx = maxy = Double.NEGATIVE_INFINITY;\n double minx, miny; minx = miny = Double.POSITIVE_INFINITY;\n for (Tuple2<Double,Double> t : coords) {\n if (t != null) {\n if (t._1 != null) {\n if (t._1 > maxx) maxx = t._1;\n if (t._1 < ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Insert the method's description here. Creation date: (30112000 11:07:34 AM)
public void setMode(java.lang.String newMode) { mode = newMode; }
[ "public void mo5201a() {\n }", "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "protected void method_5557() {}", "public void mo9609a() {\n }", "public void mo15109c() {\n }", "public void mo12155e() {\n }", "pub...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Control pagination from backend.Default values 0,10 Need to make a pagination config where we control the pagination of various entities
@GET @Path("/") public Response getBubbles(@QueryParam("storyId") String id) { List<Bubble> bubbles; if (id == null) { bubbles = BubbleService.getInstance().fetchAllBubbles(); } else { bubbles = BubbleService.getInstance().fetchBubbles(id, start, limit); }...
[ "Pagination<User> getAllInRange(int currentPage, int itemsPerPage);", "public int getPageSize() { return pageSize; }", "@Retrieve \n Page<T> getEntityListByPage(@PagingCondition PagingModel pagingModel);", "public interface PagedEntity {\r\n /** default page being displayed, if not otherwise specified *...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public void addUser(User u) { }
[ "@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" ] ] } }
/ This method is purposefully not made synchronized as this can be called like this: thread 1: is calling this.init() and has held the lock, but is waiting for Obr to deploy. thread 2: is deploying some bundles using Obr and as part of that is trying to call setBundle on this module.
protected void setBundle(Bundle bundle) { if (this.bundle != null && this.bundle != bundle) { throw new RuntimeException("setBundle called with bundle [" + bundle + "] where as module [" + this + "] is already associated with bundle [" + this.bundle + "]"); } else { ...
[ "public abstract void init(Bundle bundle);", "void init() {\n\t\tlog.info(\"Initialized\");\n\t\t// Disabling the SimpleForwarding and ARPHandler bundle to not conflict\n\t\t// with this one\n\t\tBundleContext bundleContext = FrameworkUtil.getBundle(this.getClass())\n\t\t\t\t.getBundleContext();\n\t\tfor (Bundle ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Create a new Joke.Builder instance
public static Builder builder(){ return new Builder(); }
[ "public Builder(String name){\r\n this.name = name;\r\n }", "private Builder() { }", "abstract Builder name(String name);", "private JokeFacade() {}", "protected abstract Builder newBuilder();", "static Builder builder() {\r\n return new Builder();\r\n }", "public Builder() {...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
repeated fixed64 steamid_broadcast = 2;
public int getSteamidBroadcastCount() { return steamidBroadcast_.size(); }
[ "int getSteamidBroadcastCount();", "public long getSteamidBroadcast(int index) {\n return steamidBroadcast_.get(index);\n }", "long getSteamIdTarget();", "void broadcast();", "public long[] getFlowIdArray(){\r\n return localFlowIdArray;\r\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Tests DTD based pre2.8 node descriptions.
@Test public void testVersion27DTD() throws Exception { testCommonFields(DTD_v27.class, NodeDescription27Proxy.class, "http://knime.org/node2012", false); testCommonFields(DTD_v27_noPublicId.class, NodeDescription27Proxy.class, "http://knime.org/node2012", false); testDeprecatedNodeName(DTD_...
[ "@Override\r\n public void setNodeDescription(String description)\r\n {\n\r\n }", "public NodeDescriptor getMyNodeDesc();", "@Override\n\tpublic String getNodeTestData() {\n\t\treturn \"This is testing\";\n\t}", "public void describe(String ds) {\n boolean isNode = false;\n boolean isAttr = fal...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the attribute value for Remarks, using the alias name Remarks.
public String getRemarks() { return (String)getAttributeInternal(REMARKS); }
[ "public String getWmsRemarks() {\r\n return (String) getAttributeInternal(WMSREMARKS);\r\n }", "public String getRemarkinfo() {\n return remarkinfo;\n }", "private String getNoteProperty()\r\n {\r\n return getConfigNode().getSafeTextValue(\"Note\", null);\r\n }", "public Strin...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Check whether a user is authorized
private boolean isAuthorized(String userId, String key) { Authorization authorization = new Authorization(userId, key); AuthorizationDaoImpl authorizationDaoImpl = new AuthorizationDaoImpl(); boolean authorized = false; try{ authorized = authorizationDaoImpl.hasAuthorization(...
[ "boolean authorized();", "boolean isAuthRequired();", "@Override\n protected boolean authorize(Request request, Response response) {\n Subject currentUser = SecurityUtils.getSubject();\n if (getIdentifier() == null) {\n return true;\n }\n if (!currentUser.isAuthenticate...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
required int32 port = 2;
public Builder setPort(int value) { bitField0_ |= 0x00000002; port_ = value; onChanged(); return this; }
[ "public int getPort() {\n/* 250 */ return this.port;\n/* */ }", "public abstract int port();", "int frontendPort();", "int getPortnum();", "public int getPort()\r\n {\r\n return port;\r\n }", "public abstract int getDefaultProtocolPort();", "public int getPort() {\r...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Inflate the menu; this adds items to the action bar if it is present.
@Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.chat, menu); return true; }
[ "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflator = getMenuInflater();\n\t\tinflator.inflate(R.menu.activity_action_bar, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\r\n public boolean onCreateOptionsMenu( android.view.Menu menu)\r\n {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
setter getter for simple window components
public void addNewComponent(RectangleComponent newComponent){ rectangleComponents.add(newComponent); }
[ "public Component getWindow() {\n\t\treturn window;\n\t}", "private GenWindow myWindow() {\n\t\treturn (GenWindow) mainWindow;\n\t}", "public Container getAWindow() {\r\n\t\treturn window;\r\n\t}", "public interface Window extends Frame, Component.HasCaption, Component.HasIcon {\n /**\n * Constant th...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Initializes a MethodCall with the given function name and expressions which evaluate to the method parameters.
public FunctionCall(final String functionName, final SopremoFunction function, final List<EvaluationExpression> params) { if (functionName == null) throw new NullPointerException("Function name must not be null"); if (function == null) throw new NullPointerException("Function must not be null"); fo...
[ "public ast.Call call_expression() {\n \t\tenterRule(NonTerminal.CALL_EXPRESSION);\n \t\tToken callToken = expectRetrieve(Token.Kind.CALL);\n \t\tToken identifier = expectRetrieve(Token.Kind.IDENTIFIER);\n \t\tSymbol symbol = tryResolveSymbol(identifier);\n \t\texpect(Token.Kind.OPEN_PAREN);\n \t\tast.ExpressionLis...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Return bot token from BotFather
@Override public String getBotToken() { return "589260614:AAEbTxcM3RIhIvieepLjPPxNv2ft3d--MjM"; }
[ "@Override\n\tpublic String getBotToken() {\n\t\treturn BOT_TOKEN;\n\t}", "@Override\n public String getBotToken() {\n return \"618832611:AAEIVbJgisNdu931eZvLEH5_FzFxLWaJwMw\";\n }", "public String GetTokenUser(String token);", "public String getWechattoken() {\n return wechattoken;\n }...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
use to compare to test suites basing on the fitness value of each one
public int compareTo(Object other) { float nb1 = ((TestSuite) other).getTestSuiteFitnessValue(); float nb2 = this.getTestSuiteFitnessValue(); if (nb1 > nb2) return -1; else if(nb1 == nb2) return 0; else return 1; }
[ "public void testAddGeneration_MergingFitness() {\n createIndividuals();\n EvaluatedSubject evaledSubjectPass1Num1 = new EvaluatedSubject(clock, subject2, 22.0, 1);\n EvaluatedSubject evaledSubjectPass1Num2 = new EvaluatedSubject(clock, subject1, 21.0, 1);\n EvaluatedSubject evaledSubjectPass1Num3 = new...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates a new instance.
public static MockImporterDescription newInstance(Class<?> dataType) { return new Basic(dataType, DataSize.UNKNOWN); }
[ "public Create() {\n\t\t\tsuper();\n\t\t}", "T createNewInstance();", "public void create() { }", "@SuppressWarnings(\"unchecked\")\n\tpublic static JSONObject createInstance() {\n\t\tJSONObject json = new JSONObject();\n\t\ttry {\n\t\t\tjson = makeRequest(URL + \"/instance\", \"POST\");\n\t\t} catch (Excepti...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Metodo que nos permite indicar cuando esta y cuando no esta sobre una naranja
public void setSaltandoNaranja(boolean saltandoNaranja) { this.saltandoNaranja = saltandoNaranja; }
[ "public boolean themNhanVien(){\n return false;\n }", "boolean isNilLegto();", "boolean isNilTrsamt();", "boolean isNilLegfrom();", "public boolean isNilPrenotazione()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xml...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Turns on validation (for all calls made after); by default validation is on
Query<T> enableValidation();
[ "@Override\r\n\tprotected boolean validation() {\n\t\treturn false;\r\n\t}", "protected void validate() {\n valid = true;\n }", "public void setValidationOn(boolean validationOn) {\r\n\t\tthis.validationOn = validationOn;\r\n\t}", "public void setValidation(boolean value) {\n\t\tvalidation = value;\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public void onNothingSelected(AdapterView<?> arg0) { }
[ "@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" ] ] } }
++ getter for static property _Instance Getter for property _Instance. Auto generated
public static com.tangosol.coherence.Component get_Instance() { return new com.tangosol.coherence.component.net.Cluster.SocketManager.PreferredUnicastUdpSocket(); }
[ "public Object getInstance() {\n\t\treturn this.instance;\n\t}", "public abstract Instance getInstance();", "public static synchronized Instance getInstance() {\n return instance;\n }", "public static singleton getInstance(){\n\t\t return instance;\n\t\t }", "@JsonProperty(INSTANCE)\n\tpublic Str...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Converte um objeto do tipo Date para String com acompanhamento de mascara
public static String formateDateToString(Date date, String mask) { if(mask != null) { try { return new SimpleDateFormat(identifyMaskDate(mask)).format(date); }catch(IllegalArgumentException e) { e.printStackTrace(); } } return null; }
[ "public String dateWithFormat(){\n\n\t\tStringBuilder salida = new StringBuilder();\n\t\tsalida.append(this.getDay() + \" de \" + getMonthName(this.getMonth()) + \" de \" + this.getYear());\n\n\t\treturn salida.toString();\n\t}", "@Override\n\tpublic String toDate() {\n\t\tStringBuffer buf = new StringBuffer();\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
optional int32 location_type = 5 [default = 0];
boolean hasLocationType();
[ "public long getLocationType() {\n return locationType_;\n }", "public void setLocation(Integer location) {\r\n this.location = location;\r\n }", "public String getLocationType() {\r\n return locationType;\r\n }", "public void setLocationTypeById( int locationTypeId ) {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the result of interpreting the object as an instance of 'Animation'. This implementation returns null; returning a nonnull result will terminate the switch.
public T caseAnimation(Animation object) { return null; }
[ "public AnimationInterface getAnimation() {\n\t\treturn null;\n\t}", "public TypeOfAnimation getType();", "@Override\n\tpublic Animation getAnimation()\n\t{\n\t\treturn animation;\n\t}", "@java.lang.Override public POGOProtos.Rpc.BuddyAnimation getEmotionAnimation() {\n @SuppressWarnings(\"deprecation\")\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
repeated string command = 5;
java.lang.String getCommand(int index);
[ "private String getRepeatCommand() {\n return settings.getChatSetting(KeyEnum.repeat_command).getValue();\n }", "public void command(){\n System.out.println(\"Enter Command: \");\n Scanner scan = new Scanner(System.in);\n while (true){\n System.out.print(\" > \");\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test case number: 1 /Coverage entropy=1.7917594692280547
@Test(timeout = 4000) public void test01() throws Throwable { JavaCharStream javaCharStream0 = new JavaCharStream((Reader) null); byte[] byteArray0 = new byte[8]; byteArray0[0] = (byte) (-16); byteArray0[1] = (byte) (-73); byteArray0[2] = (byte) (-53); byteArray0[3] = (byte)92; ...
[ "@Test(timeout = 4000)\n public void test147() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0, (CostMatrix) null);\n String string0 = ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
java.lang.String getSzCdIncmgDetermType(int) Method getSzCdIncmgDetermType
public java.lang.String[] getSzCdIncmgDetermType() { int size = this._szCdIncmgDetermTypeList.size(); java.lang.String[] array = new java.lang.String[size]; for (int index = 0; index < size; index++){ array[index] = (String)_szCdIncmgDetermTypeList.get(index); } ...
[ "public java.lang.String getSzCdCostReimInvoDisptn()\r\n {\r\n return this._szCdCostReimInvoDisptn;\r\n }", "@DISPID(3093) //= 0xc15. The runtime will prefer the VTID if present\n @VTID(26)\n int type();", "public java.lang.String getDSMTYP() {\n return DSMTYP;\n }", "java.lang.String...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method returns the value of the database column yp_trade_record.mark
public String getMark() { return mark; }
[ "public Mark getMark() {\r\n return mark;\r\n }", "Mark getMark() {\n return mark;\n }", "TMallTradeMark selectByPrimaryKey(Integer id);", "Mark read(Mark mark) throws DaoException;", "@Element \r\n public void setMark(String mark) {\r\n this.mark = mark;\r\n }", "public int get...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the group of properties to be excluded.
protected String[] getExcludedProperties() { return jsonConfig.getExcludes(); }
[ "List<Definition> getExcluded();", "public String[] getExcludes(){\n return excludes;\n }", "Set<String> getDisallowedGroups();", "@gw.internal.gosu.parser.ExtendedProperty\n public entity.HOPDwellingExcl[] getExclusions() {\n return (entity.HOPDwellingExcl[])__getInternalInterface().getFieldVal...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
GENLAST:event_btnReiniciarBusquedaEmpleadoActionPerformed 1. Ventana empleados: Realiza una busqueda en el registro de empleados.
private void btnBuscarEmpleadoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnBuscarEmpleadoActionPerformed try { //No permitir espacios en blanco. if (this.txtBusquedaEmpleado.getText().trim().isEmpty()) { JOptionPane.showMessageDialog...
[ "@SuppressWarnings(\"rawtypes\")\r\n\tprivate void cuadro3() {\n\t\t\r\n\t\tlblTituloBuscar = new JLabel(\"BUSCAR EMPLEADO\");\r\n\t\tlblTituloBuscar.setFont(fuente);\r\n\t\tlblTituloBuscar.setBounds(120,250,150,20);\r\n\t\tadd(lblTituloBuscar);\r\n\t\t\r\n\t\t\r\n\t\t//BUSQUEDA POR NOMBRE DE EMPLEADO\r\n\t\t\r\n\t...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Retrieves the gid of the given group.
public static long getGidFromGroupName(String groupName) throws IOException { String result = ""; if (OSUtils.isLinux()) { String script = "getent group " + groupName + " | cut -d: -f3"; result = ShellUtils.execCommand("bash", "-c", script).trim(); } else if (OSUtils.isMacOS()) { String sc...
[ "public com.google.protobuf.ByteString\n getGroupIDBytes() {\n java.lang.Object ref = groupID_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n grou...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets all the facet collections
public Map<String,FacetAccessible> getFacetMap(){ return _facetMap; }
[ "public abstract List<Collection> getCollections();", "public List<FacetData> getSubFacets() {\n\t\treturn subFacets;\n\t}", "public List<Entity> getCollection();", "@JsonIgnore\n public List<String> getFacets() {\n List<String> activeFacets = new ArrayList<>();\n\n if (!activeFacets.contains...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Notify interested parties if a wifi config has been changed.
private void broadcastWifiCredentialChanged(int wifiCredentialEventType, WifiConfiguration config) { if (config != null && config.preSharedKey != null) { Intent intent = new Intent(WifiManager.WIFI_CREDENTIAL_CHANGED_ACTION); intent.putExtra(WifiManager.EXTRA_WIFI_CREDENTIAL_...
[ "private void notifyChanged()\r\n {\r\n myChangeSupport.notifyListeners(listener -> listener.networkConfigurationChanged());\r\n }", "WindowsWifiConfiguration patch(final WindowsWifiConfiguration sourceWindowsWifiConfiguration) throws ClientException;", "private static void updateNetwork(WifiManage...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO show error notification
@Override protected void onCancel() { }
[ "@Override\n public void showErrorMsg() {\n }", "@Override\n\tpublic void erro() {\n\n\t}", "@Override\n\tprotected void onError() {\n\t}", "@Override\n\t\t\t\t\tpublic void onError( Throwable e ) {\n\t\t\t\t\t\tSystem.err.println( \"Error-----\" );\n\t\t\t\t\t}", "@Override public void onError() {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ access modifiers changed from: protected
public final Object a(int i, Object obj, Object obj2) { switch (zzlp.a[i - 1]) { case 1: return new zzc(); case 2: return new zza((zzlp) null); case 3: return a((zzum) zzan...
[ "@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}", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "pro...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }