query stringlengths 8 1.54M | document stringlengths 9 312k | negatives listlengths 19 20 | metadata dict |
|---|---|---|---|
TODO: Rename and change types and number of parameters | public static ReportReal newInstance(String param1, String param2) {
ReportReal fragment = new ReportReal();
Bundle args = new Bundle();
fragment.setArguments(args);
return fragment;
} | [
"protected void method_5557() {}",
"@Override\n\tpublic void use(byte[] parameters) {\n\t\t\n\t}",
"@Override\n }",
"public abstract String processParameters();",
"@Override\n public void extornar() {\n \n }",
"@Override\n\tpublic int getNumParameters() {\n return 2;\n }"... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Closes the current active window or tab driver.close(); Closes all the windows opened during session | public void closeBrowser() {
driver.quit();
} | [
"public void closeActiveWindow() {\n\t\tdriver.close();\n\t}",
"public void closeWindow()\r\n\t{\r\n\t\tthis.driver.close();\r\n\t}",
"public void closeBrowserTab(){\n driver.close();\n }",
"public void closeAllTabsAndSwitchToMainWindow() {\r\n\t\tSet<String> windows = driver.getWindowHandles();\r\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
supprimerLogiciel fonction qui permet de supprimer une Logiciel de la base | public int supprimerLogiciel()
{
Gbd gbd = new Gbd();
gbd.connecter();
String requete = "DELETE FROM logiciel WHERE id_logiciel ="+this.id_logiciel;
int res = gbd.execUpdate(requete);
gbd.deconnecter();
return res;
} | [
"public void eliminar() {\n\t}",
"@Override\r\n\tpublic void destruir() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void remover() {\n\t\t\r\n\t}",
"public abstract boolean eliminarRegistro();",
"@Override\n\tpublic void eliminar(Object t) {\n\t\t\n\t}",
"private void EliminaBase()\n {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Part of the BufferedComponent interface | public BufferedImage getBufferedComponentImage() {
return(_bufferedImageManager.getBufferedImage());
} | [
"public interface BasicComponent {\n\n /***\n * Sets component owner\n * @param owner component owner\n */\n public void setComponentOwner(String owner);\n\n /***\n * Gets component owner username\n * @return component owner username\n */\n public String getComponentOwner();\n\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Removes value if it is found in set All values equal to given value will be removed in case there is more than one | public boolean removeValue(int valToRemove)
{
// check if the array has the element
if(hasElement(valToRemove))
{
int index;
int indexOfValue = 0;
// Loop through the array to find the index of the value to remove
for(index = 0; index < this.ar... | [
"public Set<Tag> removeByValue(Value value) {\n\t\tif(!values.containsKey(value))\n\t\t\treturn new TreeSet<Tag>();\n\t\t\n\t\tSet<Tag> removed = new TreeSet<Tag>();\n\t\tfor(Tag tag : values.get(value)) {\n\t\t\tif(tags.get(tag).size() == 1) {\n\t\t\t\tremoved.add(tag);\n\t\t\t\ttags.remove(tag);\n\t\t\t} else\n\t... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Failed to read value | @Override
public void onCancelled(DatabaseError error) {
Log.w("error", "Failed to read value.", error.toException());
} | [
"public abstract String getFailsafeValue();",
"@Override\n public void onCancelled(DatabaseError error) {\n Log.w(\"value\", \"Failed to read value.\", error.toException());\n }",
"private String readValue(JsonObject device) {\n String ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Name: rotate Method used to rotate a square. pre: Square object already created. post: Rotated square. | public void rotate() {
rotation = (rotation + ANGLE_ROTATE) % 360;
} | [
"public void rotate(Rotation rotation_);",
"@Override\n public void rotate(){\n super.rotate();\n horizontal = !horizontal;\n //changes x and y coordinates based on which position rotating to\n if(horizontal){\n this.squares[0].setX(this.squares[0].getX()-GameBoard.BLOCKS... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
================================================================================================================ Fonctions print ================================================================================================================ Print les nodes dans le tableau list | void printNode(ArrayList<Node> list) {
System.out.print("Nodes qui respectent la propriété : ");
for (int i = 0; i < list.size(); ++i) {
if (i != list.size() - 1)
System.out.print(list.get(i).getID() + ", ");
else
System.out.print(list.get(i).getID... | [
"void print(){\r\n\t\tSystem.out.println(\"---------------------------\");\r\n for (int i = 0; i < table.length; i++){ \r\n Node listNode = table[i];\r\n while (listNode != null){\t\t\t\t\r\n System.out.println(\"Key: \" + listNode.getKey() + \" Value: \" + li... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
private transient SomeObject thisWillNotBeSerialized; | public AccountInfo() {
} | [
"public /*override*/ boolean CanSerializeToString() { return false; }",
"boolean isSkipSerialization();",
"public interface SerializableState extends Serializable {\n\n /**\n * Retrieve the class of the object which would be returned by\n * invoking <code>getObject()</code>.\n *\n * @return T... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get the persisted timeout value when Domain is quiesced. | public int getQuiesceTimeout() {
int retval = 0;
try {
retval = this.getStoredInstance().getQuiesceTimeout();
} catch (DeletedException e) {
// Eat it
}
return retval;
} | [
"public int getTimeout() {\n if (options.containsKey(QueryOption.TIMEOUT.value)) {\n return (int) options.get(QueryOption.TIMEOUT.value);\n } else {\n return DEFAULT_TIMEOUT;\n }\n }",
"public int getQueryTimeout() {\n return this.timeout;\n }",
"public Op... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | @SuppressLint("UseValueOf") @Override
public void onClick(View arg0) {
String str = et.getText().toString();
InputMethodManager imm = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE);
imm.hideSoftInputFromWindow(et.getWindowToken(), 0);
mysound=MediaPlayer.create(Mai... | [
"@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"
]
]
}
} |
Start a new game of Boggle, clearing the list of found words and resetting the board. | private void startNewGame() {
clearSelections();
for (Button b : buttons) {
// random capital ascii value generated
Random random = new Random();
int randomNum = random.nextInt((90 - 65) + 1) + 65;
char randomLetter = (char)randomNum;
b.setText... | [
"public void startNewGame() {\n if (state != GameState.RUNNING) {\n word = wordlist.getRandomWord().toLowerCase();\n remainingFailedGuesses = word.length();\n guessedLetters = \"\";\n state = GameState.RUNNING;\n }\n }",
"private void freshStart ()\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
End of MyConnection methods | public static List<Object> getFoodOrderList(Employee employee) {
Session session = startSession();
List<Object> list = new ArrayList<>();
Criteria criteria = session.createCriteria(FoodOrder.class).setResultTransformer(
Criteria.DISTINCT_ROOT_ENTITY);
String email = employee.getEmail();
criteria.add(Restr... | [
"@Override\n\tpublic void initConnection() {\n\t\t\n\t}",
"@Override\n public void afterConnectionEstablished() {\n }",
"@Override\n\tpublic void onConnection() {\n\t}",
"private void getDataFromConnection() {\r\n\r\n\r\n\r\n }",
"public void getConnection() {\n\r\n\t}",
"public s... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Called when the activity is first created. | @Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.scnd);
TextView tv = (TextView) findViewById(R.id.textView1);
Bundle bun = getIntent().getExtras();
int dogAge = bun.getInt("dogAge");
tv.setText("Your... | [
"protected void onCreate() {}",
"@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\t\t\n\t\tinitData();\n\t\n\t}",
"@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\t\tULog.i(this, \"onCreate() \");\n\t\tinitData();\n\t}",
"@Override\n public void onCreate () {\n super.onC... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO: Warning this method won't work in the case the id fields are not set | @Override
public boolean equals(Object object) {
if (!(object instanceof EgresoCajaRecaudacion)) {
return false;
}
EgresoCajaRecaudacion other = (EgresoCajaRecaudacion) object;
if ((this.egresoCajaRecaudacionId == null && other.egresoCajaRecaudacionId != null) || (this.eg... | [
"public int getId () { return id; }",
"public int getId(){ return this.id;}",
"public int id() {return this.id;}",
"@Override\n public int getId() { return id; }",
"public void setId(long id){ \r\n this.id = id; \r\n }",
"public void setId( int id ) { this.id = id; }",
"public void setId( l... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get dora worker object. | public DoraWorker getDoraWorker() {
return mDoraWorker;
} | [
"public Worker getWorker() {\r\n return worker;\r\n }",
"public Worker getWorker()\n {\n return this.worker;\n }",
"Worker createWorker();",
"public String getWorker() {\n return worker;\n }",
"public String getWorker() {\n return worker;\n }",
"String getWorker();"... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Adds a "Technical Name" column to the given viewer. | private TableViewerColumn addTechNameColumn(final TableViewer tableViewer) {
TableViewerColumn column =
new TableViewerColumn(tableViewer, SWT.NONE);
column.getColumn().setWidth(200);
column.getColumn().setImage(IconConstants.TECHNICAL_NAME_IMAGE);
column.getColumn().se... | [
"private void createAttributeColumns(TableViewer viewer) {\r\n\t\tTableViewerColumn idColumn = new TableViewerColumn(viewer, SWT.NONE);\r\n\t\tidColumn.getColumn().setText(Messages.typesAttributeEditor_id);\r\n\t\tidColumn.getColumn().setWidth(150);\r\n\t\tidColumn.getColumn().setResizable(true);\r\n\t\tidColumn.ge... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get a copy of the value of the NetMask property | public String getPropertyNetMask(); | [
"public String getMask() {\n\n\t\treturn mask;\n\t}",
"public byte getMask()\n {\n return mask;\n }",
"public Mask getMask()\r\n\t{\r\n\t\treturn this.mask;\r\n\t}",
"String netmask();",
"public int getNetmask(){\n\t\treturn this.netmask;\n\t}",
"public String getSubnetMask(){\n\t\treturn SubnetM... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Initializes root node with given key and O type object. | public BinaryTree(K key, O obj)
{
root = new RegNode<K,O>(key, obj);
} | [
"void init(TreeNode node);",
"public OrderedDictionary(){\n root = null;\n }",
"public RBTree(K key, V value){\n\t\troot = new Node<K,V>(key, value, 'b');\n\t}",
"@Override\n public void initialize(ObjectNode root) {\n\n try {\n this.JSONParser = ParserFactory.newInstance(\"JSON... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Accuracy test for the getDigitalRunPointsOperation(long pointsOperationId) method, expects no error occurs. | public void testGetDigitalRunPointsOperation_Accuracy() throws Exception {
DigitalRunPointsOperation pointsOperation = new DigitalRunPointsOperation();
pointsOperation.setDescription("description");
impl.createDigitalRunPointsOperation(pointsOperation);
DigitalRunPointsOperation ... | [
"@Test\n public void testExecuteDistanceMatrixWithSeveralCallsToServices() {\n\n Path path = null;\n\n DatasetServices databaseServices = null;\n try {\n path = createTempDirectory();\n databaseServices = new FileBasedDatasetServices(path);\n } catch (IOException... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Set driver and URL | public static void main(String[] args) {
System.setProperty("webdriver.chrome.driver","/Users/erik.teno/selenium-java-3.14.0/chromedriver");
WebDriver driver = new ChromeDriver();
WebDriverWait wait = new WebDriverWait(driver,10);
driver.manage().window().setSize(new Dimension(2560, 1440));
/... | [
"public void setDriver(java.lang.String value){\n\tthis.driver = value;\n }",
"public void setDriver(Driver driver) {\r\n\t\tthis.driver = driver;\r\n\t}",
"public void setDriver(java.lang.String driver)\n {\n IllegalArgumentException ex = validateDriver(driver);\n if (ex != null)\n throw e... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
only support size = 1, repeated list here for extension repeated .TW.Tron.Proto.Transaction.Contract contract = 11; | public java.util.List<org.tron.protos.Protocol.Transaction.Contract.Builder>
getContractBuilderList() {
return getContractFieldBuilder().getBuilderList();
} | [
"java.util.List<? extends org.multibit.hd.core.protobuf.MBHDPaymentsProtos.TransactionInfoOrBuilder> \n getTransactionInfoOrBuilderList();",
"java.util.List<? extends terra.wasm.v1beta1.Genesis.ContractOrBuilder> \n getContractsOrBuilderList();",
"java.util.List<? extends xapp.battle.Battle.BetOrB... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method corresponds to the database table official_accounts | int insert(OfficialAccounts record); | [
"public void pullAccountsFromDB(){\n this.accounts= Account.FindCustom(\"SELECT * FROM account WHERE leaderboard_rank > -1\");\n }",
"@Override\r\n\tpublic List<Account> getAllAccounts() {\r\n\t\t// TODO Auto-generated method stub\r\n\t\treturn accountRepositoryDao.findAll();\r\n\t}",
"public List<Acco... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
db_access: Read: Movie Write: Movie | private CmdPackage handleChangePrice(String[] args) {
String movieName = parseName(args[0]);
String newPrice = args[1];
if (Integer.parseInt(newPrice) <= 0) {
logger.warn(String.format("New price for movie %s is <= 0 ", movieName));
return requestFailed("changeprice");
... | [
"void saveMovie(Connection connection, Movie movie) throws SQLException;",
"@Test\n public void testEditMovie() {\n \n // create Movie and add to database\n Movie movie = new Movie();\n movie.setTitle(\"title\");\n movie.setDirectorName(\"director\");\n movie.setReleas... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the size of savedMessages. | public int savedMessagesSize() {
return savedMessages.size();
} | [
"public int getSavedMessagesCount() throws Exception;",
"public synchronized int getMessagesSize() {\n return messages.size();\n }",
"public int getNumberOfMessages() {\n return statMsgArray.size();\n }",
"default int size() {\n var result = getMessageList().size();\n return ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
helper Regex check for valid phone number | private void addPhoneNumber(Entry entry, Scanner input) {
boolean validPhoneNumber = false;
String newPhoneNumber = null;
while (!validPhoneNumber) {
System.out.println("Please enter your phone number in the format ########## or ###-###-####: ");
newPhoneNumber = input.n... | [
"private boolean validatePhoneNumber(String phoneNumber){\n if(!phoneNumber.matches(\"\\\\d{10}\")){\n return false;\n }\n\n return true;\n }",
"private boolean isPhoneValid(String phone)\r\n\t{\r\n\t\t//A valid getValidPhone may contain one or more digits.\r\n\t\tString pattern... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
divides this list in two parts, one containing those factors related to the variable given as an argument and another with the factors that aren't related to it | public void divideTree(Node var,ListTreeNode tNode){
int size = this.values.size();
Class argument;
for(int i=0; i<size; i++){
argument = this.values.get(i).getClass();
if(argument == ListTreeNode.class){
((ListTreeNode)this.values.get(i)).divideTree(var, tNode)... | [
"private List commonFactors() {\n int max = this.num < this.den ? this.den : this.num;\r\n // Get the root of max\r\n int maxRoot = (int) Math.sqrt(this.num);\r\n // Create list to store factors\r\n List<Integer> factors = new ArrayList<>();\r\n \r\n // Loop from roo... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method sets the value of the database column tf_project_files.file_type | public void setFileType(String fileType) {
this.fileType = fileType;
} | [
"public void setFiletype(Integer filetype) {\r\n this.filetype = filetype;\r\n }",
"public void setFileType(final FileType _fileType)\n {\n fileType = _fileType;\n }",
"public final void setFileType(int typ) {\n m_fileType = typ;\n }",
"public void setFile_type_id(... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns a List of String metadata keys. | public List<String> getMetadataKeys() {
return metadataKeys;
} | [
"public String[] getMetadataKeys() {\r\n return metadata.keySet().toArray(new String[metadata.size()]);\r\n }",
"Collection<String> keys();",
"Map<String, String> listKeys();",
"public Set<String> getkeys();",
"@Override\n\tpublic Set<String> getMetadataKeys() {\n\t\treturn null;\n\t}",
"public ch.ivy... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Component defining app wide graph. | @Singleton
@Component(modules = AppModule.class)
public interface AppComponent {
void inject(MainActivity mainActivity);
} | [
"public BaseGraphApp() {\n SetupUtil.defaultCASetupForSwing();\n initComponents();\n imagePanel.addComponentListener(new ComponentAdapter() {\n\n @Override\n public void componentResized(ComponentEvent e) {\n if (graph != null) {\n graph.u... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
repeated .pomelo.item.MiniItem s2c_items = 2; | public java.util.List<pomelo.item.ItemOuterClass.MiniItem> getS2CItemsList() {
return s2CItems_;
} | [
"pomelo.item.ItemOuterClass.MiniItem getS2CAwardItems(int index);",
"pomelo.item.ItemOuterClass.MiniItem getS2CAwards(int index);",
"pomelo.item.ItemOuterClass.MiniItemOrBuilder getItemInfoOrBuilder();",
"public void setItems(int totalCount2) {\n\t\t\r\n\t}",
"public void testMapAddItemII(){\n\t\tMap map1 =... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Set the dataToExtract property: The type of data to be extracted for the skill. Will be set to 'contentAndMetadata' if not defined. | public DocumentExtractionSkill setDataToExtract(String dataToExtract) {
this.dataToExtract = dataToExtract;
return this;
} | [
"private void setExtractorData(Mediametrics.ExtractorData extractorData) {\n if (extractorData != null) {\n this.extractorData_ = extractorData;\n this.bitField0_ |= 16;\n return;\n }\n throw new NullPointerException();\n }",
"@O... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
33 Loads all the elements using a prepared statement specifying a list of fields to be retrieved. | public List<FlImageBean> loadByPreparedStatementAsList(PreparedStatement ps, int[] fieldList) throws DaoException
{
return loadByPreparedStatementAsList(ps,fieldList,1,-1);
} | [
"public HouseunitBean[] loadByPreparedStatement(PreparedStatement ps, int[] fieldList) throws SQLException\n {\n ResultSet rs = null;\n java.util.ArrayList v = null;\n try\n {\n rs = ps.executeQuery();\n v = new java.util.ArrayList();\n while(rs.nex... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
add a new practice to the array using the parameters and update the text file. | public void addPractice(String date, String time, String location)
{
this.shiftRight(size - 1);
pArr[size - 1] = new Practice(date, time, location);
this.sortPractice();
this.printToFile();
} | [
"public void UpdateTextFile(String name, int score, Context context)\n {\n try {\n FileOutputStream outputStreamWriter = (context.openFileOutput(\"highscores\",context.MODE_APPEND));//open the fill to read, doesnt overwrite\n str = new StringBuilder(name);//store the name then append th... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Performs a deep copy on other. | public getDocumentation_result(getDocumentation_result other) {
if (other.isSetSuccess()) {
this.success = other.success;
}
} | [
"@SuppressWarnings({ \"rawtypes\", \"unchecked\" })\r\n private void copyFrom(final _BeanImpl other, final boolean immutably) {\r\n if (other == null) {\r\n throw new IllegalArgumentException(\"other cannot be null\");\r\n }\r\n if (other.getClass() != getClass()) {\r\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
The number of votes for uint32 votes_for = 1; | public Builder clearVotesFor() {
votesFor_ = 0;
onChanged();
return this;
} | [
"public void setVotes(int votes) {\r\n this.votes = votes;\r\n }",
"public Integer getVoteCount() {\n\t\treturn voteCount;\n\t}",
"public java.lang.Integer getVoteCount() {\n return vote_count;\n }",
"public int getElectionNumVotes() {\n return st_election_nvotes;\n }",
"public void se... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Caching should be enabled only in "prod" environment | boolean isCachingEnabled() {
final boolean forceViewCaching = enableCaching != null && enableCaching;
logger.log(Level.FINE, forceViewCaching ? "Forcing view caching..." : "Letting profile decide about view caching...");
return forceViewCaching || this.applicationContext.getEnvironment().acceptsProfiles("prod")... | [
"boolean isCaching();",
"public boolean isCachingEnabled() {\n return cachingEnabled;\n }",
"public boolean getUseCache();",
"default boolean isAllowedToLoadFromCache() {\n return true;\n }",
"public boolean isCacheEnabled() {\n return false;\n }",
"public boolean constCaching() {\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | public Activity create(Activity activity) {
WebTarget target = client.target("http://localhost:8080/exercise-services/webapi/");
// request - get default type back (xml). bind to activity
Response response = target.path("activities/activity").request(MediaType.APPLICATION_JSON).post(Entity.entity(activity, MediaT... | [
"@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"
]
]
}
} |
oncreate to check weather table exist or not | public boolean doesTableExist() {
SQLiteDatabase db = this.getWritableDatabase();
Cursor cursor = db.rawQuery(
"select DISTINCT tbl_name from sqlite_master where tbl_name = '"
+ TABLE_NAME + "'", null);
if (cursor != null) {
if (cursor.getCount() > 0) {
cursor.close();
return true;
}
... | [
"private void createTableIfMissing(DatabaseMetaData dbm, String tableName, String createTableQuery) throws SQLException {\n ResultSet tables = dbm.getTables(null, null, tableName, null);\n\n if (!tables.next()) {\n logger.error(\"ERROR !!! The table - \" + tableName + \" doesn't exists - cr... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Inflate the menu; this adds items to the action bar if it is present. | @Override
public boolean onCreateOptionsMenu(Menu menu) {
getMenuInflater().inflate(R.menu.generade_code, menu);
return true;
} | [
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflator = getMenuInflater();\n\t\tinflator.inflate(R.menu.activity_action_bar, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"@Override\r\n public boolean onCreateOptionsMenu( android.view.Menu menu)\r\n {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Only when the leading numerator coefficient is not equal to zero and the numerator order equals the denominator order | @SuppressWarnings("unused")
private static FeedthroughState checkDiscreteTransferFcn(Block b, Port p) {
String numerator = b.getParameter("Numerator");
String denominator = b.getParameter("Denominator");
numerator = numerator.substring(1, numerator.length() - 1); // remove []
denominator = denominator.s... | [
"@Test\n\tpublic void check_result_zero_numerator() {\n\t\tAssert.assertEquals(0, mm.divide(0, 5), 0.1);\n\t}",
"public void simplify() {\n\tif (numerator != 0 && denominator != 0) {\n\t int GCD = gcdER(numerator, denominator);\n\t numerator /= GCD;\n\t denominator /= GCD;\n\t}\n }",
"private int ca... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | private void findView() {
listView = (ListView) findViewById(R.id.grab_meal_list);
loadingText = (TextView) findViewById(R.id.grab_meal_textView_loading);
} | [
"@Override\n }",
"@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}",
"@Override\n public void extornar() {\n \n }",
"@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}",
"@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}",
"@Override\r\n\tpublic void wydaj() {\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
optional bool can_freeze = 1; | boolean hasCanFreeze(); | [
"private void setIsFrozen(boolean value) {\n \n isFrozen_ = value;\n }",
"public void freeze() {\n\tfrozen = true;\n }",
"public void freeze() {\n frozen = true;\n }",
"public boolean isFreeze() {\n\t\treturn this.status;\n\t}",
"public void freeze() {\n\t\tfrozen = true;\n\t}",
... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Methods useful to Window below: Opens a simple message dialog. | @Override
public void alert(String message) {
JOptionPane.showMessageDialog(this.htmlPanel, message);
} | [
"@Expose\r\n\tpublic void showMessage()\r\n\t{\r\n\t\tDialogBox.show(new Label(MESSAGE));\r\n\t}",
"@Override\n public void showDialog(String msg) {\n\n }",
"private void showDialogMessage(String message, String title, int kind) {\n JOptionPane.showMessageDialog(null, message, title, kind);\n }"... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Declaring a child class of burger class without name & assigning it to parent reference. | public static void main(String[] args) {
Burger b = new Burger() {};
b.display();
Burger b1 = new Burger() {
@Override
public void display() {
System.out.println("My Custom Burger");
}
};
b1.display();
} | [
"@Override\n\tprotected AbstractAnimal breedChild(int energy) {\n\t\treturn new FoxImpl(energy);\n\t}",
"public Egg(Dinosaur parentDinosaur) {\n super(10, parentDinosaur.getClass().getSimpleName() + \" egg\", 'E', true, parentDinosaur.getEcopoints());\n addCapability(GameCapability.CARNIVOREEDIBLE);... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns a representation of this Builder that can be safely serialised. NOTE: This method is horribly out of date, and its use should be rethought. | public abstract EncodingOptions buildOptions(); | [
"protected abstract Builder newBuilder();",
"@SuppressWarnings(\"synthetic-access\")\n public static Builder builder() {\n return new Builder();\n }",
"@Override\n\tprotected Builder self() {\n\t\treturn this;\n\t}",
"public Builder mutable() {\n return new Builder(this);\n }",
"private Build... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/Stack class is nested in class NestedClass. This means it is associated with an instance of the class cannot do something like new stack() because it has to associated with an instance of parent class make the nested class static > then not associated with any class so can be called as below | public static void main(String[] args) {
Stack<Integer> stack = new Stack<Integer>();
} | [
"public stack() {}",
"public MyStack() \n {\n super(\"myStack\");\n }",
"public StackA (){\r\n super();\r\n }",
"@Override\n public void invoke(Stack stack) {\n try {\n StackEffect stackEffect = (StackEffect) stack.pop().object;\n Constructor constructor = ge... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Return the SocketProvider's dependencies. | public Dependencies getDependencies()
{
return m_dependencies;
} | [
"SSLSocketProvider.Dependencies getSSLDependencies(String sId);",
"SocketProviderFactory getSocketProviderFactory();",
"@Override\n public Collection<Class<? extends IFloodlightService>> getModuleDependencies() {\n\t\n\tCollection<Class<? extends IFloodlightService >> modules =\n\t \t\tnew ArrayLi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method returns the value of the database column table_lock_waits_summary_by_table.COUNT_READ_EXTERNAL | public Long getCountReadExternal() {
return countReadExternal;
} | [
"@Override\r\n\tpublic long count() {\n\t\treturn jdbcTemplate\r\n .queryForObject(\"select count(*) from Crime_Data\", Integer.class);\r\n\t}",
"@Override\n\tpublic Long count() {\n\t\treturn PSnsPhootsdao.count(\"select count(*) from \"+tablename+\" t\");\n\t}",
"@Transactional(readOnly = true)... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
get the host name of the kicker (the person doing the kicking) | public String getHostName(); | [
"public static String getHostName(){\n\t\tString host = \"HOST_UNKNOW\";\n\t\ttry {\n\t\t\thost = InetAddress.getLocalHost().getHostName();\n\t\t} catch (UnknownHostException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn host;\n\t}",
"public String getName() {\n return serverInfo.getHost();\n }"... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
menu listener for File | Close Project... This method will always save the FrontEndTool and project, but not the data unless confirmClose is called. | boolean closeProject(boolean isExiting) {
// if there is no active project currently, ignore request
Project activeProject = plugin.getActiveProject();
if (activeProject == null) {
return true;
}
// check for any changes since last saved
PluginTool[] runningTools = activeProject.getToolManager().getRunn... | [
"private static void onClose() {\n getGeneralEventBroadcast().callEvent(new JAMSShutdownEvent.Before());\n //Save main configuration.\n try {\n getMainConfiguration().data().save(\n Manager.of(ConfigurationFormat.class).getOrNull(ConfigurationFormatJSON.NAME),\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "T__30" $ANTLR start "T__31" | public final void mT__31() throws RecognitionException {
try {
int _type = T__31;
int _channel = DEFAULT_TOKEN_CHANNEL;
// ../de.nie.fin/src-gen/de/nie/fin/parser/antlr/internal/InternalFin.g:28:7: ( 'Buchung' )
// ../de.nie.fin/src-gen/de/nie/fin/parser/antl... | [
"public interface StmtParserConstants {\r\n\r\n /** End of File. */\r\n int EOF = 0;\r\n /** RegularExpression Id. */\r\n int OPEN = 6;\r\n /** RegularExpression Id. */\r\n int CLOSE = 7;\r\n /** RegularExpression Id. */\r\n int NEW = 8;\r\n /** RegularExpression Id. */\r\n int FROMREGEX = 9;\r\n /** Reg... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Questo metodo aggiunge credito al portafoglio del cliente | public void AddCredito(int idCliente, float newPortafoglio) {
db.addCreditoToCliente(idCliente,newPortafoglio);
} | [
"public TarjetaDeCredito() {\n }",
"public void initCredentials(SveaCredential aCre) {\n\t\twebpayAdminBase.initCredentials(aCre);\n\t\trefreshSettings();\n\t}",
"UserCredentials getUserCredentials( User user );",
"@Override\n protected HttpRequestInitializer getCredentials() throws Exception\n {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ renamed from: a | public final /* bridge */ /* synthetic */ Object mo43928a() {
return new C2907bw(this.f1058a.mo43928a(), C3049cg.m773b(this.f1059b), C3049cg.m773b(this.f1060c), this.f1061d.mo43928a());
} | [
"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"
]
]
}
} |
TODO Autogenerated method stub | @Override
public int Accept(VLexUnit[] units, int index, VEnv env) {
try {
VSyntaxBase v = new MultiplicativeExpression(), v1 = new AddE_prime();
index = Want(v, index, env);
if (calcEnable)
{
v1.result = v.result.Clone();
}
index = Want(v1, index, env);
if (calcEnable)
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"
]
]
}
} |
Returns the result of interpreting the object as an instance of 'Mode'. This implementation returns null; returning a nonnull result will terminate the switch. | public T caseMode(Mode object)
{
return null;
} | [
"public Mode getMode();",
"public T caseModeType(ModeType object) {\n\t\treturn null;\n\t}",
"public abstract int getMode();",
"@Nullable\n String mode();",
"public Mode getMode() {\n\t\treturn this.mode;\n\t}",
"public static int getMode()\n {\n guardMode();\n\n return m_actualMode.m_mo... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Schedules scenario step to be executed by step defined scheduler configuration data. | protected void scheduleScenarioStep(WsScenarioStep step) throws SchedulerException {
if (scheduler == null) {
throw new SchedulerException(StreamsResources.getStringFormatted(WsStreamConstants.RESOURCE_BUNDLE_NAME,
"AbstractWsStream.null.scheduler", getName()));
}
if (isShotDown()) {
return;
}
St... | [
"@Test\n\tpublic void jsonConfigScheduleTest() throws SchedulerException, InterruptedException {\n\t\tQueueTaskBuilder<String> builder = new QueueTaskBuilder<>();\n\t\tbuilder.loaderClass(loader.getClass()).processorClass(processor.getClass()).processingMode(ProcessingMode.SYNC).configurationType(SchedulerConfigura... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Construct the Subject Area Glossary Handler needed to operate within a single server instance. | public SubjectAreaGlossaryHandler(String serviceName,
String serverName,
InvalidParameterHandler invalidParameterHandler,
OMRSRepositoryHelper repositoryHelper,
Reposit... | [
"public CaptureHandler()\r\n\t{\r\n\t\thashMap = new AnswerPacketHashMap();\r\n\t}",
"@Override\n\tpublic void handleSubjects(String[] subjects) {\n\t\t\n\t}",
"public TaxonomyConfigurationHandler() {\r\n linkManager = (LinkManager) PortalContainer.getInstance().getComponentInstanceOfType(LinkManager.class);... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Optional method for setting the username and password for authentication. | IsetProxyOrEndPointOrConnector withUsernameAndPassword(String username, String password) throws V1Exception; | [
"void setCredentials(String username, String password){\n usr = username;\n passwd = password;\n }",
"public void setCredentials(String username, String password){\n this.username=username;\n this.password=password;\n }",
"@Override\r\n protected PasswordAuthentication getPa... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Retrieves the message builder used by the CFE API to construct reply messages. | public MessageBuilder getMessageBuilder(); | [
"public com.test.proto.util.UtilProto.CMessage.Builder getMessageBuilder() {\n bitField0_ |= 0x00000002;\n onChanged();\n return getMessageFieldBuilder().getBuilder();\n }",
"public com.ubbcluj.amcds.myDalgs.communication.Protocol.Message.Builder getMessageBuilder() {\n \n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | public void onClick(View v) {
for(MyButton btn:myBtns){
btn.setOnClick(true);
btn.switchBg();
}
} | [
"@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"
]
]
}
} |
Create and return a DynaClass instance for our test DynaBean. | protected DynaClass createDynaClass() {
int intArray[] = new int[0];
String stringArray[] = new String[0];
DynaClass dynaClass = new BasicDynaClass
("TestDynaClass", null,
new DynaProperty[]{
new DynaProperty("booleanProperty"... | [
"private WrapDynaClass(Class beanClass) {\n\n this.beanClass = beanClass;\n introspect();\n\n }",
"public static ValidSpecClass getTestInstance()\n\t{\n\t\treturn SQLiteHouse.Factory.init().getInstance(\n\t\t\t\tValidSpecClass.class,\n\t\t\t\tInstrumentationRegistry.getTargetContext()\n\t\t\t);\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
this method displays the new word for the user to guess and the comment | private void displayWordComment() {
// display word
JPanel wordCommentPane = new JPanel(new GridLayout(2, 1));
wordCommentPane.setBackground(background);
JLabel wordLabel = new JLabel(logic.getWord().getData(), SwingConstants.CENTER);
wordLabel.setFont(wordFont);
wordCommentPane.add(wordLabel);
// displa... | [
"private void printTheChosenWord() {\n System.out.println(\"Congratulations\\nYou've managed to guess the word:\" + chosenWord.getChosenWord());\n\n }",
"void showWord() {\n String showWord = createShowWordString(word, guessedLetters);\n System.out.println(showWord);\n }",
"public voi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
MyItemizedOverlay myItemizedOverlay = null; | @TargetApi(Build.VERSION_CODES.GINGERBREAD)
@SuppressLint("NewApi")
@Override
public void onCreate(Bundle savedInstanceState) {
// necessary in onCreate()
StrictMode.ThreadPolicy policy = new StrictMode.ThreadPolicy.Builder()
.permitAll().build();
StrictMode.setThreadPolicy(policy);
super.onCreate(saved... | [
"@Override\n\t\tpublic ItemizedOverlay getOverlay() {\n\t\t\treturn null;\n\t\t}",
"public ViewHolder(View itemView, ClickListener listener) {\n super(itemView);\n this.listener = listener;\n mLayout = (LinearLayout) itemView.findViewById(R.id.item);\n mTvName = (TextVi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the click reset. | public Boolean getClickReset() {
return clickReset;
} | [
"@Override\n\tpublic void clickReset() {\n\t\t\n\t}",
"void onResetClicked();",
"public int getClick() {\n return click;\n }",
"public JLabelIcon getResetButton() {\n\t\treturn resetlevelbtn;\n\t}",
"public void setClickReset(Boolean clickReset)\n {\n this.clickReset = clickReset;\n }... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ renamed from: a | public final void mo4498a(int i, int i2, int i3, String str, C1929q c1929q, byte[] bArr) {
AppMethodBeat.m2504i(103915);
C4990ab.m7410d("MicroMsg.NetSceneCollectChatRoom", "netId : " + i + " errType :" + i2 + " errCode: " + i3 + " errMsg :" + str);
if (c1929q.mo5618ZS().vyl != 0) {
t... | [
"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"
]
]
}
} |
^^ v To Do List Modules v | public static ArrayList<String> readList1(Context c){
try{
FileInputStream fis = c.openFileInput("todolist");
ObjectInputStream is = new ObjectInputStream(fis);
ArrayList<String> list = (ArrayList<String>) is.readObject();
is.close();
return list;
... | [
"public void listModules();",
"List<Module> getModules();",
"ArrayList<Module> getModules();",
"public ToDoList(){\n //comments = new LinkedList<>();\n sections = new ArrayList<>();\n archived = false;\n }",
"void commitModuleList();",
"static void ViewModules() {\n\n System... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get the "id" filho. | Optional<FilhoDTO> findOne(Long id); | [
"@Field(0) \n\tpublic int id() {\n\t\treturn this.io.getIntField(this, 0);\n\t}",
"public String GetId()\r\n {\r\n return id;\r\n }",
"public int getId() {\n logger.debug(\"return id\");\n return id;\n }",
"public int getId() {\n\t\t\n\t\treturn id;\n\t}",
"public long getId() {\n\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Are any traders based in Milan? | private void example5(List<Transaction> transactions) {
System.out.println("example5");
System.out.println(transactions);
boolean anyTraders = transactions.stream()
.map(Transaction::getTrader)
.anyMatch(trader -> "Milan".equals(trader.getCity()));
System.... | [
"@Test(timeout = 4000)\n public void test40() throws Throwable {\n LovinsStemmer lovinsStemmer0 = new LovinsStemmer();\n lovinsStemmer0.getTechnicalInformation();\n String string0 = lovinsStemmer0.stem(\"metr\");\n assertEquals(\"meter\", string0);\n }",
"private TrainerObject train (int a... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
datatype arrayname = new datatype[size]; Create | public static void main(String[] args)
{
LinkedList a1 = new LinkedList();
a1.add(10);//insert
a1.add(20);//insert
a1.add(30);//insert
a1.add(40);//insert
a1.add(50);//insert
a1.add(60);//insert
a1.add(70);//insert
a1.add(80);//insert
a1.add(90);//insert
a1.add(100);//insert
a1.add(200);//inser... | [
"public Value NewArray(Type arrayType, Value size);",
"private void newArray(){\n arr = (T[])new Object[10];\n size = 0;\n }",
"public DataArray create();",
"public abstract E[] newArray( int length );",
"public TextObject[] newArray(int size) { return new TextObject[size]; }",
"public Su... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Set the weapon hidden in right sleeve. Ignored. | public void setRightSleeveWeapon(LightWeapon rightSleeveWeapon) throws InventoryException
{
throw new InventoryException();
} | [
"public static void setHideHeldItemFromSelf(boolean hideHelditem) {\n if (hidingHeldItem != hideHelditem) {\n hidingHeldItem = hideHelditem;\n }\n }",
"public void setHelmetHidden(EntityPlayer player, boolean hideHelmet)\n {\n if (player != null)\n {\n I... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Method that visit an event recived from model. Override from User Interface. | @Override
public void receiveEventFromModel(EventFromModel event) {
//Visitor acceptControllerVisitor the event and, in the method, the event call the corresponding visitor method
event.acceptViewVisitor(this);
} | [
"public void fireModelEvent(ModelChangedEvent event){\r\n if ((enabledEventsMask & event.getType()) != 0 || event.getType() == Modeleventnotification_c.MODEL_EXECUTION_STOPPED){\r\n ListenerMethodInvoker listenerMethod = new ListenerMethodInvoker(event){\r\n public void invoke(IMode... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
translada el punto a otra localizacion | @Override
public void setLocation(Point2D p) {
if(getPuntoEsquinaFigura()!=null){
//calculamos el desplazamiento
int deltax=(int) (p.getX()-getPuntoInicial().x);
int deltay=(int) (p.getY()-getPuntoInicial().y);
((Rectangle)getFigura()).setLocation(deltax+getPu... | [
"private void localize() {\n }",
"private Point transPoint(Point p) {\n\t\t// System.out.println(p.x + \", \" + p.y + \" absolute point\");\n\t\tAffineTransform overTransI = displays.get(0).getOverview().getInverseTransform();\n\t\toverTransI.transform(p, p);\n\t\tAffineTransform userTrans = displays.get(0).ge... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
string token_out_denom = 3 [(.gogoproto.moretags) = "yaml:&92;"token_out_denom&92;""]; | java.lang.String getTokenOutDenom(); | [
"Token getToken()\r\n/* 26: */ {\r\n/* 27:64 */ return Token.PERCENT;\r\n/* 28: */ }",
"@Test(timeout = 4000)\n public void test074() throws Throwable {\n byte[] byteArray0 = new byte[2];\n byteArray0[0] = (byte)109;\n ByteArrayInputStream byteArrayInputStream0 = new ByteArrayInputSt... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the billing type. | public void setBillingType(final Billing billingType) {
this.billingType = billingType;
} | [
"public void setCustomerType(CustomerType ct) {\r\n customerType = ct;\r\n update();\r\n }",
"void setCardPaymentType();",
"public void setBilltype( java.lang.String newValue ) {\n __setCache(\"billtype\", newValue);\n }",
"@Override\n\tpublic void setSupplierBillType(java.lang.Stri... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Modify a table's metadata | public ModifyTableResponse modifyTable(RpcController controller, ModifyTableRequest req)
throws ServiceException; | [
"public String modifyTable(TableDescription old, TableDescription t);",
"void update(MapTables meta) throws Exception;",
"private void updateInfo() {\n Properties props = new Properties();\n Enumeration keys = properties.keys();\n while (keys.hasMoreElements()) {\n String key... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
ArrayList> arrList = ratings(); ArrayList> arrList = titles(); | public static void main(String[] args) throws Exception {
ArrayList<ArrayList<String>> arrList = principals();
// ArrayList<ArrayList<String>> arrList = names();
// ArrayList<ArrayList<String>> arrList = crew();
for (int i = 0; i < arrList.size(); i++) {
System.... | [
"public FirstRatings()\n {\n //myMovie = new ArrayList<Movie>();\n //myRater = new ArrayList<Rater> ();\n }",
"ArrayList<Title> selectTitleByAll();",
"private void getArrayList(ArrayList result){\n }",
"public static ArrayList<Movie> getMovies(){\n return movies;\n }",
"pub... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Constructor with specified string and exception | public ControllerException(String message, Throwable e){
super("Controller has a problem, " + message, e);
} | [
"public ArgumentException(String s) {\n\t\tsuper(s);\n\t}",
"@Test\n public void testConstructor_with_string_and_throwable() {\n assertNotNull(new D4MException(\"message\", throwable));\n }",
"public TheaterException(String s){\n super(s);\n }",
"public ScenarioParsingException(final String s... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
All fragment transactions must take place here | public void replaceFragment(int id, Object object) {
FragmentTransaction ft = getSupportFragmentManager().beginTransaction();
switch (id) {
case R.layout.fragment_buy_medicine:
BuyMedicineFragment frag2 = (BuyMedicineFragment) getSupportFragmentManager().
... | [
"public abstract boolean shouldDelayFragmentTransactions();",
"@Override\n\tpublic void commitTransaction() {\n\t\t\n\t}",
"private void performAddFragmentTransaction(Fragment mFragment) {\r\n FragmentTransaction transaction = fragmentManager.beginTransaction();\r\n transaction.setCustomAnimations... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
optional .events.HttpStop httpStop = 5; | HttpFactory.HttpStop getHttpStop(); | [
"public interface HttpRequestListener {\n //取消请求\n void cancel();\n}",
"static void stop() {\r\n\t\tSystem.out.println(\"Stop request receieved.\");\r\n\t\tsetStopped(true);\r\n\t}",
"public interface HttpListener {\r\n\r\n\t/**\r\n\t * Called when request execution is completed successfully.\r\n\t * \r\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
The method creates a .pdf file of the given information to display a postal label. | public static String convertPostalDataToPdf(List<String> postalData) throws IOException, COSVisitorException {
String id = PdfCreator.generateId(postalData);
String fileName = "PostalLabel" + id + ".pdf"; // name of our file
PDDocument doc = new PDDocument();
PDPage page... | [
"public void createPdf(String filename)\n throws DocumentException, IOException {\n\n Document document = new Document();\n PdfWriter.getInstance(document, new FileOutputStream(filename));\n document.open();\n \n Paragraph paragraph2 = new Paragraph(\"Managed Access Request Form\");\n\n\tparagraph2.setSpacingAfter(... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets column confirmed = true or false in a user record with the given username. | public boolean updateConfirmedUserFlag(String username, boolean confirmed) throws SQLException {
try (Connection conn = dataSource.getConnection()){
String sqlQuery = String.format("UPDATE users SET %s=? WHERE %s=?",
UserDTO.ColumnNamesToNumbersMapping.CONFIRMED.getColName(),
... | [
"protected String updateForConfirmation(User user) {\n \ttry {\n \t\tString query = \"UPDATE User SET IsConfirmed = '1' WHERE Email = ?;\";\n \t\tArrayList<DbParam> parameters = new ArrayList<>();\n \t\tparameters.add(new DbParam(user.email, \"string\"));\n \t\treturn dbHelper.insertUpdate(query, par... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
create 2 BigDecimal objects | public static void main(String[] args) {
BigDecimal bg1, bg2;
bg1 = new BigDecimal("-10");
bg2 = new BigDecimal("0");
//create int object
int res;
res = bg1.compareTo(bg2); // compare bg1 with bg2
String str1 = "Both values are equal ";
String str2 = "First Value is greate... | [
"public java.math.BigDecimal toBigDecimal() { throw new RuntimeException(\"Stub!\"); }",
"void denom2(BigDecimal num1, Integer bId) throws MyException;",
"public BigDecimal multiply(BigDecimal firstNumber, BigDecimal secondNumber);",
"public static void main(String[] args) {\n BigDecimal bg1, bg2;\n\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the institution role type | public void setInstitutionroletype(String institutionroletype) {
this.institutionroletype = institutionroletype;
} | [
"public void setRoleType(RoleType roleType) {\n this.roleType = roleType;\n }",
"public void setRole(RoleType role) {\n this.roleId = role.getRoleId();\n }",
"private void setRole() {\n\n\t}",
"public void setType(UserType type) {\n withType(type);\n }",
"public void setRoleTypeName(... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Slide all the tiles in the board in the requested direction | public boolean slide(SlideDirection dir) {
ArrayList<Cell> cellList = getNonEmptyTiles();
boolean slideOccured = false;
boolean recentlyMerged = false;
int[][] clone = copyBoard(gameBoard);
// push current gameboard onto Stack
undo.push(clone);
if (dir == SlideDirection.UP) {
// Sort cell... | [
"private void slideDown() {\n\t\tint multiplier = 2;\n\n\t\t// int i represents rows; int j represents columns\n\t\tfor (int j = 0; j < gameBoard[0].length; j++) {\n\t\t\tArrayList<Integer> slideTile = new ArrayList<>();\n\n\t\t\t// Copying row w/o 0s to ArrayList\n\t\t\tfor (int i = 0; i < gameBoard.length; i++)\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Convenience method to convert from the JPA LockModeType to the internal lock mode. | public static LockMode getLockModeForJPALockModeType(LockModeType lock)
{
LockMode lockModeType = LockMode.LOCK_NONE;
if (lock == LockModeType.OPTIMISTIC || lock == LockModeType.READ)
{
lockModeType = LockMode.LOCK_OPTIMISTIC_READ;
}
else if (lock == LockMo... | [
"LockMode getLockMode(Object id);",
"public static int toLockLevel(LockModeType mode) {\n if (mode == null || mode == LockModeType.NONE)\n return LockLevels.LOCK_NONE;\n if (mode == LockModeType.READ)\n return LockLevels.LOCK_READ;\n if (mode == LockModeType.OPTIMISTIC)\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Created by Justin on 10/31/13. | public interface AudioStateInterface
{
public void onAudioStateChanged(boolean isActive);
} | [
"private static void EX5() {\n\t\t\r\n\t}",
"@Override\n public void extornar() {\n \n }",
"@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}",
"protected void method_5557() {}",
"@Override\n }",
"protected void mo4791d() {\n }",
"public void mo28221a() {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
ensure that interrupt cannot overlap with shutdown | public JMeterThread(HashTree test, JMeterThreadMonitor monitor, ListenerNotifier note) {
this.monitor = monitor;
threadVars = new JMeterVariables();
testTree = test;
compiler = new TestCompiler(testTree);
threadGroupLoopController = (Controller) testTree.getArray()[0];
... | [
"protected void checkInterrupt() {\r\n if (interrupt.value) { throw new ComputationInterruptedException(\"Interrupted\"); }\r\n }",
"public abstract void interrupt();",
"@Override\n\tpublic boolean interrupt() {\n\t\treturn false;\n\t}",
"public void hasShutDown() { //when we shutdown we'll unlock\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the longitude of the target. | public void setLongitude(final String longitude) {
longitudeTextField.setText(longitude);
} | [
"@Override\n public void setLongitude(double longitude) {\n _location.setLongitude(longitude);\n }",
"public Builder setLongitude(double value) {\n\n longitude_ = value;\n onChanged();\n return this;\n }",
"public void xsetLongitude(org.apache.xmlbeans.XmlFloat longitude)\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Created this method for testNg purpose | public void saveUserRecord(ModelSub modsub); | [
"@Override\n }",
"private void doTest() {\r\n\r\n\t}",
"private void testing() {\n\t}",
"private void testingPurposes() {\n\t}",
"@Override\n public void extornar() {\n \n }",
"@Override\n\t\t\tpublic void test2() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\tpublic void testMe() {\n\t\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
overridden version of the stop method | @Override
public void stop() {
} | [
"@Override public void stop();",
"@Override\r\n public void stop(){\n }",
"@Override\n final public void stop() {\n stop(false);\n }",
"@Override\n public void stop () {\n }",
"public void stop()\r\n\t{\n\r\n\t}",
"public void stop(){\r\n\r\n\t}",
"void stop() {\n }",
"... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Execute a prepared query tracker plan for a given DoomDBPlan | public Error stopDoomDBQPlan(DoomDBPlanDesc dplanDesc) {
Error err = new Error();
if (!this.qPlans.containsKey(dplanDesc.getQtrackerPlanId())) {
String[] args = { "Plan with id " + dplanDesc.getQtrackerPlanId()
+ " not found in " + this.qPlans.keySet() };
this.logger.log(Level.SEVERE, args[0]);
return... | [
"public Error executePlan(final CompilePlan plan) {\n\t\tObject[] args = { plan };\n\t\treturn this.executeCmd(MasterTrackerServer.CMD_EXECUTE_PLAN, args);\n\t}",
"void executeQueryWithOptimalPlan(String query)\n\t{\n\t\t/* hard-coded optimal plan for quest query */\n//\t\tquery = \"select n_name, sum(l_extendedp... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the globally shared flyweight ExtElement, with the passed node as the active element. Do not store a reference to this element the dom node can be overwritten by other code. | public static native ExtElement fly(Element element, String named) /*-{
var el = $wnd.Ext.fly(element, named);
return el == null ? null
: @com.ait.toolkit.sencha.shared.client.dom.ExtElement::instance(Lcom/google/gwt/core/client/JavaScriptObject;)(el);
}-*/; | [
"@Nullable\n\tdefault ITEM activeItem() {\n\t\treturn getNode().getActiveItem();\n\t}",
"public JaxeElement getElementForNode(final Node node) {\n if (node == null)\n return null;\n return dom2JaxeElement.get(node);\n }",
"protected Element getBaseElement(BridgeContext ctx) {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Inverse of home.ba.get() is home.ba.set((java.lang.String) callbackArg_0) | @Override
public void onChange() {
java.lang.String callbackArg_0 = androidx.databinding.adapters.TextViewBindingAdapter.getTextString(salestranBarter);
// localize variables for thread safety
// home != null
boolean homeJavaLangObjectNull = false;
// ... | [
"public interface set_callback extends Callback {\n\t\tint apply(cef_v8accessor_t self, cef_string_utf16_t name, cef_v8value_t object, cef_v8value_t value, cef_string_utf16_t exception);\n\t}",
"public void set(){\n BaseCallback<String> callback = new BaseCallback<String>() {\n @Override\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
load a campfire card into the GUI. | private void onLoad(CampfireCard campfireCard) {
ImageView view = new ImageView(campfireCardImage);
addDragEventHandlers(view, DRAGGABLE_TYPE.CARD, cards, squares);
addEntity(campfireCard, view);
cards.getChildren().add(view);
} | [
"private void loadCard(String type) {\r\n Card Card = world.loadCard(type);\r\n onLoad(Card);\r\n }",
"void initCard();",
"private void onLoad(Card card) {\r\n ImageView view = null;\r\n switch(card.getType()){\r\n case \"Barracks\":\r\n view = new ImageV... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns a clone of the players set, preserving encapsulation | public ArrayList<Player> getPlayers() {
ArrayList<Player> c = new ArrayList<>();
for (Player p : this.allPlayers) {
c.add(p.clone());
}
return c;
} | [
"public ArrayList<String> getPlayers() {\n return (ArrayList<String>) players.clone();\n }",
"public Collection<SabrePlayer> getAllPlayers() {\n\t\tSet<SabrePlayer> players = this.players.values().stream().map(p -> (SabrePlayer)p).collect(Collectors.toSet());\n\t\treturn Collections.unmodifiableSet(play... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test of getLastRecordVersion method, of class DefaultChooser. | @Test
public void testGetLastRecordVersion() {
config.setDefaultLastRecordProtocolVersion(ProtocolVersion.TLS13_DRAFT20);
assertEquals(ProtocolVersion.TLS13_DRAFT20, config.getDefaultLastRecordProtocolVersion());
assertEquals(ProtocolVersion.TLS13_DRAFT20, chooser.getLastRecordVersion());
... | [
"@Override\n\tpublic int getLastVersion() {\n\t\treturn 0;\n\t}",
"int getLastKnownMimicVersionId();",
"public void testAddonLatestVersionNumber() throws Exception {\n CaptureErrorHandler handler = new CaptureErrorHandler();\n\n // There should be a schema matching NS_LATEST_VERSION\n asser... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Encypt message m with KA | public static String encrypt2(String plainText, PrivateKey privateKey) throws Exception {
Cipher encryptCipher = Cipher.getInstance("RSA");
encryptCipher.init(Cipher.ENCRYPT_MODE, privateKey);
byte[] cipherText = encryptCipher.doFinal(plainText.getBytes(UTF_8));
retur... | [
"void mo31256a(Message message);",
"public void sendMessage(Message m){\n\t\tm.senderPosition='c';\n\t\tm.senderEmpID=empID;\n\t\tSystem.out.println(\"Chef adding message:\"+m);\n\t\tpendingMessages.offer(m);\n\t}",
"public void initiateMessage(String msg, Integer k, Integer v) {\n\t\tthis.messageTrackCheck.add... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Tests XMLStereotypeLoadergetStereotypes(String,String) for failure. Expects ProjectConfigurationException. It tests a unknown namespace was passed in and expect ProjectConfigurationException success. | public void testGetStereotypes_ProjectConfigurationException1() throws Exception {
TestHelper.loadSingleXMLConfig(NAMESPACE + ".Test", "test_files" + File.separator + "StandardStereotypes.xml");
try {
xmlStereotypeLoader.getStereotypes("Java", "Class");
fail("ProjectConfigurati... | [
"public void testAttributeStereotype() throws ParseException {\n Object attr;\n\n Object attrType = project\n .getDefaultAttributeType();\n\n attr = Model.getCoreFactory().buildAttribute2(attrType);\n Model.getCoreHelper().setNamespace(attr, model);\n\n softAddStere... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the order_code_id value for this Audit_data. | public int getOrder_code_id() {
return order_code_id;
} | [
"public io.dstore.values.IntegerValue getOrderId() {\n if (orderIdBuilder_ == null) {\n return orderId_ == null ? io.dstore.values.IntegerValue.getDefaultInstance() : orderId_;\n } else {\n return orderIdBuilder_.getMessage();\n }\n }",
"public io.dstore.values.IntegerV... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |