query
stringlengths
7
33.1k
document
stringlengths
7
335k
metadata
dict
negatives
listlengths
3
101
negative_scores
listlengths
3
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
TODO Autogenerated method stub
@Override public Chunk d(int i0, int i1) { return null; }
{ "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 Chunk c(int i0, int i1) { return null; }
{ "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: Saving chunks, Needs to be implemented on our side,
@Override public boolean a(boolean flag0, IProgressUpdate iprogressupdate) { return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void saveChunk(String chunkName,ObjectInputStream in)\n {\n BufferedOutputStream bufOutput;\n try\n {\n bufOutput = new BufferedOutputStream(new FileOutputStream(chunkName));\n int b;\n i...
[ "0.723039", "0.6591648", "0.6590136", "0.6543685", "0.6479508", "0.64776003", "0.6472512", "0.63784", "0.63784", "0.6357036", "0.62576944", "0.6248149", "0.6206343", "0.6174539", "0.6174539", "0.6174539", "0.6174539", "0.6174539", "0.6174539", "0.6135371", "0.6135371", "0.6...
0.0
-1
TODO: unloadQueuedChunks, Needs to be implemented on our side,
@Override public boolean c() { return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean unloadQueuedChunks()\n\t{\n\t\treturn false;\n\t}", "public boolean unload100OldestChunks()\n {\n return false;\n }", "public boolean unload100OldestChunks()\n {\n return false;\n }", "public void filterChunkLoadQueue(EntityPlayerMP player)\r\n {\r\n ArrayLi...
[ "0.82175124", "0.67354816", "0.67354816", "0.6684508", "0.6462762", "0.64384663", "0.6318865", "0.60580736", "0.602951", "0.59943926", "0.5763116", "0.5588777", "0.5559463", "0.55474824", "0.5537066", "0.553692", "0.5527862", "0.550344", "0.546276", "0.5451836", "0.5418625", ...
0.0
-1
TODO: canSave, Needs to be implemented on our side,
@Override public boolean d() { return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void save() {\n \n }", "@Override\n public void save()\n {\n \n }", "@Override\n\tpublic void save() {\n\t\t\n\t}", "@Override\n\tpublic void save() {\n\t\t\n\t}", "@Override\n public void Save() {\n\t \n }", "@Override\n public void save() {\n\...
[ "0.7495393", "0.74702555", "0.7352044", "0.7352044", "0.72242785", "0.7190185", "0.71859187", "0.71859187", "0.717169", "0.7044017", "0.6823615", "0.6663378", "0.6601893", "0.65603715", "0.64836866", "0.6446835", "0.6415952", "0.6415952", "0.64123344", "0.63510436", "0.633956...
0.0
-1
TODO Autogenerated method stub
@Override public List a(EnumCreatureType enumcreaturetype, int i0, int i1, int i2) { return null; }
{ "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 ChunkPosition a(World world, String s0, int i0, int i1, int i2) { return null; }
{ "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: GetNum loaded chunks
@Override public int f() { return 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getChunksCount();", "int getChunksCount();", "int getChunksLocationCount();", "@java.lang.Override\n public int getChunksCount() {\n return chunks_.size();\n }", "int getNumOfChunks();", "int getChunkSize();", "public int getChunksCount() {\n return chunksCount_;\n ...
[ "0.7547618", "0.7547618", "0.7314243", "0.7166069", "0.7007612", "0.6810492", "0.6788171", "0.6782211", "0.6707135", "0.66788685", "0.6662366", "0.6593474", "0.6593474", "0.6593474", "0.6593474", "0.65822136", "0.65471923", "0.64545953", "0.6445732", "0.64224195", "0.64224195...
0.0
-1
TODO: ReCreate structures (is this maybe a repopulate?)
@Override public void e(int i0, int i1) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void recreateStructures(int p_82695_1_, int p_82695_2_)\n\t{\n\t}", "Structure createStructure();", "abstract void updateStructure();", "private void initStructures() throws RIFCSException {\n initTexts();\n initDates();\n }", "private void fillDataStructures()\n \t{\n \t\tfor (Fiel...
[ "0.6721755", "0.63773596", "0.6118086", "0.5881288", "0.57869446", "0.57328695", "0.56852466", "0.566512", "0.56334615", "0.5629867", "0.5588263", "0.55423605", "0.5522662", "0.5461335", "0.54319334", "0.5423644", "0.53623337", "0.53509283", "0.53167415", "0.5316053", "0.5313...
0.0
-1
TODO save extra data, needs to be handled canary side
@Override public void b() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\t\t\tprotected void saveContext() {\n\t\t\t\t\r\n\t\t\t}", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "public void saveExtraData() {}", "protected abstract void retrievedata();", "@Override\r\n\tprotected void initSelfData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initSel...
[ "0.5891448", "0.5784495", "0.5776145", "0.5709969", "0.56265765", "0.56265765", "0.54740363", "0.54740363", "0.54740363", "0.54740363", "0.54740363", "0.54740363", "0.5454508", "0.5438752", "0.54233813", "0.53720224", "0.5363994", "0.5336112", "0.5322647", "0.5322073", "0.531...
0.0
-1
test of leading comment
public void method() // trailing comment here { int a; /* non-trailing comment */ int b; /* trailing comment */ // continuation trailing comment int c1; /* non-trailing comment */ int d2; /* trailing comment */ // non-continuation comment ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected boolean isComment () {\r\n int startvalue = index - 1;\r\n if (index + 3 >= length)\r\n return false;\r\n return (pagepart[index] == '!' &&\r\n pagepart[index + 1] == '-' &&\r\n pagepart[index + 2] == '-');\r\n }", "private boolean co...
[ "0.7891393", "0.7515907", "0.7508203", "0.746067", "0.735618", "0.73405087", "0.7315219", "0.7235411", "0.7203273", "0.7199348", "0.71430224", "0.7033862", "0.70163894", "0.7009792", "0.696197", "0.6956626", "0.6923456", "0.6841271", "0.6800811", "0.67620546", "0.67067486", ...
0.5681081
84
Created by AntonYaskiv on 29.09.2017.
public interface WayMapAPI { @GET("maps/api/directions/json?") Call<WayPoints> getWayFromCoordinate(@Query("origin")String from, @Query("destination") String to, @Query("key") String api_key); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "private stendhal() {\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n...
[ "0.58505267", "0.57294387", "0.56107247", "0.55323434", "0.55323434", "0.55229676", "0.5521318", "0.5463941", "0.54629546", "0.54443485", "0.5426333", "0.54263204", "0.5414136", "0.5413946", "0.5378243", "0.5376966", "0.53734773", "0.53660107", "0.5357534", "0.5355337", "0.53...
0.0
-1
Below lies the random "testing"(?), try not to cringe
public static void main(String[] args) throws IOException{ int cells = 16; MnistManager mm = new MnistManager(Config.MNIST_TRAIN_IMAGES, Config.MNIST_TRAIN_LABELS); // Grab first image mm.setCurrent(1); int[][] image = mm.readPixelMatrix(); BufferedImage...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void random() {\n\n\t}", "@Test\n\tpublic void testEvilPuzzleGeneration() {\n\t}", "@Test\n public void sanityTest() {\n Random random = new Random(0);\n long long1 = random.nextLong();\n long long2 = random.nextLong();\n long long3 = random.nextLong();\n assertEqu...
[ "0.69159466", "0.6586367", "0.6415478", "0.64059025", "0.63963825", "0.6388817", "0.6361165", "0.6323716", "0.62989444", "0.62841934", "0.62501997", "0.62399906", "0.62140644", "0.6207537", "0.6188671", "0.61576986", "0.61317265", "0.6108637", "0.610547", "0.60985017", "0.609...
0.0
-1
recuperer la liste de categories avec leur activites
@GET("categories/activities") Call<List<ActivitiesByCategorieOutput>> getActivitiesByCategory();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void lanzarListadoCategorias() {\n\t\tIntent i = new Intent(this, ListCategorias.class);\n\t\tstartActivity(i);\n\t\t\n\t}", "private void listadoCategorias() {\r\n sessionProyecto.getCategorias().clear();\r\n sessionProyecto.setCategorias(itemService.buscarPorCatalogo(CatalogoEnum.CATALOGO...
[ "0.74750125", "0.72743285", "0.71164757", "0.706959", "0.69484085", "0.67717594", "0.67370796", "0.66612005", "0.66527176", "0.6618985", "0.6566364", "0.65529907", "0.6547373", "0.6476625", "0.6434115", "0.6383226", "0.6367536", "0.6364896", "0.63476723", "0.63444704", "0.633...
0.0
-1
CHECK : Is needed to bill Org's Billing manager?
private AssociateOrganizationBillingManagerResponse associateBillingManager(String orgId, String userId, ReactorCloudFoundryClient reactorCloudFoundryClient) { spaceServiceV2.associateAllSpaceUserRolesByOrgId(orgId, userId, targetSpaceRole(OrgRole.BillingManager), reactorCloudFoundryClient); return rea...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean hasBillingSetup();", "@Override\n\tpublic int checkBill(MarketTransaction t) {\n\t\treturn 0;\n\t}", "private void CustomerPaidCheck() {\n\t\tfloat CompanyDemand = Float.parseFloat(label_7.getText());\n\t\tif (CompanyDemand > 0) {\n\n\t\t\ttry {\n\t\t\t\tPreparedStatement statement = DBConnection.conne...
[ "0.6533938", "0.63529295", "0.62465817", "0.6207582", "0.6195908", "0.60777867", "0.6060169", "0.6028329", "0.59849167", "0.59567344", "0.5880283", "0.5880283", "0.58742815", "0.5870835", "0.58604133", "0.5845186", "0.58206785", "0.5815792", "0.58129", "0.5777032", "0.5774635...
0.0
-1
TODO cancel invite user
public void cancelInvitionUser() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "User canceledUserRegistration(User user) throws LogicException;", "private void cancelGroupInviteNotification() {\n int size = mGroupInvitationInfos.size();\n Logger.d(TAG, \"cancelGroupInviteNotification() entry, size: \"\n + size);\n if (size == 0) {\n Context con...
[ "0.6839794", "0.6445333", "0.6217392", "0.6195105", "0.612916", "0.60424936", "0.60317093", "0.5944809", "0.5941504", "0.59298426", "0.5921058", "0.5914528", "0.58978295", "0.5889597", "0.58670735", "0.586178", "0.5859757", "0.58483875", "0.58411175", "0.5830831", "0.58262783...
0.78985673
0
remueve los datos de la tabla
public void limpiar(DefaultTableModel tabla) { for (int i = 0; i < tabla.getRowCount(); i++) { tabla.removeRow(i); i -= 1; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void clearData() throws SQLException {\n//Lay chi so dong cuoi cung\n int n = tableModel.getRowCount() - 1;\n for (int i = n; i >= 0; i--) {\n tableModel.removeRow(i);//Remove tung dong\n }\n }", "private void limparTabela() {\n while (tmLivro.getRowCount() > 0) ...
[ "0.76057947", "0.75459266", "0.7536105", "0.7488589", "0.73347914", "0.7207996", "0.7165137", "0.71369493", "0.7015067", "0.7011466", "0.6946107", "0.6919771", "0.69138354", "0.68971324", "0.6886595", "0.68659025", "0.68428344", "0.6834599", "0.6828405", "0.6805569", "0.67989...
0.6388102
68
carga los datos de la tabla
private void cargardatos() { String sql = "SELECT * FROM nomPercepciones"; Object datos[] = new Object[13]; try { conn = (this.userConn != null) ? this.userConn : Conexion.getConnection(); stmt = conn.prepareStatement(sql); rs = stmt.executeQuery(); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public DefaultTableModel cargarDatos () {\r\n DefaultTableModel modelo = new DefaultTableModel(\r\n new String[]{\"ID SALIDA\", \"IDENTIFICACIÓN CAPITÁN\", \"NÚMERO MATRICULA\", \"FECHA\", \"HORA\", \"DESTINO\"}, 0); //Creo un objeto del modelo de la tabla con los titulos cargados\r\n ...
[ "0.728077", "0.72374666", "0.72092104", "0.7175637", "0.71678287", "0.710324", "0.70953006", "0.7055641", "0.70529306", "0.69793826", "0.69784063", "0.69526863", "0.68957675", "0.6891352", "0.68810606", "0.683613", "0.6805455", "0.68030304", "0.6786642", "0.6761898", "0.67545...
0.65445966
37
carga los titulos de la tabla
public void cargarTitulos1() throws SQLException { tabla1.addColumn("CLAVE"); tabla1.addColumn("NOMBRE"); tabla1.addColumn("DIAS"); tabla1.addColumn("ESTATUS"); this.tbpercep.setModel(tabla1); TableColumnModel columnModel = tbpercep.getColumnModel(); columnMod...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void cargarTablas(){\n ControladorEmpleados empleados= new ControladorEmpleados();\n ControladorProyectos proyectos= new ControladorProyectos();\n ControladorCasos casos= new ControladorCasos();\n actualizarListadoObservable(empleados.consultarEmpl...
[ "0.7388926", "0.7354677", "0.7121815", "0.70855504", "0.704668", "0.69900393", "0.6963737", "0.69163394", "0.6846593", "0.6838333", "0.68242234", "0.6793758", "0.67071944", "0.6700773", "0.664436", "0.6618113", "0.6600761", "0.65940857", "0.6589206", "0.6579245", "0.6578374",...
0.7301407
2
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() { MenuOpciones = new javax.swing.JPopupMenu(); ItemActivar = new javax.swing.JMenuItem(); Itemdesactivar = new javax.swing.JMenuItem(); ...
{ "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.73197734", "0.72914416", "0.72914416", "0.72914416", "0.72862023", "0.72487676", "0.7213741", "0.7207628", "0.7196503", "0.7190263", "0.71850693", "0.71594703", "0.7147939", "0.7093137", "0.70808756", "0.70566356", "0.6987119", "0.69778043", "0.6955563", "0.6953879", "0.69...
0.0
-1
Create an entity for this test. This is a static method, as tests for other entities might also need it, if they test an entity which requires the current entity.
public static GenericMessagesReceived createEntity() { GenericMessagesReceived genericMessagesReceived = new GenericMessagesReceived() .originatingModule(DEFAULT_ORIGINATING_MODULE) .dateReceived(DEFAULT_DATE_RECEIVED) .messageId(MESSAGE_ID) .messageDateCreated(UP...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Entity createEntity();", "T createEntity();", "protected abstract ENTITY createEntity();", "void create(E entity);", "void create(T entity);", "E create(E entity);", "E create(E entity);", "protected abstract EntityBase createEntity() throws Exception;", "TestEntity buildEntity () {\n TestEn...
[ "0.77218086", "0.7503676", "0.74873716", "0.7361229", "0.73136973", "0.7155441", "0.7155441", "0.7149927", "0.71498644", "0.7077277", "0.70157695", "0.68028295", "0.67516834", "0.67397887", "0.67397887", "0.6711019", "0.6680909", "0.66657215", "0.6640247", "0.66248286", "0.66...
0.0
-1
Creates a WorkerThread operating in the given pool.
protected StealingThread(StealingPool pool) throws IOException { if (pool == null) throw new NullPointerException(); this.pool = pool; this.ioManager = new NioManager(); // Note: poolIndex is set by pool during construction // Remaining initialization is deferred to onStart }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public SingleWorkerPoolExecutor() {\n this.worker = new Worker(taskQueue);\n\n // Nothing bad as worker is blocked by an emptiness of a task\n // queue. Adding to this task queue will be possible after worker pool\n // finishes construction\n worker.start();\n }", "Connectio...
[ "0.63870883", "0.63577855", "0.6184597", "0.60940135", "0.6074407", "0.60733503", "0.60646063", "0.60076946", "0.5982475", "0.5970563", "0.59662074", "0.5965663", "0.59592474", "0.5937821", "0.5930815", "0.5918094", "0.58833456", "0.5864445", "0.58413744", "0.583355", "0.5808...
0.56911063
29
Public access methods Returns the pool hosting this thread.
public StealingPool getPool() { return pool; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected ThreadPool getPool()\r\n {\r\n return threadPool_;\r\n }", "Executor getWorkerpool() {\n\t return pool.getWorkerpool();\n\t}", "public BoneCP getPool() {\n return pool;\n }", "private synchronized WorkerThread getThread() {\n\t\tfor (int i = 0; i < this.threadPool.size(); ...
[ "0.7979127", "0.73902017", "0.7246936", "0.7208213", "0.701206", "0.6945397", "0.6858531", "0.676902", "0.66112065", "0.65490335", "0.65023905", "0.6415974", "0.64006287", "0.6384501", "0.63245976", "0.6268954", "0.6217787", "0.6202842", "0.6198658", "0.61323446", "0.61137116...
0.6720076
8
Returns the index number of this thread in its pool. The returned value ranges from zero to the maximum number of threads (minus one) that have ever been created in the pool. This method may be useful for applications that track status or collect results perworker rather than pertask.
public int getPoolIndex() { return poolIndex; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final int getNbThread() {\n return nbThread;\n }", "public abstract int getThreadNumber();", "public int getNumOfThreads() {\n return numOfThreads;\n }", "public int getNumberOfThreads() { return numberOfThreads; }", "public int getThreadCount() throws ResourceConfigurationException {\...
[ "0.67946273", "0.6514643", "0.6489241", "0.6438347", "0.6375809", "0.6375734", "0.6350575", "0.6328818", "0.6318395", "0.6306931", "0.6245823", "0.62439126", "0.6206784", "0.6108531", "0.60868436", "0.60272276", "0.6001825", "0.59428763", "0.5903449", "0.5892155", "0.5875525"...
0.69212043
1
Tries to set status to active; fails on contention.
private boolean tryActivate() { if (!active) { if (!pool.tryIncrementActiveCount()) return false; active = true; } return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setActiveStatus(Boolean active){ this.status = active; }", "public void setStatus(boolean newstatus){activestatus = newstatus;}", "public void setActiveStatus( String activeStatus ) {\n this.activeStatus = activeStatus;\n }", "public void setActiveStatus( String activeStatus ) {\n ...
[ "0.7411158", "0.70628166", "0.6862412", "0.6862412", "0.6804948", "0.6575729", "0.6575729", "0.6544874", "0.65337694", "0.6522608", "0.65099776", "0.6495297", "0.6489023", "0.646174", "0.64581376", "0.64515257", "0.6448635", "0.64289284", "0.6414537", "0.6411495", "0.6402073"...
0.0
-1
Tries to set status to inactive; fails on contention.
private boolean tryInactivate() { if (active) { if (!pool.tryDecrementActiveCount()) return false; active = false; } return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void setInactive() {\r\n\t\tactive = false;\r\n\t}", "public void setInactive() {\n\t\tactive = false;\n\t}", "public void deactivate() {\n\t\tactive_status = false;\n\t}", "public final void setInactive(java.lang.Boolean inactive)\r\n\t{\r\n\t\tsetInactive(getContext(), inactive);\r\n\t}", "void...
[ "0.7273582", "0.70279163", "0.66301656", "0.6605252", "0.63524157", "0.62965655", "0.62654954", "0.6261977", "0.6259838", "0.62205607", "0.62171644", "0.62124693", "0.61982226", "0.6165122", "0.61048865", "0.60952604", "0.60266906", "0.601054", "0.601054", "0.60042673", "0.59...
0.0
-1
Computes next value for random victim probe. Scans don't require a very high quality generator, but also not a crummy one. Marsaglia xorshift is cheap and works well.
private static int xorShift(int r) { r ^= (r << 13); r ^= (r >>> 17); return r ^ (r << 5); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int next() {\r\n\t\t// Get a random value\r\n\t\tint index = random.nextInt(values.length);\r\n\t\tint byteValue = values[index] + 128; // For an unsigned value\r\n\t\tint value = byteValue * 3;\r\n\t\t// If byteValue = 255 (max), then choose between 765000 and 799993\r\n\t\tif (byteValue == 255) {\r\n\t\t\...
[ "0.6407408", "0.6400601", "0.61422926", "0.6120631", "0.6100022", "0.6085567", "0.6056601", "0.5982904", "0.58113843", "0.57279336", "0.5699539", "0.5698318", "0.5662819", "0.5661221", "0.56256706", "0.5602222", "0.5588515", "0.5555487", "0.5548757", "0.5548123", "0.55416167"...
0.0
-1
Lifecycle methods This method is required to be public, but should never be called explicitly. It performs the main run loop to execute ForkJoinTasks.
public void run() { Throwable exception = null; try { onStart(); pool.sync(this); // await first pool event mainLoop(); } catch (Throwable ex) { exception = ex; } finally { onTermination(exception); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void run() {\n\t\tthis.launch( null );\n\t}", "private void mainLoop() {\n while (!isShutdown()) {\n ForkJoinTask<?> t = pollTask();\n if (t != null || (t = pollSubmission()) != null)\n t.quietlyExec();\n else if (tryInactivate())\n poo...
[ "0.6265189", "0.62353957", "0.61992586", "0.59637916", "0.5930231", "0.59245384", "0.5917384", "0.5909317", "0.589779", "0.5895197", "0.5877784", "0.58523315", "0.5844509", "0.5840009", "0.5816383", "0.58053714", "0.57795185", "0.57709414", "0.576941", "0.5741661", "0.5738375...
0.6622135
1
Executes tasks until shut down.
private void mainLoop() { while (!isShutdown()) { Runnable t = pollTask(); if (t != null || (t = pollSubmission()) != null) t.run(); else if (tryInactivate()) pool.sync(this); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void shutdown() {\n\t\tfinal List<Runnable> tasks = updater.shutdownNow();\n\t\tif (null == tasks) return;\n\t\tfor (final Runnable t : tasks)\n\t\t\tt.run();\n\t}", "public void runPendingTasks() {\n/* */ try {\n/* 578 */ this.loop.runTasks();\n/* 579 */ } catch (Exception e) {\n/* 580 ...
[ "0.696135", "0.6708509", "0.6458363", "0.63351893", "0.6252461", "0.6196865", "0.61677766", "0.61501867", "0.60975266", "0.6093719", "0.6066152", "0.60258496", "0.59849024", "0.58921146", "0.5886899", "0.5885435", "0.587794", "0.5868531", "0.58659047", "0.5858842", "0.5857544...
0.59672105
13
Initializes internal state after construction but before processing any tasks. If you override this method, you must invoke super.onStart() at the beginning of the method. Initialization requires care: Most fields must have legal default values, to ensure that attempted accesses from other threads work correctly even b...
protected void onStart() { // Allocate while starting to improve chances of thread-local // isolation queue = new Runnable[INITIAL_QUEUE_CAPACITY]; // Initial value of seed need not be especially random but // should differ across threads and must be nonzero int p = poolI...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tprotected void onStart() {\n\t\tsuper.onStart();\r\n\t\tprocessAsync();\t\t\r\n\t}", "@Override\n protected void onStart() {\n super.onStart();\n\n Log.d(TAG, \"now running: onStart\");\n }", "@Override\n protected void onStart() {\n super.onStart();\n Log.d(...
[ "0.7338509", "0.7084789", "0.7047627", "0.7047627", "0.69549793", "0.6946187", "0.6879341", "0.6875318", "0.68584025", "0.68213123", "0.679898", "0.6792953", "0.67823523", "0.67823523", "0.67787814", "0.6755556", "0.6754304", "0.674176", "0.67395854", "0.67373395", "0.6732765...
0.0
-1
Intrinsicsbased support for queue operations.
private static long slotOffset(int i) { return ((long) i << qShift) + qBase; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface Queue {\n\tpublic Set getGatheredElements();\n\tpublic Set getProcessedElements();\n\tpublic int getQueueSize(int level);\n\tpublic int getProcessedSize();\n\tpublic int getGatheredSize();\n\tpublic void setMaxElements(int elements);\n\tpublic Object pop(int level);\n\tpublic boolean push(Object t...
[ "0.65642965", "0.6507382", "0.630507", "0.6297146", "0.6278921", "0.61737955", "0.6173758", "0.61299914", "0.6126699", "0.60900027", "0.60719174", "0.60208756", "0.60075074", "0.5954872", "0.5903573", "0.59010714", "0.5898809", "0.58916974", "0.58850527", "0.5881271", "0.5876...
0.0
-1
Adds in storeorder the given task at given slot of q to null. Caller must ensure q is nonnull and index is in range.
private static void setSlot(Runnable[] q, int i, Runnable t) { UNSAFE.putOrderedObject(q, slotOffset(i), t); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static boolean casSlotNull(Runnable[] q, int i,\n Runnable t) {\n return UNSAFE.compareAndSwapObject(q, slotOffset(i), t, null);\n }", "final void pushTask(Runnable t) {\n Runnable[] q = queue;\n int mask = q.length - 1;\n int s = sp;\n...
[ "0.6190767", "0.57763374", "0.55059874", "0.5502181", "0.526916", "0.52174616", "0.5173892", "0.51414245", "0.5049593", "0.5016052", "0.49946153", "0.49885455", "0.48986495", "0.4890336", "0.48868072", "0.48593587", "0.4780641", "0.4753194", "0.47483033", "0.4708827", "0.4693...
0.56802577
2
CAS given slot of q to null. Caller must ensure q is nonnull and index is in range.
private static boolean casSlotNull(Runnable[] q, int i, Runnable t) { return UNSAFE.compareAndSwapObject(q, slotOffset(i), t, null); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setEmpty(int index);", "public void clear(long index);", "public static void guard(int index) {\n for (int i = 0; i < index; i++) {\n final Object lock = sKnownFixed[i];\n if (lock != null && Thread.holdsLock(lock)) {\n\n // Note in this case sKnownFixed ...
[ "0.5374018", "0.5330051", "0.5122539", "0.50284094", "0.50137436", "0.4981088", "0.49622816", "0.49270463", "0.4888679", "0.4835606", "0.47760695", "0.47542638", "0.4747146", "0.47363058", "0.46920666", "0.4685146", "0.46583843", "0.4621196", "0.46160793", "0.45978048", "0.45...
0.7198455
0
Sets sp in storeorder.
private void storeSp(int s) { UNSAFE.putOrderedInt(this, spOffset, s); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setSpid(int param){\n localSpidTracker = true;\n \n this.localSpid=param;\n \n\n }", "void setOrder(Order order);", "protected abs...
[ "0.5819413", "0.5775126", "0.5686176", "0.56604576", "0.5654644", "0.5549553", "0.5482238", "0.53326315", "0.5251314", "0.5251314", "0.5249753", "0.5197393", "0.51913553", "0.51627517", "0.5143096", "0.5125701", "0.51121026", "0.51070905", "0.50954366", "0.50843596", "0.50809...
0.64354444
0
Main queue methods Pushes a task. Called only by current thread.
final void pushTask(Runnable t) { Runnable[] q = queue; int mask = q.length - 1; int s = sp; setSlot(q, s & mask, t); storeSp(++s); if ((s -= base) == 1) pool.signalWork(); else if (s >= mask) growQueue(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void queueTask(Version theTask) {\n\tsynchronized(_taskQueue) {\n\t _taskQueue.add(theTask);\n\t}\n }", "private void workOnQueue() {\n }", "void runQueue();", "public synchronized void enqueue(Task task) {\n tasks.add(task);\n }", "@Override\n\tpublic void addTask(ISimpleTask task) ...
[ "0.7330137", "0.6792348", "0.67878735", "0.6734485", "0.6729322", "0.66040504", "0.65103996", "0.650686", "0.6373197", "0.63188547", "0.6308149", "0.6271611", "0.6271455", "0.625812", "0.6247769", "0.62361073", "0.6214451", "0.6207204", "0.6193665", "0.618607", "0.6183521", ...
0.7638633
0
Tries to take a task from the base of the queue, failing if either empty or contended.
final Runnable deqTask() { Runnable t; Runnable[] q; int i; int b; if (sp != (b = base) && (q = queue) != null && // must read q after b (t = q[i = (q.length - 1) & b]) != null && casSlotNull(q, i, t)) { base = b + 1; re...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "final Runnable popTask() {\n int s = sp;\n while (s != base) {\n if (tryActivate()) {\n Runnable[] q = queue;\n int mask = q.length - 1;\n int i = (s - 1) & mask;\n Runnable t = q[i];\n if (t == null || !casSlotNull...
[ "0.6720251", "0.66869634", "0.645679", "0.62841845", "0.6001063", "0.59846467", "0.5888399", "0.5888399", "0.5881991", "0.5792892", "0.57683885", "0.57487094", "0.57416594", "0.57160246", "0.56915265", "0.5616526", "0.5584151", "0.556916", "0.55468804", "0.5521311", "0.547940...
0.6363437
3
Tries to take a task from the base of own queue, activating if necessary, failing only if empty. Called only by current thread.
final Runnable locallyDeqTask() { Runnable work = dispatchQueue.poll(); if( work!=null ) { return work; } int b; while (sp != (b = base)) { if (tryActivate()) { Runnable[] q = queue; int i = (q.length - 1) & b; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "final Runnable popTask() {\n int s = sp;\n while (s != base) {\n if (tryActivate()) {\n Runnable[] q = queue;\n int mask = q.length - 1;\n int i = (s - 1) & mask;\n Runnable t = q[i];\n if (t == null || !casSlotNull...
[ "0.66293126", "0.61550117", "0.60062325", "0.5967744", "0.5941993", "0.5917642", "0.5883742", "0.58650696", "0.58190054", "0.57915777", "0.5700288", "0.5629246", "0.5617314", "0.5564472", "0.55639213", "0.5511577", "0.5497496", "0.5471561", "0.5451625", "0.5449085", "0.544905...
0.6407669
1
Returns a popped task, or null if empty. Ensures active status if nonnull. Called only by current thread.
final Runnable popTask() { int s = sp; while (s != base) { if (tryActivate()) { Runnable[] q = queue; int mask = q.length - 1; int i = (s - 1) & mask; Runnable t = q[i]; if (t == null || !casSlotNull(q, i, t)) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Runnable getTask() {\r\n if (mType== Type.FIFO){\r\n return mTaskQueue.removeFirst();\r\n }else if (mType== Type.LIFO){\r\n return mTaskQueue.removeLast();\r\n }\r\n return null;\r\n }", "public Serializable asyncPop() {//can move on to another task b...
[ "0.7317431", "0.7126045", "0.70891726", "0.6843817", "0.6784334", "0.675555", "0.6742477", "0.660975", "0.65815246", "0.6566436", "0.6490766", "0.63804466", "0.6370252", "0.6360732", "0.6333304", "0.62854093", "0.6237267", "0.6231599", "0.62234765", "0.6154182", "0.6154182", ...
0.80099356
0
Specialized version of popTask to pop only if topmost element is the given task. Called only by current thread while active.
final boolean unpushTask(Runnable t) { Runnable[] q = queue; int mask = q.length - 1; int s = sp - 1; if (casSlotNull(q, s & mask, t)) { storeSp(s); return true; } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "final Runnable popTask() {\n int s = sp;\n while (s != base) {\n if (tryActivate()) {\n Runnable[] q = queue;\n int mask = q.length - 1;\n int i = (s - 1) & mask;\n Runnable t = q[i];\n if (t == null || !casSlotNull...
[ "0.71173847", "0.7037583", "0.64254594", "0.64050287", "0.6043106", "0.5881993", "0.5813133", "0.5789615", "0.5789615", "0.5789615", "0.5767138", "0.5710459", "0.5682223", "0.5679151", "0.5669882", "0.5669882", "0.5669882", "0.5669882", "0.5669882", "0.5669882", "0.5669882", ...
0.5809249
7
Returns next task or null if empty or contended
final Runnable peekTask() { Runnable[] q = queue; if (q == null) return null; int mask = q.length - 1; int i = base; return q[i & mask]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Task getNextTask(final String name) {\n return null;\n }", "public void nextTask()\n {\n Task next = null;\n \n if (!pq.isEmpty()) next = pq.remove();\n \n if (next == null)\n {\n System.out.println(\"There are no tasks in the list.\");\n }\n els...
[ "0.7301692", "0.71072686", "0.71018744", "0.7044197", "0.68663704", "0.66982996", "0.65593994", "0.6498398", "0.64950395", "0.6467371", "0.6375983", "0.6313913", "0.6176635", "0.61641777", "0.61328685", "0.60844", "0.6060572", "0.6047204", "0.5935428", "0.5876057", "0.5873308...
0.66119444
6
Doubles queue array size. Transfers elements by emulating steals (deqs) from old array and placing, oldest first, into new array.
private void growQueue() { Runnable[] oldQ = queue; int oldSize = oldQ.length; int newSize = oldSize << 1; if (newSize > MAXIMUM_QUEUE_CAPACITY) throw new RejectedExecutionException("Queue capacity exceeded"); Runnable[] newQ = queue = new Runnable[newSize]; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void increaseSize() {\n Estimate[] newQueue = new Estimate[queue.length * 2];\n\n for (int i = 0; i < queue.length; i++) {\n newQueue[i] = queue[i];\n }\n\n queue = newQueue;\n }", "private void queueResize() {\n queue = Arrays.copyOf(queue, queue.length + ...
[ "0.7629684", "0.73956215", "0.7275495", "0.70991725", "0.68854237", "0.67700934", "0.67553777", "0.67511094", "0.6731977", "0.669281", "0.6692655", "0.6635086", "0.661862", "0.65365344", "0.65225476", "0.65167004", "0.65084153", "0.6492474", "0.6449126", "0.6418263", "0.64044...
0.63587284
21
Tries to steal a task from another worker. Starts at a random index of threads array, and probes threads until finding one with nonempty queue or finding that all are empty. It randomly selects the first n probes. If these are empty, it resorts to a full circular traversal, which is necessary to accurately set active s...
private Runnable scan() { Runnable t = null; int r = seed; // extract once to keep scan quiet StealingThread[] ws; // refreshed on outer loop int mask; // must be power 2 minus 1 and > 0 outer:do { if ((ws = pool.threads...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void run (){\n String currThrdId = new String (\"\");\n try {\n stats.getAndAdd(ConcurrentTest.cb.getNumberWaiting());\n currThrdId = new Long(Thread.currentThread().getId()).toString(); \n tArray.add(currThrdId);\n ConcurrentTest.cb.await(); ...
[ "0.6498692", "0.5862286", "0.56886214", "0.54969954", "0.54650277", "0.5448238", "0.5406004", "0.5358623", "0.5214689", "0.5204298", "0.5179708", "0.5175445", "0.50995356", "0.50656015", "0.5049186", "0.5038726", "0.50297385", "0.50103945", "0.49169043", "0.49115056", "0.4909...
0.6981469
0
Gets and removes a local or stolen task.
final Runnable pollTask() { Runnable t = locallyDeqTask(); if (t == null && (t = scan()) != null) ++stealCount; return t; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private synchronized Task taskGet() {\n\t\treturn this.taskList.remove();\n\t}", "void remove(final Task task);", "final Runnable pollLocalTask() {\n return locallyDeqTask();\n }", "void deleteUndoneTask(ReadOnlyTask target) throws UniqueTaskList.TaskNotFoundException;", "private Runnable getTask...
[ "0.71177006", "0.6701039", "0.6352949", "0.60544163", "0.60505635", "0.5994652", "0.5993774", "0.5974299", "0.59614366", "0.59466344", "0.59456676", "0.58914185", "0.5886463", "0.5882998", "0.5881675", "0.5881406", "0.5855063", "0.5853592", "0.5764616", "0.57563496", "0.57474...
0.54590774
32
Gets a local task.
final Runnable pollLocalTask() { return locallyDeqTask(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Task getTask(Integer tid);", "public Task getTask() {\n Long __key = this.TaskId;\n if (task__resolvedKey == null || !task__resolvedKey.equals(__key)) {\n if (daoSession == null) {\n throw new DaoException(\"Entity is detached from DAO context\");\n }\n ...
[ "0.6787822", "0.6634537", "0.6474386", "0.64492327", "0.64438176", "0.6433638", "0.6389419", "0.6388647", "0.6340159", "0.6334106", "0.6302721", "0.6298386", "0.62844646", "0.61890775", "0.61803657", "0.61643505", "0.6115649", "0.6104673", "0.6096366", "0.6092701", "0.6085253...
0.71400386
0
Returns a pool submission, if one exists, activating first.
private Runnable pollSubmission() { StealingPool p = pool; while (p.hasQueuedSubmissions()) { Runnable t; if (tryActivate() && (t = p.pollSubmission()) != null) return t; } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected ThreadPool getPool()\r\n {\r\n return threadPool_;\r\n }", "int getPoolNumber();", "public boolean getPool() {\n\t\treturn this.pool;\n\t}", "public BoneCP getPool() {\n return pool;\n }", "private synchronized WorkerThread getThread() {\n\t\tfor (int i = 0; i < this.thread...
[ "0.5491513", "0.5417761", "0.5374111", "0.53294617", "0.52691466", "0.52635974", "0.51664543", "0.51658887", "0.5103968", "0.508581", "0.50795865", "0.50649977", "0.5025931", "0.5009858", "0.49947262", "0.4985646", "0.4948235", "0.49458817", "0.49221396", "0.49159774", "0.490...
0.7228079
0
Drains tasks to given collection c.
final int drainTasksTo(Collection<? super Runnable> c) { int n = 0; Runnable t; while (base != sp && (t = deqTask()) != null) { c.add(t); ++n; } return n; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "B withTasks(Collection<T> tasks);", "@Override\n\tpublic int drainTo(Collection<? super E> c) {\n\t\treturn 0;\n\t}", "private CollectTaskPool() {\n\t\tsuper();\n\t}", "private void submitCollectAppsTrafficTask() {\n\t\tL.i(this.getClass(), \"CollectAppsTrafficTask()...\");\n\t\taddTask(new CollectAppsTraffi...
[ "0.59449565", "0.56670237", "0.51470053", "0.5082046", "0.4997476", "0.49601382", "0.49599868", "0.49047998", "0.4893829", "0.48687288", "0.48264974", "0.4820997", "0.4820777", "0.48130643", "0.4804836", "0.47464466", "0.46650624", "0.46608603", "0.464584", "0.46438006", "0.4...
0.70494515
0
Gets and clears steal count for accumulation by pool. Called only when known to be idle (in pool.sync and termination).
final int getAndClearStealCount() { int sc = stealCount; stealCount = 0; return sc; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public int getNumIdle() {\n return _pool.size();\n }", "public long count() { return count.get(); }", "public void resetActiveStats() {\n if (!valid)\n return;\n\n\n Handler handler = new Handler(getLooper());\n handler.post(() -> {\n recentSt...
[ "0.6456608", "0.5903016", "0.56408554", "0.55841213", "0.5581176", "0.5574038", "0.5563867", "0.554128", "0.55086905", "0.54806125", "0.5480178", "0.5463153", "0.543706", "0.54353243", "0.5433913", "0.5415896", "0.5413784", "0.54058164", "0.53643054", "0.534869", "0.53309405"...
0.73062634
0
Support methods for Work Returns an estimate of the number of tasks in the queue.
final int getQueueSize() { // suppress momentarily negative values return Math.max(0, sp - base); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "long getExcutorTasksInWorkQueueCount();", "public Integer getWorkSize(){\r\n\t\treturn work.size();\t\t\r\n\t}", "public int getSize() {\n return tasks.size();\n }", "long getExecutorTaskCount();", "int numberOfWorkingWorkers();", "public int getSize() {\n return this.tasks.size();\n ...
[ "0.8173041", "0.7650867", "0.7381073", "0.73558265", "0.7291106", "0.72359073", "0.72152", "0.72152", "0.72152", "0.7207672", "0.7175055", "0.7074347", "0.7052481", "0.7048939", "0.7020095", "0.6998547", "0.6986594", "0.6964596", "0.6926932", "0.69164556", "0.69106", "0.681...
0.6762207
27
Returns an estimate of the number of tasks, offset by a function of number of idle threads.
final int getEstimatedSurplusTaskCount() { // The halving approximates weighting idle vs non-idle threads return (sp - base) - (pool.getIdleThreadCount() >>> 1); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "long getExecutorTaskCount();", "long getExcutorTasksInWorkQueueCount();", "public int getIdleTime() {\n int[] processorFinishTimes = new int[AlgorithmConfig.getNumOfProcessors()];\n int[] processorWeights = new int[AlgorithmConfig.getNumOfProcessors()];\n int processor;\n // Find th...
[ "0.682766", "0.6825394", "0.6740721", "0.6662004", "0.65559584", "0.6525104", "0.65174997", "0.64971715", "0.64872867", "0.64735717", "0.6417591", "0.63995993", "0.6351618", "0.63341355", "0.6279105", "0.62490153", "0.6243914", "0.6240258", "0.6239697", "0.6227032", "0.619349...
0.7518449
0
Returns a sun.misc.Unsafe. Suitable for use in a 3rd party package. Replace with a simple call to Unsafe.getUnsafe when integrating into a jdk.
private static sun.misc.Unsafe getUnsafe() { try { return sun.misc.Unsafe.getUnsafe(); } catch (SecurityException se) { try { return java.security.AccessController.doPrivileged (new java.security .PrivilegedExceptionAction<...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static Object getUnsafe() {\n\t\tObject unsafe;\n\t\ttry {\n\t\t\tunsafe = ReflectionUtils.get(Class.forName(\"sun.misc.Unsafe\"), \"theUnsafe\");\n\t\t} catch (ClassNotFoundException ex) {\n\t\t\tthrow new RuntimeException(ex);\n\t\t}\n\t\treturn unsafe;\n\t}", "private static Unsafe getUnsafe() {\n ...
[ "0.8256631", "0.80546427", "0.7794637", "0.62495816", "0.6191947", "0.5203709", "0.518009", "0.5026107", "0.5015443", "0.48406473", "0.46957764", "0.46249703", "0.45189542", "0.4488463", "0.44600987", "0.4452357", "0.4422349", "0.44206408", "0.43866056", "0.43824142", "0.4361...
0.8532757
0
Constructor to extract the form parameters
public FinishPaymentCommand(String parameter) { apPaymentIds = parameter; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract String toFORMParam();", "private Params()\n {\n }", "public ProposalSpecialReviewForm() {\r\n }", "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<>();\n params.put(\"name\", name);\n params.put(\"...
[ "0.6670237", "0.6440971", "0.6212806", "0.61834186", "0.61822504", "0.61556965", "0.61471456", "0.6128763", "0.6125471", "0.6119559", "0.6058502", "0.60465133", "0.59990203", "0.5976967", "0.59240973", "0.5919078", "0.5917714", "0.59126806", "0.59113353", "0.59071165", "0.588...
0.0
-1
TODO Autogenerated method stub
public static void main(String[] args) throws InterruptedException { WebDriver driver=new ChromeDriver(); driver.get("https://www.bluestone.com/"); driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS); driver.manage().window().maximize(); Actions action=new Actions(driver); WebElement ...
{ "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
This method displays the given quantity value on the screen.
private void displayQuantity(int number) { TextView quantityTextView = (TextView) findViewById(R.id.quantity_text_view); quantityTextView.setText("" + number); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void displayQuantity(int quantity) {\n final TextView quantityTextView = findViewById(R.id.quantity_text_view);\n quantityTextView.setText(String.valueOf(quantity));\n }", "private void displayQuantity() {\n Log.d(\"Method\", \"displayQuantity()\");\n TextView quantityTextV...
[ "0.8213166", "0.77711684", "0.76877743", "0.7662449", "0.76077026", "0.75838345", "0.75393534", "0.7531525", "0.74963754", "0.73660475", "0.73062533", "0.730518", "0.730518", "0.730518", "0.730518", "0.730518", "0.730518", "0.730518", "0.72967106", "0.72941256", "0.72941005",...
0.75173247
8
TextView priceTextView = (TextView) findViewById(R.id.order_summary_text_view); priceTextView.setText(NumberFormat.getCurrencyInstance().format(number));
private void displayPrice(int number) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void displayPrice(int number) {\n TextView priceTextView = findViewById(R.id.textPrice);\n// priceTextView.setText(NumberFormat.getCurrencyInstance().format(number));\n priceTextView.setText(\"KES \" + number);\n }", "private void displayPrice(int number) {\n TextView price...
[ "0.84625435", "0.84022766", "0.8349769", "0.8294559", "0.82721883", "0.8192042", "0.8123765", "0.7533431", "0.69175375", "0.68860614", "0.687749", "0.68487966", "0.6817213", "0.6777571", "0.6758087", "0.67525095", "0.67510456", "0.674468", "0.67433214", "0.67363375", "0.66826...
0.66095734
33
TextView OrderTextView = (TextView) findViewById(R.id.order_summary_text_view); OrderTextView.setText(message);
private void displayMessage(String message) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void displayMessage(String message) {\n TextView SummaryTextView = (TextView) findViewById(R.id.ordersummary_text_view);\n SummaryTextView.setText(message);\n }", "private void displayMessage(String message) {\n TextView orderSummaryTextView = (TextView) findViewById(R.id.order_su...
[ "0.8195403", "0.8138671", "0.8138671", "0.8138671", "0.8059415", "0.7977007", "0.786022", "0.74867666", "0.71908176", "0.69956523", "0.696726", "0.69431245", "0.6923152", "0.6862512", "0.6848145", "0.6821922", "0.68189776", "0.6769313", "0.67506105", "0.6734263", "0.6729357",...
0.0
-1
IMPORTANT: Do not edit. This file is generated. Builds expressions to call functions in the xdmp server library for a row pipeline.
public interface XdmpExpr { /** * Add two 64-bit integer values, discarding overflow. * * <a name="ml-server-type-add64"></a> * <p> * Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:add64" target="mlserverdoc">xdmp:add64</a> server function. * @param x The first value. (o...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract Expression generateExpression(GenerationContext context);", "@Test\n public void testMultiFunction() throws Exception {\n String sql = \"SELECT 5 + length(concat(a, 'x')) FROM g\";\n Node fileNode = sequenceSql(sql, TSQL_QUERY);\n\n Node queryNode = verify(fileNode, Query....
[ "0.6009071", "0.58664715", "0.5824601", "0.5818673", "0.5816509", "0.57852817", "0.57229555", "0.5722777", "0.5663341", "0.5620861", "0.55850047", "0.5564388", "0.5564388", "0.5534445", "0.5530746", "0.5483495", "0.54775554", "0.5444175", "0.543649", "0.5428733", "0.54282874"...
0.53485364
27
If this looks like username, search by UserId.
@Override public List<EduUser> apply(final String s) { if (StringUtils.isAlphanumeric(s)) { List<EduUser> userList = new ArrayList<>(); userList.add(humanResourceService.getUserByUsername(s)); return userList; } ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String searchForUser() {\n String userId = \"\";\n String response = given().\n get(\"/users\").then().extract().asString();\n List usernameId = from(response).getList(\"findAll { it.username.equals(\\\"Samantha\\\") }.id\");\n if (!usernameId.isEmpty()) {\n ...
[ "0.76561606", "0.7543163", "0.69876546", "0.69208384", "0.6651486", "0.65842545", "0.6542835", "0.65358484", "0.6487732", "0.64847577", "0.6331825", "0.6331143", "0.628845", "0.62470996", "0.6229818", "0.6220647", "0.62187797", "0.6213736", "0.61841637", "0.61841637", "0.6184...
0.0
-1
If this looks like userId, search by UserId.
@Override public List<EduUser> apply(final String s) { if (StringUtils.isNumeric(s)) { List<EduUser> userList = new ArrayList<>(); userList.add(humanResourceService.getUserByUserId(Long.valueOf(s))); return userList; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int search_userid(String user_name);", "private String searchForUser() {\n String userId = \"\";\n String response = given().\n get(\"/users\").then().extract().asString();\n List usernameId = from(response).getList(\"findAll { it.username.equals(\\\"Samantha\\\") }.id\...
[ "0.7158994", "0.7106636", "0.65823835", "0.6570303", "0.6513652", "0.650384", "0.6480288", "0.6480288", "0.6480288", "0.6431282", "0.6406407", "0.63413", "0.6338899", "0.6319615", "0.6290516", "0.6284307", "0.6280157", "0.62547874", "0.62113106", "0.62007123", "0.62007123", ...
0.0
-1
Get the process id from specified file path. Parses each line to find a valid number and returns the first one found.
public static String getProcessId(Path path) throws IOException { if (path == null) { throw new IOException("Trying to access process id from a null path"); } LOG.debug("Accessing pid from pid file {}", path); String processId = null; BufferedReader bufReader = null; try { File file...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static int readID(String path) {\n int id = 0;\n\n try {\n File file = new File(sourcePath + path);\n BufferedReader br = new BufferedReader(new FileReader(file));\n\n String line = br.readLine();\n\n if (line != null)\n id = Integer.p...
[ "0.71901876", "0.6528309", "0.63557684", "0.6134993", "0.59776145", "0.5955127", "0.5929461", "0.5916727", "0.5869344", "0.58674043", "0.58489275", "0.5786618", "0.57636136", "0.5739264", "0.5672854", "0.5672682", "0.56514287", "0.5602041", "0.558426", "0.5581069", "0.5561833...
0.8070819
0
elements not in array
public HashTable(int size){ arraySize = size; hashArray = new Elements[arraySize]; nullement = new Elements(" -1 "); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean notInArray(Process p, Process[] q){\n for(int i =0; i<q.length; i++){\n if(q[i]==p){\n return false;\n }\n }\n return true;\n }", "public static List<Integer> getUnmarked(boolean[] arr) {\n\t\tArrayList<Integer> list = new ArrayList<Int...
[ "0.642645", "0.6094194", "0.60142916", "0.5894329", "0.5853627", "0.57957375", "0.5776473", "0.5769435", "0.5747249", "0.5731665", "0.5713446", "0.56886256", "0.5672956", "0.5647405", "0.5636374", "0.5627618", "0.5542944", "0.5509604", "0.5503356", "0.54976946", "0.54849744",...
0.0
-1
Optional. A CEL expression that may be used to validate the resolved X.509 Subject and/or Subject Alternative Name before a certificate is signed. To see the full allowed syntax and some examples, see .google.type.Expr cel_expression = 1 [(.google.api.field_behavior) = OPTIONAL];
boolean hasCelExpression();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "com.google.type.Expr getCelExpression();", "String getCertificate();", "com.google.type.ExprOrBuilder getCelExpressionOrBuilder();", "public M csseSubjectNull(){if(this.get(\"csseSubjectNot\")==null)this.put(\"csseSubjectNot\", \"\");this.put(\"csseSubject\", null);return this;}", "public String getCertifi...
[ "0.5052196", "0.47985694", "0.47958878", "0.4716534", "0.466066", "0.46300215", "0.46271056", "0.46063027", "0.4583486", "0.4569593", "0.45532435", "0.4544505", "0.4522406", "0.45017546", "0.44715625", "0.44701862", "0.4441761", "0.44367138", "0.4434463", "0.4416392", "0.4396...
0.40095115
76
Optional. A CEL expression that may be used to validate the resolved X.509 Subject and/or Subject Alternative Name before a certificate is signed. To see the full allowed syntax and some examples, see .google.type.Expr cel_expression = 1 [(.google.api.field_behavior) = OPTIONAL];
com.google.type.Expr getCelExpression();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getCertificate();", "com.google.type.ExprOrBuilder getCelExpressionOrBuilder();", "public M csseSubjectNull(){if(this.get(\"csseSubjectNot\")==null)this.put(\"csseSubjectNot\", \"\");this.put(\"csseSubject\", null);return this;}", "public String getCertificationRequest() {\n if (signingRequest == n...
[ "0.47998154", "0.47935447", "0.47163722", "0.4661001", "0.46318147", "0.46302044", "0.46041164", "0.45844018", "0.45709434", "0.4557432", "0.4545868", "0.45213032", "0.45034346", "0.44728565", "0.44711342", "0.44416025", "0.44388214", "0.44322208", "0.44163385", "0.43967706", ...
0.5048878
0
Optional. A CEL expression that may be used to validate the resolved X.509 Subject and/or Subject Alternative Name before a certificate is signed. To see the full allowed syntax and some examples, see .google.type.Expr cel_expression = 1 [(.google.api.field_behavior) = OPTIONAL];
com.google.type.ExprOrBuilder getCelExpressionOrBuilder();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "com.google.type.Expr getCelExpression();", "String getCertificate();", "public M csseSubjectNull(){if(this.get(\"csseSubjectNot\")==null)this.put(\"csseSubjectNot\", \"\");this.put(\"csseSubject\", null);return this;}", "public String getCertificationRequest() {\n if (signingRequest == null) return null;\...
[ "0.5051508", "0.47971627", "0.4715483", "0.46588224", "0.4629933", "0.462808", "0.4606242", "0.45822513", "0.4567646", "0.45542145", "0.45441476", "0.45218515", "0.45011103", "0.44694728", "0.44690672", "0.44407302", "0.44355777", "0.4434378", "0.4415964", "0.43950272", "0.43...
0.47956443
2
Required. If this is true, the [Subject][google.cloud.security.privateca.v1.Subject] field may be copied from a certificate request into the signed certificate. Otherwise, the requested [Subject][google.cloud.security.privateca.v1.Subject] will be discarded. bool allow_subject_passthrough = 2 [(.google.api.field_behavi...
boolean hasAllowSubjectPassthrough();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean getAllowSubjectPassthrough();", "boolean hasAllowSubjectAltNamesPassthrough();", "boolean getAllowSubjectAltNamesPassthrough();", "@Override\n public boolean isSubject() {\n return false;\n }", "public void setAddSubjectInProviderParameter(final boolean addSubject)\r\n {\n\r\n ...
[ "0.66049045", "0.6545469", "0.6434618", "0.59028894", "0.54870594", "0.53665286", "0.5365175", "0.51522255", "0.5146171", "0.5113249", "0.5112765", "0.50977325", "0.5096889", "0.5096889", "0.506958", "0.5044079", "0.49914747", "0.4975057", "0.49694657", "0.4955659", "0.495565...
0.645281
2
Required. If this is true, the [Subject][google.cloud.security.privateca.v1.Subject] field may be copied from a certificate request into the signed certificate. Otherwise, the requested [Subject][google.cloud.security.privateca.v1.Subject] will be discarded. bool allow_subject_passthrough = 2 [(.google.api.field_behavi...
boolean getAllowSubjectPassthrough();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean hasAllowSubjectAltNamesPassthrough();", "boolean hasAllowSubjectPassthrough();", "boolean getAllowSubjectAltNamesPassthrough();", "@Override\n public boolean isSubject() {\n return false;\n }", "public void setAddSubjectInProviderParameter(final boolean addSubject)\r\n {\n\r\n ...
[ "0.65452594", "0.6452149", "0.64339614", "0.5902498", "0.5489333", "0.53689003", "0.53673905", "0.51528597", "0.5147295", "0.5114508", "0.5113659", "0.5097641", "0.5097641", "0.50972337", "0.5069091", "0.5044621", "0.49923497", "0.4976341", "0.49693063", "0.49568933", "0.4956...
0.6603853
0
Required. If this is true, the [SubjectAltNames][google.cloud.security.privateca.v1.SubjectAltNames] extension may be copied from a certificate request into the signed certificate. Otherwise, the requested [SubjectAltNames][google.cloud.security.privateca.v1.SubjectAltNames] will be discarded. bool allow_subject_alt_na...
boolean hasAllowSubjectAltNamesPassthrough();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean getAllowSubjectAltNamesPassthrough();", "boolean getAllowSubjectPassthrough();", "public java.util.Collection<java.util.List<?>> getSubjectAlternativeNames() throws java.security.cert.CertificateParsingException {\n /*\n // Can't load method instructions: Load method exception: bogus opco...
[ "0.7900502", "0.54110104", "0.5311288", "0.5209211", "0.5072848", "0.4953481", "0.48968685", "0.48864353", "0.48436826", "0.48263633", "0.477604", "0.477604", "0.47750613", "0.4753948", "0.4707385", "0.47033364", "0.46849358", "0.46726823", "0.46614257", "0.46427348", "0.4642...
0.7915557
0
Required. If this is true, the [SubjectAltNames][google.cloud.security.privateca.v1.SubjectAltNames] extension may be copied from a certificate request into the signed certificate. Otherwise, the requested [SubjectAltNames][google.cloud.security.privateca.v1.SubjectAltNames] will be discarded. bool allow_subject_alt_na...
boolean getAllowSubjectAltNamesPassthrough();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean hasAllowSubjectAltNamesPassthrough();", "boolean getAllowSubjectPassthrough();", "public java.util.Collection<java.util.List<?>> getSubjectAlternativeNames() throws java.security.cert.CertificateParsingException {\n /*\n // Can't load method instructions: Load method exception: bogus opco...
[ "0.79167914", "0.54129267", "0.5310958", "0.52111727", "0.5071971", "0.4955896", "0.48981452", "0.48864758", "0.48414978", "0.48264298", "0.47759333", "0.47759333", "0.4773259", "0.47537982", "0.47071618", "0.47030547", "0.4684535", "0.4672455", "0.4661796", "0.46422908", "0....
0.7901495
1
Sets the cfg as string.
public void setCfgAsString(String cfg) { this.cfg = new Cfg(cfg); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@XmlAttribute(name=\"cfg\")\n\tpublic String getCfgAsString() {\n\t\tif(cfg != null)\n\t\t\treturn cfg.toString();\n\t\treturn null;\n\t}", "public void setComCfg(String s) {\n if (s == null) comCfg = \"\";\n else comCfg = s;\n }", "public String configString() {\n return this.configString;...
[ "0.67806304", "0.6168193", "0.61129814", "0.6010669", "0.59579945", "0.5777573", "0.5731543", "0.5714943", "0.57010514", "0.5611233", "0.5531891", "0.5494316", "0.54814637", "0.5450812", "0.54285103", "0.5404747", "0.5389753", "0.53369474", "0.5322123", "0.5284444", "0.525866...
0.80526346
0
Gets the cfg as string.
@XmlAttribute(name="cfg") public String getCfgAsString() { if(cfg != null) return cfg.toString(); return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getConfig() {\n\t\treturn(config);\n\t}", "public String configString() {\n return this.configString;\n }", "public String getConfig();", "public String getStringConfiguration()\r\n\t{\r\n\t\treturn config;\r\n\t}", "public String getConfigString()\n {\n return debug ? \"d...
[ "0.75712746", "0.75369734", "0.7381562", "0.7366328", "0.7348401", "0.7331786", "0.7308617", "0.72989136", "0.6998123", "0.69585115", "0.68960816", "0.6761752", "0.672786", "0.6700961", "0.66597396", "0.6635303", "0.66300887", "0.6595922", "0.6571733", "0.65595955", "0.654858...
0.82404214
0
For use in UI settings.
public Object[][] buildProblemDataModel() { int clientNodes[] = TSProblemModel.getInstance().getAllProblemNodes(); Object[][] result = new Object[clientNodes.length][clientNodes.length]; for (int i = 0; i < clientNodes.length; i++) { int index = clientNodes[i]; result[i][0] = new Integ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void settings() {\n // TODO Auto-generated method stub\n \n }", "@Override\n\tprotected void handleSettings(ClickEvent event) {\n\t\t\n\t}", "@Override\n\tprotected void setValueOnUi() {\n\n\t}", "private void settings() {\n mainTitle = makeLabel(\"Settings\", true);\n ...
[ "0.70969355", "0.70030004", "0.68858176", "0.64556557", "0.6353677", "0.6303968", "0.6258191", "0.6240127", "0.619008", "0.6176072", "0.6142937", "0.6141441", "0.613262", "0.6118937", "0.61169267", "0.6106657", "0.6106657", "0.6106657", "0.6106657", "0.6106657", "0.6106657", ...
0.0
-1
For use in UI settings.
public Object[][] buildNewGraphDataModel() { resetDataStructures(); Graph g = UIFacade.getInstance().getGraph(); Object[][] result = new Object[g.getN()][5]; for (int i = 0; i < g.getN(); i++) { Node node = g.getNode(i); ComponentProperties cp = node.getProperties(); // ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void settings() {\n // TODO Auto-generated method stub\n \n }", "@Override\n\tprotected void handleSettings(ClickEvent event) {\n\t\t\n\t}", "@Override\n\tprotected void setValueOnUi() {\n\n\t}", "private void settings() {\n mainTitle = makeLabel(\"Settings\", true);\n ...
[ "0.70968914", "0.70009583", "0.68842125", "0.64532983", "0.6353074", "0.63027024", "0.62568706", "0.6240321", "0.6186956", "0.61745864", "0.6141157", "0.6139885", "0.61327636", "0.61177933", "0.61157554", "0.61033875", "0.61033875", "0.61033875", "0.61033875", "0.61033875", "...
0.0
-1
infalte the item Layout
@Override public MyViewHolder onCreateViewHolder(ViewGroup parent, int viewType) { View v = LayoutInflater.from(parent.getContext()).inflate(R.layout.rowlayout, parent, false); MyViewHolder vh = new MyViewHolder(v); // pass the view to View Holder return vh; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void layout() {\n\n\n _abortButton= makeAbortButton();\n _abortButton.addStyleName(\"download-group-abort\");\n _content.addStyleName(\"download-group-content\");\n _detailUI= new DetailUIInfo[getPartCount(_monItem)];\n layoutDetails();\n }", "public void layout() {...
[ "0.7255202", "0.7166232", "0.6757847", "0.6723138", "0.67204124", "0.6638912", "0.65264904", "0.65208465", "0.64987856", "0.64455706", "0.63868976", "0.63819724", "0.63784546", "0.6330461", "0.6296194", "0.62819713", "0.6274178", "0.6236497", "0.6223347", "0.6182675", "0.6159...
0.0
-1
set the data in items
@Override public void onBindViewHolder(MyViewHolder holder, final int position) { if(updateStatusList.get(position).equals("yes")){ holder.updateStatus.setVisibility(View.VISIBLE); }else if(updateStatusList.get(position).equals("no")){ holder.updateStatus.setVisibility(View.G...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setData(Item i)\r\n\t{\r\n\t\ttheItem = i;\r\n\t}", "private void setData() {\n\n if (id == NO_VALUE) return;\n MarketplaceItem item = ControllerItems.getInstance().getModel().getItemById(id);\n if (item == null) return;\n\n ControllerAnalytics.getInstance().logItemView(id...
[ "0.78740144", "0.7720645", "0.7329612", "0.7304706", "0.7225539", "0.7155425", "0.71149504", "0.70138943", "0.6968174", "0.6891728", "0.68739337", "0.6849631", "0.6844574", "0.6837697", "0.6821487", "0.68165916", "0.6747048", "0.67453855", "0.67262304", "0.6640031", "0.663787...
0.0
-1
display a toast with person name on item click
@Override public void onClick(View view) { Intent intent = new Intent(context.getApplicationContext(), UpdateTreeDetails.class); intent.putExtra("treeName",treeNameList.get(position)); intent.putExtra("treeAddress",treeAddressList.get(position)); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onItemClick(AdapterView<?> arg0, View arg1, int position,\n long id) {\n Toast.makeText(getApplicationContext(), actorsList.get(position).getName(), Toast.LENGTH_LONG).show();\n }", "@Override\n\t\t\tpublic void onIte...
[ "0.77970254", "0.7404997", "0.7357686", "0.7332293", "0.7181698", "0.71733034", "0.6988026", "0.6970021", "0.69622314", "0.69353986", "0.69174385", "0.6886065", "0.68721557", "0.6858729", "0.6834184", "0.6806614", "0.6774737", "0.6771008", "0.67618704", "0.67592764", "0.67572...
0.0
-1
Limpa os campos input e atualiza a lista de pressaoArterials cadastrados
private void atualizarTela() { System.out.println("\n*** Refresh da Pagina / Consultando Todos os Registro da Tabela PressaoArterial\n"); pressaoArterial = new PressaoArterial(); listaPressaoArterial = pressaoArterialService.buscarTodos(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void LimpiarCampos() {\n\n txtIdAsignarPer.setText(\"\");\n txtNombreusu.setText(\"\");\n pswConfCont.setText(\"\");\n combPerf.setSelectedItem(\"\");\n pswContra.setText(\"\");\n txtDocumento.setText(\"\");\n }", "private void limpaCampos() {\n txtNome....
[ "0.6698045", "0.65128106", "0.6432771", "0.6424166", "0.64070565", "0.63730145", "0.62359303", "0.61982286", "0.6160783", "0.60720086", "0.59877735", "0.5961505", "0.5948339", "0.59116757", "0.5843703", "0.58249", "0.580689", "0.5743765", "0.5727059", "0.57146", "0.5669178", ...
0.0
-1
Reads one JSON value (an array, object, string, number, boolean or null) and converts it to a Java object. Returns the converted object.
@Override public PvCard read(JsonReader in) throws IOException { try { return readPvCard(in); //or // return readPvCardViaTypeToken(in); // getting a PvCard object , use {@Link TypeToken} } finally { in.close(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Object readJSON() throws JSONException\n {\n switch(read(3))\n {\n case zipObject:\n return readObject();\n case zipArrayString:\n return readArray(true);\n case zipArrayValue:\n return readArray(false);\n ...
[ "0.68539685", "0.6503606", "0.6403792", "0.6392023", "0.6314745", "0.6290231", "0.6286489", "0.6245574", "0.61739874", "0.6161861", "0.60357916", "0.6004063", "0.59998596", "0.5974485", "0.59424406", "0.59375024", "0.5934141", "0.5933719", "0.5919", "0.59109455", "0.5838963",...
0.0
-1
Service class defines all the methods
public List <Student> getAllStudents();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void service() {\n\t}", "public interface Service {\n // Service-specific methods go here\n }", "public Service(){\n\t\t\n\t}", "Service newService();", "private static interface Service {}", "private Service() {}", "public void doService() {\n }", "public interface ProcesoVENServ...
[ "0.7712932", "0.7390213", "0.73119897", "0.7270984", "0.7267339", "0.71966815", "0.71622556", "0.7117403", "0.6916535", "0.6916535", "0.691279", "0.6831926", "0.6796283", "0.6795658", "0.6767943", "0.6742344", "0.6710076", "0.6690895", "0.66836417", "0.66827345", "0.6678127",...
0.0
-1
TODO: Warning this method won't work in the case the id fields are not set
@Override public boolean equals(Object object) { if (!(object instanceof Purserno)) { return false; } Purserno other = (Purserno) object; if ((this.pursernoPK == null && other.pursernoPK != null) || (this.pursernoPK != null && !this.pursernoPK.equals(other.pursernoPK))) {...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setId(Integer id) { this.id = id; }", "private Integer getId() { return this.id; }", "public void setId(int id){ this.id = id; }", "public void setId(Long id) {this.id = id;}", "public void setId(Long id) {this.id = id;}", "public void setID(String idIn) {this.id = idIn;}", "public void se...
[ "0.6896886", "0.6838461", "0.67056817", "0.66419715", "0.66419715", "0.6592331", "0.6579151", "0.6579151", "0.6574321", "0.6574321", "0.6574321", "0.6574321", "0.6574321", "0.6574321", "0.65624106", "0.65624106", "0.65441847", "0.65243006", "0.65154546", "0.6487427", "0.64778...
0.0
-1
Find the _Fields constant that matches fieldId, or null if its not found.
public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // BEER_LIST return BEER_LIST; case 2: // STATUS_CODE return STATUS_CODE; default: return null; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // REFERRAL_LOG_IDS\n return REFERRAL_LOG_IDS;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n ...
[ "0.7988762", "0.7916939", "0.7882991", "0.7882991", "0.7882991", "0.7882991", "0.7882991", "0.7882991", "0.7787679", "0.7780279", "0.7731214", "0.772902", "0.77236575", "0.771461", "0.771461", "0.7711532", "0.7710834", "0.7702951", "0.77012783", "0.76976734", "0.7688804", "...
0.0
-1
Find the _Fields constant that matches fieldId, throwing an exception if it is not found.
public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields find...
[ "0.76276547", "0.76276547", "0.76276547", "0.76276547", "0.76276547", "0.76276547", "0.76276547", "0.7622919", "0.7622919", "0.7622919", "0.7622919", "0.7622919", "0.7622919", "0.7622919", "0.7622919", "0.7622919", "0.7622919", "0.7622919", "0.7622919", "0.7622919", "0.762291...
0.0
-1
Find the _Fields constant that matches name, or null if its not found.
public static _Fields findByName(String name) { return byName.get(name); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "@org.apache...
[ "0.7641586", "0.7641586", "0.7641586", "0.7641586", "0.7641586", "0.7641586", "0.7641586", "0.7641586", "0.7641586", "0.7641586", "0.7641586", "0.7641586", "0.7641586", "0.7641586", "0.7641586", "0.7641586", "0.7641586", "0.7641586", "0.7641586", "0.7641586", "0.7641586", "...
0.0
-1
Performs a deep copy on other.
public BeersResponse(BeersResponse other) { if (other.isSetBeerList()) { Map<SatelliteBeerContainer,SatelliteMenuPart> __this__beerList = new HashMap<SatelliteBeerContainer,SatelliteMenuPart>(other.beerList.size()); for (Map.Entry<SatelliteBeerContainer, SatelliteMenuPart> other_element : other.beerList...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Prototype makeCopy();", "public void copy (WorldState other)\n\t{\n\t\tresetProperties();\n\t\t//Iterate through other state and clone it's properties into this states properties\n\t\tCollection<WorldStateProperty> otherProperties = other.properties.values();\n\t\tfor (WorldStateProperty property : otherProperti...
[ "0.7214815", "0.6982586", "0.6743959", "0.66792786", "0.6563397", "0.6549605", "0.65230364", "0.652084", "0.64842516", "0.64743775", "0.6450891", "0.6438907", "0.64186275", "0.640633", "0.6403375", "0.63743764", "0.6373319", "0.6358263", "0.6322797", "0.63214344", "0.62839", ...
0.0
-1
Returns true if field beerList is set (has been assigned a value) and false otherwise
public boolean isSetBeerList() { return this.beerList != null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isSetSellerList() {\n return this.sellerList != null;\n }", "public boolean isSetFeeList() {\r\n return feeList != null && !feeList.isEmpty();\r\n }", "public boolean isSetLegalList() {\n return this.legalList != null;\n }", "boolean isSetPublicationList();", "boolean hasLi...
[ "0.6920169", "0.6733442", "0.64174044", "0.62785435", "0.62286603", "0.62087864", "0.6200833", "0.6199705", "0.6090238", "0.6090238", "0.60888535", "0.60888535", "0.60482705", "0.60446846", "0.5947988", "0.59375083", "0.59042984", "0.5898448", "0.5844451", "0.58060026", "0.58...
0.83800167
0
Returns true if field statusCode is set (has been assigned a value) and false otherwise
public boolean isSetStatusCode() { return this.statusCode != null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean hasResponseCode() {\n return fieldSetFlags()[5];\n }", "public boolean hasStatusCodes()\n {\n return (this.statusCodes != null) && (this.statusCodes.length > 0);\n }", "public boolean isSetMaritalStatusCode()\n {\n synchronized (monitor())\n {\n c...
[ "0.67684114", "0.6653336", "0.64892006", "0.6487895", "0.64841235", "0.64778227", "0.626148", "0.62405074", "0.6231786", "0.6198495", "0.6192391", "0.6192391", "0.6192391", "0.6192391", "0.6176962", "0.61530274", "0.61075515", "0.6096171", "0.6093421", "0.6093421", "0.6085972...
0.8066898
0
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise
public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case BEER_LIST: return isSetBeerList(); case STATUS_CODE: return isSetStatusCode(); } throw new IllegalStateException(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isSetField() {\r\n return this.field != null;\r\n }", "public boolean isSetField() {\r\n return this.field != null;\r\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n ...
[ "0.79056656", "0.79056656", "0.78333884", "0.78036314", "0.77937067", "0.7780796", "0.7780796", "0.7780796", "0.7780796", "0.76468164", "0.754723", "0.75451803", "0.7542179", "0.7542179", "0.7542179", "0.7542179", "0.7542179", "0.7542179", "0.7542179", "0.7542179", "0.7542179...
0.0
-1
check for required fields
public void validate() throws org.apache.thrift.TException { if (statusCode == null) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'statusCode' was not present! Struct: " + toString()); } // check for sub-struct validity }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean validateRequiredFields(StringBuffer b){\n boolean result = true;\n\n if (!TextFieldHelper.isNumericFieldValid(this.goalValue, \" Цель: \", b) ||\n !TextFieldHelper.isNumericFieldValid(this.startWeightValue, \" Исходный вес: \", b) ||\n !TextFieldHelper.isNumericFieldVali...
[ "0.75287306", "0.7430543", "0.7430543", "0.7430543", "0.7394445", "0.73590785", "0.7280072", "0.7234574", "0.72328943", "0.72021484", "0.7163772", "0.71448237", "0.7141192", "0.7092876", "0.7075819", "0.7058885", "0.70559984", "0.70541537", "0.70536923", "0.7030236", "0.70288...
0.0
-1
OrderBookBalancingLogic Interface for the OrderBookBalancingLogic for the transactions to be carried out. This interface contains the method to convert the holdings to the models and calculate the transactions needed to be carried out.
public interface OrderBookBalancingLogic { boolean balancingByPercentage(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract void processBalances(Iterator<Balance> balances);", "public interface Transactionable {\n\n void book(String fromName, String toName, BigDecimal amount) throws NoNegativeBalanceAllowedException, NoSameAccountTransfersException;\n\n}", "private void calcBills() {\n\t\tint changeDueRemaining =...
[ "0.5348707", "0.50867754", "0.49735525", "0.4855678", "0.48266134", "0.48116654", "0.47958302", "0.47938585", "0.4785938", "0.47500485", "0.47487757", "0.47216874", "0.4713632", "0.47005612", "0.46755293", "0.46695077", "0.4658111", "0.4638636", "0.45969844", "0.45960355", "0...
0.59013724
0
TODO Autogenerated method stub
@Override public Integer addSTask(Integer taskNum, Integer studyLogId, String taskName, Integer coin) throws WEBException { try { slDao = (StudyLogDao) DaoFactory.instance(null).getDao(Constants.DAO_STUDY_LOG_INFO); stDao = (StudyTaskDao) DaoFactory.instance(null).getDao(Constants.DAO_STUDY_TASK_INFO); S...
{ "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 boolean updateCoinInfoById(Integer id, Integer newAddCoin) throws WEBException { try { stDao = (StudyTaskDao) DaoFactory.instance(null).getDao(Constants.DAO_STUDY_TASK_INFO); Session sess = HibernateUtil.currentSession(); tran = sess.beginTransaction(); StudyTaskInfo st = stDao.getEnt...
{ "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 List<StudyTaskInfo> listTaskInfoByOpt(Integer sLogId, String taskName) throws WEBException { try { stDao = (StudyTaskDao) DaoFactory.instance(null).getDao(Constants.DAO_STUDY_TASK_INFO); Session sess = HibernateUtil.currentSession(); return stDao.findInfoByOpt(sess, sLogId, taskName); ...
{ "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 StudyTaskInfo getLastInfoByLogId(Integer studyLogId) throws WEBException { try { stDao = (StudyTaskDao) DaoFactory.instance(null).getDao(Constants.DAO_STUDY_TASK_INFO); Session sess = HibernateUtil.currentSession(); return stDao.getLastInfoByLogId(sess, studyLogId); } catch (Exception ...
{ "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
Spring Data repository for the DisabilityType entity.
@SuppressWarnings("unused") @Repository public interface DisabilityTypeRepository extends JpaRepository<DisabilityType, Long>, JpaSpecificationExecutor<DisabilityType> { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Repository\r\npublic interface AccounterTypeService extends JpaRepository<AccounterType,Long>{\r\n AccounterType getByKind(String kind);\r\n}", "@SuppressWarnings(\"unused\")\n@Repository\npublic interface NonConformanceTypeRepository extends JpaRepository<NonConformanceType, Long> {\n\n}", "@SuppressWarni...
[ "0.6637392", "0.6592576", "0.6412725", "0.64112353", "0.63093174", "0.62865907", "0.6277983", "0.6213669", "0.61806047", "0.61716163", "0.6169818", "0.61526525", "0.6115947", "0.6113817", "0.60886866", "0.6087444", "0.6084608", "0.6082733", "0.60808593", "0.6060206", "0.60536...
0.75062644
0
function for password validation
public boolean validate() { String pass= et_pass.getText().toString().trim(); String confirm_pass = et_confirm_pass.getText().toString().trim(); boolean temp=true; if(!pass.equals(confirm_pass)){ Toast.makeText(JSPassword.this,"Password Not matching",Toast.LENGTH_SHORT).show(); ...
{ "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.83194774", "0.819029", "0.817129", "0.81228477", "0.8112807", "0.80340904", "0.80340904", "0.79569745", "0.79308313", "0.79308313", "0.79308313", "0.79189366", "0.79189366", "0.79189366", "0.79189366", "0.79189366", "0.79189366", "0.79189366", "0.79189366", "0.789362", "0....
0.0
-1
BankAccount bankAccount = new BankAccount();
public static void main(String[] args) { BankAccount bankAccount = new BankAccount(11211, 0, "adam smith", "abc@email.com", "9090980980"); BankAccount tim = new BankAccount("tim", "tim@email.com", "9090980980"); System.out.println("Account Number = " + tim.getAccountNumber()); System.out...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ProfileBankAccount() {\r\n }", "public BankAccount()\n {\n \t//intializing instance variables\n \t//at the time object creation constuctor executes \n \t\n \taccountHolderName=\"unknow\";\n \taccountBalance=0;\n \t\n }", "public BankAccount(int balance) {\n\n this.balan...
[ "0.82828313", "0.8007822", "0.7913524", "0.78882116", "0.7778898", "0.7730599", "0.77133834", "0.7675568", "0.7675568", "0.76637125", "0.7529822", "0.75273275", "0.7494713", "0.74915445", "0.74739033", "0.7467143", "0.74589616", "0.74131167", "0.74010366", "0.74005604", "0.73...
0.6927783
39
use the cursor to set the details
public void set_details(Cursor detail){ detail.moveToFirst(); // column indexes int idx_id = detail.getColumnIndexOrThrow("_id"); int idx_title = detail.getColumnIndexOrThrow("title"); int idx_desc = detail.getColumnIndexOrThrow("description"); int idx_due = detail.getColumnIndexOrThrow("due");...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setCursor(Cursor c) {\n\n\t}", "@Override\n public void onBind(Cursor cursor) {\n this.inspectFormViewID = cursor.getInt(cursor.getColumnIndex(COL_INSPECT_FORM_VIEW_ID));\n this.inspectFormViewNo = cursor.getInt(cursor.getColumnIndex(COL_INSPECT_FORM_VIEW_NO ));\n this.jobRequestID ...
[ "0.65676224", "0.65415794", "0.63413894", "0.6261086", "0.62299895", "0.6145822", "0.59444404", "0.5934996", "0.58672214", "0.58638746", "0.5818234", "0.5806449", "0.5799551", "0.5779997", "0.57772386", "0.57647544", "0.57628363", "0.57464135", "0.57225925", "0.56933653", "0....
0.6733179
0
User user = (User) request.getSession().getAttribute("user");
@RequestMapping("/updateResume") public void updateResume(@RequestParam("file")MultipartFile fileaot, Resume resume, Social social, Aducational aducational, HttpServletRequest request, HttpServletResponse response) { int uid = (Integer)request.getSession().getAttribute("uid"); List<Social> social3 = (List<Social>...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected User getUser(HttpSession session) {\r\n\t\t// get the user form from the session\r\n\t\treturn (User) session.getAttribute(Constants.USER_KEY);\r\n\t}", "@Override\n\tpublic UtenteBase getSessionUser() {\n\t\tUtenteBase user = (UtenteBase) getThreadLocalRequest().getSession().getAttribute(\"user\");\n\...
[ "0.7421838", "0.7331702", "0.7316157", "0.71932584", "0.7148684", "0.71363527", "0.71363527", "0.6950816", "0.69420314", "0.6900219", "0.6851415", "0.68376166", "0.6793294", "0.6793294", "0.67172617", "0.67160916", "0.66970915", "0.6681403", "0.666193", "0.6655597", "0.663624...
0.0
-1
String[] split = path.split(""); minioClient.getObject()
@Override public void fileDownLoad(HttpServletResponse response, String path) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static Object getObj(String path){\n int index = Integer.parseInt(path.substring(6).split(\"\\\\.\")[0]) % maxBufferSize;\n if (buffer[index] != null && buffer[index].getPath().equals(path)) {\n return buffer[index];\n }\n return deserialize(path);\n }", "String[]...
[ "0.54949576", "0.54014146", "0.5305074", "0.5288626", "0.52228695", "0.5167949", "0.50973994", "0.5047029", "0.50458825", "0.5022054", "0.49716818", "0.494663", "0.4932123", "0.49263373", "0.49082804", "0.48710483", "0.4842746", "0.48298737", "0.4801136", "0.47705236", "0.476...
0.0
-1
Creates new form Window
public Window() { initComponents(); SetIcon(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void createWindow();", "public void newWindow() {\n\t\tJMenuTest frame1 = new JMenuTest();\n\t\tframe1.setBounds(100, 100, 400, 400);\n\t\tframe1.setVisible(true);\n\t}", "private static void createAndShowGUI() {\n\t\tJFrame window = MainWindow.newInstance();\n\t\t\n //Display the window.\n windo...
[ "0.76198024", "0.7517328", "0.73977953", "0.7240202", "0.70983535", "0.70254546", "0.7003951", "0.6976393", "0.6953768", "0.68953913", "0.68945086", "0.6880178", "0.68609554", "0.68609554", "0.68609554", "0.68609554", "0.68609554", "0.68609554", "0.68609554", "0.6826463", "0....
0.0
-1
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() { jButton2 = new javax.swing.JButton(); jLabel1 = new javax.swing.JLabel(); jLabel2 = new javax.swing.JLabel(); jLabel3 = new ja...
{ "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.7319545", "0.7290502", "0.7290502", "0.7290502", "0.72860676", "0.7248135", "0.72132677", "0.7208833", "0.7195503", "0.71899074", "0.71839535", "0.7159182", "0.71478266", "0.7092896", "0.7081379", "0.70575553", "0.6987028", "0.69771224", "0.69548094", "0.6954804", "0.69449...
0.0
-1
Constructor for a NodeTypeImplementation
IANodeTypeImplCandidate(AbstractNodeTypeImplementation impl) { this.nodeImpl = impl; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Node(){}", "public Node() {}", "public Node() {}", "public Node() {}", "public Node() {}", "public Node(){\n\n\t\t}", "public Node() {\r\n\t}", "public Node() {\r\n\t}", "public Node() {\n\t}", "public Node() {\n }", "public Node(){\n }", "public Node(double x, double y, Node...
[ "0.6954874", "0.69016105", "0.69016105", "0.69016105", "0.69016105", "0.6857321", "0.68010265", "0.68010265", "0.6762083", "0.6735048", "0.6645813", "0.66360617", "0.66259307", "0.66203827", "0.6576276", "0.6444296", "0.6444296", "0.63344187", "0.63323325", "0.62889344", "0.6...
0.6375628
17