query
stringlengths
8
1.54M
document
stringlengths
9
312k
negatives
listlengths
19
20
metadata
dict
set up the file logger...
@Override public void setupFileLogging() { }
[ "private static void setupLogger() {\n\t\tLogManager.getLogManager().reset();\n\t\t// set the level of logging.\n\t\tlogger.setLevel(Level.ALL);\n\t\t// Create a new Handler for console.\n\t\tConsoleHandler consHandler = new ConsoleHandler();\n\t\tconsHandler.setLevel(Level.SEVERE);\n\t\tlogger.addHandler(consHandl...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
list of all rest mapping
@RequestMapping(value = { "/", "/restmaps" }, method = RequestMethod.GET) public String listRestMaps(ModelMap model) { Map<RequestMappingInfo, HandlerMethod> mappingMap=restController.getMappingsList(); List<String> restPaths=new ArrayList<String>(); for(Map.Entry<RequestMappingInfo, HandlerMethod> item : mapp...
[ "public List<ResourceMapping> getSubMappings()\n {\n return f_subMappings;\n }", "public ArrayList<Mapping> getMappings() { return new ArrayList<Mapping>(mappings); }", "public abstract List<AttrMapping> getMappings();", "public List<RestOutput> getRestSubParameters(){\n\t\tLinkedList<Re...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Create a new path event.
protected PathEvent(final Object source) { super(source); }
[ "private static void createPath(Path path) {\r\n\t\tString tempStr = \"\";\r\n\t\tint finished = 1;\r\n\t\tint tempId = -1;\r\n\t\tList<GeoCoordinate> polyline = new ArrayList<GeoCoordinate>();\r\n\t\tList<Place> placeList = new ArrayList<Place>();\r\n\t\tContainerNII pathNii = new ContainerNII();\r\n\t\tPlace plac...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Writes specified HTML text to OPS text directory.
private String writeText(TextObject text, String id, String name) throws IOException { String path = TEXT_DIR + "/" + name; epubWriter.writeIntoOps(text, path, epubConfig.htmlConfig.encoding); newResource(id, path, MT_XHTML); return path; }
[ "private String writeText(String text, String id, String name) throws IOException {\n String path = TEXT_DIR + \"/\" + name;\n epubWriter.writeIntoOps(text, path, epubConfig.htmlConfig.encoding);\n newResource(id, path, MT_XHTML);\n return path;\n }", "private static void writeTxt(S...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Access method for the manageObjectIds property.
public Collection getManagedObjectIds() { return managedObjectIds; }
[ "public int[] getObjectIds() {\n\t\t\treturn objects;\n\t\t}", "public void setManagedObjectIds(Collection aManagedObjectIds)\n {\n managedObjectIds = aManagedObjectIds;\n }", "public ManagedObjectId getManagedObjectId()\n {\n return managedObjectId;\n }", "public int[] getItemIds();...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ Enable retrieval of shipping addresses from buyer's PayPal account
private void enableShippingAddressRetrieval(PayPalPayment paypalPayment, boolean enable) { paypalPayment.enablePayPalShippingAddressesRetrieval(enable); }
[ "public void setShippingAddressInCart(Address addr);", "java.lang.String getAddressForPayment();", "boolean isShippingAddress();", "hipstershop.Demo.Address getShippingAddress();", "public void setBillingAddressInCart(Address addr);", "public List<Address> getAllShipAddresses() throws BackendException {\r...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gives the corrected coordinates for dragging an element, so that the element does not leave the elevator area.
private Point getDraggingXY(int ox, int oy, int dx, int dy) { int x, y; // if the element has a rope holder or umlenkrolle on top of its head // the element is higher than normal -> extraHeight int extraHeight = 0; if (this instanceof EndElement) { EndElement endElement = (EndElement) this; if (endElem...
[ "private Point toLocalCoords(MouseEvent e) {\n // Event coords are relative to the button, so translate a bit\n Point global = e.getLocationOnScreen();\n\n global.x -= x;\n global.y -= y;\n return global;\n }", "private void dragging() {\n root....
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This interface represents a financial portfolio. A financial portfolio is used to keep track of the investments you have made. You can invest by buying stocks of a company. Basically a portfolio is the collection of stocks. This interface provides you with means to retrieve the data of your portfolio, the amount of mon...
public interface IPortfolio<K> { /** * Returns the portfolio data. * * @return the portfolio data in the form a string. */ HashMap<String, Double> getPortfolioData(String date); /** * Returns the total cost basis of the portfolio at a given date. * * @param date date for which the cost bas...
[ "public interface IPortfolio {\n /**\n * Return the name of portfolio.\n * @return the name of portfolio\n */\n String getPortfolioName();\n\n /**\n * Set API object used in portfolio. A API object must implements IGetPrice interface.\n * @param api api object\n */\n void setAPI(IGetPrice api);\n\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the view frame.
private ViewFrame getViewFrame() { return this.viewFrame; }
[ "private ViewFrame getViewFrame() {\n\t\treturn this.viewFrame;\n\t}", "public int getFrame() {\n return Frame().get();\n }", "public Frame getFrame() {\n return this.frame;\n }", "public Frame getFrame() {\n return frame;\n }", "public java.awt.Frame getFrame();", "public in...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method returns the value of the database column fos_audit_order_month.FOS_ORDER_MONTH_ID
public Integer getFosOrderMonthId() { return fosOrderMonthId; }
[ "@Field(names = {\"feb_id\"})\n public Integer getFebID() {\n return this.getFieldValue(\"feb_id\");\n }", "public int getMonthValue(){\n\t\treturn monthValue;\n\t}", "public Integer getDatemonth() {\n return datemonth;\n }", "public int getMonthSelected() {\n return monthSelected;\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Method to delete AWS S3 bucket object
public void s3delete(String bucketName, String fileName) throws IOException { System.out.println("------------- CustomS3Client --------------"); System.out.println("Inside s3delete bucket Name: "+bucketName+" and file Name: "+ fileName); s3 = AmazonS3ClientBuilder.standard() ....
[ "public void deleteBucket() {\n\n logger.debug(\"\\n\\nDelete bucket\\n\");\n\n String accessId = System.getProperty(SDKGlobalConfiguration.ACCESS_KEY_ENV_VAR);\n String secretKey = System.getProperty(SDKGlobalConfiguration.SECRET_KEY_ENV_VAR);\n\n Properties overrides = new Properties()...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the "attributeType" element
public java.lang.String getAttributeType() { synchronized (monitor()) { check_orphaned(); org.apache.xmlbeans.SimpleValue target = null; target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ATTRIBUTETYPE$4, 0); if (target == null) ...
[ "public String getAttributeType() {\n return this.attributeType;\n }", "public org.apache.xmlbeans.XmlString xgetAttributeType()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlString target = null;\n target = (org.apache.xmlbea...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the _fixedLegPeriod field.
public Period getFixedLegPeriod() { return _fixedLegPeriod; }
[ "public Period getFixedLegPeriod() {\n return _index.getFixedLegPaymentTenor().getPeriod();\n }", "public DayCount getFixedLegDayCount() {\n return _fixedLegDayCount;\n }", "public double periodFixedRate()\n\t{\n\t\treturn _dblPeriodFixedRate;\n\t}", "public double getFirePeriod() {\n firePeriod = ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets ith "OrderReferences" element
void setOrderReferencesArray(int i, x0101.oecdStandardAuditFileTaxPT1.OrderReferencesDocument.OrderReferences orderReferences);
[ "void setOrderReferencesArray(x0101.oecdStandardAuditFileTaxPT1.OrderReferencesDocument.OrderReferences[] orderReferencesArray);", "public PrintGroup setOrderRef(com.clover.sdk.v3.base.Reference orderRef) {\n return genClient.setRecord(orderRef, CacheKey.orderRef);\n }", "void setReferences(x0101.oecdStanda...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Constructs the inventory required for the main menu (category selection)
public static Inventory constructMainMenuInventory() { Inventory inv = Bukkit.createInventory(new MainMenuInventoryHolder(), 18, "Global Market Browser (Select a Category)"); inv.setItem(1, blocks); inv.setItem(2, ores); inv.setItem(3, plants); inv.setItem(4, food); ...
[ "public void createMainInventor() {\n String name = _plugin.getConfigManager().getGeneralSettingsMap().get(\"Name\");\r\n String colorizedName = _plugin.getUtilsManager().colorizeString(name);\r\n //Size of the Inventory;\r\n int inventorySize = Integer.valueOf(_plugin.getConfigManager()...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Loads the next question and displays it on the view
public void loadNextQuestion(){ if (game.getCurrentQuestionNum() >= game.getTotalquestions()) endGame();// end game else { questionTextView.setText(game.getNextQuestion()); questionNumberView.setText(game.getCurrentQuestionNum() + "/" + game.getTotalquestions()); } ...
[ "private void nextQuestion(){\n saveAnswer();\n if (!index.isLast()) {\n index.moveToNext();\n displayQuestion();\n }\n else\n startActivity(new Intent(getApplicationContext(), Analysis.class));\n }", "private void showNextQuestion() {\n\t\tQuest...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__VARIABLE_DECL_ASSIGNMENT__Group__0__Impl" $ANTLR start "rule__VARIABLE_DECL_ASSIGNMENT__Group__1" ../com.ironglass.hdlforge.ui/srcgen/com/ironglass/hdlforge/ui/contentassist/antlr/internal/InternalSystemVerilog.g:3159:1: rule__VARIABLE_DECL_ASSIGNMENT__Group__1 : rule__VARIABLE_DECL_ASSIGNMENT__Group_...
public final void rule__VARIABLE_DECL_ASSIGNMENT__Group__1() throws RecognitionException { int stackSize = keepStackSize(); try { // ../com.ironglass.hdlforge.ui/src-gen/com/ironglass/hdlforge/ui/contentassist/antlr/internal/InternalSystemVerilog.g:3163:1: ( rule__VARIAB...
[ "public final void rule__VARIABLE_DECL_ASSIGNMENT__Group_2__1() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../com.ironglass.hdlforge.ui/src-gen/com/ironglass/hdlforge/ui/contentassist/antlr/internal/InternalSystemVerilog.g:325...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get a release by id and specify preferred response currency.
@RequiredAuthenticationLevel(authType = AuthenticationType.PUBLIC) public void getReleaseById(final int releaseId, final Currency currency, final ResponseCallback<Release> cb) throws IOException { instance.threadpool.execute(new Runnable() { public void run() { try { cb.onResult(new Response<Release>(tru...
[ "@Transactional(readOnly = true)\n public Optional<Currency> findOne(Long id) {\n log.debug(\"Request to get Currency : {}\", id);\n return currencyRepository.findById(id);\n }", "@RequestMapping(value = \"/projectreleasesprints/{id}\",\n method = RequestMethod.GET,\n produces = ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test of insertPharmacy method, of class ManagePharmaciesController.
@Test public void testInsertPharmacy() throws Exception { System.out.println("insertPharmacy"); //Null test PharmacyDTO pharmacy = null; ManagePharmaciesController instance = new ManagePharmaciesController(); PharmacyDTO expResult = null; PharmacyDTO result =...
[ "@Test\n\tvoid insertDoctorTest() throws Exception {\n\t\tList<DoctorDetail> doctorDetail = new ArrayList<>();\n\t\tDoctorDetail doctorData = new DoctorDetail();\n\t\tdoctorData.setName(\"John\");\n\t\tdoctorData.setAvailability(true);\n\t\tdoctorData.setSpecialist(\"cardioc\");\n\t\tdoctorData.setCreationDate(new ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns a new object of class 'Past Reservation'.
PastReservation createPastReservation();
[ "CurrentReservation createCurrentReservation();", "Reservation createReservation();", "FutureReservation createFutureReservation();", "public void createResBooking() {\n\t\tReservation r = new Reservation();\n\t\tr.createReservation();\n\t\ttm.setReservedTable();\n\t}", "public void lateArrival() {\n\t\tRes...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Constructor for Option objects, carrying a description of the corresponding option and the action to execute.
public Option(String description, Action action) { this.description = description; this.action = action; }
[ "public Option(String description, Action action) { \n\t\tthis.description = description; \n\t\tthis.action = action; \n\t}", "public Option()\n {\n this( null );\n }", "public MenuOption(String text, MenuAction action) {\r\n\t\tthis.text = text;\r\n\t\tthis.action = action;\r\n\t}", "public Poll...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Converts the soap model instances into normal model instances.
public static List<Contact> toModels(ContactSoap[] soapModels) { if (soapModels == null) { return null; } List<Contact> models = new ArrayList<Contact>(soapModels.length); for (ContactSoap soapModel : soapModels) { models.add(toModel(soapModel)); } ...
[ "protected void processTypes()\n {\n wsdl.setWsdlTypes(new XSModelTypes());\n }", "public static List<Person> toModels(PersonSoap[] soapModels) {\n if (soapModels == null) {\n return null;\n }\n\n List<Person> models = new ArrayList<Person>(soapModels.length);\n\n f...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Create robot with given address and name. Empty Part map is initialized.
public Robot(RobotService service, String address, String name) { this.mService = service; this.mName = name; this.mAddress = address; mParts = new HashMap<String, RobotPart>(); }
[ "private Robot createRobot(String name) throws Exception {\n String[] names = name.split(\",\");\n return (Robot) Class.forName(equi.get(names[0])).getConstructor(String.class).newInstance(names[1]);\n }", "protected void createRobot(Robot robot){\n Service spawnModel = new Service(ros, \"...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates new form DynamixelTestWindow
public DynamixelTestWindow() { initComponents(); }
[ "private void createWindow() throws Exception\n {\n Display.setFullscreen(false);\n DisplayMode d[] = Display.getAvailableDisplayModes();\n for (int i = 0; i < d.length; i++) \n { \n if (d[i].getWidth() == 640 && d[i].getHeight() == 480\n && d[i].getBitsPerPi...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the unit d w t of this temp no tice ship message.
@Override public java.lang.String getUnitDWT() { return _tempNoTiceShipMessage.getUnitDWT(); }
[ "public java.lang.String getUnitDWT() {\n\t\treturn _tempNoTiceShipMessage.getUnitDWT();\n\t}", "@Override\n\tpublic double getDwt() {\n\t\treturn _tempNoTiceShipMessage.getDwt();\n\t}", "public double getDwt() {\n\t\treturn _tempNoTiceShipMessage.getDwt();\n\t}", "@Override\n\tpublic java.lang.String getUnit...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Constructor for an empty Srv object.
public Srv() { super(Epc.NAMESPACE, "srv"); }
[ "public Server() {\n // Purposely empty\n }", "@SuppressWarnings(\"unused\")\n public NoConstructor() {\n // Empty\n }", "public Server() {\r\n model = new ServerDataModel();\r\n gson = new Gson();\r\n clientCounter = 0;\r\n docCounter = 0;\r\n }...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Phone number of a hotline of the charging station operator.
@ApiModelProperty(required = true, value = "Phone number of a hotline of the charging station operator.") public String getHotlinePhoneNumber() { return hotlinePhoneNumber; }
[ "public String getPhoneNo() {\n return (String)getAttributeInternal(PHONENO);\n }", "public String getPhoneNo() {\n\t\treturn phoneNo;\n\t}", "public String getPhoneNumber() {\n\t\tPreferences prefs = new Preferences(context);\n\t\tString phoneNumber = prefs.getPhoneNumber();\n\t\tif (!phoneNumber.equ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
this tests whether an old html document crawl in 2016 will hash compare to the "same" article from 2021 the html documents are Open Access
public void testIortArticleOldNew() throws Exception { String art1 = getFileAsString("ARTICLE17453670810016597.2021.html"); String art2 = getFileAsString("ARTICLE17453670810016597.2016.html"); String expected = "Patientsatisfactionpainandqualityoflife4monthsafterdisplacedfemoralneckfractures:Acomparisonof66...
[ "boolean hasDocumentHash();", "public void testExtractFromGoodContent() throws Exception {\n String url = \"http://web2.msue.msu.edu/Bulletins/Bulletin/PDF/Historical/finished_pubs/e49/index.html\";\n MockCachedUrl cu = new MockCachedUrl(url, msueau);\n cu.setContent(goodContent);\n cu.setContentSize(...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Set the label format (DD, DD:MM, etc)
public void setLabelFormat(String format) { labelFormat = format; stateChanged(); }
[ "private void updateLabel() {\n String myFormat = \"dd-MM-YYYY\"; //In which you need put here\n SimpleDateFormat sdf = new SimpleDateFormat(myFormat, Locale.US);\n dateInput.setText(sdf.format(myCalendar.getTime()));\n }", "private void updateLabel() {\n\n String myFormat = \"dd/MM/yy\"; //In wh...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Method that is used to initialize a fight
public void InitFight(int idPlayer1, int idPlayer2, List<Character> characters){ Fight(idPlayer1, idPlayer2,characters); }
[ "public static void init() {\r\n System.out.println(\"INITIALIZING GAME...\");\r\n game = new TexasHoldem(); //Calls constructor\r\n }", "public void init(int wdt, int hgt, Player player, List<Guard> guards, List<Item> treasures, int wdtPortail, int hgtPortail);", "public Dwarf()\n {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
metodo que genera el String de Conexion necesesario para establecer una conexion con el SGBD. Si detecta que el URL no fue asignado, entonces si existe el archivo de Conexion lee los parametros y arma el URL, caso contrario, avisa que el archivo no existe
private String getUrlConexion (){ String urlConexion = ""; urlConexion = jdbc+url+":"+port+"/bd_rotiseria"; return urlConexion; }
[ "public void leerConexion () {\r\n File archivo = null;\r\n FileReader fr = null;\r\n BufferedReader br = null;\r\n\r\n try {\r\n // Apertura del fichero y creacion de BufferedReader para poder\r\n // hacer una lectura comoda (disponer del metodo readLine()).\r\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
returns position of node from the last (null) node the last node returns 0, second last returns 1 and so on.
private int posFromLast(LinkedListNode<T> node) { if (node == null) { return 0; } return posFromLast(node.next) + 1; }
[ "public GPSNode getLast(){\n if (nrOfNodes > 0)return nodes[nrOfNodes-1];\n return null;\n }", "Position<Element> last();", "private int getPosition() {\n\t\tif (parent_ == null)\n\t\t\treturn -1;\n\t\treturn parent_.children_.indexOf(this);\n\t}", "private int lastNotNull() {\n\t\treturn (!t...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Pass any events not handled by (unfocused) views straight to UnityPlayer
@Override public boolean onKeyUp(int keyCode, KeyEvent event) { return mUnityPlayer.injectEvent(event); }
[ "public void onClick(PlayerInteractEvent e) {\n\n }", "@Override\r\n public boolean onKeyUp(int keyCode, KeyEvent event) {\r\n return mUnityPlayer.injectEvent(event);\r\n }", "void playerPositionChanged(Player player);", "public void enterPlayerView(){\n\t\tplayerSeen=true;\r\n\t\tplayerMapped...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Displays the PersonalDetails of the account along with the username.
public void displayDetails() { System.out.println(USERNAME + "'s account information: \n"); accountInformation.displayFullName(); }
[ "public void displayDetails() {\r\n\t\tSystem.out.println(\"*******************Profile Details*********************\");\r\n\t\tSystem.out.println(\"\\tUsername :\\t\" + uName);\r\n\t\tSystem.out.println(\"\\tFull Name :\\t\" + fullName);\r\n\t\tSystem.out.println(\"\\tPhone :\\t\" + phone);\r\n\t\tSystem.out.p...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get all units for the currently logged in author.
List<Unit> getUnits() throws AccessDeniedException;
[ "public List<Unit> getAllUnits() {\r\n return allUnits;\r\n }", "public Collection<Unit> getUnits() {\n\t\treturn units;\n\t}", "public Collection getUnits(){\n return Collections.unmodifiableCollection(this.units);\n }", "public List<UnitDTO> getAllUnits(){\n\t\t\n\t\tList<UnitDTO> unitDT...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
get default TinyMT32 with seeding by array.
public static TinyMT32 getDefault(final int[] seeds) { TinyMT32Parameter defaultParameter = TinyMT32Parameter .getDefaultParameter(); TinyMT32 tiny = new TinyMT32(defaultParameter); tiny.setSeed(seeds); return tiny; }
[ "public static TinyMT32 getDefault(final String seed) {\n TinyMT32Parameter defaultParameter = TinyMT32Parameter\n .getDefaultParameter();\n TinyMT32 tiny = new TinyMT32(defaultParameter);\n tiny.setSeed(seed);\n return tiny;\n }", "private byte[] generateSeedMaterial...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ constructs a node with a status of empty
public Node() { status = EMPTY_ALWAYS; }
[ "BlankNode createBlankNode();", "public void createEmptyNode(){\n\t\t\t\n\t\t\tNode newNode = new Node();\n\t\t\tnewNode.terminal = false;\n\t\t\troot = newNode;\n\t\t}", "public void setAsEmpty(){\n\t\tnodeStatus = Status.empty;\n\t\tunitNum=-1;\n\t}", "protected void createEmptyNode() {\r\n\t\tvalue = new L...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Collect data for each question: exp subject session nameofquestion response timestamp
public void collectQuestionResponse(String theQuestion, int resp) { questionResponses .append(Build.VERSION.RELEASE).append(COMMA) .append(BuildConfig.VERSION_NAME).append(COMMA) .append(LevelManager.getInstance().subject).append(COMMA) .append(Lev...
[ "public void createAnswerStatistics(int sid,int qid);", "QuestionResponse getResponses(String questionId);", "public void processResponses() {\r\n //data we need for the calcualtions\r\n double totals[] = new double[survey.numQuestions];\r\n double averages[] = new double[survey.numQuestion...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Order points in the contour matrix to represent a rectangle. Order: topLeft topRight bottomRight bottomLeft (= clockwise)
private static MatOfPoint2f rectifyContour(MatOfPoint2f contour) { contour.reshape(4, 2); List<Point> contourList = Arrays.asList(contour.toArray()); Point[] points = new Point[4]; points[0] = Collections.min(contourList, (a, b) -> Double.compare(a.x + a.y, b.x + b.y)); points[2...
[ "public void sortContours(){\n\t\t\tint N = contoursCount();\n\t\t\tdouble[] areas = new double[ N ];\n\t\t\tint pointer = 0;\n\t\t\tfor( Contour contour : contours ){\n\t\t\t\tRectangleArea ra = contour.calculateBounds();\n\t\t\t\tdouble approxArea = ra.getWidth() * ra.getHeight(); //TODO: will not work properly o...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Setter for can start flag.
public void setCanStart(boolean canStart) { this.canStart = canStart; }
[ "public void setStartTrue(){\n\t\tstart = true;\n\t}", "private synchronized void setStarted(final boolean value) {\n isStarted = value;\n }", "public void setStartFalse(){\n\t\tstart = false;\n\t}", "public boolean isStartable();", "public void setStart(boolean start) {\r\n\t\tthis.start = start;...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Set the number of gaussians
public void setNumGaussian(int numGauss) { if (numGauss != _numGauss) { _numGauss = numGauss; setDirty(); } }
[ "public void setGaussFK() {\n for (int i = 0; i < 10; i++) {\n setGaussian(devFK[i], nilai[i], meanFK[i]);\n gaussFK[i] = getGaussian();\n }\n }", "public void setRandomGenes(int i){\n if (i > populationSize){\n throw new IllegalArgumentException(\"The number of rand...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method sets the value of the database column TRAMITE.TDMVD_REGREQTUPA.V_CODTUPA
public void setvCodtupa(String vCodtupa) { this.vCodtupa = vCodtupa; }
[ "public void setCodigoConvenioVCN(java.lang.String codigoConvenioVCN) {\n this.codigoConvenioVCN = codigoConvenioVCN;\n }", "public void setBV_MPPFC_CTYCOD(String value) {\n setNamedWhereClauseParam(\"BV_MPPFC_CTYCOD\", value);\n }", "public void setvCodzon(String vCodzon) {\n this.vC...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Cette methode retourne une chaine de caracteres indiquant la "sorte" de la chaine donnee en parametre. Si tous les caracteres de chaine sont des chiffres, elle retourne la chaine "numerique". Si tous les caracteres de chaine sont des lettres (maj. ou min.), elle retourne la chaine "alphabetique". Si chaine ne contient ...
public static String sorte(String chaine) { boolean estNumerique = false; boolean estAlphabetique = false; char car; if (chaine != null){ if(!chaine.isEmpty()){ for (int i = 0; i < chaine.length(); i++){ car = chaine.charAt(i); ...
[ "private void setSortChar() {\n if (lName == null || CmsStringUtil.isEmptyOrWhitespaceOnly(lName)) {\n sortChar = \"\";\n }\n\n int i = 0;\n while (true) {\n try {\n String letter = String.valueOf(lName.charAt(i));\n if (i == 0) {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
all entries which have a TTL of 0 are removed
private void removeZeroTTL() { for (final Iterator<Parameter> it = parameterEntries.keySet().iterator(); it.hasNext();) { final Parameter parameter = it.next(); if (parameterEntries.get(parameter).getTTL() == 0) it.remove(); } }
[ "private void cleanExpiredEntries()\n\t{\t\n\t\tcache.entrySet().stream()\n\t\t\t.filter(entry -> entry.getValue().time_added + time_to_live_ms <= System.currentTimeMillis() )\n\t\t\t.forEach(entry -> {\n\t\t\t\tcache.remove(entry.getKey());\n\t\t\t\tstats.removals++;\n\t\t\t\tlogger.trace(getCacheStats());\n\t\t\t...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Decorates the indicated size with a padding.
public static Size paddedSize(int xPad, int yPad, Size original) { return new Size() { @Override public void prepare(Node n) { original.prepare(n); } @Override public int widthOf(Node n) { return xPad + original.widthOf(n); } @Override public int heightOf(Node n) { re...
[ "Padding createPadding();", "private Annotated padAnnotation(Annotated annot, int padding) {\n AnnotationBuilder builder = Annotation.builder();\n annot.getBlockStream()\n .forEach(x -> builder.addAnnotation(new Annotation(\n x.getReferenceName(), x.getStart() - exonPad...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns a new object of class 'DSL Resource Action'.
DSL_ResourceAction createDSL_ResourceAction();
[ "DSL_Resource createDSL_Resource();", "Action createAction();", "ActionDefinition createActionDefinition();", "ActionSub createActionSub();", "SpecializationAction createSpecializationAction();", "ActionExpression createActionExpression();", "ActionType createActionType();", "public Action newAction(O...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Create the test data in a new transaction with a checked exception.
@Transactional(propagation = Propagation.REQUIRES_NEW) public void createTestDataInNewTransactionWithCheckedException(TestData testData) throws TestJPAServiceException { createTestData(testData); throw new TestJPAServiceException("Failed with a checked exception in a new transaction"); }
[ "@Transactional\n public void createTestDataWithCheckedException(TestData testData)\n throws TestJPAServiceException\n {\n createTestData(testData);\n\n throw new TestJPAServiceException(\"Failed with a checked exception in an existing transaction\");\n }", "@Transactional(propagation = Propagation.RE...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Set the signal position
public void setSignalPosition(int signalPosition) { this.signalPosition = signalPosition; }
[ "public void setSensorStartPosn() {\n\n mLeft_Master.getSensorCollection().setPulseWidthPosition(0, 10);\n mRight_Master.getSensorCollection().setPulseWidthPosition(0, 10);\n int leftPosn = mLeft_Master.getSensorCollection().getPulseWidthPosition();\n int rightPosn = mRight_Master.getSen...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Restores the saved state of the element
public void restore() { // Restore element existence try { if (inCurrentStorage) currentStorage.insertElementSafe(element); else currentStorage.removeElement(element); if (inApiStorage) apiStorage.insertElementSafe(element); else apiStorage.removeElement(element); } catch (StorageException e)...
[ "public void restoreState(Element elem)\r\n {\r\n\t\tString methodName = MODULE_NAME + \"restoreState(Element)\";\r\n\r\n\t\t//Here's where we snag the element so we can use it later for cloning\r\n\t\ttheCoreElement = elem;\r\n }", "public void restoreState();", "public void restoreInsertionPoint() {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns a collection of the Actions that the otherActor can do to the current Actor
@Override public List<Action> getAllowableActions() { return actions; }
[ "@Override\n public Actions getAllowableActions(Actor otherActor, String direction, GameMap map) {\n return new Actions(new AttackAction(this));\n }", "Collection<ACTION> getAvailableActions();", "public ActionList getActions();", "public List<Action> getActions()\r\n {\r\n return Colle...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Class Methods post: Upon repaint the image displayed will be given by the file with complete pathname specified as s (Note that the file should be a gif, jpeg or png)
public void setImage( String s ) { java.net.URL url = getClass().getResource( s ); if ( url == null ) { url = getClass().getResource( "/" + s ); if ( url == null ) { try { // for applications co...
[ "public void displayFromFile(String pathname) {\n\n /* Set the window title */\n JFrame window = new JFrame(\"Silhouettes\");\n\n /* Set the initial window size*/\n window.setSize(600, 400);\n\n /* Set the window to close when x is pressed. */\n window.setDefaultCloseOperat...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
function delete user from table "users" "compId" company id;
public int deleteUser( int compId, MUser u ){ int result = -1; String str = "DELETE FROM users WHERE company_id = %d and login = '%s'"; String sql = String.format(str, compId, u.getLogin() ); try{ synchronized ( this.compSynch ){ result = s.executeUpdate( sql ); } }catch( SQLExcepti...
[ "void DeleteUser();", "void deleteAmigo(AuthUser user, Long deletedUser) throws SQLException;", "public boolean deleteUser(User f);", "void deleteCompany(Company company);", "public void deleteUser(User userToDelete) throws Exception;", "int delTravelByIdUser(Long id_user);", "public void deleteByCompan...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
repeated .clarifai.api.App apps = 2 [(.clarifai.api.utils.cl_show_if_empty) = true];
java.util.List<com.clarifai.grpc.api.App> getAppsList();
[ "com.clarifai.grpc.api.AppOrBuilder getAppsOrBuilder(\n int index);", "java.util.List<? extends com.clarifai.grpc.api.AppOrBuilder> \n getAppsOrBuilderList();", "com.clarifai.grpc.api.App getApps(int index);", "@Test\n public void listAppsTest() throws ApiException {\n Boolean _public = nu...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Getter for f_PrettyPre12 called 1 times. Type: DEFAULT. Build precedence: 4.
private org.treblereel.ui.PrettyPre get_f_PrettyPre12() { return build_f_PrettyPre12(); }
[ "private org.treblereel.ui.PrettyPre get_f_PrettyPre11() {\n return build_f_PrettyPre11();\n }", "private org.treblereel.ui.PrettyPre get_f_PrettyPre23() {\n return build_f_PrettyPre23();\n }", "private org.treblereel.ui.PrettyPre get_f_PrettyPre21() {\n return build_f_PrettyPre21();\n }...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Removes the existing symbol from the list. Validates, if symbol exists in the storage.
StockPrice removeSymbol(String symbol) throws NotFoundSymbolException;
[ "public void deleteSymbol(String symbol)\n {\n int hash = hash1(symbol);\n int index = hash;\n int offset = hash2(symbol);\n \n while(symbols.get(hash).status != EMPTY_ALWAYS)\n {\n if(symbols.get(hash).data.equals(symbol) && \n symbols.get(...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method converts device specific pixels to density independent pixels.
public static float convertPixelsToDp(float px, Context context){ return px / ((float) context.getResources().getDisplayMetrics().densityDpi / DisplayMetrics.DENSITY_DEFAULT); }
[ "public static float convertDpToPixel(float dp){\n return dp * ((float) Resources.getSystem().getDisplayMetrics().densityDpi / DisplayMetrics.DENSITY_DEFAULT);\n }", "public int convertDpToPixels(int dp){\n return (int) (dp * (densityDpi / 160f));\n }", "int getScreenDensity();", "private fl...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
setter Sets the value of SampleVol
public void setSampleVol( Float SampleVol) { this.sampleVol = SampleVol; }
[ "public void setVol(Double vol) {\n this.vol = vol;\n }", "public Float getSampleVol() {\n return this.sampleVol;\n }", "public void setVolga(double value) {\r\n this.volga = value;\r\n }", "public Double getVol() {\n return vol;\n }", "public void setVolum(floa...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method sets the value of the database column equipment.equ_count
public void setEquCount(Integer equCount) { this.equCount = equCount; }
[ "public int countByequip_id(long equip_id);", "public Integer getEquCount() {\r\n return equCount;\r\n }", "public void setQtyCount(int QtyCount);", "int getEquipsCount();", "void setTotalProductCount(int totalProductCount);", "private void setEmployeeCountInternal(java.lang.Integer value) {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Provides the password hash of the current user.
String getUserPasswordHash();
[ "public String getPasswordHash()\n\t{\n\t\treturn this.password;\n\t}", "public String getPassword() {\n\t\treturn calculateHash(password);\n\t}", "public String getPasswordHash()\n\t{\n\t\treturn passwordHash;\n\t}", "public String getPasswordHash() {\n\t\treturn passwordHash;\n\t}", "public String getHash...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates new form Adcreate
public Adcreate() { initComponents(); }
[ "public void createAd(/*Should be a form*/){\n Ad ad = new Ad();\n User owner = this.user;\n Vehicle vehicle = this.vehicle;\n String \n// //ADICIONAR\n ad.setOwner();\n ad.setVehicle();\n ad.setDescription();\n ad.setPics();\n ad.setMain_pic...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by Apache iBATIS ibator. This method sets the value of the database column PROMOTION_ATTR.PROMOTION_BIG_ICON
public void setPromotionBigIcon(String promotionBigIcon) { this.promotionBigIcon = promotionBigIcon; }
[ "public String getPromotionBigIcon() {\r\n\t\treturn promotionBigIcon;\r\n\t}", "public void setLargeIcon(ImageDescriptor icon) {\n if (icon != iconLarge) {\n ImageDescriptor oldIcon = iconLarge;\n iconLarge = icon;\n listeners.firePropertyChange(PROPERTY_LARGE_ICON, oldIco...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Create two tables that are replicated and was repaired two and four hours ago. The repair factory should detect the new tables automatically and schedule them to run.
@Test public void repairMultipleTables() { long startTime = System.currentTimeMillis(); TableReference tableReference = myTableReferenceFactory.forTable("test", "table1"); TableReference tableReference2 = myTableReferenceFactory.forTable("test", "table2"); injectRepairHistory(t...
[ "@Test\n public void repairMultipleTables()\n {\n long startTime = System.currentTimeMillis();\n\n TableReference tableReference = new TableReference(\"ks\", \"tb\");\n TableReference tableReference2 = new TableReference(\"ks\", \"tb2\");\n\n createKeyspace(tableReference.getKeyspa...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
FontUtils.getInstance ( controller ).applyStyle ( noFavoritesTitle, FontStyle.LIGHT ); FontUtils.getInstance ( controller ).applyStyle ( noFavoritesBody, FontStyle.REGULAR );
@Override protected void updateFonts () { }
[ "protected void refreshFont() {\n FontStyle style = (FontStyle) getPrimaryView().getStyle(NotationPackage.Literals.FONT_STYLE);\n if (style != null) {\n setFont(new FontData(\n style.getFontName(), \n style.getFontHeight(), \n (style.isBold...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Encodes the given array of booleans into an integer Decode with boolenasDecode()
protected static int booleansEncode(boolean []in) { int out = in.length; for (int i = 0; i < in.length; i++) out += ((in[i]?1:0)<<(i + 5)); return out; }
[ "public static int booleanArrayToInteger(boolean[] bool) {\n int ret = 0;\n for(int i = 0; i < bool.length; i++){\n if(bool[i]){\n ret |= (1 << (31 - i));\n }\n }\n return ret;\n }", "public static byte[] booleanArrayToBytes(boolean[] bool) {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO: Convert from ForgeDirection to the appropriate byte value
public void setDirection(ForgeDirection direction) { }
[ "static byte getDirectionCode(char c) {\n return dirValues[(dirIndices[c >> 7] << 7) + (c & 0x7f)];\n }", "public Byte getOrd() ;", "byte getEByte();", "int getDirection();", "float getDirection();", "ByteOrder getByteOrder();", "byte getLedByte();", "private void driveForwardEnc()\r\n\t{\r\n\t\t/...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Instantiates a new next turn response.
public NextTurnResponse(String userId) { super("nextTurn"); this.userId = userId; }
[ "private AutopilotTurn generateTurn(AutopilotInputs_v2 currentInputs){\n //grab the parameters needed to define the drone\n Vector dronePosGround = extractGroundPosition(currentInputs);\n Vector droneOrientation = extractOrientation(currentInputs);\n float descendRadius = this.getDescend...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "TAN" $ANTLR start "EXP"
public final void mEXP() throws RecognitionException { try { int _type = EXP; int _channel = DEFAULT_TOKEN_CHANNEL; // C:\\Users\\David\\workspace\\Virtual-Ecology-Workbench\\src\\VEW\\XMLCompiler\\ANTLR\\BACON.g:105:8: ( 'exp' ) // C:\\Users\\David\\workspace\\Vi...
[ "public final void mEXPONENT() throws RecognitionException {\n try {\n // C:\\\\Users\\\\David\\\\workspace\\\\Virtual-Ecology-Workbench\\\\src\\\\VEW\\\\XMLCompiler\\\\ANTLR\\\\BACON.g:134:10: ( ( 'e' | 'E' ) ( '+' | '-' )? ( DIGIT )+ )\n // C:\\\\Users\\\\David\\\\workspace\\\\Virtual...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the current position of the iterator. The position is within the node set covered by this iterator, not within the DOM.
public int getPosition() { return (_current); }
[ "private int getPosition() {\n\t\tif (parent_ == null)\n\t\t\treturn -1;\n\t\treturn parent_.children_.indexOf(this);\n\t}", "public int position() {\n return pos;\n }", "public int getBlockIndex() {\n return mCursorPosition;\n }", "private int getPos() {\n if (currentLine == null) {\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Method to generate a simple graywhite highlighter for tables.
public static Highlighter getSimpleStriping() { if (simpleStriping == null) { Color backCol = UIManager.getColor("Table.background"); float hsbVals[] = Color.RGBtoHSB( backCol.getRed(), backCol.getGreen(), backCol.getBlue(), null); Colo...
[ "private void configureHighlighting(JXTable table, JXTree tree) {\n Highlighter hl = HighlighterFactory.createSimpleStriping();\n table.addHighlighter(hl);\n final Calendar cal = Calendar.getInstance();\n cal.add(Calendar.YEAR, 1);\n HighlightPredicate predicate = new HighlightPre...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO: Model Documentation for attribute panelName Get the panelName Attribute
public String getPanelName() { return this.panelName; }
[ "public String getPanelName() {\r\n return panelName;\r\n }", "public void setPanelName(String panelName) {\r\n this.panelName = panelName;\r\n }", "public String getPanelTitle(String panel) {\n return panels.get(panel).title();\n }", "private JPanel getJPanelPjtName() {\r\n\t\ti...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test of getPenggunas method, of class DaftarPengguna.
@Test public void testGetPenggunas_0args() { System.out.println("getPenggunas"); DaftarPengguna instance = new DaftarPengguna(); List expResult = null; List result = instance.getPenggunas(); assertEquals(expResult, result); // TODO review the generated test code and r...
[ "@Test\n public void testGetPengguna() {\n System.out.println(\"getPengguna\");\n String email = \"\";\n String password = \"\";\n DaftarPengguna instance = new DaftarPengguna();\n Pengguna expResult = null;\n Pengguna result = instance.getPengguna(email, password);\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates new form OrganizerFrame
public OrganizerFrame() { super("Органайзер"); init(); }
[ "Frame createFrame();", "public JFrame createFrame() {\n\t\tcreatedFrame = new EditorFrame(this);\n\t\treturn createdFrame;\n\t}", "FRAME createFRAME();", "abstract public Frame newFrame(Label name, BoolList formals);", "protected void createFrame() {\n MyInternalFrame frame = new MyInternalFrame();\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
CMB Selects the skill_description from the table skills and adds them to an arraylist of strings. After that it returns the list for further use.
public ArrayList<String> getAllSkillsFromDB() { String listOfCompetences = "select skills.skill_description\n" + " from skills"; ArrayList<String> skills = new ArrayList<>(); try { preparedStatement = ConnectionService.getConnection().prepareStatement(listOfCompetences); ResultSet resultSet = prepare...
[ "public static ArrayList<String> populateSkillList() {\n ConnectionPool pool = ConnectionPool.getInstance();\n Connection connection = pool.getConnection();\n PreparedStatement statement = null;\n ResultSet result = null;\n ArrayList<String> skillList = new ArrayList<>();\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
System.out.println("clear_area: "+x1+" "+y1+" "+x2+" "+y2);
@Override public void clear_area(int x1, int y1, int x2, int y2) { graphics.setColor(getBackGround()); graphics.fillRect(x1, y1, x2 - x1, y2 - y1); graphics.setColor(getForeGround()); }
[ "public static void clearXY()\r\n{\r\n\tx = 0;\r\n\ty = 0; \r\n\t\r\n}", "public void claShapeArea(){\r\n\t\tshape.calArea();\r\n\t}", "public Area() {\n this.x1 = 0;\n this.y1 = 0;\n this.x2 = 0;\n this.y2 = 0;\n this.angle = 0;\n }", "public void clearPosition()\n {\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Maps DynamoKeySchema to DynamoDB's KeySchema.
private Pair<List<KeySchemaElement>, List<AttributeDefinition>> getKeySchema(DynamoTableConfig table) { assert table != null; DynamoKeySchema kSchema = table.getKeySchema(); DynamoKey hKey = kSchema.getHashKey(); KeySchemaElement hashKey = new KeySchemaElement().withAttributeName(hKey.getKeyName()).withKeyTyp...
[ "Schema getSchema(int key);", "public static KeySchema make(Key key) {\n return make(KeySchema.class, key);\n }", "public Schema getKeySchema() {\n\n\t\tint num_keys = pkColumnNames.size();\n\t\tif (num_keys == 0){\n\t\t\tthrow new DataException(\"Empty primary key\");\n\t\t}\n\t\t//TODO: we always create S...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Loads PreferenceBean array from the preference table using its preferencetypeid field.
public PreferenceBean[] loadByPreferencetypeid(Integer value) throws SQLException { Connection c = null; PreparedStatement ps = null; try { c = getConnection(); ps = c.prepareStatement("SELECT " + ALL_FIELDS + " FROM preference WHERE preferencetypeid=?",Resu...
[ "public PreferencetypeBean[] loadPreferencetypeViaPreference(PersonnelBean pObject) throws SQLException\r\n {\r\n Connection c = null;\r\n PreparedStatement ps = null;\r\n String strSQL = \" SELECT \"\r\n + \" *\"\r\n + \" FROM ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Setter for cannon position.
protected void setCannonPosition(final Pair<Double, Double> cannonPosition) { this.cannonPosition = cannonPosition; }
[ "private void setCharacterPosition(Point position) {\n\t\tthis.characterPosition = position;\n\t}", "public void setPosition(Point position);", "public void setPos(int pos);", "void setPosition(double xPos, double yPos);", "public void setPosition(Position pos);", "public void setPosition(Vector3D p) {thi...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the attribute broadcastFilteringTraffic.
BroadcastFilteringTraffic broadcastFilteringTraffic();
[ "TapiBroadcastFilteringMode broadcastFilteringMode();", "public Long getBroadcastFrequency()\r\n {\r\n return broadcastFrequency;\r\n }", "public Broadcast getBroadcast() {\r\n \t\treturn broadcast;\r\n \t}", "EthCepPacBuilder broadcastFilteringTraffic(BroadcastFilteringTraffic broadcastFilteringTraffic)...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Updates the creation time of an Archival Unit in the database.
private void updateAuCreationTime(Connection conn, Long auMdSeq, long auCreationTime) throws SQLException { final String DEBUG_HEADER = "updateAuCreationTime(): "; if (log.isDebug2()) { log.debug2(DEBUG_HEADER + "auMdSeq = " + auMdSeq); log.debug2(DEBUG_HEADER + "auCreationTime = " + auCreatio...
[ "void setCreatedDate(D creationDate);", "void setCreationTimeUtc(String path, long newTime) throws IOException;", "public void setCreationTime(DateTime creationTime) {\n this.created = creationTime;\n }", "public void setCreationDate(Date creationDate);", "public void setCreationInstant(DateTime dateTim...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Checks if is destroyed.
public boolean isDestroyed() { return isDestroyed; }
[ "public boolean isDestroyed(){\n return destroyed;\n }", "@Override\n public boolean isDestroyed() {\n return destroyed;\n }", "public boolean isDestroyed() {\n\t\treturn destroyed;\n\t}", "public abstract boolean isDestroyed();", "public boolean isDestroyed(){\n\t\treturn entState ==...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Launch the agent, connecting to the JShellcore over the socket specified in the commandline argument. This method is adapted from the corresponding method in the base JDK class.
public static void startJshell(String hostname, String port) { runAsync(()-> { try (final Socket socket = new Socket(hostname, Integer.parseInt(port))) { InputStream inStream = socket.getInputStream(); OutputStream outStream = socket.getOutputStream(); ...
[ "public static void main (String[] args) {\r\n new Interaction(\r\n new Agent(\"system\"), \r\n new Agent(\"external\"),\r\n args.length > 0 && args[0].length() > 0 ? args[0] : null)\r\n .start(true); // given external agent first turn\r\n }", "public...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Signal that a node was not sequenced successfully.
void nodeSequencingFailure( NodeKey sequencedNodeKey, Path sequencedNodePath, Name sequencedNodePrimaryType, Set<Name> sequencedNodeMixinTypes, String outputPath, ...
[ "@Override\n public void addNodeFailure(Node node) {\n LOGGER.warn(\n String.format(\"Registering failure of node %s. Ignoring until process also fails..\", node));\n }", "private void nodeDoesntExistResponse() throws InterruptedException {\n\n\t\tresult.setChildElement(result.getChildElement().create...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Appends and returns a new empty "Questionnaire" element
eu.aladdin_project.xsd.Questionnaire addNewQuestionnaire();
[ "org.hl7.fhir.Questionnaire addNewQuestionnaire();", "public void takeQuestionnaire(){\n\t\tfor (int i=0; i<getQuestionnaire().getSize(); i++){\n\t\t\tui.stringOut(i+1 + \") \" );\n\t\t\tgetQuestionnaire().getQuestion(i).display();\n\t\t\tAnswer newA = getQuestionnaire().getQuestion(i).selectAnswer();\n\t\t\tthis...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
repeated .SSIT.proto.EquipInfo userEquips = 5;
SSIT.proto.Unetmgr.EquipInfo getUserEquips(int index);
[ "java.util.List<? extends SSIT.proto.Unetmgr.EquipInfoOrBuilder> \n getUserEquipsOrBuilderList();", "java.util.List<? extends SSIT.proto.Unetmgr.EquipInfoOrBuilder> \n getEquipsOrBuilderList();", "java.util.List<SSIT.proto.Unetmgr.EquipInfo> \n getUserEquipsList();", "SSIT.proto.Unetmgr.E...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by Abator for iBATIS. This method returns the value of the database column MI104.FREEUSE1
public String getFreeuse1() { return freeuse1; }
[ "public String getFreeuse1() {\n return freeuse1;\n }", "public String getFreeuse2() {\n\t\treturn freeuse2;\n\t}", "public String getFreeuse2() {\n return freeuse2;\n }", "public void setFreeuse1(String freeuse1) {\n\t\tthis.freeuse1 = freeuse1;\n\t}", "public String getFreeuse3() {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Toggles selection on the item with the given model ID.
public void toggleSelection(String modelId) { assert(modelId != null); boolean changed = false; if (mSelection.contains(modelId)) { changed = attemptDeselect(modelId); } else { changed = attemptSelect(modelId); } if (changed) { notify...
[ "public void toggleSelected() {\n\t\tselected = !selected;\n\t}", "public void toggleSelected() { selected = !selected; }", "public void toggle(){\n\t\tsetSelected(!selected);\n\t}", "public void setSelected(int id)\n\t{\n\t\tthis.selectedTower = id;\n\t}", "public void select(int id) {\n selectedId ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Called when setRemoteDescription succeeded.
void onRemoteDescriptionSet();
[ "void onLocalDescriptionCreatedAndSet(SessionDescriptionType type, String description);", "public void setDialogDescription(String description){\n try{\n setDescriptionVisable(true);\n this.description.setText(description);\n }catch (NullPointerException e){\n e.prin...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
GENLAST:event_addAttributeButtonActionPerformed Method that returns a Vector with the attributes selected in this panel. This is the list displayed in the right side of the panel.
public Vector<String> getAttributesSelected() { DefaultListModel model = (DefaultListModel) this.selectedAttributesList.getModel(); logger.trace("Total attributes selected:" + model.size()); Vector<String> vAttrSelected = new Vector(); for (int i = 0; i < model.size(); i++) { ...
[ "public Vector<String> getAttributesAll() {\n DefaultListModel model = (DefaultListModel) this.allAttributesList.getModel();\n //logger.trace(\"Total attributes selected:\" + model.size());\n Vector<String> vAttrSelected = new Vector();\n for (int i = 0; i < model.size(); i++) {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Update the cost records in the transaction table where the records have changed on the client.
static void updateCostRecords(final String userName, final Set<Integer> modifiedRequestCodes) { final DataSource costSyncDs = DataSourceFactory.createDataSourceForFields(WR_OTHER_SYNC_TABLE, WR_OTHER_SYNC_FIELDS); costSyncDs.setContext(); costSyncDs.setMaxReco...
[ "public void updateCost() {\n double costPlanning = 0.0;\n\n Set<Integer> techniciansUsed = new HashSet<>();\n\n for (DayHorizon day : days) {\n //we get the day costs\n costPlanning += day.getCost();\n\n //we want to know the used cost\n for (Itinera...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates the following query as a PlainSelect object: "SELECT Director, AVG(NrOfVisitors) FROM Movies GROUP BY Director".
@BeforeEach void setUp() { plainSelect1 = new PlainSelect(); // SELECT Director SelectExpressionItem selectExpressionItem1 = new SelectExpressionItem(); selectExpressionItem1.setExpression(new Column(DIRECTOR)); // AVG(NrOfVisitors) SelectExpressionItem selectExpres...
[ "StrictQueryValue<Double> avg(StrictQueryValue<? extends Number> selection);", "GroupQuery createQuery();", "@Test\n void fourthRuleTest() {\n assertThat(aggregateFunctionsGenerator.fourthRule(plainSelect1, function1).toString()).isEqualTo(\n \"SELECT Director, AVG(NrOfVisitors) FROM Mo...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method returns the value of the database column cj_resume_deliver.city_code_reside
public Long getCityCodeReside() { return cityCodeReside; }
[ "public void setCityCodeReside(Long cityCodeReside) {\n this.cityCodeReside = cityCodeReside;\n }", "public String getCitycode() {\n return citycode;\n }", "public String getCityCode()\r\n\t{\r\n\t\treturn this.cityCode;\r\n\t}", "public String getCityCode() {\n return cityCode;\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the amf registration local service.
public void setAmfRegistrationLocalService( com.liferay.docs.amfRegistrationService.service.AmfRegistrationLocalService amfRegistrationLocalService) { this.amfRegistrationLocalService = amfRegistrationLocalService; }
[ "public com.liferay.docs.amfRegistrationService.service.AmfRegistrationLocalService getAmfRegistrationLocalService() {\n\t\treturn amfRegistrationLocalService;\n\t}", "public void setService(CentralSystemServiceFactory service) {\n\t\tthis.service = service;\n\t}", "void setLocalRegister(int local_num)\n {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
optional bool stuNo = 14;
public boolean getStuNo() { return stuNo_; }
[ "boolean getStuNo();", "public boolean getStuNo() {\n return stuNo_;\n }", "public Builder setStuNo(boolean value) {\n bitField0_ |= 0x00002000;\n stuNo_ = value;\n onChanged();\n return this;\n }", "public void setOptional(Boolean optional);", "public void setOp...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method sets the value of the database column TRSDEAL_PROMISSORY_FX.SWIFT_TRX_NO
public void setSWIFT_TRX_NO(BigDecimal SWIFT_TRX_NO) { this.SWIFT_TRX_NO = SWIFT_TRX_NO; }
[ "public void setTRX_NO(BigDecimal TRX_NO) {\r\n this.TRX_NO = TRX_NO;\r\n }", "public BigDecimal getSWIFT_TRX_NO()\r\n {\r\n\treturn SWIFT_TRX_NO;\r\n }", "public BigDecimal getTRX_NO() {\r\n return TRX_NO;\r\n }", "public String getTRX_NUMBER() {\r\n return TRX_NUMBER;\r\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Create a new positioned parameters orderedList.
public OrderedList createOrderedList() { positionedParameters.clear(); return new OrderedList(positionedParameters); }
[ "private PositionParam newPositionParam ( ParamElement param )\n {\n\n \tif (param == null)\n \t\treturn null;\n \t\n String pos = param.getValue();\n String name = param.getName();\n String ucd = param.getUcd();\n String unit = param.getUnit();\n String id = param.get...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns a URL pointing to a plugin documentation page, at a given named anchor.
default Optional<String> getPluginDocUrl(String pluginName, String page, String anchor) { return getWebUrl() .map(url -> url + "plugins/" + pluginName + "/Documentation/" + page + "#" + anchor); }
[ "default Optional<String> getDocUrl(String page, String anchor) {\n return getWebUrl().map(url -> url + \"Documentation/\" + page + \"#\" + anchor);\n }", "String getDocAnchor();", "java.lang.String getDocumentationUrl();", "private String getJavaDocURL()\n {\n Editor editor = getEditor();\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
A reference to the service that manages the collection of enabled features for the cluster.
@Service ClusterEnabledFeaturesService enabledFeatures();
[ "public IClusterService getClusterService()\n\t{\n\t\treturn clusterService;\n\t}", "@ApiModelProperty(example = \"null\", value = \"Extension service features returned in response only when the logged-in user requests his/her own extension info, see also Extension Service Features\")\n public List<ExtensionServ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method returns the value of the database column nj_statistics_summary.compan_code
public String getCompanCode() { return companCode; }
[ "public String getCompany_code() {\r\n return (String) get(\"company_code\");\r\n }", "public String getCompany_code_desc() {\r\n return (String) get(\"company_code_desc\");\r\n }", "public String getCompanyCode() {\n return this.companyCode;\n }", "public String getCompany_code(...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
When user login with a email that does not exist, a dialog will prompt users to register.
private void register(final String email, final String password) { new AlertDialog.Builder(LoginMainActivity.this) .setTitle("Account does not exist") .setMessage("Would you like to register with this account and password?") .setPositiveButton("Register", new Dial...
[ "private void registerAction() throws NoPasswordEnteredException, UsernameAlreadyExistsException, NoUsernameEnteredException{\n if(stackController.register(usernameField.getText(), passwField.getPassword())){\n \n successDialog.pack(); // Metodo para que el componente JDialog adopte la ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Return the output parameter description.
public String get_out_type_desc() { return out_type_desc; }
[ "public String getParameterDescription()\n {\n if (parameter == null)\n return \"\";\n else\n return this.parameter.getDescription();\n }", "public String getParamDesc() {\n return paramDesc;\n }", "public TOutputParameterElements getTOutputParameterAccess() {...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }