query
stringlengths
8
1.54M
document
stringlengths
9
312k
negatives
listlengths
19
20
metadata
dict
Unbind with tracker service and stop the service if it isn't currently tracking.
private void unbindAndStopTrackerService() { final boolean isTracking = trackerService != null && trackerService.isTracking(); // Unbind with tracker service getActivity().unbindService(serviceConnection); // Stop tracker service (if it isn't tracking) if(!isTracking) { ...
[ "public void stopTracking() {\n mContext.unregisterReceiver(this);\n }", "private void stopTracking() {\n Intent intent = new Intent(DetectActivity.this, BackgroundDetectedActivitiesService.class);\n stopService(intent);\n }", "private void unbindService() {\n synchroni...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__Atom__Group_3__1" $ANTLR start "rule__Atom__Group_3__1__Impl" InternalSymboleoide.g:5650:1: rule__Atom__Group_3__1__Impl : ( 'within' ) ;
public final void rule__Atom__Group_3__1__Impl() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalSymboleoide.g:5654:1: ( ( 'within' ) ) // InternalSymboleoide.g:5655:1: ( 'within' ) { // InternalSymboleoide.g:56...
[ "public final void rule__Container__Group__3__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalMyDsl.g:9031:1: ( ( 'inWithin:' ) )\n // InternalMyDsl.g:9032:1: ( 'inWithin:' )\n {\n // InternalMyD...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the Builder instance for the 'branch' field
public com.fretron.Model.Employee.Builder setBranchBuilder(com.fretron.Model.OrgOffice.Builder value) { clearBranch(); branchBuilder = value; return this; }
[ "public void setBranch(String branch) {\r\n this.branch = branch;\r\n }", "private void setBranch(Branch value) {\n value.getClass();\n branch_ = value;\n \n }", "public com.fretron.Model.OrgOffice.Builder getBranchBuilder() {\n if (branchBuilder == null) {\n if (hasBranch(...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the product data dao.
public void setProductDataDao(final ProductDataDaoImpl productDataDao) { this.productDataDao = productDataDao; }
[ "public void setProductDao(ProductDao productDao) {\n\t\tthis.productDao = productDao;\n\t}", "public void setProduct(entity.APDProduct value);", "@Override\n\tprotected void setDao()\n\t{\n\t\tdao = daoFactory.getNE1Dao(session, dataModel);\n\t}", "public void setProduct(Product product) {\n this.prod...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method returns the value of the database column TFC_USE_LOCK_DETAIL.OTHER_LOCK_NUM
public Long getOtherLockNum() { return otherLockNum; }
[ "public void setOtherLockNum(Long otherLockNum) {\n this.otherLockNum = otherLockNum;\n }", "public Long getLockNum() {\n return lockNum;\n }", "public java.lang.Long getOtherStatsTeamId() {\n return otherStatsTeamId;\n }", "public java.lang.Long getOtherStatsTeamId() {\n return o...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method sets the value of the database column PMSTRADE.REFLECT_SEC_IN_DEAL
public void setREFLECT_SEC_IN_DEAL(String REFLECT_SEC_IN_DEAL) { this.REFLECT_SEC_IN_DEAL = REFLECT_SEC_IN_DEAL == null ? null : REFLECT_SEC_IN_DEAL.trim(); }
[ "public String getREFLECT_SEC_IN_DEAL() {\r\n return REFLECT_SEC_IN_DEAL;\r\n }", "public void setREF_DEAL_YIELD(BigDecimal REF_DEAL_YIELD)\r\n {\r\n\tthis.REF_DEAL_YIELD = REF_DEAL_YIELD;\r\n }", "public void setREF_DEAL_YIELD(BigDecimal REF_DEAL_YIELD) {\r\n this.REF_DEAL_YIELD = REF_DE...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Prepares the table diff file, with tables modified post the specified event id.
public static void prepareTableDiffFile(List<NotificationEvent> notificationEvents, Hive hiveDb, ReplLoadWork work, HiveConf conf) throws Exception { HashSet<String> modifiedTables = new HashSet<>(); for (NotificationEvent event : notificationEvents) { String tabl...
[ "@Override\n public void copyStagingFileToTemporaryTable() {\n }", "private void setNewFile(Hashtable<Integer, byte[]> table, int chunkId, String chunkName, int size) {\n File file = new File(DIR + chunkName);\n\n log.info(\"Replace the corrupted file chunk \" + chunkName);\n\n byte[] data ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Verifies the status for the issue according to the estimation and sprint it is or is not assigned, and enforces the right status.
public boolean verifyAndSetStatus() { if (status == FINISHED) { // No further checks needed return false; } if (Float.compare(estimation, 0f) <= 0) { if (status == READY_FOR_ESTIMATION) { return false; } else { ...
[ "public void assertValidStatus(GalaxyWorkflowStatus status) {\n\t\tassertNotNull(status, \"WorkflowStatus is null\");\n\t\tfloat percentComplete = status.getProportionComplete();\n\t\tassertTrue(0.0f <= percentComplete && percentComplete <= 1.0f, \"proportion not in range of 0 to 1\");\n\t}", "public void verifyS...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
intermediate (multidimensional arrays) todo: a bank will give you 2% interest on your savings stored on an account book. for a certain amount of money you want to store in the account book create a multidimensional array where the interest of the next 10 years is stored. For that save the year and the amount of money. ...
public static void main(String[] args){ int currentYear = 2018; int targetYear = 2020; int initialSavings = 7800; double[][] accountBook = computeInterest(currentYear, initialSavings); System.out.println("In the year " + targetYear + " you would have saved " + accountBook[targetYear-currentYear-1][1]...
[ "public static double calculateSavings(double initial_deposit, \n double yearly_interest_rate,\n int num_years){\n\t if (num_years == 0){\n return initial_deposit;\n }\n\n //System.out.printf(initial_deposit+\" \"+yearly...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Clears the value of the 'PreviousActualCallRef' field. Reference to the previous actual call.
public no.ruter.avro.entity.actual.call.key.EntityPartition.Builder clearPreviousActualCallRef() { PreviousActualCallRef = null; fieldSetFlags()[5] = false; return this; }
[ "public java.lang.CharSequence getPreviousActualCallRef() {\n return PreviousActualCallRef;\n }", "public java.lang.CharSequence getPreviousActualCallRef() {\n return PreviousActualCallRef;\n }", "public void setPreviousActualCallRef(java.lang.CharSequence value) {\n this.PreviousActualCallRef = ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
retrieve skill name when in a "Skill" DataSnapShot
private ArrayList<String> collectSkillName(Map<String, Object> skill){ // create an ArrayList that will hold the names of each skill within the database ArrayList<String> skills = new ArrayList<String>(); // run a for loop that goes into the DataSnapShot and retrieves the name of the skill ...
[ "java.lang.String getSkill();", "java.lang.String getSuitSkillName();", "public String getSkillName()\n {\n return skillName;\n }", "public String getSkill_name() {\n\t\treturn skill_name;\n\t}", "public String getSkill() {\r\n return skill;\r\n }", "Skill getSkill(String name);", "St...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
checks if the player has the longest road
public static void checkPlayerLongestRoad(Player player, Game game1, Road road1) { //the unique id for each node visit that takes place id = 0; loop = false; Board board1 = game1.getBoard(); int currLongest = player.getLongestRoad(); //old longest road int longest = 0; //longe...
[ "public int getPlayersLongestRoad(IPlayer player);", "private boolean isFreeFromPlayers(Road roadToCheck) {\r\n\t\tfor (Player player : players.getPlayers()) {\r\n\t\t\tif (player.getPosition() != null\r\n\t\t\t\t\t&& player.getPosition().equals(roadToCheck)) {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\r\n\t\t\t// ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Crea una valoracion para el test
@Before public void setUp(){ demandante = new Demandante("Tony","Stark","12345678Q","Contrasena", "0123456789012345"); valoracion = new Valoracion(demandante, 5); }
[ "@Test\n public void testGetValue ()\n {\n System.out.println (\"getValue\");\n QueryDatas instance = new QueryDatas (\"nom\", \"value\");\n String expResult = \"value\";\n String result = instance.getValue ();\n Assert.assertEquals (expResult, result);\n\n }", "@Test\r\n public ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Tests CutStateNodeAbstractActionundo() for accuracy. Verify : Undo is executed correctly, the CompositeState is added.
public void testUndo() throws Exception { action.execute(); action.undo(); assertTrue("Failed to execute the undo() method.", container.containsSubVertex(state)); }
[ "public void testUndo() {\n action.executionSuccess();\n\n // no exception should be thrown\n action.undo();\n }", "public void testUndoSuccess() {\n action.undoSuccess();\n\n assertTrue(\"Expects the action can be re-done\", action.canRedo());\n assertFalse(\"Expects ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Create a cattle.instance_label_map table reference
public InstanceLabelMapTable() { this("instance_label_map", null); }
[ "public InstanceLabelMapTable(java.lang.String alias) {\n\t\tthis(alias, io.cattle.platform.core.model.tables.InstanceLabelMapTable.INSTANCE_LABEL_MAP);\n\t}", "private void makeLabelMapping(String szlabelmapping) throws IOException\n {\n if (szlabelmapping != null)\n\t{\n\t BufferedReader bridlabel =...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the UDP connection.
public void setUDPConnection(UDPConnectionHandler udp) { this.udp = udp; }
[ "public void setUpUDPserver() throws SocketException {\n\t\tUDPserver = new DatagramSocket();\n\t\tUDPport = UDPserver.getLocalPort();\n\t}", "Builder setUdpSrc(TpPort port);", "Builder setUdpDst(TpPort port);", "public void setUdpServerPort(int udpServerPort)\n \t{\n \t\tthis.udpServerPort = udpServerPort;\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "entryRuleComposeCondition" $ANTLR start "ruleComposeCondition" InternalShome.g:918:1: ruleComposeCondition returns [EObject current=null] : ( ( (lv_ownedConditions_0_0= ruleTerminalCondition ) ) otherlv_1= 'and' ( (lv_ownedConditions_2_0= ruleTerminalCondition ) ) (otherlv_3= 'and' ( (lv_ownedConditions_4_0...
public final EObject ruleComposeCondition() throws RecognitionException { EObject current = null; Token otherlv_1=null; Token otherlv_3=null; EObject lv_ownedConditions_0_0 = null; EObject lv_ownedConditions_2_0 = null; EObject lv_ownedConditions_4_0 = null; ...
[ "public final EObject entryRuleComposeCondition() throws RecognitionException {\r\n EObject current = null;\r\n\r\n EObject iv_ruleComposeCondition = null;\r\n\r\n\r\n try {\r\n // InternalShome.g:911:57: (iv_ruleComposeCondition= ruleComposeCondition EOF )\r\n // Internal...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Internal helper to generate schemas from an IntermediateDataStructure, which represents an Avro Map type. By contrast to the public toMap(IntermediateDataStructure) method for external callers, this internal helper is modelURIaware.
private Pair<Schema, List<Schema>> toMap(final IntermediateDataStructure structure, final String modelUri) { boolean _isMapSchemaType = this.isMapSchemaType(structure); boolean _not = (!_isMapSchemaType); if (_not) { StringConcatenation _builder = new StringConcatenation(); _builder.append("Stru...
[ "public Pair<Schema, List<Schema>> toMap(final IntermediateDataStructure structure) {\n final Schema map = this.toMap(structure, null).getKey();\n List<Schema> _allCreatedSchemas = this.allCreatedSchemas();\n return Pair.<Schema, List<Schema>>of(map, _allCreatedSchemas);\n }", "public Pair<Schema, List<...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
For a given node returns a sorted list of all its neighbors.
public List<Integer> getNeighbors(int node) { Collections.sort(neighborsMap.get(node)); return neighborsMap.get(node); }
[ "private List<Node> getNeighbors(Node node) {\n List<Node> neighbors = new LinkedList<>();\n\n for(Node adjacent : node.getAdjacentNodesSet()) {\n if(!isSettled(adjacent)) {\n neighbors.add(adjacent);\n }\n }\n\n return neighbors;\n }", "private List<ContractableNode> neighboringNode...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get access to the TAFScheduleManager object
public static TAFScheduleManager getTAFScheduleManager() { if (tafScheduleManagerSingleton == null) { tafScheduleManagerSingleton = new TAFScheduleManager(); } return tafScheduleManagerSingleton; }
[ "public abstract SchedulerManager getInstance();", "public static RoomScheduleManager getInstance() {\n if (sInstance == null) {\n throw new IllegalStateException(\"RoomScheduleManager not instantiated!\");\n }\n return sInstance;\n }", "Scheduler getScheduler();", "public s...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
String hql = "from LogInfo where CreateDatetime between to_date(?,'yyyyMMdd hh24:mm:ss') and to_date(?,'yyyyMMdd hh24:mm:ss')";
public List<LogInfo> selectLogInfo(Date date1, Date date2) { String hql = "from LogInfo where CreateDatetime between ? and ?"; // String hql = "from LogInfo where CreateDatetime between to_date('2007-9-7 00:00:00','yyyy-mm-dd hh24:mi:ss') and to_date('2017-09-07 00:00:00','yyyy-mm-dd hh24:mi:ss') or UpdateDatetim...
[ "@SuppressWarnings(\"unchecked\")\n@Override\n public List<QueryLog> getQueryLogByDateRange(String start, String end) {\n\t List<QueryLog> results = null;\n\t \n \t DateFormat formatter = new SimpleDateFormat(\"yyyy-MM-dd\");\n \t Date startDate = null;\n \t Date endDate = null;\n\n \t //Session session ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method reads the default port as specified by the PORT variable in the environment. Heroku provides the port automatically so you need this to run the project on Heroku.
static int getPort() { if (System.getenv("PORT") != null) { return Integer.parseInt(System.getenv("PORT")); } return 4567; //returns default port if heroku-port isn't set (i.e. on localhost) }
[ "static int getHerokuAssignedPort() {\n ProcessBuilder processBuilder = new ProcessBuilder();\n if (processBuilder.environment().get(\"PORT\") != null) {\n return Integer.parseInt(processBuilder.environment().get(\"PORT\"));\n }\n return 4567; //Retorna el puerto por defecto e...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get revenue years SQL query
public static ArrayList<String> getRevenueYears() throws SQLException { ArrayList<String> revenueYearsArray = new ArrayList<>(); String query = "SELECT EXTRACT(YEAR FROM date) AS \"Revenue Years\" FROM payment WHERE date IS NOT NULL GROUP BY EXTRACT(YEAR FROM date);"; ResultSet result = Connect....
[ "public static ResultSet getRevenueYearByYear(String year) {\n String query = \"SELECT EXTRACT(MONTH FROM date) AS \\\"Month\\\", SUM(total_price) AS \\\"Total Month Income\\\" FROM payment WHERE date IS NOT NULL AND EXTRACT(YEAR FROM date) = \" + year + \" GROUP BY EXTRACT(MONTH FROM date) ORDER BY \\\"Mont...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ snapshot things, e.g. for selection. returns a snapshot bufferedImage of this PaintObject.
public abstract BufferedImage getSnapshot();
[ "protected BufferedImage snapshot() {\n\t\tBufferedImage bi = new BufferedImage(window.getContentPane().getWidth(), window.getContentPane().getHeight(), BufferedImage.TYPE_INT_RGB);\n\t\twindow.getContentPane().paint(bi.getGraphics());\n\t\treturn bi;\n\t}", "public WritableImage renderImage() {\n\t\tWritableImag...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Interface for Direct Pre Approval Payment Orders List
public interface DirectPreApprovalPaymentOrdersList { /** * Pre Approval Code * * @return Code */ String getCode(); /** * Status of the payment order * * @return Status */ Integer getStatus(); /** * Number of the page desired to see the result * ...
[ "List<PaymentLine> getOrderItems();", "Collection<OrderPayment> getOrderPaymentList();", "List<ContractOrderResult> getContractOpenOrders(ContractOpenOrderRequest orderRequest);", "CoolpayPaymentListResponse listPayments();", "io.opencannabis.schema.commerce.CommercialOrder.OrderPayment getPayment();", "L...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Funcion de consultar el saldo
String consultarsaldo() { //Esta funcion no tiene excepciones message=("Tu saldo actual es de "+money+ "\n"); System.out.println(message); return message; }
[ "public double getSaldo()\n {\n return saldo;\n }", "public double getSaldo() {\r\n return saldo;\r\n }", "@Override\r\n public long deposito(long deposito) {\n saldo += deposito;\r\n \r\n // Mediante un cuadro de dialogo se anuncia el nuevo saldo\r\n JOptionPa...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Signals end of selection manipulation.
public void processEndOfSelectionManipulation();
[ "public void selectionCanceled() {}", "public void endSelection()\n {\n\tisMultiSelection = false;\n\tsetMaxCheckCount(1);\n\tuncheckAll();\n }", "void endRangeSelection() {\n mRanger = null;\n }", "public void endDrawing() {\r\n SelectionResult res = SelectionResult.getInstance();\r\n\r\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Lists all available software prices
public List<SoftwarePrice> listSoftwarePrices() throws IOException, ClassNotFoundException { return new LinkedList<SoftwarePrice>(); }
[ "public List<Product> listAllAvailableProducts();", "List<EcsVolumePrice> selectAll();", "public List<PlatformPrice> listPlatformPrices() throws IOException,\n\t\t\tClassNotFoundException {\n\t\tLinkedList<PlatformPrice> result = new LinkedList<PlatformPrice>();\n\t\tresult.add(getPlatformPrice());\n\t\treturn ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Default implementation treats passed figure as content pane. Respects layout one may have set for generated figure.
protected IFigure setupContentPane(IFigure nodeShape) { return nodeShape; // use nodeShape itself as contentPane }
[ "@Override\n public IFigure getContentPane() {\n return getLayer(PRIMARY_LAYER);\n }", "protected IFigure setupContentPane(IFigure nodeShape) {\n\t\tif (nodeShape.getLayoutManager() == null) {\n\t\t\tConstrainedToolbarLayout layout = new ConstrainedToolbarLayout();\n\t\t\tlayout.setSpacing(5);\n\t\t\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ Return all the current watcher lists, note that the returned watchers may be removed from the list by other threads
private Collection<Watchers> allWatchers() { return inReadLock(removeWatchersLock, () -> watchersForKey.values()); }
[ "@SuppressWarnings(\"unchecked\")\n public Vector<TreeWidgetWatcher> getWatchers() {\n synchronized (this) {\n if (watchers == null) {\n watchers = new Vector<TreeWidgetWatcher>();\n }\n\n return (Vector<TreeWidgetWatcher>) watchers.clone();\n }\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Displays different content, depending on mode. mode 0: main buttons; mode 1: pizza buttons; mode 2: sides buttons; mode 3: drinks buttons
public void setMode(int mode) { updateItems(); this.removeAll(); // remove all existing buttons if (mode == 0) // add main buttons { this.add(pizzas); this.add(sides); this.add(drinks); } else if (mode == 1) // add pizza types buttons { for(int i = 0; i< pizzaTypes.size(); i++) { t...
[ "public void showButtonsSettingsModeSwitch() {\n FloatingActionButton btn_settings = (FloatingActionButton)findViewById(R.id.btn_settings);\n btn_settings.setVisibility(View.VISIBLE);\n\n FloatingActionButton btn_mode_select = (FloatingActionButton)findViewById(R.id.btn_mode_select);\n b...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Function to find the missing element in AP series
static int missingElement(int arr[], int n) { // Sort the array arr[] Arrays.sort(arr); // Calculate Common Difference int diff = (arr[n - 1] - arr[0]) / n; // Binary search for the missing return findMissing(arr, 0, n - 1, diff); }
[ "private int nMissing(int[] nums, int i) {\n return nums[i] - nums[0] - i;\n }", "public static int firstMissing(int[] x){\n int[] ans = new int[x.length];\n for(int j=0; j<x.length; j++ ){\n if(x[j]>0 && x[j]<x.length) ans[x[j]] = x[j];\n }\n\n for(int j=1; j<ans.length...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates an instance of AddressRanges class.
public AddressRanges() {}
[ "public Addresses() {\n this(DSL.name(\"addresses\"), null);\n }", "public SetOfRanges() {\n RangeSet = new Vector();\n }", "private static RangeSet createLocalHostRangeSet() {\n RangeSet result = new RangeSet();\n result.ranges = Lists.newArrayList();\n // Do not use th...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test case Read Entity
@SmallTest public void testRead() { Settings result = null; if (this.entity != null) { result = this.adapter.getByID(this.entity.getId()); SettingsUtils.equals(this.entity, result); } }
[ "public void testGetEntity() throws Exception {\n \n // TODO : implement\n }", "Object getEntity();", "java.lang.String getEntity();", "@Test\n void b_readItem(){\n Item itemread = repository.read(item.getItemNumber());\n assertEquals(itemread.getItemNumber(), item.getItemNum...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Se adiciona un nuevo solicitante al map HandCheck
public static void setHandCheck(String solicitante, String idCarpeta){ List<String> lsHandCheck=null; if(chmHandCheck.containsKey(solicitante)){ lsHandCheck=chmHandCheck.get(solicitante); if(!lsHandCheck.contains(idCarpeta)) lsHandCheck.add(idCarpeta); }else{ lsHandCheck=new Array...
[ "public void requestAnotherShotAfterMiss()\n\t{\n\t\tlayerProxy_.requestAnotherLocationToFireOn();\n\t}", "void setStartingHand(Map<HantoPieceType, Integer> startingHand);", "private void addNewLocation() {\n\n Map currentMap = mapView.getCurrentMap();\n\n if (currentMap == null) {\n ne...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Create a IBlobContents from BlobStream
static public IBlobContents createBlobContents(BlobStream stream) { return new BlobContents(stream); }
[ "static public IBlobContents createBlobContents(InputStream stream) throws IOException {\r\n\t\treturn new BlobContents(stream);\r\n\t}", "static public IBlobContents createBlobContents(byte[] value) {\r\n\t\treturn new BlobContents(value);\r\n\t}", "static public IBlobContents createBlobContents(File file) thr...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method initializes fileNameResultTextField
public JTextField getFileNameResultTextField() { if (fileNameResultTextField == null) { super.getFileNameResultTextField().setBounds( new java.awt.Rectangle(132, 11, 199, 21)); } return fileNameResultTextField; }
[ "public FileNameSearchField() {\r\n\t\tsuper( Id.FILE, PredefinedList.REP_SEARCH_FILE_NAME );\r\n\t}", "private void createResultFilePart() {\n\t\t//------------------------------------------------\n\t\t// Result File Label\n\t\t//------------------------------------------------\n\t\tLabel resultFileLabel = new L...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Analog in HQL: Query query = session.createQuery( "SELECT DISTINCT dl FROM DirectoryLazy dl LEFT JOIN FETCH dl.factLazies", DirectoryLazy.class);
@Override public List<DirectoryLazy> findAll() { try (Session session = entityManagerFactory.unwrap(SessionFactory.class).openSession()) { CriteriaBuilder criteriaBuilder = session.getCriteriaBuilder(); CriteriaQuery<DirectoryLazy> criteriaQuery = criteriaBuilder.createQuery(Director...
[ "@Query(\"select c from Cliente c left join fetch c.facturas f where c.id=?1\")\n Cliente fetchByIdWithFacturas(Long id);", "@Override\n public List<CustomerOrder> getAllCustomerOrder() {\n String hql = \"select distinct custOrd from CustomerOrder as custOrd left join fetch custOrd.items\";\n\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Validated the content size of the HTTP request.
public static void validateContentSize(HttpRequest request) throws IOException { if (request.getContent() != null) { long requestContentSize = request.getContent().getLength(); if (requestContentSize > REQUEST_MAX_CONTENT_SIZE) { throw new CcuClientException(MessageFormat.format("Request content size [{0}]...
[ "DataSize getRequestSizeLimitRegular();", "private long getRequestContentLength(HttpURLConnection connection) {\n String lengthString = connection.getRequestProperty(\n HeaderConstants.CONTENT_LENGTH);\n if (lengthString != null){\n return Long.parseLong(lengthString);\n }\n else{\n r...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Set value of ProcessingLogsFirstChunk
public final void setProcessingLogsFirstChunk(java.lang.Boolean processinglogsfirstchunk) { setProcessingLogsFirstChunk(getContext(), processinglogsfirstchunk); }
[ "public final void setProcessingLogsIsFirstChunk(java.lang.Boolean processinglogsisfirstchunk)\r\n\t{\r\n\t\tsetProcessingLogsIsFirstChunk(getContext(), processinglogsisfirstchunk);\r\n\t}", "public final void setProcessingLogsFirstChunk(com.mendix.systemwideinterfaces.core.IContext context, java.lang.Boolean pro...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates new form iAdd
public iAdd() { initComponents(); formIdMecanico.setModel(new DefaultComboBoxModel<>(new String[]{ "---Selecciona Mecanico---", "1212", "1213", "2121", "1214" })); }
[ "public AddNewItem() {\n initComponents();\n Itemno();\n }", "public FormInserir() {\n initComponents();\n }", "public String addNew() {\n todo = new Todo(\"\", \"\", 3);\n form.setRendered(true);\n addCommand.setRendered(false);\n return null;\n }", "@RequestMapping(pa...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Dialog for setting youtube launch delay
void youtubeLaunchDelayPickerDialog() { final AlertDialog.Builder d = new AlertDialog.Builder(getActivity()); LayoutInflater inflater = getActivity().getLayoutInflater(); View dialogView = inflater.inflate(R.layout.config_slideshow_sw_time_picker, null); d.setTitle(R.string.config_set_slideshow_dlg_title); d...
[ "void setYouTubeLaunchDelay()\n\t{\n\t\t// set current\n\t\tSharedPreferences pref_sw_time = getActivity().getSharedPreferences(\"youtube_launch_delay\", 0);\n\t\tView swTimeView = mRootView.findViewById(R.id.youtube_launch_delay);\n\t\tTextView slideshow_text_view = (TextView)mRootView.findViewById(R.id.youtube_l...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
int32 skillID = 1;
int getSkillID();
[ "int getSkillId();", "int getFightSkillId();", "public Integer getSkillId() {\n return skillId;\n }", "public int getIdSkill() {\n return idSkill;\n }", "int getSkillXmlId();", "public void setIdSkill(int value) {\n this.idSkill = value;\n }", "SkillLevel(int numLevel) {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Verifies the DApp deployment costs don't change unexpectedly.
@Test public void testCostToDeployDapps() { TransactionResult result = deployContract(Contract.AION_BUFFER_PERF); Assert.assertEquals(100_000_000_000L, result.energyUsed); result = deployContract(Contract.BASIC_PERF); Assert.assertEquals(2_062_419L, result.energyUsed); ...
[ "@Test\n\tpublic void ebsad12492CdpUpgrade() throws Exception {\n\t\tApplicationVersion appVersion = setUpData(\"EBSAD-12492-cdp_upgrade\");\n\n\t\tDeployer d = new Deployer();\n\t\tApplicationDeployment dep = d.deploy(appVersion, createEnvironmentName(), null);\n\t\t\n\t\tETD[] t0 = new ETD[] { new ETD(true, \"abs...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ Enregistre le coffre pour un BoutiqueSignChest
public void setChest(Block sign, Chest chest, Player p) { BoutiqueSign bs = this.getBoutiqueSign(sign); if(bs == null) { // TODO: message "Impossible de trouver le panneau en question" p.sendMessage(plugin.chatPrefix + Messages.getString("Sign.CHOOSESIGNBEFORE")); //$NON-NLS-1$ return; } else ...
[ "@RequiresApi(api = Build.VERSION_CODES.M)\n private void enregistrerCours()\n {\n cours.setTitre(vueModifierCoursChampTitre.getText().toString());\n cours.setHeure(vueModifierCoursChampHeure.getHour() + \":\" + vueModifierCoursChampHeure.getMinute());\n\n //coursDAO = CoursDAO.getInstanc...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the value of the 'field473' field
public java.lang.CharSequence getField473() { return field473; }
[ "public java.lang.CharSequence getField473() {\n return field473;\n }", "java.lang.String getField1571();", "public java.lang.CharSequence getField483() {\n return field483;\n }", "java.lang.String getField1371();", "public java.lang.CharSequence getField373() {\n return field373;\n }", "publi...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Movie Rating API Get the movie rating (imdbID and rating) in the POST body and call the corresponding service class method in business layer.
@PostMapping("/rating") public Rating rating(@RequestBody Rating rating) { return movieFinderService.rateingService(rating); }
[ "@RequestMapping(\"/{mId}\")\r\n\t public Rating getRating(@PathVariable(\"mId\") String movieId) {\r\n\t \r\n\t \t// Hard coded rating for every request.\r\n\t \treturn new Rating(movieId, 88);\r\n\t }", "@RequestMapping(\"/{movieId}\")\n\tpublic Optional<Rating> getMovieRatingByMovieId(@PathV...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get the record size being used by this stream's TarBuffer.
public final int getRecordSize() { return tarBuffer.getRecordSize(); }
[ "public int getRecordSize() {\n return buffer.getRecordSize();\n }", "public int getRecordSize()\n {\n return m_buffer.getRecordSize();\n }", "public int size()\n {\n int bufferPoolSize = this.bufferPool.size();\n\n int size = bufferPoolSize * (this.blockSize / this.recor...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Tests an image with 2 channels, one blue (light path emission filter) and another one with a transmitted light.
@Test public void testChannelsEmFilterLightPathBlueAndTransmittedLight() { ChannelProcessor processor = new ChannelProcessor(); store.setReader(new TestReader(false)); store.setTransmittanceRangeCutIn(430, INSTRUMENT_INDEX, 2); store.setTransmittanceRangeCutOut(435, INSTRUMENT_INDEX, 2); processor.process(s...
[ "@Test\n\tpublic void testChannelsEmFilterLightPathRedAndTransmittedLight()\n\t{\n\t\tChannelProcessor processor = new ChannelProcessor();\n\t\tstore.setReader(new TestReader(false));\n\t\tstore.setTransmittanceRangeCutIn(600, INSTRUMENT_INDEX, 2);\n\t\tstore.setTransmittanceRangeCutOut(620, INSTRUMENT_INDEX, 2);\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
A searcher for the image content (using the selected descriptors)
private void initEngine() { AbstractSearcher imageSearcher = new ImageSearchEngine(); imageSearcher.setQueryProcessor(new QueryProcessorDefaultImpl()); imageSearcher.setResultProvider(new DefaultResultProvider()); imageSearcher.setIndexedObjectFactory(new ImageIndexedObjectFactory());...
[ "public List<File> searchImagesFor(String keyword);", "List<Image> search(String query);", "private void imageSearch(ArrayList<Html> src) {\n // loop through the Html objects\n for(Html page : src) {\n\n // Temp List for improved readability\n ArrayList<Image> images = page.g...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Adds a command to open the gripper to the buffer. If using a different setup, change the command with setGripperOpenCommand("blah blah");
public void openGripper(){ buffer += gripperOpenCommand; }
[ "public void setGripperCloseCommand(String cmd){\r\n\t\tgripperCloseCommand = cmd + \"\\n\";\r\n\t}", "public void closeGripper(){\r\n\t\tbuffer += gripperCloseCommand;\r\n\t}", "private void handleOpenChevron(DocumentCommand docCommand) {\n\t\tdocCommand.text += \">\";\n\t\tdocCommand.shiftsCaret = false;\n\t\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Use DeleteCourseVideoRequest.newBuilder() to construct.
private DeleteCourseVideoRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); }
[ "private DeleteCourseVideoResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "void delete(String courseId);", "public void deleteVideo(Video video) throws Exception {\n\t\t\n\t}", "private CreateCourseVideoRequest(com.google.protobuf.GeneratedMessageV3.Builde...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__GUARD__Group__0" $ANTLR start "rule__GUARD__Group__0__Impl" InternalDsl.g:11084:1: rule__GUARD__Group__0__Impl : ( ( rule__GUARD__ExprAssignment_0 ) ) ;
public final void rule__GUARD__Group__0__Impl() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalDsl.g:11088:1: ( ( ( rule__GUARD__ExprAssignment_0 ) ) ) // InternalDsl.g:11089:1: ( ( rule__GUARD__ExprAssignment_0 ) ) { ...
[ "public final void rule__AssignmentExpression__Group_0__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalReflex.g:9471:1: ( rule__AssignmentExpression__Group_0__1__Impl )\n // InternalReflex.g:9472:2: rule__AssignmentExpr...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets a List of "author" elements
java.util.List<java.lang.String> getAuthorList();
[ "List<String> getRevisionAuthors();", "public List getAuthors()\n\t\t{\n\t\t\treturn m_authors;\n\t\t}", "public List<String> getAuthorNames() {\n return authorNames;\n }", "public Author[] getAuthors() {\n return authors;\n }", "public String getListOfAuthors() {\n if (copyOfBook != ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Set the HTTP constraint.
public ServletSecurityMetaData setHttpConstraint(HttpConstraintMetaData httpConstraint) { this.httpConstraint = httpConstraint; return this; }
[ "public void setConstraint(int constraint) {\n mConstraint = constraint;\n }", "public HttpConstraintMetaData getHttpConstraint() {\n return this.httpConstraint;\n }", "private void setRestrictiveConstraint (int restriction)\r\n\t{\r\n\t\t// Keep the modifiers.\r\n\t\tconstraints &= TextFiel...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Tests the LLcalculator for the Sentence grammar.
@Test public void testSentenceOrig() { Grammar g = Grammars.makeSentence(); // Without the last (recursive) rule, the grammar is LL-1 assertTrue(createCalc(g).isLL1()); }
[ "@Test\n\tpublic void testSentenceOrigLL1() {\n\t\t// Without the last (recursive) rule, the grammar is LL-1\n\t\tassertTrue(createCalc(sentenceG).isLL1());\n\t}", "@Test\n public void TestTranslatorFromSentence()\n {\n System.out.println(\"--- translate word from sentence ---\");\n \n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test that edges need to be in the right direction for reachable, i.e source to target only
@Test public void tr2() { Graph graph = new Graph(2); Set<Integer> sources = new TreeSet<Integer>(); Set<Integer> targets = new TreeSet<Integer>(); sources.add(0); targets.add(1); graph.addEdge(0,1); assertTrue(graph.reachable(sources, targets)); }
[ "boolean hasRightNeighbor();", "@Test\n public void directedRouting_noUTurnAtVirtualEdge() {\n graph.edge(0, 1).setDistance(1).set(speedEnc, 10, 10);\n graph.edge(1, 2).setDistance(1).set(speedEnc, 10, 0);\n graph.edge(2, 3).setDistance(1).set(speedEnc, 10, 0);\n graph.edge(3, 4).se...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Use DecryptMessage.newBuilder() to construct.
private DecryptMessage(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); }
[ "private NEMDecryptMessage(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n\t\t\tsuper(builder);\n\t\t}", "private DecryptedMessage(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n\t\t\tsuper(builder);\n\t\t}", "public byte[] DecryptMessage() {\r\n\t\tbyte[] clearTextBytes = null;\r\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Specifies not to trim values before identifying the type of column values. The default value is true.
public Boolean getDisableValueTrimming() { return this.disableValueTrimming; }
[ "public boolean isTrimColumns() {\n\t return trimColumns;\n\t}", "public void setTrimColumns(boolean trimColumns) {\n\t this.trimColumns = trimColumns;\n\t}", "protected boolean skipBlankValues() {\n return true;\n }", "public Boolean isDisableValueTrimming() {\n return this.disableValu...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__SetExp__Group__3__Impl" $ANTLR start "rule__SetExp__Group__4" InternalOCLlite.g:7469:1: rule__SetExp__Group__4 : rule__SetExp__Group__4__Impl rule__SetExp__Group__5 ;
public final void rule__SetExp__Group__4() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalOCLlite.g:7473:1: ( rule__SetExp__Group__4__Impl rule__SetExp__Group__5 ) // InternalOCLlite.g:7474:2: rule__SetExp__Group__4__Impl rule__SetExp...
[ "public final void rule__SetExp__Group__4__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalOCLlite.g:7485:1: ( ( ( rule__SetExp__Group_4__0 ) ) )\n // InternalOCLlite.g:7486:1: ( ( rule__SetExp__Group_4__0 ) )\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the event with the given title or returns null is there is no event available with the given title.
Event getEvent(String title);
[ "public Entry getEntryByTitle(String title) {\n int entryIndex = getEntryIndexByTitle(title);\n if (entryIndex != -1) {\n return ((List<Entry>) Router.callRouter(this.entries, Entries.class, \"getEntry\", null, null)).get(entryIndex); \n }\n return null;\n }", ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This writes out the axioms.
public String writeAxioms() { String output = ""; for (int i=0; i<axiom_strings.size(); i++) { String ax_string = (String)axiom_strings.elementAt(i); if (ax_string.indexOf("op")!=0) output = output + ax_string + "\n"; } return output; ...
[ "private void writeOut() throws IOException {\n\t\t// Create a string buffer\n\t\tStringBuilder buffer = new StringBuilder();\n\t\t// append the prefix\n\t\tfor (int i = 0; i < huiSets.size(); i++) {\n\t\t\tbuffer.append(huiSets.get(i).itemset);\n\t\t\t// append the utility value\n\t\t\tbuffer.append(\"#UTIL: \");\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the result of interpreting the object as an instance of 'Logical And Expression'. This implementation returns null; returning a nonnull result will terminate the switch.
public T caseLogicalAndExpression(LogicalAndExpression object) { return null; }
[ "private Expr and() {\n Expr expr = equality();\n\n while (match(AND)) {\n Token operator = previous();\n Expr right = equality();\n expr = new Expr.Logical(expr, operator, right);\n }\n\n return expr;\n }", "LogicalAndExpression createLogicalAndExpr...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates a geometry that shows the hinge.
private void createHingeGeometry(AssetManager manager, int sides, ColorRGBA color) { Mesh axisMesh = new Mesh(); Vector3f z = axis.normalize(); Vector3f x, y; if (z.x > z.y && z.x > z.z) { // x component is largest so cross with unit.y x = z.cross(Vector3f.UNIT_Y)...
[ "private Geometry createGeometry()\r\n\t{\t\t\r\n\t\tPoint3f ldf = new Point3f(-X, -Y, Z); // left down front\r\n\t\tPoint3f luf = new Point3f(-X, Y, Z); // left up front\r\n\t\tPoint3f rdf = new Point3f( X, -Y, Z); // right down front\r\n\t\tPoint3f ruf = new Point3f( X, Y, Z); // right up front\r\n\t\t\r\n\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
findChildrenInNonCompliance returns the children associated with the noncompliance. These children may or may not have been a part of the violation.
List<Map> findChildrenInNonCompliance(int idNonCompliance);
[ "List<NonComplianceChild> findNonComplianceChildbyIdNonCompliance(int idNonCompliance);", "List<Map> findChildrenInViolation (int idNonCompliance);", "private List<Node> findSheetChildren(){\n if(!getChildren().isEmpty()){\n if(getChildren().get(0) instanceof Region){\n Region r...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the date time.
public String getDateTime() { log.trace("Get dateTime, returns [{}]", dateTime); return dateTime; }
[ "public Date getDate() {\n\t\tlong time = getTime(ntpTime);\n\t\treturn new Date(time);\n\t}", "public Date getCrtTime() {\n return crtTime;\n }", "public Date getCrttime() {\n return crttime;\n }", "private String getDateTime() {\n SimpleDateFormat sdf = new SimpleDateFormat(\"...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method sets the value of the database column litemall_bankcard_auth_call.response_date
public void setResponseDate(LocalDateTime responseDate) { this.responseDate = responseDate; }
[ "public void setDateResponsed(Date dateResponsed);", "@Override\n\tpublic void setRequestResponseTime(java.util.Date requestResponseTime) {\n\t\t_historyInterfaceRequestField.setRequestResponseTime(requestResponseTime);\n\t}", "public void setCallDate(String callDate) {\r\n this.callDate = callDate;\r\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Whether or not the agent runs on weekends, only relevant for DAILY or MORE_THAN_DAILY
public boolean getRunOnWeekends();
[ "public boolean isWeekend()\r\n {\r\n DayOfWeek dd=getDay(getDepartingDate());\r\n DayOfWeek rd=getDay(getReturningDate());\r\n if((dd==DayOfWeek.FRIDAY||dd==DayOfWeek.SATURDAY||dd==DayOfWeek.SUNDAY)||(rd==DayOfWeek.FRIDAY||rd==DayOfWeek.SATURDAY||rd==DayOfWeek.SUNDAY))\r\n r...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Extract text from a TIFF image
@Test(description = "Extract text from an image - TIFF", groups = { "example_ocr" }) public void test_C_Extract_Text_From_Image_OCR_TIFF() throws Exception { try { OCRProcessor ocrProcessor = new OCRProcessor(); ocrProcessor.getTextInImage("resources...
[ "public void ocrExtraction(BufferedImage image) {\n\t\tFile outputfile = new File(\"temp.png\");\n\t\toutputfile.deleteOnExit();\n\t\tString ocrText = \"\", currLine = \"\";\n\t\ttry {\n\t\t\tImageIO.write(image, \"png\", outputfile);\n\n\t\t\t// System call to Tesseract OCR\n\t\t\tRuntime r = Runtime.getRuntime();...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__LayerSegment__Group__3__Impl" $ANTLR start "rule__LayerSegment__Group__4" InternalMyDsl.g:4416:1: rule__LayerSegment__Group__4 : rule__LayerSegment__Group__4__Impl rule__LayerSegment__Group__5 ;
public final void rule__LayerSegment__Group__4() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalMyDsl.g:4420:1: ( rule__LayerSegment__Group__4__Impl rule__LayerSegment__Group__5 ) // InternalMyDsl.g:4421:2: rule__LayerSegment__Group__...
[ "public final void rule__Lane__Group__4() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:9485:1: ( rule__Lane__Group__4_...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Checks if proxy feature is supported by node;
public static final boolean supportsProxyFeature(final int feature) { return ((feature & (1 << 1)) > 0); }
[ "boolean hasUseAsProxy();", "public boolean isProxy();", "boolean hasProxy(String proxyName);", "boolean isOmniProxyServer();", "boolean getUseAsProxy();", "public boolean HTTPproxy();", "public boolean isEnabled() {\n\t\treturn !proxyIPAddress.equals(\"\") && !proxyPort.equals(\"\");\n\t}", "public b...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
POST /distributions : Create a new distribution.
@PostMapping("/distributions") public ResponseEntity<DistributionDTO> createDistribution(@RequestBody DistributionDTO distributionDTO) throws URISyntaxException { log.debug("REST request to save Distribution : {}", distributionDTO); if (distributionDTO.getId() != null) { throw new BadReq...
[ "@PostMapping(\"/distributions/bulk\")\n public ResponseEntity<DistributionDTO> createMultipleDistribution(@RequestBody DistributionDTO distributionDTO) throws URISyntaxException {\n log.debug(\"REST request to save Distribution : {}\", distributionDTO);\n if (distributionDTO.getId() != null) {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Classes that implement PopupMenuResponder can add custom actions to the menu selection of various popup windows
public interface PopupMenuResponder { public void onMenuSelection(String selection); }
[ "protected abstract PopupMenuHelper createActionMenuHelper();", "ModPopupMenu addMenuItem(String label, Action action);", "private void createPopupMenu() {\r\n // pride inspector context\r\n DesktopContext context = Desktop.getInstance().getDesktopContext();\r\n\r\n // create a popup menu\r...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Find by reference: tax
public List<SalesOrderItem> findByTax(Tax tax);
[ "x0101.oecdStandardAuditFileTaxPT1.TaxDocument.Tax getTax();", "java.lang.String getTaxon();", "public List<PurchaseOrderLine> findByTax(Tax tax);", "Object getTaxes(Address shippingAddress, String itemReferenceId, int quantity, Float price,\n String userId, Boolean submitTax);", "...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Instantiates a new High scores animation.
public HighScoresAnimation(HighScoresTable scores) { this.highScoresTable = scores; }
[ "public HighScoresAnimation(HighScoresTable scores) {\n this.highScores = scores;\n }", "public HighScoreTask(HighScoresAnimation animation) {\r\n\r\n this.animation = animation;\r\n this.animationRunner = new AnimationRunner(Ass7Game.GUI, 60);\r\n }", "public HighScoresAnimation(High...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
The accuracy test of the method getExtendedElements.
public void test_getExtendedElements_accuracy() { instance.addExtendedElement(element); assertEquals("ExtendedElement got incorrectly", 1, instance.getExtendedElements().size()); }
[ "public void test_countExtendedElements_accuracy() {\n instance.addExtendedElement(element);\n assertEquals(\"The element is not added properly.\", 1, instance.countExtendedElements());\n }", "public void test_containsExtendedElement_accuracy() {\n instance.addExtendedElement(element);\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
The diameter of the invisible circle on which the nodes lie Constructor, adds the number of nodes to the graph on the circle and calls connectAll()
public CompleteGraph(int d, int n) { diameter = d; int r = diameter/2; double x = r; double y = r; double theta = 2 * Math.PI / n; clearAll(); while (getNodes().size() < n ) { CircleNode c = new CircleNode(Color.WHITE); x = r*Math.sin(-1*(getNodes().size())*theta + Math.PI); y = r*Math.cos(-1...
[ "public void setDiameter(int diameter) {\n circleDiameter = diameter;\n\n }", "private int number_circle() {\r\n int total = 0;\r\n Node node = find_inputNode();\r\n for (Edge e : g.get()) {\r\n if (e.getStart() == node) {\r\n total++;\r\n }\r\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
string field_1994 = 1994;
java.lang.String getField1994();
[ "java.lang.String getField1992();", "java.lang.String getField1995();", "java.lang.String getField1991();", "java.lang.String getField1996();", "java.lang.String getField1993();", "java.lang.String getField1997();", "java.lang.String getField1990();", "java.lang.String getField1988();", "java.lang.S...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
setFood sets the amount of food for the hive.
public void setFood(int food) { this.food = food; }
[ "public void setFood(int amount){\r\n \tthis.food = amount;\r\n }", "void setFood(int amount) {\n if (amount < 0) {\n throw new IllegalArgumentException(\"amount cannot be negative\");\n } else {\n this.food = amount;\n }\n }", "public void eat(Food food) {\n\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
auto generated Axis2 call back method for GetMWSInfoProperties method override this method for handling normal response from GetMWSInfoProperties operation
public void receiveResultGetMWSInfoProperties( com.autometrics.analytics.v9.j2ee.webservices.v1_0.GetMWSInfoPropertiesResponse result) { }
[ "public void receiveResultGetMWSProperties(\r\n\t\t\tcom.autometrics.analytics.v9.j2ee.webservices.GetMWSProperties2Response result) {\r\n\t}", "public void receiveResultGetMWSFunctionalityProperties(\r\n\t\t\tcom.autometrics.analytics.v9.j2ee.webservices.v1_0.GetMWSFunctionalityPropertiesResponse result) {\r\n\t...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Code for Site Inspection report Assertion report for Application for Building permit
public void TPSiteInspectionLetter_Building_Permit() { try{ System.out.println("======================"); if(!mGetPropertyFromFile("TypeOfExecution").equalsIgnoreCase("individual")){ mAssert(SIL_appname.get(CurrentinvoCount), Bpr_AppfullnmWdTitle.get(CurrentinvoCount), "Actual Applicant name in site ins...
[ "public void Building_Permit_Assertion()\n\t{\n\t\ttry{\n\t\t\tapi.PdfPatterns.BuildingPermitApprovalPDF(pdfoutput);\n\t\t\t{\n\t\t\t\tmAssert(BPAL_APPLICATIONNO.get(CurrentinvoCount), ApplicationNoforLandDev.get(CurrentinvoCount), \"Actual Application No is :::\"+BPAL_APPLICATIONNO +\",Expected is :::\"+Applicati...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the dsCPF value for this TItemRetornoVendaDia.
public void setDsCPF(java.lang.String dsCPF) { this.dsCPF = dsCPF; }
[ "public java.lang.String getDsCPF() {\n return dsCPF;\n }", "public void setDsCidade(java.lang.String dsCidade) {\n this.dsCidade = dsCidade;\n }", "public void setCPF(java.lang.String CPF) {\r\n this.CPF = CPF;\r\n }", "public void setDSCRF(java.lang.String DSCRF) {\n thi...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the panOn status of this CoilConfiguration.
public int getPanOn() { return panOn; }
[ "public boolean getPanStatus() {\n return doPan;\n }", "public int getPanOff() {\n return panOff;\n }", "public void setPanOn(int panOn) {\n this.panOn = panOn;\n }", "public @ContaminantDetectionStatus int getContaminantDetectionStatus() {\n return mContaminantDetectionSt...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Flink 1.11 bind CatalogManager with parser which make blink and flink could not share the same CatalogManager. This is a workaround which always reset CatalogTableSchemaResolver before running any flink code.
@Override public void setCatalogManagerSchemaResolver(Object catalogManager, Object parserObject, Object environmentSetting) { }
[ "public void setLocalCatalog(Catalog localCatalog);", "public CatalogURIResolver(JAXWSCatalogManager catalogManager, ClassLoader classLoader) {\n super(classLoader);\n if (catalogManager != null) {\n this.catalogResolver = catalogManager.getCatalog();\n }\n }", "public Catalog...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get the ref, if this was advertised by the connection.
public Ref getRef() { return ref; }
[ "public String getRef() {\r\n return this.ref;\r\n }", "java.lang.String getRef();", "public java.lang.String getPclRef()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
A visitor that evaluate the input with SUB with the given worksheet.
public SubVisitor(Map<Coord, ICellContent> worksheet) { this.worksheet = worksheet; }
[ "void subreport(Subreport s, Row r) throws Exception ;", "public interface IWorksheet {\n\n /**\n * Provides a copy of all of the active cells for iteration purposes.\n * @return the cells with Sexps in them.\n */\n List<Coord> allActiveCells();\n\n /**\n * Returns the literal representation of the cel...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__UniformReference__RefAssignment_1" $ANTLR start "rule__UpdateSubtraction__RightAssignment_1_2" ../eu.quanticol.caspa.ui/srcgen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:10426:1: rule__UpdateSubtraction__RightAssignment_1_2 : ( ruleUpdateAddition ) ;
public final void rule__UpdateSubtraction__RightAssignment_1_2() throws RecognitionException { int stackSize = keepStackSize(); try { // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:10430:1: ( ( ruleUpdateAddition ) ) ...
[ "public final void rule__Subtraction__RightAssignment_1_2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../com.blasedef.onpa.ONPA.ui/src-gen/com/blasedef/onpa/ui/contentassist/antlr/internal/InternalONPA.g:9779:1: ( ( ruleAddition ) )\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test of processMalfunction method.
@Test public void testProcessMalfunction() { // Instanciate malfunction handlers final SpaceMonkey sm = new SpaceMonkey(Severity.TRIVIAL); final ServiceRobot sr = new ServiceRobot(Severity.LOW); final Engineer e = new Engineer(Severity.MEDIUM); final Captain c = new ...
[ "protected boolean processStoppedExamining(int gameNumber){return false;}", "@Test\n public void testInvalidProcessorAmount() {\n try {\n String cpuAmount = \"notAnInt\";\n String[] args = { inputFile, processorAmount, \"-p\", cpuAmount };\n\n inputParser.parse(args);\n\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Seta essa casa como passante.
void setMovimentoPassante(boolean passante);
[ "public void setAutor (Pessoa p){\n }", "@Test\r\n public void testSetContrasenia() {\r\n System.out.println(\"setContrasenia\");\r\n String contrasenia = \"\";\r\n Usuario instance = new Usuario();\r\n instance.setContrasenia(contrasenia);\r\n // TODO review the generated...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Adds shot for team A
public void addOneShotForTeamA(View view) { shotsForTeamA = shotsForTeamA + 1; displayShotsForTeamA(shotsForTeamA); }
[ "public void addSogForTeamA(View v) {\n shotOnGoalA = shotOnGoalA + 1;\n displayShotsForTeamA(shotOnGoalA);\n\n }", "public void addShot (Shot newShot){\n listShots.add(newShot);\n }", "public void addOneShotForTeamB(View view) {\n\n shotsForTeamB = shotsForTeamB + 1;\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the list of file diff's of the commit.
public List<Diff> getDiffs();
[ "IFileDiff[] getDiffs();", "java.util.List<com.znl.proto.Common.AttrDifInfo> \n getDiffsList();", "public LinkedList<Diff> getDiff(){\t\n\t\tString modifiedString = \"\";\n\t\ttry {\n\t\t\tmodifiedString = openReadFile(modDoc);\n\t\t} catch (IOException e) {\n\t\t\t// TODO Print to the console\n\t\t\t/...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method sets the value of the database column st_door_real.dev_fx
public void setDevFx(Integer devFx) { this.devFx = devFx; }
[ "public void setdEdx(float dEdx)\n {\n //checkAccess();\n //this.dEdx = dEdx;\n setEDep( dEdx );\n }", "public void forceSensorValue(){\n SensorEvent sensorEvent;\n //Set internal formal mode\n// setInternalFormalMode(sensorEvent);\n }", "public void setDeflectorX(doub...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Initializes a new instance of the "Grouping" class.
public Grouping() { }
[ "public Group() {\n\t\t\tfirst = last = null;\n\t\t\tsize = 0;\n\t\t}", "public Group() {}", "public AbstractGroup() {\n cells = new ArrayList<KCell>();\n counts = new Histogram();\n total = 0;\n }", "public Group() {\n\n }", "public static Group initGroupObject(){\n Group ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This function returns the longest from a given collection of annotations. Length measured as end begin.
@Deprecated private <T extends Annotation> T selectLongest(Collection<T> coll) { int l = -1; T fm = null; for (T ment : coll) { int cl = ment.getEnd() - ment.getBegin(); if (cl > l) { l = cl; fm = ment; } } if (fm == null) return coll.iterator().next(); else return fm; }
[ "private <T extends Annotation> T selectLongest(Collection<T> coll) {\n\t\tint l = -1;\n\t\tT fm = null;\n\t\tfor (T ment : coll) {\n\t\t\tint cl = ment.getEnd() - ment.getBegin();\n\t\t\tif (cl > l) {\n\t\t\t\tl = cl;\n\t\t\t\tfm = ment;\n\t\t\t}\n\t\t}\n\t\tif (fm == null)\n\t\t\treturn coll.iterator().next();\n\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Set value of D0windk
public final void setD0windk(java.math.BigDecimal d0windk) { setD0windk(getContext(), d0windk); }
[ "public final void setD0windk(com.mendix.systemwideinterfaces.core.IContext context, java.math.BigDecimal d0windk)\n\t{\n\t\tgetMendixObject().setValue(context, MemberNames.D0windk.toString(), d0windk);\n\t}", "public final void setD0windr(com.mendix.systemwideinterfaces.core.IContext context, java.lang.String d0...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns true if field isStart is set (has been assigned a value) and false otherwise
public boolean isSetIsStart() { return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __ISSTART_ISSET_ID); }
[ "public boolean isSetStart() {\n return this.start != null;\n }", "public boolean isSetStart_time() {\n return this.start_time != null;\n }", "public boolean hasStart() {\n return fieldSetFlags()[5];\n }", "public boolean isSetStart() {\n return __isset_vector[__START_ISSET_ID];\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates a new instance of GenericResource
public GenericResource() { }
[ "public GenericResource() {\n }", "Resource createResource();", "ResourceAPI createResourceAPI();", "ObjectResource createObjectResource();", "Service_Resource createService_Resource();", "protected abstract R createNewResource(Link self);", "public TarefaResource() {\r\n }", "InformationResourc...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
get playlist version by playlist
@GetMapping @ReturnHandler public List<PlaylistVersionInfo> getPlaylistVersions( @RequestParam("playlist_uuid") String playlistUuid) { return iPlaylistVersionViewService.getPlaylistVersions(playlistUuid); }
[ "public Playlist getPlaylistToPlay();", "List<Song> getActivePlaylist();", "int getActivePlaylistId();", "public String matchAndViewSongs(String playlist) throws NoPlaylistException {\n for (Playlist p : library) {\n if (p.getPlaylistName().equals(playlist)) {\n str = p.toStri...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get token as string by user entity
String getToken(UserEntity userEntity);
[ "T getTokenEntity(String token);", "String getUsernameFromToken(String token);", "String createToken(User user);", "void createToken(UserEntity userEntity);", "public String getUserToken() {\n if (userinfo == null)\n return null;\n return userinfo.token;\n }", "String createNew...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
returns lowest humidity in multiple files
public CSVRecord lowest_humidity_in_multiple() { CSVRecord lowestsofar = null; DirectoryResource dr = new DirectoryResource(); for (File f: dr.selectedFiles()) { FileResource fr = new FileResource(f); CSVRecord currentRow = lowestHumidityInFile(fr.getCSVParser()); if (lowestsofar == null) { lowestso...
[ "public CSVRecord lowestHumidityInManyFiles() {\n\n\t\tCSVRecord lowestSoFar = null;\n\t\tDirectoryResource dr = new DirectoryResource();\n\t\t// iterate over files\n\t\tfor (File f : dr.selectedFiles()) {\n\t\t\tFileResource fr = new FileResource(f);\n\t\t\t// use method to get largest in file.\n\t\t\tCSVRecord cu...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }