query
stringlengths
7
33.1k
document
stringlengths
7
335k
metadata
dict
negatives
listlengths
3
101
negative_scores
listlengths
3
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
TODO Autogenerated method stub TODO Autogenerated method stub
@Override public void onClick(View v) { // TODO Auto-generated method stub itemClickListener.Callback(itemInfo); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void annadir() ...
[ "0.6920791", "0.68173707", "0.6607644", "0.6577876", "0.65306735", "0.6521787", "0.6462614", "0.64545435", "0.6421128", "0.6421128", "0.6415552", "0.6409599", "0.6408078", "0.6375725", "0.6349249", "0.6349047", "0.63432825", "0.6289923", "0.62812114", "0.62387294", "0.6210831...
0.0
-1
whatever I do to calculate the circle area
@Override public double calculateArea() { double area = 0; return area; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double getCircleArea();", "public double area() { return Math.PI * radius * radius; }", "public double calculateArea()\n {\n return (Math.PI * radius) * (Math.PI * radius);\n }", "public double calculateArea() {\r\n return PI * radius * radius;\r\n }", "public double findArea() ...
[ "0.87141806", "0.8320489", "0.8319632", "0.8257429", "0.8256862", "0.8193466", "0.81231546", "0.8099697", "0.8009283", "0.795904", "0.79518545", "0.7906243", "0.7905155", "0.78958744", "0.78824365", "0.7871345", "0.7853257", "0.7801931", "0.7801931", "0.77588105", "0.7749721"...
0.6947063
83
Create contents of the shell.
protected void createContents() { setText("Muokkaa asiakastietoja"); setSize(800, 550); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void createContents() {\r\n\t\tshell = new Shell();\r\n\t\tshell.setSize(450, 300);\r\n\t\tshell.setText(\"SWT Application\");\r\n\r\n\t}", "private void createContents() {\r\n\t\tshell = new Shell(getParent(), SWT.TITLE);\r\n\r\n\t\tgetParent().setEnabled(false);\r\n\r\n\t\tshell.addShellListener(new ...
[ "0.728651", "0.69232035", "0.673589", "0.664354", "0.66357344", "0.653829", "0.65372425", "0.6447823", "0.6435758", "0.64308214", "0.6393441", "0.6372602", "0.63481575", "0.6334303", "0.6303444", "0.6293957", "0.62853587", "0.62844884", "0.6266547", "0.62443006", "0.6225034",...
0.54041266
70
Disable the check that prevents subclassing of SWT components
@Override protected void checkSubclass() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\npublic boolean delegateSelectionToWidgetShell() {\n\treturn false;\n}", "@Override\r\n\tprotected void checkSubclass() {\n\t}", "@Override\r\n\tprotected void checkSubclass() {\n\t}", "@Override\r\n\tprotected void checkSubclass() {\n\t}", "@Override\r\n\tprotected void checkSubclass() {\n\t}", ...
[ "0.65418386", "0.6424288", "0.6424288", "0.6424288", "0.6424288", "0.6424288", "0.6424288", "0.6424288", "0.6424288", "0.6424288", "0.6424288", "0.6424288", "0.6424288", "0.6424288", "0.6424288", "0.6386372", "0.6385444", "0.63815945", "0.63815945", "0.63815945", "0.6372198",...
0.6381638
33
Test of convertToWords method, of class WoordenController.
@Test public void testConvertToWords() { System.out.println("convertToWords"); WoordenController instance = new WoordenController(); String[] expResult = { "een", "twee", "drie", "vier", "hoedje", "van", "hoedje", "van", "een", "twee", "drie", "vier", "hoe...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test \n\tpublic void generateWordsTest() {\n\t\tHomePage homePage = new HomePage(driver);\n\t\thomePage.OpenPage();\n\n\t\t// select 'words' radio button \n\t\thomePage.selectContentType(\"words\");\n\n\t\t// enter '100' in the count field \n\t\thomePage.inputCount(\"1000\");\n\n\t\t// click \"Generate Lorum Ipsu...
[ "0.6488201", "0.6475178", "0.6226965", "0.6216077", "0.61997336", "0.61759675", "0.61486846", "0.61356735", "0.61349416", "0.60931903", "0.60741633", "0.6044978", "0.60448617", "0.60248905", "0.60089624", "0.5981732", "0.5965154", "0.58585256", "0.58361506", "0.5816381", "0.5...
0.88537055
0
Test of convertToLines method, of class WoordenController.
@Test public void testConvertToLines() { System.out.println("convertToLines"); WoordenController instance = new WoordenController(); String[] expResult = { "een twee drie vier", "hoedje van hoedje van", "een twee drie vier", "hoedje van papier" }; Stri...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testConvertToWords()\n {\n System.out.println(\"convertToWords\");\n WoordenController instance = new WoordenController();\n String[] expResult =\n {\n \"een\", \"twee\", \"drie\", \"vier\", \"hoedje\", \"van\", \"hoedje\", \"van\", \"een\", \"twee\"...
[ "0.5666391", "0.56612873", "0.56341684", "0.53185415", "0.53109765", "0.5284734", "0.52646846", "0.5220729", "0.5203854", "0.5197542", "0.51958054", "0.5182841", "0.5180998", "0.5166635", "0.514953", "0.5147218", "0.51382023", "0.51183647", "0.51028717", "0.5022383", "0.50223...
0.85903716
0
All the tests. In one long function, because starting up the embedded postgres takes so long and fills the log.
@Test public void tests(TestContext context) { async = context.async(); logger.info("Codex mock Test starting"); // Simple GET request to see the module is running and we can talk to it. given() .get("/admin/health") .then() .log().all() .statusCode(200); // Simple GET re...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Before\n public void setupDatabase() {\n graphDb = new TestGraphDatabaseFactory().newImpermanentDatabaseBuilder().newGraphDatabase();\n registerShutdownHook(graphDb);\n \n// server = new WrappingNeoServerBootstrapper((GraphDatabaseAPI) graphDb);\n// server.start();\n \n ProcessEngineConfigur...
[ "0.6944997", "0.68385077", "0.67136055", "0.66758496", "0.66418225", "0.6593807", "0.65738606", "0.65477884", "0.6514857", "0.6492825", "0.6450315", "0.64384484", "0.6427356", "0.640859", "0.6361749", "0.6353424", "0.63472885", "0.63179886", "0.6308729", "0.6290573", "0.62748...
0.0
-1
SimpleDateFormat format = new SimpleDateFormat("yyyyyMMdd");
public int getgNum() { return gNum; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static String getYYYYMMDD()\r\n/* 65: */ {\r\n/* 66: 81 */ String nowTime = \"\";\r\n/* 67: 82 */ Date now = new Date();\r\n/* 68: 83 */ SimpleDateFormat formatter = new SimpleDateFormat(\"yyyyMMdd\");\r\n/* 69: 84 */ nowTime = formatter.format(now);\r\n/* 70: 85 */ return now...
[ "0.69620323", "0.65620595", "0.6333391", "0.6217897", "0.61983466", "0.6134493", "0.6126157", "0.60144097", "0.59611154", "0.5934498", "0.58846515", "0.58841723", "0.5879338", "0.5866459", "0.585316", "0.584116", "0.58175814", "0.5802563", "0.57678986", "0.57636905", "0.57467...
0.0
-1
/ renamed from: com.fyber.inneractive.sdk.b.b$b
public interface C7654b { /* renamed from: a */ C7904c mo24084a(); /* renamed from: b */ C7716a mo24085b(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void mo2508a(bxb bxb);", "@Override\n public void b() {\n }", "@Override\n\tpublic void b() {\n\n\t}", "@Override\n\tpublic void bbb() {\n\t\t\n\t}", "public void b() {\r\n }", "@Override\n\tpublic void b2() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "pub...
[ "0.6955574", "0.6877544", "0.6872301", "0.67911994", "0.66005635", "0.6533814", "0.647443", "0.6468631", "0.6468631", "0.6386671", "0.63595915", "0.6342565", "0.63006973", "0.6269729", "0.6241059", "0.6232818", "0.6232735", "0.6200647", "0.6191616", "0.61191005", "0.6118336",...
0.0
-1
/ renamed from: a
C7904c mo24084a();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }", "public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "interface C33292a {\n /* renamed fr...
[ "0.62497115", "0.6242887", "0.61394435", "0.61176854", "0.6114027", "0.60893", "0.6046901", "0.6024682", "0.60201293", "0.5975212", "0.59482527", "0.59121317", "0.5883635", "0.587841", "0.58703005", "0.5868436", "0.5864884", "0.5857492", "0.58306104", "0.5827752", "0.58272064...
0.0
-1
/ renamed from: b
C7716a mo24085b();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void mo2508a(bxb bxb);", "@Override\n public void func_104112_b() {\n \n }", "@Override\n public void b() {\n }", "public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }", "@Override\n\tpublic void b2() {\n\t\t\n\t}", "v...
[ "0.64558864", "0.6283203", "0.6252635", "0.6250949", "0.6244743", "0.6216273", "0.6194491", "0.6193556", "0.61641675", "0.6140157", "0.60993093", "0.60974354", "0.6077849", "0.6001867", "0.5997364", "0.59737104", "0.59737104", "0.5905105", "0.5904295", "0.58908087", "0.588663...
0.0
-1
/ renamed from: a
public final void mo24082a(C7903b bVar, C7654b bVar2) { if (this.f15184a.containsKey(bVar)) { StringBuilder sb = new StringBuilder("Handler already exists for ad type "); sb.append(bVar); sb.append("! : "); sb.append(this.f15184a.get(bVar)); IAlog.m180...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }", "public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "interface C33292a {\n /* renamed fr...
[ "0.62497115", "0.6242887", "0.61394435", "0.61176854", "0.6114027", "0.60893", "0.6046901", "0.6024682", "0.60201293", "0.5975212", "0.59482527", "0.59121317", "0.5883635", "0.587841", "0.58703005", "0.5868436", "0.5864884", "0.5857492", "0.58306104", "0.5827752", "0.58272064...
0.0
-1
/ renamed from: a
public final boolean mo24083a(C7903b bVar) { if (this.f15184a.containsKey(bVar)) { return true; } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }", "public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "interface C33292a {\n /* renamed fr...
[ "0.62497115", "0.6242887", "0.61394435", "0.61176854", "0.6114027", "0.60893", "0.6046901", "0.6024682", "0.60201293", "0.5975212", "0.59482527", "0.59121317", "0.5883635", "0.587841", "0.58703005", "0.5868436", "0.5864884", "0.5857492", "0.58306104", "0.5827752", "0.58272064...
0.0
-1
TODO Autogenerated method stub
@Override public FREObject call(final FREContext context, FREObject[] arg1) { _context = context; FREObject result = null; // TODO Auto-generated method stub //-------------------------------- int serverID = 0; String serverName = null; try { serverID = arg1[0].getAsInt(); serverName = arg1[1].g...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
Ritorna il DataFlavor per la classe Prodotto.
public static final DataFlavor getDataFlavor () { try { return new DataFlavor (DataFlavor.javaJVMLocalObjectMimeType + ";class=\""+Prodotto.class.getName() + "\""); } catch (ClassNotFoundException e) { e.printStackTrace(); } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n public DataFlavor getDataFlavor() {\r\n return dataFlavor;\r\n }", "public boolean isDataFlavorSupported(DataFlavor flavor);", "public Object getTransferData(DataFlavor flavor)\n throws UnsupportedFlavorException, IOException\n {\n if (flavor == DataFlavor.imageF...
[ "0.7059497", "0.59150404", "0.5850073", "0.5825505", "0.5793212", "0.5634616", "0.55178946", "0.54905474", "0.5444152", "0.5368185", "0.53603375", "0.5344669", "0.53375137", "0.52726066", "0.52573687", "0.5253364", "0.5245702", "0.52143544", "0.5186351", "0.51785964", "0.5146...
0.75442135
0
Ritorna il nome del prodotto.
public String getNome() { return nome; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getNamePro() {\n return namePro;\n }", "public String getProName() {\n return proName;\n }", "public void setNamePro(String namePro) {\n this.namePro = namePro;\n }", "String getPName();", "String getPresetName();", "@Override\n\t\t\tpublic String toString() {\...
[ "0.7478162", "0.72932166", "0.7206813", "0.6909469", "0.69061685", "0.69045264", "0.6889724", "0.67549556", "0.67447513", "0.66915196", "0.66407454", "0.66334414", "0.6605247", "0.6582084", "0.65751415", "0.65493137", "0.65493137", "0.65493137", "0.65493137", "0.65493137", "0...
0.0
-1
Modifica il nome del prodotto.
public void setNome(String nome) { this.nome = nome; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setNamePro(String namePro) {\n this.namePro = namePro;\n }", "public void setProName(String proName) {\n this.proName = proName == null ? null : proName.trim();\n }", "public String getNamePro() {\n return namePro;\n }", "public String getProName() {\n return ...
[ "0.7825385", "0.7122125", "0.70265985", "0.6815634", "0.67180705", "0.6614094", "0.66063225", "0.6594205", "0.6593047", "0.65417385", "0.6491579", "0.64057577", "0.632836", "0.6312332", "0.6309569", "0.6289722", "0.6238667", "0.6238667", "0.62353534", "0.6205176", "0.62028104...
0.5966472
48
Ritorna la marca del prodotto.
public String getMarca() { return marca; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Modelo(Marca marca) {\n\t\tsetMarca(marca);\n\t}", "public String getMarca() {\n return Marca;\n }", "public String getMarca()\n {\n return marca;\n }", "public void setMarca( String marca ){\n this.marca = marca;\n }", "Marca getMarca() {\n\t\treturn marca;\n\t}", "priva...
[ "0.6937286", "0.6790432", "0.6785349", "0.67761624", "0.6767215", "0.6669069", "0.6609895", "0.65358377", "0.6531834", "0.6511701", "0.6509274", "0.64795333", "0.64647704", "0.6459842", "0.638175", "0.6365128", "0.6158524", "0.6141513", "0.61312664", "0.6117112", "0.6080282",...
0.6665283
6
Modifica la marca del prodotto.
public void setMarca(String marca) { this.marca = marca; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Modelo(Marca marca) {\n\t\tsetMarca(marca);\n\t}", "public void setMarca( String marca ){\n this.marca = marca;\n }", "private void setMarca(Marca marca) {\n\t\tthis.marca = marca;\n\t}", "Marca getMarca() {\n\t\treturn marca;\n\t}", "private void Mueve() {\n\t\tpaleta1.Mueve_paletas();\n\t\tpale...
[ "0.64954734", "0.64016396", "0.6372449", "0.61815983", "0.6119652", "0.6106566", "0.6029829", "0.5986394", "0.59776014", "0.59449905", "0.5934191", "0.5933517", "0.5862454", "0.58331627", "0.5821839", "0.57890165", "0.57831544", "0.57717854", "0.5689248", "0.56650585", "0.566...
0.6258639
3
Ritorna il codice del prodotto.
public String getCodice() { return codice; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getCodiceFiscale();", "public java.lang.String getCodigo_pcom();", "public abstract java.lang.String getCod_tecnico();", "public String getCODIGO() {\r\n return CODIGO;\r\n }", "@AutoEscape\n\tpublic String getCodProvincia();", "public abstract java.lang.String getCod_dpto();", "@Overr...
[ "0.72104955", "0.71885437", "0.70232016", "0.690569", "0.66911227", "0.6688199", "0.6672582", "0.6635777", "0.66231704", "0.655389", "0.655389", "0.6539298", "0.6504599", "0.6478866", "0.6462427", "0.6431232", "0.6409449", "0.6404263", "0.6400868", "0.6394409", "0.6384252", ...
0.68923366
4
Modifica il codice del prodotto.
public void setCodice(String codice) { this.codice = codice; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setCodigo_pcom(java.lang.String newCodigo_pcom);", "public abstract void setCod_tecnico(java.lang.String newCod_tecnico);", "public java.lang.String getCodigo_pcom();", "public void setCodigo(String codigo) {\n this.codigo = codigo;\n }", "public void setCodProvincia(String codProvinc...
[ "0.6704376", "0.6575962", "0.6568609", "0.64745015", "0.64726925", "0.6428484", "0.64023036", "0.6380395", "0.6304142", "0.62987435", "0.62190443", "0.61882114", "0.6140887", "0.6133613", "0.6108045", "0.60632604", "0.6045311", "0.60411954", "0.6041159", "0.60369664", "0.6033...
0.6501243
3
Modifica la categoria del prodotto.
public void setCategoria(String categoria) { this.categoria = categoria; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void listadoCategorias() {\r\n sessionProyecto.getCategorias().clear();\r\n sessionProyecto.setCategorias(itemService.buscarPorCatalogo(CatalogoEnum.CATALOGOPROYECTO.getTipo()));\r\n }", "public final void readCategoria() {\n cmbCategoria.removeAllItems();\n cmbCategoria.ad...
[ "0.6212091", "0.61260223", "0.608503", "0.6064097", "0.5963888", "0.59389865", "0.5903369", "0.58779913", "0.58521026", "0.58376515", "0.5834768", "0.5792575", "0.5788437", "0.5749611", "0.5748075", "0.5739613", "0.573656", "0.5716868", "0.56728214", "0.5663878", "0.56537724"...
0.60039705
4
Ritorna il prezzo del prodotto.
public float getPrezzo() { return prezzo; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void remplirPrestaraireData() {\n\t}", "public PregledPoruka() {\n preuzmiMape();\n preuzmiPoruke();\n }", "public void primerPunto() {\n\t\tp = new PuntoAltaPrecision(this.xCoord, this.yCoord);\n\t\t// Indicamos la trayectoria por la que va la pelota\n\t\tt = new TrayectoriaRecta(1.7f...
[ "0.6509527", "0.6468683", "0.646517", "0.6383112", "0.6336287", "0.633564", "0.6318126", "0.6296358", "0.6244152", "0.6235288", "0.6218426", "0.6213991", "0.6203856", "0.61997336", "0.618898", "0.6187196", "0.6179568", "0.6168961", "0.6159088", "0.6099377", "0.609895", "0.6...
0.6155852
19
Ritorna l'immagine del prodotto.
public File getImmagine() { return immagine; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Proyectil(){\n disparar=false;\n ubicacion= new Rectangle(0,0,ancho,alto);\n try {\n look = ImageIO.read(new File(\"src/Disparo/disparo.png\"));\n } catch (IOException ex) {\n System.out.println(\"error la imagen del proyectil no se encuentra en la ruta por ...
[ "0.63592076", "0.62594455", "0.6174385", "0.61162764", "0.6091171", "0.5951392", "0.5918219", "0.58905965", "0.5839544", "0.5825314", "0.5729903", "0.5726922", "0.5722481", "0.56777614", "0.5629959", "0.5619806", "0.555809", "0.5557443", "0.55572075", "0.55369544", "0.5528528...
0.0
-1
Modifica l'immagine del prodotto.
public void setImmagine(File immagine) { if(immagine.exists() && !immagine.isDirectory()) { this.immagine = immagine; } else { this.immagine = IMMAGINE_DEFAULT; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void pintarMesa() {\n try {\n mesa = ImageIO.read(new File(\"src/imagenes/Mesa.jpg\")).getScaledInstance(1600, 1300, Image.SCALE_SMOOTH);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public Proyectil(){\n disparar=false;\n ubicacion= new Rectangle(0,0,an...
[ "0.5846005", "0.5766934", "0.566042", "0.56437486", "0.54389524", "0.5420243", "0.54162467", "0.53950465", "0.5371284", "0.53481793", "0.53344226", "0.529476", "0.5285528", "0.52748924", "0.5274615", "0.52370596", "0.52327305", "0.5204383", "0.51859623", "0.5184866", "0.51589...
0.56237125
4
Modifica l'immagine del prodotto.
public void setImmagine(String immagine) { this.setImmagine(new File (immagine)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void pintarMesa() {\n try {\n mesa = ImageIO.read(new File(\"src/imagenes/Mesa.jpg\")).getScaledInstance(1600, 1300, Image.SCALE_SMOOTH);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public Proyectil(){\n disparar=false;\n ubicacion= new Rectangle(0,0,an...
[ "0.5846005", "0.5766934", "0.566042", "0.56437486", "0.56237125", "0.54389524", "0.5420243", "0.54162467", "0.53950465", "0.5371284", "0.53481793", "0.53344226", "0.529476", "0.5285528", "0.52748924", "0.5274615", "0.52370596", "0.52327305", "0.5204383", "0.51859623", "0.5184...
0.5118243
27
Ritorna l'offerta attiva sul prodotto.
public Promozione getOfferta() { return offerta; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void effetto(Giocatore giocatoreAttuale) {\n\t\tgiocatoreAttuale.vaiInPrigione();\n\t\tSystem.out.println(MESSAGGIO_IN_PRIGIONE);\n\t\t\n\t}", "public void setOfferta(Promozione offerta) {\n\t\tthis.offerta = offerta;\n\t}", "public void attrito(){\n yCord[0]+=4;\n yCord[1]+=4...
[ "0.6332524", "0.6109128", "0.6048272", "0.58442336", "0.5643899", "0.56205314", "0.5564042", "0.5505184", "0.5444839", "0.54276687", "0.54001117", "0.5321444", "0.531503", "0.5215475", "0.52117205", "0.52057326", "0.5180701", "0.5163451", "0.5127213", "0.51162887", "0.5111458...
0.62276644
1
Modifica l'offerta attiva sul prodotto.
public void setOfferta(Promozione offerta) { this.offerta = offerta; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void effetto(Giocatore giocatoreAttuale) {\n\t\tgiocatoreAttuale.vaiInPrigione();\n\t\tSystem.out.println(MESSAGGIO_IN_PRIGIONE);\n\t\t\n\t}", "public void attrito(){\n yCord[0]+=4;\n yCord[1]+=4;\n yCord[2]+=4;\n //e riaggiorna i propulsori (che siano attivati o n...
[ "0.59597725", "0.5774974", "0.57145935", "0.56977063", "0.5531924", "0.5443126", "0.5338615", "0.52811575", "0.52600497", "0.5202032", "0.50901175", "0.50879717", "0.507687", "0.5075088", "0.5034696", "0.5009274", "0.5004976", "0.49998644", "0.49893227", "0.4977069", "0.49638...
0.5989159
0
inflates the image and instantiates adapters, recycler views, and sets layout manager
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { // Inflate the layout for this fragment View view = inflater.inflate(R.layout.fragment_selector, container,false); //get lists of structure from singlet...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void setUpListOfImageRecyclerView() {\n try {\n\n content_layout.removeAllViews();\n RecyclerView recyclerView = new RecyclerView(getApplicationContext());\n recyclerView.setLayoutParams(\n new ViewGroup.LayoutParams(\n ...
[ "0.712134", "0.6576358", "0.6553323", "0.6516146", "0.650265", "0.6491492", "0.6381124", "0.63565165", "0.63444793", "0.63253605", "0.6313218", "0.62974155", "0.6295277", "0.6275443", "0.6194087", "0.61651254", "0.61650336", "0.6150277", "0.6068589", "0.604867", "0.604431", ...
0.0
-1
Get the current selected structure, used by other fragments such as maps
public Structure getSelectedStructure() { return selectedStructure; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Structure getStructure() {\n/* 3557 */ return this.structure;\n/* */ }", "public Object getMenuStructure(Map<String, Object> params) {\r\n\t\treturn menuEditor.getMenuStructure(null, params);\r\n\t}", "Object getSelection();", "public IStructuredSelection getSelection() {\n \t\treturn selec...
[ "0.65107673", "0.5580673", "0.55735403", "0.5551443", "0.5520181", "0.55182195", "0.5408696", "0.5332807", "0.5271154", "0.5268059", "0.5240992", "0.52334493", "0.5213906", "0.5196639", "0.51945156", "0.5194219", "0.5158623", "0.51504564", "0.51461625", "0.51430285", "0.51425...
0.7318959
0
check if object is selected or deselected (DOES NOT WORK PERFECTLY)
@Override public void onClick(View view) { if(selectedStructure != null) //checks if object is selected and if prev object is same object { //if object is the same, then deselect the structure if (sel...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isSelected() { \n \treturn selection != null; \n }", "boolean isSelected();", "boolean isSelected();", "boolean isSelected();", "public boolean isSelected();", "public boolean isSelected();", "public abstract boolean isSelected();", "public boolean isSelected() { return selected;...
[ "0.7490998", "0.741729", "0.741729", "0.741729", "0.72810763", "0.72810763", "0.72742856", "0.71198547", "0.7112499", "0.7049765", "0.704343", "0.69633377", "0.69599473", "0.694731", "0.6839329", "0.6838683", "0.68279374", "0.68140936", "0.67848945", "0.677856", "0.67283934",...
0.65828043
24
Rebind image to current structure selected, set image resource and description of the image
public void bind(Structure currStructure) { selectedStructure = currStructure; currImage.setImageResource(currStructure.getDrawableId()); imageDesc.setText(currStructure.getLabel()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setImageResource(String imageResource) throws IOException;", "public void changeImage(){\n if(getImage()==storeItemImg) setImage(selected);\n else setImage(storeItemImg);\n }", "private void setImage(){\n if(objects.size() <= 0)\n return;\n\n IImage img = objects....
[ "0.64149404", "0.64126045", "0.6378811", "0.6348571", "0.62911063", "0.6286668", "0.6218662", "0.6175145", "0.6068584", "0.60369205", "0.602627", "0.5986434", "0.5982809", "0.5964477", "0.59493786", "0.59469724", "0.5934769", "0.5930884", "0.59281254", "0.59217507", "0.591927...
0.6260129
6
Retrieve number of items stored in adaptor
@Override public int getItemCount() { return structureList.size(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getItemsCount();", "int getItemsCount();", "int getNumItems();", "public int getItemCount() {\n checkWidget();\n return OS.SendMessage(handle, OS.TCM_GETITEMCOUNT, 0, 0);\n }", "public int size() {\n return numItems;\n }", "public int getItemsCount() {\n return items_.siz...
[ "0.8364061", "0.8364061", "0.8085726", "0.78283757", "0.7779622", "0.7742986", "0.7742986", "0.7717559", "0.7673044", "0.7665677", "0.7665677", "0.7665677", "0.7663535", "0.7658514", "0.7655302", "0.7653197", "0.76447946", "0.7631069", "0.7628006", "0.76025707", "0.76025707",...
0.0
-1
create all keys' guitar strings.
public static void main(String[] args) { for (int i = 0; i < 37; i += 1) { double freq = freqOfKey(i); keyStrings[i] = new synthesizer.GuitarString(freq); } while (true) { /* check if the user has typed a key; if so, process it */ if (StdDraw.has...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String playGuitar(){\n\t\t String notes = \"[A(0.25), G(2), E(0.5), C(1), C(2), D(0.25), E(2), C(2), B(0.25), C(4), C(1), G(0.25),A(1), C(2), D(1),C(4)]\";\n\t\treturn notes;\n\t}", "public Guitar(){\n\t\tnumStrings = 6;\n\t\tguitarLength = 28.2;\n\t\tguitarManufacturer = \"Gibson\";\n\t\tguitarColor = Co...
[ "0.63518846", "0.6042065", "0.6037005", "0.5993787", "0.5925012", "0.5776932", "0.575184", "0.57229584", "0.57221735", "0.56560224", "0.56428266", "0.551468", "0.549054", "0.5467228", "0.5462522", "0.5455626", "0.54312277", "0.53900164", "0.53719294", "0.5368266", "0.5363117"...
0.55580544
11
Compute the freqency of given index.
private static double freqOfKey(int index) { return 440 * Math.pow(2, (double) (index - 12) / 24); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getFreq();", "float getFrequency();", "private double calcProbability(int index) {\n\t\treturn (double) fitnesses[index] / sumOfFitnesses();\n\t}", "public int getDocFreq(Term t){\n\t\tint freq = 0;\r\n\t\tfor (Map.Entry<String, IndexedDoc> set : index.entrySet()){\r\n\t\t\tif (set.getValue().containsTer...
[ "0.63061416", "0.6058575", "0.602343", "0.601683", "0.59720796", "0.5945533", "0.5657272", "0.56273526", "0.5591207", "0.55474657", "0.5544912", "0.5524088", "0.548205", "0.5440451", "0.54368246", "0.54271936", "0.5422367", "0.5364512", "0.53370833", "0.53108287", "0.52832055...
0.67343044
0
Created by a596771 on 28022017.
public interface Constants { /** * Add new modules * params: "Title", "Description", "Module Tag", "Image url" */ Module moduleMaps = new Module("Maps", "Google map integrations with geofencing & more...", "", "http://3.bp.blogspot.com/_ZaGO7GjCqAI/Rh47v0ZvaoI/AAAAAAAABjA/20hcUi_0XVo/s640/maps-...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "public final void mo51373a() {\n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "private stendhal() {\n\t}", "@Overri...
[ "0.5969277", "0.57893854", "0.5759421", "0.57175505", "0.570995", "0.5704346", "0.5690391", "0.5690391", "0.56677204", "0.56169146", "0.5604548", "0.5559476", "0.55492663", "0.55455846", "0.5534609", "0.552318", "0.55209327", "0.5519229", "0.5509291", "0.5509291", "0.5509291"...
0.0
-1
Called just before this Command runs the first time
protected void initialize() { Robot.sender_.setSendData(vision); initHeading = Robot.drivetrain.getGyroHeading(); if(vision.equalsIgnoreCase(SocketVisionSender.StartDepth)) { initDistance = Robot.depth_.get_distance() * Drivetrain.kEncoderTicksPerInch; } if(vision.equalsIgnoreCase(SocketVisionSender.Star...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void preRun() {\n super.preRun();\n }", "protected void preRun() {\r\n\t\tthis.preparePairs();\r\n\t}", "@Override\n public void beforeFirstLogic() {\n }", "public void prePerform() {\n // nothing to do by default\n }", "protected void onFirstUse() {}", "@O...
[ "0.7113986", "0.6542487", "0.64347786", "0.6433418", "0.64082474", "0.6353506", "0.6309701", "0.62537354", "0.62473047", "0.62407833", "0.6167777", "0.6163407", "0.6129232", "0.6129232", "0.6129232", "0.6129232", "0.6129232", "0.61080366", "0.608483", "0.608483", "0.60805327"...
0.0
-1
Called repeatedly when this Command is scheduled to run
protected void execute() { double error = -1; double proportion = 1; double coefficient = 1; if(vision.equalsIgnoreCase(SocketVisionSender.StartDepth)) { error = Robot.depth_.get_degrees_x(); } if(vision.equalsIgnoreCase(SocketVisionSender.StartCubeSearch)) { error = Robot.cube_.get_degrees_x(); } if(visio...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\tvoid runCommand() {\n\t\t\ttrigger.execute();\n\t\t}", "@Override\n public void run() {\n schedule();\n }", "@Override\n public void autonomousPeriodic() {\n \n Scheduler.getInstance().run();\n \n }", "public void run() {\n\t\texecuteCommand( client, false );\n\t}", "...
[ "0.6689458", "0.6631115", "0.6566414", "0.65512514", "0.6530515", "0.6488629", "0.64019585", "0.6380878", "0.637645", "0.6363615", "0.63557744", "0.6330997", "0.6295938", "0.6275704", "0.6268897", "0.62656784", "0.62656784", "0.62656784", "0.62656784", "0.62656784", "0.626567...
0.0
-1
Make this return true when this Command no longer needs to run execute()
protected boolean isFinished() { return Robot.roborio.getYAccelerationComparedToThreshold(threshold, true) || initDistance - Robot.drivetrain.getRightEncoderPos(0) < 18 * Drivetrain.kEncoderTicksPerInch; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean execute() {\n return false;\n }", "@Override\n public boolean execute() {\n return false;\n }", "public boolean execute(){\n return false;\n }", "@Override\n\tpublic boolean Unexecute() \n\t{\n\t\treturn false;\n\t}", "p...
[ "0.77310985", "0.77310985", "0.76764053", "0.7648061", "0.7595155", "0.7551003", "0.6876956", "0.6745719", "0.672735", "0.66821593", "0.6587288", "0.6565697", "0.64980936", "0.6387016", "0.63732547", "0.6357354", "0.6357354", "0.63506126", "0.63429135", "0.6329652", "0.632628...
0.0
-1
Called once after isFinished returns true
protected void end() { Robot.drivetrain.tankDrive(0, 0); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected boolean isFinished() {\n return true;\n }", "@Override\n protected boolean isFinished() {\n return true;\n }", "@Override\n public boolean isFinished() {\n return true;\n }", "@Override\r\n\tprotected boolean isFinished() {\n\t\treturn true;\r\n\t}", "@Override\...
[ "0.85854495", "0.85395205", "0.83341306", "0.83313096", "0.83313096", "0.83068", "0.8305024", "0.8298836", "0.8277644", "0.8277644", "0.8277644", "0.8277644", "0.8277644", "0.8277644", "0.8277644", "0.8277644", "0.8277644", "0.8277644", "0.8277644", "0.8277644", "0.8277644", ...
0.0
-1
Called when another command which requires one or more of the same subsystems is scheduled to run
protected void interrupted() { end(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public AutonomousCommand(LiftSubsystem m_lift, ArmSubsystem m_arm, Shooter m_shooter, DriveSubsystem m_drive,\n HopperSubsystem m_hopper, Intake m_intake) {\n // Add your commands in the super() call, e.g.\n // super(new FooCommand(), new BarCommand());\n // alongwith- birlikte çalıştırmak için // wi...
[ "0.5763735", "0.5597857", "0.5525979", "0.5434967", "0.53826046", "0.53644043", "0.5349786", "0.5344097", "0.5329482", "0.53283983", "0.5299414", "0.5261541", "0.5256005", "0.52316135", "0.52242804", "0.52031666", "0.5192441", "0.5177707", "0.5162963", "0.51539654", "0.514155...
0.0
-1
Drop older table if existed
@Override public void onUpgrade(SQLiteDatabase db, int oldV, int newV) { db.execSQL("DROP TABLE IF EXISTS " + TABLE_SCORES); // Create tables again onCreate(db); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void deleteOldTables(){\n jdbcTemplate.execute(\"DROP TABLE OLDcompetence\");\n jdbcTemplate.execute(\"DROP TABLE OLDrole\");\n jdbcTemplate.execute(\"DROP TABLE OLDperson\");\n jdbcTemplate.execute(\"DROP TABLE OLDavailability\");\n jdbcTemplate.execute(\"DROP TABLE OLDc...
[ "0.76148385", "0.75843316", "0.7307945", "0.7098162", "0.7089684", "0.70499885", "0.6996705", "0.68932396", "0.688928", "0.68719447", "0.6835771", "0.6829487", "0.6812177", "0.680692", "0.6796235", "0.6793014", "0.67750293", "0.6772128", "0.6762724", "0.6741369", "0.67276275"...
0.0
-1
We recommend type names be OSGi symbolic names, such as: com.acmegroup.1VirtualMachine Note that this is more permissive than Java, allowing hyphens and allowing segments to start with numbers. However it is also more restrictive: OSGi does not allow accented characters or most punctuation. Only hyphens and underscores...
public static boolean isGoodTypeName(String candidate) { return isUsable(candidate) && candidate.matches(OSGI_SYMBOLIC_NAME_REGEX); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String typeName();", "private String getType( )\n\t{\n\t\treturn this.getModuleName( ) + \"$\" + this.getSimpleName( ) + \"$\" + this.getSystem( );\n\t}", "String getIdentifierName(String name, String type);", "@Override\n public String name(String name, Meter.Type type, @Nullable String baseUnit) {\n ...
[ "0.63897496", "0.59963083", "0.59541786", "0.59475976", "0.59395283", "0.5861879", "0.5861879", "0.5861879", "0.5861879", "0.5861879", "0.5861879", "0.5861879", "0.5861879", "0.5861879", "0.5861879", "0.5861879", "0.5861879", "0.5861879", "0.5861879", "0.5861879", "0.5861879"...
0.56204325
74
Setup the testing environment.
protected void setUp() throws Exception { super.setUp(); FailureTestHelper.clearNamespaces(); ConfigManager.getInstance().add("DBConnectionFactory_Config.xml"); // TODO If real provided should load namespace. dbConnectionFactory = new DBConnectionFactoryImpl("com.topcode...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Before\n public void setupEnvironment() {\n TestEnvironment testEnvironment;\n switch (mode) {\n case CLUSTER:\n // This only works because of the quirks we built in the TestEnvironment.\n // We should refactor this in the future!!!\n testEn...
[ "0.79420555", "0.7874571", "0.76678014", "0.75218415", "0.7446516", "0.7446393", "0.7361474", "0.73067605", "0.7284708", "0.727698", "0.72200155", "0.7166607", "0.7164958", "0.7153581", "0.71520233", "0.7148893", "0.7148149", "0.7129432", "0.7125726", "0.71173424", "0.7108971...
0.0
-1
String input = "Geeks for Geeks";
public static void main(String[] args) { String input = "Lukman"; StringBuilder input1 = new StringBuilder(); // append a string into StringBuilder input1 //input1.append(input); // reverse StringBuilder input1 //input1 = input1.reverse(); // print reversed Str...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\n\n String input = \"\";\n String word = \"\";\n Scanner scanner = new Scanner(System.in);\n System.out.println(\"Please give me the string to search in: \");\n input = scanner.nextLine();\n System.out.println(\"Please give me the s...
[ "0.6071931", "0.59026927", "0.5833443", "0.57927775", "0.5748387", "0.57044184", "0.56330955", "0.55957717", "0.5522191", "0.5513322", "0.5508143", "0.54850996", "0.54667825", "0.5462352", "0.5462045", "0.5431611", "0.54257447", "0.542417", "0.5419237", "0.5392982", "0.538217...
0.0
-1
POST /projectreleasesprints : Create a new projectreleasesprint.
@RequestMapping(value = "/projectreleasesprints", method = RequestMethod.POST, produces = MediaType.APPLICATION_JSON_VALUE) @Timed public ResponseEntity<Projectreleasesprint> createProjectreleasesprint(@Valid @RequestBody Projectreleasesprint projectreleasesprint) throws URISyntaxException { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic boolean createSprint(SprintFormBean sprint) throws IllegalAccessException, InvocationTargetException {\n\t\tSprint sprintEntity = new Sprint() ;\n\t\tsprintEntity.setDescription(sprint.getDescription());\n\t\tsprintEntity.setName(sprint.getName());\n\t\tsprintEntity.setReleaseid(sprint.getRele...
[ "0.5835577", "0.57761455", "0.57173806", "0.5409847", "0.52413833", "0.5144239", "0.5018858", "0.49913707", "0.4927331", "0.49144682", "0.48607126", "0.48426405", "0.4783221", "0.47129366", "0.46678486", "0.46560857", "0.4647507", "0.46422097", "0.46387488", "0.45508662", "0....
0.8328298
0
GET /projectreleasesprints : get all the projectreleasesprints.
@RequestMapping(value = "/projectreleasesprints", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE) @Timed public List<Projectreleasesprint> getAllProjectreleasesprints() { log.debug("REST request to get all Projectreleasesprints"); List<Projectreleasesprin...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@RequestMapping(value = \"/projectreleasesprints/{id}\",\n method = RequestMethod.GET,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public ResponseEntity<Projectreleasesprint> getProjectreleasesprint(@PathVariable Long id) {\n log.debug(\"REST request to get Projectreleasesp...
[ "0.68072355", "0.614347", "0.605568", "0.5971693", "0.58779305", "0.57702863", "0.5766686", "0.5537742", "0.5536963", "0.55294067", "0.5510497", "0.55070114", "0.54894865", "0.5453121", "0.5433108", "0.53467333", "0.5283222", "0.5279753", "0.521631", "0.51717365", "0.5142187"...
0.8735441
0
GET /projectreleasesprints/:id : get the "id" projectreleasesprint.
@RequestMapping(value = "/projectreleasesprints/{id}", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE) @Timed public ResponseEntity<Projectreleasesprint> getProjectreleasesprint(@PathVariable Long id) { log.debug("REST request to get Projectreleasesprint : {}", i...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@RequestMapping(value = \"/projectreleasesprints\",\n method = RequestMethod.GET,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public List<Projectreleasesprint> getAllProjectreleasesprints() {\n log.debug(\"REST request to get all Projectreleasesprints\");\n List<Proj...
[ "0.71000695", "0.69112885", "0.65542734", "0.63869", "0.6335724", "0.6202744", "0.59746546", "0.58558583", "0.5684592", "0.5642575", "0.5620329", "0.5615871", "0.55261683", "0.5463924", "0.5454775", "0.54378754", "0.5395905", "0.5393687", "0.5331621", "0.5326258", "0.5325211"...
0.8547209
0
DELETE /projectreleasesprints/:id : delete the "id" projectreleasesprint.
@RequestMapping(value = "/projectreleasesprints/{id}", method = RequestMethod.DELETE, produces = MediaType.APPLICATION_JSON_VALUE) @Timed public ResponseEntity<Void> deleteProjectreleasesprint(@PathVariable Long id) { log.debug("REST request to delete Projectreleasesprint : {}", id); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@RequestMapping(value = \"/projectreleasesprints/{id}\",\n method = RequestMethod.GET,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public ResponseEntity<Projectreleasesprint> getProjectreleasesprint(@PathVariable Long id) {\n log.debug(\"REST request to get Projectreleasesp...
[ "0.6237694", "0.62353325", "0.6221313", "0.6138793", "0.6108053", "0.60894245", "0.5955978", "0.5941903", "0.5917626", "0.5905172", "0.5895758", "0.58821905", "0.58541095", "0.58507013", "0.58380437", "0.5836429", "0.5802835", "0.57788235", "0.574338", "0.5641989", "0.5633723...
0.86478424
0
Construct a new ProductIndexQuery.
public ProductIndexQuery() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void createProductIndex() {\n\t\tLinkedList<String> ids = new LinkedList<>(productIds.keySet());\n\t\tArrayList<ArrayList<Integer>> vals = new ArrayList<>(productIds.values());\n\t\tint k = 8;\n\t\tKFront kf = new KFront();\n\t\tkf.createKFront(k, ids);\n\t\tfor (int i = 0; i < vals.size(); i++) {\n\t\t\tk...
[ "0.69342875", "0.55973953", "0.5547636", "0.5445938", "0.5438577", "0.5438577", "0.54380435", "0.53973633", "0.5391584", "0.5383508", "0.5349049", "0.5339025", "0.53365993", "0.53195345", "0.5264467", "0.5264467", "0.5251162", "0.5195546", "0.5185667", "0.5166552", "0.5147313...
0.8146114
0
The ribbon required to wrap a present is the shortest distance around its sides, or the smallest perimeter of any one face. A present with dimensions 2x3x4 requires 2+2+3+3 = 10 A present with dimensions 1x1x10 requires 1+1+1+1 = 4
private static double ribbonPresent(int l, int w, int h) { int[] sides = {l, w, h}; Arrays.sort(sides); return sides[0] + sides[0] + sides[1] + sides[1]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void calculateChevronTrim() {\n ToolBar tb = new ToolBar( parent, SWT.FLAT );\n ToolItem ti = new ToolItem( tb, SWT.PUSH );\n // Image image = new Image (display, 1, 1);\n // ti.setImage (image);\n Point size = tb.computeSize( SWT.DEFAULT, SWT.DEFAULT );\n size = parent.fixPoint( size.x, si...
[ "0.53536695", "0.5326781", "0.5257522", "0.5151036", "0.5095154", "0.5076894", "0.50728863", "0.5044326", "0.49851233", "0.49606356", "0.49262527", "0.4920923", "0.48557356", "0.48402876", "0.48382267", "0.48308244", "0.48306286", "0.48262683", "0.4821786", "0.48042136", "0.4...
0.67897797
0
Constructor Sets the specifications of the possession
public Possession(String name, Image itemImg, float itemPrice) { _name = name; _img = itemImg; _price = itemPrice; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public PSRelation()\n {\n }", "public Position() {\n\n\t}", "public Competence() {\r\n\t\tsuper();\r\n\t}", "public PppoeSessionInfo() {\n }", "public Parametros() {\r\n semilla = SEMILLA_DEFECTO;\r\n numeroPistas = NUMERO_PISTAS_DEFECTO;\r\n duracionSlot = DURACION_SLOT_DEFECTO...
[ "0.6178702", "0.59318024", "0.5881129", "0.58758575", "0.5842138", "0.5822551", "0.58136934", "0.5761053", "0.57424384", "0.57393044", "0.57227206", "0.5692314", "0.56676537", "0.5660618", "0.5653934", "0.56448543", "0.5642274", "0.56415457", "0.5606545", "0.5602445", "0.5598...
0.0
-1
Methods Returns the price of the possession
public float getPrice() { return _price; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double price() {\n return price;\n }", "double getPrice();", "double getPrice();", "double getPrice();", "public double getpPrice() {\n return pPrice;\n }", "public double getPrice(){\r\n\t\treturn price;\r\n\t}", "public BigDecimal getpPrice() {\n return pPrice;\n ...
[ "0.77706444", "0.7724834", "0.7724834", "0.7724834", "0.7685772", "0.7651285", "0.7650169", "0.76406986", "0.76338315", "0.7630972", "0.7621086", "0.7614106", "0.7610411", "0.7610411", "0.759154", "0.75788134", "0.75788134", "0.7572688", "0.7572688", "0.7572688", "0.7572688",...
0.7451736
61
Sets the owner of the possession
public void setOwner(Person person) { _owner = person; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setOwner(User owner) {\n this.owner = owner;\n }", "void setOwner(String owner);", "public void setOwner(Player owner) {\n\t\tthis.owner = owner;\n\t}", "public void setOwner(Owner owner) {\n this.owner = owner;\n }", "public void setOwner(String owner) {\n this.owner...
[ "0.7917883", "0.77974045", "0.7794451", "0.77700585", "0.771465", "0.771465", "0.771465", "0.771465", "0.7689252", "0.76873803", "0.7564147", "0.7556273", "0.7519032", "0.749728", "0.7491165", "0.74323076", "0.74045247", "0.74037254", "0.738864", "0.7382192", "0.7304795", "...
0.70994484
30
Constructor. Metadata and data objects are empty.
public TestsAsset() { tests = new LinkedList<TestBean>(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Data() {}", "public Data() {\n }", "public Data() {\n }", "public Data() {\n \n }", "public InitialData(){}", "public MetadataResponse() {\n data = new HashMap<String, Object>();\n }", "public JsonDataset() {\r\n\t\tsuper();\r\n\t\tlogger.trace(\"JsonDataset() - start\");\r\n...
[ "0.77252656", "0.7603507", "0.7603507", "0.75138545", "0.7482779", "0.7392807", "0.7223141", "0.7069647", "0.70612663", "0.70417523", "0.70275515", "0.696678", "0.69623417", "0.6957402", "0.68583184", "0.68340033", "0.67795616", "0.6749571", "0.67364734", "0.67207396", "0.670...
0.0
-1
Constructor. Creates resource metadata from test bean collection.
public TestsAsset(Collection<TestBean> data) { this(); tests.addAll(data); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ApplicationResourceProperties() {\n }", "@BeforeEach\n public void initialize()\n {\n serviceProvider = new ServiceProvider();\n ResourceTypeFactory resourceTypeFactory = new ResourceTypeFactory();\n schemaFactory = Assertions.assertDoesNotThrow(resourceTypeFactory::getSchemaFactory);\n r...
[ "0.6582043", "0.6264803", "0.6196862", "0.58995223", "0.58550876", "0.5839124", "0.57481724", "0.57193905", "0.57176626", "0.5711818", "0.57017684", "0.5695558", "0.5679999", "0.567134", "0.56643194", "0.5635187", "0.5627782", "0.5618018", "0.5612388", "0.56069016", "0.560486...
0.5313178
58
Create a constructor and initialize the fields
public LinkedQueue() { this.size = 0; this.head = null; this.tail = null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Constructor(){\n\t\t\n\t}", "private Instantiation(){}", "private void __sep__Constructors__() {}", "Constructor() {\r\n\t\t \r\n\t }", "protected abstract void construct();", "defaultConstructor(){}", "@SuppressWarnings(\"unused\")\n public NoConstructor() {\n // Empty\n ...
[ "0.7382893", "0.7299265", "0.706776", "0.70420986", "0.67650896", "0.67472315", "0.66825265", "0.66622794", "0.66268444", "0.6621912", "0.6599109", "0.657594", "0.65233505", "0.64985716", "0.648659", "0.6479012", "0.646217", "0.6457677", "0.6456918", "0.64518744", "0.64440376...
0.0
-1
Mock response for jadler.
private String getResponseBody() throws IOException { return IOUtils.toString( Issue86IT.class.getResourceAsStream(QUERY_RESOURCE), "UTF-8"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void useFakeResponse() {\n EmployeeApp.useFakeResponse = true;\n ResponseObject responseObject = new ResponseObject();\n responseObject.setReturnCode(200);\n responseObject.setType(ResponseObject.ResponseType.JSON);\n responseObject.setResponseBodyString(new CompanyEmploy...
[ "0.68147576", "0.6615946", "0.64302427", "0.62815356", "0.60587144", "0.6055986", "0.6026458", "0.6020648", "0.6007469", "0.59906316", "0.5963107", "0.59498006", "0.59282655", "0.592645", "0.59115076", "0.5885102", "0.5872342", "0.5826858", "0.5816008", "0.5814449", "0.580374...
0.0
-1
/ Set the Nimbus look and feel / If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel. For details see
public static void main(String args[]) { try { for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) { if ("Nimbus".equals(info.getName())) { javax.swing.UIManager.setLookAndFeel(info.getClassName()); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void setLookAndFeel() {\n try {\n for (LookAndFeelInfo info : UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n ...
[ "0.79498166", "0.7769115", "0.77021354", "0.7506062", "0.72881013", "0.72290856", "0.7223878", "0.7221606", "0.7181334", "0.7157133", "0.7119354", "0.7112824", "0.7099883", "0.70614386", "0.7050636", "0.6914184", "0.68172616", "0.6706356", "0.6696525", "0.65859324", "0.657460...
0.5471973
73
TODO Autogenerated method stub
public static void main(String[] args) { Scanner sc = new Scanner(System.in); System.out.printf("아이디 입력: "); String id = sc.nextLine(); System.out.printf("비밀번호 입력: "); String pw = sc.nextLine(); //아이디가 root, pw-1234 이면 로그인 성공이라고 출력 그렇지 않으면 로그인 실패라고 출력 if (id.equals("root") && pw.equals("1234...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
Instantiates a new world gen grass cloud.
public WorldGenGrassUnderbean() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public MapGen()//Collect images, create Platform list, create grassy array and generate a random integer as the map wideness\n\t{\n\t\tblocksWide= ThreadLocalRandom.current().nextInt(32, 64 + 1);\n\t\tclouds=kit.getImage(\"Resources/SkyBackground.jpg\");\n\t\tdirt=kit.getImage(\"Resources/Dirt.png\");\n\t\tgrass[0...
[ "0.60275096", "0.5991094", "0.5988175", "0.5988041", "0.59449023", "0.5867451", "0.58493024", "0.5825913", "0.57712084", "0.57711715", "0.57497823", "0.5724286", "0.57138824", "0.57075065", "0.56932855", "0.5683142", "0.5662319", "0.5582412", "0.5575202", "0.55693835", "0.555...
0.65655655
0
The Factory for the model. It provides a create method for each nonabstract class of the model.
public interface AliciaTest5Factory extends EFactory { /** * The singleton instance of the factory. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ AliciaTest5Factory eINSTANCE = aliciaTest5.impl.AliciaTest5FactoryImpl.init(); /** * Returns a new object of class '<em>Alicia Lab</em>'. ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Model createModel();", "Model createModel();", "Model createModel();", "Model createModel();", "Model createModel();", "Model createModel();", "Model createModel();", "TestModelFactory getTestModelFactory();", "public UsermodelFactoryImpl() {\r\n\t\tsuper();\r\n\t}", "public SqliteModelFactoryImp...
[ "0.71565163", "0.71565163", "0.71565163", "0.71565163", "0.71565163", "0.71565163", "0.71565163", "0.70742077", "0.7051943", "0.6983852", "0.69748455", "0.6965496", "0.69568366", "0.69481784", "0.6860293", "0.6811446", "0.6807123", "0.6756206", "0.6694741", "0.6656823", "0.66...
0.0
-1
Returns a new object of class 'Alicia Lab'.
AliciaLab createAliciaLab();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Lab create();", "public Laboratorio() {}", "public static Livro criarLivro() {\n\n\t\tLivro livro = new Livro();\n\n\t\tString codigo = Console.recuperaTexto(\"Informe o código:\");\n\t\tlivro.setCodigo(codigo);\n\t\tString titulo = Console.recuperaTexto(\"Informe o título:\");\n\t\tlivro.setTitulo(titulo);\n\...
[ "0.73537225", "0.67863196", "0.65544176", "0.65343887", "0.61740154", "0.61337996", "0.6097561", "0.60752666", "0.60361993", "0.59894675", "0.5925207", "0.588757", "0.58756775", "0.58686286", "0.585492", "0.5822431", "0.5821679", "0.5815137", "0.5788448", "0.57816356", "0.573...
0.85325223
0
Returns a new object of class 'Project'.
Project createProject();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void createProject(Project newProject);", "public IProject getNewProject() {\r\n\t\treturn newProject;\r\n\t}", "public Project build() {\n return new Project(descriptor.build());\n }", "private IProject createNewProject() {\r\n\t\tif (newProject != null) {\r\n\t\t\treturn newProject;\r\n\...
[ "0.7584945", "0.7551854", "0.7549684", "0.75401187", "0.74671805", "0.7432529", "0.7270543", "0.71195436", "0.71105796", "0.70749086", "0.70686734", "0.7064501", "0.7064501", "0.7017828", "0.698956", "0.6983459", "0.69682777", "0.6962118", "0.695292", "0.69281733", "0.6908292...
0.79533494
2
Returns a new object of class 'Student'.
Student createStudent();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static Student getRandomStudentObject() {\n return new Student(\"Abc\", \"99\", \"10th\");\n }", "public Student(){}", "public Student() {\n \n }", "public Student() {\n }", "public Student() {\n }", "public Student() {\n }", "private Student createStudent(Element st...
[ "0.76032346", "0.7406106", "0.71950287", "0.71757096", "0.71757096", "0.71757096", "0.7167949", "0.71571535", "0.7027916", "0.69447076", "0.69348747", "0.68708336", "0.6861685", "0.67898476", "0.6741306", "0.67233807", "0.67154056", "0.66852874", "0.66752714", "0.66452146", "...
0.78052455
0
Returns the package supported by this factory.
AliciaTest5Package getAliciaTest5Package();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "PackageType getRequiredPackage();", "public PackageNode getPackage();", "java.lang.String getPackage();", "public String getPackageName();", "public String getPackageName() {\n return pkg;\n }", "String getPackageName();", "public DsByteString getPackage() {\n return m_strPackage;\n }", ...
[ "0.7031596", "0.6824025", "0.6818806", "0.6752645", "0.67181015", "0.6704875", "0.6698022", "0.6678774", "0.6635858", "0.6556546", "0.65183675", "0.6501405", "0.6496429", "0.6481852", "0.6376274", "0.63505894", "0.6338929", "0.63388515", "0.6327788", "0.6314242", "0.63126606"...
0.0
-1
WebDriver driver = new FirefoxDriver(); driver.get("
@Test public void forgot(){ driver.findElement(By.partialLinkText("Forgot")).click(); System.out.println("the forgotpage title is "+" "+driver.getTitle()); String expectedTitle = "Forgot Password | Can't Log In | Facebook"; String actualTitle = driver.getTitle(); softassert.assert...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\nWebDriver driver = new FirefoxDriver();\nSystem.out.println(\"hai\");\ndriver.get(\"https://www.google.com\");\nSystem.out.println(driver.getTitle());\ndriver.close();\n\t}", "public static WebDriver firefox()\r\n\t{\r\n\t\tSystem.setProperty(\"webdriver.gecko.driver\",S...
[ "0.77924156", "0.75749373", "0.7497043", "0.74759156", "0.74415094", "0.7307571", "0.7209472", "0.7199303", "0.7176145", "0.716767", "0.713256", "0.7115738", "0.7086317", "0.7078819", "0.70484966", "0.70343596", "0.6993773", "0.69827807", "0.69757545", "0.69677913", "0.694845...
0.0
-1
Joins the channel of the room
public void joinChannel() { String userId = AuthenticationSingleton.getAdaptedInstance().getUid(); String token1 = generateToken(userId); mRtcEngine.setAudioProfile(Constants.AUDIO_SCENARIO_SHOWROOM, Constants.AUDIO_SCENARIO_GAME_STREAMING); int joinStatus = mRtcEngine.joinChannelWithUse...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void joinChannel() {\n // Get the User Id for the current user\n final String userId = mUser.getUid();\n // User Id set to 0 for auto handling by Agora\n int uid = 0;\n // Token object\n RtcTokenBuilder token = new RtcTokenBuilder();\n // Time stamp used for...
[ "0.7561529", "0.7104037", "0.7102015", "0.6992715", "0.6844648", "0.67624813", "0.6653998", "0.66522986", "0.6569982", "0.6461444", "0.63839895", "0.6303393", "0.6249874", "0.6241402", "0.62101585", "0.61777747", "0.61596376", "0.6093923", "0.60646397", "0.5947007", "0.594428...
0.75740945
0
Leaves the channel of the room
public void leaveChannel() { mRtcEngine.leaveChannel(); appointment.removeOfCall(new DatabaseUser(MainUser.getMainUser().getId())); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void leaveChannel() {\n // Leave the current channel\n mRtcEngine.leaveChannel();\n }", "public void leaveChat(){\n toServer.println(\"leavechat\" + \" \" + chatID + \" \" + username);\n toServer.flush();\n gui.dispose();\n clientModel.activeChats.remove(chatI...
[ "0.7663053", "0.66020936", "0.64192426", "0.6337451", "0.62547785", "0.607704", "0.6064072", "0.6059356", "0.60109186", "0.59771764", "0.5943373", "0.59068495", "0.5869874", "0.58537495", "0.58533144", "0.58533144", "0.582818", "0.5814443", "0.57644546", "0.57504994", "0.5730...
0.74043596
1
Mute (unmute) local user if mute arg is set to true (false)
public int mute(boolean mute) { int result = mRtcEngine.muteLocalAudioStream(mute); appointment.muteUser(new DatabaseUser(MainUser.getMainUser().getId()), mute); return result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void mute() {\n execute(\"player.muted = true\");\n }", "void unmute() {\n execute(\"player.muted = false\");\n }", "public void setMute(boolean mute);", "public void setMute(boolean mute) {\n \t\tthis.mute = mute;\n \t}", "public void mute() {\n\t\tstate.mute();\n\t}", "@Override\r\n...
[ "0.7788543", "0.76745266", "0.76353186", "0.74734557", "0.71868414", "0.7167538", "0.7122241", "0.69244766", "0.6872338", "0.67843187", "0.67821354", "0.66947407", "0.66401833", "0.65390646", "0.65283555", "0.6504299", "0.6491386", "0.6467265", "0.63314545", "0.6184803", "0.6...
0.75089175
3
Sets the audio effect to the effect whose index is given
public void setVoiceEffect(int effectIndex) { mRtcEngine.setAudioEffectPreset(VOICE_EFFECTS[effectIndex]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setEffect(int effectIndex, int filterIndex) {\n\t\talSource3i(musicSourceIndex, AL_AUXILIARY_SEND_FILTER, effectIndex, 0, AL_FILTER_NULL);\n\t\talSourcei(musicSourceIndex, AL_DIRECT_FILTER, filterIndex);\n\t\talSource3i(reverseSourceIndex, AL_AUXILIARY_SEND_FILTER, effectIndex, 0, AL_FILTER_NULL);\n\t\...
[ "0.6854357", "0.6308804", "0.6300108", "0.6196117", "0.61407703", "0.6063085", "0.6061641", "0.58686197", "0.58354276", "0.58211803", "0.5819084", "0.57964605", "0.578159", "0.575312", "0.5710071", "0.567008", "0.5649056", "0.5641876", "0.56257457", "0.5537578", "0.5512155", ...
0.70209616
0
Mutes (unmutes) the given user locally if muted is set to true (false)
public void muteUserLocally(boolean muted, String id) { for (int uid : usersCallId.keySet()) { if (usersCallId.get(uid).equals(id)) { mRtcEngine.adjustUserPlaybackSignalVolume(uid, muted ? VOLUME_OFF : STANDARD_VOLUME); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isMuted(User u) {\n return bot\n .getCreditsFile()\n .getInt(\"Mutes.\" + u + \".Mute\") > 0;\n }", "void mute() {\n execute(\"player.muted = true\");\n }", "void unmute() {\n execute(\"player.muted = false\");\n }", "public static bo...
[ "0.6718854", "0.6647389", "0.661372", "0.65056294", "0.63005936", "0.6179542", "0.60493356", "0.60406977", "0.59984976", "0.58876336", "0.5872054", "0.58691156", "0.5825653", "0.5809746", "0.5795166", "0.5777804", "0.56586295", "0.5644376", "0.5630547", "0.5513673", "0.550071...
0.70562184
0
Sets the command attribute to the value given This command is used to run on the UI thread the update of the users who are currently talking
public void setCommand(@NonNull Command<Boolean, String> command) { this.command = command; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setCommand(String command){\r\n commandUpdate=command;\r\n }", "protected void setCommand(String command)\n {\n Command = command;\n }", "public void setCommand(Command c) {\r\n\t\tcommand = c;\r\n\t}", "public void setCommand(String command) {\n this.command = command;\n ...
[ "0.7024638", "0.65121907", "0.6434788", "0.6428093", "0.6348056", "0.6268606", "0.62447345", "0.6210542", "0.6191056", "0.6135298", "0.6129538", "0.61052436", "0.6055744", "0.60463667", "0.6024055", "0.59424657", "0.5904403", "0.5818696", "0.5808361", "0.57843226", "0.5732953...
0.58285695
17
Check the users who are currently talking and run the command to make them appear as talking
@Override public void onAudioVolumeIndication(AudioVolumeInfo[] speakers, int totalVolume) { Set<Integer> newUsersInCall = new HashSet<Integer>(); if (speakers != null) { for (AudioVolumeInfo audioVolumeInfo : speakers) { int uid = ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static private void TalkTo() {\n if (BSChristiansen.getCurrentRoom() == currentRoom) {\n System.out.println(BSChristiansen.getDescription() + \", yet he still gives you good advice:\\n\");\n System.out.println(BSChristiansen.getDialog(0));\n System.out.println(\"\");\n ...
[ "0.5949657", "0.59091014", "0.58352244", "0.57828826", "0.57785773", "0.57347655", "0.5704035", "0.56648487", "0.5658699", "0.5634555", "0.5634535", "0.5634421", "0.5626194", "0.5625182", "0.56091267", "0.55765074", "0.55086344", "0.5503736", "0.5486919", "0.54658765", "0.545...
0.5780619
4
Time code is set at a given frequency
@Override public void onLocalAudioStats(LocalAudioStats stats) { if (timeCodeIndicator % TIME_CODE_FREQUENCY == 0) { appointment.setTimeCode(new DatabaseUser(MainUser.getMainUser().getId()), System.currentTimeMillis()); } timeCodeIndicator ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setFrequency(int f){\n this.frequency = f;\n }", "public void set(int symbol, int freq);", "public void setFrequency(java.lang.Integer value) {\n this.frequency = value;\n }", "FrequencyRegister(String subId) {\n \n reg2 = new FrequencySubRegister(\"FREQ2\" + subId);\n ...
[ "0.6267479", "0.59563446", "0.58095753", "0.5779798", "0.57680595", "0.5756015", "0.5755135", "0.5753693", "0.57498115", "0.5712402", "0.56905246", "0.56239015", "0.56007195", "0.55982727", "0.5593373", "0.55827546", "0.5580458", "0.5524391", "0.5523238", "0.5522596", "0.5491...
0.508644
70
Makes the user leave the channel, removes the handler and destroy the engine
public void destroy() { leaveChannel(); mRtcEngine.removeHandler(handler); if (eventHandler != null) { mRtcEngine.removeHandler(eventHandler); } RtcEngine.destroy(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void channelClosed(ChannelHandlerContext ctx, ChannelStateEvent e) {\n Client client = (Client) ctx.getChannel().getAttachment();\n Player player = client.getPlayer();\n if (player != null && !player.destroyed()) {\n player.destroy(false);\n }\n ...
[ "0.7277386", "0.71594", "0.7097614", "0.70472103", "0.6898038", "0.62847596", "0.6275876", "0.6253719", "0.6229871", "0.62269354", "0.6190295", "0.6170078", "0.6168058", "0.61655134", "0.6155769", "0.6126978", "0.6099738", "0.60907507", "0.60793525", "0.6051419", "0.6026644",...
0.7462691
0
======================== Video part ======================// Lets the user decide wherever they want to share their video or not. If they don't, they can still talk using audio.
public int shareLocalVideo() { videoEnabled = !videoEnabled; return mRtcEngine.enableLocalVideo(videoEnabled); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isVideo()\n {return false;\n }", "boolean hasVideo();", "private void toggleScreenShare(View v) {\n\n if(((ToggleButton)v).isChecked()){\n initRecorder();\n recordScreen();\n }\n else\n {\n mediaRecorder.stop();\n medi...
[ "0.7165768", "0.6916176", "0.66056156", "0.6455752", "0.6411973", "0.64119565", "0.6270137", "0.62089276", "0.61791664", "0.617852", "0.6175625", "0.6172165", "0.6124481", "0.61160135", "0.6115389", "0.6011344", "0.5968834", "0.5961779", "0.59501207", "0.5946854", "0.5912079"...
0.67005646
2
Lets the user switch their camera if they want to.
public int switchCamera() { return mRtcEngine.switchCamera(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void onSwitchCameraClicked(View view) {\n // Switch the camera\n mRtcEngine.switchCamera();\n }", "@Override\n public void onClick(View v) {\n int camerasNumber = Camera.getNumberOfCameras();\n if (camerasNumber > 1) {\n //releas...
[ "0.78712165", "0.7698052", "0.76579285", "0.74596685", "0.7418055", "0.73588604", "0.7352428", "0.7256642", "0.70996535", "0.6919076", "0.69105726", "0.689572", "0.6887343", "0.6861648", "0.6848662", "0.6840549", "0.68343556", "0.6829915", "0.6824862", "0.6811621", "0.6802475...
0.72449195
8
Creates a remote user's video UI when they join the video call
public SurfaceView createRemoteUI(Context context, final int uid) { SurfaceView surfaceV = RtcEngine.CreateRendererView(context); mRtcEngine.setupRemoteVideo(new VideoCanvas(surfaceV, VideoCanvas.RENDER_MODE_HIDDEN, uid)); surfaceV.layout(0, 0, 20, 10); return surfaceV; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void run() {\n setupRemoteVideo(uid);\n }", "@Override\n public void run() {\n mLogView.logI(\"Remote video starting, uid: \" + (uid & 0xFFFFFFFFL));\n setupRemoteVideo(uid, uid == WINDOW_SHAR...
[ "0.6799223", "0.67834175", "0.6603219", "0.6600642", "0.65871906", "0.65048945", "0.6181183", "0.6103319", "0.60457826", "0.59914255", "0.58953524", "0.5890524", "0.5767954", "0.57529867", "0.56756204", "0.56477875", "0.5645435", "0.5566295", "0.55595326", "0.55517566", "0.55...
0.63071334
6
Create the local user's video UI
public SurfaceView createLocalUI(Context context) { SurfaceView surfaceV = RtcEngine.CreateRendererView(context); surfaceV.setZOrderOnTop(true); surfaceV.setZOrderMediaOverlay(true); mRtcEngine.setupLocalVideo(new VideoCanvas(surfaceV)); surfaceV.layout(0, 0, 20, 10); ret...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setupLocalVideo() {\n\n // Enable the video module.\n mRtcEngine.enableVideo();\n\n mLocalView = RtcEngine.CreateRendererView(getBaseContext());\n mLocalView.setZOrderMediaOverlay(true);\n mLocalContainer.addView(mLocalView);\n\n mRtcEngine.setupLocalVideo(new...
[ "0.69145924", "0.6608464", "0.6433945", "0.64230573", "0.63408923", "0.63336277", "0.6331653", "0.6178788", "0.6170288", "0.6149731", "0.60459137", "0.6030667", "0.5994806", "0.5822407", "0.5804946", "0.5779432", "0.57263917", "0.5697712", "0.56967336", "0.56846267", "0.56838...
0.6626858
1
========================== Fragment setters ====================// Sets the room attribute to the given value
public void setParticipantFragment(Fragment fragment) { this.room = (RoomActivityParticipantsFragment) fragment; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setRoom(java.lang.CharSequence value) {\n this.room = value;\n }", "public synchronized void setRoom(String room) {\n this.room = room;\n }", "public void setRoom(Room room) {\r\n\t\tthis.room = room;\r\n\t}", "public export.serializers.avro.DeviceInfo.Builder setRoom(java.l...
[ "0.79275817", "0.79167044", "0.7873616", "0.78289443", "0.7779647", "0.768942", "0.74736357", "0.7463532", "0.7429402", "0.7399939", "0.72741866", "0.7225744", "0.71617186", "0.7137974", "0.7079286", "0.7068866", "0.70684403", "0.70478725", "0.7047379", "0.69694394", "0.69027...
0.0
-1
Sets the video room attribute to te given value and initializes the video
public void setVideoFragment(Fragment fragment) { this.videoRoom = (RoomActivityVideoFragment) fragment; eventHandler = new VideoEngineEventHandler(); eventHandler.addEventHandler(this.videoRoom); mRtcEngine.addHandler(eventHandler); mRtcEngine.enableVideo(); mRtcEngine....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setPlayerRoom(){\n player.setRoom(currentRoom);\n }", "public synchronized void setRoom(String room) {\n this.room = room;\n }", "public void setRoom(Room room) {\n currentRoom = room;\n }", "public export.serializers.avro.DeviceInfo.Builder setRoom(java.lang.Ch...
[ "0.6769063", "0.6721758", "0.6643911", "0.65670866", "0.652972", "0.65024686", "0.6397803", "0.63950515", "0.62852806", "0.6271716", "0.6221899", "0.6201689", "0.61363065", "0.6107729", "0.60984", "0.6092261", "0.6091468", "0.604746", "0.600614", "0.5932348", "0.5927748", "...
0.6703375
2
/ Save the value of the square if this identity is temporarily destroyed
@Override public void onSaveInstanceState(Bundle savedInstanceState) { final EditText edittext = (EditText) findViewById(R.id.edittext); savedInstanceState.putString("square",edittext.getText().toString()); super.onSaveInstanceState(savedInstanceState); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getSquareNumber() {\n\t\treturn squareNumber;\n\t}", "public void enlargeSquare()\n {\n squareSize++;\n }", "public Square getSquare() {\n\t\treturn new Square(y, x);\n\t}", "public Rectangle getSquare(){\n\t\treturn this.square;\n\t}", "@Override\n public Square getSquare() {\n ...
[ "0.58393985", "0.5830079", "0.5693141", "0.56016755", "0.55543184", "0.5550833", "0.5526034", "0.5489127", "0.54631186", "0.5431997", "0.5374469", "0.53706443", "0.53702575", "0.5364685", "0.5358849", "0.5311026", "0.5297191", "0.52720773", "0.524586", "0.5229298", "0.5227002...
0.5723648
2
Toast.makeText(this, this.homeId.getText().toString(), Toast.LENGTH_SHORT).show(); this.dbInput();
public void goToHomeTeam(View view) { Intent intent = new Intent(this, teamDetailDone.class); intent.putExtra("id", this.homeId.getText().toString()); startActivity(intent); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void onClick(View view){\n\n String name = mNameField.getText().toString();\n Toast.makeText(this,\"Hello There\"+name, Toast.LENGTH_LONG).show();\n\n }", "public void clickFunction(View view){\n Toast.makeText(MainActivity.this, \"Hi there!\", Toast.LENGTH_LONG).show();\n\n ...
[ "0.6619907", "0.65319234", "0.634664", "0.6289072", "0.62806666", "0.62806064", "0.62645656", "0.6241814", "0.622753", "0.6199893", "0.6188662", "0.6183202", "0.6159144", "0.6148034", "0.61346173", "0.61321807", "0.61085427", "0.60916394", "0.60707223", "0.60596347", "0.60543...
0.0
-1
Toast.makeText(this, this.homeId.getText().toString(), Toast.LENGTH_SHORT).show(); this.dbInput();
public void goToAwayTeam(View view) { Intent intent = new Intent(this, teamDetailDone.class); intent.putExtra("id", this.awayId.getText().toString()); startActivity(intent); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void onClick(View view){\n\n String name = mNameField.getText().toString();\n Toast.makeText(this,\"Hello There\"+name, Toast.LENGTH_LONG).show();\n\n }", "public void clickFunction(View view){\n Toast.makeText(MainActivity.this, \"Hi there!\", Toast.LENGTH_LONG).show();\n\n ...
[ "0.6619907", "0.65319234", "0.634664", "0.6289072", "0.62806666", "0.62806064", "0.62645656", "0.6241814", "0.622753", "0.6199893", "0.6188662", "0.6183202", "0.6159144", "0.6148034", "0.61346173", "0.61321807", "0.61085427", "0.60916394", "0.60707223", "0.60596347", "0.60543...
0.0
-1
Method created by SpringML to perform additional check for Exposure risk.
private boolean riskComputation(ExposureSummary exposureSummary){ double duration_close = exposureSummary.getAttenuationDurationsInMinutes()[0]; double duration_medium = exposureSummary.getAttenuationDurationsInMinutes()[1]; double risk_duration = duration_close + (duration_medium * 0.5); if (risk_du...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void onChange_InfectionRisk() {\n onChange_InfectionRisk_xjal( InfectionRisk );\n }", "boolean hasHasInjurySeverity();", "@Test\n public void testAverageRisk() {\n DataProvider provider = new DataProvider();\n provider.createDataDefinition();\n // Risk before anonymization...
[ "0.57064724", "0.555337", "0.55440193", "0.54822963", "0.54456633", "0.54312736", "0.5380258", "0.5334821", "0.53017056", "0.52548593", "0.5216489", "0.52063984", "0.5204321", "0.5129034", "0.51104885", "0.5108946", "0.5098573", "0.50901765", "0.5047512", "0.50415975", "0.503...
0.7179794
0
Method created by SpringML to update the no. of days since last exposure.
private void setDaysSinceLastExposure(int days){ new ExposureNotificationSharedPreferences(getApplicationContext()).setDaysSinceLastExposure(days); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void incrementDate() {\n\t\ttry {\r\n\t\t\tint days = Integer.valueOf(input(\"Enter number of days: \")).intValue();\r\n\t\t\tcalculator.incrementDate(days); // variable name changes CAL to calculator\r\n\t\t\tlibrary.checkCurrentLoans(); // variable name changes LIB to library\r\n\t\t\toutput(sdf.f...
[ "0.6157072", "0.5894673", "0.5894389", "0.5894389", "0.5890058", "0.57454616", "0.5745285", "0.5711269", "0.568013", "0.56707734", "0.5666261", "0.56646156", "0.56259024", "0.5620647", "0.55869454", "0.5574862", "0.55643183", "0.5561155", "0.5558123", "0.5551729", "0.5535637"...
0.67139477
0
Method created by SpringML to get notification message based on no. of days of last exposure.
private String getNotificationMsg(int days){ String message; if (days == 0){ message = context.getString(R.string.notification_message_zero_days); } else if (days == 1){ message = context.getString(R.string.notification_message_one_day, days); } else{ message = context.getStrin...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getMessageCounterHistoryDayLimit();", "static Date calculateNextNotificationDate(Date now, Date sentDate, List<Integer> remindSteps) {\n Calendar sentCal = Calendar.getInstance();\n sentCal.setTime(sentDate);\n for (int dayOffset : remindSteps) {\n sentCal.add(Calendar.DAY_OF_...
[ "0.63854843", "0.5832207", "0.5826051", "0.57030284", "0.55951476", "0.5548203", "0.5458904", "0.5452138", "0.54486674", "0.5435018", "0.54181", "0.54118234", "0.5391774", "0.5379785", "0.5355118", "0.535274", "0.5351294", "0.534439", "0.53383267", "0.53379595", "0.53336495",...
0.6379115
1
TODO Autogenerated method stub
@Override public int describeContents() { return 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
Creates a new instance of SimpleLongListSelectionModel
public SimpleLongListSelectionModel(long firstIndex, long lastIndex) { this.firstIndex = firstIndex; this.lastIndex = lastIndex; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addLongListSelectionListener(LongListSelectionListener x) {\n return;\r\n }", "public static ListDialog createSelectScannableDialog(Composite parent, List<String> longNameList, List<String> shortNameList) {\n\t\tListDialogWithAdvanced ld = new ListDialogWithAdvanced(parent.getShell());\n\t\...
[ "0.5945575", "0.5679786", "0.5648489", "0.5195322", "0.5162112", "0.5061932", "0.5049306", "0.5037449", "0.50229406", "0.5001313", "0.49434382", "0.492763", "0.489755", "0.489071", "0.48868638", "0.48819512", "0.4867649", "0.48293594", "0.48257077", "0.47941777", "0.4783408",...
0.7416025
0
no changes will be made
public void addLongListSelectionListener(LongListSelectionListener x) { return; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "public void verarbeite() {\n\t\t\r\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tpublic void just() {...
[ "0.65103716", "0.64866143", "0.6443568", "0.638618", "0.63795954", "0.631629", "0.6306955", "0.6303124", "0.6283422", "0.6271734", "0.6264131", "0.62495416", "0.62236273", "0.62236273", "0.62236273", "0.6216388", "0.6213517", "0.6213517", "0.6213517", "0.6213517", "0.6170897"...
0.0
-1
FIXME: should be allowed?
public void insertIndexInterval(long index, long length, boolean before) { return; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected boolean func_70814_o() { return true; }", "public void method_4270() {}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\...
[ "0.59193146", "0.5796188", "0.578941", "0.57590693", "0.5755427", "0.5689384", "0.5662894", "0.5630142", "0.5613885", "0.56084406", "0.55921406", "0.5563422", "0.5544401", "0.54950285", "0.5491569", "0.54870826", "0.5471602", "0.54674363", "0.54638946", "0.54516006", "0.54447...
0.0
-1
FIXME: should be allowed?
public void removeIndexInterval(long index0, long index1) { return; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected boolean func_70814_o() { return true; }", "public void method_4270() {}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\...
[ "0.59193146", "0.5796188", "0.578941", "0.57590693", "0.5755427", "0.5689384", "0.5662894", "0.5630142", "0.5613885", "0.56084406", "0.55921406", "0.5563422", "0.5544401", "0.54950285", "0.5491569", "0.54870826", "0.5471602", "0.54674363", "0.54638946", "0.54516006", "0.54447...
0.0
-1
SI NO EXISTE LA BASE DE DATOS LA CREA Y EJECUTA LOS SIG. COMANDOS
@Override public void onCreate(SQLiteDatabase db) { db.execSQL(CREATE_TABLE); guardarUsuarios(db); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void instalarBaseDatos()\r\n\t{\r\n\t\tString nombrebuscado = \"information_schema\";\r\n\t\tArrayList parametrosbd = parametrosConectorBaseDatos();\r\n\t\tif(parametrosbd != null)\r\n\t\t{\r\n\t\t\tif(parametrosbd.size()>0)\r\n\t\t\t{\r\n\t\t\t\tnombrebuscado =(String)parametrosbd.get(0);\r\n\t\t\t}\r\n\t\...
[ "0.5926699", "0.5871431", "0.5852393", "0.5718121", "0.5706004", "0.56983435", "0.5670512", "0.5644296", "0.56045574", "0.5580212", "0.5578965", "0.55762625", "0.55651206", "0.5551234", "0.55413187", "0.5526223", "0.5525761", "0.55209947", "0.5511072", "0.5508549", "0.5503243...
0.0
-1
SE ELIMINA LA VERSION DE BD ANTERIOR db.execSQL("DROP TABLE IF EXISTS Cliente"); db.execSQL(sql);
@Override public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void esborrarTaula() throws SQLException {\n bd.execSQL(\"DROP TABLE IF EXISTS \" + BD_TAULA);\n }", "public void vaciarCarrito() {\r\n String sentSQL = \"DELETE from carrito\";\r\n try {\r\n Statement st = conexion.createStatement();\r\n st.executeUpdate(sent...
[ "0.72297233", "0.71093166", "0.70148927", "0.6902109", "0.6818023", "0.6810364", "0.68038315", "0.6747096", "0.6728373", "0.66967916", "0.6690783", "0.66670805", "0.6659875", "0.6657008", "0.66448945", "0.65929157", "0.6589357", "0.6564735", "0.6548074", "0.65451777", "0.6538...
0.0
-1
PARA RETORNAR LOS USUARIOS
public ArrayList llenar_lv(){ ArrayList<String> lista = new ArrayList<>(); SQLiteDatabase database = this.getWritableDatabase(); String q = "SELECT * FROM " + TABLE_NAME; Cursor registros = database.rawQuery(q,null); if(registros.moveToFirst()){ do{ li...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void carregarAlunosTurma() {\n AcessoFirebase.getFirebase().addListenerForSingleValueEvent(new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n getUidUsuariosTurma(dataSnapshot);\n montandoArrayListUsuari...
[ "0.6425432", "0.6400124", "0.63213235", "0.6170966", "0.6073861", "0.60719323", "0.6022658", "0.60132265", "0.59905857", "0.5966748", "0.5944699", "0.5921496", "0.58894706", "0.5859111", "0.5855518", "0.58519125", "0.5845736", "0.5840949", "0.5821814", "0.5801074", "0.5796653...
0.0
-1
Constructor de la clase. Inicializa sus variable.
public ModuloAdministradorDeClientesYConexiones(Estadistico estadistico, EstadisticoConsulta estadisticoConsulta, PriorityQueue<Evento> listaDeEventos, CalculadorValoresAleatorios calculador, double reloj, int k, double timeout){ super(estadistico, estadisticoConsulta, listaDeEventos, calculador, reloj, k); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Constructor() {\r\n\t\t \r\n\t }", "public ValorVariavel() {\r\n }", "public Constructor(){\n\t\t\n\t}", "public Pasien() {\r\n }", "public AntrianPasien() {\r\n\r\n }", "public Caso_de_uso () {\n }", "public Chauffeur() {\r\n\t}", "public Alojamiento() {\r\n\t}", "public Valvula(){}", ...
[ "0.7818523", "0.74560845", "0.7341707", "0.73280793", "0.72704023", "0.7235038", "0.71252185", "0.71152663", "0.7098887", "0.70980066", "0.70752", "0.7060938", "0.7017437", "0.70151114", "0.6954102", "0.6947933", "0.69438106", "0.69234943", "0.691005", "0.690901", "0.6900822"...
0.0
-1
Procesa la llegada de una consulta.
@Override public void procesarLlegada(Consulta consulta){ consulta.setTipoModulo(TipoModulo.ClientesYConexiones); //La consulta se encuentra en este módulo. if(numeroServidores == 0){ conexionesDescartadas++; listaDeEventos.removeIf((Evento ev) -> ev.getConsulta() == consult...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void consult() throws Exception {\n\t// TODO Consult\n\ttry {\n\t String page = \"ume_unidade_medidaConsult.jsp\";// defina aqui a pagina que deve ser chamada\n\t getResponse().sendRedirect(page); \n\t} catch (Exception e){} \n }", "public void action_consultar(ActionEvent actionEvent) throws GWorkExce...
[ "0.6862156", "0.67460406", "0.6733953", "0.66830796", "0.6626669", "0.65177464", "0.65012085", "0.6440257", "0.641289", "0.6398377", "0.6393097", "0.63872015", "0.6369824", "0.6339738", "0.6315629", "0.63068414", "0.62765884", "0.6247149", "0.6242042", "0.6231125", "0.6221995...
0.65124404
6
Devuelve la cantidad de conexiones que han sido descartadas.
public int getConexionesDescartadas(){ return conexionesDescartadas; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setConexionesDescartadas(int conexionesDescartadas){\n this.conexionesDescartadas = conexionesDescartadas;\n }", "private void decrConnectionCount() {\n connectionCount.dec();\n }", "int getConnectionCount();", "public static int getConnectionCount()\r\n {\r\n return count...
[ "0.69515026", "0.62869", "0.6236587", "0.61678964", "0.6078476", "0.5989034", "0.5978058", "0.59640074", "0.59106916", "0.5904428", "0.58852756", "0.587546", "0.5853921", "0.5850474", "0.5827353", "0.5825351", "0.5770275", "0.57316977", "0.57241046", "0.5577135", "0.55436254"...
0.7002556
0
Asigna la cantidad de conexiones que han sido descartadas.
public void setConexionesDescartadas(int conexionesDescartadas){ this.conexionesDescartadas = conexionesDescartadas; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getConexionesDescartadas(){\n return conexionesDescartadas;\n }", "private void decrConnectionCount() {\n connectionCount.dec();\n }", "public int connectTimeout(){\n return 0; //TODO codavaj!!\n }", "public void liberaConexoes(){\n if(portas > 0){ //Se o número de p...
[ "0.6440303", "0.64236313", "0.58287466", "0.5771286", "0.570006", "0.5654561", "0.5604696", "0.5549755", "0.55345213", "0.5532263", "0.55295825", "0.5523452", "0.55187386", "0.550414", "0.5504092", "0.54881847", "0.5486521", "0.54462254", "0.5435094", "0.54264474", "0.5419987...
0.68264467
0