query stringlengths 8 1.54M | document stringlengths 9 312k | negatives listlengths 19 20 | metadata dict |
|---|---|---|---|
Company name to search for. | public java.lang.String getCompanyName() {
return companyName;
} | [
"public final String getCompanyName() {\n return companyName;\n }",
"public String getCompanyName()\n {\n return m_companyName;\n }",
"protected String companyName() \n\t{\n\t\treturn \"IBM Corporation\";\n\t}",
"public String getCompanyName()\n {\n return companyName;\n }"... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | public CompositeProperty replace(CompositeProperty oldProperty, Object newValue) {
throw new UnsupportedOperationException();
} | [
"@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"
]
]
}
} |
Checks if Training Model. | private boolean checkTrainingMode(BusIfc bus)
{
OperatorIdCargo cargo = (OperatorIdCargo) bus.getCargo();
boolean trainingModeOn = false;
RegisterIfc register = cargo.getRegister();
if (register != null && register.getWorkstation() != null)
{
trainingModeOn = regi... | [
"public boolean canTrain() {\n return this.registration.getTrainingCapacity() > 0;\n }",
"public final boolean checkModel()\r\n {\r\n if ( numSubsets > 0 )\r\n return true;\r\n else\r\n return false;\r\n }",
"public java.lang.String getIsTraining() {\n java.lang.Object ref = i... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Strips whitespace from a Node tree | public final static void stripWhitespace(final Node n) {
if (n == null) {
return;
} else if (n.getNodeType() == Node.TEXT_NODE) {
final Node p = canStripTextWhitespace(n);
if (p != null) {
p.removeChild(n);
}
} else {
fi... | [
"private void removeWhiteSpaces() {\n\t\tString whitespace = \"\\\\s+\";\n\t\tthis.expressionString = this.expressionString.trim();\n\t\tthis.expressionString = this.expressionString.replaceAll(whitespace, \"\");\t\t\n\t}",
"LinkedList<Node> stripNodeWrappers(LinkedList<AStarNode> toStrip){\n LinkedList<No... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | @Override
public void onSuccess(String json) {
super.onSuccess(json);
try {
Gson gson = new Gson();
ResultEntity<List<EvaluateListEntity>> resultEntity = gson.fromJson(json, new TypeToken<ResultEntity<List<EvaluateListEntity>>>() {
... | [
"@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 righthand key extractor function. | public FunctionEx<? super T1, ? extends K> rightKeyFn() {
return rightKeyFn;
} | [
"Key getKey ();",
"int getKey3();",
"int getKey1();",
"int getKey5();",
"public String getKey()\n\t{\n\t\treturn key.get(matcher());\n\t}",
"K getKey( );",
"@Converted(kind = Converted.Kind.AUTO,\n source = \"${LLVM_SRC}/llvm/tools/clang/lib/AST/RecordLayoutBuilder.cpp\", line = 3010,\n FQN=\"clang:... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Testing The Development | public static void main(String[] args)
{
double distance = 0.0D;
String filePath = "Files/test.jpg";
String filePath1 = "Files/check.jpg";
//String filePath1 = "Files/609.jpg";
BufferedImage image = TextureCoOcurrence.readImage(filePath);
BufferedImage image1 = TextureCoOcurrence.readImage(filePath1);
... | [
"private void testing() {\n\t}",
"private void testingPurposes() {\n\t}",
"@Test\n public void mainUITest() {\n //check the main menu\n testMainMenu();\n startDebugGame();\n disableFarmNoise(); // moo\n testConsole(); \n testTaskAndWorkerManager();\n testWorl... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
[A,B,C] > iterator remove() after next() returns B > [A,C] | public boolean testOnIteratorRemoveAfterNextThreeElementTwo() {
DoubleLinkedListADT<Integer> list = newList();
Integer i = new Integer(1);
Integer j = new Integer(2);
Integer k = new Integer(3);
list.add(i);
list.add(j);
list.add(k);
Iterator<Integer> it = list.iterator();
try {
it.next();
it.ne... | [
"@Override\n\t\tpublic void remove() {\n\t\t\tcheckConModified();\n\t\t\tif (lastReturned == null)\n\t\t\t\tthrow new NoSuchElementException();\n\t\t\tNode<E> lastNext = lastReturned.next;\n\t\t\tunlink(lastReturned);\n\t\t\tif (next == lastReturned)\n\t\t\t\tnext = lastNext;\n\t\t\telse\n\t\t\t\tnextIndex--;\n\t\t... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Auto generated setter method | public void setIgnore(boolean param){
// setting primitive attribute tracker to true
if (false) {
localIgnoreTracker = fal... | [
"abstract protected void set(Object value);",
"@Override\n protected void doSetValue(Object value) {\n super.doSetValue(value);\n }",
"@Override\n \t\t@SuppressWarnings(\"unchecked\")\n \t\tpublic Object setValue(Object value) {\n \t\t\twrite();\n \t\t\treturn me.setValue( value );\n \t\t}",
... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
repeated string droplessTsfuUuids = 7; tsfuIds for monsters that don't drop pieces | int getDroplessTsfuUuidsCount(); | [
"protected void dropFewItems(boolean p_70628_1_, int p_70628_2_) {\n/* 95 */ int var3 = this.rand.nextInt(16);\n/* */ \n/* 97 */ for (int var4 = 0; var4 < var3; var4++)\n/* */ {\n/* 99 */ dropItem(Items.snowball, 1);\n/* */ }\n/* */ }",
"public void dropItems() {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns automaton for no string. | public static Automaton makeNoString()
{
return noString;
} | [
"public Automaton(){\n\t\tthis(new ArrayList<>(), new ArrayList<>(), \n\t\t\t\tnew Transitions(), null, new ArrayList<>(), \"\", \"\");\n\t}",
"public DFAalg1.DFAalg1Const.automatonType getAutomatonType(Automaton automaton) {\r\n\t\t// TODO Auto-generated method stub\r\n\t\tArrayList<String> symbols = automaton.... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Loads the path preferences from a text file. | public static void loadPathParametersFromFile(File inputFile) throws FileNotFoundException, IOException {
BufferedReader br = new BufferedReader(new FileReader(inputFile));
try {
String line;
while ((line = br.readLine()) != null) {
line = line.trim();
... | [
"public Preferences loadPreferences(int pathID, String filename);",
"public void loadTextFile(String path) {}",
"public void setPreferences(String filepath) throws FileNotFoundException {\n GameData.preferences.clear();\n File file = new File(\"./preferences/\" + filepath);\n Scanner myRead... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the left triangle that indicates whether the facet is inbound or outbound. | public Triangle getLeftTriangle() {
return leftTriangle;
} | [
"public int getLeftEdge() {\n\t\treturn xPos;\n\t}",
"public double getLeftEdge() {\n\t\treturn this.x;\n\t}",
"public Line getLowerEdge() {\n return this.lowerEdge;\n }",
"public EdgeH getLeftEdge() { return points[0].getX(); }",
"public static int polygonsLeft(){\r\n\t\treturn polygonsLeft;\r\n\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Created by Milan on 3/31/17. | public interface ContentLoadListener {
void loaded();
} | [
"@Override\n public void extornar() {\n \n }",
"private static void EX5() {\n\t\t\r\n\t}",
"@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}",
"@Override\n }",
"protected void method_5557() {}",
"protected void mo4791d() {\n }",
"public void mo28221a() {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
method to get price of a symbol copy this to Server class | public static String getPrice(String symbol) {
int n = auction.size();
for (int i=0; i<n; i++) {
ArrayList<String> auction_row = auction.get(i);
if(symbol.equals(auction_row.get(0))) {
return auction_row.get(auction_row.size()-1);
}
}
return null;
} | [
"public double price()\r\n {\r\n return price;\r\n }",
"public Double getServiceprice() {\n return serviceprice;\n }",
"@Override\r\n\tpublic double getPrice() {\n\t\treturn 2000000;\r\n\t}",
"double servicePrice();",
"public final int getPrice() {\n/* 16239 */ return this.price;\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | public void update(Contact newContact) {
sessionFactory.getCurrentSession().update(newContact);
} | [
"@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"
]
]
}
} |
User name for which to display connections. Minimum length = 1 | public void set_username(String username) throws Exception{
this.username = username;
} | [
"public String getUsername() {\n\t\t\r\n\t\treturn user_name;\r\n\t}",
"protected void updateDisplayedUserName()\r\n {\r\n String schema = (String) cbEnvs.getSelectedItem();\r\n String name = (String) cbNodes.getSelectedItem();\r\n Node node = SchemaCache.getCache().getNode(schema, name);\r\n if (nod... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the codes list associated with the given language and key. | public List<Avp<String>> getCodesList(final String lang, final CodeListsType codeListType)throws DataAccessException {
final DAOCodeTable dao = new DAOCodeTable();
return dao.getList(session, GlobalStorage.MAP_CODE_LISTS.get(codeListType.toString()), locale(lang));
} | [
"com.google.protobuf.ByteString getLanguageCodesBytes(int index);",
"Map<String, String> getCodeLabels(String codeType, String language);",
"String getTranslation(String key, String language);",
"List<String> findAvailableLanguages();",
"public CodeReader get(String key);",
"String allCodes();",
"@java.... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the result of interpreting the object as an instance of 'System'. This implementation returns null; returning a nonnull result will terminate the switch. | public T caseSystem(org.remus.cmdline.commandLine.System object)
{
return null;
} | [
"public T caseSystem(org.hyperflex.roscomponentmodel.System object) {\n\t\treturn null;\n\t}",
"public T caseSystem(cCS.System object) {\n\t\treturn null;\n\t}",
"public T caseSystem(org.xtext.sdu.ioT.System object)\n {\n return null;\n }",
"public T caseSystemUser(SystemUser object) {\n\t\treturn null;\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Override this method to take advantage of automated caching by specifying how long the data can be reused before it expires and needs to be refreshed. By default, the return value is null. | public Duration getExpirationDuration()
{
return null;
} | [
"long getCacheTime();",
"public int cacheLimitValueResultMinutes();",
"public Object getCachedObject();",
"public long getLongCacheSize(){\n return cacheSize;\n }",
"@Override\n protected void updateCache() {\n\n }",
"public boolean getUseCache();",
"public ConcurrentHashMap<K, L... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ access modifiers changed from: protected | public void onResume() {
super.onResume();
MainTask.GetInstance().SetUserCallBack(this);
ResetData(false);
} | [
"@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"
]
]
}
} |
Draw Androidmarker and popup , from weather info in database Get data from database and starter DownloadWeatherTask as a AsyncTask | private void MarkerMap()
{
//DatabaseHelper object
final DataBaseHelper myDbHelper = new DataBaseHelper(this.getApplicationContext());
Log.i("database", "Start db load");
try
{
myDbHelper.createDataBase();
myDbHelper.open();
}
catch (IOException ioe)
... | [
"public void updateWeather(){\n ///\n cityField = (TextView)findViewById(R.id.textCity);\n updatedField = (TextView)findViewById(R.id.textViewUpdated);\n detailsField = (TextView)findViewById(R.id.details_field);\n currentTemperatureField = (TextView)findViewById(R.id.textTemp);\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ AdMob Publicidade > Inicio Apresentacao | @Override
public void onClick(View view) {
if (mInterstitialAd.isLoaded()) {
mInterstitialAd.show();
} else {
Log.d("CVB", "AdMob -> The interstitial wasn't loaded yet.");
}
/*
-------------------
AdMob - Pub... | [
"void anoInicio();",
"@Override\r\n public void nuevaPublicacion() {\n }",
"private void showPersonalizedAds() {\n ConsentInformation.getInstance(this).setConsentStatus(ConsentStatus.PERSONALIZED);\n showBanner(true);\n }",
"@Override\n\tpublic void onAderInterstitialAdPresent() {\n\t\t... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Enables or disables notification on a give characteristic. | public void setCharacteristicNotification(BluetoothGattCharacteristic characteristic,
boolean enabled) {
if (mBluetoothAdapter == null || mBluetoothGatt == null) {
Log.w("SET CHARACTERISTIC", "BluetoothAdapter not initialized");
return;
... | [
"public void setCharacteristicNotification(BluetoothGattCharacteristic characteristic,\n boolean enabled) {\n if (mBluetoothAdapter == null || mBluetoothGatt == null) {\n Log.w(TAG, \"BluetoothAdapter not initialized\");\n return;\n }\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get all of the vouchers from the database and create the item list | @SuppressWarnings("deprecation")
private void fillData() {
Cursor c = dbHelper.fetchAllVouchers();
getActivity().startManagingCursor(c);
TransactionType transactionType;
Type voucherType;
String transactionId;
java.util.Date createdAt;
for (c.moveToFirst(); !c.isAfterLast(); c.moveToNext()) {
transa... | [
"public VoucherList getVouchers() {\n\t\treturn vouchers;\n\t}",
"Collection<ItemData> fetchAllItems_ForUserView();",
"public static void listSeller(){\n VendedorDao.viewSellerDB();\n }",
"public void setUpList() {\n database\n .collection(Book.BOOKS)\n .whereEqu... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Unites this rectangle with the given other rectangle. | public abstract Rectangle union(Rectangle rect); | [
"public void union(final Rectangle other) {\n double x1 = Math.min(this.x, other.x);\n double y1 = Math.min(this.y, other.y);\n double x2 = Math.max(this.x + this.width, other.x + other.width);\n double y2 = Math.max(this.y + this.height, other.y + other.height);\n if (x2 < x1) {\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Handles the 'Game Over' game state | private void handleGameOver() {
// do nothing
} | [
"public void gameOver() {\n\t\tthis.gameGoesOn = false;\n\t}",
"private void updateGameOver() {\n\r\n\t}",
"public void checkGameOver(){\n if(!player.isAlive()){\n gsm.setState(GameStateManager.GAMEOVER);\n }\n }",
"public void gameOver() {\n displayDialogue(Dialogue.endingD... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Register a namespace prefix | private java.lang.String registerPrefix(javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) throws javax.xml.stream.XMLStreamException {
java.lang.String prefix = xmlWriter.getPrefix(namespace);
if (prefix == null) {
prefix = generatePrefix(namesp... | [
"public void addNamespace(String pPrefix) {\n // check if already registered.\n if (!namespaces.containsKey(pPrefix)) {\n LOGGER.debug(\"Add namespace for prefix '{}'\", pPrefix);\n namespaces.put(pPrefix, NAMESPACE_PREFIX + pPrefix);\n }\n }",
"private java.lang.String registerPrefix(javax.xm... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Funcion call(), la que se ejecutara desde la variable | public Void call() {
iniciar_agregarActivo();
return null;
} | [
"private void call() {\n\n\t}",
"Object invoke(Object runningValue) throws Exception;",
"public static void execute() {\n\t\t\n\t}",
"public <V> V runWith(boolean flag, Callable<V> callable) throws Exception {\n push(flag);\n try {\n return callable.call();\n } finally {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | public void changed(Item item, ItemState itemState) {
} | [
"@Override\n }",
"@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}",
"@Override\n public void extornar() {\n \n }",
"@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}",
"@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}",
"@Override\r\n\tpublic void wydaj() {\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Tests that an object specification without feature specification but a class name results in the right class Name. | @Test(expected = EcoreGenerationException.class)
public void unknownFeatureTest() {
CesonBuilder builder = new CesonBuilder();
List<CFeature> features = new ArrayList<CFeature>();
features.add(builder.feature("UNKNOWN", builder.stringValue(VAR_NAME)));
CObjectValue obj = builder.objectValue("ceson.CReference",... | [
"@Test\n\tpublic void studentDropClassCorrectClassName() {\n\t\tthis.admin.createClass(className1, currentYear, instructorName, classSize);\n\t\tthis.student.registerForClass(stName1, className1, currentYear);\n\t\tthis.student.dropClass(stName1, className1, currentYear);\n\t\tassertFalse(this.student.isRegisteredF... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
continueSearch performs the logic to determine if the simulation should proceed | public boolean continueSearch(){
boolean go;
if((currentTemp+delT) > maxTemp){
go=false;
}else{go=true;}
return go;
} | [
"public void startSearch() {\n\t\tcspSolver.startSearch();\n\t}",
"boolean continueIterations();",
"protected void continueLoop() {\n jumpTo(beginLoop);\n }",
"public void stopSearch(){\n\t\tif (currentPhase != Phase.SEARCHING)\n\t\t\tthrow new IllegalStateException(\"The current phase is not \" + P... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ range keyword according to the Compression Permutation (CPArray) | private String rangeKeywordByCompressionPermutation(String keyWord) {
int cpLength = va.CPArray.length;
StringBuilder sc = new StringBuilder();
for (int i = 0; i < cpLength; i++) {
sc.append(keyWord.charAt(va.CPArray[i] - 1));
}
return sc.toString();
} | [
"public void setByteRange(int[] range)\n {\n if (range.length!=4)\n {\n return;\n }\n COSArray ary = new COSArray();\n for ( int i : range )\n {\n ary.add(COSInteger.get(i));\n }\n\n dictionary.setItem(COSName.BYTERANGE, ary);\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Removes a listener from the view. | public abstract boolean removeListener(ViewListener listener); | [
"public void removeListener(EventListener listener);",
"void removeEventListener(@Nonnull Object listener);",
"void removeEventListener(Listener<T> listener);",
"public void removeListener(mxIEventListener listener) {\n\t\t\n\t}",
"public void removeListener( IModelFactory<IModelNode<T>> listener ){\r\n\t\t... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates a new link between head and tail in the network. | public void createLink(Node tail, Node head) throws InvalidEditException {
Vector V = new Vector();
NodeList parents;
Node node;
int i;
// Create a new link
super.createLink(tail,head);
if (this.getClass()!=IDWithSVNodes.class){
if(head.getKindOfNode()!=Node.DECISION){
removeRelation(head);
... | [
"public LinkedList(Node h){\r\n // TO DO\r\n head=h;\r\n tail=h;\r\n }",
"public void insert(T t){\n if(tail.t==null) {\n tail = new Link(t, null);\n head = tail; }\n else {\n Link l = new Link(t, tail.next);\n tail.next = l;\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the state of the cell at row,col | public String getState(int row, int col) {
return gameBoardStates[row][col];
} | [
"public State getState(int row,int col) {\n\t\treturn this.sm.getState(row, col);\n\t}",
"void setCellState(int row, int col, int state);",
"public Cell getCell(int row, int col);",
"public abstract boolean getCell(int c, int r);",
"public CellState getCellState(CellLocation loc) {\n return this.Stat... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Construtor passando a application | public DetalhesQuadraController(Application application){
mApplication = application;
} | [
"public App() {\n\t\tthis(\"app\", null);\n\t}",
"public App() {\n\t}",
"public void createApplication() {\n }",
"public Application() {\n\t\tsuper(1);\n\t}",
"public controllerApp() {\n }",
"private MowerAppFactory() {\n\t}",
"public DomainApp() {\r\n\t\tsuper();\r\n\t}",
"public Application() ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Actualiza o guarda un object | public void saveOrUpdate(T o) throws DAOException; | [
"@Override\r\n\tpublic void guardar(ASParametro obj) {\n\t\ttry {\r\n\t\t\tiniciaOperacion() ;\r\n\t\t\tsesion.saveOrUpdate(obj) ;\r\n\t\t\ttx.commit() ;\r\n\t\t\tsesion.flush() ;\r\n\t\t\t} catch (HibernateException he) {\r\n\t\t\tmanejaExcepcion(he) ;\r\n\t\t\tthrow he ;\r\n\t\t\t} finally {\r\n\t\t\tsesion.close... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Create and return exception that reports general failure. | public static RdfException failure(String message, Object... args) {
return new RdfException(message, args);
} | [
"@Test\n\tvoid createEmployeeExceptionFailTest() throws Exception {\n\t\twhen(perRepo.findById(anyString())).thenThrow(new IllegalArgumentException(MOCK_EXCEPTION_MESSAGE));\n\n\t\tDataOperationResultDTO<EmployeeDTO> result = practicalTestService.createEmployee(createMockEmployee(true));\n\n\t\tassertEquals(Constan... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | @Override
public void onEvent(int arg0, int arg1, int arg2, Bundle arg3) {
} | [
"@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"
]
]
}
} |
Triggered onClick for button Add Events | public void addEvents(View view)
{
//Goto Main activity which will add Events
startActivity(new Intent(RecentClass.this,AddEventsToCalendar.class));
} | [
"@Override\n protected void addClicked() {\n }",
"public void addListButtonClick(ActionEvent actionEvent) {\n }",
"public void addButton(ActionEvent e){\n\t\tdisableAllButDD(true);\n\t\t\n\t\t//clear text in each box, so the user knows they can change it\n\t\tsongField.clear();\n\t\tartistField.clear()... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor. | @SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {
jPanel1 = new javax.swing.JPanel();
jLabel1 = new javax.swing.JLabel();
txtNumerador1 = new javax.swing.JTextField();
txtDenom... | [
"public StForm() {\n initComponents();\n }",
"public CineForm() {\n initComponents();\n }",
"public javaform() {\n initComponents();\n }",
"public EditDemographicForm() {\n initComponents();\n }",
"public FightForm() {\n initComponents();\n }",
"public For... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ returns the event at a given index | public Event get(int index){
return list.get(index);
} | [
"int getEvents(int index);",
"public Event getEvent(int index){//getter method\n return events.get(index);\n\n }",
"java.lang.String getEventId(int index);",
"@java.lang.Override\n public com.google.speech.logs.timeline.TimelineEvent getEvent(int index) {\n return event_.get(index);\n }",
"pu... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Bundle bundle = getIntent().getExtras(); String currentUserEmail = bundle.getString("email"); | @Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
String currentDBPath = getDatabasePath("pack_table").getAbsolutePath();
Toolbar toolbar = findViewById(R.id.toolbar);
setSupportActionBa... | [
"@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n if(resultCode == RESULT_OK){\n Log.d(TAG, \"email result: \" + data.getStringExtra(\"email\"));\n userEmail.setText(data.getStringExtra(\"email\"));\n userFullName.setText(data.g... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Prepare activity before upload | @Override
protected void onPreExecute() {
super.onPreExecute();
} | [
"private void initiateCameraUpload(Activity activity) {\n setPickerConfiguration(activity, false);\n FilePicker.openCameraForImage(activity, 0);\n }",
"@Override\r\n\tpublic void prepare() throws Exception {\n\t\tmaxUploadSize = AttachmentUtils.getMaxUploadSize(account);\r\n\t}",
"public void p... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Predeath clean up called by JADE | protected void takeDown() {
super.takeDown();
} | [
"@PreDestroy\r\n\tpublic void doMyCleanupStuff() {\r\n\t\tSystem.out.println(\">> TennisCoach: inside of doMyCleanupStuff()\");\t\t\r\n\t}",
"@PreDestroy\r\n\tpublic void doMyCleanUpStuff() {\r\n\t\tSystem.out.println(\":::TennisCoach - Inside doMyCleanUpStuff() :::\");\r\n\t\t\r\n\t}",
"void death();",
"@Ove... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Cleans workspace from artifact. Executes hg purge. | public void clean() throws AdvancedSCMException{
String output = "";
try {
output = this.advancedHgExe.clean();
} catch (Exception e) {
MercurialBackend.log.log(Level.SEVERE, "Exception occured during cleaning of workspace.", e);
l.append(e.toString());
... | [
"void purge()\n throws IOException;",
"public void deleteWorkingCopy() throws IOException {\n for (File file : repositoryPath.toFile().listFiles())\n if (!file.getName().equals(\".magit\")) {\n if (file.isDirectory())\n FileUtils.deleteDirectory(file);\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Delete the bookmark record corresponding to the given bookmarkId. | public void deleteBookmarkRecord(long bookmarkId) {
try {
if(mDataBase.delete(BOOKMARKS_TABLE_NAME, BOOKMARK_ID+"=\'" + bookmarkId +
"\'", null) > 0) {
Log.w(TAG,"Record deleted from " + BOOKMARKS_TABLE_NAME +
" table: bookmarkId = " + bookmarkId);
}
} catch (Exception e) {
Log.e(TAG, getS... | [
"int deleteByPrimaryKey(Integer bookmarkId);",
"@RequestMapping(value = \"/bookmarks/{id}\",\n method = RequestMethod.DELETE,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public ResponseEntity<Void> deleteBookmark(@PathVariable Long id) {\n log.debug(\"REST request to delet... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Cleanup system resources before exit. Needed when using system resources that are not normally handled by Java garbage collector. | void destroy()
throws IOException; | [
"public void cleanup()\n {\n // If tool is still running don't do any cleanup until the tool is done otherwise cleanup now\n // by freeing C++ allocated resources.\n }",
"void cleanup() {\n\t\tSystem.out.println(\"Cleanup called\");\n\t\t// free up resources...\n\t}",
"private void exit() {\n\t\tS... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test if the button is the open ticket button | public boolean isOpenButton(Button button) {
if (button == openTicket) {
return true;
}
return false;
} | [
"boolean hasButton();",
"public boolean clickOnCheckoutBtn()\n {\n return waitForExpectedElement(basketCheckoutBtn).isDisplayed();\n }",
"boolean getButton(int button);",
"public static JButton getTicketButton() {\n return ticketButton;\n }",
"public boolean booknowbutton() {\n\tboolean ele... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
GETTERS & SETTERS FOR FIELDS DATABASE MAPPING : FI_MA_HOSO ( VARCHAR2 ) | public void setFiMaHoso(String fiMaHoso) {
this.fiMaHoso = fiMaHoso;
} | [
"public interface FLUXO_CAIXA {\r\n\t\tString TABLE = \"fluxoCaixa\";\r\n\t\tString ID_FLUXO_CAIXA = \"idFluxoCaixa\";\r\n\t\tString DESCRICAO = \"descricao\";\r\n\t\tString TIPO_FLUXO = \"tipoFluxo\";\r\n\t\tString VALOR = \"valor\";\r\n\t}",
"public String getHEOF()\n {\n return fieldHEOF.getString();\n }"... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Initializes the holiday configuration by resetting. | private HolidayConfig() {
reset();
} | [
"public void addHolidays() {\n\t\t\n\t}",
"public void init() {\n\n //Skeletal remains of the pre-Max DeVos days.\n //Don't use this.\n\n }",
"private void initHolidayCols() {\n\n holidayIdCol.setCellValueFactory(new PropertyValueFactory<>(\"holidayId\"));\n holidayNameCol.setCell... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Handle action bar item clicks here. The action bar will automatically handle clicks on the Home/Up button, so long as you specify a parent activity in AndroidManifest.xml. | @Override
public boolean onOptionsItemSelected(MenuItem item) {
int id = item.getItemId();
System.out.println(myWebView.getUrl());
//noinspection SimplifiableIfStatement
if (id == R.id.action_settings) {
return true;
}
return super.onOptionsItemSele... | [
"@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch(item.getItemId()){\n\t\tcase android.R.id.home:\n\t\t\t// app icon in action bar clicked; go home\n Intent intent = new Intent(this, MainMenuCard.class);\n intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
System.out.println(rightNumber + "," + downNumber); | private int sumTrees(int rightNumber, int downNumber) {
int totalTrees = 0;
int column = rightNumber + 1;
for (int i = 0; i < grid.length; i = i + downNumber) {
if (i + downNumber >= grid.length) {
continue;
}
if (grid[i + downNumber][column - ... | [
"private static void outPut(int[] currentnum2) {\n\t\tfor (int i : currentnum2) {\r\n\t\t\tSystem.out.print((i + 1) + \" \");\r\n\t\t}\r\n\t\tSystem.out.println();\r\n\t}",
"@Override\r\n\tpublic String toString() {\n\t\treturn String.format(\"%d %d\", first, second);\r\n\t}",
"public String Display(){\n\t\tret... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Helper method for checking the content of a component group. | private void checkGroupContent(String grpName, String[] expected)
{
ComponentGroup group = ComponentGroup.fromContext(context, grpName);
assertEquals("Wrong number of elements in group", expected.length,
group.getComponentNames().size());
Iterator<String> it = group.getCompon... | [
"public abstract boolean hasGroup(String group);",
"private boolean anyFormComponentError()\n\t{\n\t\t// Check ALL children for error messages irrespective of FormComponents or not\n\t\tBoolean error = visitChildren(Component.class, new IVisitor<Component, Boolean>()\n\t\t{\n\t\t\t@Override\n\t\t\tpublic void com... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Create a new Habit Event | private HabitEvent createNewHabitEvent() {
HabitEvent new_HabitEvent = null;
String eventType = Types.getSelectedItem().toString();
SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd");
try {
Date eventDate = simpleDateFormat.parse(date_TextView.getText().... | [
"private Event createNewEvent() throws CreateException, FinderException {\n\t\t// Finds an object with a unknown identifier\n\t\tfinal Long id = eventRepository.findLastId().orElse(10000L) + 1;\n\n\t\t// Create Coach\n\t\tUser coach = createNewCoach();\n\n\t\t// Create Activity\n\t\tActivity activity = createNewAct... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Consulta por named query. | public <T extends Serializable> List<T> listarPorNamedQuery(String JPQL) {
try {
Query query = manager.createNamedQuery(JPQL);
List<T> result = query.getResultList();
return result;
} catch (RuntimeException e) {
throw new ModelException(e);
... | [
"public static interface NameQuery {\r\n\t\tString FIND_ALL = \"SELECT f FROM FeatureTab f\";\r\n\t\tString FIND_BY_ID = \"SELECT f FROM FeatureTab f WHERE f.featureId = :featureId\";\r\n\t}",
"public NamedQuery(final Query query, final String name) {\n this.query = query;\n this.name = name;\n }",
"Quer... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Default local root directory value. | static String LOCAL_ROOT(Project project) {
return Objects.requireNonNull(project.getBasePath());
} | [
"String getDefaultDirectory() {\r\n return g.defaultDirectory;\r\n }",
"private String get_fs_dir_store_root() {\n //String x = config.getInitParameter(Constant.INIT_PARAM_FS_DIR_STORE_ROOT);\n String x = getServletConfig().getInitParameter(Constant.INIT_PARAM_FS_DIR_STORE_ROOT);\n if (x ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Unsubscribe from a topic | public void unSubscribe(String topic, PubSubService pubSubService){
pubSubService.removeSubscriber(topic, this);
} | [
"public ReturnCode unsubscribe(String topic);",
"public IMqttToken unsubscribe(String[] topicFilters) throws MqttException;",
"public void unsubscribe() throws MqttException{\r\n mqttClient.setCallback(null);\r\n mqttClient.unsubscribe(TOPIC);\r\n }",
"public void unsubscribeToIoT(final Strin... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates a FarmlandMenu object with a default farmlandCtrl and loggedIn user | public FarmlandMenu(User loggedInUser) {
this.loggedInUser = loggedInUser;
farmlandCtrl = new FarmlandCtrl();
} | [
"public PlatAuMenuFactory(){}",
"public JFMenuPrincipal() {\n initComponents();\n setLocationRelativeTo(null);\n \n }",
"public MainMenu() {\n initComponents();\n String rights = main.LuggageTrackerTool2.getInstance().getCurrentUser().getPrivileges();\n\n switch (rig... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
GET X3D This method will return the X3D for the AminoAcids. It runs through each of its components and collects up their representations and then assembles them into one unified X3D model. | public String getX3D(boolean snipet) {
// Assemble the AminoAcids
String header = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n" +
"<!DOCTYPE X3D PUBLIC \"ISO//Web3D//DTD X3D 3.0//EN\" \"http://www.web3d.org/specifications/x3d-3.0.dtd\">\n " +
"<X3D profile='Immersive' >\n" +
"<head>\n" +
"<meta ... | [
"public String getX3D(boolean snipet) {\r\n\t\t\r\n\t\t// Assembe the HepaticDuct\r\n\t\tString header = \"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?>\\n\" +\r\n\t\t\"<!DOCTYPE X3D PUBLIC \\\"ISO//Web3D//DTD X3D 3.0//EN\\\" \\\"http://www.web3d.org/specifications/x3d-3.0.dtd\\\">\\n \" +\r\n\t\t\"<X3D profil... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Checks if the class has a hasPatchCondition property value. | boolean hasHasPatchCondition(); | [
"public boolean hasCondition() {\n return ((bitField0_ & 0x00000010) == 0x00000010);\n }",
"public boolean hasCondition() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"public boolean hasCondition() {\n return ((bitField0_ & 0x00000010) == 0x00000010);\n }",
"... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ renamed from: c | private final void m117382c(String str) {
long elapsedRealtime = SystemClock.elapsedRealtime() - this.f150934a;
String valueOf = String.valueOf(this.f150942i);
String str2 = valueOf.length() == 0 ? new String(str) : str.concat(valueOf);
String str3 = this.f150938e;
fjk a = beyc.m... | [
"@Override\n\tpublic void c() {\n\t\t\n\t}",
"@Override\r\n\tvoid c() {\n\t\t\r\n\t}",
"protected void c() {\n\n\t}",
"void mo3976c(C5247d c5247d);",
"void mo62419c();",
"void m28293a(C5003c c5003c, C5006e c5006e);",
"void mo24495a(C12578a c12578a);",
"void mo22731b(C33642d c33642d);",
"public void ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get the width of the FileChooser. | @Override
public double getWidth() {
return widthProperty.doubleValue();
} | [
"public String getImageWidth();",
"public int getWidth() {\n\t\tString w = asciiFileToString(this.mainDirectoryPath + \"\\\\width\");\n\t\tif (w == null)\n\t\t\treturn -1;\n\t\treturn Integer.parseInt(w);\n\t}",
"public int width() {\n\t\treturn this.picture.width();\n\t}",
"public static int getWidth() {\tre... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO check for bad data lines | public void parseLine(String s) {
Scanner sc = new Scanner(s).useDelimiter("/");
String lineType = sc.next();
if (lineType.equalsIgnoreCase("Player")) {
insertPlayer(sc.next(), sc.next(), sc.next(), sc.nextInt(), sc.next());
} else if (lineType.equalsIgnoreCase("Match")) {
String player1... | [
"@Test\n public void dataParseLowErrorsTest() {\n for (int i = 0; i < 197; i++) {\n routeParser.errorCounter(0);\n }\n try {\n routeParser.dataParser();\n } catch (RuntimeException e) {\n fail();\n }\n }",
"public void process(String line, D data, int lineno) throws InvalidFileLine... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | public void beforeTextChanged(CharSequence s, int start,
int count, int after) {
} | [
"@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 triangular face located to the left of this halfedge. | public Face getFace() {
return face;
} | [
"public EdgeH getLeftEdge() { return points[0].getX(); }",
"public Color getLeft(){\n return this.faces[4];\n }",
"public int getLeftEdge() {\n\t\treturn xPos;\n\t}",
"public void faceLeft() {\n direction = LEFT;\n }",
"public double getLeftEdge() {\n\t\treturn this.x;\n\t}",
"public L... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the contact city. | public String getContactCity() {
return m_contactCity;
} | [
"public final String getCity() {\r\n return city;\r\n }",
"public String getCity()\n\t{\n\t\t\n\t\treturn city;\n\t\t\n\t}",
"@Override\n\tpublic java.lang.String getCity() {\n\t\treturn _address.getCity();\n\t}",
"public String getCity()\r\n\t{\r\n\t\treturn this.entries[0];\r\n\t}",
"public Stri... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Accepts List, NOT list, List, etc. | public static void printListObject(List<Object> lst) {
for (Object o : lst) System.out.println(o);
} | [
"@Override\n public boolean isList()\n {\n\t return false;\n }",
"public boolean isListType();",
"boolean hasListKind();",
"private static boolean isListFormDesiredType(Field field, Class type) {\r\n\t\ttry {\r\n\t\t\t\r\n\t\t\tif (field.getType().isAssignableFrom(List.class)) {\r\n\t\t\t\tParamet... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ rxAuthSearchRequest.setThruDate(CalendarUtilities.getYYYYMMDDString(CalendarUtilities.GetToday())); rxAuthSearchRequest.setCarrierId(carrierId); rxAuthSearchRequest.setAccountId(accountId); rxAuthSearchRequest.setGroupId(groupId); rxAuthSearchRequest.setMemberId(memberId); rxAuthSearchRequest.setIncludePrescriberInfo... | public WsRxAuthSearchClientTest_1() throws IOException{
} | [
"@Override\r\n public boolean execute(HashMap arg0, DataControllerRequest request, Result arg2) throws Exception {\n super.execute(arg0, request, arg2);\r\n try {\r\n\t LOG.debug(\"Request to Search in SearchPreProcessor \"+arg0);\r\n if (arg0.get(\"transferFlag\") != null && !arg0.get(\"transferFlag\").equals... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
IDs of the subnets that the hosts belong to. repeated string subnet_ids = 5 [(.yandex.cloud.size) = "<=10", (.yandex.cloud.length) = "<=50"]; | public com.google.protobuf.ByteString
getSubnetIdsBytes(int index) {
return subnetIds_.getByteString(index);
} | [
"@java.lang.Override\n public com.google.protobuf.ByteString\n getSubnetIdBytes() {\n java.lang.Object ref = subnetId_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test get contact paged list | @Test
public void testGetContactPagedList() {
int count = 10;
for(int i=0; i<count; i++) {
Contact contact = TestUtil.createRandomContact();
try {
contactDao.createContact(contact);
} catch (Exception e) {
logger.error("Failed to cr... | [
"public ContactsResponse getContacts(int page) throws IOException, CoinbaseException;",
"Page<Contact> getObjects(SearchParameter searchParameter);",
"@Test\n\tpublic void testGetContacts() {\n\t\tArrayList<Contact> list = new ArrayList();\n\t\tfor (Contact contact : PersistenceContext.repositories().contacts()... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method corresponds to the database table fund_distribution_history | int insert(FundDistributionHistory record); | [
"public ProductCostHistory() {\n\t\tsuper(org.jooq.examples.sqlserver.adventureworks.production.tables.ProductCostHistory.ProductCostHistory);\n\t}",
"private void generateHistory(Order order) throws DAOException {\n LOGGER.debug(\"entering generateHistory with parameters \" + order);\n\n final Stri... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method returns the value of the database column portal_space_to_user.space_id | public String getSpaceId() {
return spaceId;
} | [
"String getSpaceId();",
"public Long getToUserId() {\r\n\t\treturn toUserId;\r\n\t}",
"public int getToUserId() {\n return toUserId_;\n }",
"public String getSessionUserId();",
"@SpaceId(autoGenerate=true)\n public String getId() {\n return id;\n }",
"public int getOrg_ID() {\n\t\tInteger... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Overriding compare()method of Comparator for descending order of cgpa | public int compare(Student s1, Student s2) {
if (s1.cgpa < s2.cgpa)
return 1;
else if (s1.cgpa > s2.cgpa)
return -1;
return 0;
} | [
"@Override\r\n\tpublic int compare(Jeu arg0, Jeu arg1) {\n\t\treturn comparer(arg0)-comparer(arg1);\r\n\t}",
"@Override\n public int compare(Brelaz o1, Brelaz o2) {\n if(o1.getArrayList().size() == o2.getArrayList().size()){\n //descending order degree\n return o1.g... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Constructor for ItemsAdapter that gets items from textview | public ItemsAdapter(Context context, int textViewResourceId, String[] items) {
this.items = items;
} | [
"public ItemAdapter(Context context, int textViewResourceId, ArrayList<Item> objects) {\n super(context, textViewResourceId, objects);\n }",
"public ItemAdapter(Activity context, ArrayList<Item> items) {\n // Here, we initialize the ArrayAdapter's internal storage for the context and the list.\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
End of loadShow Load a specific show from the database. | public Show loadShow(String name) throws Exception
{
//Load all the shows from the database
Show [] shows = loadShows();
//Loop through the shows, looking for a match
for (Show show : shows)
{
//See if the show matches the name
if (show.getName().equals(name))
return show;
}//End of for
... | [
"public void endLoad()\n\t{\n\t\tString srcName = \"\";\n\t\tEntity src;\n\t\tEntity des;\n\t\tString desName = \"\";\n\t\tReference ref;\n\t\tString refName = \"\";\n\t\t\n\t\tfor (int i = 0; i < entities.size(); i++)\n\t\t{\n\t\t\tsrc = entities.get(i);\n\t\t\tsrcName = src.getEntityName();\n\t\t\t//System.out.pr... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method returns the value of the database column crm_callback.call_bargain | public Byte getCallBargain() {
return callBargain;
} | [
"public String getCallbackMethodToCall() {\r\n return callbackMethodToCall;\r\n }",
"public String getCallback() {\r\n\t\treturn callback;\r\n\t}",
"@Select(value =\r\n \"{call #{nombreCliente, mode=OUT, jdbcType=CHAR} := \" + \"ADMCENTRAL_RECAUDACION.RCD_RECUP_NAME_CLIE_BFP(\" +\r\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
untuk mengambil data pesanan aktif | public static Pesanan getPesananAktif(Customer pelanggan) {
for(Pesanan pesanan : PESANAN_DATABASE){
if(pesanan.getPelanggan()==pelanggan && pesanan.getStatusAktif()){
return pesanan;
}
}
return null;
} | [
"@Override\n\tpublic void aktiviranjeTure() {\n\t\t\n\t}",
"private void DisabelDoubelKlikTabel(boolean TutupBuka){\n \n AlamaPemesan.setEditable(TutupBuka);\n NoTelpon.setEditable(TutupBuka);\n FieldNote.setEditable(TutupBuka);\n FieldBayar.setEnabled(TutupBuka);\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Provides us with the Type of the Tile | public Type getType() {
return this.type;
} | [
"public Type getTileType() {\n return tileType;\n }",
"public TileType getTile()\n\t{\n\t\treturn tile;\n\t}",
"private Image renderTile(int type) {\n\t\tif (type == 1)\n\t\t\treturn tile01;\n\t\telse if (type == 2)\n\t\t\treturn tile02;\n\t\telse if (type == 3) \n\t\t\treturn tile03;\n\t\telse if (ty... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Deletes the selected employee in database. | public void deleteEmployee() {
String emp_id = txt_employee_id.getText();
Alert confDialog = new Alert(Alert.AlertType.CONFIRMATION);
confDialog.setTitle("Confirm action!");
confDialog.setHeaderText("Are you sure you want to permanently delete employee " + emp_id + "?");
Optiona... | [
"protected void deleteEmployee(ActionEvent e) {\n\t\tint row = employeeListTable.getSelectedRow();\r\n\t\tif(row == -1){\r\n\t\t\tJOptionPane.showMessageDialog(this, \"请选中要删除的数据!\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tif(JOptionPane.showConfirmDialog(this, \"您确定删除么?\") != JOptionPane.OK_OPTION){\r\n\t\t\treturn;\r\n\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Testcasse : Test to edit the row which has first name mentioned Testdata : Value of the row to be edited. | @Test
public void test_010_edit_an_address(){
signIn(validEmail, validPassword);
edit_address("test");
} | [
"@Test\n public void testEditCorrectInput2() {\n\t\trow = 0;\n\t\tcol = 0;\n\t\tindex = row * table.getCol() + col;\n\t\tservice.edit(table,row,col,2,\"BBB\",\"\");\n\t\tassertEquals(\"BBB\",table.getTable().get(index).getVal());\n }",
"@Test\n\tpublic void testEditCorrectInput4() {\n\t\trow = 3;\n\t\tcol ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
repeated .filer_pb.Location locations = 1; | public int getLocationsCount() {
return locations_.size();
} | [
"com.commutestream.nativeads.protobuf.Csnmessages.LocationOrBuilder getLocationOrBuilder();",
"com.commutestream.nativeads.protobuf.Csnmessages.LocationComponent getLocation();",
"public void setLocation(Location location) {\n/* 44 */ this.fLocation = location;\n/* */ }",
"java.util.List<? extends ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | @Override
public void onTestFailedButWithinSuccessPercentage(ITestResult result) {
} | [
"@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"
]
]
}
} |
Update CassetteId from Server | public void updateCassette(Cassette data) {
synchronized (sqlLock) {
db = dbHelper.getWritableDatabase();
String sql = "SELECT * FROM Cassette WHERE cassetteId = '"
+ data.getCassetteId() + "'";
Cursor cursor = db.rawQuery(sql, null);
if (cursor.getCount() == 0) {
ContentValues content = new Cont... | [
"private String createAssetId()\n {\n String id = hostId +\n pid +\n System.currentTimeMillis() +\n String.valueOf(objectCounter.incrementAndGet());\n return Hashing.sha256().hashString(id, Charsets.UTF_8).toString();\n }",
"private void setServerId... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Removes the current entity from the underlying persistent storage. | public String remove() {
logger.debug("Removing instance: {}", getInstance());
try {
persistenceService.remove(getInstance());
showSuccessfulRemoveMessage();
conversation.end();
return getRemovedOutcome();
} catch (Exception e) {
... | [
"public void delete(){\n EntityManager em = EMF.createEntityManager();\n em.getTransaction().begin();\n em.remove(this);\n em.getTransaction().commit();\n em.close();\n }",
"@Override\r\n\tpublic Entity deleteEntity(Entity entity) {\n\t\treturn null;\r\n\t}",
"@Transactiona... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Write your code here | @Override
public Integer next() {
int val = vec.get(idx).get(subIdx);
subIdx++;
skip();
return val;
} | [
"void stuffForYouToDo() {\n\t\t// Write your code here...\n\t\t\n\t\t\n\t\t\n\t}",
"private static void EX5() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\t\tvoid eval() {\r\n\r\n\t\t\t\t\t// YOUR CODE IN THIS SPACE\r\n\t\t\t\t}",
"@Override\n }",
"void writeCode() {\n System.out.println(\"WRITING ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
To change body of implemented methods use File | Settings | File Templates. | @Override
public void storeVarScopeToLocal(WriterVisitor wv) {
} | [
"@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}",
"@Override\n }",
"@Override\n public void extornar() {\n \n }",
"@Override\r\n public void publicando() {\n }",
"@Override\n\tprotected void body()\n\t{\n\n\t}",
"@Override\n public void method() {\n }",
"@Override... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ char s = 'a' ; boolean state = false ; int num1 =Integer.MIN_VALUE;//the Interger is a rapper class int num2 =Integer.MAX_VALUE; System.out.println(num1+1); System.out.println(num22); System.out.print("max int value:"); System.out.println(num1); System.out.print("min int value:"); System.out.println(num2); System.out... | public static void main(String args[])
{
Scanner input=new Scanner (System.in); //here the new will allocate heap memory for the input.
/*System.out.print("enter the no");
int c=input.nextInt();
System.out.println("the no is"+c);
System.out.println("enter a msg");
String msg=input.next();
System.out.println("the msg ... | [
"public static void main(String[] args) {\n\t\tSystem.out.println(\"Helloworld\");\r\nint a=10;\r\nshort b=100;\r\nlong c=9885471332L;\r\nbyte d=4;\r\nfloat f=2.45f;\r\ndouble dd=2.4556662d;\r\nchar cc='f';\r\nboolean istr=false;\r\nint n1=20,n2=50;\r\nif(n1>n2) {\r\n\tSystem.out.println(\"n1is greater\");\r\n}else... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
repeated string enabled_language_features = 4; | java.lang.String getEnabledLanguageFeatures(int index); | [
"public int getLanguageSettings() {\r\n return languageFlag;\r\n }",
"List<String> findAvailableLanguages();",
"boolean isSetSupportsLinguisticSearch();",
"public abstract ImmutableList<String> features();",
"int getEnabledFeaturesCount();",
"@Override\npublic void getlanguage() {\n\tSystem.out.printl... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Set the value of mutuallyExclusive | void setMutuallyExclusive(boolean mutuallyExclusive); | [
"@Generated\n @Selector(\"setExclusive:\")\n public native void setExclusive(boolean value);",
"boolean getExclusive();",
"@DISPID(269)\n @PropPut\n void setLocked(\n boolean rhs);",
"public void mutuallyExclusive(boolean conditional1) {\n if (conditional1) {\n unconditionalPermis... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
OFMStaticFlowEntryManager supports the persistent database. This reload all flows to proper switches. This method is called by RESTApi. | public void reloadAllFlowModsToSwitch() throws StaticFlowEntryException {
//Avoiding ConcurrentModificationException
List<String> dpidList = new LinkedList<>( dpidToFlowModNameIndex.keySet() );
for (String dpid : dpidList) {
reloadFlowModsToSwitch(dpid);
}
} | [
"public static void reload() {\r\n\t\tLOGGER.debug(\"WF | Reload A_OSWorkflowManager\");\r\n\t\tif(instance != null){\r\n\t\t\tinstance = null;\r\n\t\t\tinstance = getInstance();\t\t\t\r\n\t\t}\r\n\t\t\r\n\t}",
"private void loadData() {\n binding.setFirstRun(false);//off first run\n Database.getINS... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns true if field code is set (has been assigned a value) and false otherwise | public boolean isSetCode() {
return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __CODE_ISSET_ID);
} | [
"public boolean isSetPgcode()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(PGCODE$14) != 0;\r\n }\r\n }",
"boolean isSetCurrcode();",
"public boolean isSet(_Fields field) {\n\t\ti... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the userTypeGuid value for this AppApplication. | public void setUserTypeGuid(java.lang.String userTypeGuid) {
this.userTypeGuid = userTypeGuid;
} | [
"public void setUserType(int userType) {\n this.userType = userType;\n }",
"public void setUser_type(Integer user_type) {\n this.user_type = user_type;\n }",
"public void setType(ch.ivy.addon.portalkit.enums.ApplicationType _type)\n {\n type = _type;\n }",
"public void setAppUserId(ULong va... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Opens the stream in the preferred player (Set in config) | public void openStream(StreamQuality quality) {
ProcessBuilder pb = new ProcessBuilder(config.getPlayerPath(), quality
.getStreamURL().toExternalForm());
try {
pb.start();
} catch (IOException e) {
e.printStackTrace();
}
} | [
"public void prepareStream(StreamPlayer sp) {\n\n\t\tmStreamPlayer = sp;\n\t\tmStreamPlayer.setOctolinkOption(\"airplay\", \"true\");\n\t\tmStreamPlayer.setProblemListener(this);\n\t\tmStreamPlayer.setListener(new StreamPlayerListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void gotUrl(final String url, long see... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO: Update argument type and name | void onFragmentInteraction(Uri uri); | [
"private void parseArgument() {\n }",
"@Override\n public void parseArguments(String[] args)\n {\n \n }",
"@Test\r\n\tpublic void capturingArguments() {\r\n\t}",
"public T userArgument();",
"java.lang.String getArgu1();",
"public Object_ArgumentTest(String name) {\n\t\tsuper(name);\n\t}... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
To verify Login page is displayed. | public static WebElement check_loginPageIsDisplayed(Read_XLS xls, String sheetName, int rowNum,
List<Boolean> testFail) throws Exception{
try{
String loginPageTitle = driver.findElement(By.xpath("//*[contains(@class, 'GS_loginForm_tit')]")).getText();
String expectedTitle = "... | [
"public void verifyLoginPage()\r\n\t{\n\t\tboolean status = verifyPage.isDisplayed();\r\n\t\tSystem.out.println(\"Login page is displayed == \"+status);\r\n\t}",
"public static void LoginPage() {\n\t\td.findElement(By.xpath(\"//input[@id='login_field']\")).sendKeys(\"testinggithub\");\n\t\td.findElement(By.xpath(... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates new form BookModule | public BookModule() {
initComponents();
} | [
"@PostMapping(value = \"/new\")\n public String addBook(@ModelAttribute Book newBook, Model model) {\n// HashMap<String, String> newBook = new HashMap<>();\n// newBook.put(\"title\", title);\n// newBook.put(\"author\", author);\n// newBook.put(\"ISBN\", isbn);\n addBook(newBook... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Verifie que deux pieces sont egales | @Override
public boolean equals(final Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
final Piece piece = (Piece) o;
return id == piece.id &&
hasBall == piece.hasBall &&
color == piece.color &&
Objects.equals(player, piece.player)... | [
"public void checkPieceDone() {\n\t\tif (row1 == numRows || row2 == numRows || row3 == numRows\n\t\t\t\t|| row4 == numRows\n\t\t\t\t|| (checkMap(row1, column1) && !checkSet(row1, column1))\n\t\t\t\t|| (checkMap(row2, column2) && !checkSet(row2, column2))\n\t\t\t\t|| (checkMap(row3, column3) && !checkSet(row3, colum... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Matrix Ai has dimension dimensions[i 1] dimensions[i] | private static int MatrixChainOrder(int dimensions[], int i, int j) {
if (i == j) return 0;
int min = Integer.MAX_VALUE;
for (int k = i; k < j; k++) {
int count =
MatrixChainOrder(dimensions, i, k) +
MatrixChainOrder(dimensions, k + 1, j) +
dimensions[i - 1] *
... | [
"public static Matrix<Integer> identityMatrix(int dim) {\n\t\tif(dim < 2)\n\t\t\tthrow new MatrixViabilityException(\"Dimensions must be at least 2x2\");\n\t\tArrayList<DataColumn<Integer>> intarr = new ArrayList<DataColumn<Integer>>(dim);\n\t\tfor(int i = 0; i < dim; i++) {\n\t\t\tInteger[] arr = new Integer[dim];... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |