query
stringlengths
8
1.54M
document
stringlengths
9
312k
negatives
listlengths
19
20
metadata
dict
Generate a paragraph (<P>) element from an IntroText. The paragraph element will contain a span element that will contain the actual text. Providing the span element provides additional flexibility for CSS designers. <P><SPAN>spanContent</SPAN></P>
private HTMLElement generateIntroText(IntroText element, int indentLevel) { HTMLElement textElement = generateTextElement( IIntroHTMLConstants.ELEMENT_PARAGRAPH, null, IIntroHTMLConstants.SPAN_CLASS_TEXT, element.getText(), indentLevel); return textElement; }
[ "private HTMLElement generateTextElement(String type, String spanID,\n \t\t\tString spanClass, String spanContent, int indentLevel) {\n \t\t// Create the span: <SPAN>spanContent</SPAN>\n \t\tHTMLElement span = new HTMLElement(IIntroHTMLConstants.ELEMENT_SPAN);\n \t\tif (spanID != null)\n \t\t\tspan.addAttribute(IIn...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Select BewonerTaken uit de database met een bepaald bewonerID
public List<BewonerTaak> selectByBewonerID(int bewonerID) { String query = "select * from bewoner_taak where bewonerID = " + bewonerID; return select(query); }
[ "private List<String> getTrainerBag(int trainerID){\n return jdbcTemplate.query(\"select pokemon.name from pokemon inner join pokemons_trainer \" +\n \"on pokemon.id = pokemons_trainer.pokemon_id where(pokemons_trainer.trainer_id = '\" + trainerID +\"') \" +\n \"...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Server broadcast running game message from another player.
void receiveRunningGameMessage(String fromPlayer, String msg) throws RpcException;
[ "private void broadcast(String message)\n \t{\n \t\tfor(int i = 0; i < players.length; i++)\n \t\t{\n // PROTOCOL\n \t\t\tplayers[i].sendMessage(message);\n // PROTOCOL\n \t\t}\n \t}", "public void broadcastMessage(String message)\r\n {\r\n Object[] rplayers = playerstate.keySet().toArray();\r\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Update the users level on the dashboard.
public void updateLevel() { String name = Configuration.getInstance().username; String pass = Configuration.getInstance().password; ScoreController scoreController = new ScoreController(new User(name, pass)); Score userScore = scoreController.getScore(name); levelLabel.setText(St...
[ "public void setUserLevel(Integer userLevel) {\n this.userLevel = userLevel;\n }", "public void setUserLevel(int userLevel) {\n\t\t\tthis.userLevel = userLevel;\n\t\t}", "public void setUserLevel(Byte userLevel) {\n this.userLevel = userLevel;\n }", "public void onUserChange() {\n t...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test of addDevice method, of class Model.
@Test public void testAddDevice() { System.out.println("addDevice"); final UUID uid = UUID.randomUUID(); final MobileDevice dev = new MobileDevice(uid); final Model instance = new Model(); final boolean expResult = true; final boolean result = instance.addDevice(dev);...
[ "@Test\n public void addDeviceTest() throws ApiException {\n Device device = null;\n // DeviceEnvelope response = api.addDevice(device);\n\n // TODO: test validations\n }", "Device addDevice(Device device);", "@Test\n public void testSaveDevices2() {\n System.out.println(\"s...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test of crossover method, of class BitString.
@Test public void testCrossoverOne() { System.out.println("crossover one point"); int[] father = new int[]{ 1, 1, 1, 0, 1, 0, 0, 1, 0, 0, 0 }; int[] mother = new int[]{ 0, 0, 0, 0, 1, 0, 1, 0, 1, 0, 1 }; BitString instance = new BitString(father, null, Crossover.SINGLE_POINT, 1.0, 0....
[ "@Test\n public void testCrossoverTwo() {\n System.out.println(\"crossover two point\");\n int[] father = new int[]{ 1, 1, 1, 0, 1, 0, 0, 1, 0, 0, 0 };\n int[] mother = new int[]{ 0, 0, 0, 0, 1, 0, 1, 0, 1, 0, 1 };\n BitString instance = new BitString(father, null, Crossover.TWO_POINT...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
System.out.println(" \n new notification \n " + notification); mNotificationList.getValue().add(0, notification);
public void addNotification(String notification){ System.out.println("added in view model and now moving to adpater"); mViewAdapter.addNotification(notification); }
[ "Notification addNotification(Notification notification);", "private void addToNotificationList(YangNode curNode) {\n notificationNodes.add(curNode);\n }", "public void setNewNotificationMessage() {\n newNotificationMessage.insert(0, newLine + \"-----------------------------\" +\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test if Customers are preloaded.
@Test public void testPreloadedCustomersExists() throws IOException, JSONException { HttpResponse resp = RequestExecutionHelper.executeGetRequest( ENTITY_NAME + "?$inlinecount=allpages&$format=json", true); assertEquals("Mismatch in the number of preloaded customers", 41, RequestExecutionHelper.getInlin...
[ "protected boolean isPreLoaded() {\n return preLoaded.get();\n }", "protected boolean containsCustomer() {\n return customer.getOptional().isPresent();\n }", "public boolean loadInitPrecomputed() {\n\n boolean exists = false;\n try {\n KtK coreUserKtK = cache.getKtK(...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Executed at the stage of the game where the two players are fighting against each other. Switches between a player selecting an action and executing that same action. Afterwards the other player does the same until one of the players is left without figures
private void playGame() { if (selectedAction == null) { selectedAction = actionMenu.getAction(clickam); return; } doAction(); }
[ "private void doAction() {\n if (doer == null) {\n doer = currentPlayer.getFigureOnPos(clickb);\n }\n if (doer != null) switch (selectedAction) {\n case \"Attack\" -> executeAttack();\n case \"Move\" -> executeMove();\n case \"Heal\" -> executeHeal();...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get the value of interestList at specified index
public String getInterestList(int index) { return this.interestList[index]; }
[ "public E get(int index) {\n return myList.get(index);\n }", "int getValueIndexFromListIndex(int listIndexIn) {\n\t\treturn valueIndexList[listIndexIn];\n\t}", "public Object getValue(int index);", "public static Integer get(FListInteger list, int index) {\n return list.get(index);\n }", ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Return true if `rect' is empty (that is, if it has zero width or height), false otherwise. A null rect is defined to be empty. APISince: 2.0
@Generated @CFunction public static native boolean CGRectIsEmpty(@ByValue CGRect rect);
[ "@Generated\n @CFunction\n public static native boolean CGRectIsNull(@ByValue CGRect rect);", "private boolean isRectClearOfRooms(Rect rect) {\n\t\tboolean result = rect.isInside(validRect);\n\t\tfor (Room room : rooms) {\n\t\t\tif (room.area.overlaps(rect)) {\n\t\t\t\tresult = false;\n\t\t\t\tbreak;\n\t\t\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Return array with indices for a given set of variables (as strings), names not found will not be included.
private int[] getIndices(String[] fieldsNames){ ArrayList<Integer> fieldsInt = new ArrayList(fieldsNames.length); Integer found; for (String name : fieldsNames) { found = headerMap.get(name); if (found == null) { System.out.println("La columna " + name + ...
[ "protected int[] lookupIndices(char[] chars) {\n\t\tint[] result = new int[chars.length];\n\t\tfor (int i = 0; i < chars.length; i++) {\n\t\t\tint index = charToIndex(chars[i]);\n\t\t\tif (index == -1) {\n\t\t\t\treturn null;\n\t\t\t} else {\n\t\t\t\tresult[i] = index;\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}", "...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
fix parameters for StateTracker values come from run013
public static void fixStateTracker013(){ double[] parameters = getStateTrackerParams013(); for(int i = ParamList.ST_START; i <= ParamList.ST_END; i++){ ParamList.setFixedValue(i, parameters[i-ParamList.ST_START]); } }
[ "public static void fixStateTracker010(){\n double[] parameters = getStateTrackerParams010();\n for(int i = ParamList.ST_START; i <= ParamList.ST_END; i++){\n ParamList.setFixedValue(i, parameters[i-ParamList.ST_START]);\n }\n }", "public static void fixStateTracker014(){\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Check if a piece's Speed is too fast for it to be getting new data and if a reserved pieced failed to get data within 120 seconds
private void checkSpeedAndReserved() { // only check every 5 seconds if(mainloop_loop_count % MAINLOOP_FIVE_SECOND_INTERVAL != 0) return; final int nbPieces =_nbPieces; final PEPieceImpl[] pieces =pePieces; //for every piece for (int i =0; i <nbPieces; i++) { // placed before null-check in case...
[ "boolean hasShouldSlow();", "private void checkChargeTime() {\n\t\tif (elapsedTimeSeconds > chargeTimeP1) {\n\t\t\tplayerCharge.put(dolphinNodeOne, false);\n\t\t}\n\t}", "public boolean CheckTimeInLevel(){\n \n Long comparetime = ((System.nanoTime() - StartTimeInLevel)/1000000000);\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
find invoices by specified billable customer pk and billing period.
public Collection findByBillableCustomerPK(BillableCustomerPK custPK, BillingPeriod period) throws FinderException, RemoteException;
[ "public Invoice findByBillingPeriod(AccountPK pk, BillingPeriod period) \n\t\t\tthrows FinderException, RemoteException;", "public List getActivePaymentRequestsByPOIdInvoiceAmountInvoiceDate(Integer poId, KualiDecimal invoiceAmount, Date invoiceDate);", "public List<Invoice> findByCustomerContaining(String cust...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Return the map of base tables to draft tables.
public Map<String, String> draftTableMap() { return draftTableMap; }
[ "java.util.Map<java.lang.String, com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.Table>\n getTablesMap();", "private List getMappingTablesInternal() {\n MappingTable primary = getPrimaryMappingTable();\n List tables = new ArrayList();\n\n if (primary != null) {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Recupera o valor de codigoSituacaoAprovacao.
public Short getCodigoSituacaoAprovacao() { return codigoSituacaoAprovacao; }
[ "public void setCodigoSituacaoAprovacao(Short codigoSituacaoAprovacao) {\n\t\tthis.codigoSituacaoAprovacao = codigoSituacaoAprovacao;\n\t}", "public SituacaoRegistroEnum getSituacaoAprovacao() {\n\t\tif ((situacaoAprovacao == null) && (codigoSituacaoAprovacao != null)) {\n\t\t\tsituacaoAprovacao = SituacaoRegistr...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Writes backLinks list as new URLs to url table in database. There may be a case where a backlink may already exist as a url in the table, when it points to another target already. In this case, then do not add it again to the url table, but just use its url_id later to add just the new link to the link table.
private void linksToNewSEOMozURLs(List<URLPlusDataPoints> backLinks, URL currentURL) { URLDBService urlDBUnit = new URLDBService(); String domainName; String urlPlusHttp; Date todaysDate = DateUtil.getTodaysDate(); ////////////////// // comment this out for now..... think about moving this fun...
[ "public void addNewBackRef(LinkModel linkModel) {\r\n\t\tbackRefs.put(linkModel.getLinkName(), linkModel);\r\n\t}", "private void insertLinksIntoQueue(){\r\n\t\tfor (String link : links) {\r\n\t\t\tthis.db.insertIntoWebQueue(this.url, link);\r\n\t\t}\r\n\t\t\r\n\t}", "private void saveHashURL() {\n\t\tLinkedLis...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
A boundary type is associated with each task and its visibility to other agents. The returned type can be one of ( INCOMING | SOURCE ) [ & ( UNKNOWN | TERMINAL | OUTGOING ) ] or ( INTERNAL ) or ( TERMINAL | OUTGOING | UNKNOWN ) where optional flags are given in []
public int getBoundaryType( TaskLog tl ) { int result = 0 ; UIDStringPDU uid = ( UIDStringPDU ) tl.getUID() ; if ( !( tl instanceof MPTaskLog) ) { if ( tl.getParent() == null ) { result |= BoundaryConstants.SOURCE ; } else if ( !tl.getCluster(...
[ "ObstacleType getType();", "public abstract BarrierType getBarrierType();", "interface GAAllele {\r\n interface Type {\r\n int ENUMERATED = 1;\r\n int BOUNDED = 2;\r\n int DISCRETIZED = 3;\r\n }\r\n\r\n interface BoundType {\r\n int NONE = 0;\r\n int INCLUSIVE = 1;\r\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get the binder from an AbstractModule.
public static Binder binder(Object module) { if (module instanceof AbstractModule) { try { Method method = AbstractModule.class.getDeclaredMethod("binder"); if (!method.isAccessible()) { method.setAccessible(true); } return (Binder) method.invoke(module); } catc...
[ "AbstractModule getGuiceModule();", "Binding getBinding();", "private IBinder getNvRAMAgentIBinder() {\n Class<?> clazz = null;\n try {\n clazz = Class.forName(\"android.os.ServiceManager\");\n } catch (ClassNotFoundException e) {\n e.printStackTrace();\n }\n\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
The persistence interface for the p r registration service. Caching information and settings can be found in portal.properties
public interface PRRegistrationPersistence extends BasePersistence<PRRegistration> { /* * NOTE FOR DEVELOPERS: * * Never modify or reference this interface directly. Always use {@link PRRegistrationUtil} to access the p r registration persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regen...
[ "void setPersistenceManager(RegistrationPersistenceManager persistenceManager);", "RegistrationPersistenceManager getPersistenceManager();", "public AmfRegistrationPersistence getAmfRegistrationPersistence() {\n\t\treturn amfRegistrationPersistence;\n\t}", "@ProviderType\npublic interface SubscriptionRegistra...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Service interface delcaring methods to access Industry Type data
public interface IndustryTypeService { public void addIndustryType(IndustryType industryType); public void updateIndustryType(IndustryType industryType); public List<IndustryType> listIndustryTypes(); public IndustryType getIndustryTypeByID(int id); public void removeIndustryType(int id); }
[ "public interface ObjectTypeService {\n /**\n * Retrieve an ObjectType by code/id.\n * \n * @param objectTypeCode\n * @return an ObjectType that matches this code\n */\n public ObjectType getByPrimaryKey(String objectTypeCode);\n\n /**\n * Returns a list of basic expense objects fro...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the allScopes value for this WUPropertiesToReturn.
public void setAllScopes(java.lang.Boolean allScopes) { this.allScopes = allScopes; }
[ "public java.lang.Boolean getAllScopes() {\n return allScopes;\n }", "public void setAllProperties(java.lang.Boolean allProperties) {\n this.allProperties = allProperties;\n }", "public Set<Scope> getScopes();", "public Set<ScopeActionKey> buildAllRights();", "@ApiModelProperty(example =...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
end buildHttpGet method Builds HttpPostRequest object.
public Request<E, T> buildHttpPost () { return new HttpPostRequest<E, T>(this); }
[ "public Request<E, T> buildHttpGet ()\n\t{\n\t\treturn new HttpGetRequest<E,T>(this);\n\t}", "protected HttpRequest createPostHttpRequest() throws IOException {\n HttpRequest.Builder builder = HttpRequest.newBuilder().POST(HttpRequest.BodyPublishers.ofString(request.toJsonBodyInsert()));\n setServic...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Customer create new password when registered successfully
@PostMapping(value = "/create_password") @Transactional public ResponseEntity<?> create_password(@RequestBody RequestDTO<CreatePasswordRequest> req) { //validate auth request CreatePasswordRequest passwordRequest = req.init(); String uuid = passwordRequest.getUuid(); joiner = n...
[ "public void generateNewPassword() {\n\n }", "public void updatePassword(Customer customer);", "void onChangePasswordSuccess(ConformationRes data);", "String getNewPassword();", "public Boolean registerUser(UserCreateDTO u, String unencryptedPassword);", "void onPasswordSuccess();", "public void logi...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Accessor method for the file controller.
public FileController getFileController() { return fileController; }
[ "public File getFileValue();", "public interface IFilesController {\n /**\n * This method is used to create a file.\n *\n * @param fileName This parameter is the name of the file that should be created.\n * @throws IOException An error might occur at creating files, that already exist or that c...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get tasks with the max actual duration.
public List<Task> getMaxActualDuration() { addValuesActual(); double greatestDuration = getMax(); clear(); return getMatchingActualTasks(greatestDuration); }
[ "public List<Task> getMaxDuration() {\n\taddValuesPlanned();\n\tdouble greatestDuration = getMax();\n\tclear();\n\treturn getMatchingPlannedTasks(greatestDuration);\n }", "public TimeValue getMaxTaskWaitTime() {\n final var oldestTaskTimeMillis = allBatchesStream().mapToLong(Batch::getCreationTimeMillis...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
GAE admins have admin access to everything. They also have OWNER access if they are in the RegistrarContacts. They also have OWNER access to the Admin Registrar. They also have OWNER access to nonREAL Registrars. (in other words they don't have OWNER access only to REAL registrars owned by others)
@Test void getAllClientIdWithAccess_gaeAdmin() { AuthenticatedRegistrarAccessor registrarAccessor = new AuthenticatedRegistrarAccessor( GAE_ADMIN, ADMIN_CLIENT_ID, SUPPORT_GROUP, lazyGroupsConnection); assertThat(registrarAccessor.getAllClientIdWithRoles()) .containsExactly( ...
[ "public Object getSystemPermissionAdmin();", "@Test\n void testGetRegistrarForUser_notInContacts_isAdmin() throws Exception {\n expectGetRegistrarSuccess(\n REAL_CLIENT_ID_WITHOUT_CONTACT,\n GAE_ADMIN,\n \"admin admin@gmail.com has [ADMIN] access to registrar NewRegistrar.\");\n verify...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method should start a new game of Freecell using the provided model, number of cascade and open piles and the provided deck. If "shuffle" is set to false the deck must be used asis, else the deck should be shuffled. Ask provided model to start a new game with given parameters then run game as follows. 1. Transmit ...
void playGame(List<K> deck, FreecellOperations<K> model, int numCascades, int numOpens, boolean shuffle) throws IllegalStateException, IllegalArgumentException;
[ "public void playGame(List<K> deck, FreecellOperations<K> model, int numCascades, int numOpens,\n boolean shuffle) throws IllegalArgumentException, IOException;", "void playGame(MarbleSolitaireModel model) throws IllegalArgumentException, IllegalStateException;", "public void playGame(Marb...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Not needed, no properties to update.
@Override public void updateProperties() { // unneeded }
[ "@Override\n\t\t\t\tpublic void pintar() {\n\t\t\t\t\t\n\t\t\t\t}", "private ProtocolWaveletUpdate() {\n initFields();\n }", "@Override\n public boolean isMutable() {\n return true;\n }", "@Override\r\n\t\t\tpublic void atras() {\n\t\t\t\t\r\n\t\t\t}", "protected void forceUpdate()\n\t{\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the new penState.
public void setPenState(boolean state) { this.penState=state; }
[ "public void saveState() {\n savedPen.setValues(pm.pen);\n }", "public void setPen( boolean isDrawing ){\n\t\tthis.isDrawing = isDrawing;\n\t}", "void updatePenUp(int turtleIndex, boolean penState);", "public void penDown() {\n penDown = true;\n }", "public void setPenColor(Color penColor) {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the player's score at given level.
public void setPlayerScore(int aLevel, int aScore) { if (playerScore[aLevel-1] <= aScore) playerScore[aLevel-1] = aScore; }
[ "public void setLevelScore(int level, int score) {\n setPlayer1LevelScore(level, score);\n }", "@Override\n public void setLevel(int level) {\n _gameScore.setLevel(level);\n }", "public void setPlayer1LevelScore(int level, int score) {\n ensureSize(levelScoresPlayer1, level + 1);\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Reads one line of input from the console prompting the given message, providing the opportunity for others to get decisions or data from the user.
public String getInput(String message) throws IOException { System.out.print(">> "+message+" "); return consoleIn.readLine(); }
[ "private void readInput() {\n\t\t\ttry {\n\t\t\t\tString input = this.reader.readLine();\n\t\t\t\tif (input == null) {\n\t\t\t\t\trunning = false;\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tconnector.readMessage(input);\n\t\t\t} catch (IOException e) {\n\t\t\t\trunning = false;\n\t\t\t\tString error = \"Error reading: ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
click on add if section exist
public static void verifySectionToClickAdd() throws InterruptedException, MalformedURLException { // check if section fields exist by scrolling and then click on it try { CommonUtils.getdriver().findElementByAndroidUIAutomator( "new UiScrollable(new UiSelector()).scrollIntoView(text(\"ADD\"));").click(); ...
[ "public void addSectionIcon()\n\t{\n\t\t//To check the status of \"Continued_Execution\" parameter, if it is set to NO it will skip this method, if not it will resume the execution \n\t\tif(oParameters.GetParameters(\"Continued_Execution\").equalsIgnoreCase(\"No\"))\n\t\t{\t\t\t\n\t\t\t//Adding step result to repor...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the attribute value for TemplatePayment, using the alias name TemplatePayment
public Number getTemplatePayment() { return (Number)getAttributeInternal(TEMPLATEPAYMENT); }
[ "OrderPayment getOrderPaymentTemplate();", "public org.sen.schemas.data.TPayment getPayment() {\r\n return payment;\r\n }", "public String getAccountPayment() {\r\n return accountPayment;\r\n }", "public String getNumberPayment() {\n return (String)getAttributeInternal(NUMBERPAYMENT...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ CERTIFICATE FILE FORMAT: INT > BYTE[] > INT > BYTE[] > INT PublicKeyArrayLength > PublicKey > PrivateKeyArrayLength > PrivateKey > KeyExponent The first int denotes the length of the first byte array. The second int denotes the length of the second byte array. Takes a keygroup, saves that keygroup as a certificate fi...
private void saveCertificate(KeyGroup keys) { System.out.println("Please enter a name for the certificate file."); Scanner in = new Scanner(System.in); String name = in.next(); name = name + ".bin"; //System.out.println("Please enter a filepath indicating where you want the file ...
[ "public void writeToP12(X509Certificate[] certChain, PrivateKey key, char[] password, File file) {\n OutputStream stream = null;\n try {\n \tX509Certificate targetCert = certChain[0];\n stream = new FileOutputStream(file);\n KeyStore ks = KeyStore.getInstance(\"PKCS12\", \...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Add Shared Scope by registering it in the KM and adding the scope as a Shared Scope in AM DB.
@Override public String addSharedScope(Scope scope, String tenantDomain) throws APIManagementException { Set<Scope> scopeSet = new HashSet<>(); scopeSet.add(scope); int tenantId = APIUtil.getTenantIdFromTenantDomain(tenantDomain); addScopes(scopeSet, tenantId); Map<String, K...
[ "public void addScope()\n {\n scopes.add(new ScopeSymbols());\n }", "@Override\n public void updateSharedScope(Scope sharedScope, String tenantDomain) throws APIManagementException {\n\n int tenantId = APIUtil.getTenantIdFromTenantDomain(tenantDomain);\n Map<String, KeyManagerDto> te...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
update build queue for next tick
private void tickQueue() { //for every task in the build queue for (int i = 0; i < buildQueue.size(); i++) { BuildTask bt = buildQueue.get(i); //if a construct has reached it's buildtime... if (bt.tick() == 0) { //...and the construct is a unit ...
[ "public void updateQueues(){\n \tqueue.updateQueues();\n }", "private void updateQueue() {\n\t\tfQueue.update();\n\t\tfQueue.permute(fRandom);\n\t}", "public void newQueue(){\r\n\t\tgenerateQueue();\r\n\t\trefreshLeft = true;\r\n\t}", "private void processPendingQueueEvents() {\n ////////////////...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method returns the value of the database column FreeHost_Product_VPS.vhdpath
public String getVhdpath() { return vhdpath; }
[ "public String getVPath() {\n return vPath;\n }", "public void setVhdpath(String vhdpath) {\r\n this.vhdpath = vhdpath == null ? null : vhdpath.trim();\r\n }", "Path getVolantFilePath();", "public String getSqlPath() {\n return (String) get(4);\n }", "public UTF8String getVersionPath...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Return the jdbcURL accessed by this pool
public String getJdbcURL();
[ "public String getUrl() {\n return jdbcUrl;\n }", "public String getJdbcUrl()\n {\n return getStringValue(DataSourceDobj.FLD_JDBC_URL);\n }", "public String getJdbcUrl()\r\n {\r\n return jdbcUrl;\r\n }", "public static String getJdbcUrl() {\n final IDatabaseMetadata dbMetaDa...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Return a factory for this kind of label (i.e., TaggedWord). The factory returned is always the same one (a singleton).
@Override public LabelFactory labelFactory() { return LabelFactoryHolder.lf; }
[ "public static LabelFactory factory() {\n return LabelFactoryHolder.lf;\n }", "public static TokenFactory getFactory ()\n {\n return new TokenFactory(new KeywordToken());\n }", "public LabelFactory() {\n this(0);\n }", "public static LanguageFactory newInstance ( )\n {\n return ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the field isDeleted.
public void setIsDeleted(java.lang.Boolean _isDeleted) { isDeleted = _isDeleted; }
[ "public void setDeleted(boolean isDeleted) {\n this.isDeleted = isDeleted;\n }", "public void setIsDeleted(java.lang.Boolean isDeleted) {\n this.isDeleted = isDeleted;\n }", "public void setIsDeleted(Byte isDeleted) {\n this.isDeleted = isDeleted;\n }", "public void setDeleted(Bo...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
write out the formatId to the pageData
protected abstract void writeFormatId(PageKey identity) throws StandardException;
[ "public void setFormat(PageFormat f);", "@Override\r\n public int getFormatId() {\r\n return formatID;\r\n }", "public static void writeFormatIdArray(\n int[] format_id_array,\n ObjectOutput out)\n throws IOException\n {\n for (int i = 0; i < format_id_array.length; i++)\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Play a C chord.
public static void playC() throws InterruptedException { channels[channel].noteOn( 60, volume );//C Thread.sleep(200); }
[ "@Override\n\tpublic void playChord(Chord chord) {\n\t\tMidiChannel channel = synthesizer.getChannels()[MIDI_CHANNEL];\n\t\tchannel.noteOn(currentRoot, chordDuration);\n\t\t// Play other notes from chord\n\t\tplayChordNotes(channel, chord, currentRoot, chordDuration);\n\t}", "public void playChord() {\n Li...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get all malfunctions that happened in a specific message channel. Private or guild text channels are legible.
public static Collection<Malfunction> getMalfunctions(MessageChannel messageChannel) { Bson filter = Filters.eq(MalfunctionCodec.CHANNEL_KEY, messageChannel.getIdLong()); return getMalfunctions(filter); }
[ "public Set<Channel> getFailedChannels() {\n\t\treturn RESOURCE_SYNC_QUEUE.dispatchSync( new Callable<HashSet<Channel>>() {\n\t\t\tpublic HashSet<Channel> call() {\n\t\t\t\treturn new HashSet<Channel>( EXCEPTIONS.keySet() );\n\t\t\t}\n\t\t});\n\t}", "List<TransmissionMedium> findMissingContactInfoMedia( ChannelsU...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates a new instance of SourcesConverter.
public SourcesConverter(Collection<Sources> entities, URI uri) { this.entities = entities; this.uri = uri; }
[ "public SourcesConverter() {\n }", "Source createSource();", "public FindSourcesTransformer(){\n\t\t\n\t\t/*\n\t\tfor(int i=0;i<MyConstants.SOURCES.length;i++){\n\t\t\tSRCS.add(MyConstants.SOURCES[i]);\n\t\t}\n\t\t\n\t\tfor(int i=0;i<MyConstants.SINKS.length;i++){\n\t\t\tSINKS.add(MyConstants.SINKS[i]);\n\t\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Compare this DomSet with another DomSet.
public boolean equals(Object other) { if (this==other) { return true; } if ((other==null) || (!(other instanceof DomSet))) { return false; } DomSet other_d = (DomSet)other; return set.size() == other_d.set.size() && set.containsAll(other_d.set); }
[ "@Override\n\t\tpublic int compareTo(final CFSet p_other) {\n\t\t\t\n\t\t\t// fix\n\t\t\t\n\t\t\tIterator<String> self = this.m_set.iterator();\n\t\t\tIterator<String> other = p_other.m_set.iterator();\n\t\t\t\n\t\t\tString self_x \t= self.next();\n\t\t\tString other_y \t= other.next();\n\t\t\t\n\t\t\tint diff = se...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get the schema for the MAC column
protected ColumnSchema<GenericTableSchema, String> getMacSchema() { return tableSchema.column(COL_MAC, String.class); }
[ "public java.lang.String getTableSchema() {\n\t\treturn getValue(test.generated.information_schema.tables.ConstraintTableUsage.CONSTRAINT_TABLE_USAGE.TABLE_SCHEMA);\n\t}", "public String getSchemaTerm()\n throws SQLException\n {\n return \"SCHEMA\";\n }", "protected ColumnSchema<GenericTable...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__InputLinkExtension__Group__2__Impl" $ANTLR start "rule__InputLinkExtension__Group__3" InternalComponentDefinition.g:3918:1: rule__InputLinkExtension__Group__3 : rule__InputLinkExtension__Group__3__Impl rule__InputLinkExtension__Group__4 ;
public final void rule__InputLinkExtension__Group__3() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalComponentDefinition.g:3922:1: ( rule__InputLinkExtension__Group__3__Impl rule__InputLinkExtension__Group__4 ) // InternalComponentDe...
[ "public final void rule__InputLinkExtension__Group__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalComponentDefinition.g:3895:1: ( rule__InputLinkExtension__Group__2__Impl rule__InputLinkExtension__Group__3 )\n // Inter...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Versions a repo object using repoObject
RepoObjectMetadata versionRepoObject(RepoObjectInput repoObjectInput);
[ "List<RepoObjectMetadata> getRepoObjectVersions(RepoId id);", "InputStream getRepoObject(RepoVersionNumber number);", "boolean deleteRepoObject(RepoVersionNumber number);", "InputStream getRepoObject(RepoVersion version);", "boolean deleteRepoObject(RepoVersion version);", "RepoObjectMetadata createRepoOb...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the transactionMerchantCategoryCode attribute.
public String getTransactionMerchantCategoryCode() { return transactionMerchantCategoryCode; }
[ "@ApiModelProperty(value = \"If provided, then the value overrides the one present in onboarding data. If the merchantCategoryCode value is not populated in onboarding data then this field is mandatory.<br><br><b>Note:</b> required if not provided during onboarding\")\n public Integer getMerchantCategoryCode() {...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the total number of stops.
public int getStopsCount() { return stops; }
[ "public static int numberOfStops() {\n return getAllStops().size();\n }", "public int getNumberOfStops()\n {\n return stops.size();\n }", "public int sizeOfStopLinesArray()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_e...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "ruleEvent" $ANTLR start "entryRuleCommand" ../org.eclipse.xtext.example.fowlerdsl/srcgen/org/eclipse/xtext/example/fowlerdsl/parser/antlr/internal/InternalStatemachine.g:242:1: entryRuleCommand returns [EObject current=null] : iv_ruleCommand= ruleCommand EOF ;
public final EObject entryRuleCommand() throws RecognitionException { EObject current = null; EObject iv_ruleCommand = null; try { // ../org.eclipse.xtext.example.fowlerdsl/src-gen/org/eclipse/xtext/example/fowlerdsl/parser/antlr/internal/InternalStatemachine.g:243:2: (iv_ruleComm...
[ "public final String entryRuleCommand() throws RecognitionException {\n String current = null;\n\n AntlrDatatypeRuleToken iv_ruleCommand = null;\n\n\n try {\n // InternalSitemap.g:6581:47: (iv_ruleCommand= ruleCommand EOF )\n // InternalSitemap.g:6582:2: iv_ruleCommand= ru...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get a process instance from its pid
IInstance getInstance(String pid) throws BpmScriptException;
[ "public ProcessInstance getProcessInstance(final long processInstanceId);", "public Process getProcess(int pid){\r\n for(int i=0; i<this.processesList.size(); i++){\r\n if(this.processesList.get(i).getId() == pid){\r\n return this.processesList.get(i);\r\n }\r\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Obtain a list of all data types known to the server. If the information is not yet available, the server is queried. This is optional information which is not required for the normal operation of the client, but may help to avoid incompatibilities.
public Vector getAllDataTypes() throws IOException, UnknownHostException { if (allDataTypes == null) { fillDataTypes(); } assert allDataTypes != null && allDataTypes.size() > 0; return allDataTypes; }
[ "public List<String> getAvailableDataTypes() {\n Set<String> typeSet = new TreeSet<String>();\n\n ITimer timer = TimeUtil.getTimer();\n timer.start();\n\n try {\n for (Provider provider : DataDeliveryHandlers.getProviderHandler()\n .getAll()) {\n\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Set the artifacts property: The collection of managed application artifacts. The portal will use the files specified as artifacts to construct the user experience of creating a managed application from a managed application definition.
public ApplicationDefinitionProperties withArtifacts(List<ApplicationArtifact> artifacts) { this.artifacts = artifacts; return this; }
[ "public void setArtifacts(List<Artifact> artifacts) {\n this.artifacts = artifacts;\n }", "public List<ApplicationArtifact> artifacts() {\n return this.artifacts;\n }", "public ArtifactSet getArtifacts() {\n return artifacts;\n }", "public void addOrReplaceArtifacts(ArtifactSet artif...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
2. Generate code Codegen Guideline: Straightforward generate a IR.Func for each mthdDecl.
static List<IR.Func> gen(Ast.ClassDecl n, ClassInfo cinfo) throws Exception { List<IR.Func> retList = new ArrayList<IR.Func>(); for (Ast.VarDecl f : n.flds) { globalVars.put(f.nm, f.t); objToClass.put(f.nm, cinfo.className()); objExist = true; } for (Ast.MethodDecl m : n.mthds) { re...
[ "static IR.Func gen(Ast.MethodDecl n, ClassInfo cinfo) throws Exception {\n\t // ... need code\n\t List<IR.Inst> instList = new ArrayList<IR.Inst>(); \n\t List<String> paramList = new ArrayList<String>();\n List<String> varList = new ArrayList<String>();\n IR.Temp.reset();\n \n IR.Global l...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get the hit latency of the translation lookaside buffer (TLB).
public int getTlbHitLatency() { return tlbHitLatency; }
[ "public int getL2HitLatency() {\n return l2HitLatency;\n }", "int getLatency();", "public double getLatency(){\n return visionTable.getEntry(\"tl\").getDouble(0) + RobotMap.kLimelightLatencyMs;\n }", "public int getTlbMissLatency() {\n return tlbMissLatency;\n }", "long getLate...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__ERequirements__Group__1" $ANTLR start "rule__ERequirements__Group__1__Impl" InternalAADMParser.g:18202:1: rule__ERequirements__Group__1__Impl : ( ( rule__ERequirements__RequirementsAssignment_1 ) ) ;
public final void rule__ERequirements__Group__1__Impl() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalAADMParser.g:18206:1: ( ( ( rule__ERequirements__RequirementsAssignment_1 )* ) ) // InternalAADMParser.g:18207:1: ( ( rule__ERequir...
[ "public final void rule__ERequirementAssignments__Group__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalAADMParser.g:4909:1: ( rule__ERequirementAssignments__Group__1__Impl )\n // InternalAADMParser.g:4910:2: rule__EReq...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Tells whether the Java version is 18.
public boolean isJava18() { return "18".equals(javaSpecVersion); }
[ "public boolean isJava18Compatible() {\n return javaSpecVersionNumber.getMajor() >= 18;\n }", "public boolean isJava19() {\n return \"19\".equals(javaSpecVersion);\n }", "public boolean isJava17() {\n return \"17\".equals(javaSpecVersion);\n }", "public boolean isJava20() {\n return \"20\".equa...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Description: Method to set the first click boolean. Parameters: boolean firstClick, which is the value to set the first click boolean with. Returns: Nothing.
public void setFirstClick(boolean firstClick) { this.firstClick = firstClick; }
[ "public void setFirstAction(boolean firstAction) {\n _firstAction = firstAction;\n }", "public boolean isFirstClick(){\n\t\treturn firsttime;\n\t}", "public void setFirstSet(boolean bFirstSet)\r\n {\r\n m_bFirstSet = bFirstSet;\r\n }", "public void isFirstTurn(boolean first)\n\t{\n\t\tf...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Changes the stats of the Unit according to the type of attack executed by the attacker
public void attack(Unit target, AttackTypes type) { switch(type) { case MELEE: //this is for melee attacks and is dependent on their damage Random random = new Random(); int randDmg = random.nextInt(4); int melDamage = type.getDamage()...
[ "int attack(Unit unit, Unit enemy);", "public void changeStats(gameCharacter toAffect);", "@Override\n public void attackedByShaman(double attack) {\n damageCounter += (2 * attack) / 3;\n this.attack = Math.max(this.attack - (2 * attack) / 3, 0);\n }", "void defendAttack(IUnit attacker, int incomingDa...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
this.internal_setOption(n, object); this.setOption_xfer(n, object);
public void setOption(int n, Object object) { }
[ "void setOption(String name, Object value);", "@Test\n public void testSetOption() {\n System.out.println(\"setOption\");\n String option = \"\";\n Associate instance = null;\n instance.setOption(option);\n // TODO review the generated test code and remove the default call to...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ Setting Firebase Adapter in RecycleView
private void setAdapter() { final RecyclerView.Adapter adapter = SetUpFirebaseAdapter(); adapter.registerAdapterDataObserver(new RecyclerView.AdapterDataObserver() { @Override public void onItemRangeInserted(int positionStart, int itemCount) { mRecyclerView.smooth...
[ "private void setFirebaseAdapter(){\n FirebaseRecyclerOptions<Business> options = new FirebaseRecyclerOptions.Builder<Business>()\n .setQuery(reference, Business.class)\n .build();\n firebaseViewHolderFirebaseRecyclerAdapter = new FirebaseRecyclerAdapter<Business, Firebas...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Show that the other user is typing.
void showOtherUserTyping();
[ "@Override\n public void userStartedTyping(){\n }", "@Override\n public void userStoppedTyping(){\n }", "public void askForSpeaker(){\n System.out.println(\"Enter the speaker username\");\n }", "public void promptForEventSpeakers(){\n System.out.pri...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the texture with the specified ID.
public int getTexture(int id) { for (Integer tmpId : m_textureIds) { if (tmpId.intValue() == id) { return id; } } return INVALID_TEXTURE_ID; }
[ "public Texture getTextureById(int ressourceId) {\n for (Texture texture : this.getTextureList()) {\n if (texture.getRessourceId() == ressourceId) return texture;\n }\n //si la texture n'a pas été trouvé, on retourne null\n throw new RuntimeException(\"la Texture recherché n'a...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Appends and returns a new empty "UpdateDeploymentResponse" element
com.conferma.cpapi.UpdateDeploymentResponseDocument.UpdateDeploymentResponse addNewUpdateDeploymentResponse();
[ "com.conferma.cpapi.UpdateDeploymentResponse addNewUpdateDeploymentResult();", "com.conferma.cpapi.UpdateDeploymentResponseDocument.UpdateDeploymentResponse getUpdateDeploymentResponse();", "void setUpdateDeploymentResponse(com.conferma.cpapi.UpdateDeploymentResponseDocument.UpdateDeploymentResponse updateDeplo...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Stack of last undone lines Instantiates a new doily panel with a new doily settings object.
public DoilyPanel() { this(new DoilySettings()); }
[ "public DoilyPanel(DoilySettings settings) {\n\t\t// Assign arguments\n\t\tsetDoily(new DoilyState(settings, new ArrayList<Line>()));\n\n\t\t// Add drawing listener \n\t\tDrawListener drawListener = new DrawListener();\n\t\taddMouseListener(drawListener);\n\t\taddMouseMotionListener(drawListener);\n\t}", "private...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by Apache iBATIS ibator. This method sets the value of the database column MEDICAL.JZ_MEDICALAFTER_RULE.SANWU_SCALE
public void setSanwuScale(BigDecimal sanwuScale) { this.sanwuScale = sanwuScale; }
[ "public BigDecimal getSanwuScale() {\r\n\t\treturn sanwuScale;\r\n\t}", "void setScale(double scale);", "public void setScale(int value) {\n this.scale = value;\n }", "public final void setScale(float scale) {\n\t\n \tthis.svd(this);\n \t...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/SELECT doc_id FROM public.hist_miembro WHERE club_id = 1 AND doc_id =27896541 AND estatus_mie='activo';
public ResultSet miemClub(int clubid) { try (Connection con = conexion.getConnection()){ PreparedStatement ps; ResultSet res; ps = con.prepareStatement("SELECT doc_id\n" + " FROM public.hist_miembro\n" + " WHERE club_id = ? AND estatus_mie='activo';"); ...
[ "List<DocPatRelation> selectRelationPatInfoByDocId(String docId);", "public Cliente[] findWhereAccesoConsolaXmlPdfEquals(int accesoConsolaXmlPdf) throws ClienteDaoException;", "public DocEstados[] findWhereIdEstadoDocEquals(long idEstadoDoc) throws DocEstadosDaoException;", "boolean hasFetchDocid();", "Eicr...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Use the elevatorDrive as the PID output. This method is automatically called by the subsystem.
protected void usePIDOutput(double d) { // if(! (RobotMap.elevatorTopLimitSwitch.get() || // RobotMap.elevatorBottomLimitSwitch.get())){ RobotMap.elevatorDrive.drive(d, 0); // }else{ // this.elevatorDrive.drive(0.0,0.0); // } }
[ "public CANPIDController getPIDController() {\n return elevator_pidController;\n }", "private void updatePID() {\n // Get the difference between centre and vision target (error)\n var angleError = limelight.getHorizontalAngleOffset();\n SmartDashboard.putNumber(\"Angle Error\", angleError);\n\n //...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns true if the given piece may be deleted. Default implementation always returns true.
protected boolean isPieceOfFurnitureDeletable(HomePieceOfFurniture piece) { return true; }
[ "public boolean hasPiece()\r\n\t{\r\n\t\treturn piece != null;\r\n\t}", "public boolean isPiece(){\n return this.piece != null;\n }", "public boolean canDelete(SagaPlayer sagaPlayer) {\n\t\treturn true;\n\t}", "boolean canDelete(Node node);", "private boolean removable(Position pos, Player playerO...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Adds an new stack to the entry list.
default void addEntry(EntryStack<?> stack) { addEntryAfter(null, stack); }
[ "private void newStack() {\r\n\t\t\tStack <Integer> stack = new Stack<Integer>();\r\n\t\t\tlist.add(stack);\r\n\t\t}", "public void push(T newEntry) {\n ensureCapacity();\n stack[topIndex + 1] = newEntry;\n topIndex++;\n }", "gov.nih.nlm.ncbi.www.soap.eutils.esearch.TranslationStackType ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Create the channel component for this cell. All cells have a channel component, but by default only root cells actually open a channel. Child cells of a root will use the roots channel. This is hidden from the user as they always access the common ChannelComponentMO api
private void createChannelComponent() { if (getComponent(ChannelComponentMO.class)!=null) return; addComponent(new ChannelComponentMO(this)); }
[ "private Channel createChannel(){\n try {\n return connection.createChannel();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n return null;\n }", "Channel createChannel();", "private void createChannel() {\n Tail tail = new Tail(this.channel...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Logs the cache status if log level verbose is enabled. Otherwise, noop.
private void logCacheStatus() { if (!LOGGER.canLogAtLevel(LogLevel.VERBOSE)) { return; } final int size = cache.size(); final int length = cache.getTotalLength(); LOGGER.atVerbose() .addKeyValue(SIZE_KEY, size) .addKeyValue(TOTAL_LENGTH_KEY, ...
[ "public void enableVerboseLogging(boolean verbose) {\n synchronized (sLock) {\n if (verbose) {\n mVerboseLog = mLog;\n enter(\"verbose=true\").flush();\n } else {\n enter(\"verbose=false\").flush();\n mVerboseLog = sNoLog;\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the number of tips in the tips ArrayList
public int getNumOfTips() { return tips.size(); }
[ "int getTipInfosCount();", "public int getToolTipCount(int list) {\n\n int result = 0;\n List tooltips = (List) this.toolTipSeries.get(list);\n if (tooltips != null) {\n result = tooltips.size();\n }\n return result;\n }", "public int getNumTroops(){\n ret...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
get downloadable chunk size
public long getDownloadableChunkSize(Context context) { SharedPreferences deviceSP = new SharedPreferenceModel().getDeviceSharedPreference(context); return deviceSP.getLong(context.getString(R.string.device_downloadable_sp),Constants.DEFAULT_DOWNLOADABLE_CHUNK_SIZE); }
[ "int getDownloadBandwidth();", "long getChunkSize();", "int getSizeInMB();", "int getSizeMb();", "int getChunkSize();", "public int getChunksize() throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\treturn __io__block.readInt(__io__address + 360);\n\t\t} else {\n\t\t\treturn __io__block.re...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
A MovementType is an object that specifies the type of AI a nonhero event will have. Every tick when said event is not moving, MovementType's nextMovement() function will be invoked which should return the next direction for the event to move into.
public interface MovementType { public Direction nextMovement(ImmutableEvent ev); }
[ "public void setMoveType(MoveType type)\n\t{\n\t\tmoveType = type;\n\t}", "public abstract moveType getMoveAI();", "public String getMovementType() {\n\t\treturn (String) get_Value(\"MovementType\");\n\t}", "public void setMOVE_TYPE(java.lang.String MOVE_TYPE) {\r\n this.MOVE_TYPE = MOVE_TYPE;\r\n }...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Make a PaperLink for every PastPaper
private static List<PaperLink> createPaperLinks(List<PastPaper> papers){ List<PaperLink> paperLinks = new ArrayList<>(); for (int i = 1; i < papers.size(); i++) { PaperLink l = new PaperLink(papers.get(i)); paperLinks.add(l); } //Remove duplicates ...
[ "private static void createLinkPdf(String dest) throws Exception {\n PdfDocument pdfDoc = new PdfDocument(new PdfWriter(dest));\n Document doc = new Document(pdfDoc);\n\n // Create a link action, which leads to the another pdf file's page.\n // The 1st argument is the relative destinatio...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates a new instance of userController
public userController() { user = new User(); list(); }
[ "public UserController() {\n \n \n }", "public UserController() {\n\t\tdao = new GenDao(User.class);\n\t\teventDao = new GenDao(Event.class);\n slug = new Slug();\n\t}", "public DisplayUsersController() {\n }", "void create(User newUser);", "public UserManagementController() {\r\n }", ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
sets the edit icon in the action bar visible
public static void setEditIconVisible(boolean isVisible) { MenuItem editItem = EntryScreenActivity.getOptionsMenu().findItem(R.id.edit_icon_action_bar_routine); editItem.setVisible(isVisible); }
[ "private void showEditBar() {\n\t\tfinal LayoutInflater inflater = (LayoutInflater) getSupportActionBar().getThemedContext()\n\t\t\t\t.getSystemService(LAYOUT_INFLATER_SERVICE);\n\t\tfinal View customActionBarView = inflater.inflate(\n\t\t\t\tR.layout.actionbar_custom_view_done_cancel, null);\n\t\tcustomActionBarVi...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Add all the fields for this class and its superclasses to the provided list. Note that clients should probably use getAllDeclaredFields (Class) rather than this method. This is an internal method that will add all the fields declared by the provided class to the provided list. It will then proceed to call itself agains...
public static void addDeclaredFields (List l, Class c) { Field[] fields = c.getDeclaredFields(); for (int i = 0; i < fields.length; i++) { l.add(fields[i]); } Class superClass = c.getSuperclass(); if (null != superClass) addDeclaredFields(l, superClass); Class[] interfaces = c.getInterfaces()...
[ "public static void getFields (Class<?> clazz, List<Field> addTo)\n {\n // first get the fields of the superclass\n Class<?> pclazz = clazz.getSuperclass();\n if (pclazz != null && !pclazz.equals(Object.class)) {\n getFields(pclazz, addTo);\n }\n \n // then re...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
If point is at the back side of plane, then distance is negative. Note, that distance is measured in length of plane_normal, so if you want it to be measured in basic units, then normalize plane_normal!
public static float distanceToPlane(float point_x, float point_y, float normal_x, float normal_y) { float dp_nn = dotProduct(normal_x, normal_y, normal_x, normal_y); assert Math.abs(dp_nn) > 0.0001; return (dotProduct(normal_x, normal_y, point_x, point_y)) / dp_nn; }
[ "public double distanceToPlane(CVector point) {\n return CVector.dot(m_normal, point) + m_offset;\n }", "public static float distanceToPlane(float point_x, float point_y, float point_z, float normal_x, float normal_y, float normal_z)\n\t{\n\t\tfloat dp_nn = dotProduct(normal_x, normal_y, normal_z, norma...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates new form PropsGUI
public PropsGUI() { initComponents(); }
[ "public addProperties() {\n initComponents();\n }", "private void createGUI() {\n\t\tPreferenceScreen screen = getPreferenceManager().createPreferenceScreen(this);\n\t\tsetPreferenceScreen(screen);\n\n\t\tcreateProviderCategory(screen);\n\t\tcreateUICategory(screen);\n\t\tcreateFeatureDetectionCategory(...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
The method that will tell the lions to roar
public void roar() { System.out.println("The " + lionNumber + " lion gave a ferocious ROAR!!!"); }
[ "public void remplirRochers() {\r\n\t\tRandom random = new Random();\r\n\r\n\t\tfor (int i = 1; i < taille - 1; i++) {\r\n\t\t\tfor (int j = 1; j < taille - 1; j++) {\r\n\t\t\t\tif (random.nextInt(100) < pourcentageRochers) {\r\n\t\t\t\t\tile[i][j].setParcelle(new Rocher(false, false));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Use HeartBeatProto.newBuilder() to construct.
private HeartBeatProto(com.google.protobuf.GeneratedMessage.Builder<?> builder) { super(builder); this.unknownFields = builder.getUnknownFields(); }
[ "private void constructHeartbeatMessage() {\n // build head\n MessageProtobuf.Head.Builder headBuilder = MessageProtobuf.Head.newBuilder();\n headBuilder.setMsgId(UUID.randomUUID().toString());\n headBuilder.setMsgType(MsgConstant.MsgType.HEARTBEAT_MESSAGE);\n headBuilder.setTimeS...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates a Quadruplet object
public Quadruplet(NoteElement first, NoteElement second, NoteElement third, NoteElement fourth) { this.first = first; this.second = second; this.third = third; this.fourth = fourth; }
[ "public GuiQuadrado() {\n initComponents();\n }", "Quad createQuad();", "public static QuollButton.Builder builder ()\n {\n\n return new Builder ();\n\n }", "private void makeQuad() {\n\n quadTree = new PointQuadtree<>(topLeft.getX(), topLeft.getY(), bottomRight.getX(), bottomRig...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Lists all of the hosts in the given RMG.
public ListHostsResponse listHosts(String rmgName) { ListHostsRequest req = new ListHostsRequest(this, rmgName); return req.call(); }
[ "Collection<HostInfo> getHosts();", "public static void monitorsListHostsMinimumSetGen(\n com.azure.resourcemanager.newrelicobservability.NewRelicObservabilityManager manager) {\n manager\n .monitors()\n .listHosts(\n \"rgopenapi\",\n \"ipxmlcbonyx...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
get if Sunday is first day
public boolean getSundayFirstDay() { return sunday_first_day; }
[ "public void setSundayFirstDay(boolean b) {\n sunday_first_day = b;\n }", "public static int getFirstDayOfWeek() {\n int startDay = Calendar.getInstance().getFirstDayOfWeek();\n\n if (startDay == Calendar.SATURDAY) {\n return Time.SATURDAY;\n } else if (startDay == Calend...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ This test shows that isSorted method checks if a table is sorted Input: NOT Sorted square Found on isSortedTest2.txt Expected Output: False
@Test public void test_isSorted2() throws Exception { int [] arr = readFile("isSortedTest2.txt"); int size = arr.length; Table table = new Table(size, arr); assertEquals(TableSorter.isSorted(table),false); }
[ "@Test\n\tpublic void test_isSorted() throws Exception {\n int [] arr = readFile(\"isSortedTest1.txt\");\n for(int i = 0; i < arr.length; i++) {\n \t System.out.print(arr[i]+\" \");\n }\n int size = arr.length;\n Table table = new Table(size, arr);\n assertEquals(Ta...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Attempt a random zombie spawn in a range surrounding a player
public void attemptSpawn(Player player) { int min = plugin.CONFIG.SPAWNING_RADIUS_MIN; int max = plugin.CONFIG.SPAWNING_RADIUS_MAX; // choose random x,z coordinates within the allowed radius range int distance = rand.nextInt((max - min) + 1) + min; double angle = 2 * Math.PI * ...
[ "@Override\n\tpublic void spawn(){\n\t\tIntVector loc = mGM.corruptionHelper.getRandomElementIndex();\n\t\t//if corrupted layer is empty try finding a virus\n\t\tif(loc == null) \n\t\t{\n\t\t\tloc = mGM.virusHelper.getRandomElementIndex();\n\t\t}\n\t\t//if viru layer also null, do nothing.\n\t\tif(loc == null)\n\t\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets list of completed tasks.
public CopyOnWriteArrayList<Task> getCompletedTasks() { return completedTasks; }
[ "public ArrayList<Task> getAllCompletedTasks() {\n\n String selectTasksWithStatusAs1 = \"select * from \" + TABLE + \" where \" + KEY_STATUS + \" = 1\";\n return getTasks(selectTasksWithStatusAs1);\n }", "public ArrayList<Task> getFinishedTasks(){\r\n return finished;\r\n }", "void getCompl...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Configuration properties for KCache.
@WithName("kafkacache") Map<String, String> kafkaCacheConfig();
[ "public CacheConfiguration() {\r\n addConfiguration(new ExceptionHandlingConfiguration<CacheExceptionHandler<K, V>>());\r\n addConfiguration(new CacheLoadingConfiguration<K, V>());\r\n addConfiguration(new ManagementConfiguration());\r\n addConfiguration(new MemoryStoreConfiguration<K, V...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns true if these display metrics equal the other display metrics.
public boolean equals(android.util.DisplayMetrics other) { throw new RuntimeException("Stub!"); }
[ "public boolean displayModesMatch(DisplayMode m1, DisplayMode m2){\n if(m1.getWidth() != m2.getWidth() || m1.getHeight() != m2.getHeight()){\n return false;\n }\n if(m1.getBitDepth() != DisplayMode.BIT_DEPTH_MULTI && m2.getBitDepth() != DisplayMode.BIT_DEPTH_MULTI\n &&...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Finds the DataSourceScanOperator given a leafInput
private ILogicalOperator findDataSourceScanOperator(ILogicalOperator op) { ILogicalOperator origOp = op; while (op != null && op.getOperatorTag() != LogicalOperatorTag.EMPTYTUPLESOURCE) { if (op.getOperatorTag().equals(LogicalOperatorTag.DATASOURCESCAN)) { return op; ...
[ "private ILogicalOperator findDataSourceScanOperator(ILogicalOperator op) {\n ILogicalOperator origOp = op;\n while (op != null && op.getOperatorTag() != LogicalOperatorTag.EMPTYTUPLESOURCE) {\n if (op.getOperatorTag().equals(LogicalOperatorTag.DATASOURCESCAN)) {\n return op;...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the m check box list.
public ArrayList<JCheckBox> getmCheckBoxList() { return mCheckBoxList; }
[ "java.util.List<Googleplay.FormCheckbox> \n getCheckboxList();", "public boolean[] getCheckbox() {\r\n return checkboxes;\r\n }", "private ArrayList<String> getCheckboxes() {\n ArrayList<CheckBox> checkBoxes = new ArrayList<>();\n String[] names = {\"PNEU\",\"OIL\",\"BATTERY\",\"A...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Parses options for this cell. Option parsing is based on Option annotation of fields. This fields must not be class private. Values are logger at the INFO level.
protected void parseOptions() { for (Class c = getClass(); c != null; c = c.getSuperclass()) { for (Field field : c.getDeclaredFields()) { Option option = field.getAnnotation(Option.class); try { if (option != null) { ...
[ "@Override\n protected void parseOptions() {\n logger.info(\"Parsing options.\");\n }", "protected boolean processParsedOptions(boolean parseOk) {\n if (parseOk) {\n if (logOpt.isSet()) {\n Level level = Level.parse(logOpt.getValue());\n Handler h =...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test of getIcon method, of class ApexProjectInformation.
@Test public void testGetIcon() { SalesforceProjectInformation instance = new SalesforceProjectInformation(salesforceProject); Icon result = instance.getIcon(); assertNotNull(result); }
[ "public Result testGetIcon() {\n try {\n assertNull(beanInfo.getIcon(BeanInfo.ICON_MONO_16x16));\n Bean1BeanInfo.verifyException();\n return passed();\n } catch (Exception e) {\n e.printStackTrace();\n return failed(e.getMessage());\n }\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
For inserting image URI's into the DB
public boolean insertImage(String imageURI, String foottype, String notes, String imageDate) { SQLiteDatabase db = this.getWritableDatabase(); ContentValues contentValues = new ContentValues(); contentValues.put(COL_IMAGE_PATH,imageURI); contentValues.put(COL_IMAGE_FOOT,foottype); ...
[ "void insert(Image image) throws DAOException;", "private void addImage(String rawData)\n\t{\n\t\tString[] items = rawData.split(\",\");\n\t\tif(items.length < 7)\n\t\t\treturn;\n\t\t\n\t\tContentValues values = new ContentValues();\n\t\tvalues.put(COLUMN_NAME_ID, Integer.parseInt(items[0]));\n\t\tvalues.put(COLU...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end synpred4_InternalQVTOperational $ANTLR start synpred5_InternalQVTOperational
public final void synpred5_InternalQVTOperational_fragment() throws RecognitionException { Token kw=null; // ../org.eclipse.qvto.examples.xtext.qvtoperational/src-gen/org/eclipse/qvto/examples/xtext/qvtoperational/parser/antlr/internal/InternalQVTOperational.g:200:4: ( ({...}? => ( ({...}? => (kw...
[ "public final boolean synpred5_InternalQVTOperational() {\r\n state.backtracking++;\r\n int start = input.mark();\r\n try {\r\n synpred5_InternalQVTOperational_fragment(); // can never throw exception\r\n } catch (RecognitionException re) {\r\n System.err.println(\"...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }