query
stringlengths
8
1.54M
document
stringlengths
9
312k
negatives
listlengths
19
20
metadata
dict
This method was generated by MyBatis Generator. This method corresponds to the database table dept_users
int updateByPrimaryKeySelective(DeptUsers record);
[ "public List<UserDepartment> findUsersByDepartment(String searchDepartment) {\n List <UserDepartment> usersInDepartment = new ArrayList<>();\n try {\n TypedQuery<UserDepartment> sqlQuery = entityManager.createQuery(\"SELECT elem FROM UserDepartment elem WHERE elem.department=:department\", ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Mencari index karakter a pada array of karakter daftarKarakter
private int getIndexOf(char [] daftarKarakter, char a) { int result = -1; for(int i = 0; i < daftarKarakter.length; i++) { if(daftarKarakter[i] == a) { result = i; } } return result; }
[ "public void taytaKentat(Tapahtuma t) {\n int indeksi = -1;\n for (int i = 0; i < this.kategoria.length; i++) {\n if (this.kategoria[i].equals(t.haeLuokittelu())) {\n indeksi = i;\n }\n }\n this.uusitapahtuma_kategoria.setSelectedIndex(indeksi);\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
"a", "b", "c", "d", "e" add("X", 1); "a", "X", "b", "c", "d", e"
public void add(T element, int index) { }
[ "private void add(String string) {\n\t\t\n\t}", "public void add(String toAdd);", "long add(String value);", "private String add(String[] input) throws TooManyRegistersException {\n String[] comma = input[1].split(\",\");\n addRegister(comma[0]);\n addRegister(comma[1]);\n addRegis...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Created by thehaohcm on 7/28/17.
public interface IPolylineFetchUrl { public void setPolyline(Polyline polyline); public Polyline getPolyline(); public void clearPolyline(); }
[ "@Override\n public void extornar() {\n \n }", "private static void EX5() {\n\t\t\r\n\t}", "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "public void mo28221a() {\n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "protected...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Moves a message from this folder into a another, given folder. This means adding the message to the destination folder, and removing the message from this folder.
public void moveMessage(Email email, Folder folder) throws PostException { folder.addMessage(email); removeMessage(email); }
[ "Future<?> moveMessagesToJunk(String sourceFolderId, Collection<String> messageIds, String targetFolderId,\n\t\t\t\t\t\t\t\t boolean delete);", "@Override\n public OneDriveFolder move(OneDrive destination) {\n MoveAction action = new MoveAction(api, getAddress(), null,\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ removeMax removes the maximum node from the tree and readjusts the maximum to one of the siblings temporarily.
TreeNode removeMax() { TreeNode max = maximum; if (max == null) { return null; } else if (max.left == max) { maximum = null; } else { max.right.left = max.left; max.left.right = max.right; maximum = max.right; } TreeNode child = max.child; adjustChildren(child); nodeCount--; return...
[ "public FibNode removeMax(){\n if(maximum == null)\n return null;\n //set the max node to be removed to null\n if(maximum.hasChildren()){\n // Traverse through the child level and set all child's parent to null\n FibNode childOfMax = maximum.child;\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
get item count equal to number of tabs
@Override public int getCount() { return 2; }
[ "@Override\n public int getTabCount(int count) {\n log(\"getTabCount\");\n return count;\n }", "public int getTabCount()\r\n \t{\r\n \t\treturn mTotalChildren;\r\n \t}", "@Override\n public int getTabCount() {\n return tabCount;\n }", "public int getNumOfItems();", "@Test\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
method for determining the full size of the list
@Override public int getItemCount() { return blockedUsers.size(); }
[ "public int getSize(){\n return sizeOfList; \r\n }", "public int size( ) { return list.size( ); }", "public int getSize() {\r\n\treturn list.size();\r\n }", "@Override\n public int getFullListSize() {\n return this.fullListSize;\n }", "public int getFullListSize() {\n\t\tret...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Create and show a non_availability screen (An image, a retry button_theme_selector and a text message) with complete controls of the views
public NonAvailabilityHolder(Context context, View view) { root = new LinearLayout(context); root.setLayoutParams(new RelativeLayout.LayoutParams(RelativeLayout.LayoutParams.MATCH_PARENT, RelativeLayout.LayoutParams.MATCH_PARENT)); root = (LinearLayout) LayoutInflater.from(context).inflate(R.la...
[ "private void noResultView(){\n mLytRetry.setVisibility(View.GONE);\n mUltimateRecyclerView.setVisibility(View.GONE);\n mLblNoResult.setVisibility(View.VISIBLE);\n\n }", "private void setupUI() {\n switch (state) {\n case COMPLETE:\n default:\n note.setVisib...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Called when the activity is first created.
@Override public void onCreate(Bundle savedInstanceState) { try { super.onCreate(savedInstanceState); setContentView(R.layout.main); mRecorder = new MediaRecorder(); txtSender = (EditText) findViewById(R.id.txtSender); txtReceiver = (EditText) findViewById(R.id.txtReceiver); // for dgb...
[ "protected void onCreate() {}", "@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\t\t\n\t\tinitData();\n\t\n\t}", "@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\t\tULog.i(this, \"onCreate() \");\n\t\tinitData();\n\t}", "@Override\n public void onCreate () {\n super.onC...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Create guide cell that would help us to build maze. Guide cell need to be next to the Exit.
private void createGuideCell() { int guideCellX = exit.getX(), guideCellY = exit.getY(); if (exit.getX() == 0) { guideCellX += 1; } else if (exit.getX() == mazeSize - 1) { guideCellX -= 1; } else if (exit.getY() == 0) { guideCellY += 1; } else ...
[ "public char[][] build(Position exit) {\n\t\t\t\t\n\t\tthis.initBoard();\n\t\tthis.initVisitedCells();\n\t\tthis.initExit(exit);\n\t\tthis.initGuideCell();\n\t\t\n\t\tRandom random = new Random();\n\t\tArrayList<Direction> possibleMoves;\n\t\t\n\t\tdo {\n\t\t\n\t\t\tpossibleMoves = this.getPossibleMoves();\n\t\t\t\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Internal implementation, normal users should not use it.
public void toMap(HashMap<String, String> map, String prefix) { this.setParamObj(map, prefix + "DatabaseTable.", this.DatabaseTable); this.setParamSimple(map, prefix + "MigrateType", this.MigrateType); this.setParamObj(map, prefix + "Consistency.", this.Consistency); this.setParamSimple(...
[ "@Override\n }", "@Override\n public void extornar() {\n \n }", "protected void method_5557() {}", "@Override\n\t\tprotected void swop() {\n\n\t\t}", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "protected void mo4791d() {\n }", "protected SameIndivType...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the tipo servicio of this jornada.
@Override public void setTipoServicio(long tipoServicio) { _jornada.setTipoServicio(tipoServicio); }
[ "void setTipo(java.lang.String tipo);", "public void setTipo(Mototipo tipo) {\n\t\tthis.tipo = tipo;\n\t}", "public void setTipo(String tipo){\n this.tipo = tipo;\n }", "public void setTipo(String t){\n this.tipo = t;\n }", "public void setTipo(String tipo) {\n this.tipoFatt = tip...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This operation causes the ObjectId specified in the oid parameter to be deactivated. An ObjectId which has been deactivated continues to process requests until there are no active requests for that ObjectId. A deactivated ObjectId is removed from the Active Object Map when all requests executing for that ObjectId have ...
void deactivate_object(byte[] oid) throws org.omg.PortableServer.POAPackage.ObjectNotActive, org.omg.PortableServer.POAPackage.WrongPolicy;
[ "protected void deregister(Object oid) {\n if (oid != null) {\n //deregister the instance from all the caches\n Object o = _weakCache.remove(oid);\n\n // No need to do anything outside an active transaction.\n if (pm.currentTransaction().isActive()) {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns true if field success is set (has been assigned a value) and false otherwise
public boolean isSetSuccess() { return this.success != null; }
[ "public boolean hasSuccessValue() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "public boolean hasSuccessValue() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "public boolean isSetSuccess() {\n return __isset_bit_vector.get(__SUCCESS_ISSET_ID);\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Adds a new image source to the queue and starts a new loader thread if required
public static void addImageSource(DecodingImageSource imgSrc) { ImageLoadersStorage storage = ImageLoadersStorage.getStorage(); synchronized(storage.queue) { if (!storage.queue.contains(imgSrc)) { storage.queue.add(imgSrc); } if (storage.freeLoad...
[ "synchronized void add(Label imgLabel,String imageUrl) {\n if (started) {\n throw new IllegalStateException(\"ImageThreadQueue alreadey started! stop/cancel first\");\n }\n int index=urls.indexOf(imageUrl);\n if (index!=-1) {\n ImageThread t=(ImageThread)queue.eleme...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test a cohort with more first year than second year
@Test public void testCohortWithMoreFirstYears() { Cohort cohort = new Cohort(); CorpsMember cm1y1 = createCm(1001, CriteriaScoringUtils.CURRENTCORPYEAR, cohort); CorpsMember cm2y1 = createCm(1002, CriteriaScoringUtils.CURRENTCORPYEAR, cohort); CorpsMember cm3y1 = createCm(1003, CriteriaScoringUtils.CURREN...
[ "@Test\n public void testGetNextYearUsesSameContributionInCalculations() {\n SavingsYear previousYear = new SavingsYear(40, 1000, 100, 0);\n SavingsYear testYear = previousYear.getNextYear();\n assertEquals(1200, testYear.getEndBalance());\n }", "@Test\n public void testNumYears() {\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Provides access to Bucket entities via their REST API.
@SkipEncoding({ '/', '=' }) @RequestFilters(OAuthFilter.class) @Consumes(APPLICATION_JSON) public interface BucketApi { /** * Check the existence of a bucket * * @param bucketName * Name of the bucket * * @return a {@link Bucket} true if bucket exist */ @Named("Bucket:get") ...
[ "@Named(\"BucketAccessControls:get\")\n @GET\n @Path(\"/b/{bucket}/acl/{entity}\")\n @Fallback(NullOnNotFoundOr404.class)\n @Nullable\n BucketAccessControls getBucketAccessControls(@PathParam(\"bucket\") String bucketName,\n @PathParam(\"entity\") String entity);", "String getBucket();", "@...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the access information pattern used to created the instance access information using the output parameters of the created stack.
public String getAccessInfoPattern() { return getValidatedProperty(settings.getParameters(), ACCESS_INFO_PATTERN); }
[ "AccessExp createAccessExp();", "AccessStatement createAccessStatement();", "public java.lang.String getAccessInterface(){\r\n return localAccessInterface;\r\n }", "protected AccessLogElement createAccessLogElement(String name, char pattern) {\r\n\t\tsw...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Tests the translation of inner join operators nested within subqueries.
public void testNestedJoin() throws Exception { checkTranslation("TestPlanToAstTranslator-testNestedJoin"); }
[ "@Override\r\n\tpublic void visit(InnerJoin node) {\n\t\t\r\n\t}", "@Test\n public void innerJoin() {\n List<Member> result = queryFactory\n .selectFrom(member)\n /* inner join == join */\n .innerJoin(member.team, team)\n .where(team.name.eq(\"...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Finds the point which will maximize the area of a triangle defined by a,b, and a point in the list.
public static Point2D_F64 maximizeArea( Point2D_F64 a , Point2D_F64 b , List<Point2D_F64> list ) { double max = 0; Point2D_F64 maxPoint = null; for( Point2D_F64 c : list ) { double area = area(a,b,c); if( area > max ) { max = area; maxPoint = c; } } return maxPoint; }
[ "public static Double2D getAreaMaxPt(Area inArea)\r\n\t{\r\n\t\tdouble xMax = -1;\r\n\t\tdouble yMax = -1;\r\n\t\tdouble maxTotal = 0;\r\n\t\tdouble[] results = new double[6];\r\n\t\tint retVal;\r\n\t\t\r\n\t\tPathIterator tempIterator = inArea.getPathIterator(null);\r\n\t\t\r\n\t\twhile (!tempIterator.isDone())\r\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public String toString() { return "Degree = " + this.degree + ", ID = " + this.id + ", Lab = " + this.lab; }
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO? if null then set to the descriptors gridGeom??
@Override public NCTimeSeriesDescriptor getDescriptor() { if (super.getDescriptor() instanceof NCTimeSeriesDescriptor) { return (NCTimeSeriesDescriptor) super.getDescriptor(); } else { super.getDescriptor(); } return null; }
[ "public void setGrid() {\n\n\t\tIRasterDataSource dsetCopy = null;\n\t\tdsetCopy = rasterSE.getDataSource().newDataset();\n\t\tBufferFactory bufferFactory = new BufferFactory(dsetCopy);\n\t\tif (!RasterBuffer.loadInMemory(dsetCopy))\n\t\t\tbufferFactory.setReadOnly(true);\n\t\ttry {\n\t\t\tbufferFactory.setAllDrawa...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Setter for property participantCount.
public void setparticipantCount(int participantCount) { this.participantCount = participantCount; }
[ "public static void setParticipantCount(Integer participantCount) {\n }", "public Integer getNumOfParticipants() {\n return numOfParticipants;\n }", "public int getParticipantsCount() {\n return participants_.size();\n }", "public void setCount(int value){\n this.count = value;...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Disposes of this frame and starts a new studentLogin frame.
public void newStudent() { dispose(); System.out.println("Properly disposed"); new StudentLogin("Main Window", gui); }
[ "public Run() {\n\t\tJFrame frame = new Login();\n\t\tframe.setDefaultCloseOperation(EXIT_ON_CLOSE);\n\t}", "public void launchLoginFrame() {\r\n JFrame frame = new JFrame(\"Corona Connect\");\r\n Container content = frame.getContentPane();\r\n content.setLayout(new BorderLayout());\r\n\r\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Last order where the item in appeared
public ItemOrder findLastOrderForItem(long itemId) { List<ItemOrder> itemOrders = findOrdersForItem(itemId); if (itemOrders.size() == 0) return null; else if (itemOrders.size() == 1) return itemOrders.get(0); else { //itemOrders.sort(new ItemOrder.SortAllOrders()); ...
[ "public Order getLatestOrderAdded() {\n int index = getSize() - Constants.ARRAY_OFFSET;\n return getOrder(index);\n }", "public int getLastOrderNumber() ;", "public long getLastOrderSeq(){\r\n return localLastOrderSeq;\r\n }", "public i...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Function To get row count and print data in rows
public int getRowCount(By locator) throws Throwable { WebElement table = driver.findElement(locator); List<WebElement> rows = table.findElements(By.tagName("tr")); // System.out.println(rows.size()-1); int a = rows.size() - 1; System.out.println("tr count is" + a); for (WebElement row : rows) { ...
[ "public int getNumRows ();", "public int getNumRows() {\r\n\t\t\r\n\t}", "public static int rowsCount()\r\n\t{\r\n\t\treturn _count;\r\n\t}", "public int getRowNumEntries (int position);", "public int getRowCount()\n {\n return data.length;\n }", "public int getRowCount()\r\n/* 31: */ {...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Business rule: only the contact person for this nonprofit organization can submit an auction request. is handled by UI
@Test public void testMaximumOneFutureAuctionOneFutureAuction() { GregorianCalendar fuctureAuction = (GregorianCalendar)GregorianCalendar.getInstance(); fuctureAuction.add(GregorianCalendar.DAY_OF_YEAR, 12); Auction tesAuction = new Auction(fuctureAuction, "testAuctions"); Item testItem = new Item("1", "t...
[ "private boolean isActionRequired(Exchange myExchange) {\n\n boolean isOwner = (Client.userId == myExchange.loaner_id);\n\n\n if (myExchange.status == Exchange.Status.RESPONSE) {\n if (isOwner && (myExchange.exchange_type == Exchange.Type.LOAN)) {\n return true;\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the total number of previously applied payments of calculation summary.
public void setTotalPaymentsApplied(BigDecimal totalPaymentsApplied) { this.totalPaymentsApplied = totalPaymentsApplied; }
[ "private void setTotal() {\n LinkedList<Double> totals = new LinkedList<>();\n totals.add(0,product1.get(0) + product2.get(0) + product3.get(0) + product4.get(0));\n totals.add(1,product1.get(1) + product2.get(1) + product3.get(1));\n totals.add(2,product1.get(2) + product2.get(2));\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.
@SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { jInternalFrame1 = new javax.swing.JInternalFrame(); jFrame1 = new javax.swing.JFrame(); nomeUsuarioLoginField = new javax.swing.JTextF...
[ "public StForm() {\n initComponents();\n }", "public CineForm() {\n initComponents();\n }", "public javaform() {\n initComponents();\n }", "public EditDemographicForm() {\n initComponents();\n }", "public FightForm() {\n initComponents();\n }", "public For...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__JoinTableAssignement__Group__1__Impl" $ANTLR start "rule__JoinTableAssignement__Group_1__0" ../org.sqlproc.meta.ui/srcgen/org/sqlproc/meta/ui/contentassist/antlr/internal/InternalProcessorMeta.g:6217:1: rule__JoinTableAssignement__Group_1__0 : rule__JoinTableAssignement__Group_1__0__Impl rule__JoinTab...
public final void rule__JoinTableAssignement__Group_1__0() throws RecognitionException { int stackSize = keepStackSize(); try { // ../org.sqlproc.meta.ui/src-gen/org/sqlproc/meta/ui/contentassist/antlr/internal/InternalProcessorMeta.g:6221:1: ( rule__JoinTableAssignement__Gro...
[ "public final void rule__Table__Group__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipse.xtext.xdoc.ui/src-gen/org/eclipse/xtext/xdoc/ui/contentassist/antlr/internal/InternalXdoc.g:6395:1: ( ( () ) )\n // .....
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Initializes this Entry object. This default constructor is defined for the sake of subclasses of the BinarySearchTree class.
public Entry() { }
[ "public Entry() {\n\t\tthis(\"entry\", null);\n\t}", "public Entry() {\n\n }", "public Entry(){\n }", "Entry() {\n/* 773 */ super((K)null, 0.0F);\n/* */ }", "public BinarySearchTreeMap()\n\t{\n\t\troot = null;\n\t\tsize = 0;\n\t}", "public BinarySearchTree() {\n root = null;\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Construct a provisioning parameter configuration entry.
public ProvParam(String name, String value) { this.name = name; this.value = value; }
[ "IParameter buildParameter(String name, String value, byte type);", "GoogleComputeInstanceTemplateConfigurationProperty(ConfigurationProperty configurationProperty) {\n this.configurationProperty = configurationProperty;\n }", "InstanceProperties instantiate(String platform, String group, String component, ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
creates the panel with the component's and listener's you need to edit activity a
public void createEditActivityPanel(Activity a);
[ "public void editPanel(){\r\n int idPos[]; \r\n String data[][] = controller.getConfigurationController().getCjtElementsController().getCjtElementsInData();\r\n idPos = controller.getConfigurationController().getCjtElementsController().getIdPos(); \r\n cjtEleme...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Wait for the end of a long running method that was called using 'post', returns a cancelable future
public Future<Void> wait(Integer id) throws DynamicCallException, ExecutionException{ return call("wait", id); }
[ "@Override\r\n\tpublic Future<Boolean> asyncFutureMethod() {\n\t\treturn null;\r\n\t}", "@Override\n protected void done() {\n super.done();\n\n if (this == lastRequest)\n lastRequest = null;\n\n try {\n callbackManager.deliverSuccessOnMainThread(get());\n } ca...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
turn off the progress bar loading indicator
@Override public void onResume() { // hide the loading spinner mLoadingSpinner.setVisibility(View.INVISIBLE); // proceed with standard framework super.onResume(); }
[ "public void stopLoadingAnimation() {\n mProgressBar.setVisibility(View.GONE);\n }", "public void hide()\n {\n showLoadingIcon = false;\n }", "public void hideProgressBar() {\n\t\tsetProgressBarIndeterminateVisibility(false); \n\t}", "@OnThread(Tag.Any)\n public void stopProgress()\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the textAsset value for this CustomBrandAsset.
public void setTextAsset(java.lang.String textAsset) { this.textAsset = textAsset; }
[ "public Builder setAsset(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n asset_ = value;\n onChanged();\n return this;\n }", "public void setAsText (String text) throws java.lang.IllegalArgumentException {\n Str...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public Pelada findAll(Pelada pelada) throws AmadorProDAOException { return null; }
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
repeated .mesos.TaskStatus statuses = 2; Should be nonterminal only.
public Builder setStatuses( int index, org.apache.mesos.Protos.TaskStatus value) { if (statusesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureStatusesIsMutable(); statuses_.set(index, value); onChanged();...
[ "List<Task> getTasksWithStatus(String status);", "public List<Task> getTaskbystatus(String status){\n\t\t List<Task> tasks = taskRepo.findAllBystatus(status);\n\t\treturn tasks;\n\t}", "List<SubmittedTaskStatus> getStatus(List<SubmittedTask> submittedTasks);", "public Map<String, String> getTaskStatus();", ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
repeated .vegvisir.network.datatype.Peer active_peers = 1;
public com.vegvisir.network.datatype.proto.Peer.Builder getActivePeersBuilder( int index) { return getActivePeersFieldBuilder().getBuilder(index); }
[ "public void newPeersPresent();", "List<Peer> listPeers();", "public MemberPeer(){\r\n \r\n this.isAvailable = false;\r\n }", "public Peer() {\n// try {\n// this.address = InetAddress.getLocalHost();\n// this.port = \"0\";\n// } catch (UnknownHostException e) {...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get the ending icon for this in a calendar.
public String getEndIcon() { return null; }
[ "private void addEndCalendar() {\n\t\tendCal = new StreamUICalendarIcon(StreamExternals.ICON_END_CAL,\n\t\t\t\tStreamExternals.ICON_NULL_END_CAL);\n\t\tendCal.setBounds(StreamConstants.UI.BOUNDS_END_CAL);\n\t\tadd(endCal);\n\t}", "public Icon getClosedIcon() {\n final java.io.File node = fileTree.getEdited...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Generic method to get an object based on class and identifier. An ObjectRetrievalFailureException Runtime Exception is thrown if nothing is found.
public Object getObject(Class<?> clazz, Serializable id);
[ "public <T> T get(Object id, Class<T> objectType);", "T loadById(Long entityId) throws ObjectRetrievalFailureException;", "public T get(ID id) throws ApplicationServiceException {\n\t\tlogger.debug(\"[{}.get(ID id)] is invoking ...\", this.entityClass);\n\t\ttry {\n\t\t\tT t = this.getGenericDao().get(id);\n\t\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Return type metadata object
public static org.apache.axis.description.TypeDesc getTypeDesc() { return typeDesc; }
[ "<T> T getMetaData(Class<T> type);", "public CodedMetadataType getCodedMetadataType();", "public interface TypeInfo {\n\n static final String SYMBOL_NAME = \"typeinfo\";\n\n /**\n * Gets name for the TypeInfo DataType Model\n * \n * @throws InvalidDataTypeException\n */\n String getName...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Checks that if no configuraitons are written, then the XML still contains the active configuration setting in private info.
@Test public void testWriteNoConfigurations() throws Exception { List<GradleExecConfiguration> confs = new ArrayList<>(); ConfigPersistenceUtils.writeConfigurations(confs, aux, "custom", true); assertNull("No active config in shared", aux.shared.confElement); assertNull(aux....
[ "public boolean isSetConfiguration();", "boolean hasReusableConfigValues();", "void writeConfig()\n {\n implicitAssociationXMLWriter.writeImplicitAssociationXML(expViews, txt_ConfigName.getText());\n }", "public static boolean saveConfig() {\n return saveConfigXML();\n }", "@java.lang...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Metodo que busca en la rama si se encuentra el mismo nodo, para evitar ciclos Input: estado del nodo que se quiere crear, nodo padre Output: un booleano que indica si se debe crear dicho nodo o no
public boolean evitarCiclo(int x, int y, int manzanas, Nodo padre, boolean turno) { if(turno) { boolean resultado = true; while(padre != null) { if((padre.getBlanco().getPosicionX() == x) && (padre.getBlanco().getPosicionY() == y)&& (padre.getBlanco().getManzanas() == manzana...
[ "@SuppressWarnings(\"unused\")\r\n\tprivate boolean nuevoNodo(int n) {\r\n boolean resultado=false;\r\n\r\n if (getNumNodos()<MAXVERT){\r\n nodos[getNumNodos()]=n;\r\n setNumNodos(getNumNodos() + 1);\r\n resultado=true;\r\n }\r\n return resultado;\r\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Restore System.out and System.err to their initial values.
static void restoreOutput () { System.setOut (realStandardOut); System.setErr (realStandardErr); }
[ "@AfterEach\r\n\tprivate void restoreStreams() {\r\n\t\tSystem.setOut(originalOut);\r\n\t\tSystem.setErr(originalErr);\r\n\t}", "@AfterEach\n public void restoreStreams() {\n System.setIn(originalIn);\n System.setOut(originalOut);\n System.setErr(originalErr);\n }", "@Before\n publ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Lists all applications associated with the profile.
public com.google.cloud.talent.v4beta1.ListApplicationsResponse listApplications(com.google.cloud.talent.v4beta1.ListApplicationsRequest request) { return blockingUnaryCall( getChannel(), getListApplicationsMethodHelper(), getCallOptions(), request); }
[ "public Collection<Application> getAllApplications(){\n return Utils.makeCollection( applicationRepository.findAll() );\n }", "public ApplicationsResponse getApplications() throws CoinbaseException, IOException;", "public List<Application> getApps() {\n\t\treturn apps;\n\t}", "public ListOfApps getL...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the minimal y coordinate value.
@Override public final double getY() { return ymin; }
[ "public double getMinY() {\r\n\t\treturn getY();\r\n\t}", "public double getMinY() {\n\t\treturn miny;\n\t}", "public final Double get_min_y_point() {\n\t return this._min_y_point;\n\t}", "public float getYMin() {\n\t\treturn yMin;\n\t}", "public int getMinY() {\n return minY; \n }", "public ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test case number: 62 /Coverage entropy=1.6417347121875212
@Test(timeout = 4000) public void test062() throws Throwable { Form form0 = new Form("PPG@\"a!L%M1.#C)rq"); TextArea textArea0 = new TextArea(form0, "PPG@\"a!L%M1.#C)rq", "; "); // Undeclared exception! try { textArea0.htmlText((Object) null); fail("Expecting exception: Clas...
[ "@Test(timeout = 4000)\n public void test135() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate();\n CostMatrix costMatrix0 = CostMatrix.parseMatlab(\".uD4;G~)**S]]\");\n Evaluation evaluation0 = new Evaluation(instances...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates new form KunciPrivatDialog
public KunciDekripsiDialog(Frame parent) { super(parent, true); setLocation (320,100); setTitle("Input String Kunci"); initComponents(); }
[ "private TN5250jSecurityAccessDialog() {\r\n\r\n }", "@Command\n public void nuevoPerfil() {\n\t\t\n\t\tWindow window = (Window)Executions.createComponents(\n \"/WEB-INF/include/Mantenimiento/Usuarios/AdministracionPerfiles/vtnPerfiles.zul\", null, null);\n window.doModal();\n }", ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ Restart all datanodes, on the same ports if keepPort is true
public synchronized boolean restartDataNodes(boolean keepPort) throws IOException { for (int i = dataNodes.size() - 1; i >= 0; i--) { if (!restartDataNode(i, keepPort)) return false; System.out.println("Restarted DataNode " + i); } return true; }
[ "public void restartAll() throws Exception;", "public void simulateServerRestart(){\r\n\t\ttry{\r\n\t\t\tserverRestartExecutor.scheduleWithFixedDelay(new Runnable(){\r\n\t\t\t\tpublic void run() {\r\n\t\t\t\t\tif(!isRunning){\r\n\t\t\t\t\t\t//check current server whether exist in slaves, if not , add it into slav...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Unsets the "lvl9pPr" element
public void unsetLvl9PPr() { synchronized (monitor()) { check_orphaned(); get_store().remove_element(LVL9PPR$18, 0); } }
[ "void unsetP();", "public void unsetPackedPnt()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_element(PACKEDPNT$12, 0);\r\n }\r\n }", "public void reset()\n/* */ {\n/* 71 */ this.steps.r...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Use device_offline_info.newBuilder() to construct.
private device_offline_info(Builder builder) { super(builder); }
[ "Map<Device, Instant> getOfflineDevices();", "private OfflineMessage(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public Builder setOfflineUserDataJob(com.google.ads.googleads.v13.resources.OfflineUserDataJob value) {\n if (offlineUserDataJobBuilder_ == null...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Setter for the corner radius by each value.
public com.anychart.standalones.Background corners(Number topLeft, String topRight, Number bottomRight, String bottomLeft) { APIlib.getInstance().addJSLine(String.format(Locale.US, jsBase + ".corners(%s, %s, %s, %s);", topLeft, wrapQuotes(topRight), bottomRight, wrapQuotes(bottomLeft))); return this; ...
[ "public void setRadius(int value) {\n\t\tthis.radius = value;\n\t}", "public void set(double r)\r\n { \r\n radius = r;\r\n }", "void setRadius(float radius);", "@Override\n public void setRadius(float radius) {\n Preconditions.checkState(radius >= 0);\n Arrays.fill(mCornerRadii, radius);\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ renamed from: a
public List<RankDTO> m11133a(int i, String str, int i2, int i3) throws BusinessException { try { JSONObject a = this.f10164a.a(i, str, i2, i3); if (a == null) { return null; } if (a.optInt("code") == 0) { JSONArray optJSONArray = a....
[ "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" ] ] } }
checks the availability of given value
public boolean find(T value) { ListElement tmp = getHead(); for (int i = 0; i < getSize(); ++i) { if (tmp.getValue() == value) { return true; } tmp = tmp.getNext(); } return false; }
[ "public static boolean isAvailable(int value) {\n\t\treturn value != DEFAULTVALUE;\n\t}", "boolean hasValue232();", "boolean hasValue200();", "boolean hasValue110();", "boolean hasValue218();", "boolean hasValue202();", "boolean hasValue112();", "boolean hasValue210();", "boolean hasValue190();", ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Bean for processing XML file inputs
@Bean public TransactionProcessor xmlProcessor() { return new TransactionProcessor(); }
[ "XSLTElementProcessor(){}", "private void parseXmlFile(String path) {\n\n try {\n\n SAXBuilder builder = new SAXBuilder();\n //parse using builder to get DOM representation of the XML file\n Document dom = builder.build(new File(path));\n Element root = dom.getRo...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
The setCSI_CONTE_IDSEQ method sets the CSI_CONTE_IDSEQ for this bean.
public void setCSI_CONTE_IDSEQ(String s) { this.CSI_CONTE_IDSEQ = s; }
[ "public void setCsiIdseq(String value) {\n setAttributeInternal(CSIIDSEQ, value);\n }", "public void setPCsCsiIdseqCsCsi(CsCsiImpl value)\n {\n setAttributeInternal(PCSCSIIDSEQCSCSI, value);\n }", "public final void setSeqNo(int seq) {\n DataPacker.putIntelShort( seq, m_smbbuf, SEQNO);\n }", ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the width of the world.
public int getWidth() { return width; }
[ "public final int getWorldWidth() {\n return world.getWidth();\n }", "public float getWorldWidth() {\n\t\treturn viewport.getWorldWidth();\n\t}", "public int getWidth() {\r\n return w;\r\n }", "public int getWidth () {\n\t\treturn this.w;\n\t}", "public static int getWidth() {\treturn wi...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ access modifiers changed from: private / renamed from: G0
public void m14152G0(String str) { str.getClass(); this.f21085h = str; }
[ "protected void method_5557() {}", "@Override\n\tpublic void g() {\n\t\t\n\t}", "protected void mo4791d() {\n }", "public abstract gg m20738a();", "private B000066() {\r\n\r\n\t}", "public void m2349g() {\n }", "public void mo28221a() {\n }", "public void mo1857d() {\n }", "p...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Backendless has completed the operation an email has been sent to the user
public void handleResponse(Void response) { onLoginSuccess(); }
[ "@Override\n\tpublic void execute() {\n\t\ttry {\n\t\t\tContext.openSession();\n\t\t\tlog.info(\"****************************** SEND EMAIL TASK: Executing task ...\");\n\t\t}\n\t\tfinally {\n\t\t\tContext.closeSession();\n\t\t}\n\t\t\n\t}", "public static Result runEmail() {\n\t\tUser user = User.findByEmail(req...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Fills MoneyVault with cash
public void addCash(Double cash) { AtmClientSingleton.getInstance().getVault().addCashToVault(cash); }
[ "public void setCash(int amount)\n\t{\n\t\tcashAvail = amount; \n\t}", "@Override\r\n\tpublic void buy() {\n\t\t\r\n\t\tint cashback = 0;\r\n\t\tcashback = Main.totalPrice * 5 / 100;\r\n\t\tmoney = money - Main.totalPrice + cashback; \r\n\t}", "public void callContributeCashFund() {\n if (draft == null) ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets (as xml) the "date" element
public void xsetDate(org.apache.xmlbeans.XmlString date) { synchronized (monitor()) { check_orphaned(); org.apache.xmlbeans.XmlString target = null; target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(DATE$0, 0); if (target == null) ...
[ "public void setDate(XMLGregorianCalendar date) {\n this.date = date;\n }", "private static void dateElement(String strElementName, DateTime dateTime) throws Exception {\n start(strElementName);\n if (dateTime.Year < 1880)\n {\n attribs(\"nullFlavor\",\"UNK\");\n }\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
extend the array, if necessary
public void pushContext() { if (currentContext + 1 == context.length) { int[] contextarray = new int[context.length * 2]; System.arraycopy(context, 0, contextarray, 0, context.length); context = contextarray; } // push context ...
[ "private void extend() {\r\n E[] updated = (E[]) new Object[data.length * 2];\r\n System.arraycopy(data, 0, updated, 0, data.length);\r\n data = updated;\r\n }", "private static int[] extendArraySize(int [] array){\n\t\tint [] temp = array.clone();\n\t array = new int[array.length + 1];...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
RUN THIS IN THE BACKGROUND: hide events in the past. sleep for 30 seconds. repeat Invoke using startCleaning()
@Override public void run() { while (this.cleaning) { System.out.println("Cleaning Events"); // HIDE PAST EVENTS for (Theater t : this.theaters) { for (int i = 0; i < t.getEvents().size(); i++) { Event e = t.getEvents().get(i); ...
[ "@Override\r\n\t\t\t\tpublic void run() {\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tThread.sleep(2500);\r\n\t\t\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t}\r\n\t\t\t\t\t setVisible(false);\r\n\t\t\t\t}", "@Override\r\n\t\t\t\t...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public int getCount() { return 0; }
[ "@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" ] ] } }
Converts a percentage value into an alpha value and uses the alpha value to make a color transparent.
public static Color createPercentageAlphaColor(Color color, int percent) { return new Color(color.getRed(), color.getGreen(), color.getBlue(), similarity2Alpha(percent)); }
[ "public Color alpha(float a) {\n\t\treturn set(getRed(), getGreen(), getBlue(), (int) (a * 255));\n\t}", "private int getAlpha(double value)\n {\n double divisor = value >= 0 ? max : min;\n int alpha = (int)(75 * Math.abs(value / divisor) + 180);\n return Math.min(Math.max(alpha, 0), 255);...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public void receive(int arg0, boolean arg1, Intent intent) { dismissBusyDialog(); String msg = intent.getStringExtra("msg"); switch (arg0) { case KEFU_RATING: if (!TextUtils.isEmpty(msg)) { if (!TextUtils.e...
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method returns the value of the database column day_report.day_repay
public String getDayRepay() { return dayRepay; }
[ "public Integer getRepayid() {\r\n return repayid;\r\n }", "public String resDays(String keyName) throws SQLException{ //result Days\n\t\t// TODO Auto-generated method stub\n\t\tString[] columns = new String[]{KEY_ROWID, KEY_NAME, KEY_CLASS,\n\t\t\t\tKEY_DAYS, KEY_TIME};\n\t\tCursor c = scheduleDatabase...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test: K2ABSFunc46 is properly inferred for byte. .
@org.junit.Test public void k2ABSFunc46() { final XQuery query = new XQuery( "abs(xs:byte(.)) instance of xs:byte", ctx); try { query.context(node(file("fn/abs/e0.xml"))); result = new QT3Result(query.value()); } catch(final Throwable trw) { result = new QT3Result(trw); }...
[ "void mo76011b();", "public abstract byte mo34671d();", "public abstract byte[] mo5402f();", "C5594p<K, V> mo5842b();", "C5598z<K, V> mo5838a();", "C38105ax mo53635xF();", "void mo37586a(abk abk);", "void mo37715E_();", "void mo5799a(C5484b c5484b);", "void mo4376a(C0376bz bzVar);", "@Test(timeo...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the number of seconds between current time and UTC time (time zone).
public int getUtcOffset() throws YAPI_Exception { return get_utcOffset(); }
[ "Integer getClockSeconds();", "private Long getSecondsSinceMidnight() {\n Date date = new Date();\n ZonedDateTime now = date.toInstant().atZone(ZoneId.of(\"+05:30\"));\n Instant midnight = now.toLocalDate().atStartOfDay(now.getZone()).toInstant();\n Duration duration = Duration.between...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
An interface that defines the API of a service class that deals with manipulating a CreateIssueBean must implement.
public interface AttachmentService { /** * Gets the data of the attachment. */ public byte[] getData(Attachment attachment) throws IOException; /** * Gets the last date and time that the attachment was modified. */ public Calendar getLastModifyTime(Attachment attachment); /** * Gets the at...
[ "public interface HbzAssignWorkService extends BaseEntityService<HbzAssignWork, HbzAssignWorkDTO> {\n\n String createWorkNo();\n\n}", "public interface IPDRequestOverallCheckService extends ICRUDService {\n\n}", "public interface EmployeeManagementService {\n}", "public interface EmployeeUserService extend...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Somme toutes les valeurs d'un HashMap.
private static long sommeLong(HashMap<VoieEnum, AtomicLong> map) { long somme = 0; for (AtomicLong value : map.values()) { somme = somme + value.get(); } return somme; }
[ "public void imprimirHashMap();", "public void HashMapMethod() {\n\t\t\t\n\t\t\tHashMap<Integer,String> hm=new HashMap<Integer,String>();\n\t\t\thm.put(101, \"Tamil\");\n\t\t\thm.put(102, \"English\");\n\t\t\thm.put(103, \"Maths\");\n\t\t\thm.put(104, \"Science\");\n\t\t\thm.put(105, \"History\");\n\t\t\thm.put(1...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Summarizes the reward data and purges expired rewards.
public void purgeExpiredRewards () { summarizeAndUpdate(null, RewardInfoRecord.ACTIVATIONS); summarizeAndUpdate( Ops.not(RewardRecord.REDEEMER_IDENT.isNull()), RewardInfoRecord.REDEMPTIONS); deleteAll(RewardRecord.class, KeySet.newKeySet(RewardRecord.class, findAl...
[ "private void CollectRewards()\n {\n System.out.println(\"Collecting rewards from enemy\");\n Player.gold += enemy.gold;\n }", "public Builder clearReward() {\n if (rewardBuilder_ == null) {\n reward_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
POR CAMPO SE HACE
public int getId() { return id; }
[ "public static void correr() {\n\t\tpeso = 80;\n\t\t//nombre=\"Kazuya\";\n\n\t}", "public void thorland01() {\n s0 = dctr + dcse + dcam + dcsi + dcab + dccx + dcmp;\n s1 = s0 * 10;\n s2 = s1 * s1;\n s3 = 0.00052 * s1;\n s4 = 0.00000032 * s2;\n resultado = 1.1091 - s3 + s4...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end rule__BodyFunction__Group_2_3__5__Impl $ANTLR start rule__SimpleFunction__Group__0 ../edu.kit.scc.cfeditor.cfengine.ui/srcgen/edu/kit/scc/cfeditor/cfengine/ui/contentassist/antlr/internal/InternalCfengineEditor.g:3508:1: rule__SimpleFunction__Group__0 : rule__SimpleFunction__Group__0__Impl rule__SimpleFuncti...
public final void rule__SimpleFunction__Group__0() throws RecognitionException { int stackSize = keepStackSize(); try { // ../edu.kit.scc.cfeditor.cfengine.ui/src-gen/edu/kit/scc/cfeditor/cfengine/ui/contentassist/antlr/internal/InternalCfengineEditor.g:3512:1: ( rule__Simple...
[ "public final void rule__FunctionDefinition__Group_0__0() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../de.upb.llvm_parser.ui/src-gen/de/upb/llvm_parser/ui/contentassist/antlr/internal/InternalLLVM.g:5429:1: ( rule__FunctionDe...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
End of variables declaration//GENEND:variables
private void initComponentsCustom() { DGuiUtils.setWindowBounds(this, 640, 400); msTitle = composeTitle(); setTitle(msTitle); moKeyFilter.setKeySettings(miClient, DGuiUtils.getLabelName(jlFilter), true); moTextElementName.setTextSettings(DGuiUtils.getLabe...
[ "private static void EX5() {\n\t\t\r\n\t}", "@Override\n\tprotected void initVariable() {\n\t\n\t}", "public void mo17751g() {\n }", "public void mo1857d() {\n }", "public static void Q22()\r\n\t{\r\n\t}", "public void mo28221a() {\n }", "public void mo3914b() {\n }", "protecte...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out)); String num = br.readLine(); int n = Integer.parseInt(num); int[] arr = new int[n+1]; String[] str ...
[ "@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" ] ] } }
Tests the first constructor and the getMessage and getCause methods.
public void test_ctor1() { Throwable ex = new RuntimeException(); RoleCategoryPersistenceException exception = new RoleCategoryPersistenceException("message", ex); assertTrue("getMessage() should contain the message passed to the constructor", exception.getMessage().indexO...
[ "@Test\r\n public void testCtor1() {\r\n // Construct SecurityGroupsActionConfigurationException with a detail message\r\n SecurityGroupsActionConfigurationException exception = new SecurityGroupsActionConfigurationException(\r\n DETAIL_MESSAGE);\r\n // Verify that there is a ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
get the object, the access rights view is working on
public OwObject getObjectRef() { return m_ObjectRef; }
[ "public AppDbObject getObject() {\n if (objectId != 0 && objectClass != null) {\n try {\n return AppDbObject.selectInValidContext(getDb(), objectClass, objectId);\n }\n catch (Exception e) {\n DbGlobal.logger.warning(\"can't get secured object for \" + objectClass + \", \" + objectI...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Notification that a termbase has changed its name.
public void notifyTermbaseRenamed(String p_oldName, String p_newName) throws RemoteException;
[ "@Override\r\n\tpublic void nameChanged(String newname) {\n\t\tthis.setName(\"stand up \"+hero.getName());\r\n\t}", "@Override\n\tpublic void changeName(String text) {\n\t\t\n\t}", "public void notifyNameChange(long id, String name);", "@Override\n\tpublic void changeName(String value) {\n\t\t\n\t}", "publi...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the value of the 'namesClientType' field
public java.util.List<avro.ProjectPower.ClientType> getNamesClientType() { return namesClientType; }
[ "String getClientType();", "public ClientType getClientType()\n {\n return clientType;\n }", "public com.zhangwuji.im.protobuf.IMBaseDefine.ClientType getClientType() {\n @SuppressWarnings(\"deprecation\")\n com.zhangwuji.im.protobuf.IMBaseDefine.ClientType result = com.zhangwuji.im.p...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
SPI Check the characters that should cause reindenting the line.
protected void checkIndentHotChars(JTextComponent target, String typedText) { }
[ "protected boolean viYankWholeLine() {\n/* 2332 */ int p = this.buf.cursor();\n/* 2333 */ while (this.buf.move(-1) == -1 && this.buf.prevChar() != 10);\n/* 2334 */ int s = this.buf.cursor();\n/* 2335 */ for (int i = 0; i < this.repeatCount; i++) {\n/* 2336 */ while (this.buf.move(1) == 1 && th...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ renamed from: A
public static void m56627A(int i, int i2, int i3, int i4) { AppMethodBeat.m2504i(50510); try { if (!C5023at.isMobile(C4996ah.getContext())) { AppMethodBeat.m2505o(50510); } else if (C0380b.checkSelfPermission(C4996ah.getContext(), "android.permission.ACCESS_COARSE...
[ "public abstract void macheA();", "public A (){\r\n\t}", "public int A() {\n return A;\n }", "void abstraheren();", "public interface C24712af {\n /* renamed from: a */\n void mo64682a(List<Aweme> list);\n}", "Expr getA();", "public interface C37934g extends C1694a {\n /* renamed from...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
allow number only in mobile attribute
public String formatMobileNumber(String mobile) { char[] chMobile = mobile.toCharArray(); char[] chResult = new char[mobile.length()]; int pos = 0; for(int i = 0; i < chMobile.length; i++) { if((chMobile[i] >= '0') && (chMobile[i] <= '9')) { chResult[pos++] = chMobile[i]; } } return (new String...
[ "private void setToNumbersOnly() {\n telephone.setInputType(InputType.TYPE_CLASS_NUMBER);\n }", "private boolean isValidMobile(EditText text) {\n CharSequence phone = text.getText().toString();\n return phone.length() == 10;\n\n }", "private boolean isPhoneNumberOnlyNumbers(){\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Deletes a checkpoint state from ES index
void deleteCheckpointFromES() throws IllegalStateException { try { esHandler.del(esCkptIndexName, esCkptIndexType, esCheckpointKey); } catch (IOException e) { logger.severe("Failed to delete checkpoint due to:" + e); throw new IllegalStateException(e); } ...
[ "public boolean deleteState(State state);", "public void deleteIndex() {\r\n bs.deleteStore(indexByteStoreHandle);\r\n if (indexHeader.get1(INDEX_OFFSET_02_TYPE1) == ITechBoIndex.TYPE_1_CHAIN) {\r\n String chainHandle = indexByteStoreHandle + \"_chain\";\r\n bs.deleteStore(chainHandle);\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.
@SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { jScrollPane1 = new javax.swing.JScrollPane(); jTable1 = new javax.swing.JTable(); jTable1.setModel(new javax.swing.table.DefaultT...
[ "public StForm() {\n initComponents();\n }", "public CineForm() {\n initComponents();\n }", "public javaform() {\n initComponents();\n }", "public EditDemographicForm() {\n initComponents();\n }", "public FightForm() {\n initComponents();\n }", "public For...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Add business logic below. (Rightclick in editor and choose "Insert Code > Add Business Method")
public List getList() { return em.createNamedQuery("Friend.findAll").getResultList(); }
[ "@Override\n public void logic() {\n }", "public interface DcWebToDataCenterBusinessCodeCaller {\n \n\t/**保存BusinessCode\n\t * @param BusinessCode\n\t * @return BusinessCode\n\t * @see BusinessCode\n\t */\n\tpublic BusinessCode saveOrUpdateBusinessCode(BusinessCode businessCode) ;\n\t\n\t/**根据条件查询Busines...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: /:: : /:: This routine calculates the distance between two points (given the : /:: latitude/longitude of those points). It is being used to calculate : /:: the distance between two locations using GeoDataSource (TM) prodducts : /:: : /:: Defi...
public static double distance(final double lat1, final double lon1, final double lat2, final double lon2) { final double theta = lon1 - lon2; double dist = Math.sin(deg2rad(lat1)) * Math.sin(deg2rad(lat2)) + Math.cos(deg2rad(lat1)) * Math.cos(deg2rad(lat2)) * Math.cos(deg2rad(theta)); dist = Mat...
[ "private double calcDistanceBetweenPoints(double lat1, double lon1,\r\n\t\t\tdouble lat2, double lon2) {\r\n\r\n\t\tdouble theta = lon1 - lon2;\r\n\t\tdouble dist = Math.sin(deg2rad(lat1)) * Math.sin(deg2rad(lat2))\r\n\t\t\t\t+ Math.cos(deg2rad(lat1)) * Math.cos(deg2rad(lat2))\r\n\t\t\t\t* Math.cos(deg2rad(theta));...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test use of views
@Test public void testMultiSchemaView() throws Exception { String query = "PREFIX : <http://www.semanticweb.org/ontologies/2013/7/untitled-ontology-150#> SELECT ?x WHERE {?x a :NewCountry}"; checkThereIsAtLeastOneResult(query); }
[ "@MediumTest // SmallTest: this test doesn't interact with any file system or network. \r\n\t public void testView() {\n\t\tassertNotNull(getActivity()); \r\n\t }", "public void testGetEqViewSetup() {\n\t\tassertTrue(EqViewSetupFactory.getEqViewSetup() != null);\n\t}", "protected void setupView() {}", "@Test\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Detailed description of the site providing these snippets.
public String getDescription() { return "Mvnsearch Snippet Repository, and please visit http://snippet.mvnsearch.org for more."; }
[ "public String snippet() {\n return snippet;\n }", "public abstract String getPageDescription();", "public String getDescription(){\n return DESCRIPTION+\" \"+INSTANCE.getDescription();\n }", "String getSnippet() {\n if (mSnippet == null) {\n mSnippet = queryJSON(\"snip...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
si on ajoute un nouvel item
public void majListe(List<LigneCommande> liste){ if( liste.size() > liste_articles.size() ){ this.liste_articles.add(liste.get(liste.size() - 1)); } else if( liste.size() < liste_articles.size()){ for( LigneCommande ligne : liste_articles){ // si l'articl...
[ "void addNewItem(Item item);", "public void adicionarItem(Item novoItem){\n\t\t\n\t}", "public void addNewItem() {\n /*\n create new item object\n call item constructor\n once item is created and initialized, add to itemList\n */\n }", "public void addItem(int itemid)...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
optional .dash.BuildData.Target.TestData test_data = 3;
public com.google.devtools.build.lib.bazel.dash.DashProtos.BuildData.Target.TestDataOrBuilder getTestDataOrBuilder() { if (testDataBuilder_ != null) { return testDataBuilder_.getMessageOrBuilder(); } else { return testData_ == null ? com.google.devtools.build....
[ "public TestData() {\n this(DSL.name(\"test_data\"), null);\n }", "TestPlan build();", "@Test\n public void testGetData() {\n }", "@Test\n\tpublic void testBuild01() {\n\t\tString packageId = \"someId\";\n\t\tEml result = new Eml()\n\t\t\t.withPackageId(packageId)\n\t\t\t.withDataset(new Datas...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Grab a bunch of info on the tasks that make up the job
public TaskReport[] getMapTaskReports(String jobid) throws IOException;
[ "private String processInfo() {\r\n\t\tsynchronized(this) {\r\n\t\t\tfinal StringBuilder result=new StringBuilder();\r\n\t\t\tresult.append(\"Waiting:\\n\");\r\n\t\t\tqueue.stream().map(task->task.id).forEach(id->result.append(id+\"\\n\"));\r\n\t\t\tresult.append(\"Running:\\n\");\r\n\t\t\tif (running!=null) result...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Handle QR Scanner Results
@Override protected void onActivityResult(int requestCode, int resultCode, @Nullable Intent data) { super.onActivityResult(requestCode, resultCode, data); IntentResult intentResult = IntentIntegrator.parseActivityResult(requestCode,resultCode,data); if (intentResult.getContents() != null){ ...
[ "public void handleResult(Result result){\n\n\n boolean success = handler.handleQRscan(result.getText());\n\n Log.d(\"QR scanning\", \"\" + success);\n\n Log.v(\"handleResult\", result.getText());\n\n finish();\n }", "@Override\n public void handleResult(Result rawResult) {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
GEOT2067 Make sure it's possible to compute bounds out of a view
public void testGetBounds() throws Exception { JTSEnvelope2D reference = (JTSEnvelope2D) dataStore.getEnvelope(QueryBuilder.all(nsname(LAKE))); assertEquals(12.0, reference.getMinX()); assertEquals(16.0, reference.getMaxX()); assertEquals(4.0, reference.getMinY()); assertEquals(8...
[ "protected void boundsCheck(long off, long sz) {\n/* 215 */ if (off < 0L) {\n/* 216 */ throw new IndexOutOfBoundsException(\"Invalid offset: \" + off);\n/* */ }\n/* 218 */ if (off + sz > this.size) {\n/* 219 */ String msg = \"Bounds exceeds available space : size=\" + this.size + \", off...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Holds operations that can be performed on availabilities for a specific target segment.
public interface IAvailabilityCollectionByTargetSegment extends IPartnerComponent<QuadrupleTuple<String, String, String, String>>, IEntireEntityCollectionRetrievalOperations<Availability, ResourceCollection<Availability>> { /** * Gets the operations that can be applied on products that belong to a give...
[ "public interface IOTarget\n{\n /**\n * Invoked before any segment is received, as very first step to prepare for receive. Depending on implementation,\n * this method might do nothing, might just check for free space or even might allocate the needed space and do\n * other book keeping things.\n *\n * @...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
adding scanned payment QR Code to favorite list of scanned payment QR Codes
public int addScannedPaymentQrCodeToFavList(long id) { SQLiteDatabase db = this.getWritableDatabase(); ContentValues values = new ContentValues(); values.put(DBManager.FAVORITE_QR_CODE, 1); // updating row return db.update(DBManager.SCAN_PAYMENT_QR_CODE_TABLE_NAME, values, DBMa...
[ "void duplicateBarcode();", "private void scanQRCode() {\n Bitmap bitmap = ((BitmapDrawable) mImageView.getDrawable()).getBitmap();\n\n Matrix matrix = new Matrix();\n matrix.postScale(0.2f, 0.2f);\n Bitmap resizeBitmap = Bitmap.createBitmap(bitmap, 0, 0,\n bitmap.getWid...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
A filter expression that filters resources listed in the response. The expression must specify: 1. The field name. Currently you can only use filtering with the [Cluster.name] field. 2. An `=` operator. 3. The value in double quotes (`"`). Must be 163 characters long and match the regular expression `[azAZ09_]+`. strin...
public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; ...
[ "Filter parseWhere(String expression);", "String bucketFilter();", "com.yandex.yql.analytics.AnalyticsProtos.GetQueriesRequest.Filter getFilter();", "public ResultSet filter(String filterExpression) throws InputGenerationException, AlgorithmConfigurationException;", "public Builder setFilter(java.lang.Strin...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Constructs a new MockBundle instance using default values.
public MockBundle() { this(null, null, null); }
[ "public MyBundle(Tablet tablet) { this.tablet = tablet; }", "public abstract void init(Bundle bundle);", "public ServiceTestBase() {\n this(BaseConstant.PROPERTIES_FILENAME_DEFAULT);\n }", "public GenericBundle(String bundleName)\n\t{\n\t\tthis.bundleName = bundleName;\n\t\tthis.textResource = Resou...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }