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
El tiempo de vida que le queda a los fragmentos.
public double getFragmentsLifeTime() { return this.fragmentsLifeTime; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int esquinas(){\n int v=0;\n if (fila==0 && columna==0){\n if(automata.getElemento(fila,columna+1)!=null && automata.getElemento(fila,columna+1).isVivo()){v++;}\n if(automata.getElemento(fila+1,columna+1)!=null && automata.getElemento(fila+1,columna+1).isVivo()){v++;}\n ...
[ "0.55649567", "0.54844564", "0.53038037", "0.52901125", "0.5132096", "0.5127524", "0.512144", "0.5109899", "0.50781405", "0.5068137", "0.50488997", "0.50430053", "0.50066465", "0.4998843", "0.49560884", "0.49349374", "0.49340364", "0.49195027", "0.49168992", "0.4908853", "0.4...
0.55245554
1
Convert TelephoneNUmber into JSON object
public void set(TelephoneNumberImpl telephoneNumber) throws JAXRException, JSONException { if (telephoneNumber == null) { setDefaultNumber(); } else { /* * Country code */ String countryCode = telephoneNumber.getCountryCode(); countryCode = (countryCode == null) ? "" : countryCode...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getPhoneNumber();", "java.lang.String getPhoneNumber();", "java.lang.String getPhoneNumber();", "com.google.protobuf.ByteString\n getPhoneNumberBytes();", "com.google.protobuf.ByteString\n getPhoneNumberBytes();", "public String getPhoneNumber() {\r\n return number;\r\n }...
[ "0.674754", "0.674754", "0.674754", "0.648711", "0.6354429", "0.63268447", "0.63221437", "0.62621546", "0.62290263", "0.62197", "0.61673284", "0.6157616", "0.6157404", "0.61572176", "0.61454475", "0.61440295", "0.612834", "0.6118948", "0.6091681", "0.60802317", "0.60793585", ...
0.0
-1
Calificaciones de las actividades
public String actividadCal(String id){ try { //abrir conexión Connection con= conexion.abrirConexion(); //generar consultas Statement s = con.createStatement(); //consulta ResultSet rs = s.executeQuery("SELECT avg(calificacion) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getActivacion();", "public ManipularEstudiantes() {\n initComponents();\n cme = new Control_Mantenimiento_Estudiante(this);\n this.gUI_botones2.agregar_eventos(cme);\n }", "public void activar(){\n\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tgetC...
[ "0.6170299", "0.6100967", "0.60774034", "0.59587175", "0.58925015", "0.5888647", "0.58689284", "0.5858685", "0.57556015", "0.5748248", "0.574453", "0.5726041", "0.5708072", "0.570047", "0.56573147", "0.5656394", "0.5643602", "0.5637834", "0.56094295", "0.56065845", "0.5603147...
0.0
-1
Datos de las actividades
public String[][] datosActividades(String where) { ResultSet sql; try { Connection con = conexion.abrirConexion(); Statement s = con.createStatement(); sql = s.executeQuery("SELECT actividad.idActividad, actividad.nombre, tiene.foto FROM actividad " + ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void limpiarCamposActividadesYRecord() {\r\n try {\r\n opcionTableroControlSeguim = \"\";\r\n estadoPanelMisActivid = false;\r\n estadoPanelMisRecordat = false;\r\n estadoPanelActividAsign = false;\r\n estadoPanelRecordatAsign = false;\r\n ...
[ "0.66408294", "0.65064967", "0.64952666", "0.64927405", "0.64927405", "0.6492452", "0.6475209", "0.646996", "0.6420803", "0.6326416", "0.6293214", "0.62534004", "0.6239084", "0.6191878", "0.615435", "0.61423266", "0.6137362", "0.6089828", "0.6086854", "0.6084279", "0.60461867...
0.0
-1
Datos de los Estilos de viaje
public String[][] datosEstiloViaje() { ResultSet sql; try { Connection con = conexion.abrirConexion(); Statement s = con.createStatement(); sql = s.executeQuery("SELECT `idEstiloViaje`, `tipo` FROM `estiloviaje` ;"); //número de registros obren...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void getDatosVisitasTerreno(){\n mDatosVisitasTerreno = estudioAdapter.getListaDatosVisitaTerrenosSinEnviar();\n //ca.close();\n }", "private void mostrarEstadoObjetosUsados() {\n Beneficiario beneficiario = null;\n FichaSocial fichaSocial = null;\n SolicitudBenefici...
[ "0.66409963", "0.65409213", "0.6371203", "0.63184637", "0.6279996", "0.62182254", "0.61429507", "0.6114012", "0.6101791", "0.61003745", "0.60913527", "0.6069392", "0.6037395", "0.60159814", "0.60034955", "0.59851193", "0.5973809", "0.5972739", "0.5957089", "0.5950152", "0.593...
0.59028685
24
TODO Autogenerated method stub
public static void main(String[] args) { int[] arr = {60,12,8,24,32}; bubbleSort(arr); for(int i=0;i<arr.length;i++) { System.out.println(arr[i]); } }
{ "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
add the pref from the xml file
@Override public void onCreatePreferences(Bundle bundle, String s) { addPreferencesFromResource(R.xml.pref); sharedPreferences = PreferenceManager.getDefaultSharedPreferences(getActivity()); //onSharedPreferenceChanged(sharedPreferences, getString(R.string.language_key)); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onCreatePreferences(Bundle bundle, String s) {\n addPreferencesFromResource(R.xml.preferences);\n }", "public XmlParserPref(Context cont, String name) {\n\t\tcontext = cont;\n\t\tprefEdit = PreferenceManager.getDefaultSharedPreferences(context).edit();\n\t\tprofileName = name...
[ "0.610242", "0.591872", "0.58630776", "0.5674038", "0.5550915", "0.55343544", "0.5528672", "0.5489243", "0.5441654", "0.52949786", "0.52382296", "0.52237505", "0.52092427", "0.51802003", "0.5154113", "0.5153295", "0.50719607", "0.50635386", "0.50257164", "0.5023442", "0.50152...
0.5364627
9
Get the preference that changed
@Override public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key) { Preference preference = findPreference(key); if (preference instanceof ListPreference) { // if the preference is a ListPreference ListPreference listPreference = (ListPrefer...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean onPreferenceChange(Preference preference, Object newValue) {\n \t\t\treturn false;\r\n \t\t}", "private void getPrefStatus() {\n Log.i(TAG, \"getPrefStatus()\");\n mPref = getSharedPreferences(PREF_NAME, Context.MODE_WORLD_READABLE\n | Context.MODE_WORLD_WRITEABLE);\n ...
[ "0.63911873", "0.6365511", "0.6177052", "0.59028345", "0.58972174", "0.5873083", "0.58409566", "0.58073276", "0.576072", "0.5758831", "0.5730942", "0.5726929", "0.5724034", "0.5721623", "0.5702294", "0.5664588", "0.56543285", "0.5636981", "0.5625692", "0.5619121", "0.55916435...
0.0
-1
Class : Task : This class
public interface Reload { public void reloadDataNow(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Task(){}", "public Task(){\n super();\n }", "public Task() { }", "public Task() {\r\n }", "public abstract void task();", "public Task() {\n }", "public Task() {\n\t}", "public Task getTask() { return task; }", "Task createTask();", "Task createTask();", "Task createTask(...
[ "0.82330376", "0.80494094", "0.78120977", "0.78106815", "0.7753145", "0.7701986", "0.76280504", "0.75008243", "0.74462205", "0.74462205", "0.74462205", "0.7424874", "0.73489904", "0.7248551", "0.7248551", "0.7247897", "0.7243319", "0.72044754", "0.71658987", "0.71182656", "0....
0.0
-1
///createFromRNASequence test cases//// /TEST 1 INPUT: "CCGUUGGCACUGUUG" EXPECTED OUTPUT = P,L,A ACTUAL OUTPUT = P,L,A With a string that has repeated codons, this also checks that the addCodon method and increaseCount method work properly.
@Test public void rnatest1(){ AminoAcidLL first = AminoAcidLL.createFromRNASequence(a); char[] firstArr = new char[3]; char[] answer = {'P','L','A'}; for(int i = 0; i < firstArr.length; i++){ firstArr[i] = first.aminoAcid; System.out.println(first.aminoAcid); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\r\n\t\t P187RepeatedDNASequences p = new P187RepeatedDNASequences();\r\n\t\t List<String> r = p.findRepeatedDnaSequences(\"AAAAACCCCCAAAAACCCCCCAAAAAGGGTTT\"); //\r\n\t\t for(String t : r) {\r\n\t\t\t System.out.println(t);\t\t\t \r\n\t\t }\r\n\t }", "public List<String>...
[ "0.5956345", "0.5849933", "0.57949096", "0.5786242", "0.5766592", "0.57316786", "0.5698466", "0.5686408", "0.5673016", "0.5666142", "0.5649741", "0.564798", "0.56158626", "0.5613893", "0.5562133", "0.5536902", "0.5524142", "0.55085766", "0.5473711", "0.54443115", "0.5437689",...
0.57620865
5
/TEST 2 INPUT: "UAUAGCGUGUUUUAUUGAUCUUGC" EXPECTED OUTPUT = T, S, V, F ACTUAL OUTPUT = T, S, V, F With a string that has a STOP codon to check the condition on createFromRNASequence that stops the creation of codons even if there are more codons in front of the stop.
@Test public void rnatest2(){ AminoAcidLL first = AminoAcidLL.createFromRNASequence(b); char[] firstArr = new char[4]; char[] answer = {'T','S', 'V', 'F'}; for(int i = 0; i < firstArr.length; i++){ firstArr[i] = first.aminoAcid; System.out.println(first.aminoA...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private int findStopCodon(String sequentie,int start){\n\t for(int i = start; i+3<sequentie.length();i+=3){\n\t if(sequentie.substring(i,i+3).contains(\"TAG\")||sequentie.substring(i,i+3).contains(\"TAA\")||sequentie.substring(i,i+3).contains(\"TGA\")){\n\t return i+3;\n\t }\n\t }\n\...
[ "0.60219514", "0.5818157", "0.5659575", "0.5401181", "0.5357437", "0.53478867", "0.5299153", "0.528141", "0.52808356", "0.5279741", "0.5254995", "0.52371037", "0.5186963", "0.5100393", "0.50917816", "0.504794", "0.50426394", "0.49887747", "0.49801263", "0.49191016", "0.489342...
0.0
-1
///aminoAcidList test cases///// /TEST 3 INPUT: "CCGUUGGCACUGUUG" EXPECTED OUTPUT = T, S, V, F ACTUAL OUTPUT = T, S, V, F This test ensures that the method returns an array with the aminoacids of the linked list in the order they appear.
@Test public void aminoListTest1(){ AminoAcidLL first = AminoAcidLL.createFromRNASequence(a); char[] expected = {'P','L','A'}; assertArrayEquals(expected, first.aminoAcidList()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void aminoListTest2(){\n AminoAcidLL first = AminoAcidLL.createFromRNASequence(d);\n char[] expected = {'C','F','K','N','T'};\n assertArrayEquals(expected, first.aminoAcidList());\n }", "@Test\n public void rnatest1(){\n AminoAcidLL first = AminoAcidLL.createFr...
[ "0.7947818", "0.71540666", "0.70839995", "0.6494729", "0.64518356", "0.62997764", "0.60977024", "0.5514436", "0.54919934", "0.54561514", "0.5357855", "0.53310984", "0.5327537", "0.5311601", "0.5250021", "0.5249592", "0.5131495", "0.51002765", "0.5034271", "0.49926308", "0.495...
0.7728023
1
/TEST 4 INPUT: "UGUUUUAAAAAUAACACU"; EXPECTED OUTPUT = T, S, V, F ACTUAL OUTPUT = T, S, V, F The tests creates an AminoAcidLL with a string that has a STOP codon to ensure that the stop works and only the wanted codons are converted to aminoacids and then added to the array
@Test public void aminoListTest2(){ AminoAcidLL first = AminoAcidLL.createFromRNASequence(d); char[] expected = {'C','F','K','N','T'}; assertArrayEquals(expected, first.aminoAcidList()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void aminoListTest1(){\n AminoAcidLL first = AminoAcidLL.createFromRNASequence(a);\n char[] expected = {'P','L','A'};\n assertArrayEquals(expected, first.aminoAcidList());\n }", "@Test\n public void rnatest2(){\n AminoAcidLL first = AminoAcidLL.createFromRNASeq...
[ "0.6283604", "0.61179453", "0.5980319", "0.5850225", "0.5830683", "0.57799447", "0.5625223", "0.55858064", "0.5490835", "0.5434673", "0.5409878", "0.5326079", "0.5313844", "0.5213123", "0.5202516", "0.5200701", "0.51947474", "0.5193706", "0.5145225", "0.5135736", "0.5093737",...
0.6344871
0
///aminoAcidCounts test cases///// /TEST 5 INPUT: "CCGUUGGCACUGUUG" EXPECTED OUTPUT = 1,3,1 ACTUAL OUTPUT = 1,3,1 This test uses the aminoAcidCounts method on every node of the list and then, adds its result to an array.
@Test public void aminoCountsTest1(){ AminoAcidLL first = AminoAcidLL.createFromRNASequence(a); int[] expected = {1,3,1}; assertArrayEquals(expected, first.aminoAcidCounts()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void aminoCountsTest2(){\n AminoAcidLL first = AminoAcidLL.createFromRNASequence(b);\n int[] expected = {2,1,1,1};\n assertArrayEquals(expected, first.aminoAcidCounts());\n }", "@Test\n public void aminoListTest2(){\n AminoAcidLL first = AminoAcidLL.createFromR...
[ "0.7451165", "0.64455473", "0.6272217", "0.5929978", "0.5873829", "0.57270384", "0.559852", "0.559329", "0.5586074", "0.54737246", "0.54198563", "0.5387386", "0.5382878", "0.53749776", "0.53549623", "0.53255856", "0.528432", "0.52719235", "0.5258622", "0.5242458", "0.523482",...
0.76682246
0
/TEST 6 INPUT: "UAUAGCGUGUUUUAUUGAUCUUGC" EXPECTED OUTPUT = 2,1,1,1 ACTUAL OUTPUT = 2,1,1,1 This test uses the aminoAcidCounts method on every node of the list and then, adds its result to an array
@Test public void aminoCountsTest2(){ AminoAcidLL first = AminoAcidLL.createFromRNASequence(b); int[] expected = {2,1,1,1}; assertArrayEquals(expected, first.aminoAcidCounts()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void aminoCountsTest1(){\n AminoAcidLL first = AminoAcidLL.createFromRNASequence(a);\n int[] expected = {1,3,1};\n assertArrayEquals(expected, first.aminoAcidCounts());\n }", "public int[] contarCodons(String seq){\n int [] countCodons=new int[65];\n for (i...
[ "0.71021396", "0.584594", "0.5838221", "0.57940745", "0.57648265", "0.5719923", "0.56811833", "0.5654703", "0.5654535", "0.56239194", "0.5600866", "0.5591426", "0.5584711", "0.55815476", "0.5537751", "0.5522771", "0.54953647", "0.5478879", "0.53917915", "0.5386155", "0.530957...
0.7005942
1
///aminoAcidCompare test cases///// /TEST 7 INPUT: c = "GCUGAGGAUAUGUCA", d = "UGUUUUAAAAAUAACACU" EXPECTED OUTPUT = 1 ACTUAL OUTPUT = 1 Using two lists of different "size", the number of nodes it's compared to check that their difference is 1.
@Test public void aminoCompareTest1(){ //these list are already sorted AminoAcidLL first = AminoAcidLL.createFromRNASequence(c); AminoAcidLL second = AminoAcidLL.createFromRNASequence(d); int expected = 1; assertEquals(expected, first.aminoAcidCompare(second)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void codonCompare2(){\n //these list are already sorted\n AminoAcidLL first = AminoAcidLL.createFromRNASequence(c);\n AminoAcidLL second = AminoAcidLL.createFromRNASequence(d);\n int expected = 1;\n assertEquals(expected, first.codonCompare(second));\n\n }", ...
[ "0.6912721", "0.69059646", "0.67789763", "0.63020575", "0.61177087", "0.61165255", "0.5932029", "0.58990496", "0.5843262", "0.5828416", "0.5761651", "0.5732703", "0.5725121", "0.5715867", "0.5714766", "0.56744176", "0.56693566", "0.5645776", "0.5635859", "0.56353045", "0.5632...
0.7193039
0
/TEST 8 INPUT: c = "GCUGAGGAUAUGUCA" EXPECTED OUTPUT = 0 ACTUAL OUTPUT = 0 Using two lists of the same "size", the number of nodes it's compared to check that they are the same.
@Test public void aminoCompareTest2() { //these list are already sorted AminoAcidLL first = AminoAcidLL.createFromRNASequence(c); AminoAcidLL second = AminoAcidLL.createFromRNASequence(c); int expected = 0; assertEquals(expected, first.aminoAcidCompare(second)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void codonCompare1(){\n //these list are already sorted\n AminoAcidLL first = AminoAcidLL.createFromRNASequence(a);\n AminoAcidLL second = AminoAcidLL.createFromRNASequence(b);\n int expected = 0;\n assertEquals(expected, first.codonCompare(second));\n }", ...
[ "0.59854275", "0.59502614", "0.5916621", "0.58778816", "0.58054", "0.57652926", "0.57104194", "0.5703489", "0.5673752", "0.5663008", "0.5661911", "0.5661232", "0.560841", "0.5565171", "0.5525813", "0.5524935", "0.55227876", "0.5515673", "0.5511595", "0.55087745", "0.5500281",...
0.58023256
5
///codonCompare test cases///// /TEST 9 failed INPUT: a = "CCGUUGGCACUGUUG", b = "UAUAGCGUGUUUUAUUGAUCUUGC" EXPECTED OUTPUT = 0 ACTUAL OUTPUT = 2 This test checks the difference between the count of codons of two lists. This test failed, the expected output is 0 but the method returned 2.
@Test public void codonCompare1(){ //these list are already sorted AminoAcidLL first = AminoAcidLL.createFromRNASequence(a); AminoAcidLL second = AminoAcidLL.createFromRNASequence(b); int expected = 0; assertEquals(expected, first.codonCompare(second)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void codonCompare2(){\n //these list are already sorted\n AminoAcidLL first = AminoAcidLL.createFromRNASequence(c);\n AminoAcidLL second = AminoAcidLL.createFromRNASequence(d);\n int expected = 1;\n assertEquals(expected, first.codonCompare(second));\n\n }", ...
[ "0.78404963", "0.6639819", "0.6585275", "0.6386523", "0.62974375", "0.6056575", "0.5997496", "0.5900761", "0.58482563", "0.5815162", "0.58055186", "0.579705", "0.5774617", "0.57616574", "0.57518166", "0.57027054", "0.56953466", "0.56824744", "0.567909", "0.5652402", "0.560029...
0.8030712
0
/TEST 10 INPUT: c = "GCUGAGGAUAUGUCA", d = "UGUUUUAAAAAUAACACU"; EXPECTED OUTPUT = 1 ACTUAL OUTPUT = 1 This test checks the difference between the count of codons of two lists.
@Test public void codonCompare2(){ //these list are already sorted AminoAcidLL first = AminoAcidLL.createFromRNASequence(c); AminoAcidLL second = AminoAcidLL.createFromRNASequence(d); int expected = 1; assertEquals(expected, first.codonCompare(second)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void codonCompare1(){\n //these list are already sorted\n AminoAcidLL first = AminoAcidLL.createFromRNASequence(a);\n AminoAcidLL second = AminoAcidLL.createFromRNASequence(b);\n int expected = 0;\n assertEquals(expected, first.codonCompare(second));\n }", ...
[ "0.652232", "0.64420253", "0.6275387", "0.62154484", "0.6193609", "0.61149573", "0.6065952", "0.5916092", "0.59061265", "0.58879507", "0.5879223", "0.5863115", "0.5862178", "0.5848862", "0.58433634", "0.58354306", "0.5807061", "0.5775755", "0.5767679", "0.5764689", "0.5760987...
0.6682634
0
/ public: Genesis interface
public void generate(GenCtx ctx) throws GenesisError { if((getEntries() == null) || (getEntries().length == 0)) return; //~: the start day (inclusive) Date curDay = findFirstGenDate(ctx); if(curDay == null) return; //~: the final day (inclusive) Date endDay = findLastGenDate(ctx); if(endDay == ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Genesis getGenesis()\n\t\t{\n\t\t\treturn genesis;\n\t\t}", "@Override\n public void newGame() {\n //TODO Implement this method\n }", "@Override\n public void loadGame() {\n\n }", "@Override\n\tpublic void onEnter(Game game) {\n\t\t\n\t}", "public void newGame();", "public void ...
[ "0.5767191", "0.5721539", "0.5623619", "0.5584521", "0.55216205", "0.55216205", "0.55216205", "0.5503036", "0.54859805", "0.547391", "0.5452931", "0.5428785", "0.5419998", "0.5396115", "0.53878224", "0.53553694", "0.53430504", "0.5329361", "0.5310201", "0.53058034", "0.530455...
0.0
-1
/ public: DaysGenDisp (bean) interface
public Entry[] getEntries() { return entries; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@SuppressWarnings(\"unchecked\")\n\tprotected void genObjects(GenCtx ctx, Date day)\n\t throws GenesisError\n\t{\n\t\tEntry[] entries = selectEntries(ctx, genObjsNumber(ctx));\n\t\tMap inds = new IdentityHashMap(getEntries().length);\n\n\t\t//~: put initial in-day indices\n\t\tfor(Entry e : getEntries()...
[ "0.5939649", "0.5782983", "0.5732747", "0.57224", "0.56892115", "0.5627462", "0.5582412", "0.55741113", "0.5568174", "0.55254006", "0.550635", "0.55055565", "0.54535896", "0.54507", "0.544911", "0.5448554", "0.54367036", "0.5416804", "0.5404859", "0.5400663", "0.53748256", ...
0.0
-1
This flag (default is false) tells to create separated transaction for each new day. This allows to insert data for long terms without overloading the database write buffer.
@Param public boolean isDayTx() { return dayTx; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean createTransaction() {\n\t\t\treturn false;\n\t\t}", "public boolean insertDateToDB() {\n return false;\n }", "public boolean flushTransactions() {\n return true;\n }", "public void transactionStarted() {\n transactionStart = true;\n }", "@Override\n public vo...
[ "0.60562706", "0.5508413", "0.5108981", "0.50928473", "0.5044753", "0.50286454", "0.49920648", "0.48847282", "0.4858228", "0.48275346", "0.47845173", "0.476541", "0.4751032", "0.47408172", "0.47401765", "0.4729107", "0.47284794", "0.47131416", "0.47071055", "0.47059298", "0.4...
0.531055
2
/ public: Entry (bean) interface
public Genesis getGenesis() { return genesis; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface Entry {\n\n}", "protected Entry(){}", "public interface Entry {\n // TODO: constraint, depends on event.isRelayEvent / isIndividualEvent\n @NotNull\n MeetAthlete getAthlete();\n RelayTeam getRelayTeam();\n\n Club getClub();\n\n @NotNull\n Event getEvent();\n // TODO: if...
[ "0.7700391", "0.75066566", "0.707916", "0.6817557", "0.66536736", "0.65787023", "0.6563431", "0.6556655", "0.6398198", "0.639472", "0.6362455", "0.63378686", "0.63330525", "0.6307396", "0.62938946", "0.6252663", "0.62268025", "0.62088364", "0.61385715", "0.6137679", "0.611155...
0.0
-1
/ protected: generation support
protected Date findFirstGenDate(GenCtx ctx) { return EX.assertn(ctx.get(Date.class)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected abstract void generate();", "public void generate() {\n\t}", "public abstract void generate();", "public static void generateCode()\n {\n \n }", "@SuppressWarnings(\"unused\")\n private void generateInfo()\n {\n }", "abstract T generate();", "@Override\r\n\tpublic void b...
[ "0.8226954", "0.792424", "0.78549045", "0.7177981", "0.695731", "0.6873769", "0.67692804", "0.674632", "0.67127967", "0.6707469", "0.6678337", "0.665548", "0.66452366", "0.6605502", "0.65726936", "0.6553309", "0.6546041", "0.65458405", "0.6487469", "0.6466948", "0.63739663", ...
0.0
-1
!: invoke day generation
protected void genObjectsTx(GenCtx ctx, Date day) throws GenesisError { genObjects(ctx, day); //~: mark that day for(Entry e : getEntries()) if(e.getGenesis() instanceof DaysGenPart) ((DaysGenPart)e.getGenesis()).markDayGenerated(ctx); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void runEachDay() {\n \n }", "@SuppressWarnings(\"unchecked\")\n\tprotected void genObjects(GenCtx ctx, Date day)\n\t throws GenesisError\n\t{\n\t\tEntry[] entries = selectEntries(ctx, genObjsNumber(ctx));\n\t\tMap inds = new IdentityHashMap(getEntries().length);\n\n\t\t//~: put in...
[ "0.74691164", "0.69458467", "0.6908332", "0.68715966", "0.6846067", "0.66031194", "0.65805554", "0.6449804", "0.64338934", "0.6293451", "0.62634283", "0.62375504", "0.62353384", "0.62108797", "0.62060606", "0.61771405", "0.6163382", "0.61617225", "0.60671264", "0.60326904", "...
0.6734308
5
~: select the generator entries
@SuppressWarnings("unchecked") protected void genObjects(GenCtx ctx, Date day) throws GenesisError { Entry[] entries = selectEntries(ctx, genObjsNumber(ctx)); Map inds = new IdentityHashMap(getEntries().length); //~: put initial in-day indices for(Entry e : getEntries()) inds.put(e, 0); //...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void select() {}", "public void selectorGenero(java.util.Scanner key) {\n\t\tint selector2;\n\t\tdo {\n\t\t\tSystem.out.println(\"1 para hombre 2 para mujer\");\n\t\t\tselector2 = key.nextInt();\n\t\t\t\n\t\t\tswitch(selector2) {\n\t\t\tcase 1:\n\t\t\t\tthis.setGenero(Genero.H);\n\t\t\t\tbreak;\n\t\t\tcas...
[ "0.58004403", "0.5610756", "0.55949426", "0.5530605", "0.54300696", "0.53839684", "0.5368364", "0.5322632", "0.5309272", "0.5308054", "0.5225257", "0.52063495", "0.51636326", "0.5156463", "0.5153673", "0.51329595", "0.5130576", "0.5130242", "0.5083571", "0.505495", "0.5049616...
0.0
-1
Chooses random entries with of number given depending on their weights.
protected Entry[] selectEntries(GenCtx ctx, int length) { Entry[] result = new Entry[length]; //~: get total weight int W = 0; for(Entry e : getEntries()) if(e.getWeight() < 0) throw EX.state(); else W += e.getWeight(); //~: select other entries in random next: for(int i = 0;(i < length);i++) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static int getWeightedRand(int[] weights) {\n double total = 0;\n for(int weight : weights) {\n total += (double)weight;\n }\n\n double rand = Math.random() * total;\n for(int i = 0; i < weights.length; i++) {\n if (rand < (double)weights[i]) return i...
[ "0.703548", "0.6733252", "0.6191518", "0.6172298", "0.61425906", "0.60898334", "0.59679973", "0.58679074", "0.58645606", "0.58399886", "0.5825537", "0.5742653", "0.5707178", "0.5677591", "0.5600547", "0.5598978", "0.5598978", "0.5594992", "0.55867124", "0.5570183", "0.5513669...
0.5733086
12
/4 create constructor and var for field
@Transactional//to interacting with the relational database //Create method called signup inside this class which take RegisterRequest as input /*1*/ public void signup(RegisterRequest registerRequest) throws SpringRedditException { //the first thing we create an object for the user class User u...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Field() {\r\n\t}", "ObjectField createObjectField();", "public Field(String watermark,\n String showfieldname,\n String saveRequired,\n String jfunction,\n String onChange,\n String onKeyDown,\n String defaul...
[ "0.7172083", "0.6816015", "0.66348636", "0.65322614", "0.6490631", "0.6478056", "0.64475757", "0.6441657", "0.6427961", "0.63535255", "0.6306492", "0.6265273", "0.62511826", "0.6159978", "0.6129341", "0.6044088", "0.60129356", "0.6000999", "0.5988052", "0.5966708", "0.5909347...
0.0
-1
we take a token whenever user clicks on url, and look it up DB, fetch the user who created token and enable user remaining part here is call this signup from AuthController
private String generateVerificationToken(User user) { String token = UUID.randomUUID().toString(); VerificationToken verificationToken = new VerificationToken(); verificationToken.setToken(token); verificationToken.setUser(user);// after that we save it to repository verification...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void registerUser()\n {\n /*AuthService.createAccount takes a Consumer<Boolean> where the result will be true if the user successfully logged in, or false otherwise*/\n authService.createAccount(entryService.extractText(namedFields), result -> {\n if (result.isEmpty()) {\n ...
[ "0.66236436", "0.6529038", "0.64220417", "0.63642794", "0.63069105", "0.62621313", "0.62568706", "0.6226217", "0.6219281", "0.61505866", "0.6123191", "0.6112136", "0.6102174", "0.6090469", "0.60674345", "0.6035616", "0.5992802", "0.59833187", "0.5977764", "0.5965706", "0.5962...
0.0
-1
get username by typing verification token
@Transactional void fetchUserAndEnable(VerificationToken verificationToken) throws SpringRedditException { String username = verificationToken.getUser().getUsername(); //and call orElseThrow as supplier to throws out custom springRedEx User user = userRepository.findByUsername(username).orEl...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getUsernameFromToken(String token);", "String getUserUsername();", "java.lang.String getUsername();", "java.lang.String getUsername();", "java.lang.String getUsername();", "java.lang.String getUsername();", "java.lang.String getUsername();", "java.lang.String getUsername();", "java.lang.Stri...
[ "0.82861555", "0.73254615", "0.72933716", "0.72933716", "0.72933716", "0.72933716", "0.72933716", "0.72933716", "0.72933716", "0.72933716", "0.72933716", "0.714396", "0.7081972", "0.7081972", "0.7081972", "0.7081972", "0.7081972", "0.7081972", "0.7024256", "0.69844455", "0.69...
0.0
-1
Constructor injecting the WebDriver interface.
public Page(final WebDriver webDriver) { this.webDriver = webDriver; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public BasePage(WebDriver driver) {\n this.driver = driver;\n }", "public Page(WebDriver driver) {\n this.driver = driver;\n }", "public RegisterPage(WebDriver driver){ this.driver = driver; }", "public Page(WebDriver webDriver) {\n this.webDriver = webDriver;\n\t}", "protected WebDriv...
[ "0.75262916", "0.73818785", "0.72721624", "0.72582823", "0.72486126", "0.72485757", "0.71461356", "0.71263057", "0.7042996", "0.69736767", "0.69716954", "0.6943052", "0.6933009", "0.6930859", "0.6876304", "0.6796572", "0.67641866", "0.67588985", "0.6721847", "0.6701314", "0.6...
0.6546548
26
Wrapper to open pages in tests.
public static final <E extends Page> E open(String url, final Class<E> page) { log.info("Open page: " + url); WebDriver wd = WebDriverStorage.getDriver(); wd.get(url); final E result = PageFactory.initElements(wd, page); if (!wd.getCurrentUrl().contains(url)) { throw new RuntimeException("Expected url: " +...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testRegularOpen() {\n openUrl();\n }", "@Override\n\tprotected void openPage(PageLocator arg0, Object... arg1) {\n\t\t\n\t}", "@Override\r\n\tprotected void openPage(PageLocator locator, Object... args) \r\n\t{\n\t\t\r\n\t}", "public interface TestPage<D> {\r\n\tpublic TestPage<D> ge...
[ "0.69010645", "0.67921484", "0.6714992", "0.6296569", "0.6237414", "0.607682", "0.60683686", "0.606623", "0.60536754", "0.5950383", "0.59331644", "0.5932362", "0.59070784", "0.5893632", "0.5873894", "0.586733", "0.5819968", "0.5805144", "0.5738264", "0.57318187", "0.5727439",...
0.5672283
25
Allows to open pages that have URL static field in PageObject.class
public static final <E extends Page> E open(final Class<E> page) { return open(getStaticUrl(page).get(), page); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tprotected void openPage(PageLocator arg0, Object... arg1) {\n\t\t\n\t}", "@Override\r\n\tprotected void openPage(PageLocator locator, Object... args) \r\n\t{\n\t\t\r\n\t}", "public ICurrentPage openNewWindow(String url);", "public Object navigate(Class<? extends Page> pageObject) {\n\n Pa...
[ "0.6540353", "0.6419497", "0.6179777", "0.59741056", "0.592116", "0.59149235", "0.58629715", "0.57745343", "0.5752714", "0.57449883", "0.56971145", "0.5674129", "0.56550443", "0.56513774", "0.5634197", "0.56180793", "0.55975217", "0.55710465", "0.5552887", "0.54639757", "0.54...
0.6389967
2
Method to take current page screenshot.
public final File takeScreenshot() { return ((TakesScreenshot) this.webDriver).getScreenshotAs(OutputType.FILE); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void takesScreenshot();", "private void screenshot() {\n final JComponent active = this.active;\n if (active != null && active.isValid()) {\n final BufferedImage image = new BufferedImage(active.getWidth(), active.getHeight(), BufferedImage.TYPE_INT_RGB);\n final Graphics2D ha...
[ "0.7390073", "0.71678996", "0.71494514", "0.70816064", "0.70208395", "0.7005539", "0.68777084", "0.6793097", "0.673738", "0.67288154", "0.6672819", "0.6633908", "0.6625706", "0.64940333", "0.64525265", "0.6444902", "0.6421681", "0.64112014", "0.6382185", "0.6378296", "0.63507...
0.6063615
36
Describes ExpectedCondition when element with locator can have different texts.
protected final ExpectedCondition<WebElement> anyTextToBePresentInElementLocated(final By by, final List<String> text) { return new ExpectedCondition<WebElement>() { @Override public WebElement apply(final WebDriver driver) { try { driver.manage().timeouts().implicitlyWait(0, TimeUnit.SECONDS); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Then(\"^assert that the text \\\"([^\\\"]*)\\\" element has \\\"([^\\\"]*)\\\"$\")\n\tpublic void assert_that_the_text_element_has(String arg1, String arg2) throws Throwable {\n\t\tString[] parts = arg1.split(\"=\");\n\t\tString selector=parts[1];\n\t\tString result = driver.findElement(By.cssSelector(selector))....
[ "0.6783888", "0.671721", "0.64287704", "0.634979", "0.6340184", "0.6204822", "0.59949017", "0.59425104", "0.5938809", "0.5888955", "0.5840092", "0.5781091", "0.5735741", "0.5679489", "0.5635543", "0.5616787", "0.55989254", "0.55959237", "0.558592", "0.55687857", "0.5553075", ...
0.63082516
5
Searches element if we know its locator and several possible texts on it. Timeout for search is default framework timeout.
protected final WebElement findElementWithAnyMessage(final By by, final List<String> messages) { return new WebDriverWait(this.webDriver, Environment.TIMEOUT). withMessage("Couldn't find element by \"" + by + "\" with any text from " + messages). until(ExpectedConditions.refreshed( this.anyTextToBePre...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void waitForTextToBePresentInElement(By locator, String text, Integer... timeOutInSeconds) {\n int attempts = 0;\n while (attempts < 2) {\n try {\n waitFor(ExpectedConditions.textToBePresentInElement(find(locator), text),\n timeOutInSeconds.l...
[ "0.6675174", "0.63881874", "0.62251896", "0.6122042", "0.60644346", "0.6012101", "0.5949612", "0.59308994", "0.5917301", "0.58847475", "0.58665186", "0.58211386", "0.5784901", "0.57799923", "0.5778479", "0.5764724", "0.5749432", "0.5715082", "0.57046705", "0.56856763", "0.567...
0.5607507
25
Allows to get displayed element from the list of elemnents, found by one locator.
protected final WebElement getDisplayed(final List<WebElement> items) { WebElement result = null; for (final WebElement item : items) { if (item.isDisplayed()) { result = item; break; } } if (result == null) { throw new StaleElementReferenceException("Couldn't find displayed element in the list...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Object getComponent(WebElement element);", "public static WebElement displayedElement(List<WebElement> elements){\n\t\n\t\t\n\t\tfor (WebElement element:elements)\n\t {\n\t if (element.isDisplayed()) // correct method: isDisplayed()\n\t return element;\n\t }\n\t\treturn null;\n\t}", "pu...
[ "0.6736742", "0.66431296", "0.6629753", "0.6602465", "0.65580416", "0.6452647", "0.63413846", "0.6250691", "0.6211027", "0.6109853", "0.6059293", "0.60537016", "0.603422", "0.602124", "0.6007974", "0.6006582", "0.60048103", "0.5949047", "0.5940503", "0.5925605", "0.5925605", ...
0.656956
4
Attempts to sign in or register the account specified by the login form. If there are form errors (invalid email, missing fields, etc.), the errors are presented and no actual login attempt is made.
private void attemptLogin() { // Reset errors. mEmailView.setError(null); // Store values at the time of the login attempt. final String email = mEmailView.getText().toString(); boolean cancel = false; View focusView = null; // Check for a valid email a...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void attemptLogin() {\n\n // Reset errors.\n mEmailField.setError(null);\n mPasswordField.setError(null);\n\n // Store values at the time of the login attempt.\n String email = mEmailField.getText().toString();\n String password = mPasswordField.getText().toString(...
[ "0.7640498", "0.73639", "0.7295943", "0.72543454", "0.71835667", "0.71796256", "0.7117505", "0.7117505", "0.7116126", "0.7107617", "0.71063006", "0.7105825", "0.7103685", "0.70957756", "0.70830095", "0.7078655", "0.70479286", "0.7044247", "0.70273155", "0.6994478", "0.697292"...
0.68810403
27
Shows the progress UI and hides the login form.
@TargetApi(Build.VERSION_CODES.HONEYCOMB_MR2) private void showProgress(final boolean show) { // On Honeycomb MR2 we have the ViewPropertyAnimator APIs, which allow for very easy animations. // If available, use these APIs to fade-in the progress spinner. if (Build.VERSION.SDK_INT >= Build.V...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override public void showLoginForm() {\n LoginViewState vs = (LoginViewState) viewState;\n vs.setShowLoginForm();\n\n errorView.setVisibility(View.GONE);\n\n setFormEnabled(true);\n //loginButton.setLoading(false);\n }", "private void displayProgressDialog() {\n pDia...
[ "0.7621026", "0.74284565", "0.73967826", "0.7286585", "0.72790235", "0.72643507", "0.72605824", "0.72436935", "0.7186172", "0.7047085", "0.69236714", "0.6893757", "0.6891113", "0.6866205", "0.68238723", "0.67860216", "0.67708963", "0.6761273", "0.67412", "0.6739837", "0.67139...
0.6713159
44
Get content type from file name alone
public static String getContentType(String filename) { return getTika().detect(filename); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getContentType(String fileExtension);", "String getFileMimeType();", "private String getTypeFromExtension()\n {\n String filename = getFileName();\n String ext = \"\";\n\n if (filename != null && filename.length() > 0)\n {\n int index = filename.lastIndexOf('.')...
[ "0.81802243", "0.7761684", "0.76075655", "0.75817555", "0.7304213", "0.72152656", "0.7204682", "0.71957034", "0.71957034", "0.7177861", "0.7168165", "0.71226054", "0.71226054", "0.71226054", "0.7045974", "0.698749", "0.6985305", "0.6929642", "0.69248646", "0.683194", "0.68096...
0.76035553
3
The initialize method is called after the constructor by JavaFX
@FXML private void initialize() { firstNameColumn.setCellValueFactory(cell -> cell.getValue().firstNameProperty()); lastNameColumn.setCellValueFactory(cell -> cell.getValue().lastNameProperty()); address1Column.setCellValueFactory(cell -> cell.getValue().address1Property()); address2Column.setCellValueFactory...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@FXML\n private void initialize() {\n }", "@FXML\n private void initialize() {\n }", "@FXML\n\tprivate void initialize() {\n\t\t\n\t}", "@FXML\n\tprivate void initialize() {\n\t\t\n\t}", "@FXML\r\n private void initialize() {\r\n \t\r\n \t\r\n \t\r\n \t\r\n \t\r\n }", "@F...
[ "0.8352678", "0.8352678", "0.832463", "0.832463", "0.8315902", "0.8279097", "0.82415074", "0.81593835", "0.811882", "0.79105264", "0.79028976", "0.77808356", "0.7722536", "0.7664532", "0.7619935", "0.75723314", "0.7537433", "0.75085646", "0.74788845", "0.7459452", "0.7449009"...
0.0
-1
Set up the customer view window with a reference to this controller's stage
public void setupDialog(Stage stage) { this.stage = stage; customers = C195Application.getAllCustomers(); customerTable.setItems(customers); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@FXML\n void OnActionShowAddCustomerScreen(ActionEvent event) throws IOException {\n stage = (Stage)((Button)event.getSource()).getScene().getWindow();\n scene = FXMLLoader.load(getClass().getResource(\"/View/AddCustomer.fxml\"));\n stage.setTitle(\"Add Customer\");\n stage.setScene(...
[ "0.69327533", "0.68800807", "0.68695855", "0.68144906", "0.67787087", "0.67380816", "0.66480017", "0.6635878", "0.6526109", "0.6490422", "0.6490247", "0.6463484", "0.6442915", "0.64304906", "0.6419746", "0.64007217", "0.63560474", "0.6343474", "0.6326281", "0.6322384", "0.631...
0.6694757
6
Set the customer information dialog appropriately based on one (or no) selection
private void showCustomerInfoDialog(Customer customer) { try { // set up the root for the customer information dialog FXMLLoader loader = new FXMLLoader(); loader.setLocation(C195Application.class.getResource("view/AddCustomer.fxml")); loader.setResources(lang); AnchorPane customerInfoRoot = (AnchorPan...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@FXML\n\tprivate void handleEdit() {\n\t\tCustomer customer = customerTable.getSelectionModel().getSelectedItem();\n\t\tshowCustomerInfoDialog(customer);\n\t}", "public static void viewCustomerInfo() {\n\t\tSystem.out.println(\"Please enter customer name\");\n\t\tString firstName=scan.nextLine();\n\t\tCustomer c...
[ "0.6588489", "0.64199233", "0.64124537", "0.63033545", "0.62700033", "0.6268479", "0.6209029", "0.61032295", "0.6035299", "0.60093135", "0.5936027", "0.5927405", "0.5915402", "0.58847636", "0.5884035", "0.5880076", "0.5878843", "0.5857856", "0.5849105", "0.58257604", "0.58255...
0.7211438
0
Delete a customer. I've made the assumption that you never wish to completely delete information. So, deleting a customer from the database will set the active field to zero effectively removing it while retaining data.
public void deleteCustomer(Customer customer) { customers.remove(customer); String sql = "UPDATE customer SET active = 0 WHERE customerId = ?"; try ( Connection conn = DriverManager.getConnection(URL, USER_NAME, PASSWORD); PreparedStatement prepstmt = conn.prepareStatement(sql); ) { int customerId = Cu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean deleteCustomer(String custId);", "public boolean deleteCustomer() {\n\t\treturn false;\r\n\t}", "void deleteCustomerById(Long id);", "void deleteCustomerById(int customerId);", "public void deletecustomer(long id) {\n\t\t customerdb.deleteById(id);\n\t }", "@Override\r\n\tpublic boole...
[ "0.73916894", "0.72837305", "0.7226561", "0.72115636", "0.7205906", "0.71810347", "0.7047933", "0.70254356", "0.70254356", "0.702388", "0.70213187", "0.6966791", "0.68921596", "0.68608093", "0.6838133", "0.6834833", "0.68290496", "0.6823768", "0.68136054", "0.68072903", "0.67...
0.7685224
0
Show the customer information window with all text fields initially empty
@FXML private void handleAdd() { showCustomerInfoDialog(null); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void emptyTextFields() {\n clientFirstNameTextField.setText(\"\");\n clientLastNameTextField.setText(\"\");\n clientBSNTextField.setText(\"\");\n clientAddressTextField.setText(\"\");\n clientPostCodeTextField.setText(\"\");\n clientCityTextField.setText(\"\");\n ...
[ "0.67744637", "0.67140263", "0.6651133", "0.6650947", "0.65596443", "0.6471673", "0.64561707", "0.64226156", "0.6396042", "0.6376011", "0.6347258", "0.6340239", "0.63313586", "0.6323767", "0.6272314", "0.6259352", "0.625244", "0.62433404", "0.62428623", "0.6231475", "0.623133...
0.57943976
83
Show the customer information window with all text fields set to a selected customer
@FXML private void handleEdit() { Customer customer = customerTable.getSelectionModel().getSelectedItem(); showCustomerInfoDialog(customer); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void showCustomerInfoDialog(Customer customer) {\n\t\ttry {\n\t\t\t// set up the root for the customer information dialog\n\t\t\tFXMLLoader loader = new FXMLLoader();\n\t\t\tloader.setLocation(C195Application.class.getResource(\"view/AddCustomer.fxml\"));\n\t\t\tloader.setResources(lang);\n\t\t\tAnchorPane...
[ "0.75848013", "0.71207285", "0.6870326", "0.6774441", "0.6767402", "0.67053413", "0.6647464", "0.6633284", "0.65967363", "0.6586893", "0.65607023", "0.65437204", "0.6531959", "0.6529603", "0.65269524", "0.647002", "0.6463044", "0.646124", "0.643108", "0.64039916", "0.6375606"...
0.64367
18
Delete the selected customer
@FXML private void handleDelete() { Alert alert = new Alert(Alert.AlertType.WARNING); alert.getButtonTypes().clear(); alert.getButtonTypes().addAll(ButtonType.YES, ButtonType.NO); alert.setHeaderText(lang.getString("deleteCustomerMessage")); alert.initOwner(stage); alert.showAndWait() .filter(answer -> a...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void delete(Customer customer) {\n\t\t\n\t}", "@Override\n\tpublic void delete(Customer customer) {\n\t\t\n\t}", "void deleteCustomerById(int customerId);", "void delete(Customer customer);", "public boolean deleteCustomer(String custId);", "void deleteCustomerById(Long id);", "publ...
[ "0.8019074", "0.8019074", "0.79458463", "0.79053545", "0.7870134", "0.7849993", "0.78061664", "0.7625073", "0.75862795", "0.75770605", "0.752381", "0.7489655", "0.7470342", "0.7462986", "0.7373457", "0.73703146", "0.7366075", "0.73617965", "0.734568", "0.72841555", "0.7257865...
0.6395636
95
get position of sale in recyclerview
public Sale getSaleAt(int position) { return sales.get(position); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getItemPositionInGroup(int position);", "public long getItemId(int position)\n {\n return position;\n }", "@Override\n public long getItemId(int pos) {\n return pos;\n }", "@NonNull\n @Override\n public View getView(final int position, @Nullable View convertView, @NonNull ...
[ "0.6365639", "0.61941606", "0.61829686", "0.61612123", "0.61593395", "0.61277825", "0.61277825", "0.61243576", "0.61243576", "0.61243576", "0.61243576", "0.61243576", "0.61243576", "0.61243576", "0.6083398", "0.60742956", "0.6073055", "0.6073055", "0.6073055", "0.6073055", "0...
0.63789713
0
Insert user and user info to db with same ids
public static void insertAccount(User user, UserInfo userInfo) throws DBException, SQLException { ConnectionPool conPool = ConnectionPool.getInstance(); log.debug("Obtaining connection"); Connection con = conPool.getConnection(); try { log.debug("Starting transaction"); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int insert(Userinfo record);", "public int insertUser(final User user);", "@Override\n\tpublic void insertUserAndShopData() {\n\t\t\n\t}", "public void insert(User user);", "public void insertUser() {}", "Long insert(User record);", "int insert(UserInfoUserinfo record);", "Long insertSelective(User r...
[ "0.68428487", "0.68374074", "0.6825577", "0.67918456", "0.67428035", "0.67092186", "0.66837513", "0.6640742", "0.6624866", "0.65897167", "0.6575213", "0.65575206", "0.64890355", "0.64833975", "0.64833975", "0.64833975", "0.64833975", "0.64833975", "0.64833975", "0.64833975", ...
0.0
-1
Checksum trama = new Checksum();
public static void main(String[] args) { List<PcapIf> alldevs = new ArrayList<PcapIf>(); // Will be filled with NICs StringBuilder errbuf = new StringBuilder(); // For any error msgs /** * ************************************************************************* * First get a ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getChecksum();", "void addChecksum(int checksum);", "public void setChecksum(String checksum) {\n this.checksum = checksum;\n }", "private Checksum getCheckSun() {\n if (transientChecksum == null) {\n transientChecksum = new Adler32();\n }\n return transientC...
[ "0.67318445", "0.6498179", "0.6354497", "0.6317029", "0.6301387", "0.6248827", "0.620931", "0.6190197", "0.6040302", "0.59755504", "0.5871801", "0.5818405", "0.58097035", "0.5784484", "0.564544", "0.5627485", "0.55835813", "0.552145", "0.5487608", "0.5463965", "0.5460083", ...
0.0
-1
Construtor do modelo Erro.
public Erro(final String propriedade, final String mensagem) { this.propriedade = propriedade; this.mensagem = mensagem; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ListaComuniModel() {\n\t\tsuper();\n\t}", "public ModeloNoValidoException(String mensaje) {\n\t\tsuper(mensaje);\n\t}", "public ConsultaMassivaCapitoloEntrataPrevisioneModel() {\n\t\tsuper();\n\t\tsetTitolo(\"Consulta Capitolo Entrata Previsione (Massivo)\");\n\t}", "@Override\n protected void carr...
[ "0.6424503", "0.6083373", "0.5973975", "0.59421086", "0.58124316", "0.581096", "0.5777845", "0.5771928", "0.57702816", "0.5764357", "0.5756281", "0.5744272", "0.57333654", "0.57189894", "0.57055086", "0.5705137", "0.5689208", "0.56699604", "0.55924666", "0.5565968", "0.556221...
0.5236715
58
Sets the images to be animates
public void setImages(Bitmap[] images){ this.images=images; currentFrame=0; startTime=System.nanoTime(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setImages() {\n\n imgBlock.removeAll();\n imgBlock.revalidate();\n imgBlock.repaint();\n labels = new JLabel[imgs.length];\n for (int i = 0; i < imgs.length; i++) {\n\n labels[i] = new JLabel(new ImageIcon(Toolkit.getDefaultToolkit()...
[ "0.73437124", "0.7041505", "0.68528175", "0.68008214", "0.679574", "0.6683864", "0.6676956", "0.6643064", "0.6640019", "0.6557388", "0.6536329", "0.650344", "0.6501328", "0.64804476", "0.64396703", "0.64287055", "0.63977325", "0.63760597", "0.63455814", "0.6337175", "0.633157...
0.71354777
1
Set how long time it shall be between each image
public void setDelay(long d){delay = d;}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract public void modifyImage(long dt, long curTime, BufferedImage image) ;", "public void setImages(Bitmap[] images){\n this.images=images;\n currentFrame=0;\n startTime=System.nanoTime();\n }", "public void tick() {\n long elapsed = (System.nanoTime()-startTime)/1000000;\n\n...
[ "0.62552917", "0.6052689", "0.60179996", "0.59484607", "0.5928424", "0.5828423", "0.5785822", "0.5745503", "0.5659166", "0.5655023", "0.5647428", "0.5625857", "0.56184065", "0.56007254", "0.5599656", "0.55920154", "0.5576726", "0.55670035", "0.55617803", "0.55385584", "0.5535...
0.0
-1
Changes the picture for the gameobject if the timeframe has been met
public void tick() { long elapsed = (System.nanoTime()-startTime)/1000000; if(elapsed>delay) { currentFrame++; startTime = System.nanoTime(); } if(currentFrame == images.length){ currentFrame = 0; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void paint(){\n\t\tif(this.x+GameScreen.backCam<900 && this.x+GameScreen.backCam>-60){\n\t\t\tGraphicsHandler.drawImage(texture,this.x+GameScreen.backCam,this.y+GameScreen.yCam,size,size);\n\t\t}\n\t}", "abstract public void modifyImage(long dt, long curTime, BufferedImage image) ;", "public synchronize...
[ "0.6481298", "0.6251526", "0.6224016", "0.61946684", "0.6151658", "0.609164", "0.5999379", "0.5990836", "0.5908802", "0.5891798", "0.5875189", "0.5860769", "0.5813589", "0.5807164", "0.57809454", "0.5779081", "0.5778483", "0.5760616", "0.5751517", "0.5749034", "0.5747079", ...
0.5831871
12
Returns what the current image is
public Bitmap getImage(){ return images[currentFrame]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ImageIcon getCurrentImage() {\n\t\t\treturn this.currentImage;\n\t}", "public BufferedImage getCurrentImage(){\n\t\treturn getCurrentImage(System.currentTimeMillis()-lastUpdate);\n\t}", "public ImageArray getCurrentImage() {\n return currentIm;\n }", "public ColorImage getCurrentImage() {\n ...
[ "0.7881672", "0.7811634", "0.7461439", "0.71530473", "0.69913083", "0.69913083", "0.6953021", "0.6946012", "0.6937818", "0.6874533", "0.68418056", "0.68245995", "0.6817332", "0.6771992", "0.6768702", "0.67498994", "0.6733908", "0.6727789", "0.6726959", "0.66924906", "0.669219...
0.68393075
11
length of DNA drawn in graph by draw() Initializes a sequence from a string.
public Sequence(String s) { for (char c : s.toCharArray()) { if (isValid(c)) seq.add(c); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getLength(){\n return sequence.length(); \n\t}", "public RandomString(int length) {\n\t\tthis(length, new SecureRandom());\n\t}", "public int normalizedLength(List<String> sequence);", "Sequence(String inString) {\r\n // Allocate bytes for the sequence\r\n seqArray = new byte[(...
[ "0.58497435", "0.56027776", "0.5557125", "0.547572", "0.5442074", "0.5439736", "0.5401103", "0.538668", "0.5370346", "0.5369556", "0.53482336", "0.52330035", "0.51953185", "0.51800585", "0.5171871", "0.5160953", "0.51440984", "0.5128336", "0.512515", "0.50851953", "0.50810385...
0.52802634
11
Initializes a sequence from a scanner.
public Sequence(Scanner sc) { String s = sc.next(); for (char c : s.toCharArray()) { if (isValid(c)) seq.add(c); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public A4Parser(java_cup.runtime.Scanner s) {super(s);}", "public A4Parser(java_cup.runtime.Scanner s) {super(s);}", "public static void init() {\n\t\tscanner = new Scanner(System.in);\n\t\treturn;\n\t}", "public Scanner(String program) {\n\t\tthis.program=program;\n\t\tpos=0;\n\t\ttoken=null;\n\t\tinitWhite...
[ "0.65210867", "0.65210867", "0.6430348", "0.64205474", "0.6292735", "0.6292735", "0.6292735", "0.6292735", "0.6292735", "0.6292735", "0.62728953", "0.62728953", "0.62728953", "0.62728953", "0.62728953", "0.62728953", "0.62728953", "0.62728953", "0.6263012", "0.6182212", "0.61...
0.7383252
0
Returns true if c represents a valid nucleotide; otherwise returns false.
private boolean isValid(char c) { if (c == 'A' || c == 'T' || c == 'G' || c == 'C' || c == 'N' || c == 'a' || c == 't' || c == 'g' || c == 'c') { return true; } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean ValidarCantidad(String c) {\n String numCuenta = c;\n int NOnum = 0;\n for (int i = 0; i < numCuenta.length(); i++) {\n if (!Character.isDigit(numCuenta.charAt(i))) {\n NOnum++;\n }\n }\n return NOnum == 0;\n }", "public bo...
[ "0.6500825", "0.6469504", "0.6361606", "0.62915355", "0.6152541", "0.6118688", "0.6057727", "0.60229164", "0.5991159", "0.59582204", "0.59416705", "0.58934", "0.5838062", "0.58311826", "0.5829663", "0.57968384", "0.5774948", "0.57379395", "0.57374287", "0.57325405", "0.567970...
0.65814954
0
Returns the nucleotide sequence of the sequence.
public List<Character> getSeq() { return seq; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getSeq();", "public static Sequence getSequence(){\n\t\treturn curMIDI;\n\t}", "public DBSequence getNotiId() {\r\n return (DBSequence)getAttributeInternal(NOTIID);\r\n }", "public String getSequence()\r\n\t{\r\n\t\treturn sequence;\r\n\t}", "public String getSequence() \n\t{\n\t...
[ "0.6620204", "0.6412884", "0.6379409", "0.6280598", "0.6264178", "0.6224934", "0.6159378", "0.6159378", "0.6114917", "0.61043733", "0.6102896", "0.6087238", "0.6031644", "0.5966123", "0.59576166", "0.5953956", "0.595068", "0.595068", "0.595068", "0.5945321", "0.5945077", "0...
0.5495329
83
Returns the number of nucleotides in the sequence.
public int size() { return seq.size(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int numNodi() {\n\t\treturn this.nodi.size();\n\t}", "public int getNumNucleiToRemove() {\n return 0 - numNucleiToRemove;\n }", "public int getNumTotal() {\n return nucleiSelected.size();\n }", "public int length() {\n return aminoAcidSequence.length();\n }", "public in...
[ "0.6636675", "0.6577122", "0.65074027", "0.6423953", "0.63761526", "0.6373897", "0.62918615", "0.62572205", "0.62176615", "0.6207459", "0.6200175", "0.61908287", "0.6190004", "0.6174245", "0.6160963", "0.6157476", "0.6148518", "0.6137417", "0.61185503", "0.61015093", "0.60996...
0.5703494
94
Returns the number of nucleotides printed per line by print().
public int printLength() { return printLength; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getBlockNumbersCount();", "int getBlockNumsCount();", "int getBlockNumsCount();", "int getLinesCount();", "public int getNumLines ();", "public int getNumTotal() {\n return nucleiSelected.size();\n }", "private static void printNos() {\n\t\tfor(int i=0; i<=10; i++) { //this is a single li...
[ "0.63161576", "0.6305639", "0.6305639", "0.61035776", "0.6042489", "0.60138863", "0.59978616", "0.598536", "0.58719695", "0.5853088", "0.5827148", "0.5814774", "0.5804351", "0.57952374", "0.5773437", "0.5753009", "0.5751393", "0.57513857", "0.57400453", "0.5736767", "0.571813...
0.59796476
8
Returns the length of sequence drawn in graph by draw().
public double drawLength() { return drawLength; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int length() {\n \t\tif (-1 == n_points) setupForDisplay();\n \t\treturn n_points;\n \t}", "public double getLength() {\n return count;\n }", "int getTickLength();", "public int getLength ()\r\n {\r\n return glyph.getBounds().width;\r\n }", "public int getLength()\n {\n ...
[ "0.71463823", "0.65902007", "0.6484698", "0.64508677", "0.6438165", "0.63989407", "0.63986826", "0.6395285", "0.6360126", "0.6338407", "0.63080806", "0.6307985", "0.62118703", "0.62098676", "0.61895645", "0.6156813", "0.6156476", "0.61122537", "0.6110195", "0.6099611", "0.608...
0.6795319
1
Draws a line in graph that represents the sequence, and labels the start and end number.
public void draw() { StdDraw.clear(); StdDraw.setPenColor(StdDraw.BLACK); StdDraw.setXscale(-drawLength * 0.1, drawLength * 1.2); StdDraw.setYscale(-drawLength * 0.65, drawLength * 0.65); StdDraw.line(0, 0, drawLength, 0); StdDraw.text(-drawLength * 0.05, 0, "0"); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void drawLine(int x1, int y1, int x2, int y2);", "void addLine(int index, Coordinate start, Coordinate end);", "public DrawLineGraph()\n\t{\n\t\tframe = new JFrame();\n\t\tframe.setTitle(\"Line Graph\");\n\t\tframe.setSize(600,400);\n\t\tframe.setLayout(new BorderLayout());\n\t\tframe.setDefaultCloseOpe...
[ "0.6378227", "0.62468696", "0.62214285", "0.62018895", "0.6189733", "0.61646765", "0.6154188", "0.6139882", "0.6125204", "0.61001766", "0.6098153", "0.60747236", "0.59974617", "0.5995093", "0.59892076", "0.59630054", "0.594143", "0.5911481", "0.5866878", "0.5829586", "0.58122...
0.0
-1
Prints the sequence to the console in a specific format for visualization.
public void print() { int n = getSeq().size(); int m = n / printLength; for (int i = 0; i < m; i++) { printLine(i * printLength, printLength); } printLine(n - n % printLength, n % printLength); System.out.println(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void print() {\n\t\t\tfor (int i = 0; i < nowLength; i++) {\n\t\t\t\tSystem.out.print(ray[i] + \" \");\n\t\t\t}\n\t\t\tSystem.out.print(\"\\n\");\n\t\t}", "public void formatPrint() {\n\t\tSystem.out.printf(\"%8d \", codigo);\n\t\tSystem.out.printf(\"%5.5s \", clase);\n\t\tSystem.out.printf(\"%5.5s \", pa...
[ "0.6634394", "0.65745544", "0.65185016", "0.6508963", "0.65056026", "0.6499602", "0.64843255", "0.6481084", "0.6463564", "0.6430733", "0.6403617", "0.63464737", "0.63140947", "0.631376", "0.6267498", "0.62547183", "0.6248083", "0.62440497", "0.62313014", "0.622957", "0.622730...
0.75683415
0
Prints k numbers of nucleotides starting from site n + 1 in sequence.
private void printLine(int n, int k) { System.out.printf("%4d- ", n + 1); for (int i = 0; i < k; i++) { if (i % 10 == 0) System.out.printf(" "); System.out.printf("%c", seq.get(i + n)); } for (int i = k; i < printLength; i++) { if (i % 10 == 0) System....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static void kaprekarNumbers(int p, int q) {\n for (int i = p; i <=q ; i++) {\n if(isKN(i)){\n System.out.print(i+\" \");\n }\n }\n }", "static void moserDeBruijn(int n)\n{\n for (int i = 0; i < n; i++)\n System.out.print(gen(i)+\" \");\n}", "publi...
[ "0.63949925", "0.6323902", "0.60841095", "0.5884089", "0.58751667", "0.58631235", "0.585009", "0.5829877", "0.5815763", "0.5811431", "0.58103555", "0.57777303", "0.57735765", "0.57516426", "0.57504565", "0.5743478", "0.57397294", "0.5728139", "0.5720396", "0.57067895", "0.568...
0.7283204
0
Adds sequence in s to current sequence starting from site k.
public void insert(String s, int k) { assert(k > -1 && k < seq.size() + 1); ArrayList<Character> newSeq = new ArrayList<Character>(); if (k == 0) { for (char c : s.toCharArray()) { if (isValid(c)) newSeq.add(c); } } else { for (...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract void extendSequence (int k);", "public int insert(int i, int k, String s) //O(log(n))\n {\n\t int output = this.lst.rankinsertion(i, k, s); //see details in class AVLTree\n\t if(output == 0)\n\t\t this.length++; //we added one element\n\t return output;\n }", "public void add(int i, int ...
[ "0.64056253", "0.5840204", "0.5557304", "0.5538049", "0.5245058", "0.51852447", "0.5137154", "0.51158255", "0.50728035", "0.5025041", "0.5002577", "0.49874133", "0.49868858", "0.49843705", "0.49598935", "0.49495214", "0.49238378", "0.49137372", "0.49104658", "0.48954085", "0....
0.7258699
0
Deletes nucleotides between site k1 to k2 in the sequence.
public void delete(int k1, int k2) { assert(k1 > -1 && k1 < seq.size() + 1); assert(k2 > -1 && k2 < seq.size() + 1); if (k1 > k2) { int temp = k1; k1 = k2; k2 = temp; } ArrayList<Character> newSeq = new ArrayList<Character>(); for (int ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void removeAll(String k1, String k2) {\n java.util.HashMap<String, V> newMap = new java.util.HashMap<String, V>(map);\n for (String key: newMap.keySet()) {\n int ind = key.indexOf(\"|\");\n String a = key.substring(0, ind);\n String b = key.substring(ind + 1, k...
[ "0.53147066", "0.5158766", "0.5126301", "0.4981716", "0.49561116", "0.4951141", "0.49489594", "0.49388996", "0.4905798", "0.49040198", "0.48999864", "0.48836625", "0.48692495", "0.4850114", "0.48273802", "0.48200268", "0.4808115", "0.4808115", "0.48073483", "0.480286", "0.478...
0.6914074
0
Changes nucleotide at site k to c.
public void mutate(int k, char c) { if (isValid(c)) seq.set(k, c); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setCxcleunik(int cxcleunik) {\r\r\r\r\r\r\r\n this.cxcleunik = cxcleunik;\r\r\r\r\r\r\r\n }", "private static void muta(Cromosoma c)\n\t{\n\t}", "public void changeDna(char[] c){\n dna = c;\n }", "public void setKinkenriyou03(Long kinkenriyou03) {\r\n this.kinkenriyou03...
[ "0.57862526", "0.53683996", "0.52461874", "0.51511437", "0.51380783", "0.5115637", "0.49806598", "0.49722064", "0.49413994", "0.49117163", "0.48788956", "0.48722067", "0.48548383", "0.48303807", "0.48109993", "0.48075372", "0.48064733", "0.47931212", "0.4785098", "0.4781485", ...
0.5369028
1
Reverses the order of sequence.
public void reverse() { ArrayList<Character> newSeq = new ArrayList<Character>(); for (int i = 0; i < seq.size(); i++) { newSeq.add(seq.get(seq.size() - 1 - i)); } seq = newSeq; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void reverse();", "void reverse();", "void reverseTurnOrder() {\n turnOrder *= -1;\n }", "public DoubleLinkedSeq reverse(){\r\n\t DoubleLinkedSeq rev = new DoubleLinkedSeq();\r\n\t for(cursor = head; cursor != null; cursor = cursor.getLink()){\r\n\t\t rev.addBefore(this.getCurrent());\r\n\t ...
[ "0.73538697", "0.73538697", "0.7239963", "0.7231543", "0.7134793", "0.7043444", "0.69754237", "0.6877122", "0.68533057", "0.683556", "0.6766928", "0.676368", "0.6753293", "0.6676249", "0.667133", "0.6607286", "0.658017", "0.6566582", "0.65558714", "0.65033835", "0.6459156", ...
0.8093882
0
Changes sequence to the complementary one.
public void complement() { ArrayList<Character> newSeq = new ArrayList<Character>(); for (char c : seq) { newSeq.add(complement(c)); } seq = newSeq; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void revComp() {\n ArrayList<Character> newSeq = new ArrayList<Character>();\n for (int i = 0; i < seq.size(); i++) {\n char c = seq.get(seq.size() - 1 - i);\n newSeq.add(complement(c));\n }\n seq = newSeq;\n }", "private void nextMovement()\n\t{\n\t\ti...
[ "0.69263095", "0.60745513", "0.58935994", "0.58357054", "0.58355373", "0.5684356", "0.55401945", "0.5505564", "0.5481371", "0.54211146", "0.54211146", "0.54211146", "0.53940725", "0.53047955", "0.52954143", "0.52954143", "0.52954143", "0.52783495", "0.5258154", "0.52055585", ...
0.65901697
1
Changes nucleotide c to the complementary one.
private char complement(char c) { switch (c) { case 'A': c = 'T'; break; case 'T': c = 'A'; break; case 'G': c = 'C'; break; case 'C': c = 'G'; break; case 'a': c = 't'; break; case 't': c = 'a'; break; case 'g': c = 'c'; break;...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void updateConseille(Conseille c) {\n\t\t\n\t}", "public void addConcullor(Councillor c) {\r\n\t\tthis.councillors.add(c);\r\n\t}", "public void setC(CCode c) {\n \t\tthis.c = c;\n \t}", "public void setC(String c) {\n this.c = c == null ? null : c.trim();\n }", "public void e...
[ "0.59795094", "0.57313854", "0.57308125", "0.5711003", "0.56899136", "0.5686413", "0.568317", "0.55892414", "0.5589219", "0.5578793", "0.55443394", "0.55236167", "0.5461657", "0.54220843", "0.5399621", "0.5378441", "0.5368568", "0.5297454", "0.5295601", "0.52879363", "0.52380...
0.54168034
14
Changes sequence to the reversecomplementary sequence. (Convert sequence of one strand of the doublestranded DNA to the sequence of the other strand)
public void revComp() { ArrayList<Character> newSeq = new ArrayList<Character>(); for (int i = 0; i < seq.size(); i++) { char c = seq.get(seq.size() - 1 - i); newSeq.add(complement(c)); } seq = newSeq; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public IDnaStrand reverse();", "public void reverse() {\n ArrayList<Character> newSeq = new ArrayList<Character>();\n for (int i = 0; i < seq.size(); i++) {\n newSeq.add(seq.get(seq.size() - 1 - i));\n }\n seq = newSeq;\n }", "public static String reverseCompDNA(String...
[ "0.71549964", "0.7082632", "0.681948", "0.66082865", "0.6422376", "0.6158668", "0.6124085", "0.6063682", "0.6017392", "0.5786377", "0.5786377", "0.5764836", "0.57403296", "0.57217395", "0.5656195", "0.5640009", "0.5637317", "0.563367", "0.5608486", "0.5604326", "0.5562884", ...
0.7100625
1
Changes nucleotides to uppercase representation in sequence.
public void toUpper() { ArrayList<Character> newSeq = new ArrayList<Character>(); for (char c : seq) { newSeq.add(Character.toUpperCase(c)); } seq = newSeq; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void write(char[] cbuf, int off, int len) throws IOException {\n for (int i = 0; i < cbuf.length; ++i)\n cbuf[i] = Character.toUpperCase(cbuf[i]);\n \n super.write(cbuf, off, len);\n \n }", "public static void printUpperCase() {\n\t\tString isExit= \"\";\n\t\twhile (!isExi...
[ "0.5916489", "0.57728475", "0.57571524", "0.57571524", "0.57519615", "0.5659632", "0.5632625", "0.5604844", "0.55134636", "0.55075586", "0.5492984", "0.54752487", "0.5471911", "0.5465142", "0.5460659", "0.5447085", "0.54319173", "0.53450197", "0.5284711", "0.52644336", "0.524...
0.77023154
0
Changes nucleotides to lowercase representation in sequence.
public void toLower() { ArrayList<Character> newSeq = new ArrayList<Character>(); for (char c : seq) { newSeq.add(Character.toLowerCase(c)); } seq = newSeq; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void makeLowerCase () {\n tags = new StringBuilder (tags.toString().toLowerCase());\n }", "private void toLower() {\n System.out.print(\"ToLower(\");\n text.print();\n System.out.print(\")\");\n }", "public void toUpper() {\n ArrayList<Character> newSeq = new ArrayList...
[ "0.6496335", "0.5925674", "0.5616072", "0.5484125", "0.5475472", "0.54463726", "0.5418806", "0.53479195", "0.5283033", "0.52799463", "0.5264549", "0.5258946", "0.5258709", "0.523987", "0.5233676", "0.52298295", "0.52231294", "0.51935554", "0.51414514", "0.506774", "0.5045049"...
0.7736918
0
Numeric representation of sequence for dfa array construction in string matching.
public int[] toIntArray(){ int[] array = new int[getSeq().size()]; for (int i = 0; i < array.length; i++) { char c = Character.toUpperCase(getSeq().get(i)); array[i] = Sequence.convert(c); } return array; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double[] sequence()\n\t{\n\t\treturn _adblSequence;\n\t}", "java.lang.String getNumb();", "java.lang.String getNum2();", "private void convertToNum(String s)\n\t{\n\t\tchar charArray[] = s.toCharArray();\n\t\tmyMessage = new BigInteger[(int)Math.ceil(s.length()/(double)BLOCK_SIZE)];\n\t\tfor(int i = 0...
[ "0.5652331", "0.5508911", "0.55077153", "0.5412415", "0.5342746", "0.5298647", "0.5241931", "0.5146469", "0.5143936", "0.5142026", "0.5122155", "0.51142395", "0.5109427", "0.50976455", "0.5090994", "0.509048", "0.5086241", "0.5067182", "0.4992531", "0.49801514", "0.4977665", ...
0.48329836
36
Converts a nucleotide character to a integer used for string matching.
public static int convert(char c) { switch (c) { case 'A': return 0; case 'T': return 1; case 'G': return 2; case 'C': return 3; default: return 4; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private int convertCharNumtoNum(char charIn){\n\t\tint number = -1;\n\t\tint convertedNum = Character.getNumericValue(charIn);\n\t\t\n\t\tfor(int i: Seats.SEAT_NUMS){\n\t\t\tif(i == convertedNum){\n\t\t\t\tnumber = convertedNum; \n\t\t\t}\n\t\t}\n\t\treturn number;\n\t}", "private static int characterToInteger...
[ "0.7338942", "0.6941179", "0.69317234", "0.6879667", "0.68521684", "0.68340653", "0.6823756", "0.6813323", "0.6802743", "0.67956847", "0.6765887", "0.6714141", "0.67019016", "0.66155136", "0.65548795", "0.65477914", "0.65257245", "0.6524432", "0.6456057", "0.64264315", "0.641...
0.6752372
11
Gets the package name.
public static String getPackageName() { return mPackageName; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getName() {\n return Utility.getInstance().getPackageName();\n }", "public String getPackageName() {\n final var lastDotIdx = name.lastIndexOf('.');\n\n if (lastDotIdx > 0) {\n return name.substring(0, lastDotIdx);\n } else {\n throw new CodeGenE...
[ "0.808132", "0.7953729", "0.7952443", "0.79294723", "0.7899135", "0.7880084", "0.78707755", "0.7801152", "0.7766416", "0.7710941", "0.7691799", "0.7642725", "0.76370466", "0.7614245", "0.7510091", "0.73595136", "0.73238593", "0.7317986", "0.7294862", "0.72914755", "0.7291317"...
0.74328244
15
Gets the package version.
public static String getPackageVersion() { return mPackageName + " V" + mVersion + " [" + mBuildDate + "]"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static String getVersion() {\n return version;\n }", "public static String getVersion() {\n return version;\n }", "public String getVersion() {\n\t\tString version = \"0.0.0\";\n\n\t\tPackageManager packageManager = getPackageManager();\n\t\ttry {\n\t\t\tPackageInfo packageInfo = pac...
[ "0.79208875", "0.79208875", "0.79159707", "0.79159707", "0.78730637", "0.7864253", "0.78560835", "0.78560835", "0.7745507", "0.77148646", "0.7684717", "0.7613515", "0.76071554", "0.76071554", "0.76071554", "0.76071554", "0.76071554", "0.76071554", "0.76071554", "0.76071554", ...
0.7903109
4
Gets the build date.
public static String getBuildDate() { return mBuildDate; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static final Date getBuildDate() { return buildDate; }", "public static final Date getBuildDate() { return buildDate; }", "public static String getBuildDate() {\r\n return getJarInfo(\"BuildDate\");\r\n }", "public Instant getBuildDate() {\r\n\t\treturn buildDate;\r\n\t}", "public String...
[ "0.8947983", "0.8947983", "0.8535044", "0.818111", "0.7860083", "0.77891576", "0.7702291", "0.76972824", "0.7088673", "0.6933143", "0.68500495", "0.677668", "0.6764119", "0.67516255", "0.66916955", "0.6668127", "0.66357756", "0.65932006", "0.65853596", "0.6583365", "0.6546566...
0.89291024
2
a is times, b is sides
public static int rollDice (int a, int b) { int count=0; int total=0; while(count<a) { int roll=(int)((Math.random()*b)+1); total=total+roll; count++; } return total; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int main()\n{\n cin>>a.h>>a.m>>a.s>>b.h>>b.m>>b.s;\n int x=a.s-b.s;\n int y=a.m-b.m;\n int z=a.h-b.h;\n if(y<0){\n y+=60;\n z--;\n }\n if(x<0){\n x+=60;\n y--;\n }\n cout<<z<<\":\"<<y<<\":\"<<x;\n}", "public static double side(double[] a, double[] b, double[] p)\n {\n double d = ( ( ...
[ "0.6241819", "0.6241201", "0.58222574", "0.5652164", "0.56333333", "0.5595609", "0.5518459", "0.54991263", "0.5407667", "0.5387036", "0.5374568", "0.535038", "0.5346547", "0.5344117", "0.5291036", "0.5268987", "0.5256814", "0.52421665", "0.5216983", "0.5209914", "0.5207608", ...
0.0
-1
Inflate the layout for this fragment
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container,Bundle savedInstanceState) { return inflater.inflate(R.layout.fragment_fragment_african, container, false); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_main_allinfo, container, false);\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup...
[ "0.6739604", "0.67235583", "0.6721706", "0.6698254", "0.6691869", "0.6687986", "0.66869223", "0.6684548", "0.66766286", "0.6674615", "0.66654444", "0.66654384", "0.6664403", "0.66596216", "0.6653321", "0.6647136", "0.66423255", "0.66388357", "0.6637491", "0.6634193", "0.66251...
0.0
-1
modified by hanchunliang 20131227
@Override public void run() { try { //获取可用性结果 boolean result = ResponseUtil.getResponseCode(createHttpUrl())!= 404; //可用性记录 recordEnum(application,result); } catch (Throwable t){ logger.error("[扫描URL出错] there...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void cajas() {\n\t\t\n\t}", "private void strin() {\n\n\t}", "private void poetries() {\n\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "private void kk12() {\n\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", ...
[ "0.5795901", "0.57376844", "0.5619758", "0.55281776", "0.54902756", "0.5479072", "0.5459511", "0.5449743", "0.5441648", "0.5417895", "0.5417895", "0.53716445", "0.5369456", "0.53643364", "0.5343688", "0.53388715", "0.53313464", "0.53305775", "0.53280395", "0.53125536", "0.531...
0.0
-1
Pass the event to ActionBarDrawerToggle If it returns true, then it has handled the nav drawer indicator touch event
@Override public boolean onOptionsItemSelected(MenuItem item) { if (mDrawerToggle.onOptionsItemSelected(item)) { return true; } // Handle your other action bar items... return super.onOptionsItemSelected(item); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // Pass the event to ActionBarDrawerToggle, if it returns\n // true, then it has handled the app icon touch event\n if (mDrawerToggle.onOptionsItemSelected(item)) {\n return true;\n }\n\n // Handle ...
[ "0.6615875", "0.6346448", "0.6306857", "0.62861", "0.6216746", "0.6168509", "0.61681294", "0.61631215", "0.614391", "0.6106668", "0.6101666", "0.60972226", "0.60957307", "0.6091946", "0.60773927", "0.60588026", "0.60506415", "0.6034071", "0.6032598", "0.6032598", "0.6032598",...
0.58926386
48
link to the model which will be displayed. View's construction which recieves the model as a parameter.
public View(Model m) { super(); setBackground(Color.black); // Setting background color. this.model = m; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@RequestMapping(method=RequestMethod.GET, path=\"/l\")\n\tpublic String goToRssView(Model model){\n\t\treturn \"bean/rss\";\n\t}", "@RequestMapping(\"/reply_view\")\n\tpublic String reply_view(HttpServletRequest request, Model model) {\n\t\tBDto dto = dao.reply_view(request.getParameter(\"bId\"));\n\t\tmodel.add...
[ "0.6573206", "0.6500519", "0.6281875", "0.6209135", "0.6195151", "0.6120459", "0.60575175", "0.60301036", "0.60114396", "0.59895825", "0.5978108", "0.59779257", "0.59779257", "0.59779257", "0.5955391", "0.5949246", "0.5947242", "0.59462994", "0.5934391", "0.593017", "0.591229...
0.5820349
33
Drawings inside the view.
public void paintComponent(Graphics g) { super.paintComponent(g); // Setting drawings the global color. g.setColor( this.model.defaultV.movingColor ); //Painting all of the particles. for(int i = 0; i < this.model.particleArray.size(); i++) { Particle p = (Particle) this.model.particleArray.ge...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static void draw()\n {\n for (Viewport viewport : viewports)\n viewport.draw(renderers);\n }", "public void draw() {\n draw(clientController.getUser().getShows());\n }", "public void draw() {\n \n // TODO\n }", "@Override\n\tprotected synchronized void onDra...
[ "0.6771393", "0.6686484", "0.6615428", "0.6598127", "0.65457046", "0.65002286", "0.64982283", "0.64908445", "0.6424771", "0.6424771", "0.63896585", "0.63535625", "0.6333532", "0.6329178", "0.6323425", "0.6323425", "0.6310429", "0.6307023", "0.6267634", "0.62208813", "0.621985...
0.0
-1
Returns the HTML response with a title, input and button aka HERO
public static String heroWithPastMessages(ArrayList<String> listOfSentMessages) { return Html.build(Styles.css, hero + Common.sentMessages(listOfSentMessages)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic String getResponse() {\n\n\t\tString[] css = { Resource.CSS_COMMON, Resource.CSS_HEADER, Resource.CSS_CARD, Resource.CSS_TITLE_BANNER,\n\t\t\t\tResource.CSS_MODAL_IMAGE, Resource.CSS_BUTTON, Resource.CSS_FORMS};\n\t\tString[] js = { Resource.JS_HEADER, Resource.JS_FORMS };\n\n\t\tm.addHead(css,...
[ "0.5868314", "0.5560083", "0.54083204", "0.5366516", "0.532758", "0.529967", "0.5291597", "0.52866274", "0.52359676", "0.51702064", "0.5147149", "0.5123601", "0.51224226", "0.51146454", "0.5108571", "0.5107117", "0.5089383", "0.50534564", "0.50517786", "0.5017021", "0.5013341...
0.0
-1
TODO Autogenerated method stub
@Override public double similarity(double[] data1, double[] data2) { double distance; int i; if(MATHOD ==1){ i = 0; distance = 0; while (i < data1.length && i < data2.length) { distance += Math.pow(Math.abs(data1[i] - data2[i]), q); i++; } } if(MATHOD ==2){ i = 0; distance = 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
A constructor that instantiate the class AlertSuspectRegulation
public AlertSuspectRegulation(ServiceConfiguration serviceConfiguration) { super(serviceConfiguration); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public IoTSecurityAlertedDevice() {\n }", "public CalMonitor() {\r\n }", "public WeiXinPayMonitor() {\r\n\t\tsuper();\r\n\t}", "public IRSensorSubsystem() {\n\n }", "private Alarms() {}", "public Alarm_Msg(){ }", "private SevereWeatherAlertsResult() {}", "public SimOI() {\n super();\n ...
[ "0.6542045", "0.6106909", "0.61030215", "0.6025918", "0.5958332", "0.5910313", "0.5841352", "0.58332133", "0.5808077", "0.5722812", "0.56953984", "0.5638766", "0.56333834", "0.5627158", "0.5616581", "0.5607668", "0.56036806", "0.560289", "0.55970496", "0.555511", "0.55490357"...
0.6928211
0
A class that represents a value that might be published for the AlertSuspectRegulation context. It is used by event methods that might or might not publish values for this context.
@Override protected AlertSuspectRegulationValuePublishable onMessageFromInput(MessageFromInput messageFromInput, DiscoverForMessageFromInput discover) { String messageAboutBodyPosition = messageFromInput.value(); // get the value of the string returned by the websocket if (messageAboutBodyPosition.equals(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getInsuredValue() {\n return insuredValue;\n }", "public S getValue() { return value; }", "public String Get_event_value() \n {\n\n return event_value;\n }", "private Value() {\n\t}", "@Override\r\n public Object getValue() {\r\n return value;\r\n }", "@Override...
[ "0.5436841", "0.5425553", "0.53473824", "0.52018386", "0.518472", "0.509905", "0.5079043", "0.50724655", "0.50691545", "0.5039837", "0.5027611", "0.5013013", "0.50111586", "0.5005832", "0.50034237", "0.4999233", "0.49981818", "0.49940744", "0.49912566", "0.49912566", "0.49912...
0.0
-1
This implementation returns the ExpireDuration. 0 as default if no configuration is present. 1 in case the configuration can not be converted to a number.
@Override public final long getDefaultExpireDuration() { Object durationObject = properties.get(DEFAULT_EXPIRE_DURATION); if(durationObject == null){ return 0; } else { try { return Long.parseLong(durationObject.toString()); } catch (Number...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getTestDuration() {\n return config.big ? TEST_TIME_SECONDS : TEST_TIME_SECONDS / 10;\n }", "@Range(min = 0)\n\t@NotNull\n\tpublic Integer getExpiration() {\n\t\treturn this.expiration;\n\t}", "public Integer getDuration() {\n return duration;\n }", "public Optional<BigInteger> getDur...
[ "0.6006397", "0.59527856", "0.5808564", "0.5751902", "0.5749416", "0.56745553", "0.5672891", "0.5656952", "0.5650328", "0.5614927", "0.56149113", "0.56128764", "0.560717", "0.5600773", "0.5576192", "0.5571192", "0.55699474", "0.55699474", "0.55699474", "0.556709", "0.5563075"...
0.77188253
0
/ OSGI LIFECYCLE and LISTENER METHODS
@SuppressWarnings("unchecked") @Activate protected void activate(final ComponentContext context) throws ConfigurationException, YardException, InvalidSyntaxException { log.info("in "+ReferencedSiteImpl.class+" activate with properties "+context.getProperties()); if(context == null || context.get...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void createAndListen() {\n\n\t\t\n\t}", "@Override\r\n\tprotected void listeners() {\n\t\t\r\n\t}", "@Override\n\tpublic void getListener(){\n\t}", "public void run()\n {\n CallerContextManager ccm = (CallerContextManager) ManagerManager.getInstance(CallerContextMana...
[ "0.681156", "0.65694", "0.6542061", "0.64192104", "0.64100844", "0.63319236", "0.629995", "0.6296997", "0.6286717", "0.6286142", "0.6261996", "0.62348473", "0.6197066", "0.6192705", "0.61650497", "0.61646986", "0.6156514", "0.6115943", "0.60974157", "0.60897076", "0.60769486"...
0.0
-1
apply movetofront encoding, reading from standard input and writing to standard output
public static void encode() { int[] index = new int[R + 1]; char[] charAtIndex = new char[R + 1]; for (int i = 0; i < R + 1; i++) { index[i] = i; charAtIndex[i] = (char) i; } while (!BinaryStdIn.isEmpty()) { char c = BinaryStdIn.readC...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void encode() {\n char[] symbols = initializeSymbols();\n int position;\n while (!BinaryStdIn.isEmpty()) {\n char symbol = BinaryStdIn.readChar();\n position = 0;\n while (symbols[position] != symbol) {\n position++;\n }\...
[ "0.5330781", "0.52863777", "0.5269845", "0.50862455", "0.5081172", "0.5047047", "0.50462455", "0.5028201", "0.5021064", "0.49862203", "0.49672544", "0.49592713", "0.49573636", "0.49350464", "0.49272424", "0.49130592", "0.49009222", "0.48955578", "0.4888181", "0.4865894", "0.4...
0.4965196
11
apply movetofront decoding, reading from standard input and writing to standard output
public static void decode() { int[] index = new int[R + 1]; char[] charAtIndex = new char[R + 1]; for (int i = 0; i < R + 1; i++) { index[i] = i; charAtIndex[i] = (char) i; } while (!BinaryStdIn.isEmpty()) { int c = BinaryStdIn.readCh...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void decode() {\n char[] seq = new char[R];\n\n for (int i = 0; i < R; i++)\n seq[i] = (char) i;\n\n while (!BinaryStdIn.isEmpty()) {\n int index = BinaryStdIn.readChar();\n char c = seq[index];\n BinaryStdOut.write(seq[index]);\n\n ...
[ "0.5263798", "0.5224668", "0.51412493", "0.510081", "0.50760543", "0.50588584", "0.49877933", "0.49593645", "0.4915054", "0.49089956", "0.489734", "0.48874304", "0.48637602", "0.481302", "0.47896224", "0.47425652", "0.4729254", "0.47257555", "0.47143877", "0.47102153", "0.470...
0.5071096
5
if args[0] is '', apply movetofront encoding if args[0] is '+', apply movetofront decoding
public static void main(String[] args) { String operation = args[0]; switch (operation) { case "+": // decode decode(); break; case "-": // encode encode(); break; default: // ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args)\n {\n String c = args[0];\n if(c.equals(\"-\"))\n encode();\n else if(c.equals(\"+\"))\n decode();\n \n }", "public static void main (String[] args) {\n if (args[0].equals(\"-\"))\n encode();\...
[ "0.6378468", "0.61872554", "0.59689534", "0.5922162", "0.5497047", "0.5014875", "0.49197033", "0.4917179", "0.49028468", "0.48734325", "0.4795454", "0.47869283", "0.47864", "0.47859752", "0.47406754", "0.47349966", "0.47177306", "0.4713853", "0.46751565", "0.46406376", "0.462...
0.50669277
5
Identificador do servidor GPP e porta Metodo...: GerentePoolLog Descricao: Construtor
protected GerentePoolLog(Class ownerClass) { ArquivoConfiguracaoGPP arqConf = ArquivoConfiguracaoGPP.getInstance(); //Define o nome e a porta do servidor q serao utilizados no LOG hostName = arqConf.getEnderecoOrbGPP() + ":" + arqConf.getPortaOrbGPP(); /* Configura o LOG4J com as propriedades definidas no ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setPoolLog(String poolLog) { this.poolLog = poolLog; }", "public String poolName();", "public static GerentePoolLog getInstancia(Class ownerClass)\n {\n \t// Verifica se ja existe uma instancia do Pool em execucao se negativo entao inicializa\n /*if ( instancia == null )\n {\n ...
[ "0.6349649", "0.60005325", "0.5947864", "0.5852873", "0.5838931", "0.56797725", "0.56491256", "0.56431913", "0.5607296", "0.5549598", "0.5435614", "0.5401622", "0.53647137", "0.53050876", "0.5239733", "0.52000785", "0.51899964", "0.51877356", "0.5168091", "0.5158049", "0.5145...
0.6884392
0
Metodo....: getHostName Descricao.: Retorna o nome do servidor GPP e a porta ORB utilizada
private String getHostName() { return hostName; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getHostName();", "String getHostName();", "public String getHostName();", "String getRemoteHostName();", "static String getHostName() {\n try {\n return InetAddress.getLocalHost().getHostName();\n } catch (UnknownHostException e) {\n return \"unknown\";\n }...
[ "0.8215644", "0.8215644", "0.8054655", "0.7989536", "0.76411164", "0.7610472", "0.7610472", "0.75964445", "0.74860924", "0.7439241", "0.7377952", "0.7359701", "0.7308613", "0.7278251", "0.72636414", "0.719458", "0.719458", "0.7192605", "0.7192605", "0.7138404", "0.7116591", ...
0.7582895
8
Metodo....: getInstancia Descricao.: Metodo para criar e retornar uma instancia da classe
public static GerentePoolLog getInstancia(Class ownerClass) { // Verifica se ja existe uma instancia do Pool em execucao se negativo entao inicializa /*if ( instancia == null ) { System.out.println ("Gerente de LOG (Singleton) INICIADO "); instancia = }*/ G...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static LoCurso GetInstancia(){\n if (instancia==null)\n {\n instancia = new LoCurso();\n \n }\n\n return instancia;\n }", "public static LoInscripcion GetInstancia(){\n if (instancia==null)\n {\n instancia = new LoInscripcio...
[ "0.77628577", "0.7760556", "0.7161816", "0.71604574", "0.6970644", "0.69594646", "0.69426405", "0.68333465", "0.67452097", "0.66087914", "0.65595025", "0.646124", "0.6415941", "0.6376868", "0.6354025", "0.62603825", "0.6251072", "0.62471455", "0.6247084", "0.6240395", "0.6205...
0.6207324
20
Metodo....: destroiInstancia Descricao.: Libera a instancia de LOG da memoria Atencao: Se uma instancia for liberada (existe apenas uma), nao sera possivel chamar qualquer metodo... Qualquer chamada causara um NULL POINT EXCEPTION e por isso este metodo so podera ser chamado pelo gerente do GPP
public void destroiInstancia() { // Libera a variavel instancia para ser limpa pelo garbage collection //instancia = null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static GerentePoolLog getInstancia(Class ownerClass)\n {\n \t// Verifica se ja existe uma instancia do Pool em execucao se negativo entao inicializa\n /*if ( instancia == null )\n {\n System.out.println (\"Gerente de LOG (Singleton) INICIADO \");\n instancia = \n ...
[ "0.5522898", "0.5294049", "0.5282163", "0.5253165", "0.5248756", "0.51164323", "0.51080626", "0.51016235", "0.5075916", "0.50254285", "0.5013765", "0.5010525", "0.5005644", "0.4958552", "0.49455518", "0.49385533", "0.49126902", "0.49054492", "0.48852134", "0.48744738", "0.487...
0.64587754
0
Metodo....: liberaIdProcesso Descricao.: Metodo para liberar o id do processo que terminou a escrita no log
public void liberaIdProcesso(long idProcesso, String compNegocio, String status) { logComponente(idProcesso,Definicoes.DEBUG,compNegocio,"FIM",status); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void liberarConexoesEmUso (long idProcesso) {\r\n this._delegate.liberarConexoesEmUso(idProcesso);\r\n }", "public void processEliminar() {\n }", "public com.opentext.bn.converters.avro.entity.ContentErrorEvent.Builder clearProcessId() {\n processId = null;\n fieldSetFlags()[8] = false;...
[ "0.7025565", "0.55535614", "0.5534971", "0.5534334", "0.55267334", "0.544433", "0.5413949", "0.5360641", "0.5315324", "0.531212", "0.53026193", "0.5302534", "0.5276599", "0.52530044", "0.52351403", "0.52318776", "0.52177566", "0.52020335", "0.5187457", "0.518622", "0.5181265"...
0.69193435
1
Metodo....: log Descricao.: Grava uma linha no arquivo de LOG para log de classes do sistema
public void log(long idProcesso, int aTipo, String aClasse, String aMetodo, String aMensagem) { StringBuffer mensagemFinal = new StringBuffer("<Servidor> ").append(getHostName()); mensagemFinal.append(" <ID> ").append(idProcesso); mensagemFinal.append(" <Metodo> ").append(aMetodo); mensagemFinal.append(" <Men...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void log(String line);", "void log(String source, String line);", "private void logToFile() {\n }", "abstract protected String getLogFileName();", "IFileLogger log();", "abstract void initiateLog();", "public void writeLog() {\n\n\t}", "public void writeLog() {\n\n\t}", "public void writeLog() {\...
[ "0.67510927", "0.6713956", "0.65830195", "0.65648365", "0.6526499", "0.6296612", "0.6278995", "0.6278995", "0.6278995", "0.6272866", "0.6267501", "0.62412643", "0.62314814", "0.6213514", "0.61561185", "0.6110545", "0.6107001", "0.6102285", "0.60655284", "0.60267437", "0.59948...
0.610724
16