query
stringlengths
8
1.54M
document
stringlengths
9
312k
negatives
listlengths
19
20
metadata
dict
Process called to set the size of the selected keys
private void setSelectedKeySize(){ for(int i = 0; i<DataStore.getInstance().getViewBottomKeys().size(); i++) { if(DataStore.getInstance().getViewBottomKeys().get(i).isSelected()){ if(DataStore.getInstance().getKeyboardConfiguration().getModelBottomKeys().get(i).getKeyIcon()==0){ ...
[ "public void setSize(int size){\r\n this.selectedSize = size;\r\n setChanged();\r\n notifyObservers();\r\n }", "public void setSelectedItemSizeByID(String value)\n {\n for ( int i=0; i < sizeList.length; i++)\n {\n if ( sizeList[i].getSizeCode() != null )\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
mBtnLoc.setText( mContext.getResources().getString( R.string.button_gps_stop ) );
private void setGPSon() { mHasLocation = false; mBtnStatus.setText( "0" ); mBtnStatus.setBackgroundColor( 0x80ff0000 ); mErr2 = -1; // restart location averaging if ( locManager != null ) { locManager.addGpsStatusListener( this ); locManager.requestLocationUpdates( LocationManager.GPS_...
[ "IgnoreBatteryOptimisationChecker setButtonSettings(@StringRes int textResource);", "public void mo18318P0() {\n this.f15826e.f14671f.setText(R.string.main_navigate);\n }", "private void updateBtnText(boolean serviceEnabled) {\n Button btn = (Button)findViewById(R.id.btnService);\n\n if ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
These methods will set the fields for an instance of Item
public void setUserName(String s) { userName = s; }
[ "public void setItem(Item item) {\n this.item = item; \n }", "public void setItem(Item item){\n this.item = item;\n }", "public void setItem(Object item){\n this.item = item;\n }", "public ModelItem(ModelItem item) {\n\t\tthis.setId(item.getId());\n\t\tthis.setPosition(item.getPo...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
The maximum number of comments to include in the response, which is used for paging. For any response, the actual number returned might be less than the specified maxResults.
public List setMaxResults(java.lang.Long maxResults) { this.maxResults = maxResults; return this; }
[ "public void setMaxResults(int maxResults) {\n this.maxResults = maxResults;\n }", "@ApiModelProperty(value = \"The maximum number of results to return, defaults to 100 for most\")\n public Integer getLimit() {\n return limit;\n }", "public void setMaxResults(final int maxResults) {\n this.maxRe...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method returns the value of the database column xt_zzxx.BGDH
public String getBgdh() { return bgdh; }
[ "public int getDaGhiHDTC() { return this.DaGhiHDTC; }", "private String getZybh(String jdFzr) {\n if (jdFzr == null)\r\n return null;\r\n SfJdPerson person = (SfJdPerson) baseService.queryObject(\"com.ufgov.zc.server.sf.dao.SfJdPersonMapper.selectByAccount\", jdFzr, meta);\r\n\r\n if (person == null...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
To understand web table
public static void main(String[] args) { WebDriver driver = new ChromeDriver(); driver.manage().window().maximize(); driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS); driver.get("https://html.com/tables/#table_code_sample_simple_table"); String innerText = driver.findElement(By.xpath("//tab...
[ "private String printHtmlSecondTable() {\n\t\t// add second table\n\t\treturn \" <ac:layout-section ac:type=\\\"single\\\">\\n\" + AC_LAYOUT_CELL_BEGINNING_TAG_3 + P_BEGINNING_TAG\n\t\t\t\t+ \" <strong> <br/> </strong>\\n\" + P_ENDING_TAG_1 + P_ENDING_TAG_2\n\t\t\t\t+ \" <strong>Change requests list - changes...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Generates a noncryptographic 64 bit hash for 7 longs.
public static long hash64( final long x0, final long x1, final long x2, final long x3, final long x4, final long x5, final long x6) { return perm64( perm64(perm64(perm64(perm64(perm64(perm64(perm64(computeMixin(DataType.LONG, 7)) ^ x0) ^ x1) ^ x2) ^ x3) ...
[ "public BigInteger fnv1_64(byte[] data) {\n BigInteger hash = INIT64;\n\n for (byte b : data) {\n hash = hash.multiply(PRIME64).mod(MOD64);\n hash = hash.xor(BigInteger.valueOf((int) b & 0xff));\n }\n\n return hash;\n }", "public static long hash64( final byte[...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ An OpenGL transformation matrix has the following format: Values: Indices: v v v x 0 4 8 12 v v v y 1 5 9 13 v v v z 2 6 10 14 v v v v 3 7 11 15 While the values marked with v are based on all the transformation that were done at the matrix, the values marked with x, y and z contain the coordinates. With that in mind...
public float getX() { return transformationMatrix[12]; }
[ "public float[] toGlMatrix(){\n float[] matrix = {\n 1.0f - 2.0f * ( y_ * y_ + z_ * z_ ),\n 2.0f * ( x_ * y_ - z_ * w_ ),\n 2.0f * ( x_ * z_ + y_ * w_ ),\n 0.0f,\n\n 2.0f * (x_ * y_ + z_ * w_),\n 1.0f - 2.0f * ( x_ * x_...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public boolean mouseMoved(int screenX, int screenY) { return false; }
[ "@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" ] ] } }
$ANTLR end "rule__Mientras__SentenciasAssignment_3_0" $ANTLR start "rule__Mientras__SentenciasAssignment_3_1" ../vary.pseudocodigo.dsl.cpp.ui/srcgen/vary/pseudocodigo/dsl/cpp/ui/contentassist/antlr/internal/InternalVaryGrammar.g:15016:1: rule__Mientras__SentenciasAssignment_3_1 : ( ruleSentencias ) ;
public final void rule__Mientras__SentenciasAssignment_3_1() throws RecognitionException { int stackSize = keepStackSize(); try { // ../vary.pseudocodigo.dsl.cpp.ui/src-gen/vary/pseudocodigo/dsl/cpp/ui/contentassist/antlr/internal/InternalVaryGrammar.g:15020:1: ( ( ruleSenten...
[ "public void setDeclarationTranslation(String lhs, String rhs) {\r\n this.declarationLHS = lhs;\r\n this.declarationRHS = rhs;\r\n }", "public Declarations(Translator translator)\n {\n this.translator = translator;\n }", "public String visit(AssignmentStatement n, SymbolInfo argu) throws E...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Given two sorted arrays a and b, return a new sorted array containing all elements in a and b. A test for this method is provided in `SortTest.java`
public int[] merge(int[] a, int[] b) { // TODO int i = 0; int j = 0; int[] merged = new int[a.length + b.length]; int pos = 0; while (i<a.length && j<b.length) { if (a[i] < b[j]) { merged[pos] = a[i]; i++; pos++;...
[ "public static int[] mergeSortedLists(int[] a, int[] b)\n {\n int[] new_list = new int[a.length+b.length];\n\n int counta = 0;\n int countb = 0;\n\n for (int i = 0; i < new_list.length; i++){\n\n if (counta == a.length)\n {\n for (int j = countb; j...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test w/o compression or specialized key or value serializers.
public void test_001() throws IOException { db = newRecordManager(); BTree<Long, Long> tree = BTree.createInstance(db); doTest(db, tree, 5001); db.close(); }
[ "boolean hasSerializer();", "boolean isSkipSerialization();", "public final void testSerializability()\n throws Exception {\n byte[] serial = ObjectUtil.serialize(obj);\n Serializable deserial = (Serializable) ObjectUtil.deserialize(serial);\n\n checkThawedObject(obj, deserial);\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
public int userCheck(Connection conn, String id, String pwd) { StringBuilder sql = new StringBuilder(); sql.append(" select count(*) from user_2jo "); sql.append(" where user_id = ? and user_pwd =? "); // System.out.println(sql); // System.out.println(id); // System.out.println(pwd); ResultSet rs = 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" ] ] } }
Add the Vendor to DB. Required fields are: fullname, shortname, url.
public String addVendor(Vendor vendor) { String vendorId = null; try { vendorId = getVendorClient().addVendor(vendor); } catch (TException e) { logger.error("Could not add Vendor:" + e); } return vendorId; }
[ "@Override\n\tpublic boolean add(Vendor vendor) {\n\t\tString vendorInsert = \"INSERT INTO Vendor(Code, Name, Address, City, State, Zip, PhoneNumber, Email)\"\n\t\t\t\t+ \" VALUES (?, ?, ?, ?, ?, ?, ?, ?)\";\n\n\t\ttry (Connection con = getConnection(); PreparedStatement ps = con.prepareStatement(vendorInsert);) {\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the visibility of the Product. Visible components are drawn in the user interface, while invisible ones are not. The effect is not merely a cosmetic CSS change no information about an invisible Product will be sent to the client. The effect is thus the same as removing the Product from its parent.
public NativeSelectBuilder setVisible(boolean visible) { nativeSelect.setVisible(visible); return this; }
[ "public void setVisibility(String entityID, boolean b)\n\t{\n\t\tUIElement element = this.getComponent(entityID);\n\t\tif(element != null)\n\t\t\telement.setVisible(b);\n\t}", "public void setVisibility(boolean visible);", "public void setVisibility(boolean visible) {\n mIsVisible = visible;\n set...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method returns the value of the database column event_types.id
public Integer getId() { return id; }
[ "@Column(name=\"type_id\")\n public int getTypeId()\n {\n return typeId;\n }", "@java.lang.Override\n public java.lang.String getTypeId() {\n return typeId_;\n }", "public Integer getTypeId() {\n return this.typeId;\n }", "public String getTypeId() {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ Returns the bounds of the specified World
private Rectangle getWorld(int world, ValueSet valueSet) { if (world < 0 || world > valueSet.getLimit()) return null; int row = (int) Math.ceil((world + 1) / valueSet.getDivisor()); int position = (world % valueSet.getModulo()); return new Rectangle(59 + (93 * row), valueSet.getStartX() ...
[ "public MWC.GenericData.WorldArea getBounds()\n {\n MWC.GenericData.WorldArea res = null;\n if (_curLocation != null)\n res = new MWC.GenericData.WorldArea(_curLocation, _curLocation);\n\n return res;\n }", "double getBound();", "Rectangle getBoundaries();", "Box getBounds();", "...
{ "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.
public void reiniciarContInicios() { this.contInicios = 0; }
[ "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" ] ] } }
window ; unix,linux :
public static String getPathSeparator(){ return getProperty("path.separator"); }
[ "private void customOS() {\n String osName = System.getProperty(\"os.name\");\n if (osName.startsWith(\"Windows\")) {\n isWindows = true;\n if (osName.toLowerCase().equals(\"Windows 95\") || osName.equals(\"Windows 98\")) {\n isWindows9x =true;\n }\n if (osName.equals(\"Windows 200...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Convert the 2DArray to a string.
private StringBuilder arrayToString(String[] cryptArray) { StringBuilder cryptabet = new StringBuilder(); HashMap<Character, Integer> m = new HashMap<Character, Integer>(); int i = 0; for (Character c : cryptArray[0].toCharArray()) { m.put(c, i); i++; } Stream<Map.Entry<Character, Integer...
[ "@Override\n\tpublic String toString() {\n\t\tString result = \"\";\n\t\tresult += \"{\";\n\t\tfor (int i = 0; i < arr.length; i++) {\n\t\t\tresult += \"{\";\n\t\t\tfor (int j = 0; j < arr[i].length; j++) {\n\t\t\t\tresult += arr[i][j] + \" \";\n\t\t\t\t\n\t\t\t}\n\t\t\tresult += \"}\";\n\t\t}\n\t\tresult += \"}\";...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Write the supplied master journal name into the journal file for pager pPager at the current location. The master journal name must be the last thing written to a journal file. If the pager is in fullsync mode, the journal file descriptor is advanced to the next sector boundary before anything is written. The format is...
private void writeMasterJournal(String master) throws SqlJetException { int len; int i; long jrnlOff; long jrnlSize; int cksum = 0; ISqlJetMemoryPointer zBuf = SqlJetUtility.allocatePtr(aJournalMagic.remaining() + 2 * 4); if (null == master || setMaster) ...
[ "public boolean writeMasterAddress(final HServerAddress address) {\n return writeAddressToZK(masterElectionZNode, address, \"master\");\n }", "public void setMaster(String master) {\n this.master = master == null ? null : master.trim();\n }", "public void setMaster(boolean master) {\n\t m_Maste...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets a fleet from the database given a fleet id.
public static Fleet get(Connection connection, int id) throws SQLException { PreparedStatement query = connection.prepareStatement("SELECT fleet_name FROM fleet WHERE id = ?"); query.setInt(1, id); LOG.info(query.toString()); ResultSet resultSet = query.executeQuery(); if (!res...
[ "public Flight findById(long id){\n\t\treturn crud.findFlightById(id);\n\t}", "public Team getTeam(Integer id) {\n\t\tString SQL = \"select * from team where teamid = ?\";\n\t Team team = jdbctemplateObject.queryForObject(SQL, \n\t new Object[]{id}, new TeamMapper());\n\t \n\t return team;\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
optional .EDOTAVersusScenePlayerBehavior behavior = 2 [default = VS_PLAYER_BEHAVIOR_PLAY_ACTIVITY];
public Builder setBehavior(skadistats.clarity.wire.common.proto.DotaCommonMessages.EDOTAVersusScenePlayerBehavior value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; behavior_ = value; onChanged(); return this; }
[ "private boolean activePlayerChange(){ return playerBefore!=engine.getModel().getActivePlayer();}", "@Override\n\tpublic void onPlayBegin() {\n\n\t}", "@Override\n\tprotected void play() {\n\n\t}", "@Override\n public void play() {\n }", "@Override\n public void play()\n {\n\n }", "public abstr...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
public GeoCoordinate getGeocoordinateForAddress(String address) { 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" ] ] } }
TODO Autogenerated method stub
@Override public void onClick(View v2) { View v1 = LayoutInflater.from(mActivity).inflate(R.layout.dialog_lv_item, null); final TextView textView = (TextView) v1.findViewById(R.id.textview); // textView.setText("您当前有" + dataClean.getFileSize() + "可以清除,确定清楚吗?")...
[ "@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" ] ] } }
A method with simple purpose, to handle a response to federation membership request. An identity provider sends this response for existing local request if there is such request pending in identity provider.
Response handleFederationResponse(FederationMembershipRequest membershipResponse);
[ "public boolean handleResponse(MessageContext mc) {\r\n/* 239 */ return true;\r\n/* */ }", "private void handleInviteResponse(InviteResponse response) {\n\t\tif(response.isAccepted()) {\n\t\t\tpushUpdate(\"Invite accepted:\" + response.getInvitee().getNickname());\n\t\t}\n\t\telse {\n\t\t\tpushUpdate(\"...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
We create again a previous setUp for a sale in the ShoppingCart.
@Before public void setUp() { cart=ShoppingCartFactory.getShoppingCart(); item1=new Item("item 1",10,2); item2=new Item("item 2",5,1); cart.addItem(item1); cart.addItem(item2); sale=cart.doCheckOut(); }
[ "public void startSale(){\n this.sale = new Sale();\n }", "public void newSale() {\n this.currentSale = new Sale();\n for(SaleObserver saleObserver : saleObservers) {\n this.currentSale.addObserver(saleObserver);\n }\n }", "public void createNewCart( )\n {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns all scopes supported by the running agents (that we know about). Advertisers and Locators into one vector.
public static synchronized Vector findScopes() throws ServiceLocationException { Vector<String> foundScopes = new Vector<String>(); // find all known scopes... for(Locator locator: locators) { getScopesFrom(locator.getScopes().iterator(), foundScopes); } for (Adverti...
[ "public String getRequestedScopes() {\n if (requestedScopes == null) {\n boolean firstPass = true;\n String[] basicScopes = OA2Scopes.basicScopes;\n Collection<String> targetScopes = new HashSet<>();\n Collection<String> scopeList = ((OA2ClientEnvironment) getEnvir...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Employee emp = new Employee("name", 1, 87, "partTime");
private static void convertFromXml() throws JAXBException { String test1 = "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\r\n" + "<employee>\r\n" + " <age>87</age>\r\n" + " <id>1</id>\r\n" + " <name>name</name>\r\n" + " <type>partTime</type>\r\n" + "</em...
[ "public Employee(String aName, double aWage)\n {\n name = aName;\n wage = aWage;\n hoursWorked = 0;\n }", "public Employee(String n, int i) \n\t{ \n\t\tname = n; \n\t\tid = i; \n\t}", "Employee(){\r\n\t\tSystem.out.println(\"Inside Employee constructor\");\r\n\t}", "public Employee (St...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Set variables, (1) String to check the vowels, and (2) a counter to keep track of the number of vowels
public static void main(String[] args) { String str = "azcbobobegghakl"; int numOfVowels = 0; // Iterate through the string and check every time if any element is equal to the valid vowels defined, if so increment the counter for (int i = 0; i < str.length(); i++) { if(str.ch...
[ "int vowelCheck(String string) {\n\n\t\tint count = 0;\n\t\tfor (int index = 0; index < string.length(); index++) {\n\n\t\t\tif (string.charAt(index) == 'a' || string.charAt(index) == 'e' || string.charAt(index) == 'i'\n\t\t\t\t\t|| string.charAt(index) == 'o' || string.charAt(index) == 'u') {\n\n\t\t\t\tcount++;\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public void outputToTextArea(String s) { view.outputToTextArea(s); }
[ "@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" ] ] } }
wrapped jtt is jtt written as a single integer from range [0; 1200)
public int time_to_jtt_wrapped(long time) { long day = longToJDN(time); long tr[] = computeTr(day); int dayAdd = 0; if (time > tr[1]) // "day" is actually yesterday tr = computeTr(++day); long tr0 = tr[0], tr1 = tr[1]; // do not modify array contents! if (time < tr0) { // before sunrise. Get prev...
[ "public static final long m38233nY(long j) {\n if (1000 <= 0) {\n return 0;\n }\n if (1000 >= 9223372036854L) {\n return Long.MAX_VALUE;\n }\n return 1000000000;\n }", "private static void gettens(int j) {\n\t\ttext=tens.values()[j-2]+\" \"+text;\r\n\t}"...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
this is nearly identical to the SelectAndRead.select() method
public void run() { try { selector = Selector.open(); channel.register(selector, SelectionKey.OP_READ, new Attachment()); } catch (ClosedChannelException cce) { log.error("closedchannelexception while registering channel with selector", cce); return; } catch (IOException ioe) { log.error("...
[ "@Override\n public abstract void select();", "Select getSelect();", "@Override\n\tpublic void select(Object o) throws Exception {\n\t\t\n\t}", "public abstract void Select();", "private void doSelect(DataCommand cmd) {\n\t\tthis.refreshTime();\n\t\t\n\t\tDataDelegate delegate = cmd.delegate;\n\n\t\tComm...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Logger logger = Logger.getLogger("BankAssess"); List> bonds = getServiceHub().getVaultService().queryBy(UKTFBondState.class, criteria).getStates();
StateAndRef<UKTFBondState> getUKTFBond (String bondID) throws FlowException { QueryCriteria.VaultQueryCriteria criteria = new QueryCriteria.VaultQueryCriteria(Vault.StateStatus.UNCONSUMED); Vault.Page<UKTFBondState> results = getServiceHub().getVaultService().queryBy(UKTFBondState.class, criteri...
[ "java.util.List<cosmos.bank.v1beta1.Balance> \n getBalancesList();", "@SuppressWarnings(\"unchecked\")\n\tpublic ArrayList<BillingState> getBillingStatesFromDB() throws StateNotFoundException{\n\t\t log.info(\"getBilliungStatesFromDB()\");\n\t\t ArrayList<BillingState> states=(ArrayList<BillingState>) hibern...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns all the todo items matching the UUID and company.
@Override public List<TodoItem> getTodoItemsByUuidAndCompanyId( String uuid, long companyId) { return todoItemPersistence.findByUuid_C(uuid, companyId); }
[ "List<TodoItem> getAllTodoItem();", "ObservableList<CompanyItem> getCompanyItemList();", "public Cursor fetchAllTodos() {\n\t\treturn database.query(DATABASE_TABLE_1, new String[] { KEY_ROWID }, null, null, null,\n\t\t\t\tnull, null);\n\t}", "void getAllOrderItems();", "Flowable<List<PostItem>> getItemsByCu...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Increasing a value between 2 and 5
@Test public void test1(){ model = new Model(); player = new Player(1); param = new PlayerMoveParameters(player.getPlayerID(), model); player.setWpc(before); player.setFavorTokens(5); model.addPlayer(player); param.addParameter(1); param.addParameter(+...
[ "public void increase() {\r\n this.value = this.value + 1;\r\n }", "void increase(int number) {\n this.value += number;\n }", "public void increase() {\n this.increase(DEFAULT_INCREASE_DECREASE_VALUE);\n System.out.println(this.value);\n }", "public void increase(int incre...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Parses an item from a JSONObject
public Item fromJSON(JSONObject obj) { try { String name = obj.getString("name"); float originalPrice = (float) obj.getDouble("originalPrice"); float currentPrice = (float) obj.getDouble("currentPrice"); String dateAdded = obj.getString("dateAdded"); String url = obj.getString("url"); ...
[ "ItemStack deserializeItem(JsonElement json);", "public MovieItem(JSONObject json) {\n valid = parser(json);\n }", "private void parseItems (List<Item> items , String jsonstring) throws IOException, JSONException {\n\n Log.d(\"LOG_TAG\", \"jsonString Start Api = \" + jsonstring);\n\n\n }", ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Methods Public constructor of Game, initialices atributes
public Game() { this.players = new ArrayList<>(); this.words = new ArrayList<>(); readFile(); }
[ "public Game() {\n \n }", "public Game() {\n initComponents();\n intiB();\n }", "public Game()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(900, 600, 1); \n /*ff17 = new Fifa17();\n gow4 = new Gow4();\n h5 ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Define how the server should respond to an expected request. My current use cases don't include specific handling multipart responses, so I haven't implemented any.
public void thenReturn(int statusCode, String mimeType, byte[] responseBody) { thenReturn(statusCode, mimeType, responseBody, EMPTY_HEADERS); }
[ "private void handleRequest() throws Exception \r\n\t{\r\n\t\tparseRequest(request);\r\n\t\t\r\n\t\tif (request.isValid()) \r\n\t\t{\r\n\t\t\t/** Determine content type requested which can be html, image, text file */\r\n\t\t\tString contentType = getContentType(request.getRequestedResource());\r\n\t\t\t\r\n\t\t\ts...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Output is map from unqiue hashtags to frequencies
public void reduce(Text key, Iterable<LongWritable> values, Context output) throws IOException, InterruptedException { // Sum of appearances of given hashtag int sum = 0; for (LongWritable value : values) { long l = value.get(); sum += l; } output.write(key, new LongWritable(sum)); }
[ "public static void main(String[] args)\n {\n String s=\"1(1)2(2)3(3)4(4)5(5)6(6)7(7)8(8)9(9)10#\";\n // String s=\"1(1)2(2)3(3)4(4)5(5)6(6)7(7)8(8)9(9)10#(10)11#(11)12#(12)13#(13)14#(14)\";\n int[] dict = frequency(s);\n for(int i=0;i<dict.length;i++)\n {\n System.o...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
When the player clicks on the button Attack
public void attack(){ // If the player does not have enough stamina if(this.fight.getPlayer().getStamina() == 0) new WindowDisplayMessage("You need more stamina",this.windowGame); else // The player can attack this.fight.attack(this.fight.getPlayer()); this.windowGame.setEnabled(false); this.veri...
[ "private void attackButtonAction()\n {\n try {\n view.resetAttackText();\n view.getAttackButton().setEnabled(false);\n view.getPassAttackButton().setVisible(true);\n view.getPassButton().setVisible(true);\n view.getSaveMenuItem().setEnabled(true);\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Check if there are more simulations left.
public boolean moreExecutionsLeft(){ boolean hasMoreExectutions=false; if (this.firstExecution) return true; else { if (testerParams.isLoadChange()){ if (testerParams.getLoadIni()!=testerParams.getLoadMax()){ if ((testerParams.calculateLoad()+testerParams.getLoadStep())<=testerParams.getLoadMax...
[ "public boolean hasMoreSteps() {\n return size() > 1 || (size() == 1 && !top().isEvaluated());\n }", "public boolean isFinished()\n {\n return max == used.cardinality();\n }", "public static boolean hasNextState() {\n return !(executorIndex >= selectedRecording.size() -...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Checks if the link is an inflow link
public boolean isInflowLink() { return this.type == LinkType.INFLOW; }
[ "boolean isLinkable();", "@Override\n\tpublic boolean isInterCadseLink() {\n\t\treturn false;\n\t}", "boolean hasLink(String link);", "protected boolean isToBeCaptured (String link)\r\n {\r\n return (\r\n link.toLowerCase ().startsWith (mSource.toLowerCase ())\r\n && (-1 == lin...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Clears the value of the 'accountId' field
public Builder clearAccountId() { fieldSetFlags()[3] = false; return this; }
[ "private void clearAAccountid() {\n bitField0_ = (bitField0_ & ~0x00000001);\n aAccountid_ = 0L;\n }", "private void clearAccount() {\n \n account_ = getDefaultInstance().getAccount();\n }", "public void clear(){\n\t\taccount = 0;\n\t}", "public com.demo.cloudevents.avro.Account.Buil...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns a short description of the servlet.
@Override public String getServletInfo() { return "Short description"; }
[ "public String getServletInfo()\n {\n return \"Short description\";\n }", "public String getServletInfo() {\r\n\t\treturn \"Short description\";\r\n\t}", "public String getServletInfo()\r\n {\r\n\treturn \"Short description\";\r\n }", "@Override\n public String getServletInfo() {\n re...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public boolean remove(Object o) { return false; }
[ "@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" ] ] } }
For dataPregao: the value 0 if the argument Date is equal to this Date; a value less than 0 if this Date is before the Date argument; and a value greater than 0 if this Date is after the Date argument.
@Override public int compareTo( NotaNegociacao o ) { return this.dataPregao.compareTo( o.dataPregao ); }
[ "@Override\n public int compareTo(@NonNull Manga manga) {\n\n if (this.date == 0 && manga.getDate() == 0)\n return 0;\n if (this.date == 0)\n return 1;\n if (manga.getDate() == 0)\n return -1;\n return (int) (this.date - manga.getDate());\n }", "@...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ renamed from: t
public IW0 m(ViewGroup viewGroup, int i) { return new IW0(this, s(viewGroup, i), (YH0) ((Pair) this.K.get(i)).second); }
[ "void mo17520b(T t);", "void mo18792a(T t);", "String mo6121a(T t);", "@Override\n\tpublic String toString()\n\t{\n\t\treturn \"t\";\n\t}", "@Override\n\tpublic void tyre() {\n\t\t\n\t}", "void mo2116c(T t);", "void mo10031a(T t);", "public abstract Object mo34408b(T t);", "@Override\n\tpublic <T> T...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Method which provide the action listening
@Override public void onActionReceived(@NonNull RecycleEvent recycleEvent, int index, @NonNull BaseObject object) { if (viewCallback != null) { viewCallback.onActionReceived(recycleEvent, index, object); } }
[ "public interface IActionListner {\n public void onStartAction();\n}", "void listen(BiConsumer<String, T> action);", "protected void onAction(User sender, Channel channel, String action) {\r\n }", "public void setActionListeners();", "public interface ActionEventListener {\n\t/**\n\t * \n\t* Mo ta ch...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets (as xml) the "key" element
org.apache.xmlbeans.XmlString xgetKey();
[ "@attribute(value = \"\", required = true)\r\n\tpublic String getKey() {\r\n\t\treturn key;\r\n\t}", "public String getKey () {\n return key; \n }", "public String getKey() {\n return key;\n }", "public String getKey(){\n \treturn key;\n }", "public String getKey() {\r\n return...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ renamed from: a
public void mo921a(float f) { if (f != 0.0f) { throw new UnsupportedOperationException("Setting a non-zero elevation is not supported in this action bar configuration."); } }
[ "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" ] ] } }
This method allows to build a scope for the reference before its node has been registered in the repository. In this case you must provide the nearest available ancestor node as a context node and the location within it where the reference will be placed. Example: while typing a new statement in the middle of a stateme...
SScope getScope(SNode contextNode, @Nullable SContainmentLink link, int index);
[ "ExpressionTree getScope();", "private IScope scopeForStatementList(final StatementList stmtList, final int contextIndex, final IScope outerScope) {\n\t\tfinal List<IEObjectDescription> list = new ArrayList<IEObjectDescription>();\n\t\tfor (int i = 0; i < contextIndex; i++) {\n\t\t\tfinal Statement statement = st...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
calculate the over all gain using Mason's rules
public double getOverAllTF() { double delta = 1; int e = 1; int nth = 2; double sum = 0; for(int i=0;i<loops.size();i++) { sum += loopGains.get(i); } delta = delta - sum; for (int i = 0; i < nonTouchingLoops.size(); i++) { if (nonTouchingLoops.get(i).length == nth) { delta += e *...
[ "private double getOverallGain(double score, int level)\r\n/* */ {\r\n/* 411 */ double oGain = score;\r\n/* */ \r\n/* 413 */ if (CONFIG_NORMALIZE_OVERALLGAIN) {\r\n/* 414 */ oGain /= level;\r\n/* */ }\r\n/* */ \r\n/* */ \r\n/* */ \r\n/* */ \r\n/* */ \r\n/*...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get the flag that determines if the plates are rigid and have real world proportions or if the plate size is determined to fill out the space of the trellis as good as possible.
public boolean isFixedPlateProportion() { return fixPlateProportions; }
[ "boolean getScalable();", "public static boolean verifyplatesize(Mat src)\n\t {\n\t //Char sizes 45x77\n\t\t double aspect = 45.0f/77.0f;\n\t double charAspect = (float)src.cols()/(float)src.rows();\n\t double error = 0.35;\n\t double minHeight =15;\n\t double maxHeight =28;\n\t //We hav...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test of getWhatInformationText3 method, of class FQAPage.
@Test public void testGetWhatInformationText3Sv() { System.out.println("getWhatInformationText3"); when(language.isSwedish()).thenReturn(true); String expResult = "Hur information hanteras kan ibland skilja sig "; String result = instance.getWhatInformationText3(); assertTrue(result.startsWit...
[ "String getTextinformation();", "public TextInfo getTextInfo();", "public java.lang.String getTxt3 () {\n\t\treturn txt3;\n\t}", "@Test\n\tpublic void testGetDescription_fixture27_1()\n\t\tthrows Exception {\n\t\tDBTrigger fixture = getFixture27();\n\n\t\tString result = fixture.getDescription();\n\n\t\t// ad...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ access modifiers changed from: private / renamed from: a
public long m2317a(boolean z) { if (LuaWebView.this.f2664a == null) { IntentFilter intentFilter = new IntentFilter(); intentFilter.addAction("android.intent.action.DOWNLOAD_COMPLETE"); LuaWebView.this.f2664a = new DownloadBroadcastReceiver(); L...
[ "protected void a() {}", "private void a() {\n }", "@Override\r\n\tpublic void a2() {\n\t\t\r\n\t}", "protected void a()\n\t{\n\t\tsuper.a();\n\t}", "static void g(A a) {\n\t\tClass<? extends A> a1 = a.getClass();\n\t\tField x;\n\t\ttry {\n\t\t\tField[] fs = a1.getDeclaredFields();\n\t\t\tx = a1.getDecl...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Updates an existing Assignment. Stored Assignment is found by id in the given Assignment. Provided Assignment should have valid data associated.
void updateAssignment(Assignment assignment) throws IllegalArgumentException;
[ "public void updateAssignment(Assignment assignment) {\n testDAO.updateAssignment(assignment);\n }", "@RequestMapping(\"/update\")\n\tpublic Assignment update(@RequestParam Long assignmentId, @RequestParam String assignmentName, @RequestParam String assignmentDes) {\n\t\tAssignment assignment = assignme...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Checks if the time is up.
private boolean isTimeUp() { return ticks < World.getTicks(); }
[ "boolean timesUp() {\n\t\tif (hours==0 && minutes==0 && seconds==0)\n\t\t\treturn true;\n\t\telse\n\t\t\treturn false;\n\t}", "private boolean checkLastPowerUpTime() {\n return System.currentTimeMillis() - lastPowerUpTime >= 20000;\n }", "public void checkTime() {\n\t\tif(time == 30) {\n \ttime...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Calculates the length of this vector.
public float length() { return Mathf.sqrt(lengthSquared()); }
[ "public double lengthVector() {\n\t\treturn (double) MathHelper.sqrt_double(this.x * this.x + this.y * this.y + this.z * this.z);\n\t}", "public double length ()\n\t{\n\t\tdouble length = 0;\n\t\tPoint[] h = this.vertices;\n\t\tfor (int i = 1; i < vertices.length; i++)\n\t\t{\n\t\t\tlength += h[i-1].distance(h...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ If you want to use your own background, download the image you want, and change the following line to point to it like: new ImageBackground("file:/Users/joonspoon/Desktop/dinosaurLand.jpg");
private void go() { KeyboardFocusManager.getCurrentKeyboardFocusManager().addKeyEventDispatcher(this); Tortoise.penUp(); Tortoise.setSpeed(10); Paintable backgroundImage = new ImageBackground("file:/Users/League/Google Drive/league-images/treasure_hunt.jpg"); Tortoise.getBackgroundWindow().addPaintable(...
[ "public Background(String imagePath) {\n img = new ImageIcon(imagePath).getImage();\n }", "private void initializeBackground() {\n try {\n BufferedImage bufferedBackground = ImageIO.read(getClass().getResourceAsStream(\"/Resources/background/background.png\"));\n background = Swin...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
("..." means array) Code runs on main thread: Reponse/error/connection:
protected void onProgressUpdate(EventUpdate... eventArray) { if(eventArray != null && eventArray.length > 0){ EventUpdate event = eventArray[0]; if(event.exception != null) onExceptionEvent(event.exception); if(event.connected != null) onConnectionEvent(event.connected); if(event.response !...
[ "public final void run() {\n Map<String, List<String>> map;\n IOException iOException;\n int i;\n HttpURLConnection httpURLConnection;\n IOException e;\n Throwable th;\n IOException e2;\n this.zzlf.zzn();\n OutputStream outputStream = null;\n try...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Add's the provided value to the set for tracking
public void add(BytesRef value) { MurmurHash3.Hash128 hash = MurmurHash3.hash128(value.bytes, value.offset, value.length, 0, scratchHash); addHash(hash.h1); }
[ "EzyUpdateOperations<T> addToSet(String field, Object value);", "public void add(int item) {\n \t\tint present = 0;\n \t \n for(int i=0;i<set.size();i++) {\n if(set.get(i)==item) {\n present=1;\n }\n }\n if(present==0) {\n set.add(item);\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This event is triggered soon after onCreateView(). onViewCreated() is only called if the view returned from onCreateView() is nonnull. Any view setup should occur here. E.g., view lookups and attaching view listeners.
@Override public void onViewCreated(@NonNull View view, @Nullable Bundle savedInstanceState) { super.onViewCreated(view, savedInstanceState); btnCreate = view.findViewById(R.id.btnCreate); btnCamera = view.findViewById(R.id.btnCamera); btnGallery = view.findViewById(R.id.btnGallery)...
[ "@Override public void onViewInitialised() {\n super.onViewInitialised();\n }", "@Override\r\n\tpublic void onViewCreated(View view, Bundle savedInstanceState) {\n\t\tsuper.onViewCreated(view, savedInstanceState);\r\n\t}", "protected void onViewCreated(Bundle savedInstanceState) {\n }", "@Overrid...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Contexts: ProductImage returns ProductImage Constraint: ref=EString
protected void sequence_ProductImage(ISerializationContext context, ProductImage semanticObject) { if (errorAcceptor != null) { if (transientValues.isValueTransient(semanticObject, ModelPackage.Literals.PRODUCT_IMAGE__REF) == ValueTransient.YES) errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing...
[ "public void saveProductImage(ProductImage productImage);", "public abstract String getImageString();", "String getDefaultImage(Long productId);", "public String Get_Image() {\n\t\treturn null;\r\n\t}", "java.lang.String getExtImg();", "public String getImageName() { return _imageName; }", "@Override\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns if retry on connection failure, defaults to true.
public Boolean isRetryOnConnectionFailure() { return this.retryOnConnectionFailure == null ? true : this.retryOnConnectionFailure; }
[ "boolean isRetry();", "public boolean canRetry(){\n return retryCount<=maxRetryCount?true:false;\n }", "public boolean failure()\n {\n if(socket == null)\n return true;\n else\n return false;\n }", "public Boolean isRetryable() {\n return this.isRetry...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Checking if the actual character is from the same color
private static boolean isPieceFromActualColor(char c) { if (actualPlayerColor == 'W') { if (c != '.' && (c > 'A' && c < 'Z')) return true; } else if (actualPlayerColor == 'B') { if (c != '.' && (c > 'a' && c < 'z')) return true; } ...
[ "boolean sameColorChange(ColorChange c);", "boolean sameColor(ICard card);", "private boolean equalColor(Color c1, Color c2) {\n return c1.getR() == c2.getR()\n && c1.getR() == c2.getG()\n && c1.getB() == c2.getB();\n }", "public boolean similarColorTo(Card c);", "boolean hasColorR();", ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ renamed from: a
public static void m117098a(Context context, String str) { C7573i.m23587b(context, "context"); C7573i.m23587b(str, "bioUrl"); Intent intent = new Intent(context, ProfileEditBioUrlActivity.class); intent.putExtra("bio_url", str); context.startActivity(intent); ...
[ "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" ] ] } }
Returns the name of this tile's resource.
@Override public final String getFileName() { return "tile_highlight.png"; }
[ "@NotNull\n public String getName() {\n return resourceUrl.substring(nameStart);\n }", "public String getName() {\n if(this.name == null){\n this.name = \"untitled resource\";\n }\n return name;\n }", "public java.lang.String getResourceName() {\n java.lang.Object ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Constructeur vide de Voleur.
public Voleur() { }
[ "public Vierkant()\n {\n \n }", "public Vacina() {\n\t}", "public Video() {\n\t\tsuper();\n\t}", "public vista(){\r\n\r\n }", "public Voyager() {\n }", "public Vendedor() {\n initComponents();\n bloquear();\n cargar(\"\");\n }", "public Vozilo() {\n }", "pub...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ renamed from: a
public final void mo16657a(File file) { }
[ "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" ] ] } }
Created by Bastien on 24/06/14.
public interface UserController<T extends User, I extends Serializable> extends RestController<T, I> { @Secured({"IM_USER_ADMIN"}) @RequestMapping(method = RequestMethod.DELETE, value = "name/{name}/roles") @ResponseStatus(HttpStatus.NO_CONTENT) void removeAllRoleFromUser(@PathVariable("login") String l...
[ "@Override\n public void extornar() {\n \n }", "private static void EX5() {\n\t\t\r\n\t}", "protected void method_5557() {}", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n }", "@Override\n public int utilite() {\n return 0;\n }", "...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ renamed from: OooO0Oo reason: collision with other method in class
public static void m20812OooO0Oo() { if (!C9278ooooo0.m21180OooO00o() && !m20811OooO0OO() && f22491OooO00o == null && C9120oooO00oO.OooOO0() >= 0) { try { Context OooO00o2 = C9111oooO0000.OooO00o(); Intent launchIntentForPackage = OooO00o2.getPackageManager().getLaunc...
[ "protected void method_5557() {}", "@Override\n public void extornar() {\n \n }", "public abstract class_503 method_279();", "protected void method_2117() {\n }", "@Override\n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\r\n public void publicando() {...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets a complete list of parameters to the WPVSOperationMetadata.
public void setParameters110( OWSDomainType110[] parameters ) { if (this.parameters == null) { this.parameters = new HashMap<String, OWSDomainType110>(); } else { this.parameters.clear(); } if (parameters != null) { for (int i = 0; i < parameters.lengt...
[ "public void setParameters(NameValueList p ) {\n parms = p;\n }", "public void setParameterDefList(Definition[] parameterDefList);", "public void setParameters(final List<String> parameters)\n {\n this.parameters = parameters;\n }", "public void setParameterDeclarations(List<IParameterDe...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Exctraire les sattributs de OR de la clause Where et les mettre dans queryResult
public void ExtractOrFromWhere() { operationOR_AND("OR"); }
[ "@Test\n public void testTwoOrClauses() {\n checkForIdenticalFilterQueryTrees(\"select * from a where a = 1 OR a = 2 OR a = 3 OR b = 4 OR b = 5 OR b = 6\",\n \"select * from a where a IN (1,2,3) OR b IN (4,5,6)\");\n }", "public static void orQuerySearch() {}", "Query beginOr();", "ORexpression cr...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ renamed from: b
public MergePathsMode mo10037b() { return this.f1604b; }
[ "public abstract T zzs(B b2);", "public void b(ByteOrder bo) {\n/* 72 */ if (this.i != bo) {\n/* 73 */ this.i = bo;\n/* 74 */ this.h = a(bo);\n/* */ } \n/* */ }", "public void doSth(B b){\n\n }", "public abstract void mo14156a(B b, int i, int i2);", "@Override\n\tpublic v...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Retrieves cached result for the given item if already in cache
protected EEvaluationResult getCachedResult(ICpItem item) { if(fResults != null) return fResults.get(item); return null; }
[ "Serializable getCachedItem(String key);", "T getIfCached(Long id) throws RdbException;", "private Object cacheHit(String key) {\n Object cache = redisTemplate.opsForValue().get(key);\n // 从缓存获取数据,获取完数据之后,我们需要将数据返回,给页面渲染对吧!\n if (!StringUtils.isEmpty(String.valueOf(cache))){\n //...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the id of a valid ID validation Session from a validation request.
public String getValidationSessionId() { return validationSessionId; }
[ "public long getValidationid() {\n\t\treturn this.iValidationid;\n\t}", "public static Integer reviewId(HttpServletRequest request, boolean twoStepVerificationEnabled) {\n String parameterString = caseSensitiveParameterName(request.getParameterMap(), REVIEW_ID_PARAM);\n if (parameterString == null) {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end synpred217_JavaPlain $ANTLR start synpred218_JavaPlain
public final void synpred218_JavaPlain_fragment() throws RecognitionException { // C:\\Users\\Mayank Pidiha\\Documents\\MS CS SEM 3\\Software Maintenance\\Software Project\\oopie_mandar\\src\\grammar\\JavaPlain.g:954:9: ( '>' '>' '>' ) // C:\\Users\\Mayank Pidiha\\Documents\\MS CS SEM 3\\Software Maintenance\\Softw...
[ "@Override\n\tpublic void genJava(PW pw) {\n\n\t}", "@Test(timeout = 4000)\n public void test013() throws Throwable {\n StringReader stringReader0 = new StringReader(\"extends\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0, (-259), (-259), 98);\n JavaParserTokenManager j...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Computes 2D inverse DFT of complex data leaving the result in a. The data is stored in 1D array in rowmajor order. Complex number is stored as two float values in sequence: the real and imaginary part, i.e. the input array must be of size rows2columns. The physical layout of the input data has to be as follows: a[k12co...
public void complexInverse(final FloatLargeArray a, final boolean scale) { if (!a.isLarge() && !a.isConstant()) { complexInverse(a.getData(), scale); } else { int nthreads = ConcurrencyUtils.getNumberOfThreads(); if (isPowerOfTwo) { columnsl = 2 * columnsl; if ((nthreads > 1) && useThreads) { ...
[ "public void idft2(Complex[][] Complex_out, Complex[][] Complex_in) {\n \tint N_rows = Complex_in.length;\n \tint N_cols = Complex_in[0].length;\n\n \tint input_rows = N_rows;\n \tint input_cols = N_cols;\n\n \t// idft's require scaling\n \tdouble scale_factor = 1./(N_rows * N_cols);\n\n\n \t//...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Checks if given length is divisible by mod factor (with zero rest). This can be used to check of a byte array can be converted to an e.g. int array which is multiples of 4.
static void checkModLength(int length, int modFactor, String errorSubject) { if (length % modFactor != 0) { throw new IllegalArgumentException("Illegal length for " + errorSubject + ". Byte array length must be multiple of " + modFactor + ", length was " + length); } }
[ "public void checklength(int length) {\n\t}", "static boolean modThree(int[] nums) {\n if(nums.length < 3)\n return false;\n \n for(int i = 0; i <= nums.length - 3; i++) {\n if(nums[i] % 2 == nums[i+1] % 2 && nums[i] % 2 == nums[i+2] % 2)\n return true;\n }\n return fal...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
repeated .trak.grpc.gateway.v1.PromotionMessage promotions = 1;
public java.util.List<com.trak.grpc.gateway.v1.PromotionMessage> getPromotionsList() { return promotions_; }
[ "public interface promotion {\n\t\t/**\n\t\t * 根据分类查询促销信息\n\t\t */\n\t\tpublic String queryPromotionV2 = \"queryPromotionV2\";\n\n\t\t/**\n\t\t * 根据id查询促销信息\n\t\t */\n\t\tpublic String getPromotionProductsV2 = \"getPromotionProductsV2\";\n\t}", "@Override\n\tpublic void v_UC_Promocoes() {\n\t\t\n\t}", "grpc.tes...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Create a new default background figure.
public Figure createBackgroundFigure() { _displayString(); BasicFigure fig = new BasicFigure(new RoundRectangle2D.Double(0.0, 0.0, _width, _heigth, 8, 8)); fig.setFillPaint(_boxColor); return fig; }
[ "BackgroundImage createBackgroundImage();", "private void createBackground() {\n\t\tattachChild(new Sprite(400, 240, resourcesManager.playMenuBackgroundTexture, vbom) {\n\t\t\t@Override\n\t\t\tprotected void preDraw(GLState pGLState, Camera pCamera) {\n\t\t\t\tsuper.preDraw(pGLState, pCamera);\n\t\t\t\tpGLState.e...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
repeated .mesos.OfferID offer_ids = 6;
public org.apache.mesos.Protos.OfferID.Builder addOfferIdsBuilder( int index) { return getOfferIdsFieldBuilder().addBuilder( index, org.apache.mesos.Protos.OfferID.getDefaultInstance()); }
[ "void setOfferList(com.cdiscount.www.ArrayOfOffer offerList);", "com.cdiscount.www.ArrayOfOffer addNewOfferList();", "public void setNewSelectiveOfferIdList(java.lang.String[] param){\n \n validateNewSelectiveOfferIdList(param);\n\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the value of the 'allTheThings' field
public avro.complex_schema.allTheThings.Builder setAllTheThings(java.util.List<java.lang.Object> value) { validate(fields()[3], value); this.allTheThings = value; fieldSetFlags()[3] = true; return this; }
[ "public void setEverything(boolean set) { everything = set; }", "public pw.oliver.jmkb.avroclasses.Datastream.Builder setThing(java.lang.CharSequence value) {\n validate(fields()[8], value);\n this.Thing = value;\n fieldSetFlags()[8] = true;\n return this;\n }", "public void setAllFood(Fo...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Read the stream fully into a byte array. The stream is read until the endofstream condition is reached.
protected byte[] readResponseBody(InputStream inputStream) throws AnaplanAPITransportException { try { ByteArrayOutputStream baos = new ByteArrayOutputStream(); final int bufferSize = 32768; byte[] buffer = new byte[bufferSize]; int read = 0; ...
[ "private byte[] readStreamDataFully(InputStream inputStream) throws IOException\n {\n // this dynamically extends to take the bytes you read\n ByteArrayOutputStream byteBuffer = new ByteArrayOutputStream();\n\n // this is storage overwritten on each iteration with bytes\n int bufferSi...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sends a password reset email to the email associated with the account
@Override public void onClick(View view) { if (view == reset) { mAuth.sendPasswordResetEmail(email.getText().toString().trim()).addOnCompleteListener(new OnCompleteListener<Void>() { @Override public void onComplete(@NonNull Task<Void> task) { ...
[ "void sendPasswordResetMail(String destinationEmail, PasswordResetRequest passwordResetRequest);", "void sendPasswordResetEmail(User user, String newPassword) throws Exception;", "void sendPasswordResetEmail(User user, String newPassword);", "void sendPasswordRecoveryEmailTo(String email);", "public static ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Cachamos el click y lanzamos los Fragments
@Override public void onClick(View v) { switch (v.getId()) { case R.id.btnFragmentA: showProfile(userName); break; case R.id.btnFragmentB: showList(); break; } }
[ "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\treplaceFrag(REFLECTION_FRAGMENT);\n\t\t\t}", "@Override\n public void onClick(View v) {\n Fragment_ListaPartecipanti fragment_partecipanti = new Fragment_ListaPartecipanti();\n\n Bundle b=new Bundle();\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Finds the user by email
@Override public AppUser findByEmail(String s) throws UsernameNotFoundException { AppUser appUser = appUserRepository.findByEmail(s); if (appUser == null) { throw new UsernameNotFoundException("Invalid username or password"); } return appUser; }
[ "@Override\n\tpublic User findUserByEmail(String email) {\n\t\t\n\t\t// create query with HQL to get user\n\t\tQuery<User> query = currentSession().createQuery(\"from User where user_email=:uEmail\", User.class);\n\t\tquery.setParameter(\"uEmail\", email);\n\n\t\t// check if valid user and is exist or null\n\t\tUse...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub Intent i = new Intent(getApplicationContext(), XMLParser2.class); i.putExtra("did", values.get(position).getDid()); startActivity(i);
@Override public void onClick(View arg0) { }
[ "@Override\r\n public void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) {\n\r\n ArrayList values_tokken = new ArrayList();\r\n String s = obj.getItemAtPosition(arg2).toString();// {PersonName=DZCSDd, BookName=sdcdc}\r\n\r\n StringTokenizer ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
The functionality of the date picker was mostly taken from the exercise project 05_CustomAdapter_Solution
private void initDate() { // By clicking on the EditText for the Date, you will get a // DatePickerDialog to pick the date when a document was created / printed etc. inputDate = findViewById(R.id.date_edit); inputDate.setFocusable(false); inputDate.setOnClickListener(new View.OnC...
[ "public void datepicker() {\n final Dialog dialog = new Dialog(PayClick.this);\n // hide to default title for Dialog\n dialog.requestWindowFeature(Window.FEATURE_NO_TITLE);\n\n dialog.setContentView(R.layout.appointments_datetime_picker_dialog);\n\n mDatepicker_Dialog = (DatePicke...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Create a new sheet
public static void populateSheet(Workbook workbook, List<RichiestaInterventiBean> richieste, String sheetName ){ Sheet sheet = workbook.createSheet(sheetName); // Create header row Row header = sheet.createRow(0); Cell cell = header.createCell(0); if("assetPc".equals(sheetName)){ // Code ...
[ "public Sheet createSheet() {\n\t\tSheet sheet = new Sheet(sheets.size(), this);\n\t\tsheets.add(sheet);\n\t\treturn sheet;\n\t}", "void createSheet(String spreadsheetId, String sheetTitle, List<List<String>> sheetRows, List<String> lockedCellEditors) throws SheetsException;", "protected Sheet createSheet() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns all ItemGroupProperties contained within this container
public Collection<EJItemGroupProperties> getAllItemGroupProperties();
[ "@Override\n\tpublic ArrayList<PropertySet> getProperties() {\n\n\t\tArrayList<PropertySet> allProperties = new ArrayList<>(super.getProperties());\n\t\tallProperties.addAll(parent.getProperties());\n\t\treturn allProperties;\n\t}", "public Map<String, LogicalProperty> getAllProperties() {\n return propert...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Reset all of the values modified during the animation.
@Override public void onAnimationEnd(Animator animation) { mResultEditText.setTextColor(resultTextColor); mResultEditText.setScaleX(1.0f); mResultEditText.setScaleY(1.0f); mResultEditText.setTranslationX(0.0f); mResultEditText.s...
[ "public void reset() {\n values = new Vector<Point>();\n repaint(0, 0, getWidth(), getHeight());\n }", "public void reset() {\r\n\t\tset(0.0f);\r\n\t}", "public void resetAnimation() {\n stopAnimation();\n startAnimation();\n }", "void resetAllValues();", "public synchronized void re...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Inherited fields / protected String title; protected String message; Setter methods / See SymbolizeDialog::Set_attrs
public void Set_attrs() { final Session session = Session.Get_instance(); final Context context = Page.Get_context(); final Puzzle puzzle = session.Get_current_puzzle(); final MetaDataAccess meta_dao = MetaDataAccess.Get_instance(); String message = puzzle.Get_hint(); if...
[ "public ADialog(String title) {\n this.title = title;\n }", "public StandardDialog()\n {\n init();\n }", "MaterialNameDialog(String description) {\r\n super(description);\r\n }", "public SaveDialog() {\n\t super(\"SaveDialog\");\n\t initComponents();\n\t}", "private vo...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Method directionUp The method handles the coordinates modification if a critter decides to move up on the world.
private void directioUp() { if (this.y_coord == 0) this.y_coord = Params.WORLD_HEIGHT-1; else { this.y_coord-=1; } }
[ "private void moveCharacterUp(){\n\t\tif (this.y - (this.spriteIdleDown.getHeight()*Core.multiplier /*+1*/) > 0\n\t\t\t\t&& noObstacleInTheWay(\"up\")){\n\t\t\tthis.y --;\n\t\t}\n\t}", "public void moveUp() {\n coordinates.y = coordinates.y - coordinates.amount;\n coordinates.recalculate(); \...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
end DefineImage This method uploads the image and converts its data into the LUV space. If another conversion is desired data may be uploaded into this class via the procedure UploadInput(). Usage: DefineBgImage(data, type, height, width) Pre: data_ is a one dimensional array of unsigned char RGB vectors type is the ty...
public void DefineBgImage(int[] data_, ImageType type, int height_, int width_) { //-bp- Not sure why this method is necessary as the code seems identical to the exiting // DefineImage method. try { // obtain image dimension from image type int dim; if (type == ImageTy...
[ "protected synchronized void processImage(byte[] data, int width, int height) {\n int f = SUBSAMPLING_FACTOR;\n\n if (img == null || img.width() != width/f || img.height() != height/f) {\n img = opencv_core.IplImage.create(width / f, height / f, IPL_DEPTH_8U, 1);\n grayImage = op...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
check if a product falls within a given year range
public boolean matchYear (String yearRange) { int length = yearRange.length(); int year1; int year2; boolean match = false; //if a single year if (length == 4) { year1 = Integer.parseInt(yearRange); match = (year == year1); //of the f...
[ "public boolean inYear(int year) {\n return(year >= this.year);\n }", "boolean checkYear(String first4)\n {\n int year = Integer.parseInt(first4);\n\n return year <= 2014 && year >= 2000;\n\n }", "public static boolean validateYear(int from, int to){\r\n\t\tif (from > to || from > ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
no description or due date
@Test public void parse_allOptionalFieldsMissing_failure() { assertParseFailure(parser, ROOM_NUMBER_SEVEN_DESC + TASK_NUMBER_DESC_ONE, Messages.MESSAGE_TASK_NOT_EDITED); }
[ "private static boolean empty(Date dueDate) {\n\t\treturn dueDate == null;\n\t}", "public void setDueDate(String date) {\n dueDate = date;\n }", "protected Deadline(String description, String by) {\n super(description);\n assert by != null : \"due time is null\";\n\n try {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
if the execution queue is full, we are backlogging work. add to a queue until the size is full, and ensure we remove from the queue when workers become available.
@Override public void rejectedExecution(final Runnable r, final ThreadPoolExecutor e) { log.error("execution of {} rejected terminated={}, shutdown={}", r, this.isTerminating(), this.isShutdown()); throw new PostgresqlCapacityExceededException(); }
[ "private void grow() {\n/* 917 */ int i = this.queue.length;\n/* 918 */ int j = i + (i >> 1);\n/* 919 */ if (j < 0)\n/* 920 */ j = Integer.MAX_VALUE; \n/* 921 */ this.queue = (RunnableScheduledFuture<?>[])Arrays.<RunnableScheduledFuture>copyOf((RunnableScheduledFuture[])this.que...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public void handleMessage(Message msg) { super.handleMessage(msg); switch (msg.what) { case 101: MyUntils.cancleProgress(); if (data == null) { if (Statics.internetcode != -1) { MyUntils.myToast(AdvSearchActivity.this, Statics.internetstate[Statics.intern...
[ "@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" ] ] } }