query
stringlengths
8
1.54M
document
stringlengths
9
312k
negatives
listlengths
19
20
metadata
dict
Given an ordered list of the contour Mats (L to R, top to bottom), use OCR to try and recognize each character. Try all four orientations and use prediction with highest confidence.
private ArrayList<String> getBoardCharacters(ArrayList<Mat> letterContours) { ArrayList<String> symbols = new ArrayList<>(); tessAPI = new TessBaseAPI(); if (tessAPI == null) { Log.e("Tesseract", "TessBaseAPI failed ot initialize."); } else { tessAPI.init...
[ "@Override\n public void onClick(View view) {\n Toast.makeText(getApplicationContext(),\n \"I try to read ocr!\",\n Toast.LENGTH_SHORT\n ).show();\n\n TextRecognizer textRecognizer = new TextRecognizer.Builder(getA...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Manipulates the map once available. This callback is triggered when the map is ready to be used. This is where we can add markers or lines, add listeners or move the camera. In this case, we just add a marker near Sydney, Australia. If Google Play services is not installed on the device, the user will be prompted to in...
@Override public void onMapReady(GoogleMap googleMap) { mMap = googleMap; LatLng ukLocations = new LatLng(54,2); for (int i = 0; i < items.size(); i++) { String magnitude = items.get(i).getMagnitude().substring(11); BitmapDescriptor itemMapMarkerIcon = null;...
[ "@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n if (ActivityCompat.checkSelfPermission(this, android.Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(this, android.Manifest.permission.ACCESS_COARS...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO oskliarov: when JFG972 will be done use properties use list of queries to check that query rotation works
private Iterable<JHttpQuery> getQueries() { return Stream.of("55", "12", "77").map(q -> new JHttpQuery().get().path("/sleep", q)).collect(Collectors.toList()); }
[ "@Test\n public void testSqlFieldsQueryHistoryCrossCacheQueryNotFullyFetched() throws Exception {\n SqlFieldsQuery qry = new SqlFieldsQuery(\"select * from \\\"B\\\".String\");\n qry.setPageSize(10);\n\n checkQueryNotFullyFetchedMetrics(qry, false);\n }", "@Test\n public void testSql...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method returns the starting week day for the current month:
public static int findDayOfWeek() { double a = Math.floor((14 - ((double)currentMonth + 1)) / 12); double y = currentYear - a; double m = (currentMonth + 1) + 12 * a - 2; double d = (1 + y + Math.floor(y / 4) - Math.floor(y / 100) + Math.floor(y / 400) + Math.floor((31 * ...
[ "public static String findDateOfCurrentWeekMonday() {\n\t\tString date=null;\n\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"dd/MM/yy\");\n\t\tCalendar c = Calendar.getInstance();\n\t\tc.setFirstDayOfWeek(Calendar.MONDAY);\n\t\tc.setTime(new Date());\n\t\tint today = c.get(Calendar.DAY_OF_WEEK);\n\t\tc.add(Calen...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Calculate the attendance percentage between the start and end dates.
public void calculateAttPer(LocalDate start, LocalDate end) { int presCount = 0; int size = 0; for (AttendanceStatus attendanceStatus : attendance) { LocalDate date = attendanceStatus.getDateAsLocalDate(); if (date.isAfter(start) && date.isBefore(end)) { s...
[ "public float getPercentageOfAttendance(int i) {\n int totalpresentdays = attendaceStudentHashMap.get(i).getPresentDays();\n int totaldays = attendaceStudentHashMap.get(i).getTotalDays();\n float percentage = (float) ((totalpresentdays) * 100 / totaldays);\n return percentage;\n }", ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns a new object of class 'Proper Body'.
ProperBody createProperBody();
[ "protected void creaBody() {\n }", "public Body() {\n\n super();\n }", "@Override\n\tvoid createBody() {\n\t\t\n\t}", "public static Builder fromBody() {\n return new Builder();\n }", "public Object body() { return body; }", "public static native Body newBody(BodyOptions options) ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
returns next teams id
public long getNextTeamId() { return nextTeamId; }
[ "private static void updateNextTeamID(List<Organisation> organisations) {\n List<Integer> allIDs = new ArrayList<>();\n for (Organisation organisation : organisations) {\n for (int i = 0; i < organisation.getTeams().size(); i++) {\n int ID = organisation.getTeams().get(i).get...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public void addArticle(Article a) { dao.addArticle(a); }
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
optional uint32 bonus_points = 3;
public Builder clearBonusPoints() { bitField0_ = (bitField0_ & ~0x00000004); bonusPoints_ = 0; onChanged(); return this; }
[ "Bonus(){\n\t\t\n\t}", "public void bonus() {\n points += Configuration.BONUS_POINTS;\n }", "public void setBonusAttackPoints(int bonusAttackPoints) { this.bonusAttackPoints = bonusAttackPoints; }", "float getBonusMultiplier();", "public void addBonusPoints(int bonusPoints) {\r\n\t\tthis.bonusPoin...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Method used to clean up and release network resources. Intended to be called upon when resetting the networkModule as well as when the service is no longer needed
@Override public void cleanStop() { if (networkModule == null) { Log.i(TAG, "cleanStop: ERROR already performed a cleanStop"); } else { Log.i(TAG, "cleanStop: performing a clean stop"); connectionsClient.stopDiscovery(); isScanning = false; ...
[ "public void cleanup() {\n\t\tif (this.netManager != null) {\n\t\t\tthis.netManager.wakeThreads();\n\t\t}\n\n\t\tthis.netManager = null;\n\t\tthis.worldClient = null;\n\t}", "private void cleanup() {\n mWifiNative.teardownAllInterfaces();\n }", "protected void cleanup() {\n if(this.rpcC...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Execute a delete statement. The number of rows affected will be returned.
public int delete(String statement, Object parameter) { SqlSession sqlSession = sqlSessionFactory.openSession(true); int result = 0; try { result = sqlSession.delete(statement, parameter); } finally { sqlSession.close(); } return result; }
[ "public void doDelete() throws SQLException, DPFTRuntimeException {\n\t\tif(stmt.getStatementType().equals(GlobalConstants.DB_STMT_TYPE_DELETE)){\n\t\t\tstmt.doDelete();\n\t\t}\n\t}", "public int delete(String where) throws SQLException\n {\n int returnCode=-999;\n\n // Create a SQL delete statem...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns whether or not the service type is new.
public boolean isNew() { return isNew; }
[ "private boolean\tisNew()\n\t{\n\t\treturn this.state == VehiculeState.NEW;\n\t}", "public boolean isNew() {\n\treturn isNew;\n }", "public boolean isNew(){\n return this.isNew;\n }", "public boolean isSetNewSchema() {\n return this.newSchema != null;\n }", "public String getIsNew() {\r\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns a status of the notification request.
public String getStatus() { return status; }
[ "String getRequestStatus(IRequest request);", "java.lang.String getRequestedStatus();", "@RequestMapping(value = \"/getStatusOfNotification\", method = RequestMethod.GET)\n\tpublic boolean getStatusOfNotification() {\n\t\tString userName = WebUtil.getPrincipalUsername();\n\t\tboolean option = userService.getSta...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Constructor when we don't need to send any parameter
public WebThread(String url, int methode, ConnectivityManager connectionManager, String encoding, boolean useBase64Encoder) { this.url = url; this.methode = methode; this.connectionManager = connectionManager; this.encoding = encoding; this.params = null; this.useBase64Encoder = useBase64Encod...
[ "public abstract T constructor();", "public Constructor_Concept(){\n System.out.println(\"This is constructor with no argument\");\n\n }", "public RequestParams() {\n\t}", "private Casier(){}", "ThisConstructor(){\n\t\tSystem.out.println(\"I am not argument constructor\");\n\t}", "private Simple...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Prints board with rows and column as given and all objects in it as they stand
public void printBoard() { char[] row = {'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h'}; char[] column = {'8', '7', '6', '5', '4', '3', '2', '1'}; for(int i = 0; i<length; i++) { System.out.println(); for(int j = 0; j<width; j++) { System.out.print(board[i][j].ge...
[ "void printBoard() {\n for (int row = 0; row < ROWSCOLS; ++row) {\n for (int col = 0; col < ROWSCOLS; ++col) {\n printCell(board[row][col]); // print each of the cells\n if (col != ROWSCOLS - 1) {\n System.out.print(\"|\"); // print vertical parti...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Arithmetic operator; Addition:+ Subtraction: Multiply: Division: / Remainder: %
public static void main(String[] args) { int number1 = 50; int number2 = 60; int summation = number1+number2; System.out.println(summation); int subtraction = number1-number2; System.out.println(subtraction); int multiplication = number1*number2; System....
[ "protected Object arithmeticValue(double d0, double d1) {\r\n\tdouble result = 0;\r\n\tswitch (operator) {\r\n\t\tcase '+' :\r\n\t\t\tresult = d0 + d1;\r\n\t\t\tbreak;\r\n\t\tcase '-' :\r\n\t\t\tresult = d0 - d1;\r\n\t\t\tbreak;\r\n\t\tcase '*' :\r\n\t\t\tresult = d0 * d1;\r\n\t\t\tbreak;\r\n\t\tcase '/' :\r\n\t\t\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Constructs a new AbstractEntityTuplizer instance.
public AbstractEntityTuplizer(EntityMetamodel entityMetamodel, PersistentClass mappingInfo) { this.entityMetamodel = entityMetamodel; if ( !entityMetamodel.getIdentifierProperty().isVirtual() ) { idGetter = buildPropertyGetter( mappingInfo.getIdentifierProperty(), mappingInfo ); idSetter = buildProperty...
[ "protected abstract Entity createEntity();", "public interface EntityTuplizer extends Tuplizer {\r\n\t/**\r\n\t * Return the entity-mode handled by this tuplizer instance.\r\n\t *\r\n\t * @return The entity-mode\r\n\t */\r\n\tpublic EntityMode getEntityMode();\r\n\r\n /**\r\n * Create an entity instance in...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ 537: / 538:
public void setConversionService(ConversionService conversionService) /* 539: */ { /* 540: 678 */ this.conversionService = conversionService; /* 541: */ }
[ "public void mo3844e() {\n AppMethodBeat.m2504i(66263);\n mo19884f();\n this.f2621f = -1;\n this.f2620e = -1;\n AppMethodBeat.m2505o(66263);\n }", "private int m31494n() {\n return 300;\n }", "private final void m78111n() {\n Log.d(C6969H.m41409d(\"G7982CC\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Funcion excepciones de las Decenas
static String excepcionsDecenes(int q3){ String digitDecenaEnLletra = ""; String decenaEnLletra = desenaEnLletres(digitDecenes(q3)); //Guardar funciones en variables int digitDecena = digitDecenes(q3); int digitUnitat = digitUnitats(q3); if(digitDecena =...
[ "public AS2Exception getExContabilizacion()\r\n/* 1320: */ {\r\n/* 1321:1348 */ return this.exContabilizacion;\r\n/* 1322: */ }", "public ejemplosExcepciones()\n {\n /**\n listaEjemplo = new ArrayList<>();\n listaEjemplo.add(\"Aprende a programar\");\n listaEjemplo.a...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
onCreateView method that loads up the objects, then uses an adapter to display them in view list
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { // Attach rootView to word_list.xml View rootView = inflater.inflate(R.layout.word_list, container, false); // Create new ArrayList called birdSpots ...
[ "private void initView()\n {\n mActiveGoodsViewAdapter.addItems((ArrayList<GoodsItem>) mMainDB.readAll(false));\n mActiveGoodsViewAdapter.notifyDataSetChanged();\n }", "void init(View view) {\n lv = (ListView) view.findViewById(R.id.lv_artists);\n ArrayList<ArtistModel> artists =...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
POST /elasticsearch/index > Reindex all Elasticsearch documents TODO fix to pass correct message back in case of exception
@RequestMapping(value = "/elasticsearch/indexByEntity/{entityName}", method = RequestMethod.POST, produces = MediaType.TEXT_PLAIN_VALUE) @Timed @PreAuthorize("hasAuthority('" + AuthoritiesConstants.ADMIN + "')") public ResponseEntity<Void> reindexByEntity(@PathVariable String entityName) throws URISyntaxException { ...
[ "private void setupIndices(){\n\t\tClient client = node.client();\n\t\t\n\t\t// (re)create all indices\n\t\tfor(String indexName : indices.keySet()){\n\t\t\t// ES will keep the previous version of the cluster on disk so, we need to delete the index\n\t\t\ttry{\n\t\t\t\tclient.admin().indices().prepareDelete(indexNa...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This function sets up and draws the VOI according to the mode.
public void mouseReleased(MouseEvent mouseEvent) { int xS, yS; if (modifyFlag == false) { return; } xS = Math.round((mouseEvent.getX() / (getZoomX() * resolutionX)) - 0.5f); yS = Math.round((mouseEvent.getY() / (getZoomY() * resolutionY)) - 0.5f); i...
[ "public void draw() {\n\n lights();\n\n\n for (int i = 0; i < trackableCount(); i++) {\n int status = trackableStatus(i);\n if (status == PAR.PAUSED || status == PAR.STOPPED) continue;\n\n if (status == PAR.CREATED && trackableCount() < 10) {\n if (trackableType(i) == PAR.PLANE_WALL) {\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO: Warning this method won't work in the case the id fields are not set
@Override public boolean equals(Object object) { if (!(object instanceof Event)) { return false; } Event other = (Event) object; if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) { return false; } retu...
[ "public int getId () { return id; }", "public int getId(){ return this.id;}", "public int id() {return this.id;}", "@Override\n public int getId() { return id; }", "public void setId(long id){ \r\n this.id = id; \r\n }", "public void setId( int id ) { this.id = id; }", "public void setId( l...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
try to quit, show a message in case of failure
@Override public void actionPerformed(ActionEvent e) { try { System.exit(0); } catch (Exception ex) { JOptionPane.showMessageDialog(null,i18nLang.getString("EXC_QUIT") + ex.getMessage(), i18nLang.getString("EXC_Q...
[ "public static void quit() {\r\n\t\tSystem.err.println(ERROR);\r\n\t\tSystem.exit(-1);\r\n\t}", "private static void quit() {\n\t\tSystem.out.println(\"Thank you for running my program, have a nice day!\");\n\t\tSystem.exit(0);\n\n\t}", "private void errorMessage() {\n\t\t\t\n\t\t\t\n\t\t\tMain.exitMessage();\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method corresponds to the database table link_message
public void setOrderByClause(String orderByClause) { this.orderByClause = orderByClause; }
[ "@Mapper\npublic interface MessageDAO {\n String TABLE_NAME=\" message \";\n String INSERT_FIELDS=\" from_id, to_id, content, created_date, has_read, conversation_id\";\n String SELECT_FIELDS=\" id, \" + INSERT_FIELDS;\n\n @Insert({\"insert into\",TABLE_NAME, \"(\",INSERT_FIELDS, \")values(#{fromId},#{t...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public void onSuccess(String arg0) { Log.e(TAG,"onSuccess:"+arg0); }
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns true if a function expects any array arguments
default boolean hasArrayInputs() { return false; }
[ "public static boolean isArray_args_pot_value() {\n return false;\n }", "public static boolean isArray_args_status() {\n return false;\n }", "public static boolean isArray_args_anchor() {\n return false;\n }", "public boolean hasArgs() {\n return ( numberOfArgs > 1 ) || ( numb...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method receives DataBindingComponent instance as type Object instead of type DataBindingComponent to avoid causing too many compilation errors if compilation fails for another reason.
@NonNull @Deprecated public static ItemJobBinding inflate(@NonNull LayoutInflater inflater, @Nullable Object component) { return ViewDataBinding.<ItemJobBinding>inflateInternal(inflater, R.layout.item_job, null, false, component); }
[ "public final void bindComponents() {\r\n\t\tdoBeforeBind();\r\n\t\tbinder = new AnnotateDataBinder(this);\r\n\t\tIterator<String> itKeys = bindObjects.keySet().iterator();\r\n\t\tIterator<Object> itValues = bindObjects.values().iterator();\r\n\t\t// default bind name: \"object\"\r\n\t\twhile (itKeys.hasNext()) {\r...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
GET /goods/:id : get the "id" goods.
@GetMapping("/goods/{id}") @Timed public ResponseEntity<Goods> getGoods(@PathVariable Long id) { log.debug("REST request to get Goods : {}", id); Goods goods = goodsRepository.findOne(id); return ResponseUtil.wrapOrNotFound(Optional.ofNullable(goods)); }
[ "@GetMapping(\"/material-goods/{id}\")\n @Timed\n public ResponseEntity<MaterialGoods> getMaterialGoods(@PathVariable UUID id) {\n log.debug(\"REST request to get MaterialGoods : {}\", id);\n Optional<MaterialGoods> materialGoods = materialGoodsService.findOne(id);\n return ResponseUtil.w...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
pass button cordinates into function and returns true if the button is pressed or not
public boolean buttonPressed(int bx, int by, int bWidth, int bHeight) { if (mouseX >= bx && mouseX <= bx + width && //returns true if mouse is hovering over button specified mouseY >= by && mouseY <= by + height) { if (mousePressed) { return true; } } return false; }
[ "public boolean isClicked(float x,float y){\n return rect.contains(x+width/2,y+height/2); //is the x and y value within the button\n }", "boolean handleClick(float x, float y, int button);", "public boolean clickedButton(int x, int y, int button) {\n if (button == 0) {\n for (int l =...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
System.out.println("i:" + i + " | number:" + ((i<nums.length)?nums[i]:1) + " | select:" + select + " | total:" + total);
private int numHelper(int[] nums, int i) { if(i >= nums.length) return 0; if(memo[i]!=0) return memo[i]; if(nums[i]==0) return numHelper(nums, i+1); return memo[i] = Math.max(numHelper(nums, i+1), nums[i] + numHelper(nums, i+2)); }
[ "public static void main(String[] args) {\n double[] a = {5, 6, 7, 8, 9, -5, -4, -3, -2, -1, 0, 89, -5, 0, 87, 87, -52, -89, 0, 0, 0, 4, -7, 32, 7};\r\n\r\n System.out.println(\"\");\r\n\r\n for (int i = 0; i < a.length; i++) {\r\n System.out.print(\"[\" + a[i] + \"] \");\r\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
string createdByName = 50;
com.google.protobuf.ByteString getCreatedByNameBytes();
[ "String generateName();", "public abstract String generateName();", "private String generateName()\r\n {\n String name = \"post-\" +(new Date()).getTime() + \"_\" + \r\n Math.round(Math.random()*10000);\r\n return name;\r\n }", "static String whatsMyName(){\n retur...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Set the createdTime property: Date and time (UTC) when the model was created.
public ModelSnapshot setCreatedTime(OffsetDateTime createdTime) { this.createdTime = createdTime; return this; }
[ "public void setCreateTime() {\n creationTime = System.currentTimeMillis();\n }", "public abstract void setCreateTime(Timestamp createTime);", "@PrePersist\n\tpublic void setCreationTime() {\n\t\tCalendar currentTime = Calendar.getInstance();\n\t\tthis.setCreatedOn(currentTime);\n\t\tthis.setModifiedO...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ renamed from: a
static void m59273a(C13887c cVar, String str, int i, int i2, boolean z) { while (i < i2) { int codePointAt = str.codePointAt(i); if (codePointAt == 37) { int i3 = i + 2; if (i3 < i2) { int a = C14910b.m66037a(str.charAt(i + 1)); ...
[ "public interface C3511a {\n /* renamed from: a */\n void mo29057a(int i);\n }", "interface C4511c {\n /* renamed from: a */\n void mo29775a();\n }", "public interface ans {\n /* renamed from: a */\n void mo1174a();\n}", "public interface C24712af {\n /* renamed from...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Check if this view can be scrolled horizontally in a certain direction.
@Override public boolean canScrollHorizontally(int direction) { if (!isShown()) { return false; } final int range = maxHeadersWidth - mMeasuredWidth; if (range == 0) return false; if (direction < 0) { return -mOffsetX > 0; } else { ...
[ "public boolean isHorizontalScrollEnabled() {\n\t\treturn mIsHorizontalScrollEnabled;\n\t}", "private boolean isHorizontal() {\n return isWest() || isEast();\n }", "@Raw\n\tpublic boolean canHaveAsHorizontalVisibleWindowLocation(int horizontalVisibleWindowLocation){\n\t\treturn isPossibleWindowLocation(hori...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns a list of names for the transport filters in use.
String[] getGatewayTransportFilters();
[ "@ManagedAttribute(value = \"The transports known by this server\", readonly = true)\n public Set<String> getKnownTransportNames() {\n return new TreeSet<>(bayeux.getKnownTransportNames());\n }", "public String [] getFilters() {\n return this.Filters;\n }", "public List<Filter> getAllTask...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
set the background of each ListView row
public void setListRowBackground(int resId) { mListRowBackgroundResourceId = resId; }
[ "private void setRowViewBackgrounds() {\n SparseBooleanArray checked = mListView.getCheckedItemPositions();\n int colorHighlight = ContextCompat.getColor(mContext, R.color.colorHighlight);\n int colorTransparent = ContextCompat.getColor(mContext, R.color.colo...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO find a better way to manage comparisons
public void createJob(Comparison comparison) throws IOException { PairwiseComparison pairwiseComparison = new PairwiseComparison(); pairwiseComparison.setId(comparison.getId()); pairwiseComparison .setFirstDataset(getFile(comparison.getFirstDataset())); pairwiseComparison.setSecondDataset(getFile(comparison...
[ "private Comparison() {}", "private boolean isComparison() {\n return this == EQ || this == GT || this == LT;\n }", "@Test public void compare() {\n Outfielder test1 = new Outfielder(\"34\", \"Bo Jackson\", \n \"RF\", 1.5, .450, .9);\n Outfielder test2 = new Outfielder(\"02\"...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
manage activity result for passing to fragment class.
@Override protected void onActivityResult(int requestCode, int resultCode, Intent data) { if (requestCode == Keys.VERIFY_PHONE) { if (resultCode == RESULT_OK) { String loadPage = data.getStringExtra(Keys.VIEW_FRAGMENT); if (loadPage.equals(...
[ "@Override\n public void handleResult(Result result) {\n\n mScanerView.stopCamera();\n\n\n Paragem p = GestorInformacao.getInstance().findParagemById(Integer.parseInt(result.getText()));\n if (p == null) {\n\n AlertDialog.Builder builder = new AlertDialog.Builder(getContext());\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
optional uint32 IndexNum = 2;
public boolean hasIndexNum() { return ((bitField0_ & 0x00000002) == 0x00000002); }
[ "short getIndex();", "public int getIndex()\r\n/* 48: */ {\r\n/* 49:113 */ return this.index;\r\n/* 50: */ }", "@Override\n public int getIndex() {\n return 2;\n }", "@NonNegative int index();", "int getNumber(int index);", "public int getIndex() {\n return 0;\n }", ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Bind value of var2 to var1.
public IdBasedVarToVarExtendIterator(int var1, int var2, Iterator<SolutionMapping> input, ExecutionContext execCxt) { this.var1 = var1; this.var2 = var2; this.input = input; }
[ "public void setToVariable(String variable2)\n {\n model.setTo(variable2);\n }", "public void addInterference(String var1, String var2)\n\t{\n\t\tIntNode n1 = findNode(var1);\n\t\tIntNode n2 = findNode(var2);\n\n\t\tn1.addInterference(n2);\n\t\tn2.addInterference(n1);\n\t}", "abstract public void b...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets heuristic according to x and y (end point)
public void setHeuristic(int x, int y){ h = 10*(Math.abs(this.x - x) + Math.abs(this.y - y)); }
[ "public static double heuristic(int x, int y, int gx, int gy) { \r\n \r\n int manhattan = Math.abs(gx - x) + Math.abs(gy - y);\r\n if (heuristictype == 0) {\r\n return manhattan;\r\n }\r\n \r\n // ******* Your heurstic goes here *******\r\n else {\r\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
use repeated fields to represent mapping from BlockStoreLocationProto to TierList repeated .alluxio.grpc.block.LocationBlockIdListEntry currentBlocks = 8;
public java.util.List<alluxio.grpc.LocationBlockIdListEntry.Builder> getCurrentBlocksBuilderList() { return getCurrentBlocksFieldBuilder().getBuilderList(); }
[ "public List<BlockState> getBlocks() {\n/* 77 */ return this.blocks;\n/* */ }", "public List<OmKeyLocationInfo> getBlocksLatestVersionOnly() {\n return new ArrayList<>(locationVersionMap.get(version));\n }", "public java.util.List<? extends ds.hdfs.HdfsProto.FileInfoInNameNode.BlockOrBuilder> \n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test to check Delete() of randomly generated unique searched element between [100,100] with the randomly generated trees of size between 1 to 100 and containing integers between the range [100, 100]
@Property(tries=200) public void testDeleteUnique(@ForAll @Size(min = 1, max = 100)List<@IntRange(min = -100, max = 100) @Unique Integer> list, @ForAll @IntRange(min = -100, max = 100) @Unique Integer randomElementToSearch){ RedBlackBST<Integer, String> tree = new RedBlackBST<>();...
[ "@Test\r\n\t@Repeat(times=10)\r\n\tpublic void test_DELETE_fuzzer() throws IOException \r\n\t{\r\n\t\tjava.util.Random gen = new java.util.Random();\r\n\t\t\r\n\t\tLogger logFile = Tests.getUniqeLogger(\"test_DELETE_fuzzer\", true);\r\n\t\t\r\n\t\tfinal int INSERTION_COUNT = 5000;\r\n\t\t\r\n\t\tRedBTree<Integer,St...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
True if there is a nonsub at passed in coordinate
public boolean shipWillCollide(int x, char y, Ship ship) { for (int i = 0; i < ships.size(); i++) { // For all ships if(ship.isSubmerged() == true) return false; // if the ship is above water and ship we'd move into is not the same exact ship if(ships.get(i).kind.equals(ship.kind) == false) { List<...
[ "boolean hasSubcenter();", "boolean hasCoordinatesOperator();", "public boolean isEmptyAt(Coord c);", "private boolean validCoordinate(Coordinate c) {\n\t\treturn c.x>=0 && c.y>=0 && c.x<=Xlength && c.y<=Ylength;\n\t}", "private boolean isValidCoordinate(Coordinate coord) {\n\n int x = coord.getX();\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Increase the score for india by 6 runs.
public void addSixForIndia(View v) { runsIndia = runsIndia + 6; displayForIndia(runsIndia); }
[ "public void SixForChicago() {\n chicagoScore = chicagoScore + 6;\n displayChicagoScore(chicagoScore);\n\n\n }", "public void incrementScore() {\n\t\tint pointsPerTimeEaten = 10;\n\t\tint oldScore = frame.getScore();\n\t\t// new score will be the oldscore plus the points you attain each time the ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the group ID of the dependency.
public String getGropuId() { return gropuId; }
[ "public String getIdGroup() {\r\n\t\treturn this.idGroup;\r\n\t}", "public String getGroupId() {\n Object ref = groupId_;\n if (ref instanceof String) {\n return (String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method corresponds to the database table book_tag
int deleteByPrimaryKey(Integer id);
[ "List<BookTag> getTagsByBook( Book book );", "@Override\r\n\tpublic List<TblTag> getTblTagList() {\n\t\tString jpql = \"select tt from TblTag tt\";\r\n\t\tList<TblTag> tblTagList = em.createQuery(jpql).getResultList();\r\n\t\treturn tblTagList;\r\n\t}", "@Select({\n \"select\",\n \"TAG_ID, TAG_COD...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
updates the corresponding text area based on the selection of the ComboBox
public void updateRuleTextArea(TextField tf,ComboBox<String> cb) { tf.setText(cb.getSelectionModel().getSelectedItem()); String conditionChosen = cb.getSelectionModel().getSelectedItem(); switch (conditionChosen) { case RegularExpressionMaker.OR: tf.setText("OR"); tf.setEditable(fals...
[ "public void update()\n\t{\n\t\t{\n\t\t\tSet<Component> text_area_components = new HashSet<Component>();\n\t\t\t\n\t\t\tif(text_area == null)// FIXME: Why does this happen? InvokeLater?\n\t\t\t\treturn;\n\t\t\t\n\t\t\tfor(Component c : text_area.getComponents())\n\t\t\t\ttext_area_components.add(c);\n\t\t\t\n\t\t\t...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Moves the Hero left while the screen is scrolling.
public void moveLeftScroll() { posChange = -(speed * Gdx.graphics.getDeltaTime()); setXPos(getXPos() + posChange); gs.setWorldXPos(gs.getWorldXPos() + posChange); if (isFlipX() == false) { flip(true, false); } }
[ "public void scrollLeft() {\r\n\t\tif (nextScreen == INVALID_SCREEN && currentScreen > 0\r\n\t\t\t\t&& scroller.isFinished()) {\r\n\t\t\tscrollToScreen(currentScreen - 1);\r\n\t\t}\r\n\t}", "public void scrollLeft(){\r\n\t\tscroll(0);\r\n\t}", "protected void scrollLeft() {\r\n this.leftnotemargin = this.lef...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets hole file path.
public void setHoleFilePathFromMap(String pathToDir, TiledMap map, int index) { mHoleFilePath = pathToDir + map.getTileProperty(index, HOLE_FILE); }
[ "public void setFolder(File path) {\n this.path = path;\n }", "protected void setPath(String path) {\r\n\t\tthis.path = path;\r\n\t}", "protected void setPath(String path) {\n this.path = path;\n }", "public void set(File dir, String name) {\r\n ewefile.set(dir, STRreplace.replace(name, \"//\",...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Normal invoke with authentication. Credentials are required and may be overriden at the request level.
private <X, Y extends AmazonWebServiceRequest> Response<X> invoke(Request<Y> request, HttpResponseHandler<AmazonWebServiceResponse<X>> responseHandler, ExecutionContext executionContext) { return invoke(request, responseHandler, executionContext, null, null); }
[ "protected abstract RESTResult internalDoRequest(RequestMethod method,\n\t\t\tString urlString, Authenticator auth, byte[] payload,\n\t\t\tMap<String, String> headers) throws IOException;", "@Override\n public HttpResponse execute(HttpUriRequest request, HttpContext context) throws IOException, ClientProtocolE...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
a synset that is a shortest common ancestor of noun1 and noun2
public String sca(String noun1, String noun2) { // return the synset of the shortest common ancestor return synsetST.get( sca.ancestorSubset(nounST.get(noun1), nounST.get(noun2))); }
[ "public ShortestCommonAncestor(Digraph G) {\r\n this.G = G;\r\n }", "public Set<String> nouns() {\n String[] hold;\n Set<String> set = new HashSet();\n for (int i = 0; i < size; i++) {\n hold = map.get(i).split(\" \"); // split words in synsets.\n for (int j = 0;...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
SetVisibleRelevantComponents(boolean res) show/don't show relevant components in rate report center layer.
public void SetVisibleRelevantComponents(boolean res){ InvalidInsertedDateLabel.setVisible(false); RatesReportLabel.setVisible(res); RatesReportScroll.setVisible(res); RatesReportTable.setVisible(res); RatesReportExportButton.setVisible(res); UpdateRateButton.setVisible(res); UpdateSuccessMessageLa...
[ "private void conditionallyDisplayedComponents() {\n\t\tlblCheckConfiguration.setVisible(!isConfigurationChecked());\n\t}", "public void setShowControls(boolean sc) {\n etchedBorder2.setVisible(sc);\n invalidate();\n validate();\n }", "public void setExpertControlsVisible(boolean b) {\n\t\texpertContr...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Created by DELL on 2017/11/3.
public interface OnNetListener { void onSuccess(BaseBean baseBean); }
[ "@Override\n public void extornar() {\n \n }", "@Override\n }", "private static void EX5() {\n\t\t\r\n\t}", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public int utilite() {\n return 0;\n }", "@Override\r\n\tpublic void hablar() {...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the content service used for validation.
public void setContentService(I_ContentServiceAsync contentService) { m_contentService = contentService; }
[ "public void setContentService(ContentServiceJpa contentService) {\n this.contentService = contentService;\n }", "public void set(String content) {\n this.content = content;\n }", "public void setContentHolderService(\r\n com.arman.csb.theme.service.ContentHolderService contentHolderService...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the ip address for this machine
public String ipAddress(){ String ip = ""; try { return java.net.InetAddress.getLocalHost().getHostAddress(); } catch (Exception e){ return "error geting ip address"; } }
[ "public String getIpAddress() {\r\n\t\t\r\n\t\t//System.out.println(\"#######NET PEER INFO GETIPADDRESS###########\");\r\n\t\treturn ipAddress;\r\n\t}", "public String getIpAddress() {\n String ip = \"\";\n try {\n Enumeration<NetworkInterface> enumerationNetworkInterface =\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO: Implement this method
@Override public void handleMessage(Message msg) { switch (msg.what) { case beta_update_runtime.FINDER_IMAGE_1: //inderout1.setTextSize(15); //finderout1.setGravity(Gravity.CENTER); //finderout1.se...
[ "@Override\n }", "@Override\n public void extornar() {\n \n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\n\t\tprotected void swop() {\n\n\t\t}", "private static void EX5() {\n\t\t\r\n\t}"...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
ApplicationContext ctx = new ClassPathXmlApplicationContext("classpath:spring/springaware.xml");
@Test public void testMoocApplicationContext() { //System.out.println(ctx.hashCode()); }
[ "public interface SpringContextAware {\n void init4SpringContext(ApplicationContext webApplicationContext);\n}", "@Test\n public void injection8(){\n ClassPathXmlApplicationContext cpx = new ClassPathXmlApplicationContext(\"applicationContext.xml\");\n Customer customer = cpx.getBean(\"custome...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
The reference nonce used for the transaction string reference_nonce = 3 [json_name = "referenceNonce"];
public Builder clearReferenceNonce() { referenceNonce_ = getDefaultInstance().getReferenceNonce(); onChanged(); return this; }
[ "public java.lang.CharSequence getNonce() {\n return nonce;\n }", "public byte[] getNonce() {\n return nonce;\n }", "@Override\n\tpublic int getNonce() {\n return nonce_;\n }", "@java.lang.Override\n public java.lang.String getCnonce() {\n return instance.getCnonce();...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
public static void main(String[] args) { int n0, n1, n2, n3, n4, n5, n6 ,n7, n8, n9, sum; //Initializing integers to be input by user float average; //Average may be decimal so must be float not int Scanner keyboard = new Scanner (System.in); //Scanner is used but with delimiter of "," k...
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the value of the passthruEnabled property.
public boolean isPassthruEnabled() { return passthruEnabled; }
[ "public boolean getPassiveAuth() {\n return passiveAuth;\n }", "public boolean streamingStdinEnabled() {\n return this.streamingStdin;\n }", "boolean getPvpEnabled();", "public boolean streamingStdoutEnabled() {\n return this.streamingStdout;\n }", "public boolean isPermissive(...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Unlocks the datasets connected to the specified experiments.
public ArchivingResult unlockDatasets( DisplayedCriteriaOrSelectedEntityHolder<TableModelRowWithObject<Experiment>> criteria) throws UserFailureException;
[ "public void stopExperiment() {\n\t\tsul.stop();\n\t}", "@PutMapping(value = Endpoints.UNLOCK_ALL_REPOSITORIES)\n @PreAuthorize(\"hasRole('INSTRUCTOR')\")\n public ResponseEntity<Void> unlockAllRepositories(@PathVariable Long exerciseId) {\n log.info(\"REST request to unlock all repositories of progr...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ access modifiers changed from: private
public void clearWalletId() { this.walletId_ = getDefaultInstance().getWalletId(); }
[ "@Override\n }", "protected void method_5557() {}", "@Override\n public void extornar() {\n \n }", "@Override\r\n public void publicando() {\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "private InternalReflect() {\n\t\t\t// do nothing\n\t\t}", ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
tabs selects the A tab
public void selectTabA() { hideAllMenus(); tm.setIsA(true); tabB.getStyleClass().removeIf(s -> (s == "selectedRightTabButton")); tabB.setStyle("-fx-background-color:" + bg3); tabA.getStyleClass().add("selectedLeftTabButton"); tabA.setStyle("-fx-background-color:" + bg1); ...
[ "public void selectTab();", "void selectTab( String tab );", "public void doTabs()\n { \t\n \ttabSimpleBlocks = new SimpleTab(\"tabSimpleBlocks\"); \t\n \t \n \tif(Settings.enableSeparateTabs)\n \t{\n \ttabSimpleDecorations = new SimpleTab(\"tabSimpleDecorations\");\n \ttabSimpleTools = new Si...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
repeated .Cache_service.AreaMapVersionLine area_map_version_line = 1; repeated .Cache_service.AreaMapVersionLine area_map_version_line = 1;
java.util.List<Cache_service.CacheMessage.AreaMapVersionLine> getAreaMapVersionLineList();
[ "@Override\n public void onStyleLoaded(@NonNull Style style) {\n Log.d(TAG, \"onStyleLoaded\");\n //1.\n mapboxMap.moveCamera(CameraUpdateFactory.zoomTo(2));\n\n //2.LineManager\n li...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public void readAdditionCosts() { }
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
ID einer Transaktion .dstore.values.IntegerValue transaction_id = 10009;
public Builder setTransactionId( io.dstore.values.IntegerValue.Builder builderForValue) { if (transactionIdBuilder_ == null) { transactionId_ = builderForValue.build(); onChanged(); } else { transactionIdBuilder_.setMessage(builderForValue.build()); ...
[ "public int getM_Transfer_ID() \n{\nInteger ii = (Integer)get_Value(\"M_Transfer_ID\");\nif (ii == null) return 0;\nreturn ii.intValue();\n}", "io.dstore.values.IntegerValue getTimeUnitId();", "int getPurchaseId();", "io.dstore.values.StringValue getOrderContentNo();", "public int getC_OutgoingTransfer_DT_I...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override protected void onResume() { super.onResume(); }
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ This is a helper method to getCountByTreeSpecies and is responsible for finding the species in the binary search tree and counting how many times they occur
private int speciesCounter(BSTNode<Tree> root,String target, int counter){ // if the root is null, return the counter if (root==null){ return counter; } // if the target is found, increment the counter and explore further nodes if(target.compareTo(root.getData().getSpc().toLowerCase())==0){ counter++; ...
[ "public int getCountByTreeSpecies(String speciesName) {\n\t\tArrayList<String> matching = (ArrayList<String>) getMatchingSpecies(speciesName);\n\t\tint counter = 0;\n\t\tfor (String species : matching){\n\t\t\tint newCount = countTreeSpeciesHelper(root, species);\n\t\t\tcounter += newCount;\n\t\t}\n\t\treturn count...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method returns the value of the database column pataPerro.tm_negocio.estado
public Integer getEstado() { return estado; }
[ "public String getestado() {\n return estado;\n }", "public String getTipoEstado() {\n return tipoEstado;\n }", "public int getAgenciaNro() {\n return agenciaNro;\n }", "public String getSTipologia() { return (String) get(CdcCanaleVenditaTable.Column.s_tipologia); }", "TipoEsta...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the number of slices in this ndarray
long slices();
[ "public int getNumberOfSlices() {\n\t\treturn slices.size();\n\t}", "public int numberDimensions();", "public int getNumberOfSubComponents() {\n return ds.length;\n }", "public int count() {\n\t\treturn array.length;\n\t}", "public int nDim() {\n\t\treturn (BOUNDS.length);\n\t}", "public...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get first project fro study
public static String getFirstProjectForStudy(String studyUID) throws Exception { Project project = projectOperations.getFirstProjectForStudy(studyUID); if (project != null) return project.getProjectId(); else return EPADConfig.xnatUploadProjectID; }
[ "private Project getSelectedProject() {\n Optional<String> selectedValue = projectName.getSelectedValue();\n if (selectedValue.isPresent()) {\n long projectId = Long.parseLong(selectedValue.get());\n Optional<Project> project = repository.findProjects().stream()\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Roll the dice by setting each of the dice to be a random number between 1 and 6.
public void roll() { die1 = (int)(Math.random()*6) + 1; die2 = (int)(Math.random()*6) + 1; roll = die1+die2; //System.out.println("Dice1: " + die1); //System.out.println("Dice2: " + die2); //System.out.println("Total: " + total); }
[ "public void rollDice(){\n\t\t\n\t\t// what algo should we use?\n\t\t// Us Math.random\n\t\t\n\t\tdie1 = (int) (Math.random()*6 + 1);\n\t\tdie2 = (int) (Math.random()*6 + 1);\n\t}", "public void roll(){\n\t\t\t//BUG: need to add + 1 to random number to get number between 1 and 6. \n\t\t\t//this will produce resul...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method sets the value of the database column archive.company_id
public void setCompanyId(Integer companyId) { this.companyId = companyId; }
[ "public void setCompanyID(int companyID)\n {\n this.companyID = companyID;\n }", "public void setCompanyid(Integer companyid) {\r\n this.companyid = companyid;\r\n }", "public void setCompany(int company) {\n\t\tthis.company = company;\n\t}", "public void setCompanyId(long companyId) {\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ JADX WARNING: inconsistent code. / Code decompiled incorrectly, please refer to instructions dump. / renamed from: i
private final com.tinder.domain.feed.ProfileChangeWork m37015i(java.lang.String r9) { /* r8 = this; r0 = com.tinder.data.message.activityfeed.model.bv.m37063a(); r9 = r0.m37229a(r9); r0 = r8.f30563a; r1 = r9.f22514a; r9 = r9.f22515b; r2 = r9.length; ...
[ "protected void mo4791d() {\n }", "static void method_921() {\r\n // $FF: Couldn't be decompiled\r\n }", "static void method_571() {\r\n // $FF: Couldn't be decompiled\r\n }", "public String method_8412() {\r\n // $FF: Couldn't be decompiled\r\n }", "static void method_5455() {\r\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Register the app, by calling publisher server url with app public key
@RequiresApi(api = Build.VERSION_CODES.JELLY_BEAN_MR2) static void registerAPP(){ new Thread(new Runnable() { @Override public void run() { DataChain dataChain = DataChain.getInstance(); if(dataChain.getPublisherUrl()!=null){ Share...
[ "public static native void setPublisher(String publisher) /*-{\n\t\tTitanium.App.publisher = publisher;\n\t}-*/;", "void installApplication(Space space, String appId) throws SpaceException;", "public static String applicationKeySiteOD(){return \"xxxxxxxxxxxxxxxxxxxxx\";}", "@Override\n public OAuthApplicat...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
I assume it is more efficient to store these once than to pass them down a recursive routine.
public FitsHeights(TreeInterface sTree, List<Tree> gTrees, Bindings bindings) { this.bindings = bindings; this.sTree = sTree; this.gTrees = gTrees; initHeightArray(sTree, gTrees); }
[ "void prepareToMatch(){\n for (Map.Entry little: littlesPreferences.entrySet()) {\n freeLittles.add(little.getKey().toString());\n }\n for (Map.Entry big: bigsPreferences.entrySet()) {\n freeBigs.add(big.getKey().toString());\n }\n }", "private void recursiveHe...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
A group of data elements which together identify an entity which is associated with the publishing of a content item, included here to allow roles such as Funder, Sponsor to be associated with a specific content item rather than the product as a whole. The composite allows additional publishing roles to be introduced w...
public ListOfOnixComposite<Publisher> publishers() { _initialize(); return publishers; }
[ "private void parseCompositeContent(Element element, CompositeDeclaration declaration) {\n \n \t\t/*\n \t\t * Look for content management specification\n \t\t */\n \t\tElement contents[] = optional(element.getElements(CoreMetadataParser.CONTENT, CoreMetadataParser.APAM));\n \n \t\tif (contents.length > 1)\n \t\t\te...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
public void visit(IContainerAggregation aContainerAggregation) { }
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Accesseur de la liste de carreaux
public ArrayList<Carreau> getListeCarreaux() { return listeCarr; }
[ "private void listar() {\n \t\tlistaCategoria = _categoriaService.getAll();\n \t\tlbx_categoria.setModel(new ListModelList<Categoria>(listaCategoria));\n\t}", "public void listar(){\n\t\tfor(Emisor c: lista){\n\t\t\tSystem.out.println(c.getNombre());\n\t\t}\n\t}", "public void consultarListas() {\n\n\t}", ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
BookListPresenter listPresenter = new BookListPresenter(BookListFragment.this); listPresenter.GetNetWork();
@Override protected void initData() { BookListAdapter bookListAdapter = new BookListAdapter(bookList, context); viewPager.setAdapter(new BookListAdapter(bookList, context)); //blurViewPager.setAdapter(new BlurViewPagerAdapter(bookList,context)); }
[ "public interface ListingPresenter extends BasePresenter {\r\n\r\n // functions exposed to ListingFragment\r\n interface View {\r\n void onProductListingLoading();\r\n\r\n void onProductListingLoaded(ProductListingResponse listingResponse);\r\n\r\n void onProductListingFailed();\r\n }\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
methode qui diminue le point de vie d'un bateau quand il est touche
public void estTouche() { this.pv-=1; }
[ "@Override\r\n\tpublic void PossederBiens() {\n\t\t\r\n\t}", "public void perdreBombe(){\n\t\tnb_bombes -= 1;\n\t}", "public void arret(){\n\t\tif(b.sens == \"droite\"){\n\t\t\tthis.numImg=7;\n\t\t}\n\t\tif(b.sens == \"gauche\"){\n\t\t\tthis.numImg=6;\n\t\t}\n\t\tfaitBobo =false;\n\t\tcoordDuBobox1=posx;\n\t\tc...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
An API for feature builders
public interface FeatureBuilder { /// Calculate String Features from a List of Word/ Pos / Lemmas (not all information neede) public void extractFeatures(final Instance instance, FeatureVector[] fv); public void setUseLemma(boolean useLemaFeature); public int tagfile(String inputFile, String outputFile, String en...
[ "MyFeature createMyFeature();", "private FeatureBuilder() {\r\n\t}", "@Override\n\tpublic void generateFeatures() {\n\t\tsuper.generateFeatures();\n\t}", "public Feature build() {\n\t\t\treturn new Feature(this);\n\t\t}", "public Feature(String name, FeatureType type) {\n/* 36 */ this.name = name;\n/* 3...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
check if the player is on the ground. if he is, return true
public boolean collisionGravity(int value) { boolean solid = false; if (Game.level.getTile((x+0)/Tile.SIZE, (y+value+Player.SIZE)/Tile.SIZE, Level.whichLevel).solid()) { solid = true;} if (Game.level.getTile((x+Player.SIZE-1)/Tile.SIZE, (y+value+Player.SIZE)/Tile.SIZE, Level.whichLevel).solid()) { solid = t...
[ "protected void checkInGround() \n\t{\n\t\tBlock block = worldObj.getBlock(xTile, yTile, zTile);\n\t\n\t\tif (block.getMaterial() != Material.air) \n\t\t{\n\t\t\tblock.setBlockBoundsBasedOnState(worldObj, xTile, yTile, zTile);\n\t\t\tAxisAlignedBB axisalignedbb = block.getCollisionBoundingBoxFromPool(worldObj, xTil...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the navigation drawer item that corresponds to this Activity. Subclasses of BaseActivity override this to indicate what nav drawer item corresponds to them Return NAVDRAWER_ITEM_INVALID to mean that this Activity should not have a Nav Drawer.
protected int getSelfNavDrawerItem() { return NAVDRAWER_ITEM_INVALID; }
[ "public int getPositionFromIdentifier(IDrawerItem drawerItem) {\n return getPositionFromIdentifier(drawerItem.getIdentifier());\n }", "@Override\r\n\tpublic Object getItem(int position) {\n\t\treturn drawerItems.get(position);\r\n\t}", "@Override\n public int getCurrentNavDrawerPosition() {...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
True if current field is assigned, otherwise false
boolean isAssigned();
[ "boolean checkIfAssigned();", "public boolean isAssigned()\n {\n return isAssigned;\n }", "public boolean isSetSetField() {\n return this.setField != null;\n }", "boolean isSetAssigner();", "public boolean isAvaliable() {\n\t\treturn assigned; // returns false if assigned = true\n\t}", "p...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
end of method startHourlyTask
public void setFixtureOutageDetectWatts(int watts) { FIXTURE_OUTAGE_DETECT_WATTS = watts; }
[ "@Override\r\n\tvoid executeTask() {\r\n\t\ttry {\r\n\t\t\tThread.sleep(1000);\r\n\t\t} catch (InterruptedException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tminutes++;\r\n\t\tcalendar.set(Calendar.HOUR,minutes/60);\r\n\t\tcalendar.set(Calendar.MINUTE,minutes%60);\r\n\t\tSystem.out.println(\"Tiempo->\" + c...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Set knight health to an int parameter
public void sethealth(int health) { this.health = health; }
[ "public void setHealth(double health);", "public void setHealth(int health) {\n\t this.health = health;\n\t}", "void setHp(int newHp);", "public void setHealthCap(double newHealthCap);", "public void setHealth(String health);", "public void setHealth(int h)\n {\n if(h > MAX_HIT_POINTS)\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Partofspeech tag a string, filter to adjectives Partofspeech (POS) tag a string, find the adjectives, and return result as JSON
@Test public void posTaggerTagAdjectivesTest() throws Exception { PosRequest request = null; PosResponse response = api.posTaggerTagAdjectives(request); // TODO: test validations }
[ "@Test\n public void testParaphrase() {\n try (Client client = new Client(getDefaultCreds(), Configuration.INSTANCE.getParaphraseApiUrl())) {\n ParaphraseRequest req = new ParaphraseRequest();\n req.setText(\"testing query\", \"text/query\", StandardCharsets.UTF_8);\n req.setRequestId(\"testing-s...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the isHidden value for this ManagedCustomerLink.
public java.lang.Boolean getIsHidden() { return isHidden; }
[ "public boolean getHidden() {\r\n\t\t// hidden is optional so can be null. Therefore need\r\n\t\t// to handle specially\r\n\t\treturn hidden!=null ? hidden : false;\r\n\t}", "public boolean isHidden() {\n \t\treturn isHidden;\n \t}", "@Schema(description = \"Whether this field should be hidden from the user int...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public int delete(Integer id) { Bts_test bt = new Bts_test(); bt.setId(id); int rows = getSqlMapClientTemplate().delete("BTS_TEST.ibatorgenerated_delete", bt); return rows; }
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the attribute value for ExportLcNo, using the alias name ExportLcNo.
public String getExportLcNo() { return (String)getAttributeInternal(EXPORTLCNO); }
[ "public String getRefno() {\r\n return (String) getAttributeInternal(REFNO);\r\n }", "public String getSIdExport() { return (String) get(CdcCanaleVenditaTable.Column.s_id_export); }", "public static long getValue(MBeanServerConnection msc, ObjectName o, String n) throws MBeanException {\n\t\tObject v;...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ renamed from: a
public C0893a mo6657a(ViewGroup parent) { return (C0893a) this.f2644d.inflate(this.f2648h, parent, false); }
[ "public interface C3511a {\n /* renamed from: a */\n void mo29057a(int i);\n }", "interface C4511c {\n /* renamed from: a */\n void mo29775a();\n }", "public interface ans {\n /* renamed from: a */\n void mo1174a();\n}", "public interface C24712af {\n /* renamed from...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
sets the speed to 0.0
public static void stopSpeed() { setSpeed(0); }
[ "public void stopSpeed() {\n\t\tthis.currentspeed = 0;\n\t}", "public void normalSpeed() {\n\t\ts.setSpeed(\"400\");\n\t}", "public void resetMotorSpeed() {\r\n\t\tleftMotor.setSpeed(setSpeedValue(1.0f));\r\n\t\trightMotor.setSpeed(setSpeedValue(1.0f));\r\n\t}", "public Builder clearSpeed() {\n \n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Constructor with model and central feedback panel at choice. If addCentralFeedBack == true, markup should contain this: &lt;p wicket:id=&quot;defaultFeedbackPanel&quot;&gt;Messages&lt;/p&gt;
public AbstractCommonStatelessForm(final String wicketId, final IModel model, boolean addCentralFeedBack) { super(wicketId, model, addCentralFeedBack); }
[ "@Override\n protected void onBeforeRender() {\n super.onBeforeRender();\n this.setDefaultModel(null);\n\n if(component.hasFeedbackMessage()){\n if(this.text!=null){\n this.setDefaultModel(text);\n } else {\n this.setDefaultModel(new Model(...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates a handler to manage updates for a course.
public AbstractUpdateHandler(CourseConfiguration courseConfig) { this(courseConfig, createProtocol(courseConfig)); if (courseConfig.isInitRepositoryIfNotExists()) { try { LOGGER.debug("Initialize repository if it does not exist at {}.", courseConfig.getRepositoryPath...
[ "@Override\n public void OnUpdate(Course course) {\n Bundle bundle = new Bundle();\n bundle.putParcelable(\"course\", course);\n bundle.putBoolean(\"addEdit\", false);\n Navigation.findNavController(requireView()).navigate(R.id.addEditCourse, bundle);\n }", "@Override\n\tpublic v...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
compares Path in every different case.
public boolean comparePath(Path p, int threshold) { if (threshold == 0 || (this.getNumEdges() <= threshold && p.getNumEdges() <= threshold) || this.getNumEdges() == p.getNumEdges()) { return this.getDistance() < p.getDistance(); } return this.getNumEd...
[ "public static boolean isSamePath(Path p1, Path p2) {\n return p1.toAbsolutePath().equals(p2.toAbsolutePath());\n }", "@Override\r\n public int compareTo(Path other) {\r\n return pathname.compareTo(other.pathname);\r\n }", "@Test\n public void testPath(){\n Assert.assertEquals(1...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Realiza el chequeo del filtro de visitas devolviendo el informe generado por los siguientes metodos privados: getMutualFriends: Devolvera una lista con los primeros diez contactos con los que mas contactos compartimos en Facebook. getNotMutualFriends: Devolvera una lista con los primeros diez contactos con los que meno...
public String checkVisitFilter(boolean firstCheck, Date lastCheck) throws JSONException, ParseException{ logger.info(this.snsObject.getUserSettingsDaoManager().getUserSettingsDAO().getUid() + " - checkVisitFilter: Inicio checkVisitFilter..."); this.titleOptions = this.snsObject.getStringUtilities().stri...
[ "@Override\n public void onCompleted(List<UserData> result, int count, Exception exception, ServiceFilterResponse response) {\n for (UserData member : result){\n System.out.println(member.getId());\n if(!member.getId().equals(Profile.getCurrentProfile(...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "T" $ANTLR start "K_ORDER"
public final void mK_ORDER() throws RecognitionException { try { int _type = K_ORDER; int _channel = DEFAULT_TOKEN_CHANNEL; // Lexer.g:118:8: ( O R D E R ) // Lexer.g:118:16: O R D E R { mO(); if (state.failed) return; ...
[ "public final void mK_ORDER() throws RecognitionException {\n try {\n int _type = K_ORDER;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // /home/xuchen/Dropbox/d-workspace/cassandra-trunk/src/java/org/apache/cassandra/cql3/Cql.g:941:8: ( O R D E R )\n // /home/xuchen/...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }