query
stringlengths
8
1.54M
document
stringlengths
9
312k
negatives
listlengths
19
20
metadata
dict
Generates an ObservableList of Labels representing each profile
private ObservableList<Label> getProfileList() { ObservableList<Label> profileListItems = FXCollections.observableArrayList(); Profiles ps = kernel.getProfiles(); Label l; ImageView iv; String text; for (Profile p : ps.getProfiles()) { if (p.getType() =...
[ "ArrayList<String> getLabels();", "private void loadProfileList() {\r\n console.print(\"Cargando Lista de Perfiles...\");\r\n ObservableList<Label> profileListItems = getProfileList();\r\n\r\n //Add \"Add New Profile\" item\r\n profileListItems.add(0, new Label(Language.get(51), new Im...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Accuracy test for the method setAssociatedToProjectMilestoneIds(List&lt;Long&gt; associatedToProjectMilestoneIds). The value should be properly set.
@Test public void test_setAssociatedToProjectMilestoneIds() { List<Long> value = new ArrayList<Long>(); instance.setAssociatedToProjectMilestoneIds(value); assertSame("'setAssociatedToProjectMilestoneIds' should be correct.", value, TestsHelper.getField(instance, "associatedToPr...
[ "@Test\n public void test_getAssociatedToProjectMilestoneIds() {\n List<Long> value = new ArrayList<Long>();\n instance.setAssociatedToProjectMilestoneIds(value);\n\n assertSame(\"'getAssociatedToProjectMilestoneIds' should be correct.\",\n value, instance.getAssociatedToProjectMi...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
double avg_control = 4;
@java.lang.Override public double getAvgControl() { return avgControl_; }
[ "double getAvgControl();", "double getAvgTreatment();", "@java.lang.Override\n public double getAvgControl() {\n return avgControl_;\n }", "float getAverageWrites();", "float getAqiAvg();", "static double avg(double[] inp) {\n\t\tdouble sum = 0;\n\t\tfor(int i=0;i<inp.length;i++) {\n\t\t\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns a list of button images or names assigned to the given user action. A maximum of maxKeys keys is listed. You can find the action names in config class ControllerSchemes. Example: text = actionKeysImages "ReloadMagazine"
public native static GameText actionKeysImages(Object oper1);
[ "String[] getActions();", "public static String[] GetAllButton()\n {\n List<String> keys = new ArrayList<String>();\n \n for (String key : _inputs.keySet())\n {\n if(key.contains(\"Button/\"))\n {\n keys.add(key.split(\"/\", 2)[1]);\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates new form TransfertDlg
public TransfertDlg(java.awt.Frame parent, boolean modal) { super(parent, modal); initComponents(); }
[ "public PatientDetailsDialog() {\n super();\n this.mode = Mode.NEW;\n createContent();\n\n }", "private CreateTrade(GameIcons icons, Player player) {\n this.icons = icons;\n this.player = player;\n //Create the contents of the dialog\n JButton offerTradeButton =...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
vemos si tiene la edad minima para ver la pelicula
public boolean tieneEdad(int edadMinima){ return this.edad >= edadMinima; }
[ "private Boolean esMejor() {\n if(debug) {\n System.out.println(\"**********************esMejor\");\n }\n \n if(this.solOptima == null || (this.sol.pesoEmparejamiento < this.solOptima.pesoEmparejamiento)) return true;\n else return false;\n }", "private boolean pru...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns true if the two given calendars are dated on the same time. The difference from one.equals(two) is that this method does not respect the time zone.
public static boolean sameTime(Calendar one, Calendar two) { return one.getTimeInMillis() == two.getTimeInMillis(); }
[ "private boolean isSame(Calendar first, Calendar second)\n {\n return (first.get(Calendar.DAY_OF_MONTH) == second.get(Calendar.DAY_OF_MONTH))\n && (first.get(Calendar.MONTH) == second.get(Calendar.MONTH))\n && (first.get(Calendar.YEAR) == second.get(Calendar.YEAR));\n }", ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Retrieve an existing WebACL by transaction and path
WebacAcl find(final Transaction transaction, final FedoraId fedoraId);
[ "ACL load(long id) throws FxApplicationException;", "AccessControlList get(Long id) throws DatastoreException, NotFoundException;", "ACL load(long id, boolean ignoreSecurity) throws FxApplicationException;", "public List<ACL> getACL(String path, Stat stat) throws NoNodeException {\n return dataTree.get...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This creates and returns a copy of these options. Note that it assumes that the JsonWriteBeanVisitor (if defined) are immutable and any JsonWriteBeanVisitor instances are shared between the original and the copy.
public JsonWriteOptions copy() { JsonWriteOptions copy = new JsonWriteOptions(); copy.callback = callback; copy.valueAdapter = valueAdapter; copy.pathProperties = pathProperties; if (visitorMap != null) { copy.visitorMap = new HashMap<String, JsonWriteBeanVisitor<?>>(visitorMap); } ...
[ "public JsonLdOptions copy() {\n final JsonLdOptions copy = new JsonLdOptions(base);\n\n copy.setCompactArrays(compactArrays);\n copy.setExpandContext(expandContext);\n copy.setProcessingMode(processingMode);\n copy.setDocumentLoader(documentLoader);\n copy.setEmbed(embed);...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Flips this Picture about the given axis. The axis can be one of four static integer constants: (a) Picture.HORIZONTAL: The picture should be flipped about a horizontal axis passing through the center of the picture. (b) Picture.VERTICAL: The picture should be flipped about a vertical axis passing through the center of ...
public Picture flip(int axis) { Picture newPic; if (axis == Picture.VERTICAL || axis == Picture.HORIZONTAL) { newPic = new Picture(this.getWidth(), this.getHeight()); } else if (axis == Picture.FORWARD_DIAGONAL || axis == Picture.BACKWARD_DIAGONAL) { newPic = new Picture(this.getHeight(), this.get...
[ "public void flip(Axis axis) {\n for(Square s : squares) {\n switch(axis) {\n case VERTICAL:\n s.setRow(-s.getRow()+getHeight()-1);\n break;\n case HORIZONTAL:\n s.setCol(-s.getCol()+getWidth()-1);\n break;\n }\n }\n }", "public void flip() {\n\t\tif (this.is...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Inserts a text fragment into a author editor page.
private void insertIntoAuthorPage(String str, WSAuthorEditorPage page) { String stringWithNs = addNamespace(str); if (stringWithNs != null && !stringWithNs.isEmpty()) { page.getDocumentController().beginCompoundEdit(); try { AuthorAccess authorAccess = page.getA...
[ "public void insert(String text) {\n\t\tcmd = new InsertCommand(text, editor);\n\t\tinvoker = new MiniEditorInvoker(cmd);\n\t\tinvoker.action();\n\t}", "void insertAuthor(int i, java.lang.String author);", "public void insert(int index, String fragment) throws TextLineIndexOutOfBoundsException;", "public void...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
new columns (uspsInternationalSkeletonRouteLegDestinationAirportCode) //
public ScGridColumn<AcUspsInternationalUnfleshedOutSkeletonRouteVo> newUspsInternationalSkeletonRouteLegDestinationAirportCodeColumn() { return newUspsInternationalSkeletonRouteLegDestinationAirportCodeColumn("Usps International Skeleton Route Leg Destination Airport Code"); }
[ "public ScGridColumn<AcDomesticCandidateRouteLeg> newDestinationAirportCodeColumn()\n {\n return newDestinationAirportCodeColumn(\"Destination Airport Code\");\n }", "public ScGridColumn<AcUspsInternationalUnfleshedOutSkeletonRouteVo> newUspsInternationalSkeletonRouteDestinationAirportCodeColumn()\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ Joining predicates predicate1 = check if number is even predicate2 = check greater than 50
@Test public void join_multiple_predicates(){ int [] arr = {5,15,20,25,30,35,40,45,50,55,60,65}; Predicate <Integer> predicate1 = (each) -> (each % 2 == 0); Predicate <Integer> predicate2 = (each) -> (each > 50); for(int each : arr){ if(predicate1.and(predicate2).test(ea...
[ "@Test\n public void testPredicateOr() {\n Predicate<Integer> isEven = (x) -> (x % 2) == 0;\n Predicate<Integer> isDivSeven = (x) -> (x % 7) == 0;\n\n Predicate<Integer> evenOrDivSeven = isEven.or(isDivSeven);\n\n assertTrue(evenOrDivSeven.apply(14));\n assertTrue(evenOrDivSeve...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
sets a door specified by direction, locked or unlocked
public void setDoor(String direction, boolean locked) { // maybe change direction to char to be consistent with regex switch (direction) { case "n": n.setLocked(locked); break; case "e": e.setLocked(locked); break; case "s": s.setLocked(locked); break; case "w": w.setLocked(lo...
[ "public void setDoor(Direction direction, boolean hasDoor) {\r\n\t\tthis.doors.put(direction, (Boolean) hasDoor);\r\n\t}", "public void setDoor(Door theDoor) {\n aDoor = theDoor;\n }", "public void unlockDoor(Door d) {\r\n\t\t//TODO\r\n\t\t\r\n\t}", "public void setDoorIsLocked(boolean isLocked)\n {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
First of all, if file is opened previously, datas read from file to array with readFile function.Then if default array size is less than file lines, array grows as required with toLarger function in readFile function.Then take information from user.At last, datas is writed in file by writeFile function.
private void registerUser(){ try { arrayUser = readFile("users.cvs",arrayUser); } catch (FileNotFoundException ex) {} Integer size = arrayUser.size(); String ID,name,surname,book,line; Scanner input = new Scanner(System.in)...
[ "private static void reader() throws FileNotFoundException {\n //Just to be sure all collections are clear for every methods.\n memory_part_size.clear();\n process_size.clear();\n asterisk.clear();\n is_set.clear();\n\n Scanner file_reader = new Scanner(input_file);//file r...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Method that generates parsed URI from a given path
public static String parsedUri(String raw_path){ if (raw_path.indexOf("?") == -1){ return raw_path; } else{ int index = raw_path.indexOf("?"); String url = raw_path.substring(0, index); int index_put = url.lastIndexOf("/"); if(url.char...
[ "protected String uri(String path) {\n return baseURI + '/' + path;\n }", "public URI resolveBase(String path) {\n return URI.create(uriInfo.getBaseUri() + path);\n }", "URI build();", "public URI getUri(String path) {\n return getPrefixer().mergeUris(path);\n }", "URI createUR...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Static method requests and returns a complex number from user
private static Complex getComplexNumber(){ choice = ComplexCalculatorLauncher.displayTypeInputMenu(); input.nextLine(); // Remove CRLF from input buffer System.out.printf("Enter the %s complex number ", (++count % 2 == 0 ? "first" : "second")); switch(choice){ ...
[ "Complex(){\r\n real = 1;\r\n imaginary = 1;\r\n }", "long getNumericResponse();", "public void complexValue(double i,double j)\r\n{\r\n\tznow_r=(((double)i*2)/800)-1;\r\n\tznow_c=1-(((double)j*2)/800);\r\n}", "ComplexValueType getComplexValue();", "public String getComplexNumber() {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get the priority for selecting this factory by default for the given program A default factory is selected when the current factory and the last successful factory are incompatible with the current program, or if this is the very first time connecting. Of those factories compatible with the current program, the one wit...
default int getPriority(Program program) { return 0; }
[ "public static int getDefaultPriority() {\n int result = DEFAULT_PRIORITY;\n try {\n result = Integer.parseInt(ConfigurationManager.getInstance()\n .findPropertyValue(Tools.DEFAULT_PRIORITY_KEY,\n DEFAULT_PRIORITY + \"\"));\n } catch (Num...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Generates a list of random customers.
public List<Customer> generateRandomCustomersList(int numberOfCustomers) { if (numberOfCustomers < 1 || numberOfCustomers > MAX_SIZE_OF_CUSTOMER_LIST) { throw new InvalidParameterException("List size must be between 1 and " + MAX_SIZE_OF_CUSTOMER_LIST); } List<Customer> randomCustome...
[ "void generate(List<Customer> customers);", "ArrayList<Customer> customersForTheDay(){\n ArrayList<Customer> customers = new ArrayList<Customer>();\n ArrayList<Customer> loyal = cafe.getCustomerRecord().customers;\n\n // random number of each\n int customerNumLoyal = randomInt(0, loyal...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Adds to the scene the RegularButton for submitting.
private void displaySubmitButton() { RegularButton submitButton = new RegularButton("SUBMIT", 1000, 600); submitButton.setOnAction(e -> handleSubmit()); sceneNodes.getChildren().add(submitButton); }
[ "public SubmitButton() {\n\t\tsuper(Document.get().createSubmitInputElement());\n\t\tsetStyleName(Constants.BTN);\n\t}", "@Override\n protected String getButtonType()\n {\n return \"submit\";\n }", "private void createSubmitButton() {\n\t\tif (submitButton != null){\n\t\t\treturn;\n\t\t}\n\t\tsubmitButton...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Blacklist unsafe tokens Any tokens used without transport security will be blackedlisted to mitigate associated security risks.
@JsonProperty("blacklistUnsafeTokens") public void setBlacklistUnsafeTokens(Boolean blacklistUnsafeTokens) { this.blacklistUnsafeTokens = blacklistUnsafeTokens; }
[ "void blacklist(String token);", "@JsonProperty(\"blacklistUnsafeTokens\")\n public Boolean getBlacklistUnsafeTokens() {\n return blacklistUnsafeTokens;\n }", "public void setBlacklist(Blacklist blacklist)\n\t{\n\t\tthis.blacklist = blacklist;\n\t}", "public Blacklist getBlacklist() {\n re...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Method used to determine the best assignment to the variable given the current context
public VarAssignment<Val, U> bestAssignment() { AddableConflicts<U> max = new AddableConflicts<U> (this.infeasibleUtil, Integer.MAX_VALUE); Val value = domain[0]; for(int i = 0; i < domainSize; i++) { Val v = domain[i]; context.put(variableID, v); AddableConflicts<U> util = calculateUtility(); ...
[ "public boolean determineAssignment(String var);", "@Override\n\tpublic boolean improveAssignment() {\n\t\tLogger.trace(\"improveAssignment start...\");\n\t\tconstraintChecks = 0;\n\t\t\n\t\t//let all factor run\n\t\tfor(NodeID eid : factors.keySet()){\n\t\t\tconstraintChecks += factors.get(eid).run();\n\t\t}\n\t...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Mark a specific inv cell as deactivated; update activeInvsHashes.
private void deactivateCell(int rowID) { InvariantGridLabel invLabel = ((InvariantGridLabel) grid.getWidget( rowID, 0)); int invID = invLabel.getInvariant().getID(); activeInvsHashes.remove(invID); invLabel.setActive(false); cFormatter.setS...
[ "private void activateCell(int rowID) {\n InvariantGridLabel invLabel = ((InvariantGridLabel) grid.getWidget(\n rowID, 0));\n int invID = invLabel.getInvariant().getID();\n activeInvsHashes.add(invID);\n invLabel.setActive(true);\n cFormatter...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
If this block doesn't render as an ordinary block it will return False (examples: signs, buttons, stairs, etc)
public boolean renderAsNormalBlock() { return false; }
[ "public boolean renderAsNormalBlock () {\n\t\t\n\t\treturn false;\n\t\t\n\t}", "public boolean renderAsNormalBlock()\n {\n \treturn false;\n }", "public boolean renderAsNormalBlock() {\n\t\treturn false;\n\t}", "protected boolean inSomeBlock() {\n return !enclosingBlocks.isEmpty();\n }", "@Over...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Increments the current row and column values according to the expected rows and columns.
private void increment() { if (this.currentColumn < this.expectedColumns - 1) { this.currentColumn++; } else if (this.currentRow < this.expectedRows - 1) { this.currentColumn = 0; this.currentRow++; } }
[ "public void incrementRow() {\n setRowAndColumn(row + 1, column);\n }", "void incrementRow()\n {\n rowNumber++;\n\n for (int i = 0; i < cells.length; i++)\n {\n if (cells[i] != null)\n {\n cells[i].incrementRow();\n }\n }\n }", "public void increment() {\n fo...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Create a oagi.ctx_scheme table reference
public CtxScheme() { this(DSL.name("ctx_scheme"), null); }
[ "private static void constructScheme() {\n \t\tQueue<Query> constructionQueries = new LinkedList<Query>();\n \n \t\tSchemeCreationPolicy policy = configuration.getCreationPolicy();\n \n \t\tLog.info(\"Scheme creation policy is %s.\", policy.toString());\n \n \t\tif (policy.equals(SchemeCreationPolicy.CREATE)\n \t\t...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Tests generating an ID with a string prefix.
public void testStringID() { String testID = generator.generatePrefixedIdentifier("test"); assertNotNull(testID); assertTrue(testID.matches("test" + ID_REGEX)); }
[ "public void testNumberID() {\n String testID = generator.generatePrefixedIdentifier(\"123\");\n assertNotNull(testID);\n assertTrue(testID.matches(\"_123\" + ID_REGEX));\n }", "public static String createUniqueId(@Nullable String prefix) {\n LocalDate now = LocalDate.now(Defaults.defau...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
overlay used for 100 mm width wallcover => standart width
@Override public int WallCoveringsNeededwidth(Shed shed, WoodPost woodPost) { double overlay = dataaccessor.getVariabel(5); // 150 double shedCoverWidth = shed.getWidth() - (2 * woodPost.getWidth() - (2 * dataaccessor.getVariabel(1))); // 1200 double wallCoverWidth = shed.getWallCovering(...
[ "double getWallThickness();", "public void drawInnerBoundarySmall() {\r\n\t\t// gl.glEnable(GL.GL_BLEND);\r\n\t\t// gl.glBlendFunc(GL.GL_SRC_ALPHA, GL.GL_ONE_MINUS_SRC_ALPHA);\r\n\r\n\t\tparent.pushMatrix();\r\n\t\tparent.translate(parent.width/2 - 1, parent.height/2);\r\n\t\tparent.image(hudInnerBoundarySmall, 0...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the value of the 'Outro' attribute. If the meaning of the 'Outro' attribute isn't clear, there really should be more of a description here...
String getOutro();
[ "public String getObno() {\n return (String) getAttributeInternal(OBNO);\n }", "public String getOcNo() {\n return (String)getAttributeInternal(OCNO);\n }", "public String getUom() {\n return (String)getAttributeInternal(UOM);\n }", "public String getObrefno() {\n return (...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets calories burned json.
@GET @Produces(MediaType.APPLICATION_JSON) @Path("/json/{activity}/{weight}/{duration}/{unit}") public Response getCaloriesBurnedJSON( @PathParam("activity") int activityID, @PathParam("weight") double weight, @PathParam("duration") double duration, @PathParam...
[ "public double getCalories();", "private void displayCalorieData(JSONObject[] jsonObjects) {\r\n int[] caloriesOut = {};\r\n boolean displayGoal = false;\r\n\r\n try {\r\n // Get calories burned for each day\r\n JSONArray caloriesArray = jsonObjects[0].getJSONArray(\"act...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Wraps an deleteCustomerAlertByCustomerAndData WS call
public int deleteCustomerAlertByCustomerAndData(long customerId, String key, long value) { int status = -1; try { DeleteCustomerAlertByCustomerAndDataRequest request = getNewMobiliserRequest(DeleteCustomerAlertByCustomerAndDataRequest.class); request.setCustomerId(customerId); request.setKey(key...
[ "void deleteCustomerById(int customerId);", "public void delete(Customer customer);", "public void deleteCustomer(Customer customer) throws SQLException;", "void deleteCustomerById(Long id);", "@FXML\n void deleteCustomerClick(MouseEvent event) {\n\n Customer customer = customerTableView.getSelect...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Base Class to hold Cartridge Data in one object. DBUtilities uses this class to add new cartridges to the database. CartridgeData uses this as Base Class.
public Cartridge() { }
[ "public ComponentData addComponentData(ComponentData data) {\n AgentAssetData assetData = new AgentAssetData((AgentComponentData)data);\n\n // String agent = data.getName();\n\n // FIXME: IF asset class is null or empty, perhaps abort? Or\n // fill in the agent name inside these?\n // Of course, doin...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Set the content service
public void setContentService(ContentService contentService) { this.contentService = contentService; }
[ "void setContentManager(ContentManager cm);", "private void setService(Service service) {\n this.service = service;\n }", "public void setService(Service service)\n {\n this.service = service;\n }", "void setService(java.lang.String service);", "public void setContentTypeService(Conte...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test of testVerifyPicoYplacaCaseDateFormat method, of class PicoYPlaca.
@Test public void testVerifyPicoYplacaCaseDateFormat() { System.out.println("testVerifyPicoYplacaCaseDateFormat"); String plateNumber = "ABC-1234"; String date = "05/07/2019"; String time = "13:00"; PicoYPlaca instance = new PicoYPlaca(); Boolean expResult = false; ...
[ "@Test\n public void testVerifyPicoYplacaCaseBadDate() {\n System.out.println(\"testVerifyPicoYplacaCaseBadDate\");\n String plateNumber = \"ABC-1234\";\n String date = \"2019/15/12\";\n String time = \"13:00\";\n PicoYPlaca instance = new PicoYPlaca();\n Boolean expResu...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Generates and returns an array of EOSQLExpressions that define the SQL statements to drop a database or user that is accessed by the provided connectionDictionary and administrativeConnectionDictionary. Returns null if this feature is not supported.
abstract com.webobjects.foundation.NSArray dropDatabaseStatementsForConnectionDictionary(com.webobjects.foundation.NSDictionary connectionDictionary, com.webobjects.foundation.NSDictionary administrativeConnectionDictionary);
[ "public com.webobjects.foundation.NSArray dropDatabaseStatementsForConnectionDictionary(com.webobjects.foundation.NSDictionary connectionDictionary, com.webobjects.foundation.NSDictionary administrativeConnectionDictionary){\n return null; //TODO codavaj!!\n }", "private static String dropFuncti...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ display() is overridden in the RedMetalBlock class to reflect the material changing from Plastic to Wood.
@Override public void display() { System.out.println("Red Wood Block created"); }
[ "@Override\n public String toString() {\n return material;\n }", "public String obetener_material (){ return material; }", "public String getMaterial() {\n return material;\n }", "public void setMaterial(Material material) {\n this.material = material;\n }", "public java.lang.String...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns true if field isFold is set (has been assigned a value) and false otherwise
public boolean isSetIsFold() { return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __ISFOLD_ISSET_ID); }
[ "boolean hasAlreadFoldCard();", "boolean isSetFactor();", "public boolean isTreeFoldable(){\n boolean isFoldable=true;\n if(this.getRoot()!=null )\n isFoldable=isMirrorImage(this.getRoot().getLeftNode(),this.getRoot().getRightNode());\n return isFoldable;\n }", "public boolean i...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Return fallback variant of method codegen
public static MethodGen getFallbackMethodGen(MethodNode mth) { ClassGen clsGen = new ClassGen(mth.getParentClass(), null, false, true, true, IntegerFormat.AUTO); return new MethodGen(clsGen, mth); }
[ "Object fallback(Object v1, Object v2) throws Throwable {\n\n Class<? extends Object> class1 = v1.getClass();\n Class<? extends Object> class2 = v2.getClass();\n MethodHandle op = lookupBinaryOp(opName, class1, class2);\n\n // convert arguments\n MethodType typ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets up the checkerboard with the starting game state, i.e. black is on the top of the screen and red is on the bottom. Also, all the checkers play on the red squares. Squares are numbered 063 starting at the lower left corner, black square as 0.
public void startGameState(){ ArrayList<Integer> checkeredSpaces = new ArrayList<Integer>(Arrays.asList(1, 3, 5, 7, 8, 10, 12, 14, 17, 19, 21, 23, 24, 26, 28, 30, 33, 35, 37, 39, 41, 42, 44, 46, 48, 51, 53, 55, 56, 58, 60, 62)); for(int i =0; i < 63; i++){ ...
[ "private void initializeBoard(){\r\n checks =new int[][]{{0,2,0,2,0,2,0,2},\r\n {2,0,2,0,2,0,2,0},\r\n {0,2,0,2,0,2,0,2},\r\n {0,0,0,0,0,0,0,0},\r\n {0,0,0,0,0,0,0,0},\r\n {1...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Checks that error is reported if field read from CSV file cannot be converted to the type of the column.
public void testWrongColumnType() { GridTestUtils.assertThrows(log, new Callable<Object>() { @Override public Object call() throws Exception { stmt.executeUpdate( "copy from \"" + BULKLOAD_TWO_LINES_CSV_FILE + "\" into Person" + " (_key, firstN...
[ "@Test\n public void testWrongColumnType() {\n GridTestUtils.assertThrows(log, new Callable<Object>() {\n @Override public Object call() throws Exception {\n stmt.executeUpdate(\n \"copy from '\" + BULKLOAD_TWO_LINES_CSV_FILE + \"' into Person\" +\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns true if the archive contains persistence.xml as defined by packaging rules of JPA Tries to getResource("METAINF/persitsence.xml") on curernt classLoader. If it succeeds, currrent archive is a pu root. This method will be called for each bundle inside an application which would include .war (the resource can be ...
public boolean handles(ReadableArchive location, ClassLoader loader) { boolean isJPAArchive = false; // scan for persistence.xml in expected locations. If at least one is found, this is // a jpa archive //Scan for the war case if(isEntryPresent(location, WEB...
[ "boolean isPersistenceContext();", "private boolean isArchive() {\n RepoPath repositoryPath = InternalRepoPathFactory.create(getRepoKey(), getPath());\n ItemInfo fileInfo = retrieveItemInfo(repositoryPath);\n return NamingUtils.getMimeType(fileInfo.getRelPath()).isArchive();\n }", "@Over...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
void setSzScrTmTimeTo(java.lang.String) Sets the value of field 'ulIdStage'.
public void setUlIdStage(int ulIdStage) { this._ulIdStage = ulIdStage; this._has_ulIdStage = true; }
[ "public void setSzScrTmTimeTo(java.lang.String szScrTmTimeTo)\r\n {\r\n this._szScrTmTimeTo = szScrTmTimeTo;\r\n }", "public void setStageUpdateTime(String stageUpdateTime) {\n this.stageUpdateTime = stageUpdateTime == null ? null : stageUpdateTime.trim();\n }", "public void setSzScrTimeF...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the agent request handlers
@Autowired(required=true) public void setAgentRequestHandlers(Collection<AgentRequestHandler> agentRequestHandlers) { for(AgentRequestHandler arh: agentRequestHandlers) { for(OpCode soc: arh.getHandledOpCodes()) { handlers.put(soc, arh); info("Added AgentRequestHandler [", arh.getClass().getSimpleName(), ...
[ "private void initRequestHandlers() {\n Set<Class<? extends RequestHandler>> requestHandlers = setupRequestHandlers();\n handlerStore.initHandlers(requestHandlers);\n }", "protected Set<Class<? extends RequestHandler>> setupRequestHandlers() {\n Set<Class<? extends RequestHandler>> handler...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Processes the given Utterance by passing it to each UtteranceProcessor managed by this Voice. The UtteranceProcessors are called in the order they were added to the Voice.
public void processUtterance(Utterance u) throws ProcessException { UtteranceProcessor[] processors; if (utteranceProcessors == null) { return; } if (u == null) { throw new ProcessException("Utterance is null."); } runTimer.start("processing"); ...
[ "void processUtterance(Utterance u) throws ProcessException;", "public interface UtteranceProcessor {\n\n\t/** Performs an operation on the given Utterance.\n\t * @param u the utterance on which to perform operations\n\t * @throws ProcessException if an exception occurred during the operation */\n\tvoid processUt...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
GENFIRST:event_jMenuItem2ActionPerformed TODO add your handling code here:
private void jMenuItem2ActionPerformed(java.awt.event.ActionEvent evt) { abrirClientes(); }
[ "private void jMenuItem2ActionPerformed(java.awt.event.ActionEvent evt) {\n }", "private void jMenuItem3ActionPerformed(java.awt.event.ActionEvent evt) {\n }", "private void jMenuItem1ActionPerformed(java.awt.event.ActionEvent evt) {\n }", "private void jMenu3ActionPerformed(java.awt.event.ActionEvent ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
GIVEN a nonfunctional smartplug WHEN I click "Toggle" on the client control THEN I should see that the smartplug is "Turned On" GIVEN a functional smartplug WHEN I click "Toggle" on the client control THEN I should see that the smartplug is "Turned Off" GIVEN a functional smartplug WHEN I look at the client control THE...
@Test public void testToggle() { // Toggle on test. boolean before = plug.getCondition(); clickOn("ON"); assertNotEquals(before, plug.getCondition()); // Toggle off test which also implies that the ON/OFF status is displayed. before = plug.getCondition(); clickOn("OFF"); assertNotEqua...
[ "void notifySpyModeToggle();", "private void toggleSwitch() {\n String value = ProfileManager.getInstance().getProperty(interaction.toString(), String.class);\r\n if (value == null) {\r\n if (switchEnabled) {\r\n switchEnabled = false;\r\n _currentMap.getLaye...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
A modbuf (object remembering barrier) entry has been traced during collection.
public void modbufEntry(ObjectReference object) { }
[ "public void entryTouched(OldOldCache.Entry entry);", "private void addBinToQueueAlreadyLatched(BIN bin) {\n\n final Long node = bin.getNodeId();\n\n if (binRefQueue.containsKey(node)) {\n return;\n }\n\n binRefQueue.put(node, bin.createReference());\n }", "public void ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Define an identifier for the DQP
String getDQPIdentity() { String id = System.getProperty(DQP_IDENTITY, "0"); //$NON-NLS-1$ int identity = Integer.parseInt(id)+1; id = String.valueOf(identity); System.setProperty(DQP_IDENTITY, id); return id; }
[ "private void deriveID(){\n\t\tid = model + \"-\" + Data.getNumInSim(model);\n\t}", "private String newProcessingDataId() {\n\t\tString result = \"pd\" + pdIdCounter;\n\t\tpdIdCounter++;\n\t\treturn result;\n\t}", "public void setIdentifier(short id) {\r\n this.id = id;\r\n }", "void addId(II identi...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Use SessionSetup.newBuilder() to construct.
private SessionSetup(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); }
[ "private Session(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private RequestedSession(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "Session build();", "public static Energistics.Etp.v12.Protocol.Core.RequestS...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Perform Ackley's function. Domain is [5, 5] Minimum is 0 at x = 0 & y = 0.
static double ackleysFunction (double x, double y) { double p1 = -20*Math.exp(-0.2*Math.sqrt(0.5*((x*x)+(y*y)))); double p2 = Math.exp(0.5*(Math.cos(2*Math.PI*x)+Math.cos(2*Math.PI*y))); return p1 - p2 + Math.E + 20; }
[ "public static double eval_ack(double[] pos) {\n\t\tdouble firstSum = 0.0;\n\t\tboolean overflow = false;\n\t\tfor (int i = 0; i < dimensionality; i++) {\n\t\t\tdouble prev = firstSum;\n\t\t\tfirstSum += pos[i] * pos[i];\n\t\t\tif ((pos[i] > 0 && firstSum <= prev))\n\t\t\t\toverflow = true;\n\t\t}\n\n\t\tdouble sec...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates a new instance of SearchFilesystemOperatorTest
public FindInFilesOperatorTest(String testName) { super(testName); }
[ "public SearchTest()\n {\n }", "public TestSearch()\n {\n }", "@Test\r\n public void testSearchToFile() throws Exception {\r\n System.out.println(\"searchToFile\");\r\n File fileName = new File(\"student.txt\");\r\n String target = \"Ali\";\r\n FileOperation instance =...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Kill a jobs with using jobId
public void kill(String jobId) throws NotBoundException, RemoteException { Registry registry = LocateRegistry.getRegistry(registryHost, registryPort); JobTracker jobTracker = (JobTracker) registry.lookup("JobTracker"); jobTracker.kill(jobId); }
[ "String createKillCommand(String jobId);", "void disjoinJob(long jobId, long joinedJobId);", "void deleteByJobId(Long jobId);", "boolean cancelJob(String jobId) throws Exception;", "public void pauseJob(String jobId);", "public void killJobs(String tag, long timestamp);", "public void deleteJobById(int ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
set the menu button's image to hoverimage
@Override public void handle(MouseEvent event) { menuButton.setImage(hoverImage); }
[ "@Override\r\n public void handle(MouseEvent event) {\n menuButton.setImage(unHoverImage);\r\n }", "public void setHoverImage(Image hoverImage) {\r\n \tthis.hoverImage = hoverImage;\r\n }", "public void mouseEntered(MouseEvent e) {\n\t\tbutton.setImg(\"generalhoverbutt...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the fill style of a given subblock of cells. The other properties of cell styles are preserved.
public void setFill( final short foreground, final short background, final short pattern, int[] rowIndices, int[] colIndices ) { modifyCellStyle(rowIndices, colIndices, new CellStyleModifier() { public void modify( CellStyle style ) { style.setFillPattern( pattern ); ...
[ "public void setFill( final XSSFColor foreground, final XSSFColor background, final short pattern,\n int[] rowIndices, int[] colIndices )\n {\n modifyCellStyle(rowIndices, colIndices, new CellStyleModifier() {\n public void modify( CellStyle style ) {\n st...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the Z textfield's text
public void setZ(String s) { z.setText(s); }
[ "private void setTextField() {\n\t\ttextFieldLogic = new FSTextfieldLogic(M_InTe);\n\n\t\ttextFieldLogic.handleNumericInput(7);// control of the user input\n\t\ttextFieldLogic.handleNullInput(M_Add);// handle null input\n\n\t\tM_InTe.setText(\"10\");\n\t}", "private void setText(Text text) {\n \t\tthis.text = tex...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Clear an option entry
public void clearOption(String key) { FxStructureOption.clearOption(options, key); }
[ "public void resetOption();", "public String clearEntry();", "public void removeAllOptions() {\n\t\toptGroup.getOptions().clear();\n\t\tsetText(\"\");\n\t}", "public static void clear() {\n OPTIONS.clear();\n }", "public void clearChoiceSelect() {\n choiceSelect = -1;\n }", "protecte...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Stop and block all threads (on all processors) on a GC safe point. Only the calling thread (the GC thread) will continue.
public abstract void stopThreadsAtSafePoint();
[ "private void performGC() {\n for(int i = futures.size() - 1; i >= 0; i--) {\n if(futures.get(i).isDone()) {\n futures.remove(i);\n }\n }\n }", "private synchronized void stop() {\n stopped = true;\n threads.forEach((stream,thread) -> {st...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Helper method for loading a picture in the current directory.
protected static Picture loadPicture(String pictureName) { URL url = Picture.class.getResource("../Pictures/" + pictureName); return new Picture(url.getFile().replaceAll("%20", " ")); }
[ "void loadPhoto(String filename) throws IOException;", "public Picture loadPicture(String name) throws IOException, PackageManager.NameNotFoundException {\n return new Picture(new File(getPictureDirectory() + \"/\" + name), new PictureDirectoryManager(activity));\n }", "protected abstract Image loadIm...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
To setup sftp connection.
@Bean public SessionFactory<LsEntry> sftpSessionFactory() { DefaultSftpSessionFactory factory = new DefaultSftpSessionFactory(true); factory.setHost(getSftpHost()); factory.setPort(getSftpPort()); factory.setUser(getSftpUser()); factory.setPassword(getSftpPasword()); factory.setAllowUnknownK...
[ "public ServerTrackPlacer(IImportServiceSftp sftp) {\n this.sftp = sftp;\n }", "protected boolean createSftpChannel() {\n try {\n Channel channel = session.openChannel(\"sftp\");\n channel.setInputStream(null);\n channel.connect(TIMEOUT);\n channelSftp = (ChannelSftp) channel;\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This adds a property descriptor for the Term feature.
protected void addTermPropertyDescriptor(Object object) { itemPropertyDescriptors.add (createItemPropertyDescriptor (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), getString("_UI_GlossaryTerm_term_feature"), getString("_UI_PropertyDescriptor_descriptio...
[ "protected void addTermpropertyPropertyDescriptor(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_GlossaryTerm_termproperty_feature\"),\n\t\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the "experiment" element
public gov.nih.nlm.ncbi.www.SeqFeatSupportDocument.SeqFeatSupport.Experiment getExperiment() { synchronized (monitor()) { check_orphaned(); gov.nih.nlm.ncbi.www.SeqFeatSupportDocument.SeqFeatSupport.Experiment target = null; target = ...
[ "public String getExperimentId() {\n return experimentId;\n }", "public int getExperimentId() {\n return experimentId;\n }", "public String getExperimentName();", "public ExperimentView getExperimentView () {\n\t\treturn view;\n\t}", "com.google.ads.googleads.v6.resources.CampaignExperiment ge...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Determine if the HorzScanSector is configured.
public boolean isSetHorzScanSector() { return (this.horzScanSector != null ? this.horzScanSector.isSetValue() : false); }
[ "boolean hasSector();", "public boolean hasSector() {\n return fieldSetFlags()[2];\n }", "public boolean isSetHorzScanSpeed() {\n return (this.horzScanSpeed != null ? this.horzScanSpeed.isSetValue() : false);\n }", "boolean hasGcePersistentDiskCsiDriverConfig();", "public boolean isSetHorzScanRa...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__XMemberFeatureCall__Group_1_0_0__0" $ANTLR start "rule__XMemberFeatureCall__Group_1_0_0__0__Impl" ../org.xtext.mongobeans.ui/srcgen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:7031:1: rule__XMemberFeatureCall__Group_1_0_0__0__Impl : ( ( rule__XMemberFeatureCall__Group_1_0...
public final void rule__XMemberFeatureCall__Group_1_0_0__0__Impl() throws RecognitionException { int stackSize = keepStackSize(); try { // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:7035:1: ( ( ( rule__XMemberF...
[ "public final void rule__XMemberFeatureCall__Group_1_1_0__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:7344:1: ( ( ( ru...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the value of the 'field895' field. doc for field895
public java.lang.CharSequence getField895() { return field895; }
[ "public java.lang.CharSequence getField895() {\n return field895;\n }", "java.lang.String getField1578();", "java.lang.String getField1599();", "java.lang.String getField1571();", "java.lang.String getField1558();", "java.lang.String getField1098();", "java.lang.String getField1164();", "publi...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Constructor for a new frame with the given id.
public Frame(String id, int slots, int links) { this.slots = new Slot[slots]; this.links = new Link[links]; this.id = id; }
[ "public StackFrame(int id, String name, Source src, int ln, int col) {\n this.id = id;\n this.name = name;\n this.source = src;\n this.line = ln;\n this.column = col;\n }", "public FrameBean(String beanId) {\n super(FRAME_TABLE);\n this.b...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns true if the sizes of the lists in the first state are all equal to the length of the corresponding list in the second state.
private static boolean sizeEqual(final I_GameState state1, final I_GameState state2) { //if a state is null there surely must be a mistake somewhere if (state1 == null || state2 == null) throw new NullPointerException("A state cannot be null when comparing"); // make a stream with a data struct...
[ "private final boolean AreListStatesEqual(List<State> list1, List<State> list2) {\r\n if ((list1.size() != list2.size())) {\r\n return false;\r\n }\r\n \r\n for (State state : list1) {\r\n if (!list2.contains(state)) {\r\n return false;\r\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Constructor for building WhereExpressions from an ANTLR tree
public WhereExpression(Tree t, TreeBuilder treeBuilder, SelectStatement selectStatement) throws TreeParsingException { this.selectStatement = selectStatement; this.builder = treeBuilder; this.build(t, this.builder); }
[ "public WhereClause() {\n statements = null;\n constraint = null;\n }", "public ExpressionVisitor() {\n\n }", "public ExpressionToSQLCompiler() {\n _operators = new LinkedList<>();\n _walker = new TreeWalker<>(Expression.class);\n }", "static Expression buildInterpreterTree() \n {\n \tArr...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Editing the Report specific profile which was created in previous test steps
public boolean edit_Report_specific_profile(){ Logger log = Logger.getLogger("Logger"); verbose("**********Editing the notification profile******"); if(sidePanel(Report_specific_notification,Report_specific_notification_edit)){ //sidePanel method is calling from NotificationsZonesPage log.info("Specific...
[ "org.hl7.fhir.Profile addNewProfile();", "public void setProfile(Profile profile) {\n _profile = profile;\n }", "public void setProfile( ProjectProfileBO pProfile )\r\n {\r\n mProfile = pProfile;\r\n }", "public void testDefaultProfile_Configuration() throws Exception{\r\n Profil...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Set to prevent doubles / ChessModel Class Constructor 'r' The Rows 'c' The Cols 's' The starting state of the board
public ChessModel(int r, int c, ArrayList<Integer> s){ Rows = r; Cols = c; start = s; curBoard = s; clearStack(); }
[ "public Cell(char r, char c) throws Exception\n\t{\n\t\tif(r<Board.rowMin || r>Board.rowMax || c<Board.colMin || c>Board.colMax)\n\t\t\tthrow new Exception(\"Invalid row and column for a cell\");\n\t\trow = r;\n\t\tcol = c;\n\t\t\n\t\tselected = false;\n\t\tnextMove = false;\n\t}", "public Coordinate set(final in...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test builder interface defines builder pattern methods for creating a new Citrus test case.
public interface TestDesigner extends TestCaseBuilder { /** * Adds a custom test action implementation. * * @param testAction */ void action(TestAction testAction); /** * Adds a custom test action implementation. * @param builder */ void action(TestActionBuilder<?> b...
[ "TestCase createTestCase();", "Testcase createTestcase();", "private TestSuite(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "@Test()\n public void createCaseWhitBuilderPattern() {\n casesHome.clickNewButton();\n Cases cases = new Cases.CasesBuilder(...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ Name: Country () Purpose: Constructor. Parameters: p_db : The database object Returns: None
public Country(ausstage.Database p_db) { m_db = p_db; initialise(); }
[ "public CountryRecord() {\n\t\tsuper(com.fhoster.jooq4hibernate.jooq.tables.Country.COUNTRY);\n\t}", "public Country(){}", "public LCountry() {\n this(DSL.name(\"L_COUNTRY\"), null);\n }", "public Country (String instanceName)\n {\n name = instanceName;\n }", "Country createCountry();...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
retorna la lista de Indicadores de Tipo de Recomendada
public List getIndicadoresTipoRecomendada();
[ "public List getTipoExigencia();", "public static ArrayList<String> obtenerTipos() {\n ArrayList<String> listaResultado = new ArrayList<>();\n\n ArrayList<Producto> x = App.r.getListproductos();\n try{ \n for(Producto p :x){\n if(listaResultado.contains(p.getTipo())==f...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
The setRadius method stores a value in the radius field.
public void setRadius(double value) { radius = value; }
[ "public void setRadius(double radius) { this._radius = radius; }", "public void setRadius(double newRadius){ radius = newRadius; }", "public void setRadius(double newRadius)\n\t{radius = newRadius;}", "public void setRadius (float radius)\n {\n set(_x, _y, radius);\n }", "public void setRadi...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the localRingBackToneId value for this LocalRingBackTone.
public java.lang.String getLocalRingBackToneId() { return localRingBackToneId; }
[ "public void setLocalRingBackToneId(java.lang.String localRingBackToneId) {\r\n this.localRingBackToneId = localRingBackToneId;\r\n }", "public java.lang.String getLocalId() {\n return localId;\n }", "public java.lang.String getLocalId() {\n return localId;\n }", "public String getLocalI...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates a new instance of ClassTypeNativeByteArrayWrapperImpl
public ClassTypeNativeByteArrayWrapperImpl(ClassTypeManagerImpl mgr) { super(ClassTypeNativeByteArrayImpl.getClassTypeNativeByteArray(mgr), mgr,true); }
[ "public TypeNativeObjectArrayWrapperImpl(ClassTypeNativeObjectArrayWrapperImpl dataType)\n {\n super(dataType);\n }", "@NotNull\n private static Constructor<?> createNewDirectBufferCtor() {\n try {\n ByteBuffer buf = ByteBuffer.allocateDirect(1).order(NATIVE_BYTE_ORDER);\n\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__AtomicDomainSpecificEvent__Group_7__1" $ANTLR start "rule__AtomicDomainSpecificEvent__Group_7__1__Impl" ../org.gemoc.gel.xtext.ui/srcgen/org/gemoc/gel/ui/contentassist/antlr/internal/InternalGEL.g:2766:1: rule__AtomicDomainSpecificEvent__Group_7__1__Impl : ( ( rule__AtomicDomainSpecificEvent__Executio...
public final void rule__AtomicDomainSpecificEvent__Group_7__1__Impl() throws RecognitionException { int stackSize = keepStackSize(); try { // ../org.gemoc.gel.xtext.ui/src-gen/org/gemoc/gel/ui/contentassist/antlr/internal/InternalGEL.g:2770:1: ( ( ( rule__AtomicDomainSpecific...
[ "public final void rule__AtomicDomainSpecificEvent__Group_7__2__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.gemoc.gel.xtext.ui/src-gen/org/gemoc/gel/ui/contentassist/antlr/internal/InternalGEL.g:2798:1: ( ( ( rule__AtomicDo...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test bidirectional communication over forward tunnel.
@Test public void testForwardTunnel() throws Exception { ServerSocket remoteServerSocket = new ServerSocket(tunnel.getRemotePort()); Socket localClientSocket = new Socket("localhost", tunnel.getLocalPort()); Socket remoteClientSocket = remoteServerSocket.accept(); OutputStream remot...
[ "@Test\n public void testFastForward() throws Exception {\n setUpConnectedState(true, true);\n MediaController.TransportControls transportControls =\n BluetoothMediaBrowserService.getTransportControls();\n\n //FastForward\n transportControls.fastForward();\n veri...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the current Stroke in the Graphics2D context.
public abstract Stroke getStroke();
[ "public Stroke getStroke()\r\n\t{\r\n\t\treturn _g2.getStroke();\r\n\t}", "public Stroke getStroke() {\n\t\treturn stroke;\n\t}", "public Stroke getStroke(){ \r\n return this.stroke;\r\n }", "public Stroke getInnerStroke() {\n return null;\n }", "public Stroke getGridStroke()\n {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Save the archive job status of the current node
private void persistArchiveStatus(String archiveID, String jobID, boolean isArchiveSuccess) throws Exception { String mn = "updateArchiveJobStatus"; //ArchiveActivityHelper.obtainArchiveSummaryLock(); String archiveFolderPath = getArchiveFolderPath(); Properties archiveJobProperties = ArchiveActi...
[ "private void updateMasterNodeStatus(Properties jobProperties, String jobID, String archiveID) throws Exception\n {\n String mn = \"updateMasterNodeStatus\";\n Enumeration enu = jobProperties.propertyNames();\n boolean isAllActivityCompleted = true;\n boolean isActivitySuccess = true;\n \n \n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Find a configuration node specified by the path/index.
public abstract AbstractConfigNode find(List<String> path, int index) throws ConfigurationException;
[ "public AbstractConfigNode find(@Nonnull String path)\n throws ConfigurationException {\n path = path.trim();\n Preconditions.checkArgument(!Strings.isNullOrEmpty(path));\n if (path.startsWith(ConfigurationSettings.NODE_SEARCH_SEPERATOR)) {\n return configuration.find(path...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
replace status of the specified Authentication
@HTTP( method = "PUT", path = "/apis/config.openshift.io/v1/authentications/{name}/status", hasBody = true ) @Headers({ "Content-Type: application/json", "Accept: */*" }) KubernetesCall<Authentication> replaceAuthenticationStatus( @Path("name") String name, @Body Authentication bod...
[ "@HTTP(\n method = \"PUT\",\n path = \"/apis/config.openshift.io/v1/authentications/{name}/status\",\n hasBody = true\n )\n @Headers({ \n \"Content-Type: application/json\",\n \"Accept: */*\"\n })\n KubernetesCall<Authentication> replaceAuthenticationStatus(\n @Path(\"name\") String name, \n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the value of the PackageRisk field.
public void setPackageRisk(typekey.PackageRisk value) { __getInternalInterface().setFieldValue(PACKAGERISK_PROP.get(), value); }
[ "public void setPackageRisk(typekey.PackageRisk value) {\n __getInternalInterface().setFieldValue(PACKAGERISK_PROP.get(), value);\n }", "@Override\n\tpublic synchronized void setRiskPolicy(RiskPolicy riskPolicy) {\n\t\tthis.riskPolicy = riskPolicy;\n\t}", "public void setIsRisk(String isRisk) {\n thi...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method sets the value of the database column user.schoolNum
public void setSchoolnum(String schoolnum) { this.schoolnum = schoolnum == null ? null : schoolnum.trim(); }
[ "public void setSchoolNumber(Integer schoolNumber) {\n this.schoolNumber = schoolNumber;\n }", "public void setSchoolid(Integer schoolid) {\n this.schoolid = schoolid;\n }", "public void setSchoolID(int schoolID){\n\t\tthis.schoolID = schoolID;\n\t}", "public void setSchoolid(Long schoolid...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Key: kCGPDFOutlineTitle Value: CFString APISince: 11.0
@NotNull @Generated @CVariable() public static native CFStringRef kCGPDFOutlineTitle();
[ "@NotNull\n @Generated\n @CVariable()\n public static native CFStringRef kCGPDFOutlineDestination();", "@NotNull\n @Generated\n @CVariable()\n public static native CFStringRef kCGPDFOutlineChildren();", "Font getHeaderTitleFont();", "public String getDrillDocTitle();", "protected void upda...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Case 1 Create 2 file. Open two write thread. First by raw constructor. Second by FileModule object. Write to each file word "test". Close thread. Create two read thread by raw constructor and check files content. Close thread. ExpectedContent in files equals with step 3
public void testGetWriteThread() { String fileName1 = TESTDATAFOLDER + "FileModuleThreadTest1.txt"; String fileName2 = TESTDATAFOLDER + "FileModuleThreadTest2.txt"; FileModule instance = new FileModule(); FileModuleWriteThreadInterface result = instance.getWriteThread(fileName1); ...
[ "public void testGetWriteThreadWithCreating() {\r\n String fileName1 = TESTDATAFOLDER + \"FileModuleThreadTest1_temp.txt\";\r\n String fileName2 = TESTDATAFOLDER + \"FileModuleThreadTest2_temp.txt\";\r\n FileModule instance = new FileModule();\r\n FileModuleWriteThreadInterface result = ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
retrieve frame height in pixels \param[in] frame handle returned from a callback \param[out] error if nonnull, receives any error that occurs during this call, otherwise, errors are ignored \return frame height in pixels Original signature : int rs2_get_frame_height(const rs2_frame, rs2_error) native declaration : line...
int rs2_get_frame_height(Realsense2Library.rs2_frame frame, PointerByReference error);
[ "int rs2_get_frame_data_size(Realsense2Library.rs2_frame frame, PointerByReference error);", "public int getImageHeight()\n {\n \n int retVal = getImageHeight_0(nativeObj);\n \n return retVal;\n }", "public int getFrameHeight() {\n\t\treturn (int) videoCap.get(Videoio.CAP_PROP...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the battlefield for this player
public void setBattleField(BattleField b) { if(m_battleField == null) m_battleField = b; }
[ "public void setPlayer(Player myPlayer){\n battlePlayer=myPlayer;\n }", "void setBattleFieldElement(int x, int y, BattleFieldElement b) throws IllegalElementException, IllegalPositionException{\n \t \t\n if ((x == rows-1) && (!b.toString().equals(\"G\")) && (!b.toString().equals(\"-\"))) \n \t...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns a transformer for the given parameters. This method will only return direct transformers.
public Transformer getTransformer(Class<?> from, Class<?> to, Collection<String> usingNames) { return this.getTransformer(from, to, usingNames, false); }
[ "Transformer getTransformer();", "List<Transformer<?,?>> getRegisteredTransformers();", "protected abstract GTransformer getTransformer();", "public Transformer getTransformer(Class<?> from, Class<?> to)\n {\n return this.getTransformer(from, to, null, false);\n }", "public interface Transformer {\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Replies the set of ids of all complete, nonnew primitives (i.e. those with ! primitive.incomplete)
protected Set<OsmPrimitive> getCompletePrimitives(DataSet ds) { HashSet<OsmPrimitive> ret = new HashSet<OsmPrimitive>(); for (OsmPrimitive primitive : ds.allPrimitives()) { if (!primitive.isIncomplete() && !primitive.isNew()) { ret.add(primitive); } } ...
[ "List<Integer> getEmptyCellIds();", "public Primitive[] getPrimitives();", "public List<Integer> getUnreachableIds()\r\n\t{\r\n\t\treturn unreachableIds;\r\n\t}", "@Test\r\n\tpublic void testIds()\r\n\t{\r\n\t\tSet<Integer> ids = new HashSet<>();\r\n\t\tfor (Term term : listOfTerms)\r\n\t\t{\r\n\t\t\tids.add(...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method returns the value of the database column x$schema_table_lock_waits.blocking_lock_type
public String getBlocking_lock_type() { return blocking_lock_type; }
[ "public String getWaiting_lock_type() {\n return waiting_lock_type;\n }", "public String getLockType() {\n return this.lockType;\n }", "public TxnType getLockType();", "public void setBlocking_lock_type(String blocking_lock_type) {\n this.blocking_lock_type = blocking_lock_t...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Constructs a pointer with the specified contained data.
public Pointer(D data) { this.data = data; }
[ "public Pointer createPointer() throws NativeException {\n\t\tpointer = new Pointer(MemoryBlockFactory.createMemoryBlock(sizeOf()));\n\t\tpointer.setIntAt(0, x);\n\t\tpointer.setIntAt(4, y);\n\t\treturn pointer;\n\t}", "public COPYDATASTRUCT(final long pointer) {\n this(new Pointer(pointer));\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Set the value of the personal.categoria column for the specified row.
public void setPersonalCategoria(int row,String newValue) throws DataStoreException { setString(row,PERSONAL_CATEGORIA, newValue); }
[ "public void setCategoria(Integer categoria) {\n this.categoria = categoria;\n }", "abstract public void setCategorie(String categorie);", "public String getPersonalCategoria(int row) throws DataStoreException {\r\n return getString(row,PERSONAL_CATEGORIA);\r\n }", "public void setPers...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Method used by btnSubmitRate from Java FX It permits to add a rate to a seller or a product
@FXML public void addRate() { if (btnSubmitRate.getOpacity() > 0.5) { String rate = txtRate.getText(); if (rate.equals("1") || rate.equals("2") || rate.equals("3") || rate.equals("4") || rate.equals("5")) { int i = Integer.parseInt(rate); // Page selle...
[ "private void desactivateSubmitRate() {\n // Cas page Seller\n if (page.equals(\"seller\")) {\n Float rate = facadeS.getRate((Consumer) facadeU.getConnectedUser(), nameSeller);\n if (rate != 0) {\n btnSubmitRate.setOpacity(0.4);\n txtRate.setText(rat...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This function saves the current date in the given file name
public void save(String filename) { PrintWriter out = null; try { out = new PrintWriter(new BufferedWriter(new FileWriter(filename))); } catch (IOException e) { throw new IllegalArgumentException(); } out.println (month); out.println (day); ...
[ "private void setFileDate() {\r\n\t\tnow = new Date();\r\n\t\tdateFormat = new SimpleDateFormat(\"dd/MM/yyyy\");\r\n\t\ttodayDate = dateFormat.format(now);\r\n\t\tdate = todayDate.split(\"/\");\r\n\t\tsetToday(date[0] + \"_\" + date[1] + \"_\" + date[2]);\r\n\t\txmlFileName = getToday() + \".xml\";\r\n\t}", "priv...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ This method constructs a String to display the weighted percentage and letter grade estimates based on the input from the grade info file in a specific style.
public String getEstimateReport() { String estimateReport = "Grade Estimate is based on " + scores.size() + " scores.\n"; // The first sentence of the report indicating // the number of scores based on. double totalScore = 0.0; // The score you get. double iteratedCatVal = 0.0; // each percentage in the ass...
[ "@Override\r\n\tpublic void calcGrade()\r\n\t{\r\n\t\r\n\t\tif (average > 91.0 || (average > 89.0 && projectAvg > 92.0))\r\n\t\t{\r\n\t\t\tthis.letterGrade = 'A';\r\n\t\t}else if (average > 81.0 || (average > 79.0 && projectAvg > 82.0))\r\n\t\t{\r\n\t\t\tthis.letterGrade = 'B';\r\n\t\t}else if (average > 71.0 || (a...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Parse the bytes into a MapInstructions data
public MapInstructions load(MapContext pContext, MapBytesData pBytesData);
[ "public void parseInstructions() {\n\t\tint labelIndex = 0;\n\t\t\n\t\t// Here we iterate over each instruction and check if it is a label.\n\t\t// If it is a label, we update the LabelTable with the index of the label, accounting for previous labels.\n\t\t// If it is not a label, we add the instruction to the Inst...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Bind the camera to your Activity's display. Use this, if your Activity supports multiple display orientation, and you would like the camera to update accordingly when the orientation is changed.
public void bindToDisplay(Display display) { mCameraRunner.bindToDisplay(display); }
[ "public void configureCamera(){\n try{\n camera = Camera.open(findBackFacingCamera());\n } catch (Exception e){}\n\n if(camera != null) {\n cameraView = new CameraView(this.getApplicationContext(), camera);\n FrameLayout camera_view = (FrameLayout)findViewById(R...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates a new instance of DatasetParameterPK with the specified values.
public DatasetParameterPK(String units, String name, Long datasetId) { this.units = units; this.name = name; this.datasetId = datasetId; }
[ "public DatasetParameterPK() {\n }", "public ParametroPorParametroPK() {\r\n\t}", "public ReferenceDataSetCreateOrUpdateParameters() {\n }", "FromValues createFromValues();", "public Query createInsertQuery(TableDescription t, SQLDialect dialect, DataFormatter fmt, String pkExpr, Map<Integer, String> ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Add a value to property citation.
Builder addCitation(String value);
[ "Builder addCitation(Text value);", "Builder addCitation(CreativeWork value);", "public CitationField value(String value) {\n setValue(value);\n return this;\n }", "public void addProperty(Property p){\n content.add(p);\n }", "public TransformedServiceReference<S> addProperty(String name, Object ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Use a custom docker client.
public DockerExecuteActionBuilder client(DockerClient dockerClient) { delegate.client(dockerClient); return this; }
[ "public static DockerClient createDockerClient() {\n try {\n DefaultDockerClient.Builder builder = DefaultDockerClient.builder();\n if (getDockerCertDir() != null) {\n builder\n .uri(URI.create(\"https://\" + getDockerRemoteHost() + \":\" + getDocke...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }