query
stringlengths
8
1.54M
document
stringlengths
9
312k
negatives
listlengths
19
20
metadata
dict
la configuration en java qui remplace est:
@Bean public Stockage<?,?> stockage(){ return new StockagePizzaJPA(); }
[ "public void configurar();", "protected abstract void config();", "private Config() {\r\n\t}", "public void configurations(){\n }", "private Config() {\n init();\n }", "@Override\n\tprotected void config() {\n\t\t\n\t}", "static void initConfig()\n\t{\n\t\tparam = Parameter.getInstance(); /...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Metodo responsavel por realizar a listagem de todas as Cervejas cadastradas no banco.
@SuppressWarnings("unchecked") @Override public List<Cerveja> listarTodos() throws Exception { List<Cerveja> cervejas = null; Criteria criteria = null; try { criteria = this.session.createCriteria(Cerveja.class).addOrder(Order.asc("nm_cerv")); cervejas = (List<Cerveja>) criteria.list(); r...
[ "public void listarCarrinho (){\n Carrinho carrinho = new Carrinho();\n CarrinhoDAO carrinhoDAO = new CarrinhoDAO();\n ArrayList<Carrinho> listCarrinho;\n listCarrinho = carrinhoDAO.listarTodosOsPedidos(carrinho);\n gerarRelatorioDePedidos(listCarrinho);\n }", "public void co...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
endregion region :::::::::::::::::::::::::::::::::: UTIL
public <T extends View> T $(@IdRes int id) { //noinspection unchecked return (T) findViewById(id); }
[ "protected void method_5557() {}", "private static void EX5() {\n\t\t\r\n\t}", "void mo37715E_();", "protected abstract void mo3493a();", "protected abstract Result mo1083e();", "public abstract void mo17847T2();", "public abstract String mo16841f0();", "public void mo28221a() {\n }", "String...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
it is static in the newest IDE
public void commit() { }
[ "private static void EX5() {\n\t\t\r\n\t}", "public void mo28221a() {\n }", "protected void mo4791d() {\n }", "public void mo1857d() {\n }", "@Override\n public int utilite() {\n return 0;\n }", "protected void method_5557() {}", "@Override\n public void extornar() {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO: Compute symbolic values and fall back to numeric if not available.
public double LT (double x) {return get().LT(x);}
[ "private static Object real() {\n\t\tObject ret = integer();\n\t\tif(Input.getCh() == '.') {\n\t\t\tdouble temp = (double)(Long)ret;\n\t\t\tInput.next();\n\t\t\tdouble fractional = integer();\n\t\t\tif(fractional < 0)\n\t\t\t\tSyntaxError.stop(\"a positive fractional part\");\n\t\t\twhile(fractional > 1)\n\t\t\t\tf...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Merge two action streams in time order. Duplicate actions are merged.
static List<Action> mergeActions(List<Action> as, List<Action> bs) { List<Action> a = new ArrayList<>(as); List<Action> b = new ArrayList<>(bs); if (a.size() == 0) return b; if (b.size() == 0) return a; // Sort streams into time order Collection...
[ "public void merge(AclActions actions) {\n mActions.or(actions.mActions);\n }", "MStream<T> union(MStream<T> other);", "private static void merge() {\n Observable<String> greetings = \n Observable.just(\"Hello\", \"Hi\", \"Howdy\")\n .zipWith(\n Observable...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Causes damage from this entity. If this damager is set to automatically attribute to another entity, the damage event caused by this will be attributed to that other entity.
public final void causeDamage(LivingEntity target, double baseDamage) { if (target == null) { return; } if (entity instanceof LivingEntity) { target.damage(baseDamage, entity); } else { target.damage(baseDamage); target.playEffect(EntityEf...
[ "@Override\n public void takeDamage()", "@Override\n\tpublic void damage(int amount) \n\t{\n\t\tthis.dealActualDamage(amount, amount);\n\t}", "public abstract boolean preventDamage(EntityDamageEvent.DamageCause cause);", "@Override\n\tpublic void damage (NormalAttack atk) {\n\t\t\n\t}", "protected vo...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method returns the value of the database column public.order.id
public Integer getId() { return id; }
[ "public String getOrderID() {\r\n try {\r\n resultset = medicureconnection\r\n .executeQuery(DataBaseConstants.ORDER_ID_SQL);\r\n if (resultset.next()) {\r\n return resultset.getString(\"OrderID\");\r\n }\r\n } catch (Exception e) {\r\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get the full name of this mail provider. Many providers use acronyms as their name, so this is often the expanded acronym.
public abstract String getFullName();
[ "public String getFullName() {\n return getTextFromLabel(NAME_FIELD_ID);\n }", "public String FullName() {\n return full_name;\n }", "public java.lang.String getProviderFullName();", "public String getDisplayName() {\n return UiUtils.prepareStringTextView(displayName);\n }", "p...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This function set the params it gets, and call the start() function
public void start(String interfaceName, String captureFilter, int packetsToCapture) throws Exception { setInterfaceName(interfaceName); setCaptureFilter(captureFilter); setNumberOfPacketsToCapture(packetsToCapture); start(); }
[ "protected void initStart() { \n\t}", "private void start()\n\t{\n\t\t\n\t}", "public void start(){\n\t\t\n\t}", "public abstract void start( );", "public void start() {\r\n\t\r\n }", "public void start();", "private void initParams() {\n }", "public static void start() {\n init(); //ca...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Initialize your data structure here.
public TrieNode() { }
[ "@Override\n\tpublic void initData() {\n\n\t\t\n\t}", "private void initializeData() {\n employees.put(1, \"Amos Burton\");\r\n employees.put(2, \"Julie Mao\");\r\n employees.put(3, \"Alex Kamal\");\r\n employees.put(4, \"James Holden\");\r\n employees.put(5, \"Josephus Miller\"...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Decrypt the JWE with the RSA private key
public static String decrypt(String jweString, RSAPrivateKey rsaPrivateKey) throws ParseException, JOSEException { JWEObject jwe = JWEObject.parse(jweString); jwe.decrypt(new RSADecrypter(rsaPrivateKey)); System.out.println(("Decrypted Payload"+jwe.getPayload().toString())); System.out.p...
[ "public static String decryptRSA(Key privateKey, byte[] ciphertext){\n\t\tCipher rsa;\n\t\ttry {\n\t\t\trsa = Cipher.getInstance(\"RSA encrypted message deciphered\");\n\t \t\trsa.init(Cipher.DECRYPT_MODE, privateKey);\n\t \t\tGUI.trace_steps.add(\"message decrypted with RSA\");\n\t \t\treturn new String (rsa.doFin...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
string directory = 1;
com.google.protobuf.ByteString getDirectoryBytes();
[ "int getDir();", "public void setDir(String value);", "int getDirid();", "public void setDir(String dir) {\r\n this.dir = dir;\r\n }", "public static String directory() {\n\t\treturn \"button directory\" + delimiter + \"button directory \";\n\t}", "public void setDirectory() {\n }", ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
jhipsterneedleentityaddgetterssetters JHipster will add getters and setters here, do not remove
@Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } RefVoucher refVoucher = (RefVoucher) o; if (refVoucher.getId() == null || getId() == null) { ...
[ "void addSettersAndGetters(String path, String field);", "public interface ToolRequestUpdate extends HasId {\n\n @Override\n @PropertyName(\"uuid\")\n String getId();\n\n @PropertyName(\"uuid\")\n void setId(String id);\n\n String getStatus();\n\n void setStatus(String status);\n\n @Proper...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method corresponds to the database table item_stock
public void setDistinct(boolean distinct) { this.distinct = distinct; }
[ "public List<ItemStock> queryItemStock(ItemStock b);", "@Override\n\tpublic List<Item> getOutOfStockItem() {\n\t\t\n\t\tList<Item> itemList = new ArrayList<>();\n\t\tString SQL = \"SELECT * FROM Item_Table WHERE Item_Stock = 0 \";\n\t\ttry(Connection connection = DBUtil.getConnection();PreparedStatement ps = conn...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/get e set Nome do cliente
public String getCodigoVenda() { return codigoVenda; }
[ "public String getNom(){\n\t\treturn this.nomClient;\n\t}", "public String getsIDCliente() {\n return sIDCliente;\n }", "public java.lang.String getNomeCliente() {\n return nomeCliente;\n }", "void setjuego(Conectar.Client cliente, String usuario) {\n this.cliente=cliente;\n th...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Build a sensor value from a string JSON format and a given name.
public SensorValue toSensorValue(String jStr);
[ "@JsonCreator\n public static DelayMagnitude fromString(String name) {\n return fromString(name, DelayMagnitude.class);\n }", "SensorNameConstant createSensorNameConstant();", "@Test(expected = JsonParseException.class)\n public void testInvalidName() throws JsonException {\n String raw =...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ renamed from: b
void mo97330b(AVMusic aVMusic);
[ "public abstract T zzs(B b2);", "public void b(ByteOrder bo) {\n/* 72 */ if (this.i != bo) {\n/* 73 */ this.i = bo;\n/* 74 */ this.h = a(bo);\n/* */ } \n/* */ }", "public void doSth(B b){\n\n }", "public abstract void mo14156a(B b, int i, int i2);", "@Override\n\tpublic v...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get the API client.
public ApiClient getApiClient() { return apiClient; }
[ "public ApiClient getApi(){\n return retrofit.create(ApiClient.class);\n }", "public static HttpRestClient getClient() {\n return HttpRestClientHolder.INSTANCE;\n }", "public static HttpClient getClient() {\r\n return client;\r\n }", "private Client getClient() {\n String ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the sound effects volume.
public void setEffectsVolume(VolumeLevel newEffectsVolume) { if (effectsVolume != newEffectsVolume) { effectsVolume = requireNonNull(newEffectsVolume); showEffectsVolume(); } }
[ "public void setSoundVolume(float volume) {\n if (volume < 0) {\n volume = 0;\n }\n soundVolume = volume;\n }", "public static void updateEffectsVolume (int volume)\n {\n config.setValue(\"effects_volume\", volume);\n }", "public Audio setVolume(int volume) throws...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Writes a String as a sequence of chars.
abstract void writeChars(java.lang.String str, java.lang.String key) throws java.io.IOException;
[ "public final void writeChars(java.lang.String s) throws java.io.IOException { throw new RuntimeException(\"Stub!\"); }", "@Override\r\n public void writeChars(final String s) throws IOException {\n\r\n }", "@Override\n public void write(String string, int off, int len) throws IOException {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns an associated source identified by its id.
abstract public Source getSource(String id);
[ "@Transactional(readOnly = true)\n public PVModelSource findOne(Long id) {\n log.debug(\"Request to get PVModelSource : {}\", id);\n return pVModelSourceRepository.findOne(id);\n }", "@Transactional(readOnly = true)\n public Optional<SourceDTO> findOneById(Long id) {\n log.debug(\"Re...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get the next path
public boolean hasNext() { return pathListIterator.hasNext(); }
[ "public Pair<ArrayList<Graph>, String> getNextStep() {\n\t\tif(mActualStep < mSteps.size() - 1)\n\t\t\tmActualStep++;\n\t\telse\n\t\t\treturn null;\n\t\treturn mSteps.get(mActualStep);\t\n\t}", "protected PathNode nextDiversificationPath() {\n PathNode path = null;\n assert(allPathsGenerated() || th...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
creating a popup menu
private void showPopupMenu(View view) { PopupMenu popup = new PopupMenu(this, view); //inflating menu from xml resource popup.inflate(R.menu.sort_menu); //adding click listener popup.setOnMenuItemClickListener(item -> { switch (item.getItemId()) { case...
[ "private PopupMenu createPopup(){\n\t\tPopupMenu popup = new PopupMenu();\n\t\tMenuItem mi = new MenuItem(\"Up\");\n\t\tmi.addActionListener(this);\n\t\tpopup.add(mi);\n\t\tmi = new MenuItem(\"Down\");\n\t\tmi.addActionListener(this);\n\t\tpopup.add(mi);\n\t\tmi = new MenuItem(\"Rename\");\n\t\tmi.addActionListener...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Method to show Toast messages
public void displayToastMessage(String message) { Toast toast = Toast.makeText(this, message, Toast.LENGTH_LONG); toast.setGravity(Gravity.BOTTOM, 0, 0); toast.show(); }
[ "public void showToast() {\n\t\thandler.post(new Runnable() {\n\t\t\tpublic void run() {\n\t\t\t\tToast.makeText(getApplicationContext(), mes, Toast.LENGTH_LONG)\n\t\t\t\t\t\t.show();\n\t\t\t}\n\t\t});\n\n\t}", "public void showToast() {\n Context context = getApplicationContext();\n CharSequence te...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
CONSTRUCTOR DE LA CLASE Cgg_res_prestamo_expediente.
public Cgg_res_prestamo_expediente( com.besixplus.sii.objects.Cgg_res_prestamo_expediente inCgg_res_prestamo_expediente ){ this.setCgg_res_prestamo_expediente(inCgg_res_prestamo_expediente); }
[ "public Emprestimo() {\n\t\tsuper(\"emprestimo\", com.biblioteca.generatedclasses.Bibliotecapo.BIBLIOTECAPO);\n\t}", "public Electrodomestico(int precioBase, int peso) {\r\n\t\tsuper();\r\n\t\tthis.precioBase = precioBase;\r\n\t\tthis.peso = peso;\r\n\t}", "public resPregunta() {\r\n }", "public void setEx...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
//without categories and status filter////
@Test public void clearing_privilege_filter() throws InterruptedException { driver.manage().timeouts().implicitlyWait(3000,TimeUnit.MILLISECONDS); boolean filter_dot = this.css_locator("#tag-filter > span.applied-filter-dot").isDisplayed(); Assert.assertTrue(filter_dot); WebElement filter_button = this.css_loc...
[ "public void disableCategoryFilter()\r\n {\r\n categoryFilter = null;\r\n }", "private static void filter() {\n }", "@Override\n public boolean shouldFilter() {\n return true;\n }", "public void useDefaultFilterCategory()\n\t{\n\t\t_avTable.rm( ATTR_FILTER_CATEGORY ) ;\n\t\tuseDefa...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns an unused or newly created byte code visitor.
protected CompilerBytecodeVisitor getBytecodeVisitor(VmMethod method, CompiledMethod cm, NativeStream os, int level, boolean isBootstrap) { return createBytecodeVisitor(method, cm, os, level, isBootstrap); }
[ "MethodVisitor create(MutationContext context, MethodInfo methodInfo, MethodVisitor methodVisitor, ClassByteArraySource byteSource);", "static /* synthetic */ void m81-java_util_stream_Node_lambda$4(java.lang.Object r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode:...
{ "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.navigation_drawer, 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" ] ] } }
TODO Autogenerated method stub
public static void main(String[] args) { int arr[] = { 45, 25, 15, 10, 20, 30, 65, 55, 50, 60, 75, 80 }; binarytree bst = new binarytree(); Node root = null; // build tree by repeated insertions for( int i = 0; i < arr.length; i++ ) root = bst.insertTree( root, arr[i]); Node root2 = root; // copy BST int key = 66; No...
[ "@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" ] ] } }
returning our layout file change R.layout.yourlayoutfilename for each of your fragments
@Override public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) { View v = inflater.inflate(R.layout.fragment_home, container, false); //Back pressed Logic for fragment v.setFocusableInTouchMode(true); v.requestFocus(); ...
[ "@Override\n protected int setLayoutID() {\n return R.layout.fragment_my;\n }", "@Override\n\tprotected int setLayoutResouceId() {\n\t\treturn R.layout.fragment_main_my;\n\t}", "protected int getLayoutFragment() {\n return R.layout.fragment_er;\n }", "@Override\n\tprotected int getLayou...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ WARNING Removed try catching itself possible behaviour change.
@Override public void addMappingLoaderFuture(Class<? extends Protocol> protocolClass, Class<? extends Protocol> dependsOn, Runnable runnable) { CompletionStage future = ((CompletableFuture)this.getMappingLoaderFuture(dependsOn).whenCompleteAsync((v, throwable) -> runnable.run(), (Executor)this.mappingLoader...
[ "default boolean isTryCatchBlock(){return false;}", "private static void exceptionCausingCode() {\n }", "public void test() {\n //2:\n try {\n SomeObject so = new SomeObject();\n so.get(1);\n } catch (SomeException se) {\n System.out.println(\"Fix it!\");\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Construct a geometric object with color and filled value
protected GeometricObject21(String color, boolean filled) { dateCreated = new java.util.Date(); this.color = color; this.filled = filled; }
[ "public Exercise_13_05_GeometricObject(String color, boolean filled) {\n\t\tdateCreated = new Date();\n\t\tthis.color = color;\n\t\tthis.filled = filled;\n\t}", "public Shape(Color c) {\n color = c;\n }", "public Shape(){\n width = randomRange(10, 30);\n height = width;\n x = (randomRange(0, 400 - ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method corresponds to the database table t_mgm_supplier_base_info
public Criteria andLegalRepresentativeFaxGreaterThanColumn(TMgmSupplierBaseInfo.Column column) { addCriterion(new StringBuilder("legal_representative_fax > ").append(column.getEscapedColumnName()).toString()); return (Criteria) this; }
[ "public String getBaseTable() {\n/* 62 */ return this.baseTable;\n/* */ }", "private ColumnInfo doctorColumnInfo(ColumnInfo base) {\n ValueInfo starInfo = (ValueInfo) colMap.get(base.getName());\n if (starInfo == null) {\n return base;\n }...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Removes the currently registered methodInvocationListener, even if the one passed as a parameter is distinct.
public void removeMethodInvocationListener(MethodInvocationListener methodInvocationListener);
[ "void unregister(Object listener) {\n if (listener instanceof Subscriber) {\n Subscriber subscriber = (Subscriber) listener;\n CopyOnWriteArraySet<Subscriber> currentSubscribers = subscribers.get(subscriber.registryKey);\n if (currentSubscribers != null) {\n cu...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
.irismod.oracle.Feed feed = 1;
boolean hasFeed();
[ "com.adsizzler.mangolaa.commons.protobuff.OpenRtb.FeedType getFeed();", "public interface VideoAM extends ApplicationModule {\n void initInfo4View(oracle.jbo.domain.Number docId);\n}", "public void setDataFeed( String dataFeed )\n {\n this.dataFeed = dataFeed;\n }", "public FunctionFeed() {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
deletes the relationship between recipe and ingredient then verifies the ingredient has no other relationships
public void deleteRecipeIngredients(int recipeId){ String[] columns = { ContentContract.RECIPE_ID, ContentContract.INGREDIENT_ID }; String whereClause = ContentContract.RECIPE_ID + "= ?"; String whereClause2 = ContentContract.INGREDIENT_ID + "= ?"; ...
[ "@Override\r\n\tpublic void deleteRecipe(Recipe recipe) {\n\r\n\t}", "@Test\r\n\tpublic void testDeleteRecipe() {\r\n\t\tassertNull(coffeeMaker.getRecipes()[0]);\r\n\t\tcoffeeMaker.addRecipe(recipe1);\r\n\t\tassertEquals(recipe1, coffeeMaker.getRecipes()[0]);\r\n\t\tcoffeeMaker.deleteRecipe(0);\r\n\t\tassertNull(...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Release resources used by the object. Unlike close(), finish() does not make the table immutable. However, if a user already adds some meta data into the CG, then finish() would close the column group.
public void finish() { if (!finished) { finished = true; } }
[ "public void finalize()\r\n\t{\r\n\t\tif ( db.isOpen() )\r\n\t\t\tdb.close();\r\n\t}", "public void close() throws IOException {\n\t\trows.seek(4 * (numOtherFields + 1));\r\n\t\trows.writeLong(free);\r\n\t\ttree.close();\r\n\t}", "protected void finalize() {\n\n db.close();\n\n }", "protected void f...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Auto generated method signature
public void create( co.com.coomeva.profile.ws.client.CaasStub.Create create5 ) throws java.rmi.RemoteException ,co.com.coomeva.profile.ws.client.ExceptionException { org.apache.axis2.cont...
[ "default String getSignature() {\n StringBuffer sb = new StringBuffer();\n sb.append(getName());\n sb.append(\"(\");\n for (int i = 0; i < getNumberOfParams(); i++) {\n if (i != 0) {\n sb.append(\", \");\n }\n sb.append(getParam(i).describe...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ WARNING void declaration
public boolean hasTimestamp() { void var1_5; int bl2 = this.bitField0_; int n10 = 4; int n11 = bl2 & n10; if (n11 == n10) { boolean bl3 = true; } else { boolean bl4 = false; } return (boolean)var1_5; }
[ "protected void method_5557() {}", "public void mo28221a() {\n }", "public static void Q22()\r\n\t{\r\n\t}", "@Override\r\n public void publicando() {\n }", "public abstract void mo30461b();", "protected abstract void mo3493a();", "public abstract void mo30462c();", "public void nododoble...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test the setisExtinct function works as expected.
@Test public void testsetisExtinct() { test.setisExtinct(true); assertTrue("Is extinct parameters are not similar.", test.getisExtinct()); }
[ "@Test\n public void addPetAgesToExistingSet()\n {\n MutableIntSet petAges = IntSets.mutable.with(5);\n Assert.assertEquals(IntSets.mutable.with(1, 2, 3, 4, 5), petAges);\n }", "@Test\n void customSetSuccess() {\n Set<String> customSet = new Set<String>() {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ Bind de los controles
private void bindForm(){ txtNombre = (EditText) findViewById(R.id.txtNombre); txtApellido = (EditText) findViewById(R.id.txtApellido); txtTelefono = (EditText) findViewById(R.id.txtTelefono); txtEmail = (EditText) findViewById(R.id.txtEmail); txtDireccion = (EditText) findViewByI...
[ "@Override\n\t\tprotected void bind(){\n\t\t\t\n\t\t}", "private void bindData() {\n\t\t\n\t}", "public void Bind() {\n\t\t\n\t}", "public void inicializa_controles() {\n bloquea_campos();\n bloquea_botones();\n }", "private void bindView() {\n\t\tsetSwitchState(tvCheckConnection, settingBe...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Accept an visitor instance to allow the visitor to do some operations. Refer to visitor design pattern to get a better understanding.
@Override public void accept(ElementVisitor visitor) { if (visitor instanceof DefaultElementVisitor) { DefaultElementVisitor defaultVisitor = (DefaultElementVisitor) visitor; defaultVisitor.visit(this); } else { visitor.visit(this); } }
[ "public void accept(VisitorInterface visitor);", "@Override\n\tpublic abstract void accept(Visitor visitor);", "abstract public void visit(Visitor visitor);", "@Override\r\n\tpublic void aceita(Visitor visitor) {\n\t\t\r\n\t}", "public abstract void visit(Visitor v);", "@Override\n public void accept(V...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
We arrive here when we're out of numbers to call
public void onPostResume() { super.onPostResume(); Log.d(TAG, "onPostResume called"); if (numberList.size() == 0) { // Can make things invisible here, we're just going to show a long toast callBtn.setText("Finished!"); Toast.makeText(MainActivity.this, "FINI...
[ "private static void excliurNum() {\n\t\t\n\t}", "static double process() {\n if (freePlace - lastProcessed > 1) {\n lastProcessed++;\n return container[lastProcessed];\n } else\n return -1.0; // code for impossible to process\n }", "private void checkNumberCoun...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
here the image for the planet will be drawn on the screen in the said position
public void render(GameContainer arg0, Graphics arg1) throws SlickException { arg1.drawImage(planetimage,position.x,position.y); }
[ "public void draw(){\n\t\t/*draw the Planet's img at the Planet's position*/\n\t\t StdDraw.picture(xxPos, yyPos, imgFileName);\n\n\t\t /* Shows the drawing to the screen, and turn off the pause mode*/\t\n\t\t //StdDraw.show();\n\t}", "private void planetsDemo() {\n Image sun = new Image();\n Image m...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates a new blockingstyle stub that supports unary and streaming output calls on the service
public static InstanceGroupServiceBlockingStub newBlockingStub( io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory<InstanceGroupServiceBlockingStub> factory = new io.grpc.stub.AbstractStub.StubFactory<InstanceGroupServiceBlockingStub>() { @java.lang.Override public Instance...
[ "private ExampleGrpc.ExampleStub createAsyncStub() {\n ExampleGrpc.ExampleStub stub = ExampleGrpc.newStub(channel)\n .withMaxInboundMessageSize(MAX_INBOUND_MESSAGE_SIZE)\n .withMaxOutboundMessageSize(MAX_OUTBOUND_MESSAGE_SIZE);\n if (callCredentials != null) {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Created by yiuhet on 2017/6/3.
public interface DoubanMovieSubjectModel { void loadSearch(String id, OnDoubanMovieSubjectListener listener); }
[ "@Override\n public void extornar() {\n \n }", "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "private static void EX5() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n public int utilite() {\n ret...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Alters the displayed connection quality.
public void setConnectionQuality(int quality) { // make sure we don't go over our bounds. if (quality >= _connectionQualityMeterIcons.length) quality = _connectionQualityMeterIcons.length - 1; _connectionQualityMeter.setIcon(_connectionQualityMeterIcons[quality]); String st...
[ "void setQualityOverride(Long quality);", "void increaseQuality();", "void setQuality(int amount);", "public void setOriginalQualityLevel(float newQL) {}", "public void updateQuality() {\t\t\t\t\n\t\tfor (int i=0; i<getIncrementFactor(); i++) {\n\t\t\tif(quality > Constants.MIN_QUALITY_ITEM) {\n\t\t\t\tqual...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Make post reguest to server using aka ks_naf and encrypt content. Return server answer.
private static String runakaEncrypt( String url, String proxy, String Ks_naf, String btid) throws Exception { String Servuvastaus = ""; coaptoteutus coap = new coaptoteutus(); String[] args = new String[3]; String osoiten = proxy+url; ...
[ "@ResponseBody\n\t@RequestMapping(value = \"/\", produces = \"application/json;charset=UTF-8\", method = RequestMethod.POST)\n\tpublic String broadcastPublicKeys(HttpServletRequest httpServletRequest) {\n\t\tint seed = Integer.parseInt(httpServletRequest.getParameter(\"seed\"));\n\t\tString message = httpServletReq...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Create an updated entity for this test. This is a static method, as tests for other entities might also need it, if they test an entity which requires the current entity.
public static RiskRating createUpdatedEntity(EntityManager em) { RiskRating riskRating = new RiskRating() .source(UPDATED_SOURCE) .impact(UPDATED_IMPACT) .likelihood(UPDATED_LIKELIHOOD) .comments(UPDATED_COMMENTS); // Add required entity Risk risk;...
[ "@Test\n\tpublic void testCreationOfEntityInsideTransactionViaUpdate() {\n\n\t\tDemoEntity out = sfy.transact(5, new Work<DemoEntity>() {\n\t\t\t@Override\n\t\t\tpublic DemoEntity run() {\n\n\t\t\t\tDemoEntity demoEntity = sfy.get(DemoEntity.class).key(\"1\").now();\n\t\t\t\tif (demoEntity == null) {\n\t\t\t\t\tdem...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
optional .com.kedacom.ops.flink.etl.proto.DssNetAddr DstAddr = 2;
public boolean hasDstAddr() { return ((bitField0_ & 0x00000002) == 0x00000002); }
[ "public Ip4Address tunDstAddr() {\n return tunDestAddr;\n }", "static void Z41_ssN0_dddd_addr(void)\n{\n\tGET_DST(OP0,NIB3);\n\tGET_SRC(OP0,NIB2);\n\tGET_ADDR(OP1);\n\taddr += RW(src);\n\tRW(dst) = ADDW( RW(dst), RDMEM_W(addr) );\t/* ASG */\n}", "static void Z56_0000_dddd_addr(void)\n{\n\tGET_DST(OP0,...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
required string userName = 1;
boolean hasUserName();
[ "public void setUserName(String user);", "public void setUserName(String name);", "public void setUsername(String str) {\n\tthis.username=str;\n}", "public void passUsername(String user);", "public String getUserName() { return userName; }", "public String getUser_name() { return user_name; }", "p...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns true if field guaranteeType is set (has been assigned a value) and false otherwise
public boolean isSetGuaranteeType() { return this.guaranteeType != null; }
[ "public boolean isSetType()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(TYPE$14) != 0;\r\n }\r\n }", "boolean hasDealType();", "public boolean isSetType()\n {\n synchronized (monitor())\n {...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Save VideoInfoEntity Save CoverInfoEntity or LipSyncInfoEntity Increase num_cover or num_lipsync
public boolean savePostToDb(Post post) { System.out.println("Before save"); boolean saveSuccess = false; UserInfoEntity userEntity = uploadRepo.getUserEntity(post.getAccountId()); if (userEntity != null) { VideoInfoEntity videoEntity = createVideoEntity(post); in...
[ "@Override\r\n\tpublic void save(AssetVideo assetVideo) {\r\n\t\tAssetRoot assetRoot = assetVideo.getAssetRoot();\r\n\t\t//int[] generatedIds = tvoJdbcGenericDaoImpl.saveParentWithChildAndReturnGeneratedIds(assetRoot, assetVideo);\r\n\t\t//int assetRootGeneratedId = generatedIds[0];\r\n\t\t//int assetVideoGenerated...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Generated by ComplexTypeCodeGenerator.java. Please do not edit.
public interface IDisableFeedTrackingHeader_element { /** * element : disableFeedTracking of type {http://www.w3.org/2001/XMLSchema}boolean * java type: boolean */ public boolean getDisableFeedTracking(); public boolean isDisableFeedTracking(); public void se...
[ "@Override\n\tpublic String getTypeCode() {\n\t\tif (null==this._typeCode) {\n\t\t\tthis._typeCode = this.extractTypeCode();\n\t\t}\n\t\treturn _typeCode;\n\t}", "public Code toCqlCode(com.ibm.fhir.model.type.Coding value);", "public String getTypeCode();", "public static org.omg.CORBA.TypeCode type()\n {\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Construit une liste de Product grace a une requete SQL
private void getProducts(List<Product> products, PreparedStatement pstmt) throws SQLException { ResultSet rs = pstmt.executeQuery(); while (rs.next()) { int id = rs.getInt("id"); String name = rs.getString("name"); double unitPrice = rs.getDouble("unitPrice"); ...
[ "private static List<Produto> getProductList()\n {\n List<Produto> productList = HibernateGenericLibrary.executeHQLQuery(\"FROM Produto\");\n return productList;\n }", "public void listProd(LinkedList codigo,LinkedList nombre,LinkedList fab,LinkedList pre,LinkedList garant,LinkedList desc){\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
does this calculation require special bearing handling (prevent wrapping through 360 degs)
public final boolean isWrappableData() { return false; }
[ "static double normalizeBearing(double angle) {\n\t\twhile (angle > 180)\n\t\t\tangle -= 360;\n\t\twhile (angle < -180)\n\t\t\tangle += 360;\n\t\treturn angle;\n\t}", "private static double getRelativeBearing(double heading, double bearing) {\n\n double relativeBearing = (bearing - heading) % 360;\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Convert Hours to Seconds
public static int convertTimeHoursToSeconds(int hours) { int SECONDS_IN_A_MINUTE = 60; int MINUTES_IN_AN_HOUR = 60; return hours * MINUTES_IN_AN_HOUR * SECONDS_IN_A_MINUTE; }
[ "public int convertHoursToSeconds(int hours) throws IllegalArgumentException {\n if (hours < 0) {\n throw new IllegalArgumentException(String.format(\"invalid hours: (%d)\", hours));\n }\n\n long sec = (long) (hours * 60 * 60);\n if (sec > Integer.MAX_VALUE || sec < 0) {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
test calculateSimilarity if one of the input tokens is null
@Test public void calculateSimilarityTestNull3() { String[] tokens = new String[1]; Tokens t = new Tokens(tokens); tokens = new String[5]; tokens[0] = "dog"; tokens[1] = "cat"; tokens[2] = "cow"; tokens[3] = "dog"; tokens[4] = "dog"; Tokens t1 = new Tokens(tokens); assertEquals(t1.calculateCosine...
[ "abstract public double similarity(TextAnnotation ta1, TextAnnotation ta2);", "public abstract float getUnNormalisedSimilarity(List<String> wordSet1, List<String> wordSet2);", "@Test(expected = IllegalArgumentException.class)\n\tpublic void checkingEmptyLists() {\n\t\tList<Node> list1 = new LinkedList<>();\n\t\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
insert after the point that was most recently added
public void insertInorder(Point p) { Node current = new Node(); Node newFirst = new Node(); current.p = p; if (first == null){ first = current; first.next = first; return; } newFirst = first; while (newFirst.next != first){ newFirst = newFirst.next; } newFirst.next = current; cu...
[ "Position<E> addAfter(Position<E> p, E value);", "private void sortAfterInsertNewElement() {\n\t\tT swap;\n\n\t\tfor (int pos = localTopK.size() - 1; pos > 0\n\t\t\t\t&& localTopK.elementAt(pos).compareTo(localTopK.elementAt(pos - 1)) > 0; pos--) {\n\t\t\tswap = localTopK.elementAt(pos);\n\t\t\tlocalTopK.setEleme...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Remove a URL to the store of URLs. This method additionally updates the Physical Web notification.
@VisibleForTesting public void removeUrl(UrlInfo urlInfo) { Log.d(TAG, "URL lost: %s", urlInfo); recordUpdate(); mNearbyUrls.remove(urlInfo.getUrl()); putCachedNearbyUrls(); // If there are no URLs nearby to display, clear the notification. if (getUrls(PhysicalWeb.is...
[ "public void clearURLs();", "@Override\n public void removeFromServer(String url){\n StringRequest req = new StringRequest(Request.Method.DELETE, url, new Response.Listener<String>() {\n @Override\n public void onResponse(String response) {\n Log.d(\"DELETE\", respon...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ renamed from: a
public void mo6131a() { C2331d.m10111a((Activity) BluetoothEquipmentSettingActivity.this, C2328a.ON_BT_CONNECT_TEST_ERROR, (int) R.id.text, (CharSequence) BluetoothEquipmentSettingActivity.this._context.getString(R.string.msg_cloud_backup_conection_test_fail) + "\n" + BluetoothEq...
[ "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" ] ] } }
/ Design implementation for the results GUI
public final void resultsGUI () { resultsFrame = new JFrame (); resultsFrame.setTitle("Jason Fisher -- Language Database"); resultsFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); resultsFrame.setLocationRelativeTo(null); resultsFrame.setResizable(true); //resu...
[ "public void run() {\n\t\t\t\tint index = viewer.getTable().getSelectionIndex();\n\t\t\t\tlblGroup.setText(srchResults.get(index).groupId);\n\t\t\t\tlblArtifact.setText(srchResults.get(index).artifactId);\n\t\t\t\tlblVersion.setText(srchResults.get(index).version);\n\t\t\t\ttxtBin.setText(srchResults.get(index).has...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Establece la fecha de baja
public void setFechaBaja(Date fechaBaja) { this.fechaBaja = fechaBaja; }
[ "Date getFechaNacimiento();", "private Fecha()\n\t{\n\t\t\n\t\tDateFormat dateFormat = new SimpleDateFormat(\"yyyy/MM/dd HH:mm:ss\");\n\t Date date = new Date();\n\t\tfecha=dateFormat.format(date);\n\t\tDateFormat dateFormat2 = new SimpleDateFormat(\"yyyy/MM/dd\");\n\t\tDate date2 = new Date();\n\t\tymd = date...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Public helper method that ends all runnables when the game has ended
public void endGame(){ handler.removeCallbacksAndMessages(null); }
[ "public void doEndBattleTasks(){\n\t\tplayer.healAllBlobs();\n\t}", "private void endAllThreads() {\n\n\t\tpaddle.exit();\n\t\tfor (Brick brick : bricks) brick.exit();\n\t}", "private void gameEnd() {\n \t\tBoundaryToPlayer.closeScanner();\n \t}", "@Override\n public void endGame() {\n }", "public voi...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ Function to print linked list
void printList() { Node temp = head; while (temp != null) { System.out.print(temp.data + " "); temp = temp.next; } System.out.println(); }
[ "public void print() {\n\t\t// create iterator node\n\t\tListNode temp = head;\n\t\t//System.out.println(\"In order: \");\n\t\t\n\t\t// traverse list printing values\n\t\twhile (temp != null) {\n\t\t\tSystem.out.println(temp.data + \" \");\n\t\t\ttemp = temp.link;\n\t\t}\n\t\tSystem.out.println();\n\t}", "void p...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the attribute attribute.
public AttributeDefinition getAttribute() { return attribute; }
[ "public AbstractAttribute getAttribute() {\n return attribute;\n }", "@OleMethod String GetAttribute(String AttributeName);", "@Override\r\n\tpublic int getAttr() {\n\t\treturn this.attr;\r\n\t}", "public java.lang.String getAttribute(){\n return localAttribute;\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Auto generated getter method
public java.lang.String getStrCTID() { return localStrCTID; }
[ "public MethodDoc getGetter()\r\n {\r\n return m_jvdGetter;\r\n }", "public long getGetter() {\n return getter_;\n }", "public T get() {\n return value;\n }", "public abstract M get();", "@Override\n \tpublic String get() {\n \t\treturn null;\n \t}", "public Object get...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
... has multiple qualifications
private Document makeQualification(String qualification, int year) { Document job = new Document(); job.add(new StringField("qualification", qualification, Field.Store.YES)); job.add(new IntPoint("year", year)); return job; }
[ "@AutoEscape\n\tpublic String getQualifications();", "QualifyingMetadata getQualifyingMetadata();", "boolean isQualifier();", "private void addQualifiers() {\n\t\t\taddQualifier(\"fields\", String.class);\n\t\t\taddQualifier(\"callback\", Integer.class);\n\t\t\taddQualifier(\"filter\", Integer.class);\n\t\t\t...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the last s m a admins in the ordered set where isActive = &63; and radcheckId = &63;.
public SMAAdmins findBySMAAdminsListByRadcheckId_Last(int isActive, long radcheckId, OrderByComparator orderByComparator) throws NoSuchSMAAdminsException, SystemException { SMAAdmins smaAdmins = fetchBySMAAdminsListByRadcheckId_Last(isActive, radcheckId, orderByComparator); if (smaAdmins != null) { retu...
[ "public static List<User> getAllAdmins() {\r\n List<User> admins = new ArrayList<>();\r\n User admin;\r\n try{\r\n Statement s = c.createStatement();\r\n ResultSet rs = s.executeQuery(\"SELECT * FROM USERS WHERE ISADMIN=TRUE\");\r\n Syste...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Called when a view has been clicked.
@Override public void onClick(View v) { switch (v.getId()) { case R.id.button_fast_login: login(); break; case R.id.get_code: getCode(); break; case R.id.bike_mes_agreement: toWebView(); ...
[ "public void ClickView(View view) {\n }", "public void onClick(View view) \n\t\t{\n\t\t}", "@Override\n\tpublic void doClick(View view) {\n\n\t}", "@Override\r\n\t\tprotected void onViewClick(View v) {\n\t\t\t\r\n\t\t}", "@Override\n public void handleClick(final View view) { }", "public void onClic...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Create a refund using a card PAN.
@WebMethod(operationName = "Refund", action = "http://secure-payment-processing.com/Refund") @WebResult(name = "RefundResult", targetNamespace = "http://secure-payment-processing.com/") @RequestWrapper(localName = "Refund", targetNamespace = "http://secure-payment-processing.com/", className = "com.logicgroup...
[ "public CCResponseObject refundCharge(CCRequestObject request) {\r\n\t\tCCResponseObject response = new CCResponseObject();\r\n\r\n\t\tString order_id = request.getCCTransaction().getReceiptId(); \r\n\t\tString txn_number = request.getCCTransaction().getProcessorTransactionId();\r\n\t\tString crypt = CRYPT_VALUE;\r...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public void onAttach(Activity activity) { super.onAttach(activity); callback = (IDisPlayServerByIP) activity; }
[ "@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" ] ] } }
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(); //noinspection SimplifiableIfStatement if (id == R.id.action_settings) { return true; } return super.onOptionsItemSelected(item); }
[ "@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" ] ] } }
Setter method for property errorMsg.
public void setErrorMsg(String errorMsg) { this.errorMsg = errorMsg; }
[ "public void setErrorMsg(String errorMsg) {\n\t\t\tthis.errorMsg = errorMsg;\n\t\t}", "public void setError(String msg);", "public abstract void setError(String message);", "public Builder setErrorMsg(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Ensure that getRoot() works properly on handles only.
@Test public void testGetRoot() throws Exception { final IRodinFile rf = getRodinFile("P/inexistent.test"); final IInternalElement root = rf.getRoot(); final NamedElement child = getNamedElement(root, "inexistent"); final NamedElement grandChild = getNamedElement(child, "inexistent"); assertEquals(root, roo...
[ "protected boolean getShowsRootHandles()\n {\n return tree.getShowsRootHandles();\n }", "AccessTree getRoot() throws UnexpectedException;", "protected Component getRootPane() {\n\t\treturn null;\r\n\t}", "@Override\r\n public Object getRoot ()\r\n {\n return w;\r\n }", "pub...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Clone NQueens environment without any modification.
public NQueens clone() { NQueens queens = new NQueens(size); for (int i = 0; i < size; ++i) { for (int j = 0; j < size; ++j) { // copying values queens.matrix[i][j] = matrix[i][j]; } } return queens; }
[ "BoardInterface clone();", "public Puzzle clone() {\n\t\tSquare[][] newPuzzle = new Square[9][9];\n\t\tfor (int i = 0, j; i < 9; i++) {\n\t\t\tfor (j = 0; j < 9; j++) newPuzzle[i][j] = this.puzzle[i][j].clone();\n\t\t}\n\t\treturn new Puzzle(newPuzzle);\n\t}", "public static void nQueen(int len){\n boole...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
public Element getOwnerElement() { return null; }
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test case number: 95 /Coverage entropy=1.9428530817095115
@Test(timeout = 4000) public void test095() throws Throwable { FileSystemHandling.shouldAllThrowIOExceptions(); StringReader stringReader0 = new StringReader("0O%G"); JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0, (byte)43, (byte)43, 54); StringReader stringReader1 = new ...
[ "@Test(timeout = 4000)\n public void test147() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0, (CostMatrix) null);\n String string0 = ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test the correct persistence of employee addresses.
@Test public void testEmployeeAddress() { for (Employee e: dummyEmployees) { assertTrue(addressRepository.existsById(e.getAddress().getId())); } }
[ "@Rollback(false)\r\n\t@Test\r\n\tpublic void AdAddresses() {\r\n\t\t\r\n\t\tAdUsers adUsers = adUsersDAO.findAdUsersByPrimaryKey(1);\r\n\t\tassertNotNull(adUsers);\r\n\t\tassertNotNull(adUsers.getUserId());\r\n\r\n\t\t\r\n\t\tAdAddresses instance = new AdAddresses();\r\n\t\tinstance.setActiveStatus(1);\r\n\t\tinst...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ Check for authontication(registered or not)
public Seller authenticateSeller(Seller seller) { String username = seller.getUserName(); String passw = seller.getUserPassword(); Query query = em.createNamedQuery("checkSeller"); query.setParameter("uname", username); query.setParameter("upass", passw); if (...
[ "boolean isAuthRequired();", "@Override\n\tpublic boolean isAuthen() {\n\t\treturn true;\n\t}", "@java.lang.Override\n public boolean hasAuth() {\n return auth_ != null;\n }", "boolean isAuthenticationNeeded();", "boolean hasLoginInfo();", "private void CheckLoggedInOrNot()\n {\n Call...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
The result for the campaign draft mutate. .google.ads.googleads.v1.services.MutateCampaignDraftResult campaign_draft_result = 24;
com.google.ads.googleads.v1.services.MutateCampaignDraftResult getCampaignDraftResult();
[ "com.google.ads.googleads.v6.services.MutateCampaignResult getCampaignResult();", "public Builder mergeCampaignDraft(com.google.ads.googleads.v13.resources.CampaignDraft value) {\n if (campaignDraftBuilder_ == null) {\n if (((bitField1_ & 0x00100000) != 0) &&\n campaignDraft_ != null &&\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Initialize the contents of the frame.
private void initialize() { frame = new JFrame(); frame.setBackground(Color.WHITE); frame.setAlwaysOnTop(true); frame.getContentPane().setBackground(Color.LIGHT_GRAY); frame.getContentPane().setLayout(null); JLabel company_name = new JLabel("ABC INSTITUTE TIME TABLE MANAGEMNT SYSTEM"); company_...
[ "public void initializeFrame();", "private void initialize() {\n\t\tsetFrame();\n\t\tsetheader();\n\t\tsetList();\n\t}", "public MainFrame() {\n\t\tsuper();\n\t\tinitialize();\n\t}", "public frame() {\n initComponents();\n read_init_config();\n }", "private void initialize() {\n\t\tinitData...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Inicializa los arboles de nombres, profesion y promedio, almacenando los indices y los datos a ordenar
public boolean generarArboles() { for (int i = 0; i < egresados.length; i++) { arbolNombres.insertar(i, egresados[i].getNombre().toLowerCase()); } for (int i = 0; i < egresados.length; i++) { arbolProfesion.insertar(i, egresados[i].getProfesion()); } for ...
[ "@Override\n\tpublic void InicializarCola() {\n\t\tindice = 0;\n\t\telementos = new int [100];\n\t\tprioridades = new int [100];\n\n\t\t\n\t}", "public static void inicializar() {\r\n\r\n\t\t// cantidad de secciones\r\n\t\tint secciones = Globals.SECCIONES.length;\r\n\r\n\t\tmarcas = new InformacionDeImagen[TAMAÑ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
this test demonstrates how to return values based on the input
@Test public void testReturnValueDependentOnMethodParameter() { final String MOCKITO = "mockito"; final String ESPRESSO = "espresso"; final int MOCKITO_INT = 1; final int ESPRESSO_INT = 2; Comparable comparable = mock(Comparable.class); when(comparable.compareTo(MOCKI...
[ "@Test\n public void shouldReturnGivenValues() {\n assertThat(sut.getFound()).isTrue();\n assertThat(sut.getNode()).isEqualTo(testNode);\n assertThat(sut.getValue()).isEqualTo(4711);\n }", "@Test\n public final void valueRoutine2() {\n Map<String, String> s = this.createFromAr...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
repeated .gazebo.msgs.Link link = 6;
int getLinkCount();
[ "org.kitesdk.morphline.protobuf.Protos.Complex.Link getLink(int index);", "protobuf.clazz.foundation.FoundationProto.LinkPageOrBuilder getLinkPageOrBuilder();", "public String getlink() {\r\n\treturn link;\r\n}", "public static void main(String[] args_)\n {\n String username = \"menty44\";\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
this.estimate = this.basePrice + this.getFees() this.getDiscount()
public float getEstimate() { return estimate; }
[ "public void Totalcost()\n {\n net_price=taxRate+price;\n \n }", "public double estimation() {\n\t double rate=0;\n\t return price*(rate/100);\n }", "public abstract double calculateDiscount();", "public abstract double CalculateFee();", "@Override\n\tpublic double apply() {\n\t\treturn...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
=========================== METODO BUSCAR UM EMPREGADO
public Empregado buscarEmpregado() { do { System.out.println("Digite CPF do empregado: "); cpf = lerLong(); } while (cpf < 0); for (int i = 0; i < banco.size(); i++) { Empregado emp = banco.get(i); if (emp.getCpf() == cpf) { return emp; } } return null; }
[ "Empleado (String nombre, int salario, Direccion direccion) {\n\t\t\n\t\tthis.nombre=nombre;\n\t\tthis.salario=salario;\n\t\tthis.direccion=direccion;\n\t\tnumEmpCont++;\n\t\tnumEmpleado=numEmpCont;\n\t\t\n\t}", "@Override\r\n public String toString()\r\n {\r\n return NombreEmpresa;\r\n }", "public Empl...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
STATIC STUFF BELOW Returns a given double.
public final static double self( double x ){ return x; }
[ "public abstract double doubleValue() {\n\t}", "double getVarDouble();", "public double asDouble();", "double doubleTheValue(double input) {\n\treturn input*2;\n}", "public Double asDouble();", "public double get_double() throws TypeMismatch, InvalidValue {\n/* 514 */ if (this.status == 2) {\n/* 515 *...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
////////////////////////methods///////////////////////////// A factory method that parses a String accoring to the BNF definition for . The BNF definition is: := | | "(" ")". Returns a Factor object that is the root of an abstract syntax (sub)tree resulting from the parse, or null if the String cannot be parsed as a .
public static Factor parse(String s) { if(s == null) return null; s = s.trim(); // remove white spaces if(s.length() == 0) return null; // first parse as Const ASTNode result = Const.parse(s); if(result != null) { return new Factor(result); } else { ...
[ "static Formula parseString(StringHolder s){\n\t\ts.str = s.str.trim();\n\t\tif(!s.str.startsWith(\"(\")){ // variable\n\t\t\tVariable v = new Variable();\n\t\t\tint i = s.str.indexOf(' ');\n\t\t\tint j = s.str.indexOf(')');\n\t\t\tif(i < 0)\n\t\t\t\ti += 1000005;\n\t\t\tif(j < 0)\n\t\t\t\tj += 1000005;\n\t\t\tif(j...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Scroll the bookmarks list such that bookmarkId is shown in the view, and highlight it.
void highlightBookmark(BookmarkId bookmarkId);
[ "void nextBookmark(int dir) {\n int currentLine = currentLineNum();\n if(currentLine+dir < linesInFile && currentLine+dir >= 0)\n currentLine+=dir;\n\n if(DIRECTION_FORWARD==dir) {\n for(int i = currentLine+1; i<linesInFile; i++) {\n if(lineFlags.isSet(i,LIN...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the attestation signer which will be used to sign a policy set request.
public AttestationSigningKey getAttestationSigner() { return this.signer; }
[ "public String getSigner() {\n\t\treturn signer;\n\t}", "public ch.epfl.dedis.proto.DarcProto.Identity getSigner() {\n if (signerBuilder_ == null) {\n return signer_ == null ? ch.epfl.dedis.proto.DarcProto.Identity.getDefaultInstance() : signer_;\n } else {\n return signerBuilder_....
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Add an edge to this graph, associating it with the nodes it connects. If the graph passed to this scene's constructor does not implement ObservableGraph, you will need to manually call sync() to update the scene from the graph (or use GraphMutator in a trywithresources loop).
public final void addGraphEdge(E edge, N source, N target) { graph.addEdge(edge, source, target); }
[ "public void add(Edge edge) {\n\t\tedges.add(edge);\n\t}", "@Override\n public void addEdge(Edge<T> edge) {\n adjacencyList.putIfAbsent(edge.getFrom(), new ArrayList<>());\n adjacencyList.putIfAbsent(edge.getTo(), new ArrayList<>());\n\n EdgeNode<T> edgeNode = new EdgeNode<T>();\n e...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get the audio object
public SoundData getSound() { return sound; }
[ "public AudioManager getAudioManager() {\n return this.audioManager;\n }", "public File getAudio() {\n return file;\n }", "public static AudioManager getInstance() {\r\n return mAudioManager;\r\n }", "public int getAudioResourceId() {return mAudioResourceId;}", "public Sound ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
User clicked OK button
public void onClick(DialogInterface dialog, int id) { }
[ "protected void okPressed() {\r\n\r\n name = wFrameworkCombo.getItem(wFrameworkCombo.getSelectionIndex());\r\n importRuntimeLibraries = wImportRuntimeButton.getSelection();\r\n importBundles = wImportBundleButton.getSelection();\r\n onlyUserDefined = wImportUserButton.getSelection();\r\n\r\n // Set r...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method sets the value of the database column publicips.creator_id
public void setCreator_id(Integer creator_id) { this.creator_id = creator_id; }
[ "public void setCreatorId(BigDecimal creatorId) {\n this.creatorId = creatorId;\n }", "public void setCreator(Integer creator) {\r\n\t\tthis.creator = creator;\r\n\t}", "public void setCreator(Long creator) {\r\n\t\tthis.creator = creator;\r\n\t}", "public int getCreatorID() {\n return creator...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
sets minute value of this StopWatch
public void setMinutes(int minutes) { if (minutes >= 0) { this.minutes = minutes; } else { throw new IllegalArgumentException("minutes value must be >= 0"); } }
[ "void setMinute(int minute);", "public void setMinute(int v) \n {\n \n if (this.minute != v)\n {\n this.minute = v;\n setModified(true);\n }\n \n \n }", "public void setMinute(int minute) {\r\n this.minute = minute;\r\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public boolean updatePasswordByNickName(String newPassword, String nickName) { return iloginUserDao.updatePasswordByNickName(newPassword, nickName); }
[ "@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" ] ] } }
MetaSpace Get MetaSpaces in a MetaSector.
public List<IMetaSpace> getMetaSpaces(String metaSectorId) throws ClientException;
[ "public Collection<Space> getSpaces()\r\n {\r\n\r\n return spaces;\r\n }", "public Space get_Mystudio() {\n\t\treturn spaceMapper.get_Mystudio();\n\t}", "public abstract Collection<String> listTableSpaces() throws MetadataStorageManagerException;", "public ArrayList<Space> getSpaces() {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates a job using the source and sink provided.
public RideCleansingSolution(SourceFunction<TaxiRide> source, SinkFunction<TaxiRide> sink) { this.source = source; this.sink = sink; }
[ "void create(PortabilityJob job);", "public static TransferJob createAwsTransferJob() throws InstantiationException,\n IllegalAccessException, IOException {\n Date date = TransferJobUtils.createDate(START_DATE);\n TimeOfDay time = TransferJobUtils.createTimeOfDay(START_TIME);\n TransferJob transferJob...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }