query
stringlengths
8
1.54M
document
stringlengths
9
312k
negatives
listlengths
19
20
metadata
dict
This method was generated by MyBatis Generator. This method returns the value of the database column t_recipes_canteen.id
public Integer getId() { return id; }
[ "public int getCanteenId() {\n return canteenId_;\n }", "public int getCanteenId() {\n return canteenId_;\n }", "public int getTreatyId();", "public void setRecipeId(long value) {\r\n this.recipeId = value;\r\n }", "java.lang.String getMealId();", "@Override\n\tpublic long ge...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Cleanup method. This method will be invoked when the provider is disposed of.
void cleanup() throws Exception;
[ "@Override\n public void cleanup() {\n connectionProvider.cleanup();\n }", "@Override\n public void cleanup() {\n }", "@Override\r\n public void cleanup() {\r\n }", "@Override\r\n\t\tpublic void cleanup(){\n\t\t}", "public void cleanup() {\r\n\t}", "@Override\n \tpublic vo...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method allows you to request a graphical representation for a given individual.
public JComponent drawIndividual(int generation, int funCalls, AbstractEAIndividual indy);
[ "protected RMShape createUI()\n{\n WebURL url = WebURL.getURL(getClass(), getClass().getSimpleName() + \".rpt\");\n return new RMArchiver().getParentShape(url);\n}", "void showPerson(JavaScriptObject person){\n\t\tif(details.isOpen())details.setOpen(false);\n\t\tname.setText(\"Name: \"+getName(person));\n\t...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test whether a reactor takes info correctly.
@Test public void testTakeInfo() { try { condensor1.takeInfo(info); } catch (Exception e) { e.printStackTrace(); } assertTrue(condensor1.getTemperature() == 50.0); assertTrue(condensor1.getCoolantpumpRPM() == 60.0); }
[ "public boolean checkAndConnectionToMediatorIsOk();", "boolean hasRescoringTwiddlerType();", "private boolean check(ProxyTargetInfo info) {\n\t\tif(info.targetMethodName.equals(\"toString\") || \n\t\t\t\tinfo.targetMethodName.equals(\"equals\") ||\n\t\t\t\tinfo.targetMethodName.equals(\"hashCode\") ||\n\t\t\t\t...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Kills the bullet under appropriate circumstances.
@Override public void collidedWith (Participant p) { if (p instanceof BulletDestroyer) { // Expire the bullet from the game Participant.expire(this); controller.bulletDestroyed(); } }
[ "public void stopMe() {\r\n isRunning = false;\r\n\r\n \r\n blt.isShooting = false;\r\n lm.remove(blt);\r\n worker.isAttacking = false;\r\n blt = null;\r\n worker.blt = null;\r\n\r\n\r\n\r\n System.out.println(\"stoped bullet\");\r\n\r\n this.cancel();\r\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Performs all Helix related tasks involved with encryption and decryption of a simple message in a file. Source code is commented with each of the steps in order to achieve both goals
private static void test_load(String server, int port, String userName, String PLAINTEXT_MESSAGE, String aFileName) { System.out.printf("HELIX_INTERFACE_VERSION = %d%n", helix.HELIX_INTERFACE_VERSION); // System.out.printf("Setting log level to: %d%n", logLevel_t.DEBUG_LEVEL.swigValue()); // helix.logger_setLog...
[ "public void decryptFile() {\n }", "@Test\n public void encryptDecryptTest () throws IOException {\n\n FileEncryptor feEncrypt = new FileEncryptor(tmpFile.getPath());\n\n try {\n String message = feEncrypt.process(password);\n assertEquals(FileEncryptor.MESSAGE_ENCRYPTED,...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Tests whether it is possible to permanently change the location after a reset of parameters.
@Test public void testChangeLocationAfterReset() throws ConfigurationException { final File file1 = createTestFile(1); final File file2 = createTestFile(2); final FileBasedConfigurationBuilder<PropertiesConfiguration> builder = new FileBasedConfigurationBuilder<>( ...
[ "public void testChangeLocation() {\n\tLocation initial_loc = new Location(LOCATION_PROVIDER);\n\t// Tester should disconnect from internet and move locations, then reconnect to internet\n\tLocation final_loc = new Location(LOCATION_PROVIDER);\n\tboolean latEquals = FALSE;\n\tboolean longEquals = FALSE;\n\tif (init...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Initialize your data structure here
public PhoneDirectory(int maxNumbers) { this.maxNumbers = maxNumbers; availables = new LinkedList<Integer>(); availables.add(0); }
[ "@Override\n\tpublic void initData() {\n\n\t\t\n\t}", "private void initializeData() {\n employees.put(1, \"Amos Burton\");\r\n employees.put(2, \"Julie Mao\");\r\n employees.put(3, \"Alex Kamal\");\r\n employees.put(4, \"James Holden\");\r\n employees.put(5, \"Josephus Miller\"...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
The constructor loads the files first for a faster performance.
public Icons() { cellNumbers = new ArrayList<ImageIcon>(); cellNumbers.add(null); cellNumbers.add(loadImageIconFile("cell_number_1.gif")); cellNumbers.add(loadImageIconFile("cell_number_2.gif")); cellNumbers.add(loadImageIconFile("cell_number_3.gif")); cellNumbers.add(loadImageIconFile("cell_number...
[ "public LoadFiles(String fileName){\n\n file = new File(fileName);\n this.fileName = fileName;\n }", "@Override\n public void initialize(String filename) throws IOException {\n long initialTime = System.nanoTime();\n String extension = filename.substring(filename.lastIndexOf(\".\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
end of variables Blueprint begin constructors
public DeviceManagerOpenroadmImpl() { LOG.info("Creating provider for {}", APPLICATION_NAME); resOpenRoadm = null; }
[ "Cokolady()\t{\r\n\t\tsuper();\r\n\t}", "protected Blueprint() {\n super(null);\n this.id = null;\n this.name = null;\n this.outgoing = null;\n this.incoming = null;\n }", "public CEL_Chauffage() {}", "public pruebafinal()\n {\n }", "@Overr...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the datacenter id.
public int getId() { return id; }
[ "Datacenter getDatacenter(final Integer datacenterId);", "String getLocalDatacenter();", "public String getId() {\n\t\treturn this.getConnonData().getId();\n\t}", "public CngDataCenter dataCenter() {\n\t\treturn laSession.cngDataCenter(); \n\t}", "public Integer getIdDc() {\n return idDc;\n }", ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Create a file Uri for saving an image or video
private static Uri getOutputMediaFileUri(int type) { return Uri.fromFile(getOutputMediaFile(type)); }
[ "private Uri getOutputFileUri() {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = timeStamp + \".jpg\";\n File storageDir = getFilesDir();\n File imageDir = new File(storageDir, \"images\");\n if (!imageDir.exists()) {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
The constructor for the GuessAction Class.
public GuessAction(int source, int[] pegs) { super(source); for(int i = 0; i < pegs.length; i++){ guessPattern[i] = pegs[i]; } }
[ "protected void init_actions()\r\n {\r\n action_obj = new CUP$Gramar$actions(this);\r\n }", "public GetStrainsAction()\n {\n }", "Action(String actionString)\n {\n this.actionString = actionString;\n }", "Action() {\n\t\t// super();\n\t}", "public SendAckAction()\n {\n supe...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Drop the piece back onto the chess board
public void mouseReleased(MouseEvent me) { if(piece == null) return; piece.setVisible(false); Component c = pDesk.findComponentAt(me.getX(), me.getY()); Component original = pDesk.findComponentAt(xOriginal, yOriginal); Container originalParent = (Container)original; originalParent.add(piece); piece....
[ "public void dropPiece() {\n if (this.currentPiece == null) {\n return;\n }\n while (this.boardState.pieceCanMoveDown(this.currentPiece)) {\n moveDown();\n }\n }", "public Point removeFromBoard();", "public void removePiece(){\n this.piece = null;\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method returns if the associated player is challenged
public boolean isChallenged() { return state == PlayerState.CHALLENGED; }
[ "public boolean playerWon() {\n return won(player, dealer);\n }", "public boolean getIsAlivePlayer()\n {\n return this.getPlayer().isAlive();\n }", "private void checkIfGameWon() {\n if(currentPlayer.getDistanceTraveled() > 700 ) {\n listener.gameOver(currentPlayer);\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the path to this log entry
public void setPath(String p) { path = p; }
[ "IEntry setPath(String newpath);", "private void setLogFilePath() {\n\t\tString relativePath = System.getProperty(\"user.dir\") + File.separator;\n\t\tSystem.setProperty(RuleEngineConfigKeys.LOG_FILE_PATH.getValue(), relativePath);\n\n\t\tif (null != this.mapOfParams && !this.mapOfParams.isEmpty()) {\n\t\t\tStrin...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ Create the new SSLSocketFactory and set the default SSLContext for HTTPS connetions in the JVM
@Override public void notify(Observable<KeystoreChangedEvent> sender, KeystoreChangedEvent message) throws Exception { HttpsURLConnection .setDefaultSSLSocketFactory(createSSLSocketFactory()); }
[ "public static SSLConnectionSocketFactory getSystemSocketFactory() throws SSLInitializationException {\r\n return new SSLConnectionSocketFactory(\r\n (javax.net.ssl.SSLSocketFactory) javax.net.ssl.SSLSocketFactory.getDefault(),\r\n split(System.getProperty(\"https.protocols\")),\r\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
access to a set of convenience routines for doing things in a quicker, although less structured, fashion
public ShortCuts getShortCuts();
[ "protected void method_5557() {}", "protected abstract void mo3493a();", "private void specialisedFunctions(){\r\n\t\t// Using non-specialised function\r\n\t\tFunction<Integer, Employee> empFunction = null;\r\n\t\t// Converting to a specialised function\r\n\t\tIntFunction<Employee> empFunction2 = null;\r\n\t\t\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates a dialogue box for adding tags for the next trip
private static void addNextTripTagsToEntry(final EntryWrapper entry, final DatabaseObserver observer, final Activity activity) { //inflating the views LayoutInflater layoutInflater = LayoutInflater.from(activity); View addEntryLayout = layoutInflate...
[ "public void confirm(ActionEvent e) {\n\t\n\t\t\tString tagType=null;\n\t\t\ttry {\n\t\t\t tagType=TypeChoiceBox.getSelectionModel().getSelectedItem().toString();\n\t\t\t}\n\t\t\tcatch(Exception ex) {\n\t\t\tAlert alert = new Alert(AlertType.ERROR);\n\t\t\talert.setHeaderText(\"Please select appropriate tag type\")...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Checks if the given file is writable
public String execute(File f) { if (f == null) throw new IllegalArgumentException("file cannot be null"); return f.canWrite() ? "true" : "false"; }
[ "protected boolean isWriteable(File file) {\n\t\tif (file.exists()) {\n\t\t\t// Check the existing file.\n\t\t\tif (!file.canWrite()) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t} else {\n\t\t\t// Check the file that doesn't exist yet.\n\t\t\t// Create a new file. The file is writeable if\n\t\t\t// the creation succeeds...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Instantiates a JWKSet for a given url.
@Nullable protected JWKSet loadJwkSet(String url) { return jwkSetFetcher.fetch(url) .orElse(null); }
[ "public UrlJwkProvider(URL url) {\n this(url, null, null);\n }", "public UrlSet(Collection<URL> urls){\r\n this.urls = new HashMap<String,URL>();\r\n for (URL location : urls) {\r\n this.urls.put(location.toExternalForm(), location);\r\n }\r\n }", "public Document in...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get the id for collisions. This id can be used to access the collision as a data source.
public int getCollisionID () { return animatorCanvas.getCollisionThing().hashCode(); }
[ "public java.lang.String getHitId() {\n java.lang.Object ref = hitId_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toString...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method gets the cell, which is occupied by a car and makes the amount of cells equal to length behind the car occupied as well.
public void UpdatePresence(int length, Cell current) { int index = 0; boolean found = false; for (index = 0; index < cells.length; index++) { if (cells[index] == current) { found = true; break; } } if (found) { int i = 0; for (; i < length && index - i >= 0; i++) { cells[index - i].set...
[ "public void decrementNumberOfCellsOccupied()\r\n {\r\n numberOfCellsOccupied--;\r\n }", "public abstract int getCellCount();", "private int getNumCells() {\n\t\t\treturn trackStartingCells.size();\n\t\t}", "public abstract int getNumberOfCells();", "protected int size() {\n return cells...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
divasma twn dedomenwn olwn twn perioxwn apo thn vash mesw antikeimenou regionsData tupou Data kai ekxwrhsh twn dedomenwn pou diavastikan ston pinaka regions tupou Region
public void readRegionsData(){ for(int i=0;i<regions.length;i++){ regions[i]=regionsData.readRegion(i+1); } }
[ "private void loadRegionData(Document doc, RegionDataManager manager) {\r\n // Region parentOfNewParent = manager.getCurrentRegion();\r\n \r\n // EMPTY THE SUB REGION LISTS\r\n manager.clearRegions();\r\n //\r\n //UPON EMPTYING OF THE REGIONS LIST ALL REFERENCES TO THE REGIO...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
repeated int64 ids = 1;
public int getIdsCount() { return ids_.size(); }
[ "void encodeRepeatedSInt64(int fieldId, @Nullable Iterable<Long> values);", "@Test\r\n\tpublic void testIds()\r\n\t{\r\n\t\tSet<Long> ids = new HashSet<>();\r\n\t\tfor (Movie movie: movies)\r\n\t\t{\r\n\t\t\tids.add(movie.movieId);\r\n\t\t}\r\n\t\tassertEquals (movies.length, ids.size());\r\n\t}", "public inter...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Formats the given date as an ISO 8601 date.
public static String formatDate(String date, String[] formats) { for (int i=0; i<formats.length; i++) { String result = formatDate(date, formats[i]); if (result != null) return result; } return null; }
[ "public static String getISOFormattedDate(Date date) {\r\n SimpleDateFormat fmt = new SimpleDateFormat(TIMESTAMP_FORMAT);\r\n return fmt.format(date);\r\n }", "public String getISO8601StringForDate(Date date) {\r\n\t\tDateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd HH:mm\", Locale.GERMA...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
String label = DateUtils.formatDateTime(getApplicationContext(), System.currentTimeMillis(), DateUtils.FORMAT_SHOW_TIME | DateUtils.FORMAT_SHOW_DATE | DateUtils.FORMAT_ABBREV_ALL); // Update the LastUpdatedLabel fillView.getLoadingLayoutProxy().setLastUpdatedLabel(label); Do work to refresh the list here. new GetDataTa...
@Override public void onPullUpToRefresh(PullToRefreshBase<ListView> refreshView) { getBlog(false); }
[ "@SuppressLint(\"SimpleDateFormat\")\r\n\t\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\t\tadapter.notifyDataSetChanged();\r\n\t\t\t\t\t\t\t\t\tpullToRefreshListView.onPullDownRefreshComplete();\r\n\t\t\t\t\t\t\t\t\tSimpleDateFormat df=new SimpleDateFormat(\"MM-dd HH:mm\");\r\n\t\t\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method corresponds to the database table smt_shipping_template_detail
int countByExample(SmtShippingTemplateDetailExample example);
[ "Shipping selectByPrimaryKey(String shippingId);", "public UfDetailTemplate() {\n this(DSL.name(\"uf_detail_template\"), null);\n }", "public List GetShelterTable() {\n\n\n\n\n //here we want to to a SELECT * FROM food_pantry table\n MapSqlParameterSource params = new MapSqlParameterSou...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Setter for the project packaging.
public void setProjectPackaging( String inProjectPackaging ) { this.projectPackaging = inProjectPackaging; }
[ "public java.lang.String getPackaging() {\n return packaging;\n }", "public void setTargetPackage(String v)\r\n {\r\n targetPackage = v;\r\n }", "public void setPackage(final String packageName) {\n javaPackage = packageName;\n }", "private static void setPackageName() throws ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns a QcTestCase from xml data
public static QcTestCase getTestcase(HierarchicalConfiguration testcaseData) { QcTestCase qcTestcase = null; if (testcaseData != null) { qcTestcase = new QcTestCase(); qcTestcase.setId(testcaseData.getString(ID_TAG)); qcTestcase.setName(testcaseData.getString(NAME_TAG...
[ "public XmlTest() {\n super();\n }", "Instances getTestData();", "QATest createQATest();", "protected TestCase getTestCase() {\n return createTestLoader(this.getClass().getSimpleName(), this.getClass().getPackage().getName()).load();\n }", "T fromXml(Source xml);", "public XmlDataConte...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ extract the needed info to print out
public static String results2string(double[][] array_from_regression, double corrected_threshold) { if (array_from_regression == null) return null; //"pvalue,AdjustedR2,coefficient,Sd_Err,MAF_count\n" if (array_from_regression[1][1] <= corrected_threshold) { String result...
[ "void printExtraInfo();", "public void printinfo()\n {\n System.out.println(\"Name: \"+name+\"\\n platform: \"+platform+\"\\n Price per unit: \"+this.get_price()+\"\\nProduct aviable: \"+this.get_count());\n }", "void printDetails() {\n\t\tOS anno = (new Ubuntu()).getClass().getAnnotation(OS.class)...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Constructeur de Piece. Prend en arguments la largeur et la longueur de la piece, ainsi qu'une liste d'objets.
Piece(int lar, int lon, ArrayList<Objet> obj, Robot robot) { largeur = lar; longueur = lon; objets = obj; rob = robot; Objet mur1 = new Objet(new Rectangle(new Point(2,(int)longueur/2),longueur,4)); Objet mur2 = new Objet(new Rectangle(new Point((int)largeur/2,2),4,largeur)); Objet mur3 = new Objet(new...
[ "public Piece()\r\n {\r\n \r\n }", "public void creerPieces() {\r\n\t\tPiece tougato;\r\n\t\tPiece confiture;\r\n\t\tPiece cacao;\r\n\t\tPiece bonbon;\r\n\t\tPiece biscuit;\r\n\t\tPiece glace;\r\n\t\tPiece gateau;\r\n\t\tPiece croquant;\r\n\t\tPiece fromage;\r\n\t\tPiece bateau;\r\n\t\t\r\n\t\t// cre...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Instantiate a given config, conditions, target triple
private static ISPGroup instantiate(ISPFactory fact, ISPProgram prog, ISPTemplateGroup templateGroup, SPSiteQuality siteQualityData, SPTarget targetData) throws Exception { final TemplateGroup templateGroupData = (TemplateGroup) templateGroup.getDataObject(); final ISPGroup group = createGroup(fact, pro...
[ "public static ConditionBuilder prebuild(boolean targeting, TargetingTemplates.ConditionTemplate conditionTmlt, Map args) {\n ConditionBuilder builder = new ConditionBuilder(args);\n switch (conditionTmlt) {\n case POS_CHECK -> {\n return builder.pos();\n }\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ / / / /
public void parse() throws TransformerException, IOException { /* 77 */ int c = 0; /* 78 */ int index = 0; /* 79 */ char[] aChar = new char[65535]; /* 80 */ StringBuffer xmlDeclStr = new StringBuffer(); /* 81 */ while ((c = this.m_pushbackReader.read()) != -1) { /* 82 */ aChar[index] = (...
[ "private void calculatePaths() {\n\n\n }", "public static void main (String arg[]){\n\tSystem.out.println(\" ( ) ( ( \"); \n\n\tSystem.out.println(\" ( )\\\\ ) ( /( ( )\\\\ ) ( )\\\\ ) \");\n\t\n\tSystem.out.println(\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method corresponds to the database table im_config
int updateByExampleSelective(@Param("record") ImConfig record, @Param("example") ImConfigExample example);
[ "private void generateSqlMapConfig() throws Exception {\n\t\tString sqlMapFilePath = CODEPATH.concat(File.separator).concat(SQLMAP_CONFIG).concat(XML);\r\n\t\tFile bean = new File(sqlMapFilePath);\r\n\t\tbakFile(bean);\r\n\t\tFileUtils.touch(bean);\r\n\r\n\t\tString content = coverVM2String(\"SqlMapConfig.xml.vm\",...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Specifies that a new blank data disk needs to be attached to virtual machine.
T withNewDataDisk(Integer sizeInGB);
[ "OperationStatusResponse createDataDisk(String serviceName, String deploymentName, String roleName, VirtualMachineDataDiskCreateParameters parameters) throws InterruptedException, ExecutionException, ServiceException, IOException;", "public ComputeInstanceDataDisk() {\n }", "@java.lang.Override\n public...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method takes into account all the factors that may make the proposed move by the player invalid. It calls various other helper methods that look at different factors.
public boolean validMove(char player, String input) { //Not valid input length if(input.length() < 5) return false; //break up the input char fromCol = input.charAt(0); char toCol = input.charAt(3); //get the column index int fromColInd = colIndex(fromCol); int toColInd = colIndex(toCol); ...
[ "public boolean illegalMove(String player, String toTile)\n throws InvalidPieceException, InvalidPlayerException {\n Board.board.map.valueLock = true;\n \n /* Seeing if White player is putting their King in danger. Ensures value lock is true,\n * meaning when checking each piece's validation metho...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ access modifiers changed from: private / access modifiers changed from: public / renamed from: a
private /* synthetic */ void m54255a(String str, AdDwObserverWrapper.C9178a aVar, ObservableEmitter sVar, String str2) throws Exception { m54261b(str, aVar, sVar); }
[ "protected void a() {}", "protected void method_5557() {}", "private void a() {\n }", "public void mo5201a() {\n }", "interface C4511c {\n /* renamed from: a */\n void mo29775a();\n }", "public void mo28221a() {\n }", "@Override\r\n public void public...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
if the worker exist in his job map, return true. else, return false.
public boolean existWorker(final String type, final String name) { if (type.equals("Cashier") && cashiermap.containsKey(name)) { return true; } else if (type.equals("Reshelver") && reshelvermap.containsKey(name)) { return true; } else if (type.equals("Receiver") && receivermap.containsKey(name))...
[ "boolean hasMiniJobId();", "public boolean exists(final GlassFishServer srv) {\n boolean result;\n synchronized (jobs) {\n result = jobs.containsKey(srv);\n }\n return result;\n }", "boolean hasAWorkGubun();", "@Override\n public boolean addWorker(Worker worker) th...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the value of the 'ascending' field. ascending? (or descending)
public java.lang.Boolean getAscending() { return ascending; }
[ "public Boolean getAscending() {\n\t\treturn this.Ascending;\n\t}", "public void setAscending(boolean asc) {\n this.asc = asc;\n }", "public float getAscent () {\n\t\treturn data.ascent;\n\t}", "public boolean isAscending(int index)\n {\n return _ascending.get(index).booleanValue();\n }", "pu...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
update method for the game object the module is bound to
public void updateObject() { if (true) { //TODO: check if there is a game pad plugged in if (Mouse.isButtonDown(1)) { int change = Mouse.getDWheel(); if (change > 0) fovModifier++; else if (change < 0 && fovModifier > 2) fovModifier--; ...
[ "public void update(){\n game.update();\n }", "public void update(){\n\t\n}", "public void update()\n {\n }", "public void update(){\r\n gameObjects.forEach(gameObject -> gameObject.update());\r\n }", "protected void update() {\n\n }", "public abstract void update(Ga...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
public static void main(String[] args) { String s = ""; String t = ""; _161_OneEditDistance t1 = new _161_OneEditDistance(); t1.isOneEditDistance(s, t); }
[ "@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
public boolean isStop() { 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" ] ] } }
Constructor, initialize the value to value
public NslBoolean2(boolean[][] value) { super(); _data = new boolean[value.length][value[0].length]; set(value); }
[ "public Value( ) {\n\t}", "public void init(Object value);", "public VersionValue(Object value) {\n \t\tthis.value = value;\n \t}", "public FieldValue() {\n }", "public AttributeValue() {\n this(false);\n }", "public Node(){\n\t\tvalue = 0;\n\t}", "public Construct( String value )\r\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates a new Internal Session
public InternalSession newInternalSession(String domain, HttpSession httpSession) { try { return newInternalSession(domain, httpSession, true); } catch (SessionException e) { sessionDebug.error("Error creating new session", e); return null; ...
[ "public Session createSession() {\n return Session.getInstance(this.properties, null);\n }", "private void createSession() {\n\t\tif(session == null) {\n\t\t\tsession = SessionUtil.getSession();\n\t\t}\n\t}", "protected abstract Session createSession();", "static ClientSession newSession() throws IO...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
get mapping T2 3.3
@RequestMapping(method = RequestMethod.GET) public List<OfferEntity> getAllOffers() { return (List<OfferEntity>) offerRepository.findAll(); }
[ "public abstract Map<C0451h, C0382di> mo4463a();", "Object getMAPPINGNAME();", "java.util.Map<java.lang.String, java.lang.String>\n getMappingsMap();", "public abstract Map<String, Object> mo36197g();", "public OUT map2(IN2 value);", "SourceMappingType getSourceMapping();", "Map<String, String> getTi...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Page token. To get the next page of results, set [page_token] to the [ListClusterHostsResponse.next_page_token] returned by the previous list request. string page_token = 3 [(.yandex.cloud.length) = "&lt;=100"];
public Builder setPageToken( java.lang.String value) { if (value == null) { throw new NullPointerException(); } pageToken_ = value; onChanged(); return this; }
[ "public ListXpnHosts setPageToken(java.lang.String pageToken) {\n this.pageToken = pageToken;\n return this;\n }", "public ListPerInstanceConfigs setPageToken(java.lang.String pageToken) {\n this.pageToken = pageToken;\n return this;\n }", "public ListManagedInstances setPa...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Remove existing fragment with same tag and add new one.
public static void addFragment(Context context, FragmentManager manager, int containerId, FragmentElement element) { FragmentTransaction tx = manager.beginTransaction(); addFragment(context, manager, tx, containerId, element); tx.commit(); }
[ "public void removeCurrentFragment()\n\t{\n\t}", "private void replaceFragment(int container, String fragment_tag, Fragment fragment_in, boolean addToBackStack) {\n FragmentTransaction transaction = getSupportFragmentManager().beginTransaction();\n\n if (Objects.equals(fragment_tag, Constants.TAG_FR...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
BOTH WORKS! Page users = userRepository.findByLoginLikeIgnoreCaseOrNameLikeIgnoreCaseOrEmailLikeIgnoreCase(page, "%" + keyword + "%", "%" + keyword + "%", "%" + keyword + "%");
@ApiOperation(value = "根据用户名查询用户") @ApiResponses(@ApiResponse(code = 200, message = "查询信息成功", response = User.class, responseContainer = "List")) @GetMapping("/users") @ApiPageable public ResponseEntity<List<User>> queryUsers( @PageableDefault Pageable page, // TODO: too much params ...
[ "@SuppressWarnings(\"unused\")\npublic interface JenisJurnalRepository extends JpaRepository<JenisJurnal, Integer> {\n\n @Query(\"from JenisJurnal a \"\n + \"where upper(a.nama) like upper(:s) \"\n + \"or upper(a.keterangan) like upper(:s) \")\n public Page<JenisJurnal> filterByKey(@Para...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "ruleXNullLiteral" $ANTLR start "entryRuleXNumberLiteral" InternalModelQueryLanguage.g:4732:1: entryRuleXNumberLiteral returns [EObject current=null] : iv_ruleXNumberLiteral= ruleXNumberLiteral EOF ;
public final EObject entryRuleXNumberLiteral() throws RecognitionException { EObject current = null; EObject iv_ruleXNumberLiteral = null; try { // InternalModelQueryLanguage.g:4733:2: (iv_ruleXNumberLiteral= ruleXNumberLiteral EOF ) // InternalModelQueryLanguage.g:473...
[ "public final EObject entryRuleXNumberLiteral() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleXNumberLiteral = null;\n\n\n try {\n // ../hsh.swa.ocl/src-gen/hsh/swa/ocl/parser/antlr/internal/InternalOCL.g:4834:2: (iv_ruleXNumberLiteral= ruleXNumberLiteral...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the language components with the specified identifiers.
private Collection<ILanguageComponent> getLanguages(Iterable<LanguageIdentifier> ids) throws MissingDependencyException { final Collection<ILanguageComponent> components = new LinkedList<>(); for(LanguageIdentifier id : ids) { final ILanguageComponent component = this.languageService...
[ "Set<LanguageName> getLanguageNames();", "VoShopLanguages getShopLanguages(long shopId) throws Exception;", "public LanguageParameters getLanguageParameters ();", "public List<cn.vertxup.ambient.domain.tables.pojos.XCategory> fetchByLanguage(String... values) {\n return fetch(XCategory.X_CATEGORY.LANGU...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
A preorder (parent, left, right) traversal of a node. It returns a string which is empty if the node is null. Otherwise it returns a string that concatenates the current node's value with the values of the 4 subregions (with spaces between).
private String preorder(FourZipNode node){ if(node == null) return null; String result = ""; if(node.getValue() != QUAD_SPLIT){ result += node.getValue() +" "; } if(node.getValue() == -1) { result += "( "; result += preorder(node.getChild(Quadr...
[ "private String preorder(QTNode node)\n {\n //If there is no value, just return upward (base case 1)\n if(node == null)\n {\n return \"\";\n }\n //Recursively call if the node being passed is a -1\n //signaling more block breakage within this block of pixels\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
get the P of classValue Index in m_classLabelValuesList
public double getProbabilityOfClassValue(int classValueIndex) { double classP = 0.0d; if(m_classType.isCategorical()){ int classValueNum = this.m_traingDataSet.getClassValueMap() .get(getClassValueByIndex(classValueIndex)); classP = (double) classValueNum / Tool.getSum(this.m_traingDataSet ...
[ "public Point getLabel(String value) {\n int index = getValues().indexOf(value);\n \n return yLabelLayout.getCellBounds(0, index).getCenter();\n }", "final public H getLabel(final int p) {\r\n\t\treturn getLabels().get(p);\r\n\t}", "private float getPcPerLabel(int labelIndex, T...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Set a commaseparated list of roles that can edit
public void setEditorRoles(String editorRoles) { this.editorRoles = editorRoles; }
[ "protected void setRoles(List<Role> roles) {\n this.roles = roles;\n }", "void setRolesDefined( boolean roles );", "public void editRole() {\n String title;\n Long id;\n Boolean list;\n Boolean b = false;\n list = readBooleanChoice(CLI_ASK_LIST_ID);\n if (list...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the associated security related metadata from this Transaction.
Object getSecurityMetaData();
[ "private SecurityInfo getSecurityInfo() {\n SecurityInfo securityInfo = null;\n HttpSession session = request.getSession(false);\n if (session != null) {\n securityInfo = (SecurityInfo) request.getSession().getAttribute(SecurityInfo.SECURITY_KEY);\n }\n if (securityInfo == null) {\n throw n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Interacts item using specified action
public static boolean interactItem(String action, Pattern... pattern) { SpriteItem item = Inventory.newQuery().names(pattern).results().random(); SpriteItem selectedItem = Inventory.getSelectedItem(); if (item != null) { for (int tries = 0; tries < 3; tries++) { if (selectedItem != null) { selectedIt...
[ "public void commandAction(Command c, Item item) {\n\t\t\r\n\t}", "public abstract Action onInteract(Entity e);", "void performAction(Integer action, Integer personID, Connection connection);", "public abstract void performAction(int action);", "protected abstract void doPerformAction();", "@Override\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Write a method named toString to return all the instance fields as a String. Use concatenation to build the String. Use your getter methods for all instance fields. public String toString()
public String toString() { String str_1 = "the colour is " + this.getcolour() + "\n" + "the height is " + this.getheight() + "\n" + "the width is " + this.getwidth() + "\n" + "the depth is" + this.getdepth(); return str_1; }
[ "public String toString() {\n return FieldPrinter.getFieldsAsString(this);\n }", "public String toString() {\n\t\t\t\treturn (getName() + \" \" + getAddress() + \" \" + getAge() + \" \" ); \n\t}", "public String toString() {\r\n\t\treturn StringUtil.formatObjectToString(this);\r\n\t}", "public Strin...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the data in a flat rowwise representation.
public float[] getFlatData() { float[] flatDta = new float[height * height]; for (int i = 0; i < height; i++) { System.arraycopy(data[i], 0, flatDta, i * width, width); } return flatDta; }
[ "public List<T> asFlatList() {\n List<T> list = new ArrayList<T>();\n for (int i = 0; i < getRowCount(); i++) {\n for (int j = 0; j < getColumnCount(); j++) {\n list.add(getLogicalValueAt(i, j));\n }\n }\n return list;\n }", "public double[] getR...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Emit help text to print stream.
public static void help(PrintStream out) throws IOException { out.println("usage: java -jar example.jar [<options>]"); out.println(); out.println(" -h help text"); }
[ "public void printHelp () {\r\n help.outputHelp();\r\n }", "private void printHelp () {\r\n\t\tfor (String s : helpText) {\r\n\t\t\tSystem.out.println(s);\r\n\t\t}\r\n\t}", "private void printHelp() \n {\n System.out.println(\"You are lost and alone. You wander\");\n System.out.printl...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Created by user on 15912.
public interface GetCircleThemeList { @GET("") public void GetThemeList(); @GET("/index.php?act=circle&op=circleThemes") public void GetThemeListPage(@Query("curpage")String curpage, @Query("page")String page, @Query("circle_id")String circleId, Callback<CircleThemeList> responseCallback); @GET("/...
[ "@Override\n public void extornar() {\n \n }", "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "private static void EX5() {\n\t\t\r\n\t}", "protected void method_5557() {}", "@Override\n public int utilite() {\n return 0;\n }", "...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Tests for nil ith "result" element
boolean isNilResultArray(int i);
[ "boolean getReturnResultNull();", "@java.lang.Override\n public boolean hasResult() {\n return result_ != null;\n }", "public boolean isNilReturn()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n net.ip_label.ws.ws_datametrie_php...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
declare a function private bcz 1st priority is given to local
private Connection createConnection() throws ClassNotFoundException, SQLException { //loading of driver Class.forName("org.h2.Driver"); //connection to DB con=DriverManager.getConnection("jdbc:h2:tcp://localhost/~/suman", "sa", ""); return con; }
[ "public static void first_function(){\n\t\tint abc = 20; // abc is local variable to this static function\n\t}", "Double priority();", "public void adminOnlyViaGlobalDeclaration()\r\n {\r\n \r\n }", "void fun(){\n\t\t\n\t}", "private void FUNCOUT() {\n\t}", "public void fun() {\n\t\t\n\t}", ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method corresponds to the database table t_paper
int updateByPrimaryKeyWithBLOBs(TPaperWithBLOBs record);
[ "@Override\n public String getPaperID() {\n return paperID;\n }", "@Override\n\tpublic void CreateFromSQL() {\n\n\t}", "public void delete(Paper paper) {\n\t\tgetHibernateTemplate().delete(paper);\r\n\t}", "public String penId();", "@Override\r\n\tpublic String getTableName() {\n\t\treturn \"Permission...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
mark order completed "complete next" would be useful extra feature
public void printrp() { System.out.println(priceTable); }
[ "public void completeNextOrder(){\n\t\tOrder currentOrder = allOrders.entrySet().iterator().next().getValue();\n\t\twhile (currentOrder.orderFulfilled() != true) {\n\t\t\tfor (int i = 0; i < currentOrder.order.size(); i++) {\n\t\t\t\tcurrentOrder.getItemNeeded(currentOrder.order.get(i));\n\t\t\t}\n\t\t}\n\t\t\n\t}"...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__TRequirementDefinition__Group_8__0" $ANTLR start "rule__TRequirementDefinition__Group_8__0__Impl" ../eu.artist.tosca.dsl.ui/srcgen/eu/artist/tosca/dsl/ui/contentassist/antlr/internal/InternalToscaDSL.g:19953:1: rule__TRequirementDefinition__Group_8__0__Impl : ( 'upperBound' ) ;
public final void rule__TRequirementDefinition__Group_8__0__Impl() throws RecognitionException { int stackSize = keepStackSize(); try { // ../eu.artist.tosca.dsl.ui/src-gen/eu/artist/tosca/dsl/ui/contentassist/antlr/internal/InternalToscaDSL.g:19957:1: ( ( 'upperBound' ) ) ...
[ "public final void rule__JvmUpperBound__Group__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../jpaqldsl.ui/src-gen/jpaqldsl/ui/contentassist/antlr/internal/InternalJPAQLDsl.g:25746:1: ( ( 'extends' ) )\n // ../jpaqlds...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
returns true if the player is in the labryinth
public boolean inLab(){ return inLab; }
[ "public boolean inGame()\n\t{\n\t\treturn this.getLocation() != null;\n\t}", "boolean isPerPlayer();", "public boolean SeePlayer() {\n\t\t// Checks whether the Nyan can see the player.\n\t\t// It does this by checking whether the angle the line from player to\n\t\t// Nyan makes with the Z-axis\n\t\t// and wheth...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Fixes the file separator char for the target platform using the following replacement. '/' &x2192; File.separatorChar '\\' &x2192; File.separatorChar
public static String fixFileSeparatorChar(final String arg) { return arg.replace(SLASH_CHAR, File.separatorChar).replace(BACKSLASH_CHAR, File.separatorChar); }
[ "private String refactorFileSeparator(final String path) {\n\t\treturn path.replace(\"\\\\\", File.separator);\n\t}", "public static char fileSeparator(){ return FILE_SEPARATOR; }", "public String getSeperatorChar(){\r\n\t\tString sepVal=\"\";\t\t\t\r\n\t\tif (isWindows()){\r\n\t\t\tsepVal = \"\\\\\";\r\n\t\t}e...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This is the method with the main functionality for this class. It will perform a conversion of the source XML from the specified source InputStream to Module specific XML for use in a Module.
public boolean convertXml(InputStream xmlInputStream, OutputStream convertedXmlDestination, boolean closeSourceAfter, boolean closeDestinationAfter) { if (conversionParser != null && xmlInputStream != null && convertedXmlDestination != null) { String encodingName = XmlUtil.UTF8.displayName(); ...
[ "protected void readFromXMLImpl(XMLStreamReader in) throws XMLStreamException {\n readFromXMLImpl(in, null);\n }", "private static void createFromXML(final InputSource input, final View parent)\n {\n try\n {\n final DocumentBuilderFactory dbFactory = DocumentBuilderFactory.ne...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
0.0 1.0 bit change probability
public Noiser() { noising = 0.1f; random = new Random(); }
[ "int toss_biased() {\n return new Random().nextInt(3) > 1 ? 1 : 0;\n }", "@Override\n\tpublic double giveProbability() {\n\t\treturn 1;\n\t}", "public static byte probabilityToPhredScale (double p) {\n return (byte) ((-10) * Math.log10(p));\n }", "int getTProbability();", "static public ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Failure test for the constructor ReviewApplicationManagerImpl(ConfigurationObject configuration) with configuration is null. IllegalArgumentException is expected.
@Test(expected = IllegalArgumentException.class) public void testCtor3_configurationNull() { configuration = null; new ReviewApplicationManagerImpl(configuration); }
[ "@Test(expectedExceptions = IllegalArgumentException.class)\n public void testNullToolContext() {\n new ConfigManager(null);\n }", "@Test(expected = ReviewApplicationManagementConfigurationException.class)\n public void testConfigure_DbConnectionFactoryConfigIsInvalid() throws Exception {\n configu...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ / / / / /
public int length() { /* 146 */ return this.buffer.length(); /* */ }
[ "private void calculatePaths() {\n\n\n }", "public static void main (String arg[]){\n\tSystem.out.println(\" ( ) ( ( \"); \n\n\tSystem.out.println(\" ( )\\\\ ) ( /( ( )\\\\ ) ( )\\\\ ) \");\n\t\n\tSystem.out.println(\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ access modifiers changed from: packageprivate
public View getFlyoutView() { return this.mFlyout; }
[ "protected void method_5557() {}", "@Override\n }", "@Override\n public void extornar() {\n \n }", "public void mo28221a() {\n }", "protected void mo4791d() {\n }", "protected void method_2117() {\n }", "@Override\r\n public void publicando() {\n }", "private ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ access modifiers changed from: protected
@Override // com.artitk.licensefragment.p187a.p188a.LicenseFragmentBase /* renamed from: a */ public void mo14799a(ArrayList<License> arrayList) { ArrayList arrayList2 = new ArrayList(); ArrayList arrayList3 = new ArrayList(); Iterator<License> it = arrayList.iterator(); while (i...
[ "@Override\n }", "protected void method_5557() {}", "@Override\n public void extornar() {\n \n }", "@Override\r\n public void publicando() {\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "pro...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
is the constructor and set the number of players and the queue of players, which is used to manage the turn create the ActionExecutor
public GameMaster(List<Player> playerQueue, int numOfPlayers) { this.numOfPlayers = numOfPlayers; this.playerQueue = playerQueue; createActionExecutor(); getActionExecutor().cleanActionExecutor(); }
[ "public ActionPlayer(Player player, Board board) {\n this.bomber = player;\n this.board = board;\n }", "public QueueNode(Player player){\n this.player = player;\n }", "Game(int numPlayers) {\n toolCards = new ArrayList<>();\n publicObjectiveCards = new ArrayList<>();\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets a sample rate used in processing.
@Override public void setSampleRate(double sampleRate) { ampEnvelope.setSampleRate(sampleRate); }
[ "public void setSampleRate(int rate) {\n \tperiod=(float)(1f / rate)*blockSize*2;\n nyquistFreq = rate / 2;\n \n // If we have a size, then we have a background. Re-draw it\n // to show the new frequency scale.\n if (haveBounds())\n drawBg(bgCanvas, getPaint());\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
fungsi menghilangkan rute saat ini
private void removeCurrentRoute(){ // coba try { // jika mapview dan rute marker tidak kosong if (mapView != null && routeMapPolyline != null){ // hilangkan rute mapView.getMapScene().removeMapPolyline(routeMapPolyline); // set ...
[ "private void prosesHitung() {\n //pemanggilan string tahun\n String strTahun = textTahun.getText();\n //pemanggilan string bulan\n String strBulan = textBulan.getText();\n //conversi string ke integer\n int tahun = Integer.parseInt(strTahun);\n int bulan = Integer.p...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
quiere todos TODO: Meter todo hasta el request.setAttribute en una funcion
private void opNotSupported(HttpServletRequest request) { List<Role> roles = InitListener.modelRole.getAll(); request.setAttribute(Constantes.ATT_ROLES, roles); dispatcher = request .getRequestDispatcher(Constantes.JSP_BACKOFFICE_ROLE_LIST); Message mes = new Message(); mes.setMsg(Constantes.MS...
[ "public void encapsular (){\n\t\tHttpSession sesion=request.getSession();\n\t\tString cadena = request.getParameter(tipo);\n\t\tString nombreAtribSesion=(String)this.tablaIdString.get(tipo);\n\t\tsesion.setAttribute(nombreAtribSesion,cadena);\n\t}", "public void setRequestAttributes(RenderRequest request) throws ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the InetSocketAddress of this member.
InetSocketAddress getInetSocketAddress();
[ "public InetSocketAddress getAddress() {\n return new InetSocketAddress(raw.getRawString(\"address\").split(\":\")[0], Integer.parseInt(raw.getRawString(\"address\").split(\":\")[1]));\n }", "public InetSocketAddress getSocketAddress() {\n\t\treturn this.address;\n\t}", "public InetSocketAddress getIn...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
no response is sent for batch PUT/DELETE.
private boolean shouldSendResponse(KineticMessage response) { boolean flag = true; if (response.getIsBatchMessage() == true) { MessageType mt = response.getCommand().getHeader().getMessageType(); if (mt == MessageType.PUT_RESPONSE || mt == MessageType.DELETE...
[ "private void clearResponse() {\n response_ = emptyProtobufList();\n }", "ResponseEntity<T> delete();", "public void noContent() {\n setCode(204);\n setBody(\"\");\n setMimeType(\"\");\n }", "@Override\n public void handleDelete(HttpServletRequest rq, HttpServletResponse rs)...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ Return top element of list
public T top(){ return list.get(0); }
[ "public T top(){\n return list.get(list.size()-1);\n }", "public int top() {\r\n\t\t\tif (list.size() - 1 >= 0) {\r\n\t\t\t\tint x = (int) list.get(list.size() - 1);\r\n\t\t\t\treturn x;\r\n\t\t\t}\r\n\t\t\treturn 0;\r\n\t\t}", "public E top()\n\t{\n\t\treturn list.first();\n\t\t//return list.last();\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Loop all child item of Main Grid
private void setSingleEvent(GridLayout mainGrid) { for (int i = 0; i < mainGrid.getChildCount(); i++) { //You can see , all child item is CardView , so we just cast object to CardView CardView cardView = (CardView) mainGrid.getChildAt(i); final int finalI = i; car...
[ "private void setSingleEvent(GridLayout mainGrid) {\n for (int i = 0; i < mainGrid.getChildCount(); i++) {\n //You can see , all child item is CardView , so we just cast object to CardView\n CardView cardView = (CardView) mainGrid.getChildAt(i);\n final int finalI = i;\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Add the specified month to the specified time instant. The amount added may be negative. If the new month has less total days than the specified day of the month, this value is coerced to the nearest sane value. e.g. 0731 (1 month) = 0630 0331 (1 month) = 0228 or 0229 depending
public long add(long instant, int months) { CodeCoverCoverageCounter$2bnv4ehm3ee7lgptormg6y6ntkpy9wm764vwmt9vxo5sspq8asc4h.statements[7]++; int CodeCoverConditionCoverageHelper_C1; if ((((((CodeCoverConditionCoverageHelper_C1 = 0) == 0) || true) && ( (((CodeCoverConditionCoverageHelper_C1 |= (2)) == 0 || true)...
[ "public static Date addMonths(int nbMonth) {\r\n return addMonths(new Date(), nbMonth);\r\n }", "public void addMonth(WorkMonth wm) {\n if (isNewMonth(wm)) {\n if (months.add(wm)) {\n System.out.println(\"Successfully added a WorkMonth\");\n } else { \n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test method for 'it.eng.spagobi.services.modules.DetailModalitiesModule.delDetailModalities(SourceBean, String SourceBean)', passing through the service(SourceBean, SourceBean) method.
public void testDelDetailModalities() { Collection errors = null; try { request.setAttribute("MESSAGEDET", AdmintoolsConstants.DETAIL_DEL); request.setAttribute("useId", "13"); modalitiesModule.service(request, response); errors = modalitiesModule.getErrorHandler().getErrors(); assertEquals(0, error...
[ "public void testDeleteServiceDetailAccuracy2() throws Exception {\n serviceDetailBean.deleteServiceDetail(78, true);\n\n Statement statement = jdbcConnection.createStatement();\n ResultSet set = statement.executeQuery(\"select * from service_details where service_detail_id = 788\");\n\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ Checks to see if this node is the starting node
public boolean isStart() { if(this.isStart == true) return true; return false; }
[ "public Boolean isStartNode()\n {\n \treturn this.isStartNode;\n }", "public boolean isNodeStart(PanelNode n){\n return n.x==startNode.x && n.y==startNode.y;\n }", "@Override\n\tpublic boolean before() {\n\t\t// TODO \n\t\treturn this.currentNode == 0;\n\t}", "boolean isStarting(Object item...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates a new Itinerary Pricing Info to hold fare products summary for each leg of the journey
protected ItineraryPricingInfoData createItineraryPricingInfo(final AbstractOrderModel abstractOrderModel, final ReservationItemData reservationItem) { final ItineraryPricingInfoData itineraryPricingInfo = new ItineraryPricingInfoData(); itineraryPricingInfo.setAvailable(Boolean.TRUE); final List<AbstractOrde...
[ "private List<Item> createItens() {\n\t\tList<Product> allProducts = this.createProducts();\n\t\tList<Item> itens = new ArrayList<>();\n\t\tallProducts.forEach(prod -> {\n\t\t\tItem item = new Item(prod.getPrice(), new BigDecimal(\"50.0\"), new BigDecimal(\"75\"), 1, prod);\n\t\t\titens.add(item);\n\t\t});\n\t\tret...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Delete method for use with long click context menu
public boolean deletePTV(Long ID){ Log.e("QUERY ID",String.valueOf( ID)); Cursor query = getContentResolver().query(CONTENT_URI, DBOpenHelper.ALL_COLUMNS, DBOpenHelper.PTV_ID + " = " + ID,null,null,null); int preloaded = 0; if (query.moveToFirst()){ do { ...
[ "@Override\r\n\t\t\tpublic boolean onItemLongClick(AdapterView<?> arg0, View arg1,\r\n\t\t\t\t\tint arg2, long arg3) {\n\t\t\t\tDeleteDialog();\r\n\t\t\t\treturn false;\r\n\t\t\t}", "public boolean deleteMenuItem(MenuItem item);", "@Override\n\t\t\t\t\t\tpublic void onCreateContextMenu(ContextMenu menu,\n\t\t\t...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Checks the inode (saves if directory), and counts them. Can be overridden if additional steps are taken when iterating through INodeSection.
protected void checkNode(INode p, AtomicInteger numDirs) throws IOException { if (p.hasDirectory()) { metadataMap.putDir(p); numDirs.incrementAndGet(); } }
[ "public int getInodes() {\r\n\t\treturn inodes;\r\n\t}", "private int allocInode(Inode inode) {\n InodeBlock ib = new InodeBlock();\n // Traverse inode of the disk\n for(int i = 1; i <= superBlock.iSize; i++) {\n disk.read(i, ib);\n // Traverse through inode block\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Save the given namespace into the local namespace
@Override public void saveNamespaceInfoToNode( HashMap<String, TypedIdent> localStoresNamespace) throws NameAlreadyDeclaredError, NameAlreadyGloballyDeclaredError, AlreadyInitializedError { this.localStoresNamespace = new HashMap<>(); // Save param list variables into local namespace for(Param param : p...
[ "public void setNamespace(String in) {\n this.namespace = in;\n }", "public static void changeToNamespace(String namespace) {\n \t\tlogger.fine(\"Changing namespace to namespace: \" + namespace);\n \t\tpreviousNamespaces.set((NamespaceManager.get() != null) ? NamespaceManager.get() : \"\");\n \t\tNamespaceMan...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the first charater of a string input
public char charIn() { char response = s.next().charAt(0); return response;}
[ "public static char firstCharacter(String text){\n return text.charAt(0);\n }", "public String firstCharacter(String input) {\n\t\treturn null;\n\t}", "private char firstChar(String key) {\n return key.charAt(0);\n }", "public static String firstChar(String str, Scanner input) {\n S...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Metodi GETTERS getTfPassword &egrave; un metodo getter &egrave; dichiarato public in quanto il metodo &egrave; utilizzabile all'esterno della classe
public String getTfPassword() { return String.valueOf(tfPassword.getPassword()); }
[ "private java.awt.TextField getPwdTF() {\n\tif (ivjPwdTF == null) {\n\t\ttry {\n\t\t\tivjPwdTF = new java.awt.TextField();\n\t\t\tivjPwdTF.setName(\"PwdTF\");\n\t\t\tivjPwdTF.setEchoChar('*');\n\t\t\t// user code begin {1}\n\t\t\t// user code end\n\t\t} catch (java.lang.Throwable ivjExc) {\n\t\t\t// user code begin...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@ConupTransaction public String getNodeStationRf(String station, String time) { return stationRf.getStationRainfall(station, time); }
[ "@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" ] ] } }
receive data from WidgetsWindow's button press to show off the data sending framework
@Override public void onReceiveData(int id, int requestCode, Bundle data, Class<? extends StandOutWindow> fromCls, int fromId) { switch (requestCode) { case WidgetsWindow.DATA_CHANGED_TEXT: String changedText = data.getString("changedText"); TextView status = (TextView) getWindow(id) .findV...
[ "@Override\n\tpublic void dataRecieved(Application myApp, GUI myGui) {\n\t\t\n\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tlog.info(\"Ask2 button clicked\");\n\t\t\t\t\n\t\t\t\tnew Thread(new Runnable(){\n \t@Override\n \tpublic void run(){\n \t\tsend...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates a circular path with the given properties
public CirclePath(Translation2d center, double radius, Rotation2d startingRotation, Rotation2d endingRotation, boolean clockwise) { this.center = center; this.radius = radius; this.startingRotation = startingRotation; this.clockwise = clockwise; // Adjust ending rotation if full c...
[ "protected List<Node> constructPath() {\n List<Node> path = new ArrayList<>();\n\n Node current = grid.getGoalNode();\n\n while (current != null) {\n path.add(0, current);\n\n if (current == grid.getStartNode()) {\n break;\n }\n\n curre...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ renamed from: a
public String mo43637a(int i) { List<String> list = this.f40224g; if (list != null) { return (String) list.get(i * 2); } throw new IndexOutOfBoundsException(); }
[ "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 returns target as a NextHop for source, or null if target can't be a next hop for source (according to the rules below). The NextHop class is used here (instead of simply Combination) to preserve the list of dimensions that target adds to source, thus optimizing the calling code. In order for Combination ta...
private static NextHop getNextHopFor( AffinityGroup source, AffinityGroup target) { NextHop result = new NextHop(target); Set<Class<? extends Enum<?>>> sharedAxes = new LinkedHashSet<Class<? extends Enum<?>>>(); for (Class<? extends Enum<?>>axis: target.allAxesTouched) { if (source.t...
[ "private void doHop() {\r\n if(!isNull(target) && !pSlots[target[0]][target[1]].hasPeg() && //check that target and source are set, with corresponding pegs\r\n pSlots[source[0]][source[1]].hasPeg()) {\r\n if(target[0] == source[0]) {\r\n if(Math.abs(target[1] - source...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
needs to be set from phone settings
@TypeConverter public static LocalDateTime fromTimestamp(Long value) { return value == null ? null : LocalDateTime.ofEpochSecond(value, 0, zoneOffset); }
[ "@Override\n public void customizeAdditionalSettings(PreferenceActivity activity, Object phone) {\n Log.d(\"DefaultCallFeaturesSettingExt\", \"default customizeAdditionalSettings\");\n }", "public void setPhone(String phone) {\t\t\n\t\tthis.phone = phone ;\t\t\n\t}", "public void setPhoneScreen() {...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test case number: 361 /Coverage entropy=2.2151215609245614
@Test(timeout = 4000) public void test361() throws Throwable { ErrorPage errorPage0 = new ErrorPage(); Component component0 = errorPage0.address((Object) null); assertEquals("wheel_ErrorPage", errorPage0.getComponentId()); assertTrue(component0._isGeneratedId()); }
[ "@Test(timeout = 4000)\n public void test147() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0, (CostMatrix) null);\n String string0 = ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Substitute patterns identified by a trailer and a header with a fixed substitution string. The characters that are between the header and the trailer are removed. This method can be used to replace or remove attribute macros that have not bee substituted by substituteMacros
public static String substituteMacros(String in, String header, String trailer, String substitution) { String cur = in; StringBuffer buf = null; int headerLen = header.length(); int trailerLen = trailer.length(); int offset; while ((offset = cur.indexOf(header)) >...
[ "private String replaceParams(String line) {\n\t\tif (substitutor == null) {\n\t\t\treturn line;\n\t\t}\n\t\treturn substitutor.replace(line);\n\t}", "boolean replaceHeader(String key, String value);", "String replace(Matcher matcher);", "public void replace(String fileName, String newText);", "private stat...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Updates the filter of the filtered task list to show tasks relevant to the specific keyword.
void updateFilteredListToShowUncompleteAndKeywordTasks(String keyword) throws DuplicateTaskException;
[ "private void updateDataSet() {\n\n FilterTask task = new FilterTask();\n task.execute(mSearchText);\n\n\n }", "public void setFilter(String queryText) {\n visibleNewsfeed.clear();\n for (int i=0; i<newsfeed.size(); i++) {\n if (newsfeed.get(i).getStatus().toLowerCase().c...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets (as xml) the "rev" attribute
org.openxmlformats.schemas.drawingml.x2006.main.STPositiveFixedAngle xgetRev();
[ "public String getRev()\n {\n\treturn getAttribute(\"rev\");\n }", "public java.lang.String getRevRecCode() {\n return localRevRecCode;\n }", "public String getAFFECT_COST_REV() {\r\n return AFFECT_COST_REV;\r\n }", "public short getRevLevel() {\n return revLevel;\n }", "...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }