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
Self modifying version of viewSliceFlip().
protected AbstractMatrix3D vSliceFlip() { if (slices>0) { sliceZero += (slices-1)*sliceStride; sliceStride = -sliceStride; this.isNoView = false; } return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected AbstractMatrix3D vRowFlip() {\n\tif (rows>0) {\n\t\trowZero += (rows-1)*rowStride;\n\t\trowStride = -rowStride;\n\t\tthis.isNoView = false;\n\t}\n\treturn this;\n}", "@Override\n public void onClick(View v) {\n viewFlipper.setInAnimation(slideRightIn);\n viewFli...
[ "0.6247629", "0.61628884", "0.61223036", "0.6105624", "0.60559523", "0.60220814", "0.6002606", "0.59124696", "0.5902481", "0.58411103", "0.576179", "0.57522637", "0.57463586", "0.57121307", "0.568061", "0.5665367", "0.5660056", "0.56185347", "0.5609959", "0.5591558", "0.55429...
0.81893784
0
Self modifying version of viewStrides().
protected AbstractMatrix3D vStrides(int sliceStride, int rowStride, int columnStride) { if (sliceStride<=0 || rowStride<=0 || columnStride<=0) throw new IndexOutOfBoundsException("illegal strides: "+sliceStride+", "+rowStride+", "+columnStride); this.sliceStride *= sliceStride; this.rowStride *= rowStride; this.c...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void updateObscuredViewsVisibility(View view) {\n int n2;\n int n3;\n int n4;\n int n5;\n int n6 = this.getPaddingLeft();\n int n7 = this.getWidth();\n int n8 = this.getPaddingRight();\n int n9 = this.getPaddingTop();\n int n10 = this.getHeight();\n ...
[ "0.51852596", "0.5153675", "0.51053256", "0.4995931", "0.49526832", "0.4868715", "0.48294052", "0.48134813", "0.4785135", "0.4750628", "0.4740669", "0.4688122", "0.46418062", "0.46336782", "0.4629362", "0.46252847", "0.4587359", "0.4586379", "0.45789587", "0.45743093", "0.455...
0.5490531
0
TODO: Replace this with your own logic
public static boolean isPasswordValid(String password) { return password.length() > 5; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "private void poetries() {\n\n\t}", "@Override\n\tprotected void interr() {\n\t}", "private void strin() {\n\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tpublic void com...
[ "0.5509385", "0.54158944", "0.5396774", "0.5215123", "0.5190688", "0.5150597", "0.51211643", "0.51073384", "0.5095154", "0.50465494", "0.5040486", "0.50389224", "0.50364757", "0.502146", "0.49883768", "0.4981401", "0.49805945", "0.49671677", "0.49149847", "0.4887455", "0.4879...
0.0
-1
Constructor de la clase
public MostrarBienesWizard(String locale) { this.locale=locale; try{ initComponents(); renombrarComponentes(); inventarioClient= new InventarioClient(aplicacion.getString(UserPreferenceConstants.LOCALGIS_SERVER_ADMCAR_SERVLET_URL) + ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Constructor() {\r\n\t\t \r\n\t }", "public Constructor(){\n\t\t\n\t}", "public Pasien() {\r\n }", "public CyanSus() {\n\n }", "public Clade() {}", "public Carrera(){\n }", "public Classe() {\r\n }", "public Chauffeur() {\r\n\t}", "public AntrianPasien() {\r\n\r\n }", "public Alojamiento...
[ "0.83754814", "0.8247714", "0.7757709", "0.7649347", "0.7642628", "0.7563843", "0.7557476", "0.75546134", "0.75250137", "0.7461817", "0.7461695", "0.74384826", "0.7407674", "0.7394104", "0.7378765", "0.7371816", "0.7366355", "0.73375064", "0.73365825", "0.73345315", "0.731292...
0.0
-1
Inicializa los componenetes de la pantalla
private void initComponents() throws Exception { setName(aplicacion.getI18nString("inventario.bienesrevertibles.seleccionarbienes")); setLayout(new BorderLayout()); bienesJPanel= new BienesJPanel(locale,true,true); add(bienesJPanel, BorderLayout.CENTER); addAyudaOnline(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void inicializarcomponentes() {\n Comunes.cargarJList(jListBecas, becasFacade.getTodasBecasVigentes());\n \n }", "private void inicializarComponentes() {\n universidadesIncluidos = UniversidadFacade.getInstance().listarTodosUniversidadOrdenados();\n universidadesIncluidos.re...
[ "0.7602316", "0.7353511", "0.7164239", "0.7131312", "0.7039437", "0.6943196", "0.6942584", "0.6938584", "0.6928305", "0.6881655", "0.68700415", "0.68682295", "0.6811376", "0.6795404", "0.6732249", "0.67094284", "0.670125", "0.6668062", "0.664377", "0.66099834", "0.6605576", ...
0.0
-1
Metodo que se ejecuta al inicio y que intenta georrefenrenciar las actividades economicas
public void enteredFromLeft(Map dataMap) { try{ patron=(String)dataMap.get("patron"); if (dataMap.get("filtro")!=null) filtro= new ArrayList((Collection)dataMap.get("filtro")); else filtro=null; cargarTablaBienesInventario(); }catch(Exception ex){ ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void ejecutarActividadesConProposito() {\n\t\t\n\t}", "public void principal() {\r\n int opciones = 0;\r\n do {\r\n opciones = op.capInt(\"CLINICA LA EVALUACIÓN\\n\\n\"\r\n + \"1. Gestionar Pacientes.\\n\"\r\n + \"2. Gestionar Méd...
[ "0.6806304", "0.64245635", "0.6319516", "0.6264767", "0.6264767", "0.62060004", "0.61983687", "0.61948305", "0.6151959", "0.6102101", "0.6071075", "0.60674506", "0.60614705", "0.6048382", "0.6015666", "0.6012984", "0.60023284", "0.5959195", "0.5943901", "0.5919258", "0.589846...
0.0
-1
Recarga la tabla de bienes de inventario cuando el usuario selecciona un tipo de bien del arbol, o finaliza algun tipo de operacion sobre algun bien de la tabla.
private void cargarTablaBienesInventario() throws Exception{ AppContext app =(AppContext) AppContext.getApplicationContext(); final JFrame desktop= (JFrame)app.getMainFrame(); final TaskMonitorDialog progressDialog= new TaskMonitorDialog(desktop, null); progressDialog.setTi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void llenadoDeTablas() {\n /**\n *\n * creaccion de la tabla de de titulos \n */\n DefaultTableModel modelo = new DefaultTableModel();\n modelo.addColumn(\"ID Bitacora\");\n modelo.addColumn(\"Usuario\");\n modelo.addColumn(\"Fecha\");\n modelo.addColumn(\"Hora\"...
[ "0.64749837", "0.643488", "0.6359589", "0.63240314", "0.6226786", "0.6154726", "0.6151882", "0.6144569", "0.6113183", "0.61116266", "0.6098354", "0.6092445", "0.60827327", "0.6042477", "0.60361874", "0.60240465", "0.601619", "0.6011903", "0.59810376", "0.597838", "0.5951918",...
0.0
-1
Lo que queremos hacer antes de salir de la pantalla
public void exitingToRight() throws Exception { bienesSeleccionados= bienesJPanel.getBienesSeleccionados(); if (bienesSeleccionados.size()==0 ){ JOptionPane optionPane= new JOptionPane(aplicacion.getI18nString("inventario.bienesrevertibles.seleccionarunbien"),JOptionPane.WARNING_MESSAGE); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public int getSalida() {\n return 0;\n }", "private double calculeSalaires() {\n return salaireHoraire * heures;\n }", "public void salir() {\n LoginManager.getInstance().logOut();\n irInicio();\n }", "public long obtenerNoSalida() throws GenericPersistence...
[ "0.6689446", "0.66667485", "0.6542925", "0.6366938", "0.6334363", "0.6222641", "0.6166461", "0.6133673", "0.6119822", "0.6118028", "0.6072267", "0.6040668", "0.60253984", "0.60243326", "0.60193527", "0.6009498", "0.60064346", "0.600105", "0.59967774", "0.59690976", "0.5968205...
0.0
-1
The callback interface used to indicate the user is done filling in the time (they clicked on the 'Set' button).
public interface OnTimeSetListener { /** * @param view The view associated with this listener. * @param hourOfDay The hour that was set. * @param minute The minute that was set. */ void onTimeSet(TimePicker view, int hourOfDay, int minute); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void timeDialogCallBack(String time) {\n\t\t\r\n\t}", "@Override\n protected void onDialogClosed(boolean positiveResult) {\n super.onDialogClosed(positiveResult);\n\n if (positiveResult){\n setTime(timePicker.getHour(), timePicker.getMinute());\n }\n }"...
[ "0.7227049", "0.69260913", "0.6906584", "0.6886472", "0.6881845", "0.6881133", "0.6865761", "0.68581283", "0.6748744", "0.66937876", "0.66166115", "0.65715224", "0.6539382", "0.6537881", "0.6527991", "0.6522103", "0.64969575", "0.6433341", "0.64330864", "0.6424003", "0.641830...
0.0
-1
A recipe method interactions
public interface MethodInteraction { void onMethodEdit(Method method, String newBody); void onMethodDrag(RecyclerView.ViewHolder holder); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void setupRecipes()\n {\n\n }", "@Override\n\tpublic void initRecipes()\n\t{\n\n\t}", "public void rebajoIngredientes() {\n }", "Execution executeRecipe(TestRecipe recipe);", "@Override\r\n\tpublic void registerRecipes()\r\n\t{\n\r\n\t}", "@Override\n public IRecipe addRec...
[ "0.63552517", "0.6209101", "0.6158528", "0.6059847", "0.5993674", "0.59113383", "0.5908231", "0.585078", "0.5836201", "0.5788398", "0.5786305", "0.5717776", "0.5667318", "0.560434", "0.5559735", "0.5555456", "0.55515814", "0.5537699", "0.5490655", "0.54899305", "0.54521745", ...
0.53674245
26
TODO Autogenerated method stub Noting to do
@Override public void svnLogPrepare() { }
{ "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\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic vo...
[ "0.66569835", "0.6502955", "0.6390767", "0.6348398", "0.62974995", "0.62943995", "0.621577", "0.6191991", "0.6188633", "0.61598444", "0.61598444", "0.6125208", "0.6121011", "0.60874385", "0.60603756", "0.60264724", "0.5964293", "0.59607965", "0.59587836", "0.595518", "0.59196...
0.0
-1
TODO Autogenerated method stub
@Override public void svnLogChanged(SVNLogEntry logEntry) { if (mMonitorNotRun) { return; } Logger.println("==SvnLog begin to logchanged"); //TODO:文件匹配 filterAuthor(logEntry); //TODO:路径匹配 filterFile(logEntry); //TODO: 是否需要更新本次的版本 filterPath(logEntry); }
{ "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
TODO Autogenerated method stub
@Override public void svnLogFinish() { sendMailLogInfo(); }
{ "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
TODO Autogenerated method stub
private void sendMailLogInfo() { if (mChangedInfoList.size() == 0) { return; } // 1.导出信息 String content = dumpLogInfoWithHtml(); // 2. 更新收件人与标题 mMailSender.updateMailToAndCc(mMailReceivers, mMailCcReceivers); Logger.println("==SvnLog send emal with subject " + mMailSubject); // 3.发送信息send ...
{ "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
An MLUserDataEncryption object containing the encryption mode and customerprovided KMS key ID.
public void setMlUserDataEncryption(MLUserDataEncryption mlUserDataEncryption) { this.mlUserDataEncryption = mlUserDataEncryption; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public MLUserDataEncryption getMlUserDataEncryption() {\n return this.mlUserDataEncryption;\n }", "public TransformEncryption withMlUserDataEncryption(MLUserDataEncryption mlUserDataEncryption) {\n setMlUserDataEncryption(mlUserDataEncryption);\n return this;\n }", "public Encryption...
[ "0.73036987", "0.65935993", "0.57201636", "0.56689453", "0.55810064", "0.5568613", "0.555527", "0.54978675", "0.54899555", "0.5445634", "0.5445634", "0.53979635", "0.5395778", "0.53866017", "0.5358833", "0.53345066", "0.5324614", "0.5297224", "0.52215725", "0.52215725", "0.51...
0.6448532
2
An MLUserDataEncryption object containing the encryption mode and customerprovided KMS key ID.
public MLUserDataEncryption getMlUserDataEncryption() { return this.mlUserDataEncryption; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public TransformEncryption withMlUserDataEncryption(MLUserDataEncryption mlUserDataEncryption) {\n setMlUserDataEncryption(mlUserDataEncryption);\n return this;\n }", "public void setMlUserDataEncryption(MLUserDataEncryption mlUserDataEncryption) {\n this.mlUserDataEncryption = mlUserData...
[ "0.65926135", "0.6447229", "0.57195956", "0.5669013", "0.55832523", "0.5568344", "0.5554935", "0.5497753", "0.54900163", "0.54449457", "0.54449457", "0.5397595", "0.5396495", "0.53872377", "0.5358931", "0.53338087", "0.5325331", "0.5297206", "0.5220813", "0.5220813", "0.51779...
0.7302795
0
An MLUserDataEncryption object containing the encryption mode and customerprovided KMS key ID.
public TransformEncryption withMlUserDataEncryption(MLUserDataEncryption mlUserDataEncryption) { setMlUserDataEncryption(mlUserDataEncryption); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public MLUserDataEncryption getMlUserDataEncryption() {\n return this.mlUserDataEncryption;\n }", "public void setMlUserDataEncryption(MLUserDataEncryption mlUserDataEncryption) {\n this.mlUserDataEncryption = mlUserDataEncryption;\n }", "public EncryptionCipherInterface encryptionCipher()\...
[ "0.73039526", "0.6449293", "0.5719737", "0.56685656", "0.5581338", "0.55699646", "0.55557793", "0.54992336", "0.5488649", "0.5444703", "0.5444703", "0.5399012", "0.5395854", "0.5388264", "0.5358718", "0.5333542", "0.5324917", "0.52970886", "0.5220614", "0.5220614", "0.5177983...
0.6593176
1
The name of the security configuration.
public void setTaskRunSecurityConfigurationName(String taskRunSecurityConfigurationName) { this.taskRunSecurityConfigurationName = taskRunSecurityConfigurationName; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getTaskRunSecurityConfigurationName() {\n return this.taskRunSecurityConfigurationName;\n }", "String getConfigName();", "OctetString getSecurityName();", "public String getConfigName () {\n return this.configName;\n }", "public String getDisplayName() {\n return co...
[ "0.72947276", "0.671949", "0.669996", "0.66243964", "0.64205533", "0.637813", "0.6321333", "0.6170869", "0.6147731", "0.61378443", "0.6053991", "0.5973454", "0.59107745", "0.58966494", "0.589121", "0.58612007", "0.58217967", "0.58091956", "0.5709257", "0.5702031", "0.56863415...
0.58430207
16
The name of the security configuration.
public String getTaskRunSecurityConfigurationName() { return this.taskRunSecurityConfigurationName; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getConfigName();", "OctetString getSecurityName();", "public String getConfigName () {\n return this.configName;\n }", "public String getDisplayName() {\n return configName;\n }", "public String getConfigurationName() {\n return configurationName;\n }", "public String getNa...
[ "0.6717895", "0.66992855", "0.6622318", "0.6418541", "0.6376315", "0.6319692", "0.6171063", "0.6146164", "0.6136283", "0.60549825", "0.5973106", "0.59093416", "0.5896361", "0.5888247", "0.5861791", "0.5842875", "0.58195865", "0.58072877", "0.57110214", "0.569932", "0.5684635"...
0.7295514
0
The name of the security configuration.
public TransformEncryption withTaskRunSecurityConfigurationName(String taskRunSecurityConfigurationName) { setTaskRunSecurityConfigurationName(taskRunSecurityConfigurationName); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getTaskRunSecurityConfigurationName() {\n return this.taskRunSecurityConfigurationName;\n }", "String getConfigName();", "OctetString getSecurityName();", "public String getConfigName () {\n return this.configName;\n }", "public String getDisplayName() {\n return co...
[ "0.72947276", "0.671949", "0.669996", "0.66243964", "0.64205533", "0.637813", "0.6321333", "0.6170869", "0.6147731", "0.61378443", "0.6053991", "0.5973454", "0.59107745", "0.58966494", "0.589121", "0.58612007", "0.58430207", "0.58217967", "0.58091956", "0.5709257", "0.5702031...
0.0
-1
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
@Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getMlUserDataEncryption() != null) sb.append("MlUserDataEncryption: ").append(getMlUserDataEncryption()).append(","); if (getTaskRunSecurityConfigurationName() != null) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String toString() { return stringify(this, true); }", "@Override\n public String toString() {\n return new JSONSerializer().serialize(this);\n }", "public String toString() {\n\t\treturn this.toJSON().toString();\n\t}", "public String toString() {\n\t\treturn this.toJSON().toString();\n\t...
[ "0.8098831", "0.8073319", "0.8047624", "0.8047624", "0.80244064", "0.7973317", "0.79376996", "0.79281265", "0.7910597", "0.7893972", "0.7783564", "0.77832544", "0.7766772", "0.7766015", "0.7766015", "0.7766015", "0.77569056", "0.7727323", "0.7722676", "0.76741755", "0.7674175...
0.0
-1
move to last Page pg = pageBuffer.remove(idx); pageBuffer.add(pg); pageIdxMap.put(k, pageBuffer.size()1);
public Page get(PageId k) { return pageIdxMap.get(k); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private synchronized void evictPage() throws DbException {\n // some code goes here\n // not necessary for proj1\n //flush the page first, which is the end node\n // System.out.println(\"In evict head \" + head + \" end \"+end);\n // Node evictedNode = end;\n\n // Page re...
[ "0.60584176", "0.58059335", "0.5701982", "0.56220806", "0.5598912", "0.55334085", "0.5513846", "0.54707205", "0.54699516", "0.5460056", "0.5458795", "0.54126704", "0.5389789", "0.5365714", "0.5357766", "0.5343629", "0.53409934", "0.53279346", "0.5319759", "0.53112453", "0.531...
0.47894073
83
Creates a BufferPool that caches up to numPages pages.
public BufferPool(int numPages) { // some code goes here this.numPages = numPages; this.bufferPool = new PageBufferPool(numPages); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public BufferPool(int numPages) {\n // some code goes here\n this.pageNum = numPages;\n this.bufferedPages = new ConcurrentHashMap<PageId, Node>();\n currentTransactions = new ConcurrentHashMap<TransactionId, Long>();\n lockManager = new LockManager();\n }", "public BufferPo...
[ "0.79708135", "0.6555601", "0.6131033", "0.59494346", "0.5932114", "0.587576", "0.5655454", "0.56357664", "0.5597835", "0.5557527", "0.5512633", "0.5482023", "0.5432514", "0.54296845", "0.5377127", "0.52939385", "0.52911246", "0.5217752", "0.52000517", "0.51972973", "0.517455...
0.8274445
0
Retrieve the specified page with the associated permissions. Will acquire a lock and may block if that lock is held by another transaction. The retrieved page should be looked up in the buffer pool. If it is present, it should be returned. If it is not present, it should be added to the buffer pool and returned. If the...
public Page getPage(TransactionId tid, PageId pid, Permissions perm) throws TransactionAbortedException, DbException { // some code goes here if (bufferPool.containsKey(pid)) { return bufferPool.get(pid); } else { Page page = Database.getCatalog() ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Page getPage(TransactionId tid, PageId pid, Permissions perm)\n throws TransactionAbortedException, DbException {\n // some code goes here\n //return null;\n\n //for new transactions, record time.\n if (!currentTransactions.containsKey(tid)) {\n long time = Sys...
[ "0.6590788", "0.6154734", "0.6122657", "0.60659355", "0.60378754", "0.5943291", "0.5878136", "0.584622", "0.5824472", "0.5628231", "0.5611212", "0.5535382", "0.55257213", "0.5426661", "0.5319344", "0.52910215", "0.52464813", "0.5187403", "0.5165651", "0.51596856", "0.511113",...
0.69415236
0
Releases the lock on a page. Calling this is very risky, and may result in wrong behavior. Think hard about who needs to call this and why, and why they can run the risk of calling it.
public void releasePage(TransactionId tid, PageId pid) { // some code goes here // not necessary for lab1|lab2 }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void releasePage(TransactionId tid, PageId pid) {\n // some code goes here\n // not necessary for proj4\n lockManager.releaseLock(pid, tid);\n }", "public void removePageLock(AccessDetailVO requestPage){ \t\r\n\r\n \tlogger.info(\"Removing Lock Page: \" + requestPage.toString(...
[ "0.71139956", "0.70474297", "0.65474105", "0.62315965", "0.60592866", "0.60565376", "0.5840132", "0.5837729", "0.58263123", "0.5808895", "0.5763329", "0.5721732", "0.57113326", "0.57009685", "0.56765765", "0.5621951", "0.5611196", "0.56003916", "0.5598736", "0.5594491", "0.55...
0.5785693
10
Release all locks associated with a given transaction.
public void transactionComplete(TransactionId tid) throws IOException { // some code goes here // not necessary for lab1|lab2 }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void releaseLocks() {\n releaseLocksTo(null);\n }", "@Override\n public void releaseAll()\n {\n for ( int i = 0; i < exclusiveLockCounts.length; i++ )\n {\n PrimitiveLongIntMap exclusiveLocks = exclusiveLockCounts[i];\n PrimitiveLongIntMap sharedLocks = ...
[ "0.6889243", "0.60858804", "0.5998985", "0.5749189", "0.57361114", "0.571284", "0.56604", "0.55632824", "0.55041766", "0.54866695", "0.5398096", "0.5343545", "0.53222966", "0.5321395", "0.5319069", "0.5299482", "0.5189754", "0.5181245", "0.51385844", "0.5109973", "0.5076295",...
0.0
-1
Return true if the specified transaction has a lock on the specified page
public boolean holdsLock(TransactionId tid, PageId p) { // some code goes here // not necessary for lab1|lab2 return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean holdsLock(TransactionId tid, PageId p) {\n // some code goes here\n // not necessary for proj1\n //return false;\n return lockManager.hasLocks(tid, p);\n }", "public boolean isPageLocked(AccessDetailVO requestPage){\r\n \t\r\n \t// Not locked\r\n \tif(pageAc...
[ "0.72067", "0.71404314", "0.6161747", "0.61573195", "0.6110316", "0.6110316", "0.6006246", "0.59440625", "0.5940676", "0.59140897", "0.58920175", "0.57464385", "0.5744414", "0.5743066", "0.5712355", "0.57087016", "0.56733924", "0.5610499", "0.56072557", "0.55934304", "0.55912...
0.6808549
2
Commit or abort a given transaction; release all locks associated to the transaction.
public void transactionComplete(TransactionId tid, boolean commit) throws IOException { // some code goes here // not necessary for lab1|lab2 }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void commit() {\r\n tx.commit();\r\n tx = new Transaction();\r\n }", "void commit(Transaction transaction);", "public void closeTransaction(){\n\t\ttr.rollback();\n\t\ttr = null;\n\t}", "void rollback(Transaction transaction);", "void commitTransaction();", "public void commitTransaction() th...
[ "0.6987488", "0.6798575", "0.652813", "0.6481431", "0.6459742", "0.6457484", "0.6416272", "0.6301247", "0.62720674", "0.6269268", "0.6210418", "0.62049663", "0.61861444", "0.6174165", "0.6159262", "0.61560816", "0.6117668", "0.6109173", "0.61086005", "0.60959756", "0.6071476"...
0.0
-1
Add a tuple to the specified table behalf of transaction tid. Will acquire a write lock on the page the tuple is added to(Lock acquisition is not needed for lab2). May block if the lock cannot be acquired. Marks any pages that were dirtied by the operation as dirty by calling their markDirty bit, and updates cached ver...
public void insertTuple(TransactionId tid, int tableId, Tuple t) throws DbException, IOException, TransactionAbortedException { // some code goes here // not necessary for lab1 DbFile dbFile = Database.getCatalog().getDatabaseFile(tableId); ArrayList<Page> affectedPgs = dbFile.in...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void insertTuple(TransactionId tid, int tableId, Tuple t)\n throws DbException, IOException, TransactionAbortedException {\n // some code goes here\n // not necessary for proj1\n try {\n DbFile dbFile = Database.getCatalog().getDbFile(tableId);\n HeapFile he...
[ "0.76312613", "0.7204936", "0.7036811", "0.6834761", "0.68235457", "0.6702202", "0.66495794", "0.5939375", "0.564135", "0.5494065", "0.54713887", "0.54652816", "0.5436495", "0.5365145", "0.5354048", "0.5315201", "0.5181467", "0.5133557", "0.5065199", "0.50549304", "0.5014586"...
0.7629665
1
Remove the specified tuple from the buffer pool. Will acquire a write lock on the page the tuple is removed from. May block if the lock cannot be acquired. Marks any pages that were dirtied by the operation as dirty by calling their markDirty bit. Does not need to update cached versions of any pages that have been dirt...
public void deleteTuple(TransactionId tid, Tuple t) throws DbException, TransactionAbortedException { // some code goes here // not necessary for lab1 DbFile dbFile = Database.getCatalog().getDatabaseFile(t.getRecordId().getPageId().getTableId()); Page affectedPg = dbFile.delete...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Page deleteTuple(TransactionId tid, Tuple t) throws DbException,\n TransactionAbortedException {\n // some code goes here\n RecordId rid = t.getRecordId();\n PageId pid = rid.getPageId();\n Page p = Database.getBufferPool().getPage(tid, pid, Permissions.READ_WRITE);\n ...
[ "0.67407537", "0.67399716", "0.66029733", "0.65112084", "0.6386157", "0.604227", "0.59489685", "0.55003935", "0.5353305", "0.52237844", "0.5120491", "0.4836384", "0.48213986", "0.47891647", "0.474027", "0.4612184", "0.45934924", "0.4585724", "0.4562972", "0.45600918", "0.4560...
0.66152894
2
Flush all dirty pages to disk. NB: Be careful using this routine it writes dirty data to disk so will break simpledb if running in NO STEAL mode.
public synchronized void flushAllPages() throws IOException { // some code goes here // not necessary for lab1 Enumeration<PageId> it = bufferPool.pageIdxMap.keys(); while (it.hasMoreElements()) { flushPage(it.nextElement()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void flushAll() {\n dirtyS = true;\n dirtyD = true;\n modelRoot.incrementNumberOfDirtySNodes();\n modelRoot.incrementNumberOfDirtyDNodes();\n }", "public synchronized void flushAllPages() throws IOException {\n // some code goes here\n // not necessary for proj1\n ...
[ "0.7068016", "0.69800436", "0.6768475", "0.6521224", "0.6446633", "0.6337758", "0.63043964", "0.6280277", "0.62730616", "0.6266175", "0.620546", "0.61649764", "0.61442655", "0.61409515", "0.6133279", "0.6103046", "0.61018056", "0.6057461", "0.59774816", "0.595388", "0.5936399...
0.70038605
1
Remove the specific page id from the buffer pool. Needed by the recovery manager to ensure that the buffer pool doesn't keep a rolled back page in its cache.
public synchronized void discardPage(PageId pid) { // some code goes here // only necessary for lab5 bufferPool.remove(pid); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private synchronized void evictPage() throws DbException {\n // some code goes here\n // not necessary for lab1\n Page pg = bufferPool.evictPage();\n PageId pid = pg.getId();\n try {\n if (pg != null) {\n flushPage(pid);\n discardPage(pid...
[ "0.6557179", "0.6547012", "0.6480706", "0.6250619", "0.617686", "0.61587405", "0.6081174", "0.5943147", "0.58339196", "0.58222646", "0.58222646", "0.58056796", "0.5787668", "0.5787668", "0.578578", "0.5739946", "0.5736581", "0.57028645", "0.56983554", "0.566237", "0.56575656"...
0.7205415
0
Flushes a certain page to disk
private synchronized void flushPage(PageId pid) throws IOException { // some code goes here // not necessary for lab1 if (bufferPool.pageIdxMap.containsKey(pid)) { Page pg = bufferPool.pageIdxMap.get(pid); if (pg.isDirty() != null) { Database.getCatalog()...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private synchronized void flushPage(PageId pid) throws IOException {\n // some code goes here\n // not necessary for proj1\n try {\n Page page = bufferedPages.get(pid).page;\n page.markDirty(false, null);\n DbFile dbFile = Database.getCatalog()\n ...
[ "0.7068547", "0.6979216", "0.66093975", "0.6458819", "0.6293392", "0.62071186", "0.61306566", "0.6082387", "0.604304", "0.6027913", "0.6027913", "0.6027913", "0.6027913", "0.6024317", "0.6024317", "0.6024317", "0.5960581", "0.5960581", "0.5960581", "0.5956907", "0.58981514", ...
0.67818904
2
Write all pages of the specified transaction to disk.
public synchronized void flushPages(TransactionId tid) throws IOException { // some code goes here // not necessary for lab1|lab2 }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public synchronized void flushPages(TransactionId tid) throws IOException {\n // some code goes here\n // not necessary for proj1\n }", "public synchronized void flushAllPages() throws IOException {\n // some code goes here\n // not necessary for proj1\n for (PageId key : b...
[ "0.69438905", "0.61753166", "0.6040687", "0.55891734", "0.5578149", "0.5572257", "0.5568739", "0.55200124", "0.54739106", "0.54562116", "0.5454009", "0.5446128", "0.5432041", "0.54091585", "0.5286174", "0.5185276", "0.5175417", "0.510069", "0.5095625", "0.5089804", "0.5082871...
0.6266837
1
Discards a page from the buffer pool. Flushes the page to disk to ensure dirty pages are updated on disk.
private synchronized void evictPage() throws DbException { // some code goes here // not necessary for lab1 Page pg = bufferPool.evictPage(); PageId pid = pg.getId(); try { if (pg != null) { flushPage(pid); discardPage(pid); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public synchronized void discardPage(PageId pid) {\n // some code goes here\n // only necessary for lab5\n bufferPool.remove(pid);\n }", "public synchronized void discardPage(PageId pid) {\n // some code goes here\n // not necessary for proj1\n }", "private synchronized vo...
[ "0.7551786", "0.6835181", "0.60220397", "0.5766136", "0.5747767", "0.5723477", "0.5641357", "0.56336546", "0.5623896", "0.5605121", "0.5605121", "0.54946256", "0.54630554", "0.545616", "0.54527074", "0.5411253", "0.54099804", "0.5388686", "0.53643703", "0.5329778", "0.5326555...
0.68269646
2
write your code here
public static void main(String[] args) throws Exception { Scanner scn=new Scanner (System.in); int n=scn.nextInt(); int[] arr=new int[n]; for(int i=0;i<n;i++){ arr[i]=scn.nextInt(); } System.out.println(lis(arr)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void logic(){\r\n\r\n\t}", "public static void generateCode()\n {\n \n }", "@Override\n\tprotected void logic() {\n\n\t}", "private static void cajas() {\n\t\t\n\t}", "void pramitiTechTutorials() {\n\t\n}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\r\n\tpub...
[ "0.6102675", "0.60554034", "0.5881289", "0.5827861", "0.5797848", "0.5699908", "0.5690402", "0.5655419", "0.5649126", "0.56402504", "0.56354046", "0.5604573", "0.5602213", "0.56006557", "0.55898213", "0.5584013", "0.5576956", "0.55739224", "0.5560841", "0.55331355", "0.551296...
0.0
-1
when this therapy pig is acting as a service animal, this is what it means to be helpful
@Override public void beHelpful() { this.playPiano(); this.takeABow(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void eat(){\r\n System.out.println(this.animalName + \" eats\");\r\n }", "public void pet() {\n this.hunger += 1;\n this.mood += 1;\n\n if (!muted) {\n System.out.println(\"pet\\t\\t|\\t*purrr*\");\n }\n }", "@Override\r\n\tpublic String say() {\n\t\tif(...
[ "0.56698626", "0.5658397", "0.5617339", "0.548762", "0.5484465", "0.5466706", "0.5424742", "0.5390058", "0.5377563", "0.5330792", "0.52770936", "0.5271519", "0.52550143", "0.52351046", "0.52349657", "0.5213487", "0.52124697", "0.51996195", "0.51964796", "0.5191028", "0.515875...
0.0
-1
Creates new form SeeAnAccount
public SeeAnAccount() { initComponents(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Account create();", "public void createAccount(){\n System.out.println(\"vi skal starte \");\n }", "public CreateAccount() {\n initComponents();\n selectionall();\n }", "public void createAccount() {\n\t\tSystem.out.print(\"Enter Name: \");\n\t\tString name = nameCheck(sc.next());...
[ "0.68641275", "0.68548733", "0.66778773", "0.6601759", "0.64997", "0.64400595", "0.64025784", "0.6387248", "0.6369268", "0.6343651", "0.62998843", "0.62469095", "0.621993", "0.62021476", "0.619833", "0.61917144", "0.616689", "0.6140021", "0.6139186", "0.6131123", "0.6090531",...
0.65644324
4
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.
@SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { jPanel1 = new javax.swing.JPanel(); jSeparator1 = new javax.swing.JSeparator(); jLabel1 = new javax.swing.JLabel(); jScrollPan...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Form() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public frmRectangulo() {\n initComponents();\n }", "public form() {\n ...
[ "0.7319396", "0.7290941", "0.7290941", "0.7290941", "0.7285927", "0.7248002", "0.72139066", "0.72086275", "0.71958303", "0.718997", "0.7184516", "0.7159095", "0.71481097", "0.709288", "0.70806605", "0.70578784", "0.6986726", "0.6977067", "0.6955257", "0.6954392", "0.6945326",...
0.0
-1
This method initialises the toolbar
private void initialiseToolbar() { getSupportActionBar().setTitle("Custom Interval"); getSupportActionBar().setDisplayHomeAsUpEnabled(true); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void initToolBar(){\n toolbar = (Toolbar) findViewById(R.id.toolbar);\n setSupportActionBar(toolbar);\n }", "public void initToolbar(){\n //check if toolbar is already inflated\n if(mToolbar == null){\n //if null, inflate the toolbar\n mToolbar = (Tool...
[ "0.83576965", "0.83179337", "0.8256839", "0.8164935", "0.8124597", "0.8123726", "0.8059037", "0.7980857", "0.7814591", "0.77079165", "0.76579773", "0.7623406", "0.75544786", "0.7553197", "0.7518148", "0.75121737", "0.7500869", "0.7470856", "0.7440413", "0.7435777", "0.7424754...
0.80223334
7
protected function private function
public static Map<String, List<List<String>>> get_excel_data( String excel_file ) { Map<String, List<List<String>>> ExcelData = new HashMap<String, List<List<String>>>(); xls_parser excel_obj = new xls_parser(); ExcelData = excel_obj.GetExcelData(excel_file); return ExcelData; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "protected boolean func_70814_o() { return true; }", "@Override\n public void perish() {\n \n }", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void func02() {\n\t\t...
[ "0.6099758", "0.5989441", "0.5935888", "0.5838968", "0.57488906", "0.5709909", "0.5683407", "0.5671792", "0.5629761", "0.5627258", "0.5601436", "0.5583414", "0.5563025", "0.55495495", "0.55346006", "0.55267984", "0.5517076", "0.55131024", "0.5482145", "0.54809624", "0.5468222...
0.0
-1
merge suite data and case data(already merged with macro) to an final case data. don't forget get the replaced string back
public HashMap<String, HashMap<String, String>> merge_suite_case_data( Map<String, String> suite_data, Map<String, String> case_data, String extra_env, String xlsx_dest) { HashMap<String, HashMap<String, String>> merge_data = new HashMap<String, HashMap<String, String>>(); // insert id data Str...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Phase1_mod(String dataset1, String dataset2, String output)throws IOException{\n\t\t\n\t\tcontext=new HashMap<String,HashSet<String>>();\n\t\tScanner in1=new Scanner(new FileReader(new File(dataset1)));\n\t\tdata1=new ArrayList<String>();\n\t\t\n\t\t\n\t\tint index=0;\n\t\twhile(in1.hasNextLine()){\n\t\t\tS...
[ "0.46327168", "0.46302712", "0.45520627", "0.4514829", "0.44180617", "0.4416489", "0.4413436", "0.4404438", "0.4386706", "0.43629062", "0.43606895", "0.43477917", "0.4346056", "0.43450406", "0.4334715", "0.43220305", "0.43193477", "0.43167794", "0.4307993", "0.43020713", "0.4...
0.70725715
0
compare sub map data Software, System, Machine
private Boolean is_request_match(HashMap<String, HashMap<String, String>> queue_data, HashMap<String, HashMap<String, String>> design_data) { Boolean is_match = Boolean.valueOf(true); List<String> check_items = new ArrayList<String>(); check_items.add("Software"); check_items.add("System"); check_item...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void compareDataStructures();", "private void compareFirstPass() {\n this.oldFileNoMatch = new HashMap<String, SubsetElement>();\r\n Iterator<String> iter = this.oldFile.keySet().iterator();\r\n while (iter.hasNext()) {\r\n final String key = iter.next();\r\n if (!this....
[ "0.5871857", "0.5531688", "0.54223853", "0.5408945", "0.53722745", "0.5371273", "0.5362006", "0.5332552", "0.53203875", "0.5288356", "0.5269727", "0.5243742", "0.5218669", "0.5195007", "0.51857346", "0.51595706", "0.5154256", "0.51431274", "0.51172763", "0.51100665", "0.51076...
0.0
-1
admin queue priority check:0>1>2..>5(default)>...8>9
private String get_one_queue_name( String admin_queue_base, String create_time, String sub_task_number, String current_terminal, HashMap<String, HashMap<String, String>> design_data) { String priority = public_data.TASK_DEF_PRIORITY; if (!design_data.containsKey("CaseInfo")) { priority = p...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@DISPID(3)\r\n\t// = 0x3. The runtime will prefer the VTID if present\r\n\t@VTID(9)\r\n\tint queuePriority();", "@DISPID(115)\r\n\t// = 0x73. The runtime will prefer the VTID if present\r\n\t@VTID(110)\r\n\tint queuePriority();", "int priority();", "int priority();", "public void updatePriority() {//determ...
[ "0.69260824", "0.685772", "0.62151164", "0.62151164", "0.6093402", "0.6081261", "0.6051108", "0.6051108", "0.6051108", "0.6051108", "0.6051108", "0.6051108", "0.6051108", "0.6051108", "0.59804934", "0.59804434", "0.59797096", "0.5957229", "0.5957229", "0.59536296", "0.5919149...
0.52721804
97
generate different admin and task queue hash
public void generate_suite_file_local_admin_task_queues( String generate_time, String local_file, HashMap<String, String> imported_data, String current_terminal ) { String task_env = imported_data.get("env"); String task_sort = imported_data.get("sort"); TreeMap<String, HashMap<String, Hash...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String calulateHash() {\r\n\t\t\r\n\t\tif(isTypeCreation){\r\n\t\t\treturn StringUtil.applySha256(\r\n\t\t\t\t\tStringUtil.getStringFromKey(creator) +\r\n\t\t\t\t\tname+description+begin+end+end_subscription+\r\n\t\t\t\t\tmin_capacity+max_capacity+ date_creation_transaction.getTime()\r\n\t\t\t\t\t);\r\n\t\...
[ "0.6576875", "0.6531258", "0.6023728", "0.6001751", "0.59084535", "0.58417434", "0.5803763", "0.57047546", "0.5634627", "0.56164515", "0.5524688", "0.55053467", "0.55053467", "0.5491734", "0.5487638", "0.54224825", "0.5374855", "0.536985", "0.5354337", "0.5325966", "0.5304396...
0.5065884
38
=========================================================================== =========================================================================== for suite path support
public static Boolean suite_paths_sanity_check( String suite_paths, String suite_key) { for (String suite_path : suite_paths.split("\\s*,\\s*")){ File path_fobj = new File(suite_path); if(!path_fobj.exists()){ suite_path_error_msg = "Error: Suite path not exists:" + suite_paths; System.out...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected String getTestSuiteBootstrapSuitePath() {\n return null;\n }", "public static Test suite() {\n\t\tTestSuite suite = new TestSuite(\"Test for Server\");\n\t\tsuite.addTestSuite(DatabaseTest.class);\n suite.addTest(SuiteTestMenu.suite());\n\t\tsuite.addTestSuite(ServerGameTest.class);\n\t\...
[ "0.65794456", "0.62048846", "0.60504746", "0.60447216", "0.5932533", "0.5901439", "0.58221924", "0.58018327", "0.5795592", "0.57692957", "0.57692957", "0.57692957", "0.57578045", "0.5747034", "0.56842947", "0.56668", "0.564922", "0.5638201", "0.56323117", "0.5619615", "0.5607...
0.5144675
65
step 1:generate original case list
public void generate_suite_path_local_admin_task_queues( String generate_time, String suite_path, String work_space, HashMap<String, String> imported_data ){ List<String> case_list = new ArrayList<String>(); case_list.addAll(get_case_list(suite_path, work_space, imported_data)); //step 2:get...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void genLists() {\n\t}", "public void generateSolutionList() {\n // Will probably solve it in a few years\n while (!isSolved()) {\n RubiksMove move = RubiksMove.random();\n solutionMoves.add(move);\n performMove(move);\n }\n }", "public void setCa...
[ "0.5846459", "0.5561995", "0.55542034", "0.5504654", "0.5436641", "0.54252946", "0.53771734", "0.5365006", "0.5352187", "0.5337401", "0.53247833", "0.5253434", "0.5245282", "0.5232896", "0.5231007", "0.52173537", "0.5211966", "0.5177438", "0.5169409", "0.5169384", "0.50872374...
0.0
-1
admin queue priority check:0>1>2..>5(default)>...8>9
private String get_standard_admin_queue_name( String sub_id, String generate_time, String suite_path, HashMap<String, HashMap<String, String>> case_data ) { String priority = new String(public_data.TASK_PRI_LOCALLY); if (case_data.get("CaseInfo").containsKey("priority")) { priority = case_d...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@DISPID(3)\r\n\t// = 0x3. The runtime will prefer the VTID if present\r\n\t@VTID(9)\r\n\tint queuePriority();", "@DISPID(115)\r\n\t// = 0x73. The runtime will prefer the VTID if present\r\n\t@VTID(110)\r\n\tint queuePriority();", "int priority();", "int priority();", "public void updatePriority() {//determ...
[ "0.69260824", "0.685772", "0.62151164", "0.62151164", "0.6093402", "0.6081261", "0.6051108", "0.6051108", "0.6051108", "0.6051108", "0.6051108", "0.6051108", "0.6051108", "0.6051108", "0.59804934", "0.59804434", "0.59797096", "0.5957229", "0.5957229", "0.59536296", "0.5919149...
0.0
-1
admin queue priority check:0>1>2..>5(default)>...8>9
private String get_freestyle_admin_queue_name( String generate_time, String suite_path ) { String priority = new String(public_data.TASK_PRI_LOCALLY); // task belong to this client: 0, assign task(0) > match task(1) String assignment = new String("0"); // receive time String mark_time = time_i...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@DISPID(3)\r\n\t// = 0x3. The runtime will prefer the VTID if present\r\n\t@VTID(9)\r\n\tint queuePriority();", "@DISPID(115)\r\n\t// = 0x73. The runtime will prefer the VTID if present\r\n\t@VTID(110)\r\n\tint queuePriority();", "int priority();", "int priority();", "public void updatePriority() {//determ...
[ "0.69256943", "0.68575966", "0.6214202", "0.6214202", "0.60934365", "0.60802203", "0.60499877", "0.60499877", "0.60499877", "0.60499877", "0.60499877", "0.60499877", "0.60499877", "0.60499877", "0.5980772", "0.59802216", "0.5979017", "0.59559685", "0.59559685", "0.5953993", "...
0.0
-1
generate case data =========================================================================== =========================================================================== main
public static void main(String[] argv) { task_data task_info = new task_data(); local_tube sheet_parser = new local_tube(task_info); String current_terminal = "LSHITD0097"; HashMap<String, String> imported_data = new HashMap<String, String>(); imported_data.put("env", "a=b"); imported_data.put("sort",...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void test4a() {\n DataSet dataSetxx = load(\"exampleBig.dnal\");\n DataSet dataSet = load(\"exampleBig.dnal\");\n \n log(\"json..\");\n Generator gen = dataSet.createGenerator();\n JSONValueGenerator visitor = new JSONValueGenerator();\n boolean b ...
[ "0.5643376", "0.5617506", "0.5438039", "0.5437307", "0.53954214", "0.5382024", "0.53436595", "0.5301824", "0.52954566", "0.52661294", "0.5260014", "0.52539104", "0.52495444", "0.52312165", "0.52214485", "0.5215467", "0.52118665", "0.52106994", "0.52100766", "0.5164327", "0.51...
0.0
-1
/ Methods /// SECTION :: MAIN // Find user by email and hash of password.
@Override public User findByUsernameAndPassword( String username, String password ) { return this.userRepository.findByUsernameAndPassword( username, password ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private User getUserFromUsersBy(String email, String password){\n \tUser user=null;\n \tfor(User u : users ){\n \t\tif(u.getEmail().equals(email)&&u.getPassword().equals(password)){\n \t\t\tuser = u;\n \t\t}\n \t}\n \treturn user;\n }", "@Override\n\tpublic UserDetails checkUser(String em...
[ "0.6812927", "0.6765852", "0.6729798", "0.65513784", "0.6509047", "0.64830023", "0.6449353", "0.6436963", "0.64066076", "0.6400295", "0.6386838", "0.6370602", "0.6363648", "0.63485307", "0.63307756", "0.63154835", "0.6311628", "0.6279714", "0.62783307", "0.6254101", "0.625410...
0.0
-1
Find user by email.
@Override public User findByUsername( String username ) { return this.userRepository.findByUsername( username ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public User findUserByEmail(final String email);", "User find(String email);", "User findUserByEmail(String email) throws Exception;", "User getUserByEmail(final String email);", "User getUserByEmail(String email);", "@Override\n\tpublic Users findUserByEmail(String email) {\n\t\treturn iUserDao.findUser...
[ "0.8406801", "0.8333299", "0.82740235", "0.8204839", "0.80906194", "0.80624735", "0.8034102", "0.8018018", "0.79512304", "0.79372656", "0.79372656", "0.79372656", "0.79372656", "0.79372656", "0.79372656", "0.793075", "0.79112667", "0.78925055", "0.788683", "0.788683", "0.7880...
0.0
-1
Find user by social id.
@Override public User findBySocialId( Long socialId ) { return this.userRepository.findBySocialId( socialId ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "User getUserById(int id);", "@Override\r\n\tpublic User searchUser(Integer id) {\n\t\treturn userReposotory.getById(id);\r\n\t}", "public User findUser(int id) {\n for (int i = 0; i < allUsers.size(); i++) {\n if (allUsers.get(i).getId() == id) {\n return allUsers.get(i);\n ...
[ "0.7059524", "0.70313966", "0.7012933", "0.6988382", "0.69853985", "0.69758", "0.6974392", "0.6974392", "0.69713885", "0.69606876", "0.69308853", "0.6920524", "0.69124603", "0.68975234", "0.68650544", "0.68416107", "0.6829737", "0.68020415", "0.6774034", "0.6740852", "0.67249...
0.7361179
0
Create a new user.
@Override public User create( User user ) { //- Save user to persistence -// final User newUser = this.userRepository.save(user); //- Check created user -// notNull( newUser, "Cannot save user." ); //- Send notification -// try { //- Prepare content -// ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void createUser(User user) {\n\n\t}", "UserCreateResponse createUser(UserCreateRequest request);", "public void createUser(User user);", "CreateUserResult createUser(CreateUserRequest createUserRequest);", "public String create() {\r\n\t\tuserService.create(userAdd);\r\n\t\tusers.setWrappedData(user...
[ "0.8182906", "0.8132935", "0.81279486", "0.8020142", "0.7835916", "0.7633848", "0.7606319", "0.7599281", "0.7591098", "0.75601476", "0.754625", "0.74553514", "0.7444559", "0.74369663", "0.7428213", "0.740783", "0.7349728", "0.7346785", "0.73196584", "0.73134166", "0.73095053"...
0.6730224
95
TODO have another array initialized so that a list of callbacks can be stored, String[] callbackList
public SidhdhiQueryExecutor(String query){ this.query = query; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface\t\tUCallbackList\n{\n /**\n * Removes all the registered callbacks.\n * <p>\n\t */\n\tpublic void\t\tremoveAll();\n\n /**\n * Removes the registered callback associated with the given tag.\n * <p>\n * @param tag The tag associated with the removed callback.\n\t */\n\tpubl...
[ "0.6690002", "0.6615934", "0.65775037", "0.6445035", "0.6416619", "0.6235532", "0.6195719", "0.60669625", "0.6049255", "0.6035614", "0.6018018", "0.59720176", "0.5907303", "0.5848847", "0.5840965", "0.5798413", "0.57945645", "0.57656366", "0.5760606", "0.57577187", "0.5743419...
0.0
-1
TODO the array of callbacks needs to be passed to invoke TODO what is retruned should be a map of callbacks and outputs
public void run(){ ExecutionPlan executionPlan = new ExecutionPlan().invoke(); Thread thisThread = Thread.currentThread(); while (sidhdiThread == thisThread) { InputHandler inputHandler = executionPlan.getInputHandler(); //Sending events to Siddhi try { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Object run(Callback<String> callback, String input);", "public void callback();", "@Override\n\t\t\tpublic void callbackCall() {\n\t\t\t}", "public void callback() {\n }", "private void\n\t invokeCallbacks( SoEvent e)\n\t //\n\t /////////////////////////////////////////////////////////////////////...
[ "0.6893442", "0.6565064", "0.6276108", "0.6204989", "0.62028813", "0.615065", "0.61147845", "0.6110757", "0.61033773", "0.6093948", "0.6085818", "0.60805184", "0.60687387", "0.6029435", "0.59952426", "0.5991375", "0.597741", "0.5970977", "0.5951862", "0.5929958", "0.59018475"...
0.0
-1
TODO should expect an array of callbacks
public ExecutionPlan invoke() { //Generating runtime ExecutionPlanRuntime runtime = siddhiManager.createExecutionPlanRuntime(query); //TODO logic needs to be revised so that array of callbacks are processed runtime.addCallback("dataOut", new StreamCallback() { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void callback();", "public void callback() {\n }", "@Override\n\t\t\tpublic void callbackCall() {\n\t\t\t}", "@Override\n\tpublic void onCallback() {\n\t\t\n\t}", "public interface Callback {\n }", "interface Callbacks {\n void pipelineModeChanged(boolean z) throws ;\n\n void r...
[ "0.7196481", "0.69699043", "0.6778896", "0.6646389", "0.6643654", "0.66265076", "0.6572894", "0.65550876", "0.644289", "0.6425028", "0.6412119", "0.6407681", "0.63858324", "0.6378809", "0.63711417", "0.63469934", "0.63469934", "0.6340582", "0.63298887", "0.632273", "0.6300162...
0.0
-1
write all logic to calculate the totalAmount user has to pay
@Override public void pay() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void calculatePayment()\n {\n this.paymentAmount = annualSalary / SALARY_PERIOD;\n }", "public int getTotalAmount();", "private void calcTotalAmount(){\n\t totalAmount = 0;\n\t\tfor(FlightTicket ft : tickets)\n\t\t{\n\t\t\ttotalAmount += ft.getClassType().getFee() * ge...
[ "0.70474964", "0.70464265", "0.69929785", "0.69422215", "0.68872905", "0.68545145", "0.6846114", "0.6810461", "0.67499566", "0.67422503", "0.6735225", "0.67327166", "0.67156744", "0.67010486", "0.6683032", "0.66763645", "0.6639598", "0.66219157", "0.6585764", "0.6578548", "0....
0.0
-1
TODO Autogenerated method stub
@Override protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { super.doGet(req, resp); }
{ "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
Gets the cost of the drink
public double getCost() { if (super.getSize() == "Small") { totalCost = 2.00; } if (super.getSize() == "Medium") { totalCost = 2.50; } if (super.getSize() == "Large") { totalCost = 3.00; } return totalCost; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "double getCost();", "double getCost();", "public double getCost() {\n\t\t\n\t\tdouble cost = 0;\n\t\t\n\t\tif (Objects.equals(Size, \"small\"))\n\t\t\tcost = 7.00;\n\t\telse if (Objects.equals(Size, \"medium\"))\n\t\t\tcost = 9.00;\n\t\telse if (Objects.equals(Size, \"large\"))\n\t\t\tcost = 11.00;\n\t\t\n\t\t...
[ "0.78814435", "0.78814435", "0.7680472", "0.7643979", "0.75703675", "0.7565079", "0.7563672", "0.754685", "0.75201255", "0.75201255", "0.75201255", "0.7517541", "0.75093067", "0.7491561", "0.7490034", "0.7489033", "0.74543583", "0.74543583", "0.7449276", "0.7446603", "0.74466...
0.7078636
62
Select the heir component that is on top at the given location. Nota bene: parents clip their children.
@Override public Component select(int x, int y) { m_selected = super.select(x, y); return m_selected; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public IPSComponent peekParent();", "public void place(){\n\t\tplace((float) Math.floor(Main.mouseSelector.x)+0.5f,(float) Math.floor(Main.mouseSelector.y)+0.5f);\r\n\t}", "IOverlayStyle location(int leftX, int rightX, int topY, int bottomY);", "Layer getTopMostVisible();", "Point getTopXY();", "void sel...
[ "0.5861525", "0.5648005", "0.5463249", "0.537293", "0.53614795", "0.5305996", "0.52991164", "0.5277059", "0.5245106", "0.5214592", "0.5197198", "0.5192689", "0.51659286", "0.51565784", "0.51524967", "0.51137096", "0.50935084", "0.509218", "0.50790846", "0.5056466", "0.5046543...
0.4807614
60
Created by student on 2016/03/13.
public interface Zoo { AnimalType getAnimalType(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "@Override\n public Date getCreated()\n {\n return null;\n }", "@Override\r\n\tpublic Date getCreated_date() {\n\t\treturn super.getCreated_date();\r\n\t}", "public Date getDateCreated(){return DATE_CREATED;}", "@Override\n public void perish() {\n \n ...
[ "0.60439426", "0.583881", "0.5709574", "0.56959516", "0.5647571", "0.5631002", "0.5628088", "0.5622184", "0.5617091", "0.5578318", "0.5556012", "0.55470496", "0.554198", "0.55399233", "0.5537612", "0.5526543", "0.5524522", "0.55180943", "0.5507887", "0.5505615", "0.5502272", ...
0.0
-1
Many to Many Relation with Tag class
@GetMapping("tags/{tagId}") public Page<Post> getAllPostsByTagId(@PathVariable (value = "tagId") Long tagId, Pageable pageable) { return postRepository.findByTags_Id(tagId, pageable); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void loadTag(){ \n\t\t try {\n\n\t\t\t\tConnection con = DBConnection.connect();\n\n\t\t\t\tString query=\"select * from Tag \";\n\t\t\t\tPreparedStatement pst=con.prepareStatement(query);\n\t\t\t\tResultSet rs=pst.executeQuery();\n\t\t\t\t\n\t\t\t\twhile(rs.next())\n\t\t\t\t{\n\t\t\t\t\tString name =rs....
[ "0.5804301", "0.5791873", "0.5754539", "0.5754539", "0.57490504", "0.56001776", "0.5577677", "0.5505408", "0.5495108", "0.54588985", "0.53726107", "0.53692406", "0.5344966", "0.5343054", "0.53256613", "0.53256613", "0.53175837", "0.5299659", "0.529037", "0.52615094", "0.52312...
0.0
-1
""Exercici1JPA" was the value of the name attribute of the persistenceunit element.
public EntityManagerFactory newEMFactory() { emFactory = Persistence.createEntityManagerFactory("Exercici1-JPA"); return emFactory; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setElementNameForHibernate(SC elementName) {\n _elementName = elementName;\n }", "public void setNomDepartamento(String nomDepartamento);", "public static String[] getPersistenceUnitNames(Project project) {\n FileObject persistenceXML;\n try {\n persistenceXML = J2EEUti...
[ "0.5690897", "0.5522594", "0.5463314", "0.54084563", "0.536523", "0.53086674", "0.5298926", "0.52811885", "0.5271731", "0.5249188", "0.5243275", "0.52397615", "0.52340037", "0.52338356", "0.5215327", "0.5207814", "0.5205949", "0.5196708", "0.518233", "0.518233", "0.518233", ...
0.0
-1
""Exercici1JPA" was the value of the name attribute of the persistenceunit element.
public CriteriaBuilder getBuilder() { CriteriaBuilder builder = emFactory.getCriteriaBuilder(); return builder; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setElementNameForHibernate(SC elementName) {\n _elementName = elementName;\n }", "public void setNomDepartamento(String nomDepartamento);", "public static String[] getPersistenceUnitNames(Project project) {\n FileObject persistenceXML;\n try {\n persistenceXML = J2EEUti...
[ "0.56902945", "0.55220366", "0.54624724", "0.54080385", "0.5365785", "0.5310035", "0.52955234", "0.5282411", "0.5271541", "0.52516705", "0.52430856", "0.5240307", "0.52343744", "0.52342397", "0.521597", "0.52077943", "0.5206691", "0.5197567", "0.51834047", "0.51834047", "0.51...
0.0
-1
TODO Autogenerated method stub BufferedReader br = new BufferedReader(new InputStreamReader(Thread.currentThread().getContextClassLoader().getResourceAsStream("morpheme.dic"), "UTF8"));
public static void main(String[] args) throws UnsupportedEncodingException, FileNotFoundException { InputStream in = Thread.currentThread().getContextClassLoader().getResourceAsStream("riddles.xls"); InputStream is = new FileInputStream(new File("C:\\Users\\sean\\workspace\\mlymoon\\src\\main\\resour...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void load() {\n\t\tFileHandle file = Gdx.files.internal(DogRunner.PARENT_DIR + \"charset.txt\");\n\t\tcharset = file.readString();\n\t}", "public void loadDictionary() {\r\n\t\r\n\t\t\r\n\t\ttry {\r\n\t\t\r\n\t\t\tFileReader fr = new FileReader( \"rsc/English.txt\" );\r\n\t\t BufferedReade...
[ "0.6607113", "0.60036397", "0.55648685", "0.5530217", "0.5490471", "0.5331743", "0.53263724", "0.53018844", "0.52990085", "0.5268905", "0.5230643", "0.51909655", "0.5189093", "0.5153165", "0.5121154", "0.5109039", "0.5092279", "0.5085426", "0.5069468", "0.50600225", "0.504688...
0.0
-1
/ Calculates FIbonacci numbers
public static void main(String[] args) { System.out.println("How many fibonacci numbers do you want?"); Scanner scanner = new Scanner(System.in); int n = scanner.nextInt(); List<Long> fibonacciNumbers = getFibonacciNumbers(n); for(Long i : fibonacciNumbers) { System.out.println(i); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void Fibonacciseries()\r\n\t{\r\n\t\tint firstNo=0,secondNo=1,sum;\r\n\t\tint count;\r\n\t\t\r\n\t\tSystem.out.println(\"Enter the Number\");\r\n\t\tcount = sc.nextInt();//Read the number to calculate fibonacci\r\n\t\t\r\n\t\tSystem.out.println(firstNo);\r\n\t\tSystem.out.println(secondNo);\r\n\t\t\r\n\t\tf...
[ "0.7759329", "0.7705222", "0.75737584", "0.7551405", "0.75092226", "0.74778086", "0.74515575", "0.7377629", "0.7317013", "0.72993135", "0.7274564", "0.72562885", "0.7242556", "0.7216507", "0.72158825", "0.72063595", "0.71968126", "0.71714056", "0.7169584", "0.7156967", "0.713...
0.0
-1
Do something... Create the ConnectionPool:
@Override public void run() { pool = new JDBCConnectionPool( "org.apache.hive.jdbc.HiveDriver", "jdbc:hive2://10.2.216.33:10000", "", ""); // Get a connection: Connection con = pool.checkOut(); ResultSet set = null; try { set = con...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void start() {\n synchronized (initLock) {\n\n try {\n connectionPool = new ConnectionPool(driver, serverURL, username,\n password, minConnections, maxConnections, connectionTimeout,\n mysqlUseUnicode);\n }\n ...
[ "0.76163185", "0.7512812", "0.72853434", "0.72805464", "0.7268305", "0.7260395", "0.71813136", "0.71136314", "0.69043493", "0.6897731", "0.6873627", "0.68412346", "0.6824346", "0.6772137", "0.6772137", "0.6745329", "0.6704201", "0.66840076", "0.66214746", "0.6603661", "0.6587...
0.6569535
21
Specific proposals creation. May be use factory?
@Override protected ScriptCompletionProposal createScriptCompletionProposal(String completion, int replaceStart, int length, Image image, String displayString, int i) { return new RutaScriptCompletionProposal(completion, replaceStart, length, image, displayString, i); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ICompletionProposal[] computeCompletionProposals(ITextViewer viewer,\n\t\t\tint documentOffset) {\n\t\tboolean dotActivation = false;\n\n\t\tVector<ICompletionProposal> result = new Vector<ICompletionProposal>();\n\t\t// ICompletionProposal[] result= new\n\t\t// ICompletionProposal[fgProposals.length];\n\t\...
[ "0.632848", "0.6150986", "0.6149653", "0.59853137", "0.58448935", "0.58359146", "0.5806266", "0.57665557", "0.5766505", "0.5717322", "0.56768906", "0.5665996", "0.5618186", "0.56178534", "0.5548231", "0.5539921", "0.5473482", "0.546387", "0.5461912", "0.5455576", "0.5446161",...
0.52811915
28
Parametro pa = parametrosDao.consultar("integrador.periodo.arranque");
private Periodo getPeriodoCorte() { String valor = parametrosDao.obtenerTodosParametros().get("integrador.periodo.arranque"); return Periodo.parse(valor, "yyyyMM"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void guardar(Periodo periodo)\r\n/* 22: */ {\r\n/* 23: 42 */ this.periodoDao.guardar(periodo);\r\n/* 24: */ }", "public interface CamareroDAO extends CommonDAO<Camarero> {\n\n List<Object[]> obtenerConsultaCamarero(String queryNativo, String mapeador, Date fechaInicial, Date fechaFinal...
[ "0.6999087", "0.691929", "0.67678154", "0.65963846", "0.6594681", "0.65926147", "0.6588657", "0.6580324", "0.65631336", "0.6557155", "0.6552978", "0.6498402", "0.64782304", "0.64774966", "0.6469085", "0.6467406", "0.6463689", "0.6421595", "0.64210725", "0.6408593", "0.6403476...
0.0
-1
TODO Autogenerated method stub
public void onTestFailedButWithinSuccessPercentage(ITestResult arg0) { }
{ "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
TODO Autogenerated method stub
public void onStart(ITestContext arg0) { }
{ "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
Constructor of the class. Creates a new Invalid time exception.
public InvalidTimeException(String message) { super(message); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected Time() {\n\t}", "public ScheduleException() {\r\n }", "public TimeConstraint() {\n\t\t// Start of user code constructor for TimeConstraint)\n\t\tsuper();\n\t\t// End of user code\n\t}", "@Test(expected = IllegalArgumentException.class)\n public void testConstructorNegativeHoursOne(){\n \tC...
[ "0.71785134", "0.6954708", "0.68367505", "0.6831909", "0.68245065", "0.68065417", "0.67909694", "0.6787714", "0.6755259", "0.674389", "0.6740705", "0.67327374", "0.67263985", "0.67030936", "0.66788614", "0.66564804", "0.65566367", "0.65544784", "0.6539501", "0.65141034", "0.6...
0.7864927
0
Sets the simple name.
public void setSimpleName(String simpleName) { this.simpleName = simpleName; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setName(String s) {\n this.name = s;\n }", "public void setName(String s) {\n\t\t\n\t\tname = s;\n\t}", "public void setName(java.lang.String value) {\n this.name = value;\n }", "public void setNameString(String s) {\n nameString = s;\r\n }", "public void setName(String value)...
[ "0.82663864", "0.8201632", "0.80315644", "0.8001976", "0.7940823", "0.78554624", "0.7837548", "0.7834957", "0.7833213", "0.7822519", "0.78183806", "0.7806296", "0.77987236", "0.7797968", "0.7797968", "0.7790445", "0.7790445", "0.7790445", "0.77897054", "0.77897054", "0.777362...
0.0
-1
Default constructor required by Jackson/GSON for calls to DataSnapshot.getValue(User.class) cf.
public Game(){ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public JSONUser(){\n\t}", "@SuppressWarnings(\"unchecked\")\n\tpublic UserSerializer() {\n\t\tsuper();\n\t\tmapSerializer.putAll(BeanRetriever.getBean(\"mapSerializerStrategy\", Map.class));\n\t}", "public User(){\n this(null, null);\n }", "UserModel()\n {/*Used for Gson*/}", "public JSONUser(...
[ "0.69402474", "0.6878641", "0.66396064", "0.6628966", "0.6618515", "0.65592086", "0.6499463", "0.6447355", "0.64456064", "0.64084417", "0.6408179", "0.6313587", "0.6303145", "0.6303145", "0.6284498", "0.6284498", "0.6284498", "0.6267481", "0.62650514", "0.62650514", "0.626505...
0.0
-1
WHen pressing up, move according to direction facing
public void up() { switch (facing){ case "RIGHT" : vely = 0; velx = 1.5; break; case "LEFT" : vely = 0; velx = -1.5; break; case "UP" : vely = -1.5; velx = 0; break; case "DOWN" : vely = 1.5; velx = 0; break; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void up() {\n move(positionX, positionY - 1);\n orientation = BattleGrid.RIGHT_ANGLE * 3;\n }", "public void up(){\n\t\tmoveX=0;\n\t\tmoveY=-1;\n\t}", "public void moveUp(){\n\t\tif(GameSystem.TWO_PLAYER_MODE){\n\t\t\tif(Game.getPlayer2().dying){\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tif(animat...
[ "0.7963574", "0.79177713", "0.7739349", "0.77097017", "0.7595326", "0.7595326", "0.7564115", "0.75128067", "0.7509821", "0.74104244", "0.73769987", "0.7352051", "0.73313576", "0.73228836", "0.72913146", "0.72872436", "0.7284977", "0.72622544", "0.72532874", "0.72529054", "0.7...
0.82159615
0
WHen pressing down, move according to direction facing
public void down() { switch (facing){ case "RIGHT" : vely = 0; velx = -1.5; break; case "LEFT" : vely = 0; velx = 1.5; break; case "UP" : vely = 1.5; velx = 0; break; case "DOWN" : vely = -1.5; velx = 0; break; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void moveDown();", "void moveDown();", "public void up() {\n\t\tswitch (facing){\n\t\tcase \"RIGHT\" :\n\t\t\tvely = 0;\n\t\t\tvelx = 1.5;\n\t\t\tbreak;\n\t\tcase \"LEFT\" :\n\t\t\tvely = 0;\n\t\t\tvelx = -1.5;\n\t\t\tbreak;\n\t\tcase \"UP\" :\n\t\t\tvely = -1.5;\n\t\t\tvelx = 0;\n\t\t\tbreak;\n\t\tcase \"DOWN...
[ "0.7536074", "0.7536074", "0.74762946", "0.7418801", "0.7402243", "0.73854756", "0.7333472", "0.7202115", "0.7176443", "0.70982885", "0.70962405", "0.7088641", "0.7074105", "0.7054002", "0.70335776", "0.7026534", "0.7010002", "0.69998753", "0.69726056", "0.6966307", "0.695451...
0.7449166
3
Metodo para calcular e
public void e(double num1, double num2) { double operar; for(int i=0; i<num1; i++) { operar=1/factorial(i); CalcularEValue+=operar; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract double calcular();", "public void calculate();", "public double calcular(){\n double calculo = 1;\n\n for(INodo descendiente : getDescendientes()) {\n calculo *= descendiente.calcular();\n }\n\n return calculo;\n }", "@Override\n public Float calc(...
[ "0.77137345", "0.7036499", "0.70129853", "0.7003679", "0.6961346", "0.6957586", "0.6855456", "0.68397415", "0.68184125", "0.680693", "0.6799737", "0.67744994", "0.67629755", "0.6761581", "0.6638277", "0.6607003", "0.6598084", "0.6537931", "0.652859", "0.6528429", "0.65270585"...
0.6480541
25
Metodo para calcular factorial
public static double factorial(int fact) { double aux=1; for(int i=2; i<=fact;i++) { aux*=i; } return aux; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public long factorial(int num){\r\n long f=1;\r\n for(int i=1;i<=num;i++)\r\n f=f*i;\r\n \r\n if(num>=1) return f;\r\n else if(num==0)return 1;\r\n \r\n return 1;\r\n }", "public long getFactorial() \r\n\t// method body, part of method declaration a...
[ "0.7892311", "0.78163236", "0.7650542", "0.762351", "0.7603593", "0.75819325", "0.74652696", "0.7426423", "0.7415643", "0.7409916", "0.7399453", "0.73873776", "0.731123", "0.7299841", "0.72893643", "0.72840667", "0.7276619", "0.7269426", "0.7266901", "0.72599936", "0.72569335...
0.7459326
7
Handle navigation view item clicks here.
@SuppressWarnings("StatementWithEmptyBody") @Override public boolean onNavigationItemSelected(MenuItem item) { int id = item.getItemId(); if (id == R.id.nav_camera) { // Handle the camera action startActivity(ChangeInfoActivity.class); } else if (id == R.id.nav_g...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void onNavigationItemClicked(Element element);", "@Override\n public void onClick(View view) { listener.onItemClick(view, getPosition()); }", "void onDialogNavigationItemClicked(Element element);", "@Override\n public void onClick(View view) {\n itemInterface.OnItemClickedListener(tr...
[ "0.78807783", "0.723447", "0.69863516", "0.6943918", "0.69152725", "0.69152725", "0.68832517", "0.6873738", "0.6865404", "0.6766271", "0.6740349", "0.67190737", "0.671563", "0.6712706", "0.669685", "0.66966915", "0.6677797", "0.6662864", "0.6658379", "0.66458774", "0.6639868"...
0.0
-1
Basic SHA2 Password Encryption
public static String encryptPassword(String password) { try { MessageDigest digest = MessageDigest.getInstance("SHA-256"); byte[] hash = digest.digest(password.getBytes()); return toHexString(hash); } catch (NoSuchAlgorithmException ex) { LOGGER.info("enc...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String hashPassword(String password);", "String getUserPasswordHash();", "public String hashPassword(String plainTextPassword);", "public long getSha2();", "@Override\r\n\tpublic String hashFunction(String saltedPass) throws NoSuchAlgorithmException\r\n\t{\r\n\t\tMessageDigest digest = MessageDigest.getIns...
[ "0.67788637", "0.67517775", "0.6687637", "0.66507995", "0.662597", "0.65759754", "0.65603554", "0.64505273", "0.6437541", "0.64286816", "0.6423162", "0.6421707", "0.635556", "0.6346317", "0.6343291", "0.63368195", "0.63033724", "0.6281087", "0.6279034", "0.6251172", "0.623946...
0.62016666
24
Perform password complexity validation
public static boolean enforcePasswordComplexity(String password, int minLength, int maxLength, boolean allowUppercase, boolean requireUppercase, boolean allowLowercase, boolean requireLowercase, boolean allowNumber, boolean requireNumber, boolean allowSpace, boolean requi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void validatePassword(){\n //Only Checking For Word Type Password With Minimum Of 8 Digits, At Least One Capital Letter,At Least One Number,At Least One Special Character\n Boolean password = Pattern.matches(\"^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9](?=.*[!@#$%^&*()])).{8,}$\",getPassword());\n ...
[ "0.7830616", "0.7807561", "0.76407", "0.76014143", "0.7576205", "0.7567253", "0.7558862", "0.75371975", "0.75371975", "0.75371975", "0.7529459", "0.75218976", "0.75218976", "0.75178725", "0.74982285", "0.7426969", "0.7412222", "0.74042267", "0.7401458", "0.7401458", "0.735540...
0.70144105
61
convert Timestamp to short date
public static String getShortDate(Timestamp timestamp) { if (timestamp != null) { long lnMilisegundos = timestamp.getTime() + (timestamp.getNanos() / 1000000); java.sql.Date sqlDate = new java.sql.Date(lnMilisegundos); return sqlDate.toString(); } return ""; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Date getTimestamp();", "public static String formatDate(java.sql.Timestamp timestamp) {\n if (timestamp == null)\n return \"\";\n DateFormat df = DateFormat.getDateTimeInstance(DateFormat.LONG, DateFormat.FULL);\n java.util.Date date = timestamp;\n return df.format(date);\n...
[ "0.6180038", "0.61584014", "0.607373", "0.60654724", "0.5990475", "0.597362", "0.59334475", "0.59334475", "0.5905408", "0.5854523", "0.5854523", "0.5799012", "0.57681465", "0.57681465", "0.57681465", "0.57681465", "0.57681465", "0.57681465", "0.57681465", "0.57681465", "0.576...
0.7388696
0
convert InputStream to java.sql.Blob
public static java.sql.Blob inputStreamToBlob(InputStream inputStream) throws IOException, SQLException { if (inputStream != null) { byte[] bytes = IOUtils.toByteArray(inputStream); Blob blob = new SerialBlob(bytes); return blob; } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected byte[] stream2blob(InputStream is) throws IOException, IllegalArgumentException {\n return StreamUtils.stream2blob(is);\n }", "public Blob getBlob(String columnName) throws SQLException {\n\n try {\n int id = getNextId(TraceObject.BLOB);\n debugCodeAssign(\"Blob\"...
[ "0.6915939", "0.63823915", "0.6294378", "0.6234448", "0.6113177", "0.60957474", "0.6007937", "0.59544307", "0.5912924", "0.5903031", "0.58435255", "0.5820707", "0.57615477", "0.5679189", "0.5676989", "0.56473565", "0.56220984", "0.56038976", "0.5561279", "0.5429404", "0.53878...
0.8167731
0
Encode MultipartFile file to base64 String
public static String encodeToBase64String(MultipartFile file) throws IOException, SQLException { byte[] fileBytes = file.getBytes(); String base64String = Base64Utils.encodeToString(fileBytes); return base64String; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String convertUploadedFileToBase64(MultipartFile file) throws IOException {\n return Base64.getEncoder().encodeToString(file.getBytes());\n }", "protected String getEncodedFileContent() throws IOException\n {\n if (fullAttachmentFilename == null)\n {\n return null;\n...
[ "0.81226146", "0.7414118", "0.6717399", "0.62340826", "0.61631095", "0.6048758", "0.60463893", "0.6032338", "0.5996301", "0.5911323", "0.5904123", "0.5845845", "0.57886636", "0.5768663", "0.5725584", "0.56913054", "0.56903625", "0.56578076", "0.5622416", "0.5602001", "0.55800...
0.7838471
1
Converts a byte array to a hex string
public static String toHexString(byte[] array) { return DatatypeConverter.printHexBinary(array).toUpperCase(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static String toHexString(byte[] array) {\n StringBuilder sb = new StringBuilder();\n sb.append(\"0x\").append(DatatypeConverter.printHexBinary(array));\n return sb.toString();\n }", "public static String bytesToHex(byte[] array) {\n StringBuffer hexString = new StringBuffer();\...
[ "0.8526698", "0.84060895", "0.8335401", "0.8213005", "0.8168413", "0.8163363", "0.8110522", "0.8083277", "0.8064631", "0.8046972", "0.80391634", "0.80154437", "0.7992092", "0.79653716", "0.79001766", "0.78768706", "0.78484327", "0.7841118", "0.7775118", "0.7765289", "0.775824...
0.84041065
2
Converts a hex string to a byte array
public static byte[] toByteArray(String s) { return DatatypeConverter.parseHexBinary(s.toUpperCase()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@NotNull\n public static byte[] convertHexToBytes(@NotNull String s) {\n checkNotNull(s);\n int len = s.length();\n checkArgument(len % 2 == 0);\n\n len /= 2;\n byte[] buff = new byte[len];\n for (int i = 0; i < len; i++) {\n buff[i] = (byte) ((getHexDigit(s,...
[ "0.82234585", "0.80489385", "0.80335397", "0.80305684", "0.7980595", "0.7980231", "0.79369205", "0.79267085", "0.7915748", "0.7904418", "0.7899983", "0.7882355", "0.78679407", "0.7838846", "0.78316367", "0.78276044", "0.78214675", "0.78197426", "0.7808351", "0.7804554", "0.78...
0.7609201
36
/System.setProperty("webdriver.gecko.driver","C:\\Users\\hsinsysadm\\Desktop\\Sudha\\DRIVERS\\geckodriverv0.26.0win64\\geckodriver.exe"); WebDriver driver1 = new FirefoxDriver(); driver1.get(" driver1.manage().window().maximize(); driver1.close();
public static void main(String[] args) { System.setProperty("webdriver.chrome.driver", "C:\\Users\\hsinsysadm\\Desktop\\Sudha\\DRIVERS\\chromedriver_win32\\chromedriver.exe"); WebDriver driver2 = new ChromeDriver(); driver2.get("https://facebook.com"); driver2.manage().window().maximize(); //driver2.close(); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\nSystem.setProperty(\"webdriver.gecko.driver\", \"C:\\\\Users\\\\v-poori\\\\Desktop\\\\selenium\\\\geckodriver-v0.11.1-win64\\\\geckodriver.exe\");\n\tdriver = new FirefoxDriver();\n\tdriver.manage().window().maximize();\n\n\tdriver.manage().timeouts().implicitlyWait(20, Ti...
[ "0.77319634", "0.7703905", "0.7631952", "0.76049155", "0.7594176", "0.74877876", "0.7411255", "0.7369683", "0.72339207", "0.7197836", "0.7193908", "0.7175318", "0.71741515", "0.7135595", "0.70749724", "0.7068125", "0.70283026", "0.6950233", "0.6947533", "0.69297385", "0.69065...
0.6717061
35
need this? Constructs the object SudokuGUI.
public SudokuGUI (Sudoku s) { sudokuBoard = s; field = new LetterTextField[9][9]; root = new BorderPane(); root.setCenter(createGrid()); //Creates sudoku fields root.setBottom(createButtons()); //Creates solve and clear buttons in buttom }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void createAndShowGUI()\n {\n Sudoku s = new Sudoku();\n }", "public InterfazSudoku()\r\n\t{\r\n\t\t\r\n\t\tsudoku = new Sudoku();\r\n\t\t\r\n\t\tpanelBanner = new PanelBanner();\r\n\t\t\r\n\t\tpanelInformacion = new PanelInformacion ();\r\n\t\t\r\n\t\tpanelTablero = new PanelTablero();...
[ "0.8204643", "0.7485578", "0.74536437", "0.6960995", "0.680325", "0.680325", "0.676913", "0.6743848", "0.6731118", "0.6722413", "0.67011523", "0.6679285", "0.6677841", "0.6669469", "0.66664785", "0.66660607", "0.66590005", "0.6657424", "0.66445583", "0.6643833", "0.6643833", ...
0.81533307
1
returns TilePane with TextFields for numbers
private TilePane createGrid() { TilePane board = new TilePane(); board.setPrefRows(9); board.setPrefColumns(9); board.setPadding(new Insets(3,3,3,3)); board.setHgap(3); //Horisontal gap between tiles board.setVgap(3); //Vertical gap between tiles //Creates and colors tiles for(int i = 0; i < 9; i++){...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private BorderPane makeNumberPane() {\n \n /* This method is similar to makeNamePane(), except for the way that initial\n * items are added to the list, and the use of a custom StringConverter.\n * (Also, it works with listView.getItems() directly, instead of having a\n * name...
[ "0.6280358", "0.6119587", "0.6109048", "0.5909449", "0.5875312", "0.5782985", "0.5650506", "0.56331384", "0.56241786", "0.56202936", "0.556329", "0.5515098", "0.5502347", "0.5499033", "0.5491277", "0.5480143", "0.5462244", "0.5439271", "0.5421856", "0.54162306", "0.54158914",...
0.72615606
0
returns a HBox with buttons for solve and clear
private HBox createButtons() { Button solve = new Button("Solve"); Button clear = new Button("Clear"); Button quit = new Button("Quit"); solve.setStyle("-fx-font: 12 arial; -fx-base: #336699;"); clear.setStyle("-fx-font: 12 arial; -fx-base: #336699;"); quit.setStyle("-fx-font: 12 arial; -fx-base: #336699...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static HBox createWinBtnBox() {\n int numWinBtns = 3;\n ToggleButton winBtn1 = createRoundWinBtn(5);\n ToggleButton winBtn2 = createRoundWinBtn(10);\n ToggleButton winBtn3 = createRoundWinBtn(20);\n\n //Only one map can be selected, hence the use of a toggling system\n ...
[ "0.64648503", "0.6410829", "0.62170875", "0.61079425", "0.5983769", "0.5900048", "0.58163476", "0.5805031", "0.57732177", "0.57581854", "0.5750143", "0.57179046", "0.5693233", "0.5675972", "0.5659742", "0.56533456", "0.56359357", "0.56247723", "0.5617229", "0.56121737", "0.56...
0.7244725
0
Solves the sudoku and presents solution in GUI
private void solve() { //reads values from board for(int i = 0; i < 9; i++){ for(int k = 0; k < 9; k++){ String value = field[i][k].getText(); if(value.length() > 0){ sudokuBoard.add(i, k, Integer.valueOf(value)); } else { sudokuBoard.add(i, k, 0); } } } if(sudokuBoard.solve()...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void solucionar() \r\n\t{\r\n\t\tString imagen = sudoku.solucionar();\r\n\t\tactualizarInformacion();\r\n\t\tactualizarImagen(imagen);\r\n\t\tJOptionPane.showMessageDialog( this, \"Has completado satisfactoriamente el Sudoku\", \"Validar\", JOptionPane.INFORMATION_MESSAGE );\r\n\t\tpanelOpciones.deshabilita...
[ "0.8229517", "0.77597106", "0.7425113", "0.71435463", "0.7072263", "0.69483113", "0.687734", "0.68578047", "0.685025", "0.67451775", "0.67439497", "0.66415423", "0.66182816", "0.65917623", "0.65763444", "0.657427", "0.65310264", "0.6514169", "0.650551", "0.64837754", "0.64698...
0.83276534
0
Clears the sudoku and empties board in GUI
private void clear() { for(int i = 0; i < 9; i++){ for(int k = 0; k < 9; k++){ field[i][k].clear(); sudokuBoard.clear(); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void clearGrid() {\n\t\tfor (int i = 0; i < this.board.length; i++) {\n\t\t\tArrays.fill(this.board[i], EMPTY);\n\t\t}\n\n\t\tsetChanged();\n\t\tnotifyObservers();\n\t}", "public void onClearGridButtonClick()\n {\n // CODE MISSING !\n // Should call ensureEmpty for every location in t...
[ "0.73394674", "0.71386635", "0.7118435", "0.71120286", "0.71107906", "0.7107215", "0.71045184", "0.71010756", "0.69959295", "0.69740283", "0.6956844", "0.6946607", "0.69458604", "0.6875749", "0.6875494", "0.6853604", "0.68224627", "0.6822441", "0.6819613", "0.6808566", "0.680...
0.7810897
0
returns the root of the Sudoku GUI
public BorderPane getRoot() { return root; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "BorderPane getRoot();", "public Pane getRoot() {\n \treturn _root;\n }", "public int getRoot(){\n\t\t\treturn root;\n\t\t}", "public int getRoot() {\n return _root;\n }", "public int getUnitRoot(int index) {\n return _elements[index].getRoot();\n }", "GridPane getRootGri...
[ "0.63426006", "0.6297617", "0.62596387", "0.62304", "0.62148905", "0.6136743", "0.6112786", "0.6089004", "0.60664827", "0.60103536", "0.60073096", "0.59985083", "0.5897356", "0.58959925", "0.58586174", "0.58222544", "0.58069533", "0.57877", "0.57877", "0.57797384", "0.5740297...
0.5751308
20
First way to specify the kendoui format
@Override protected DatePicker newDatePicker(String id, IModel<Date> model, String datePattern) { //Specified date pattern is not the default kendo-ui date pattern, but is compatible with both java & kendo-ui //It can therefore be transmitted as-is to the DatePicker widget return new DatePicker(id, mo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public int getRenderType()\n {\n return 22;\n }", "@Override\n\tpublic void serializeUI() {\n\t\t\n\t}", "@Override\n\tpublic void doSerializeUI() {\n\t\t\n\t}", "@Override\n\tpublic String getFormat() {\n\t\treturn \"xml\";\n\t}", "public void setFormat(String value) {\n/* 198 ...
[ "0.52838993", "0.5279129", "0.5177082", "0.51001704", "0.49879378", "0.49495173", "0.48998654", "0.48664358", "0.48353675", "0.48305985", "0.48196924", "0.47655338", "0.4745427", "0.47229427", "0.47202253", "0.471849", "0.4680578", "0.4679222", "0.4676749", "0.4655282", "0.46...
0.0
-1
Second way to specify the kendoui format
@Override protected TimePicker newTimePicker(String id, IModel<Date> model, final String timePattern) { return new TimePicker(id, model, timePattern) { private static final long serialVersionUID = 1L; @Override protected void onConfigure(JQueryBehavior behavior) { super.onConfigure...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Object getFormat();", "@Override\n\tpublic String getFormat() {\n\t\treturn \"xml\";\n\t}", "public void setFormat(String value) {\n/* 198 */ setValue(\"format\", value);\n/* */ }", "@Override\n public int getRenderType()\n {\n return 22;\n }", "public String getFormat() {\n/* 206...
[ "0.52444005", "0.51922643", "0.51601225", "0.50913656", "0.50142676", "0.49856436", "0.49224198", "0.4856153", "0.48078942", "0.47937614", "0.47585675", "0.4744604", "0.47423244", "0.470788", "0.46967494", "0.46842664", "0.46806443", "0.466345", "0.46622324", "0.4660181", "0....
0.0
-1
TODO Autogenerated method stub
@Override public void onClick(View v) { if (((ToggleButton) v).isChecked()) { ExpandAnimation animation = new ExpandAnimation(mailbox_setting_detail_layout, 250); mailbox_setting_detail_layout.startAnimation(animation); } else { ...
{ "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
TODO Autogenerated method stub
@Override public void onClick(View v) { if (((ToggleButton) v).isChecked()) { ExpandAnimation animation = new ExpandAnimation(ll_setmail, 250); ll_setmail.startAnimation(animation); } else { ExpandAnimation animation...
{ "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
I've started this without using a specific graph class. I think we will need to incorporate one somehow. Not sure how to yet though.
public static void solveMaze(String inputFile, String outputFile) { if(new File(inputFile).isFile() == false) { try { throw new FileNotFoundException(); } catch (FileNotFoundException e) { // TODO Auto-generated catch block e.printStackTrace(); } } //Gets the dimension...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Graph getGraph();", "public void buildGraph(){\n\t}", "public interface DirectedGraph {\n\n /**\n * Set a graph label\n * @param label a graph label\n */\n void setGraphLabel(String label);\n\n /**\n * @return the graph label\n */\n String getGraphLabel();\n\n /**\n ...
[ "0.7393092", "0.7274503", "0.7223511", "0.7067644", "0.70651484", "0.70589054", "0.69364554", "0.6878844", "0.68634236", "0.68063146", "0.67881966", "0.67585063", "0.67456394", "0.67418796", "0.6725972", "0.6712265", "0.6701604", "0.6684882", "0.66399163", "0.66114664", "0.66...
0.0
-1
Creates a Queue from java's LinkedList, which is assigned to the Node class
private static boolean getPath(int startRow, int startColumn, String[][] Map, String outputFile, String inputFile) { Queue<Node> q = new LinkedList<Node>(); //Sets the Start Node Row and Column values. Node Start = new Node(startRow + " " + startColumn); Start.column = startColumn; Start.row = sta...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public LinkedQueue(){\n this.firstNode = null;\n this.lastNode = null;\n }", "public LinkedQueue(){\n length = 0;\n front = rear = null;\n }", "public LinkedListQueue(T data) \n { \n this.data = data; \n this.next = null; \n }", "public QueueNode() {\n ...
[ "0.7148546", "0.70347565", "0.7011326", "0.6826169", "0.6787658", "0.6778143", "0.6762993", "0.67132056", "0.67113394", "0.66356885", "0.66240233", "0.65960604", "0.65727454", "0.65199095", "0.64943147", "0.64888245", "0.6487367", "0.6466315", "0.6454568", "0.6445793", "0.644...
0.0
-1