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 bimg = mm.readImage();
ImageHelper.printImage(mm.readImage(), "llf_test.png");
System.out.println("The number is: " + mm.readLabel());
// Make sure the cell size is correct -> 7 pixels
int cellSize = image.length / (int)Math.sqrt(cells);
System.out.println("The size of the cells are " + cellSize + " pixels");
// Check that the cell iteration is correct
for(int i = 0; i < image.length; i += cellSize) {
for(int j = 0; j < image[0].length; j += cellSize) {
String info = "Top left X: "+i+" Y: "+j+" Bottom right X: "+(i + cellSize)+" Y: "+(j + cellSize);
System.out.println(info);
double b = slope(i, j, cellSize, image);
System.out.println(b);
System.out.println("\n\n");
}
}
} | {
"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 reactorCloudFoundryClient.organizations().associateBillingManager(AssociateOrganizationBillingManagerRequest.builder().organizationId(orgId).billingManagerId(userId).build()).block();
} | {
"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();
while (rs.next()) {
datos[0] = rs.getString("idNomPer");
datos[1] = rs.getString("nombre");
datos[2] = rs.getString("dias");
if (rs.getString("estatus").equalsIgnoreCase("1")) {
datos[3] = new JLabel(new ImageIcon(getClass().getResource("/View/img/actulizadoj.png")));
} else {
datos[3] = new JLabel(new ImageIcon(getClass().getResource("/View/img/noactualizadoj.png")));
}
tabla1.addRow(datos);
}
} catch (SQLException e) {
JOptionPane.showMessageDialog(null, "Error al cargar los datos\n" + e, "ERROR", JOptionPane.ERROR_MESSAGE);
} finally {
Conexion.close(rs);
Conexion.close(stmt);
if (this.userConn == null) {
Conexion.close(conn);
}
}
} | {
"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();
columnModel.getColumn(0).setPreferredWidth(15);
columnModel.getColumn(1).setPreferredWidth(150);
columnModel.getColumn(2).setPreferredWidth(50);
columnModel.getColumn(3).setPreferredWidth(70);
} | {
"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();
jPanel1 = new javax.swing.JPanel();
btnmini = new javax.swing.JButton();
btncerrar = new javax.swing.JButton();
btnregresar = new javax.swing.JButton();
lblnombrerh = new javax.swing.JLabel();
lblcargo = new javax.swing.JLabel();
jLabel4 = new javax.swing.JLabel();
jLabel5 = new javax.swing.JLabel();
jLabel2 = new javax.swing.JLabel();
jScrollPane3 = new javax.swing.JScrollPane();
tbpercep = new javax.swing.JTable();
panelreginc = new javax.swing.JPanel();
jLabel1 = new javax.swing.JLabel();
txtnombre = new javax.swing.JTextField();
GuardarIn = new javax.swing.JButton();
txtdias = new javax.swing.JTextField();
jLabel6 = new javax.swing.JLabel();
txtBuscar = new javax.swing.JTextField();
jLabel3 = new javax.swing.JLabel();
ItemActivar.setText("Activar");
ItemActivar.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
ItemActivarActionPerformed(evt);
}
});
MenuOpciones.add(ItemActivar);
Itemdesactivar.setText("Desactivar");
Itemdesactivar.setToolTipText("");
Itemdesactivar.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
ItemdesactivarActionPerformed(evt);
}
});
MenuOpciones.add(Itemdesactivar);
setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
setUndecorated(true);
jPanel1.setBackground(new java.awt.Color(229, 230, 234));
jPanel1.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());
btnmini.setIcon(new javax.swing.ImageIcon(getClass().getResource("/View/img/minimizar.png"))); // NOI18N
btnmini.setBorderPainted(false);
btnmini.setContentAreaFilled(false);
btnmini.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
btnminiActionPerformed(evt);
}
});
jPanel1.add(btnmini, new org.netbeans.lib.awtextra.AbsoluteConstraints(540, 0, 32, 30));
btncerrar.setIcon(new javax.swing.ImageIcon(getClass().getResource("/View/img/error.png"))); // NOI18N
btncerrar.setBorderPainted(false);
btncerrar.setContentAreaFilled(false);
btncerrar.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
btncerrarActionPerformed(evt);
}
});
jPanel1.add(btncerrar, new org.netbeans.lib.awtextra.AbsoluteConstraints(620, 0, 32, 30));
btnregresar.setIcon(new javax.swing.ImageIcon(getClass().getResource("/View/img/regresar.png"))); // NOI18N
btnregresar.setBorderPainted(false);
btnregresar.setContentAreaFilled(false);
btnregresar.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
btnregresarActionPerformed(evt);
}
});
jPanel1.add(btnregresar, new org.netbeans.lib.awtextra.AbsoluteConstraints(580, 0, 32, 30));
lblnombrerh.setFont(new java.awt.Font("Century Gothic", 1, 14)); // NOI18N
lblnombrerh.setForeground(new java.awt.Color(51, 102, 255));
lblnombrerh.setBorder(javax.swing.BorderFactory.createMatteBorder(0, 0, 1, 0, new java.awt.Color(51, 102, 255)));
jPanel1.add(lblnombrerh, new org.netbeans.lib.awtextra.AbsoluteConstraints(35, 20, 250, 20));
lblcargo.setFont(new java.awt.Font("Century Gothic", 1, 14)); // NOI18N
lblcargo.setForeground(new java.awt.Color(51, 102, 255));
lblcargo.setBorder(javax.swing.BorderFactory.createMatteBorder(0, 0, 1, 0, new java.awt.Color(51, 102, 255)));
jPanel1.add(lblcargo, new org.netbeans.lib.awtextra.AbsoluteConstraints(330, 20, 210, 20));
jLabel4.setIcon(new javax.swing.ImageIcon(getClass().getResource("/View/img/user.png"))); // NOI18N
jPanel1.add(jLabel4, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 10, -1, 40));
jLabel5.setIcon(new javax.swing.ImageIcon(getClass().getResource("/View/img/portafolio.png"))); // NOI18N
jPanel1.add(jLabel5, new org.netbeans.lib.awtextra.AbsoluteConstraints(290, 10, -1, 40));
jLabel2.setFont(new java.awt.Font("Century Gothic", 1, 18)); // NOI18N
jLabel2.setForeground(new java.awt.Color(255, 255, 255));
jLabel2.setText("Registro de percepciones y deducciones");
tbpercep= new javax.swing.JTable(){
public boolean isCellEditable(int rowIndex,int conlIndex ){
return false;
}
};
tbpercep.setAutoCreateRowSorter(true);
tbpercep.setForeground(new java.awt.Color(51, 51, 51));
tbpercep.setComponentPopupMenu(MenuOpciones);
tbpercep.setDropMode(javax.swing.DropMode.INSERT_ROWS);
tbpercep.setFillsViewportHeight(true);
tbpercep.setGridColor(new java.awt.Color(255, 255, 255));
tbpercep.setInheritsPopupMenu(true);
tbpercep.setIntercellSpacing(new java.awt.Dimension(2, 2));
tbpercep.setSelectionBackground(new java.awt.Color(108, 180, 221));
tbpercep.setSelectionForeground(new java.awt.Color(0, 0, 0));
jScrollPane3.setViewportView(tbpercep);
panelreginc.setBackground(new java.awt.Color(51, 102, 255));
panelreginc.setForeground(new java.awt.Color(255, 255, 255));
jLabel1.setFont(new java.awt.Font("Century Gothic", 1, 14)); // NOI18N
jLabel1.setForeground(new java.awt.Color(255, 255, 255));
jLabel1.setText("Nombre Incidencia");
txtnombre.setBackground(new java.awt.Color(51, 102, 255));
txtnombre.setFont(new java.awt.Font("Century Gothic", 0, 14)); // NOI18N
txtnombre.setForeground(new java.awt.Color(255, 255, 255));
txtnombre.setBorder(javax.swing.BorderFactory.createMatteBorder(0, 0, 2, 0, new java.awt.Color(255, 255, 255)));
txtnombre.addKeyListener(new java.awt.event.KeyAdapter() {
public void keyReleased(java.awt.event.KeyEvent evt) {
txtnombreKeyReleased(evt);
}
});
GuardarIn.setIcon(new javax.swing.ImageIcon(getClass().getResource("/View/img/save1.png"))); // NOI18N
GuardarIn.setContentAreaFilled(false);
GuardarIn.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
GuardarInActionPerformed(evt);
}
});
txtdias.setBackground(new java.awt.Color(51, 102, 255));
txtdias.setFont(new java.awt.Font("Century Gothic", 0, 14)); // NOI18N
txtdias.setForeground(new java.awt.Color(255, 255, 255));
txtdias.setBorder(javax.swing.BorderFactory.createMatteBorder(0, 0, 2, 0, new java.awt.Color(255, 255, 255)));
txtdias.addKeyListener(new java.awt.event.KeyAdapter() {
public void keyReleased(java.awt.event.KeyEvent evt) {
txtdiasKeyReleased(evt);
}
});
jLabel6.setFont(new java.awt.Font("Century Gothic", 1, 14)); // NOI18N
jLabel6.setForeground(new java.awt.Color(255, 255, 255));
jLabel6.setText("Numero de dias");
javax.swing.GroupLayout panelregincLayout = new javax.swing.GroupLayout(panelreginc);
panelreginc.setLayout(panelregincLayout);
panelregincLayout.setHorizontalGroup(
panelregincLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(panelregincLayout.createSequentialGroup()
.addContainerGap()
.addGroup(panelregincLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(txtnombre, javax.swing.GroupLayout.PREFERRED_SIZE, 331, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGroup(panelregincLayout.createSequentialGroup()
.addGap(17, 17, 17)
.addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 151, javax.swing.GroupLayout.PREFERRED_SIZE)))
.addGap(48, 48, 48)
.addGroup(panelregincLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(txtdias, javax.swing.GroupLayout.PREFERRED_SIZE, 155, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel6))
.addGap(18, 55, Short.MAX_VALUE))
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, panelregincLayout.createSequentialGroup()
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(GuardarIn, javax.swing.GroupLayout.PREFERRED_SIZE, 43, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(27, 27, 27))
);
panelregincLayout.setVerticalGroup(
panelregincLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(panelregincLayout.createSequentialGroup()
.addContainerGap()
.addGroup(panelregincLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(panelregincLayout.createSequentialGroup()
.addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(txtnombre, javax.swing.GroupLayout.PREFERRED_SIZE, 31, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGroup(panelregincLayout.createSequentialGroup()
.addComponent(jLabel6, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(txtdias, javax.swing.GroupLayout.PREFERRED_SIZE, 31, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(18, 18, 18)
.addComponent(GuardarIn)))
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
);
txtBuscar.setBackground(new java.awt.Color(51, 102, 255));
txtBuscar.setFont(new java.awt.Font("Century Gothic", 0, 14)); // NOI18N
txtBuscar.setForeground(new java.awt.Color(255, 255, 255));
txtBuscar.setBorder(javax.swing.BorderFactory.createMatteBorder(0, 0, 2, 0, new java.awt.Color(255, 255, 255)));
txtBuscar.addKeyListener(new java.awt.event.KeyAdapter() {
public void keyReleased(java.awt.event.KeyEvent evt) {
txtBuscarKeyReleased(evt);
}
});
jLabel3.setIcon(new javax.swing.ImageIcon(getClass().getResource("/View/img/search1.png"))); // NOI18N
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
getContentPane().setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jScrollPane3)
.addGroup(layout.createSequentialGroup()
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGroup(layout.createSequentialGroup()
.addGap(10, 10, 10)
.addComponent(txtBuscar, javax.swing.GroupLayout.PREFERRED_SIZE, 260, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(0, 0, 0)
.addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGroup(layout.createSequentialGroup()
.addGap(120, 120, 120)
.addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 381, javax.swing.GroupLayout.PREFERRED_SIZE)))
.addGap(0, 0, Short.MAX_VALUE))
.addGroup(layout.createSequentialGroup()
.addGap(26, 26, 26)
.addComponent(panelreginc, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, 52, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(2, 2, 2)
.addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(panelreginc, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGap(10, 10, 10)
.addComponent(txtBuscar, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE))
.addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(jScrollPane3, javax.swing.GroupLayout.PREFERRED_SIZE, 181, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(0, 0, 0))
);
pack();
} | {
"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(UPDATED_DATE_RECEIVED)
.pubSubMessageTypeCode(PUB_SUB_TYPE_CODE)
.incidentNumber(INCIDENT_NUMBER)
.incidentHeader(INCIDENT_HEADER)
.incidentDescription(INCIDENT_DESCRIPTION)
.eventTypeCode(EVENT_TYPE_CODE)
.incidentPriorityCode(INCIDENT_PRIORITY_CODE)
.operatorName(OPERATOR_NAME)
.payload(PAYLOAD);
return genericMessagesReceived;
} | {
"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 before this thread starts processing tasks. | 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 = poolIndex + 1;
seed = p + (p << 8) + (p << 16) + (p << 24); // spread bits
} | {
"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;
return t;
}
return null;
} | {
"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;
Runnable t = q[i];
if (t != null && casSlotNull(q, i, t)) {
base = b + 1;
return t;
}
}
}
return dispatchQueue.getSourceQueue().poll();
} | {
"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))
break;
storeSp(s - 1);
return t;
}
}
return null;
} | {
"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];
int b = base;
int bf = b + oldSize;
int oldMask = oldSize - 1;
int newMask = newSize - 1;
do {
int oldIndex = b & oldMask;
Runnable t = oldQ[oldIndex];
if (t != null && !casSlotNull(oldQ, oldIndex, t))
t = null;
setSlot(newQ, b & newMask, t);
} while (++b != bf);
pool.signalWork();
} | {
"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 status by caller. Also restarts if pool events occurred since last scan, which forces refresh of threads array, in case barrier was associated with resize. This method must be both fast and quiet usually avoiding memory accesses that could disrupt cache sharing etc other than those needed to check for and take tasks. This accounts for, among other things, updating random seed in place without storing it until exit. | 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) != null && (mask = ws.length - 1) > 0) {
int idx = r;
int probes = ~mask; // use random index while negative
for (;;) {
r = xorShift(r); // update random seed
StealingThread v = ws[mask & idx];
if (v == null || v.sp == v.base) {
if (probes <= mask)
idx = (probes++ < 0) ? r : (idx + 1);
else
break;
}
else if (!tryActivate() || (t = v.deqTask()) == null)
continue outer; // restart on contention
else
break outer;
}
}
} while (pool.hasNewSyncEvent(this)); // retry on pool events
seed = r;
return t;
} | {
"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<sun.misc.Unsafe>() {
public sun.misc.Unsafe run() throws Exception {
java.lang.reflect.Field f = sun.misc
.Unsafe.class.getDeclaredField("theUnsafe");
f.setAccessible(true);
return (sun.misc.Unsafe) f.get(null);
}});
} catch (java.security.PrivilegedActionException e) {
throw new RuntimeException("Could not initialize intrinsics",
e.getCause());
}
}
} | {
"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 alljew = driver.findElement(By.xpath("//nav[@class='wh-navbar']/ul//a[contains(text(),'All Jewellery ')]"));
action.moveToElement(alljew).perform();
driver.findElement(By.xpath("//div[@class='wh-submenu-header']/following-sibling::ul//a[contains(text(),'Kadas')]")).click();
driver.findElement(By.xpath("//div[@class='inner pd-gray-bg']/div/div/a/img[@alt='The Udith Kada For Him']")).click();
String bang_size = driver.findElement(By.xpath("//select[@id='ringselect']/option[@value='04']")).getText();
System.out.println(bang_size);
driver.findElement(By.xpath("//select[@id='ringselect']/option[@value='04']")).click();
driver.findElement(By.xpath("//input[@value='Buy Now']")).click();
Thread.sleep(1000);
String bang_cartsize=driver.findElement(By.xpath("//div[@class='row line-separator']/div[2]")).getText();
String bang_cartsize1=bang_cartsize.replaceAll(":", "");
System.out.println(bang_cartsize1);
if(bang_size.equals(bang_cartsize1))
{
System.out.println("size are equal");
}
else
{
System.out.println("size are not equal");
}
} | {
"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. (of <a href="{@docRoot}/doc-files/types/xs_unsignedLong.html">xs:unsignedLong</a>)
* @param y The second value. (of <a href="{@docRoot}/doc-files/types/xs_unsignedLong.html">xs:unsignedLong</a>)
* @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_unsignedLong.html">xs:unsignedLong</a> server data type
*/
public ServerExpression add64(ServerExpression x, ServerExpression y);
/**
* AND two 64-bit integer values.
*
* <a name="ml-server-type-and64"></a>
* <p>
* Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:and64" target="mlserverdoc">xdmp:and64</a> server function.
* @param x The first value. (of <a href="{@docRoot}/doc-files/types/xs_unsignedLong.html">xs:unsignedLong</a>)
* @param y The second value. (of <a href="{@docRoot}/doc-files/types/xs_unsignedLong.html">xs:unsignedLong</a>)
* @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_unsignedLong.html">xs:unsignedLong</a> server data type
*/
public ServerExpression and64(ServerExpression x, ServerExpression y);
/**
* Converts base64-encoded string to plaintext.
*
* <a name="ml-server-type-base64-decode"></a>
* <p>
* Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:base64-decode" target="mlserverdoc">xdmp:base64-decode</a> server function.
* @param encoded Encoded text to be decoded. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)
* @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a> server data type
*/
public ServerExpression base64Decode(ServerExpression encoded);
/**
* Converts plaintext into base64-encoded string.
*
* <a name="ml-server-type-base64-encode"></a>
* <p>
* Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:base64-encode" target="mlserverdoc">xdmp:base64-encode</a> server function.
* @param plaintext Plaintext to be encoded. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)
* @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a> server data type
*/
public ServerExpression base64Encode(ServerExpression plaintext);
/**
* Returns true if a value is castable. This is similar to the "castable as" XQuery predicate, except that the type is determined at runtime.
* <p>
* Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:castable-as" target="mlserverdoc">xdmp:castable-as</a> server function.
* @param namespaceUri The namespace URI of the type. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)
* @param localName The local-name of the type. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)
* @param item The item to be cast. (of <a href="{@docRoot}/doc-files/types/item.html">item</a>)
* @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_boolean.html">xs:boolean</a> server data type
*/
public ServerExpression castableAs(ServerExpression namespaceUri, String localName, ServerExpression item);
/**
* Returns true if a value is castable. This is similar to the "castable as" XQuery predicate, except that the type is determined at runtime.
*
* <a name="ml-server-type-castable-as"></a>
* <p>
* Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:castable-as" target="mlserverdoc">xdmp:castable-as</a> server function.
* @param namespaceUri The namespace URI of the type. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)
* @param localName The local-name of the type. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)
* @param item The item to be cast. (of <a href="{@docRoot}/doc-files/types/item.html">item</a>)
* @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_boolean.html">xs:boolean</a> server data type
*/
public ServerExpression castableAs(ServerExpression namespaceUri, ServerExpression localName, ServerExpression item);
/**
* Calculates the password hash for the given password and salt.
* <p>
* Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:crypt" target="mlserverdoc">xdmp:crypt</a> server function.
* @param password String to be hashed. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)
* @param salt Salt to avoid 1:1 mapping from passwords to hashes. Only the first 8 characters of the salt are significant; any characters beyond the eighth are ignored. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)
* @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a> server data type
*/
public ServerExpression crypt(ServerExpression password, String salt);
/**
* Calculates the password hash for the given password and salt.
*
* <a name="ml-server-type-crypt"></a>
* <p>
* Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:crypt" target="mlserverdoc">xdmp:crypt</a> server function.
* @param password String to be hashed. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)
* @param salt Salt to avoid 1:1 mapping from passwords to hashes. Only the first 8 characters of the salt are significant; any characters beyond the eighth are ignored. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)
* @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a> server data type
*/
public ServerExpression crypt(ServerExpression password, ServerExpression salt);
/**
* Calculates the password hash for the given plain-text password.
*
* <a name="ml-server-type-crypt2"></a>
* <p>
* Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:crypt2" target="mlserverdoc">xdmp:crypt2</a> server function.
* @param password String to be hashed. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)
* @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a> server data type
*/
public ServerExpression crypt2(ServerExpression password);
/**
* Returns a string representing the dayname value in the localized value of arg.
*
* <a name="ml-server-type-dayname-from-date"></a>
* <p>
* Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:dayname-from-date" target="mlserverdoc">xdmp:dayname-from-date</a> server function.
* @param arg The date whose dayname value will be returned. (of <a href="{@docRoot}/doc-files/types/xs_date.html">xs:date</a>)
* @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a> server data type
*/
public ServerExpression daynameFromDate(ServerExpression arg);
/**
* Invertible function that decodes characters an NCName produced by xdmp:encode-for-NCName. Given the NCName produced by xdmp:encode-for-NCName this function returns the original string.
*
* <a name="ml-server-type-decode-from-NCName"></a>
* <p>
* Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:decode-from-NCName" target="mlserverdoc">xdmp:decode-from-NCName</a> server function.
* @param name A string representing an NCName. This string must have been the result of a previous call to xdmp:decode-from-NCName or undefined results will occur. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)
* @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a> server data type
*/
public ServerExpression decodeFromNCName(ServerExpression name);
/**
* Returns a string representing the description of a given item sequence. If you take the output of this function and evaluate it as an XQuery program, it returns the item(s) input to the function.
*
* <a name="ml-server-type-describe"></a>
* <p>
* Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:describe" target="mlserverdoc">xdmp:describe</a> server function.
* @param item The item sequence whose description is returned. (of <a href="{@docRoot}/doc-files/types/item.html">item</a>)
* @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a> server data type
*/
public ServerExpression describe(ServerExpression item);
/**
* Returns a string representing the description of a given item sequence. If you take the output of this function and evaluate it as an XQuery program, it returns the item(s) input to the function.
* <p>
* Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:describe" target="mlserverdoc">xdmp:describe</a> server function.
* @param item The item sequence whose description is returned. (of <a href="{@docRoot}/doc-files/types/item.html">item</a>)
* @param maxSequenceLength Represents the maximum number of items per sequence to print. The default is 3. () means no maximum. (of <a href="{@docRoot}/doc-files/types/xs_unsignedInt.html">xs:unsignedInt</a>)
* @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a> server data type
*/
public ServerExpression describe(ServerExpression item, ServerExpression maxSequenceLength);
/**
* Returns a string representing the description of a given item sequence. If you take the output of this function and evaluate it as an XQuery program, it returns the item(s) input to the function.
* <p>
* Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:describe" target="mlserverdoc">xdmp:describe</a> server function.
* @param item The item sequence whose description is returned. (of <a href="{@docRoot}/doc-files/types/item.html">item</a>)
* @param maxSequenceLength Represents the maximum number of items per sequence to print. The default is 3. () means no maximum. (of <a href="{@docRoot}/doc-files/types/xs_unsignedInt.html">xs:unsignedInt</a>)
* @param maxItemLength Represents the maximum number of characters per item to print. The default is 64. The minimum is 8. () means no limit. (of <a href="{@docRoot}/doc-files/types/xs_unsignedInt.html">xs:unsignedInt</a>)
* @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a> server data type
*/
public ServerExpression describe(ServerExpression item, ServerExpression maxSequenceLength, ServerExpression maxItemLength);
/**
* Returns the specified string, converting all of the characters with diacritics to characters without diacritics.
*
* <a name="ml-server-type-diacritic-less"></a>
* <p>
* Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:diacritic-less" target="mlserverdoc">xdmp:diacritic-less</a> server function.
* @param string The string to convert. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)
* @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a> server data type
*/
public ServerExpression diacriticLess(ServerExpression string);
/**
* Returns the schema-defined content-type of an element ("empty", "simple", "element-only", or "mixed").
*
* <a name="ml-server-type-element-content-type"></a>
* <p>
* Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:element-content-type" target="mlserverdoc">xdmp:element-content-type</a> server function.
* @param element An element node. (of <a href="{@docRoot}/doc-files/types/element-node.html">element-node</a>)
* @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a> server data type
*/
public ServerExpression elementContentType(ServerExpression element);
/**
* Invertible function that escapes characters required to be part of an NCName. This is useful when translating names from other representations such as JSON to XML. Given any string, the result is always a valid NCName. Providing all names are passed through this function the result is distinct NCNames so the results can be used for searching as well as name generation. The inverse function is xdmp:decode-from-NCName.
*
* <a name="ml-server-type-encode-for-NCName"></a>
* <p>
* Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:encode-for-NCName" target="mlserverdoc">xdmp:encode-for-NCName</a> server function.
* @param name A string which is used as an NCName (such as the localname for an element or attribute). (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)
* @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a> server data type
*/
public ServerExpression encodeForNCName(ServerExpression name);
/**
* Returns a formatted number value based on the picture argument. The difference between this function and the W3C standards fn:format-number function is that this function imitates the XSLT xsl:number instruction, which has richer formatting options than the fn:format-number fn:format-number function. This function can be used for spelled-out and ordinal numbering in many languages. This function is available in XSLT as well as in all dialects of XQuery and Server-Side JavaScript.
*
* <a name="ml-server-type-format-number"></a>
* <p>
* Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:format-number" target="mlserverdoc">xdmp:format-number</a> server function.
* @param value The given numeric $value that needs to be formatted. (of <a href="{@docRoot}/doc-files/types/xs_numeric.html">xs:numeric</a>)
* @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a> server data type
*/
public ServerExpression formatNumber(ServerExpression value);
/**
* Returns a formatted number value based on the picture argument. The difference between this function and the W3C standards fn:format-number function is that this function imitates the XSLT xsl:number instruction, which has richer formatting options than the fn:format-number fn:format-number function. This function can be used for spelled-out and ordinal numbering in many languages. This function is available in XSLT as well as in all dialects of XQuery and Server-Side JavaScript.
* <p>
* Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:format-number" target="mlserverdoc">xdmp:format-number</a> server function.
* @param value The given numeric $value that needs to be formatted. (of <a href="{@docRoot}/doc-files/types/xs_numeric.html">xs:numeric</a>)
* @param picture The desired string representation of the given numeric $value. The picture string is a sequence of characters, in which the characters represent variables such as, decimal-separator-sign, grouping-sign, zero-digit-sign, digit-sign, pattern-separator, percent sign and per-mille-sign. For details on the picture string, see http://www.w3.org/TR/xslt20/#date-picture-string. Unlike fn:format-number(), here the picture string allows spelled-out (uppercase, lowercase and Capitalcase) formatting. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)
* @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a> server data type
*/
public ServerExpression formatNumber(ServerExpression value, String picture);
/**
* Returns a formatted number value based on the picture argument. The difference between this function and the W3C standards fn:format-number function is that this function imitates the XSLT xsl:number instruction, which has richer formatting options than the fn:format-number fn:format-number function. This function can be used for spelled-out and ordinal numbering in many languages. This function is available in XSLT as well as in all dialects of XQuery and Server-Side JavaScript.
* <p>
* Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:format-number" target="mlserverdoc">xdmp:format-number</a> server function.
* @param value The given numeric $value that needs to be formatted. (of <a href="{@docRoot}/doc-files/types/xs_numeric.html">xs:numeric</a>)
* @param picture The desired string representation of the given numeric $value. The picture string is a sequence of characters, in which the characters represent variables such as, decimal-separator-sign, grouping-sign, zero-digit-sign, digit-sign, pattern-separator, percent sign and per-mille-sign. For details on the picture string, see http://www.w3.org/TR/xslt20/#date-picture-string. Unlike fn:format-number(), here the picture string allows spelled-out (uppercase, lowercase and Capitalcase) formatting. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)
* @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a> server data type
*/
public ServerExpression formatNumber(ServerExpression value, ServerExpression picture);
/**
* Returns a formatted number value based on the picture argument. The difference between this function and the W3C standards fn:format-number function is that this function imitates the XSLT xsl:number instruction, which has richer formatting options than the fn:format-number fn:format-number function. This function can be used for spelled-out and ordinal numbering in many languages. This function is available in XSLT as well as in all dialects of XQuery and Server-Side JavaScript.
* <p>
* Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:format-number" target="mlserverdoc">xdmp:format-number</a> server function.
* @param value The given numeric $value that needs to be formatted. (of <a href="{@docRoot}/doc-files/types/xs_numeric.html">xs:numeric</a>)
* @param picture The desired string representation of the given numeric $value. The picture string is a sequence of characters, in which the characters represent variables such as, decimal-separator-sign, grouping-sign, zero-digit-sign, digit-sign, pattern-separator, percent sign and per-mille-sign. For details on the picture string, see http://www.w3.org/TR/xslt20/#date-picture-string. Unlike fn:format-number(), here the picture string allows spelled-out (uppercase, lowercase and Capitalcase) formatting. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)
* @param language The desired language for string representation of the numeric $value. An empty sequence must be passed in even if a user doesn't want to specify this argument. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)
* @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a> server data type
*/
public ServerExpression formatNumber(ServerExpression value, String picture, String language);
/**
* Returns a formatted number value based on the picture argument. The difference between this function and the W3C standards fn:format-number function is that this function imitates the XSLT xsl:number instruction, which has richer formatting options than the fn:format-number fn:format-number function. This function can be used for spelled-out and ordinal numbering in many languages. This function is available in XSLT as well as in all dialects of XQuery and Server-Side JavaScript.
* <p>
* Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:format-number" target="mlserverdoc">xdmp:format-number</a> server function.
* @param value The given numeric $value that needs to be formatted. (of <a href="{@docRoot}/doc-files/types/xs_numeric.html">xs:numeric</a>)
* @param picture The desired string representation of the given numeric $value. The picture string is a sequence of characters, in which the characters represent variables such as, decimal-separator-sign, grouping-sign, zero-digit-sign, digit-sign, pattern-separator, percent sign and per-mille-sign. For details on the picture string, see http://www.w3.org/TR/xslt20/#date-picture-string. Unlike fn:format-number(), here the picture string allows spelled-out (uppercase, lowercase and Capitalcase) formatting. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)
* @param language The desired language for string representation of the numeric $value. An empty sequence must be passed in even if a user doesn't want to specify this argument. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)
* @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a> server data type
*/
public ServerExpression formatNumber(ServerExpression value, ServerExpression picture, ServerExpression language);
/**
* Returns a formatted number value based on the picture argument. The difference between this function and the W3C standards fn:format-number function is that this function imitates the XSLT xsl:number instruction, which has richer formatting options than the fn:format-number fn:format-number function. This function can be used for spelled-out and ordinal numbering in many languages. This function is available in XSLT as well as in all dialects of XQuery and Server-Side JavaScript.
* <p>
* Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:format-number" target="mlserverdoc">xdmp:format-number</a> server function.
* @param value The given numeric $value that needs to be formatted. (of <a href="{@docRoot}/doc-files/types/xs_numeric.html">xs:numeric</a>)
* @param picture The desired string representation of the given numeric $value. The picture string is a sequence of characters, in which the characters represent variables such as, decimal-separator-sign, grouping-sign, zero-digit-sign, digit-sign, pattern-separator, percent sign and per-mille-sign. For details on the picture string, see http://www.w3.org/TR/xslt20/#date-picture-string. Unlike fn:format-number(), here the picture string allows spelled-out (uppercase, lowercase and Capitalcase) formatting. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)
* @param language The desired language for string representation of the numeric $value. An empty sequence must be passed in even if a user doesn't want to specify this argument. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)
* @param letterValue Same as letter-value attribute in xsl:number. This argument is ignored during formatting as of now. It may be used in future. An empty sequence must be passed in even if a user doesn't want to specify this argument. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)
* @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a> server data type
*/
public ServerExpression formatNumber(ServerExpression value, String picture, String language, String letterValue);
/**
* Returns a formatted number value based on the picture argument. The difference between this function and the W3C standards fn:format-number function is that this function imitates the XSLT xsl:number instruction, which has richer formatting options than the fn:format-number fn:format-number function. This function can be used for spelled-out and ordinal numbering in many languages. This function is available in XSLT as well as in all dialects of XQuery and Server-Side JavaScript.
* <p>
* Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:format-number" target="mlserverdoc">xdmp:format-number</a> server function.
* @param value The given numeric $value that needs to be formatted. (of <a href="{@docRoot}/doc-files/types/xs_numeric.html">xs:numeric</a>)
* @param picture The desired string representation of the given numeric $value. The picture string is a sequence of characters, in which the characters represent variables such as, decimal-separator-sign, grouping-sign, zero-digit-sign, digit-sign, pattern-separator, percent sign and per-mille-sign. For details on the picture string, see http://www.w3.org/TR/xslt20/#date-picture-string. Unlike fn:format-number(), here the picture string allows spelled-out (uppercase, lowercase and Capitalcase) formatting. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)
* @param language The desired language for string representation of the numeric $value. An empty sequence must be passed in even if a user doesn't want to specify this argument. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)
* @param letterValue Same as letter-value attribute in xsl:number. This argument is ignored during formatting as of now. It may be used in future. An empty sequence must be passed in even if a user doesn't want to specify this argument. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)
* @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a> server data type
*/
public ServerExpression formatNumber(ServerExpression value, ServerExpression picture, ServerExpression language, ServerExpression letterValue);
/**
* Returns a formatted number value based on the picture argument. The difference between this function and the W3C standards fn:format-number function is that this function imitates the XSLT xsl:number instruction, which has richer formatting options than the fn:format-number fn:format-number function. This function can be used for spelled-out and ordinal numbering in many languages. This function is available in XSLT as well as in all dialects of XQuery and Server-Side JavaScript.
* <p>
* Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:format-number" target="mlserverdoc">xdmp:format-number</a> server function.
* @param value The given numeric $value that needs to be formatted. (of <a href="{@docRoot}/doc-files/types/xs_numeric.html">xs:numeric</a>)
* @param picture The desired string representation of the given numeric $value. The picture string is a sequence of characters, in which the characters represent variables such as, decimal-separator-sign, grouping-sign, zero-digit-sign, digit-sign, pattern-separator, percent sign and per-mille-sign. For details on the picture string, see http://www.w3.org/TR/xslt20/#date-picture-string. Unlike fn:format-number(), here the picture string allows spelled-out (uppercase, lowercase and Capitalcase) formatting. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)
* @param language The desired language for string representation of the numeric $value. An empty sequence must be passed in even if a user doesn't want to specify this argument. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)
* @param letterValue Same as letter-value attribute in xsl:number. This argument is ignored during formatting as of now. It may be used in future. An empty sequence must be passed in even if a user doesn't want to specify this argument. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)
* @param ordchar If $ordchar is "yes" then ordinal numbering is attempted. If this is any other string, including an empty string, then cardinal numbering is generated. An empty sequence must be passed in even if a user doesn't want to specify this argument. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)
* @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a> server data type
*/
public ServerExpression formatNumber(ServerExpression value, String picture, String language, String letterValue, String ordchar);
/**
* Returns a formatted number value based on the picture argument. The difference between this function and the W3C standards fn:format-number function is that this function imitates the XSLT xsl:number instruction, which has richer formatting options than the fn:format-number fn:format-number function. This function can be used for spelled-out and ordinal numbering in many languages. This function is available in XSLT as well as in all dialects of XQuery and Server-Side JavaScript.
* <p>
* Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:format-number" target="mlserverdoc">xdmp:format-number</a> server function.
* @param value The given numeric $value that needs to be formatted. (of <a href="{@docRoot}/doc-files/types/xs_numeric.html">xs:numeric</a>)
* @param picture The desired string representation of the given numeric $value. The picture string is a sequence of characters, in which the characters represent variables such as, decimal-separator-sign, grouping-sign, zero-digit-sign, digit-sign, pattern-separator, percent sign and per-mille-sign. For details on the picture string, see http://www.w3.org/TR/xslt20/#date-picture-string. Unlike fn:format-number(), here the picture string allows spelled-out (uppercase, lowercase and Capitalcase) formatting. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)
* @param language The desired language for string representation of the numeric $value. An empty sequence must be passed in even if a user doesn't want to specify this argument. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)
* @param letterValue Same as letter-value attribute in xsl:number. This argument is ignored during formatting as of now. It may be used in future. An empty sequence must be passed in even if a user doesn't want to specify this argument. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)
* @param ordchar If $ordchar is "yes" then ordinal numbering is attempted. If this is any other string, including an empty string, then cardinal numbering is generated. An empty sequence must be passed in even if a user doesn't want to specify this argument. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)
* @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a> server data type
*/
public ServerExpression formatNumber(ServerExpression value, ServerExpression picture, ServerExpression language, ServerExpression letterValue, ServerExpression ordchar);
/**
* Returns a formatted number value based on the picture argument. The difference between this function and the W3C standards fn:format-number function is that this function imitates the XSLT xsl:number instruction, which has richer formatting options than the fn:format-number fn:format-number function. This function can be used for spelled-out and ordinal numbering in many languages. This function is available in XSLT as well as in all dialects of XQuery and Server-Side JavaScript.
* <p>
* Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:format-number" target="mlserverdoc">xdmp:format-number</a> server function.
* @param value The given numeric $value that needs to be formatted. (of <a href="{@docRoot}/doc-files/types/xs_numeric.html">xs:numeric</a>)
* @param picture The desired string representation of the given numeric $value. The picture string is a sequence of characters, in which the characters represent variables such as, decimal-separator-sign, grouping-sign, zero-digit-sign, digit-sign, pattern-separator, percent sign and per-mille-sign. For details on the picture string, see http://www.w3.org/TR/xslt20/#date-picture-string. Unlike fn:format-number(), here the picture string allows spelled-out (uppercase, lowercase and Capitalcase) formatting. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)
* @param language The desired language for string representation of the numeric $value. An empty sequence must be passed in even if a user doesn't want to specify this argument. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)
* @param letterValue Same as letter-value attribute in xsl:number. This argument is ignored during formatting as of now. It may be used in future. An empty sequence must be passed in even if a user doesn't want to specify this argument. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)
* @param ordchar If $ordchar is "yes" then ordinal numbering is attempted. If this is any other string, including an empty string, then cardinal numbering is generated. An empty sequence must be passed in even if a user doesn't want to specify this argument. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)
* @param zeroPadding Value of $zero-padding is used to pad integer part of a number on the left and fractional part on the right, if needed. An empty sequence must be passed in even if a user doesn't want to specify this argument. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)
* @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a> server data type
*/
public ServerExpression formatNumber(ServerExpression value, String picture, String language, String letterValue, String ordchar, String zeroPadding);
/**
* Returns a formatted number value based on the picture argument. The difference between this function and the W3C standards fn:format-number function is that this function imitates the XSLT xsl:number instruction, which has richer formatting options than the fn:format-number fn:format-number function. This function can be used for spelled-out and ordinal numbering in many languages. This function is available in XSLT as well as in all dialects of XQuery and Server-Side JavaScript.
* <p>
* Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:format-number" target="mlserverdoc">xdmp:format-number</a> server function.
* @param value The given numeric $value that needs to be formatted. (of <a href="{@docRoot}/doc-files/types/xs_numeric.html">xs:numeric</a>)
* @param picture The desired string representation of the given numeric $value. The picture string is a sequence of characters, in which the characters represent variables such as, decimal-separator-sign, grouping-sign, zero-digit-sign, digit-sign, pattern-separator, percent sign and per-mille-sign. For details on the picture string, see http://www.w3.org/TR/xslt20/#date-picture-string. Unlike fn:format-number(), here the picture string allows spelled-out (uppercase, lowercase and Capitalcase) formatting. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)
* @param language The desired language for string representation of the numeric $value. An empty sequence must be passed in even if a user doesn't want to specify this argument. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)
* @param letterValue Same as letter-value attribute in xsl:number. This argument is ignored during formatting as of now. It may be used in future. An empty sequence must be passed in even if a user doesn't want to specify this argument. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)
* @param ordchar If $ordchar is "yes" then ordinal numbering is attempted. If this is any other string, including an empty string, then cardinal numbering is generated. An empty sequence must be passed in even if a user doesn't want to specify this argument. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)
* @param zeroPadding Value of $zero-padding is used to pad integer part of a number on the left and fractional part on the right, if needed. An empty sequence must be passed in even if a user doesn't want to specify this argument. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)
* @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a> server data type
*/
public ServerExpression formatNumber(ServerExpression value, ServerExpression picture, ServerExpression language, ServerExpression letterValue, ServerExpression ordchar, ServerExpression zeroPadding);
/**
* Returns a formatted number value based on the picture argument. The difference between this function and the W3C standards fn:format-number function is that this function imitates the XSLT xsl:number instruction, which has richer formatting options than the fn:format-number fn:format-number function. This function can be used for spelled-out and ordinal numbering in many languages. This function is available in XSLT as well as in all dialects of XQuery and Server-Side JavaScript.
* <p>
* Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:format-number" target="mlserverdoc">xdmp:format-number</a> server function.
* @param value The given numeric $value that needs to be formatted. (of <a href="{@docRoot}/doc-files/types/xs_numeric.html">xs:numeric</a>)
* @param picture The desired string representation of the given numeric $value. The picture string is a sequence of characters, in which the characters represent variables such as, decimal-separator-sign, grouping-sign, zero-digit-sign, digit-sign, pattern-separator, percent sign and per-mille-sign. For details on the picture string, see http://www.w3.org/TR/xslt20/#date-picture-string. Unlike fn:format-number(), here the picture string allows spelled-out (uppercase, lowercase and Capitalcase) formatting. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)
* @param language The desired language for string representation of the numeric $value. An empty sequence must be passed in even if a user doesn't want to specify this argument. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)
* @param letterValue Same as letter-value attribute in xsl:number. This argument is ignored during formatting as of now. It may be used in future. An empty sequence must be passed in even if a user doesn't want to specify this argument. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)
* @param ordchar If $ordchar is "yes" then ordinal numbering is attempted. If this is any other string, including an empty string, then cardinal numbering is generated. An empty sequence must be passed in even if a user doesn't want to specify this argument. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)
* @param zeroPadding Value of $zero-padding is used to pad integer part of a number on the left and fractional part on the right, if needed. An empty sequence must be passed in even if a user doesn't want to specify this argument. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)
* @param groupingSeparator Value of $grouping-separator is a character, used to groups of digits, especially useful in making long sequence of digits more readable. For example, 10,000,000- here "," is used as a separator after each group of three digits. An empty sequence must be passed in even if a user doesn't want to specify this argument. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)
* @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a> server data type
*/
public ServerExpression formatNumber(ServerExpression value, String picture, String language, String letterValue, String ordchar, String zeroPadding, String groupingSeparator);
/**
* Returns a formatted number value based on the picture argument. The difference between this function and the W3C standards fn:format-number function is that this function imitates the XSLT xsl:number instruction, which has richer formatting options than the fn:format-number fn:format-number function. This function can be used for spelled-out and ordinal numbering in many languages. This function is available in XSLT as well as in all dialects of XQuery and Server-Side JavaScript.
* <p>
* Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:format-number" target="mlserverdoc">xdmp:format-number</a> server function.
* @param value The given numeric $value that needs to be formatted. (of <a href="{@docRoot}/doc-files/types/xs_numeric.html">xs:numeric</a>)
* @param picture The desired string representation of the given numeric $value. The picture string is a sequence of characters, in which the characters represent variables such as, decimal-separator-sign, grouping-sign, zero-digit-sign, digit-sign, pattern-separator, percent sign and per-mille-sign. For details on the picture string, see http://www.w3.org/TR/xslt20/#date-picture-string. Unlike fn:format-number(), here the picture string allows spelled-out (uppercase, lowercase and Capitalcase) formatting. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)
* @param language The desired language for string representation of the numeric $value. An empty sequence must be passed in even if a user doesn't want to specify this argument. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)
* @param letterValue Same as letter-value attribute in xsl:number. This argument is ignored during formatting as of now. It may be used in future. An empty sequence must be passed in even if a user doesn't want to specify this argument. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)
* @param ordchar If $ordchar is "yes" then ordinal numbering is attempted. If this is any other string, including an empty string, then cardinal numbering is generated. An empty sequence must be passed in even if a user doesn't want to specify this argument. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)
* @param zeroPadding Value of $zero-padding is used to pad integer part of a number on the left and fractional part on the right, if needed. An empty sequence must be passed in even if a user doesn't want to specify this argument. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)
* @param groupingSeparator Value of $grouping-separator is a character, used to groups of digits, especially useful in making long sequence of digits more readable. For example, 10,000,000- here "," is used as a separator after each group of three digits. An empty sequence must be passed in even if a user doesn't want to specify this argument. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)
* @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a> server data type
*/
public ServerExpression formatNumber(ServerExpression value, ServerExpression picture, ServerExpression language, ServerExpression letterValue, ServerExpression ordchar, ServerExpression zeroPadding, ServerExpression groupingSeparator);
/**
* Returns a formatted number value based on the picture argument. The difference between this function and the W3C standards fn:format-number function is that this function imitates the XSLT xsl:number instruction, which has richer formatting options than the fn:format-number fn:format-number function. This function can be used for spelled-out and ordinal numbering in many languages. This function is available in XSLT as well as in all dialects of XQuery and Server-Side JavaScript.
* <p>
* Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:format-number" target="mlserverdoc">xdmp:format-number</a> server function.
* @param value The given numeric $value that needs to be formatted. (of <a href="{@docRoot}/doc-files/types/xs_numeric.html">xs:numeric</a>)
* @param picture The desired string representation of the given numeric $value. The picture string is a sequence of characters, in which the characters represent variables such as, decimal-separator-sign, grouping-sign, zero-digit-sign, digit-sign, pattern-separator, percent sign and per-mille-sign. For details on the picture string, see http://www.w3.org/TR/xslt20/#date-picture-string. Unlike fn:format-number(), here the picture string allows spelled-out (uppercase, lowercase and Capitalcase) formatting. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)
* @param language The desired language for string representation of the numeric $value. An empty sequence must be passed in even if a user doesn't want to specify this argument. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)
* @param letterValue Same as letter-value attribute in xsl:number. This argument is ignored during formatting as of now. It may be used in future. An empty sequence must be passed in even if a user doesn't want to specify this argument. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)
* @param ordchar If $ordchar is "yes" then ordinal numbering is attempted. If this is any other string, including an empty string, then cardinal numbering is generated. An empty sequence must be passed in even if a user doesn't want to specify this argument. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)
* @param zeroPadding Value of $zero-padding is used to pad integer part of a number on the left and fractional part on the right, if needed. An empty sequence must be passed in even if a user doesn't want to specify this argument. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)
* @param groupingSeparator Value of $grouping-separator is a character, used to groups of digits, especially useful in making long sequence of digits more readable. For example, 10,000,000- here "," is used as a separator after each group of three digits. An empty sequence must be passed in even if a user doesn't want to specify this argument. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)
* @param groupingSize Represents size of the group, i.e. the number of digits before after which grouping separator is inserted. An empty sequence must be passed in even if a user doesn't want to specify this argument. (of <a href="{@docRoot}/doc-files/types/xs_integer.html">xs:integer</a>)
* @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a> server data type
*/
public ServerExpression formatNumber(ServerExpression value, String picture, String language, String letterValue, String ordchar, String zeroPadding, String groupingSeparator, long groupingSize);
/**
* Returns a formatted number value based on the picture argument. The difference between this function and the W3C standards fn:format-number function is that this function imitates the XSLT xsl:number instruction, which has richer formatting options than the fn:format-number fn:format-number function. This function can be used for spelled-out and ordinal numbering in many languages. This function is available in XSLT as well as in all dialects of XQuery and Server-Side JavaScript.
* <p>
* Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:format-number" target="mlserverdoc">xdmp:format-number</a> server function.
* @param value The given numeric $value that needs to be formatted. (of <a href="{@docRoot}/doc-files/types/xs_numeric.html">xs:numeric</a>)
* @param picture The desired string representation of the given numeric $value. The picture string is a sequence of characters, in which the characters represent variables such as, decimal-separator-sign, grouping-sign, zero-digit-sign, digit-sign, pattern-separator, percent sign and per-mille-sign. For details on the picture string, see http://www.w3.org/TR/xslt20/#date-picture-string. Unlike fn:format-number(), here the picture string allows spelled-out (uppercase, lowercase and Capitalcase) formatting. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)
* @param language The desired language for string representation of the numeric $value. An empty sequence must be passed in even if a user doesn't want to specify this argument. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)
* @param letterValue Same as letter-value attribute in xsl:number. This argument is ignored during formatting as of now. It may be used in future. An empty sequence must be passed in even if a user doesn't want to specify this argument. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)
* @param ordchar If $ordchar is "yes" then ordinal numbering is attempted. If this is any other string, including an empty string, then cardinal numbering is generated. An empty sequence must be passed in even if a user doesn't want to specify this argument. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)
* @param zeroPadding Value of $zero-padding is used to pad integer part of a number on the left and fractional part on the right, if needed. An empty sequence must be passed in even if a user doesn't want to specify this argument. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)
* @param groupingSeparator Value of $grouping-separator is a character, used to groups of digits, especially useful in making long sequence of digits more readable. For example, 10,000,000- here "," is used as a separator after each group of three digits. An empty sequence must be passed in even if a user doesn't want to specify this argument. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)
* @param groupingSize Represents size of the group, i.e. the number of digits before after which grouping separator is inserted. An empty sequence must be passed in even if a user doesn't want to specify this argument. (of <a href="{@docRoot}/doc-files/types/xs_integer.html">xs:integer</a>)
* @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a> server data type
*/
public ServerExpression formatNumber(ServerExpression value, ServerExpression picture, ServerExpression language, ServerExpression letterValue, ServerExpression ordchar, ServerExpression zeroPadding, ServerExpression groupingSeparator, ServerExpression groupingSize);
/**
* Atomizes a JSON node, returning a JSON value.
*
* <a name="ml-server-type-from-json"></a>
* <p>
* Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:from-json" target="mlserverdoc">xdmp:from-json</a> server function.
* @param arg A node of kind object-node(), array-node(), text(), number-node(), boolean-node(), null-node(), or document-node(). (of <a href="{@docRoot}/doc-files/types/node.html">node</a>)
* @return a server expression with the <a href="{@docRoot}/doc-files/types/item.html">item</a> server data type
*/
public ServerExpression fromJson(ServerExpression arg);
/**
* Returns the name of the current user.
*
* <a name="ml-server-type-get-current-user"></a>
* <p>
* Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:get-current-user" target="mlserverdoc">xdmp:get-current-user</a> server function.
* @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a> server data type
*/
public ServerExpression getCurrentUser();
/**
* Returns the 32-bit hash of a string.
*
* <a name="ml-server-type-hash32"></a>
* <p>
* Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:hash32" target="mlserverdoc">xdmp:hash32</a> server function.
* @param string The string to be hashed. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)
* @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_unsignedInt.html">xs:unsignedInt</a> server data type
*/
public ServerExpression hash32(ServerExpression string);
/**
* Returns the 64-bit hash of a string.
*
* <a name="ml-server-type-hash64"></a>
* <p>
* Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:hash64" target="mlserverdoc">xdmp:hash64</a> server function.
* @param string The string to be hashed. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)
* @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_unsignedLong.html">xs:unsignedLong</a> server data type
*/
public ServerExpression hash64(ServerExpression string);
/**
* Parses a hexadecimal string, returning an integer.
*
* <a name="ml-server-type-hex-to-integer"></a>
* <p>
* Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:hex-to-integer" target="mlserverdoc">xdmp:hex-to-integer</a> server function.
* @param hex The hexadecimal string. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)
* @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_integer.html">xs:integer</a> server data type
*/
public ServerExpression hexToInteger(ServerExpression hex);
/**
* Calculates the Hash-based Message Authentication Code (HMAC) using the md5 hash function of the given secret key and message arguments.
*
* <a name="ml-server-type-hmac-md5"></a>
* <p>
* Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:hmac-md5" target="mlserverdoc">xdmp:hmac-md5</a> server function.
* @param secretkey The secret key. Must be xs:string or a binary node. (of <a href="{@docRoot}/doc-files/types/item.html">item</a>)
* @param message Message to be authenticated. Must be xs:string or a binary node. (of <a href="{@docRoot}/doc-files/types/item.html">item</a>)
* @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a> server data type
*/
public ServerExpression hmacMd5(ServerExpression secretkey, ServerExpression message);
/**
* Calculates the Hash-based Message Authentication Code (HMAC) using the md5 hash function of the given secret key and message arguments.
* <p>
* Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:hmac-md5" target="mlserverdoc">xdmp:hmac-md5</a> server function.
* @param secretkey The secret key. Must be xs:string or a binary node. (of <a href="{@docRoot}/doc-files/types/item.html">item</a>)
* @param message Message to be authenticated. Must be xs:string or a binary node. (of <a href="{@docRoot}/doc-files/types/item.html">item</a>)
* @param encoding Encoding format for the output string, must be "hex" for hexadecimal or "base64". Default is "hex". (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)
* @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a> server data type
*/
public ServerExpression hmacMd5(ServerExpression secretkey, ServerExpression message, String encoding);
/**
* Calculates the Hash-based Message Authentication Code (HMAC) using the md5 hash function of the given secret key and message arguments.
* <p>
* Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:hmac-md5" target="mlserverdoc">xdmp:hmac-md5</a> server function.
* @param secretkey The secret key. Must be xs:string or a binary node. (of <a href="{@docRoot}/doc-files/types/item.html">item</a>)
* @param message Message to be authenticated. Must be xs:string or a binary node. (of <a href="{@docRoot}/doc-files/types/item.html">item</a>)
* @param encoding Encoding format for the output string, must be "hex" for hexadecimal or "base64". Default is "hex". (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)
* @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a> server data type
*/
public ServerExpression hmacMd5(ServerExpression secretkey, ServerExpression message, ServerExpression encoding);
/**
* Calculates the Hash-based Message Authentication Code (HMAC) using the SHA1 hash function of the given secret key and message arguments.
*
* <a name="ml-server-type-hmac-sha1"></a>
* <p>
* Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:hmac-sha1" target="mlserverdoc">xdmp:hmac-sha1</a> server function.
* @param secretkey The secret key. Must be xs:string or a binary node. (of <a href="{@docRoot}/doc-files/types/item.html">item</a>)
* @param message Message to be authenticated. Must be xs:string or a binary node. (of <a href="{@docRoot}/doc-files/types/item.html">item</a>)
* @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a> server data type
*/
public ServerExpression hmacSha1(ServerExpression secretkey, ServerExpression message);
/**
* Calculates the Hash-based Message Authentication Code (HMAC) using the SHA1 hash function of the given secret key and message arguments.
* <p>
* Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:hmac-sha1" target="mlserverdoc">xdmp:hmac-sha1</a> server function.
* @param secretkey The secret key. Must be xs:string or a binary node. (of <a href="{@docRoot}/doc-files/types/item.html">item</a>)
* @param message Message to be authenticated. Must be xs:string or a binary node. (of <a href="{@docRoot}/doc-files/types/item.html">item</a>)
* @param encoding Encoding format for the output string, must be "hex" for hexadecimal or "base64". Default is "hex". (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)
* @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a> server data type
*/
public ServerExpression hmacSha1(ServerExpression secretkey, ServerExpression message, String encoding);
/**
* Calculates the Hash-based Message Authentication Code (HMAC) using the SHA1 hash function of the given secret key and message arguments.
* <p>
* Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:hmac-sha1" target="mlserverdoc">xdmp:hmac-sha1</a> server function.
* @param secretkey The secret key. Must be xs:string or a binary node. (of <a href="{@docRoot}/doc-files/types/item.html">item</a>)
* @param message Message to be authenticated. Must be xs:string or a binary node. (of <a href="{@docRoot}/doc-files/types/item.html">item</a>)
* @param encoding Encoding format for the output string, must be "hex" for hexadecimal or "base64". Default is "hex". (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)
* @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a> server data type
*/
public ServerExpression hmacSha1(ServerExpression secretkey, ServerExpression message, ServerExpression encoding);
/**
* Calculates the Hash-based Message Authentication Code (HMAC) using the SHA256 hash function of the given secret key and message arguments.
*
* <a name="ml-server-type-hmac-sha256"></a>
* <p>
* Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:hmac-sha256" target="mlserverdoc">xdmp:hmac-sha256</a> server function.
* @param secretkey The secret key. Must be xs:string or a binary node. (of <a href="{@docRoot}/doc-files/types/item.html">item</a>)
* @param message Message to be authenticated. Must be xs:string or a binary node. (of <a href="{@docRoot}/doc-files/types/item.html">item</a>)
* @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a> server data type
*/
public ServerExpression hmacSha256(ServerExpression secretkey, ServerExpression message);
/**
* Calculates the Hash-based Message Authentication Code (HMAC) using the SHA256 hash function of the given secret key and message arguments.
* <p>
* Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:hmac-sha256" target="mlserverdoc">xdmp:hmac-sha256</a> server function.
* @param secretkey The secret key. Must be xs:string or a binary node. (of <a href="{@docRoot}/doc-files/types/item.html">item</a>)
* @param message Message to be authenticated. Must be xs:string or a binary node. (of <a href="{@docRoot}/doc-files/types/item.html">item</a>)
* @param encoding Encoding format for the output string, must be "hex" for hexadecimal or "base64". Default is "hex". (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)
* @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a> server data type
*/
public ServerExpression hmacSha256(ServerExpression secretkey, ServerExpression message, String encoding);
/**
* Calculates the Hash-based Message Authentication Code (HMAC) using the SHA256 hash function of the given secret key and message arguments.
* <p>
* Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:hmac-sha256" target="mlserverdoc">xdmp:hmac-sha256</a> server function.
* @param secretkey The secret key. Must be xs:string or a binary node. (of <a href="{@docRoot}/doc-files/types/item.html">item</a>)
* @param message Message to be authenticated. Must be xs:string or a binary node. (of <a href="{@docRoot}/doc-files/types/item.html">item</a>)
* @param encoding Encoding format for the output string, must be "hex" for hexadecimal or "base64". Default is "hex". (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)
* @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a> server data type
*/
public ServerExpression hmacSha256(ServerExpression secretkey, ServerExpression message, ServerExpression encoding);
/**
* Calculates the Hash-based Message Authentication Code (HMAC) using the SHA512 hash function of the given secret key and message arguments.
*
* <a name="ml-server-type-hmac-sha512"></a>
* <p>
* Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:hmac-sha512" target="mlserverdoc">xdmp:hmac-sha512</a> server function.
* @param secretkey The secret key. Must be xs:string or a binary node. (of <a href="{@docRoot}/doc-files/types/item.html">item</a>)
* @param message Message to be authenticated. Must be xs:string or a binary node. (of <a href="{@docRoot}/doc-files/types/item.html">item</a>)
* @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a> server data type
*/
public ServerExpression hmacSha512(ServerExpression secretkey, ServerExpression message);
/**
* Calculates the Hash-based Message Authentication Code (HMAC) using the SHA512 hash function of the given secret key and message arguments.
* <p>
* Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:hmac-sha512" target="mlserverdoc">xdmp:hmac-sha512</a> server function.
* @param secretkey The secret key. Must be xs:string or a binary node. (of <a href="{@docRoot}/doc-files/types/item.html">item</a>)
* @param message Message to be authenticated. Must be xs:string or a binary node. (of <a href="{@docRoot}/doc-files/types/item.html">item</a>)
* @param encoding Encoding format for the output string, must be "hex" for hexadecimal or "base64". Default is "hex". (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)
* @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a> server data type
*/
public ServerExpression hmacSha512(ServerExpression secretkey, ServerExpression message, String encoding);
/**
* Calculates the Hash-based Message Authentication Code (HMAC) using the SHA512 hash function of the given secret key and message arguments.
* <p>
* Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:hmac-sha512" target="mlserverdoc">xdmp:hmac-sha512</a> server function.
* @param secretkey The secret key. Must be xs:string or a binary node. (of <a href="{@docRoot}/doc-files/types/item.html">item</a>)
* @param message Message to be authenticated. Must be xs:string or a binary node. (of <a href="{@docRoot}/doc-files/types/item.html">item</a>)
* @param encoding Encoding format for the output string, must be "hex" for hexadecimal or "base64". Default is "hex". (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)
* @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a> server data type
*/
public ServerExpression hmacSha512(ServerExpression secretkey, ServerExpression message, ServerExpression encoding);
/**
* Returns the string where the first letter of each token has been uppercased.
*
* <a name="ml-server-type-initcap"></a>
* <p>
* Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:initcap" target="mlserverdoc">xdmp:initcap</a> server function.
* @param string The string to modify. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)
* @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a> server data type
*/
public ServerExpression initcap(ServerExpression string);
/**
* Returns a hexadecimal representation of an integer.
*
* <a name="ml-server-type-integer-to-hex"></a>
* <p>
* Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:integer-to-hex" target="mlserverdoc">xdmp:integer-to-hex</a> server function.
* @param val The integer value. (of <a href="{@docRoot}/doc-files/types/xs_integer.html">xs:integer</a>)
* @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a> server data type
*/
public ServerExpression integerToHex(ServerExpression val);
/**
* Returns an octal representation of an integer.
*
* <a name="ml-server-type-integer-to-octal"></a>
* <p>
* Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:integer-to-octal" target="mlserverdoc">xdmp:integer-to-octal</a> server function.
* @param val The integer value. (of <a href="{@docRoot}/doc-files/types/xs_integer.html">xs:integer</a>)
* @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a> server data type
*/
public ServerExpression integerToOctal(ServerExpression val);
/**
* Construct a context-independent string from a QName. This string is of the form "{namespaceURI}localname" and is suitable for use as a map key.
*
* <a name="ml-server-type-key-from-QName"></a>
* <p>
* Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:key-from-QName" target="mlserverdoc">xdmp:key-from-QName</a> server function.
* @param name The QName to compute a key for. (of <a href="{@docRoot}/doc-files/types/xs_QName.html">xs:QName</a>)
* @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a> server data type
*/
public ServerExpression keyFromQName(ServerExpression name);
/**
* Left-shift a 64-bit integer value.
* <p>
* Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:lshift64" target="mlserverdoc">xdmp:lshift64</a> server function.
* @param x The value to shift. (of <a href="{@docRoot}/doc-files/types/xs_unsignedLong.html">xs:unsignedLong</a>)
* @param y The left shift to perform. This value may be negative. (of <a href="{@docRoot}/doc-files/types/xs_long.html">xs:long</a>)
* @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_unsignedLong.html">xs:unsignedLong</a> server data type
*/
public ServerExpression lshift64(ServerExpression x, long y);
/**
* Left-shift a 64-bit integer value.
*
* <a name="ml-server-type-lshift64"></a>
* <p>
* Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:lshift64" target="mlserverdoc">xdmp:lshift64</a> server function.
* @param x The value to shift. (of <a href="{@docRoot}/doc-files/types/xs_unsignedLong.html">xs:unsignedLong</a>)
* @param y The left shift to perform. This value may be negative. (of <a href="{@docRoot}/doc-files/types/xs_long.html">xs:long</a>)
* @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_unsignedLong.html">xs:unsignedLong</a> server data type
*/
public ServerExpression lshift64(ServerExpression x, ServerExpression y);
/**
* Calculates the md5 hash of the given argument.
*
* <a name="ml-server-type-md5"></a>
* <p>
* Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:md5" target="mlserverdoc">xdmp:md5</a> server function.
* @param data Data to be hashed. Must be xs:string or a binary node. (of <a href="{@docRoot}/doc-files/types/item.html">item</a>)
* @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a> server data type
*/
public ServerExpression md5(ServerExpression data);
/**
* Calculates the md5 hash of the given argument.
* <p>
* Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:md5" target="mlserverdoc">xdmp:md5</a> server function.
* @param data Data to be hashed. Must be xs:string or a binary node. (of <a href="{@docRoot}/doc-files/types/item.html">item</a>)
* @param encoding Encoding format for the output string, must be "hex" for hexadecimal or "base64". Default is "hex". (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)
* @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a> server data type
*/
public ServerExpression md5(ServerExpression data, String encoding);
/**
* Calculates the md5 hash of the given argument.
* <p>
* Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:md5" target="mlserverdoc">xdmp:md5</a> server function.
* @param data Data to be hashed. Must be xs:string or a binary node. (of <a href="{@docRoot}/doc-files/types/item.html">item</a>)
* @param encoding Encoding format for the output string, must be "hex" for hexadecimal or "base64". Default is "hex". (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)
* @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a> server data type
*/
public ServerExpression md5(ServerExpression data, ServerExpression encoding);
/**
* Returns month name, calculated from the localized value of arg.
*
* <a name="ml-server-type-month-name-from-date"></a>
* <p>
* Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:month-name-from-date" target="mlserverdoc">xdmp:month-name-from-date</a> server function.
* @param arg The date whose month-name will be returned. (of <a href="{@docRoot}/doc-files/types/xs_date.html">xs:date</a>)
* @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a> server data type
*/
public ServerExpression monthNameFromDate(ServerExpression arg);
/**
* Multiply two 64-bit integer values, discarding overflow.
*
* <a name="ml-server-type-mul64"></a>
* <p>
* Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:mul64" target="mlserverdoc">xdmp:mul64</a> server function.
* @param x The first value. (of <a href="{@docRoot}/doc-files/types/xs_unsignedLong.html">xs:unsignedLong</a>)
* @param y The second value. (of <a href="{@docRoot}/doc-files/types/xs_unsignedLong.html">xs:unsignedLong</a>)
* @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_unsignedLong.html">xs:unsignedLong</a> server data type
*/
public ServerExpression mul64(ServerExpression x, ServerExpression y);
/**
* Returns any collections for the node's document in the database. If the specified node does not come from a document in a database, then xdmp:node-collections returns an empty sequence.
*
* <a name="ml-server-type-node-collections"></a>
* <p>
* Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:node-collections" target="mlserverdoc">xdmp:node-collections</a> server function.
* @param node The node whose collections are to be returned. (of <a href="{@docRoot}/doc-files/types/node.html">node</a>)
* @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a> server data type
*/
public ServerExpression nodeCollections(ServerExpression node);
/**
* Returns an xs:string representing the node's kind: either "document", "element", "attribute", "text", "namespace", "processing-instruction", "binary", or "comment".
*
* <a name="ml-server-type-node-kind"></a>
* <p>
* Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:node-kind" target="mlserverdoc">xdmp:node-kind</a> server function.
* @param node The node whose kind is to be returned. (of <a href="{@docRoot}/doc-files/types/node.html">node</a>)
* @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a> server data type
*/
public ServerExpression nodeKind(ServerExpression node);
/**
* Returns the metadata value of a given node.
*
* <a name="ml-server-type-node-metadata"></a>
* <p>
* Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:node-metadata" target="mlserverdoc">xdmp:node-metadata</a> server function.
* @param node The node whose metadata are to be returned. (of <a href="{@docRoot}/doc-files/types/node.html">node</a>)
* @return a server expression with the <a href="{@docRoot}/doc-files/types/map_map.html">map:map</a> server data type
*/
public ServerExpression nodeMetadata(ServerExpression node);
/**
* Returns the metadata value of a node for a particular key.
* <p>
* Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:node-metadata-value" target="mlserverdoc">xdmp:node-metadata-value</a> server function.
* @param node The node whose metadata are to be returned. (of <a href="{@docRoot}/doc-files/types/node.html">node</a>)
* @param keyName Name of the key for the metadata. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)
* @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a> server data type
*/
public ServerExpression nodeMetadataValue(ServerExpression node, String keyName);
/**
* Returns the metadata value of a node for a particular key.
*
* <a name="ml-server-type-node-metadata-value"></a>
* <p>
* Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:node-metadata-value" target="mlserverdoc">xdmp:node-metadata-value</a> server function.
* @param node The node whose metadata are to be returned. (of <a href="{@docRoot}/doc-files/types/node.html">node</a>)
* @param keyName Name of the key for the metadata. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)
* @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a> server data type
*/
public ServerExpression nodeMetadataValue(ServerExpression node, ServerExpression keyName);
/**
* Returns the permissions to a node's document.
*
* <a name="ml-server-type-node-permissions"></a>
* <p>
* Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:node-permissions" target="mlserverdoc">xdmp:node-permissions</a> server function.
* @param node The node. (of <a href="{@docRoot}/doc-files/types/node.html">node</a>)
* @return a server expression with the <a href="{@docRoot}/doc-files/types/item.html">item</a> server data type
*/
public ServerExpression nodePermissions(ServerExpression node);
/**
* Returns the permissions to a node's document.
* <p>
* Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:node-permissions" target="mlserverdoc">xdmp:node-permissions</a> server function.
* @param node The node. (of <a href="{@docRoot}/doc-files/types/node.html">node</a>)
* @param outputKind The output kind. It can be either "elements" or "objects". With "elements", the built-in returns a sequence of XML elements. With "objects", the built-in returns a sequence of map:map. The default is "elements". (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)
* @return a server expression with the <a href="{@docRoot}/doc-files/types/item.html">item</a> server data type
*/
public ServerExpression nodePermissions(ServerExpression node, String outputKind);
/**
* Returns the permissions to a node's document.
* <p>
* Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:node-permissions" target="mlserverdoc">xdmp:node-permissions</a> server function.
* @param node The node. (of <a href="{@docRoot}/doc-files/types/node.html">node</a>)
* @param outputKind The output kind. It can be either "elements" or "objects". With "elements", the built-in returns a sequence of XML elements. With "objects", the built-in returns a sequence of map:map. The default is "elements". (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)
* @return a server expression with the <a href="{@docRoot}/doc-files/types/item.html">item</a> server data type
*/
public ServerExpression nodePermissions(ServerExpression node, ServerExpression outputKind);
/**
* Returns the document-uri property of the parameter or its ancestor.
*
* <a name="ml-server-type-node-uri"></a>
* <p>
* Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:node-uri" target="mlserverdoc">xdmp:node-uri</a> server function.
* @param node The node whose URI is returned. (of <a href="{@docRoot}/doc-files/types/node.html">node</a>)
* @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a> server data type
*/
public ServerExpression nodeUri(ServerExpression node);
/**
* NOT a 64-bit integer value.
*
* <a name="ml-server-type-not64"></a>
* <p>
* Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:not64" target="mlserverdoc">xdmp:not64</a> server function.
* @param x The input value. (of <a href="{@docRoot}/doc-files/types/xs_unsignedLong.html">xs:unsignedLong</a>)
* @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_unsignedLong.html">xs:unsignedLong</a> server data type
*/
public ServerExpression not64(ServerExpression x);
/**
* Parses an octal string, returning an integer.
*
* <a name="ml-server-type-octal-to-integer"></a>
* <p>
* Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:octal-to-integer" target="mlserverdoc">xdmp:octal-to-integer</a> server function.
* @param octal The octal string. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)
* @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_integer.html">xs:integer</a> server data type
*/
public ServerExpression octalToInteger(ServerExpression octal);
/**
* OR two 64-bit integer values.
*
* <a name="ml-server-type-or64"></a>
* <p>
* Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:or64" target="mlserverdoc">xdmp:or64</a> server function.
* @param x The first value. (of <a href="{@docRoot}/doc-files/types/xs_unsignedLong.html">xs:unsignedLong</a>)
* @param y The second value. (of <a href="{@docRoot}/doc-files/types/xs_unsignedLong.html">xs:unsignedLong</a>)
* @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_unsignedLong.html">xs:unsignedLong</a> server data type
*/
public ServerExpression or64(ServerExpression x, ServerExpression y);
/**
* Parses a string containing date, time or dateTime using the supplied picture argument and returns a dateTime value. While this function is closely related to other XSLT functions, it is available in XSLT as well as in all XQuery dialects and in Server-Side JavaScript.
* <p>
* Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:parse-dateTime" target="mlserverdoc">xdmp:parse-dateTime</a> server function.
* @param picture The desired string representation of the given $value. The picture string is a sequence of characters, in which the characters represent variables such as, decimal-separator-sign, grouping-sign, zero-digit-sign, digit-sign, pattern-separator, percent sign and per-mille-sign. For details on the picture string, see http://www.w3.org/TR/xslt20/#date-picture-string. This follows the specification of picture string in the W3C XSLT 2.0 specification for the fn:format-dateTime function. Symbol Description ----------------------------------- 'Y' year(absolute value) 'M' month in year 'D' day in month 'd' day in year 'F' day of week 'W' week in year 'w' week in month 'H' hour in day 'h' hour in half-day 'P' am/pm marker 'm' minute in hour 's' second in minute 'f' fractional seconds 'Z' timezone as a time offset from UTC for example PST 'z' timezone as an offset using GMT, for example GMT+1 (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)
* @param value The given string $value representing the dateTime value that needs to be formatted. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)
* @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_dateTime.html">xs:dateTime</a> server data type
*/
public ServerExpression parseDateTime(ServerExpression picture, String value);
/**
* Parses a string containing date, time or dateTime using the supplied picture argument and returns a dateTime value. While this function is closely related to other XSLT functions, it is available in XSLT as well as in all XQuery dialects and in Server-Side JavaScript.
*
* <a name="ml-server-type-parse-dateTime"></a>
* <p>
* Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:parse-dateTime" target="mlserverdoc">xdmp:parse-dateTime</a> server function.
* @param picture The desired string representation of the given $value. The picture string is a sequence of characters, in which the characters represent variables such as, decimal-separator-sign, grouping-sign, zero-digit-sign, digit-sign, pattern-separator, percent sign and per-mille-sign. For details on the picture string, see http://www.w3.org/TR/xslt20/#date-picture-string. This follows the specification of picture string in the W3C XSLT 2.0 specification for the fn:format-dateTime function. Symbol Description ----------------------------------- 'Y' year(absolute value) 'M' month in year 'D' day in month 'd' day in year 'F' day of week 'W' week in year 'w' week in month 'H' hour in day 'h' hour in half-day 'P' am/pm marker 'm' minute in hour 's' second in minute 'f' fractional seconds 'Z' timezone as a time offset from UTC for example PST 'z' timezone as an offset using GMT, for example GMT+1 (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)
* @param value The given string $value representing the dateTime value that needs to be formatted. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)
* @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_dateTime.html">xs:dateTime</a> server data type
*/
public ServerExpression parseDateTime(ServerExpression picture, ServerExpression value);
/**
* Parses a string containing date, time or dateTime using the supplied picture argument and returns a dateTime value. While this function is closely related to other XSLT functions, it is available in XSLT as well as in all XQuery dialects and in Server-Side JavaScript.
* <p>
* Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:parse-dateTime" target="mlserverdoc">xdmp:parse-dateTime</a> server function.
* @param picture The desired string representation of the given $value. The picture string is a sequence of characters, in which the characters represent variables such as, decimal-separator-sign, grouping-sign, zero-digit-sign, digit-sign, pattern-separator, percent sign and per-mille-sign. For details on the picture string, see http://www.w3.org/TR/xslt20/#date-picture-string. This follows the specification of picture string in the W3C XSLT 2.0 specification for the fn:format-dateTime function. Symbol Description ----------------------------------- 'Y' year(absolute value) 'M' month in year 'D' day in month 'd' day in year 'F' day of week 'W' week in year 'w' week in month 'H' hour in day 'h' hour in half-day 'P' am/pm marker 'm' minute in hour 's' second in minute 'f' fractional seconds 'Z' timezone as a time offset from UTC for example PST 'z' timezone as an offset using GMT, for example GMT+1 (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)
* @param value The given string $value representing the dateTime value that needs to be formatted. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)
* @param language The language used in string representation of the date, time or dateTime value. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)
* @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_dateTime.html">xs:dateTime</a> server data type
*/
public ServerExpression parseDateTime(ServerExpression picture, String value, String language);
/**
* Parses a string containing date, time or dateTime using the supplied picture argument and returns a dateTime value. While this function is closely related to other XSLT functions, it is available in XSLT as well as in all XQuery dialects and in Server-Side JavaScript.
* <p>
* Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:parse-dateTime" target="mlserverdoc">xdmp:parse-dateTime</a> server function.
* @param picture The desired string representation of the given $value. The picture string is a sequence of characters, in which the characters represent variables such as, decimal-separator-sign, grouping-sign, zero-digit-sign, digit-sign, pattern-separator, percent sign and per-mille-sign. For details on the picture string, see http://www.w3.org/TR/xslt20/#date-picture-string. This follows the specification of picture string in the W3C XSLT 2.0 specification for the fn:format-dateTime function. Symbol Description ----------------------------------- 'Y' year(absolute value) 'M' month in year 'D' day in month 'd' day in year 'F' day of week 'W' week in year 'w' week in month 'H' hour in day 'h' hour in half-day 'P' am/pm marker 'm' minute in hour 's' second in minute 'f' fractional seconds 'Z' timezone as a time offset from UTC for example PST 'z' timezone as an offset using GMT, for example GMT+1 (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)
* @param value The given string $value representing the dateTime value that needs to be formatted. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)
* @param language The language used in string representation of the date, time or dateTime value. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)
* @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_dateTime.html">xs:dateTime</a> server data type
*/
public ServerExpression parseDateTime(ServerExpression picture, ServerExpression value, ServerExpression language);
/**
* Parses a string containing date, time or dateTime using the supplied picture argument and returns a dateTime value. While this function is closely related to other XSLT functions, it is available in XSLT as well as in all XQuery dialects and in Server-Side JavaScript.
* <p>
* Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:parse-dateTime" target="mlserverdoc">xdmp:parse-dateTime</a> server function.
* @param picture The desired string representation of the given $value. The picture string is a sequence of characters, in which the characters represent variables such as, decimal-separator-sign, grouping-sign, zero-digit-sign, digit-sign, pattern-separator, percent sign and per-mille-sign. For details on the picture string, see http://www.w3.org/TR/xslt20/#date-picture-string. This follows the specification of picture string in the W3C XSLT 2.0 specification for the fn:format-dateTime function. Symbol Description ----------------------------------- 'Y' year(absolute value) 'M' month in year 'D' day in month 'd' day in year 'F' day of week 'W' week in year 'w' week in month 'H' hour in day 'h' hour in half-day 'P' am/pm marker 'm' minute in hour 's' second in minute 'f' fractional seconds 'Z' timezone as a time offset from UTC for example PST 'z' timezone as an offset using GMT, for example GMT+1 (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)
* @param value The given string $value representing the dateTime value that needs to be formatted. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)
* @param language The language used in string representation of the date, time or dateTime value. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)
* @param calendar This argument is reserved for future use. The only calendar supported at this point is "Gregorian" or "AD". (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)
* @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_dateTime.html">xs:dateTime</a> server data type
*/
public ServerExpression parseDateTime(ServerExpression picture, String value, String language, String calendar);
/**
* Parses a string containing date, time or dateTime using the supplied picture argument and returns a dateTime value. While this function is closely related to other XSLT functions, it is available in XSLT as well as in all XQuery dialects and in Server-Side JavaScript.
* <p>
* Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:parse-dateTime" target="mlserverdoc">xdmp:parse-dateTime</a> server function.
* @param picture The desired string representation of the given $value. The picture string is a sequence of characters, in which the characters represent variables such as, decimal-separator-sign, grouping-sign, zero-digit-sign, digit-sign, pattern-separator, percent sign and per-mille-sign. For details on the picture string, see http://www.w3.org/TR/xslt20/#date-picture-string. This follows the specification of picture string in the W3C XSLT 2.0 specification for the fn:format-dateTime function. Symbol Description ----------------------------------- 'Y' year(absolute value) 'M' month in year 'D' day in month 'd' day in year 'F' day of week 'W' week in year 'w' week in month 'H' hour in day 'h' hour in half-day 'P' am/pm marker 'm' minute in hour 's' second in minute 'f' fractional seconds 'Z' timezone as a time offset from UTC for example PST 'z' timezone as an offset using GMT, for example GMT+1 (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)
* @param value The given string $value representing the dateTime value that needs to be formatted. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)
* @param language The language used in string representation of the date, time or dateTime value. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)
* @param calendar This argument is reserved for future use. The only calendar supported at this point is "Gregorian" or "AD". (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)
* @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_dateTime.html">xs:dateTime</a> server data type
*/
public ServerExpression parseDateTime(ServerExpression picture, ServerExpression value, ServerExpression language, ServerExpression calendar);
/**
* Parses a string containing date, time or dateTime using the supplied picture argument and returns a dateTime value. While this function is closely related to other XSLT functions, it is available in XSLT as well as in all XQuery dialects and in Server-Side JavaScript.
* <p>
* Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:parse-dateTime" target="mlserverdoc">xdmp:parse-dateTime</a> server function.
* @param picture The desired string representation of the given $value. The picture string is a sequence of characters, in which the characters represent variables such as, decimal-separator-sign, grouping-sign, zero-digit-sign, digit-sign, pattern-separator, percent sign and per-mille-sign. For details on the picture string, see http://www.w3.org/TR/xslt20/#date-picture-string. This follows the specification of picture string in the W3C XSLT 2.0 specification for the fn:format-dateTime function. Symbol Description ----------------------------------- 'Y' year(absolute value) 'M' month in year 'D' day in month 'd' day in year 'F' day of week 'W' week in year 'w' week in month 'H' hour in day 'h' hour in half-day 'P' am/pm marker 'm' minute in hour 's' second in minute 'f' fractional seconds 'Z' timezone as a time offset from UTC for example PST 'z' timezone as an offset using GMT, for example GMT+1 (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)
* @param value The given string $value representing the dateTime value that needs to be formatted. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)
* @param language The language used in string representation of the date, time or dateTime value. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)
* @param calendar This argument is reserved for future use. The only calendar supported at this point is "Gregorian" or "AD". (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)
* @param country $country is used to take into account if there any country specific interpretation of the string while converting it into dateTime value. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)
* @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_dateTime.html">xs:dateTime</a> server data type
*/
public ServerExpression parseDateTime(ServerExpression picture, String value, String language, String calendar, String country);
/**
* Parses a string containing date, time or dateTime using the supplied picture argument and returns a dateTime value. While this function is closely related to other XSLT functions, it is available in XSLT as well as in all XQuery dialects and in Server-Side JavaScript.
* <p>
* Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:parse-dateTime" target="mlserverdoc">xdmp:parse-dateTime</a> server function.
* @param picture The desired string representation of the given $value. The picture string is a sequence of characters, in which the characters represent variables such as, decimal-separator-sign, grouping-sign, zero-digit-sign, digit-sign, pattern-separator, percent sign and per-mille-sign. For details on the picture string, see http://www.w3.org/TR/xslt20/#date-picture-string. This follows the specification of picture string in the W3C XSLT 2.0 specification for the fn:format-dateTime function. Symbol Description ----------------------------------- 'Y' year(absolute value) 'M' month in year 'D' day in month 'd' day in year 'F' day of week 'W' week in year 'w' week in month 'H' hour in day 'h' hour in half-day 'P' am/pm marker 'm' minute in hour 's' second in minute 'f' fractional seconds 'Z' timezone as a time offset from UTC for example PST 'z' timezone as an offset using GMT, for example GMT+1 (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)
* @param value The given string $value representing the dateTime value that needs to be formatted. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)
* @param language The language used in string representation of the date, time or dateTime value. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)
* @param calendar This argument is reserved for future use. The only calendar supported at this point is "Gregorian" or "AD". (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)
* @param country $country is used to take into account if there any country specific interpretation of the string while converting it into dateTime value. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)
* @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_dateTime.html">xs:dateTime</a> server data type
*/
public ServerExpression parseDateTime(ServerExpression picture, ServerExpression value, ServerExpression language, ServerExpression calendar, ServerExpression country);
/**
* Parses a string containing date, time or dateTime using the supplied picture argument and returns a dateTime value. While this function is closely related to other XSLT functions, it is available in XSLT as well as in all XQuery dialects and in Server-Side JavaScript.
* <p>
* Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:parse-yymmdd" target="mlserverdoc">xdmp:parse-yymmdd</a> server function.
* @param picture The desired string representation of the given $value. This follows the specification of picture string which is compatible to the format specification in icu. See http://icu-project.org/apiref/icu4j/com/ibm/icu/text/SimpleDateFormat.html for more details. The following is the summary of the formatting symbols: Symbol Description ---------------------------- "y" year(absolute value) "M" month in year "d" day in month "D" day in year "E" day of week "w" week in year "W" week in month "H" hour in day "K" hour in half-day "a" am/pm marker "s" second in minute "S" fractional seconds "Z" timezone as a time offset from UTC for example PST "ZZZZ" timezone as an offset using GMT, for example GMT+1 (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)
* @param value The given string $value that needs to be formatted. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)
* @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_dateTime.html">xs:dateTime</a> server data type
*/
public ServerExpression parseYymmdd(ServerExpression picture, String value);
/**
* Parses a string containing date, time or dateTime using the supplied picture argument and returns a dateTime value. While this function is closely related to other XSLT functions, it is available in XSLT as well as in all XQuery dialects and in Server-Side JavaScript.
*
* <a name="ml-server-type-parse-yymmdd"></a>
* <p>
* Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:parse-yymmdd" target="mlserverdoc">xdmp:parse-yymmdd</a> server function.
* @param picture The desired string representation of the given $value. This follows the specification of picture string which is compatible to the format specification in icu. See http://icu-project.org/apiref/icu4j/com/ibm/icu/text/SimpleDateFormat.html for more details. The following is the summary of the formatting symbols: Symbol Description ---------------------------- "y" year(absolute value) "M" month in year "d" day in month "D" day in year "E" day of week "w" week in year "W" week in month "H" hour in day "K" hour in half-day "a" am/pm marker "s" second in minute "S" fractional seconds "Z" timezone as a time offset from UTC for example PST "ZZZZ" timezone as an offset using GMT, for example GMT+1 (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)
* @param value The given string $value that needs to be formatted. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)
* @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_dateTime.html">xs:dateTime</a> server data type
*/
public ServerExpression parseYymmdd(ServerExpression picture, ServerExpression value);
/**
* Parses a string containing date, time or dateTime using the supplied picture argument and returns a dateTime value. While this function is closely related to other XSLT functions, it is available in XSLT as well as in all XQuery dialects and in Server-Side JavaScript.
* <p>
* Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:parse-yymmdd" target="mlserverdoc">xdmp:parse-yymmdd</a> server function.
* @param picture The desired string representation of the given $value. This follows the specification of picture string which is compatible to the format specification in icu. See http://icu-project.org/apiref/icu4j/com/ibm/icu/text/SimpleDateFormat.html for more details. The following is the summary of the formatting symbols: Symbol Description ---------------------------- "y" year(absolute value) "M" month in year "d" day in month "D" day in year "E" day of week "w" week in year "W" week in month "H" hour in day "K" hour in half-day "a" am/pm marker "s" second in minute "S" fractional seconds "Z" timezone as a time offset from UTC for example PST "ZZZZ" timezone as an offset using GMT, for example GMT+1 (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)
* @param value The given string $value that needs to be formatted. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)
* @param language The language used in string representation of the date, time or dateTime value. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)
* @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_dateTime.html">xs:dateTime</a> server data type
*/
public ServerExpression parseYymmdd(ServerExpression picture, String value, String language);
/**
* Parses a string containing date, time or dateTime using the supplied picture argument and returns a dateTime value. While this function is closely related to other XSLT functions, it is available in XSLT as well as in all XQuery dialects and in Server-Side JavaScript.
* <p>
* Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:parse-yymmdd" target="mlserverdoc">xdmp:parse-yymmdd</a> server function.
* @param picture The desired string representation of the given $value. This follows the specification of picture string which is compatible to the format specification in icu. See http://icu-project.org/apiref/icu4j/com/ibm/icu/text/SimpleDateFormat.html for more details. The following is the summary of the formatting symbols: Symbol Description ---------------------------- "y" year(absolute value) "M" month in year "d" day in month "D" day in year "E" day of week "w" week in year "W" week in month "H" hour in day "K" hour in half-day "a" am/pm marker "s" second in minute "S" fractional seconds "Z" timezone as a time offset from UTC for example PST "ZZZZ" timezone as an offset using GMT, for example GMT+1 (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)
* @param value The given string $value that needs to be formatted. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)
* @param language The language used in string representation of the date, time or dateTime value. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)
* @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_dateTime.html">xs:dateTime</a> server data type
*/
public ServerExpression parseYymmdd(ServerExpression picture, ServerExpression value, ServerExpression language);
/**
* Parses a string containing date, time or dateTime using the supplied picture argument and returns a dateTime value. While this function is closely related to other XSLT functions, it is available in XSLT as well as in all XQuery dialects and in Server-Side JavaScript.
* <p>
* Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:parse-yymmdd" target="mlserverdoc">xdmp:parse-yymmdd</a> server function.
* @param picture The desired string representation of the given $value. This follows the specification of picture string which is compatible to the format specification in icu. See http://icu-project.org/apiref/icu4j/com/ibm/icu/text/SimpleDateFormat.html for more details. The following is the summary of the formatting symbols: Symbol Description ---------------------------- "y" year(absolute value) "M" month in year "d" day in month "D" day in year "E" day of week "w" week in year "W" week in month "H" hour in day "K" hour in half-day "a" am/pm marker "s" second in minute "S" fractional seconds "Z" timezone as a time offset from UTC for example PST "ZZZZ" timezone as an offset using GMT, for example GMT+1 (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)
* @param value The given string $value that needs to be formatted. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)
* @param language The language used in string representation of the date, time or dateTime value. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)
* @param calendar This argument is reserved for future use. The only calendar supported at this point is "Gregorian" or "AD". (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)
* @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_dateTime.html">xs:dateTime</a> server data type
*/
public ServerExpression parseYymmdd(ServerExpression picture, String value, String language, String calendar);
/**
* Parses a string containing date, time or dateTime using the supplied picture argument and returns a dateTime value. While this function is closely related to other XSLT functions, it is available in XSLT as well as in all XQuery dialects and in Server-Side JavaScript.
* <p>
* Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:parse-yymmdd" target="mlserverdoc">xdmp:parse-yymmdd</a> server function.
* @param picture The desired string representation of the given $value. This follows the specification of picture string which is compatible to the format specification in icu. See http://icu-project.org/apiref/icu4j/com/ibm/icu/text/SimpleDateFormat.html for more details. The following is the summary of the formatting symbols: Symbol Description ---------------------------- "y" year(absolute value) "M" month in year "d" day in month "D" day in year "E" day of week "w" week in year "W" week in month "H" hour in day "K" hour in half-day "a" am/pm marker "s" second in minute "S" fractional seconds "Z" timezone as a time offset from UTC for example PST "ZZZZ" timezone as an offset using GMT, for example GMT+1 (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)
* @param value The given string $value that needs to be formatted. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)
* @param language The language used in string representation of the date, time or dateTime value. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)
* @param calendar This argument is reserved for future use. The only calendar supported at this point is "Gregorian" or "AD". (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)
* @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_dateTime.html">xs:dateTime</a> server data type
*/
public ServerExpression parseYymmdd(ServerExpression picture, ServerExpression value, ServerExpression language, ServerExpression calendar);
/**
* Parses a string containing date, time or dateTime using the supplied picture argument and returns a dateTime value. While this function is closely related to other XSLT functions, it is available in XSLT as well as in all XQuery dialects and in Server-Side JavaScript.
* <p>
* Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:parse-yymmdd" target="mlserverdoc">xdmp:parse-yymmdd</a> server function.
* @param picture The desired string representation of the given $value. This follows the specification of picture string which is compatible to the format specification in icu. See http://icu-project.org/apiref/icu4j/com/ibm/icu/text/SimpleDateFormat.html for more details. The following is the summary of the formatting symbols: Symbol Description ---------------------------- "y" year(absolute value) "M" month in year "d" day in month "D" day in year "E" day of week "w" week in year "W" week in month "H" hour in day "K" hour in half-day "a" am/pm marker "s" second in minute "S" fractional seconds "Z" timezone as a time offset from UTC for example PST "ZZZZ" timezone as an offset using GMT, for example GMT+1 (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)
* @param value The given string $value that needs to be formatted. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)
* @param language The language used in string representation of the date, time or dateTime value. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)
* @param calendar This argument is reserved for future use. The only calendar supported at this point is "Gregorian" or "AD". (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)
* @param country $country is used to take into account if there any country specific interpretation of the string while converting it into dateTime value. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)
* @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_dateTime.html">xs:dateTime</a> server data type
*/
public ServerExpression parseYymmdd(ServerExpression picture, String value, String language, String calendar, String country);
/**
* Parses a string containing date, time or dateTime using the supplied picture argument and returns a dateTime value. While this function is closely related to other XSLT functions, it is available in XSLT as well as in all XQuery dialects and in Server-Side JavaScript.
* <p>
* Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:parse-yymmdd" target="mlserverdoc">xdmp:parse-yymmdd</a> server function.
* @param picture The desired string representation of the given $value. This follows the specification of picture string which is compatible to the format specification in icu. See http://icu-project.org/apiref/icu4j/com/ibm/icu/text/SimpleDateFormat.html for more details. The following is the summary of the formatting symbols: Symbol Description ---------------------------- "y" year(absolute value) "M" month in year "d" day in month "D" day in year "E" day of week "w" week in year "W" week in month "H" hour in day "K" hour in half-day "a" am/pm marker "s" second in minute "S" fractional seconds "Z" timezone as a time offset from UTC for example PST "ZZZZ" timezone as an offset using GMT, for example GMT+1 (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)
* @param value The given string $value that needs to be formatted. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)
* @param language The language used in string representation of the date, time or dateTime value. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)
* @param calendar This argument is reserved for future use. The only calendar supported at this point is "Gregorian" or "AD". (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)
* @param country $country is used to take into account if there any country specific interpretation of the string while converting it into dateTime value. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)
* @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_dateTime.html">xs:dateTime</a> server data type
*/
public ServerExpression parseYymmdd(ServerExpression picture, ServerExpression value, ServerExpression language, ServerExpression calendar, ServerExpression country);
/**
* Returns a string whose value corresponds to the path of the node.
*
* <a name="ml-server-type-path"></a>
* <p>
* Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:path" target="mlserverdoc">xdmp:path</a> server function.
* @param node The node whose path is returned. (of <a href="{@docRoot}/doc-files/types/node.html">node</a>)
* @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a> server data type
*/
public ServerExpression path(ServerExpression node);
/**
* Returns a string whose value corresponds to the path of the node.
* <p>
* Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:path" target="mlserverdoc">xdmp:path</a> server function.
* @param node The node whose path is returned. (of <a href="{@docRoot}/doc-files/types/node.html">node</a>)
* @param includeDocument If true, then the path is presented with a leading doc(..)/.., otherwise the path is presented as /... (of <a href="{@docRoot}/doc-files/types/xs_boolean.html">xs:boolean</a>)
* @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a> server data type
*/
public ServerExpression path(ServerExpression node, boolean includeDocument);
/**
* Returns a string whose value corresponds to the path of the node.
* <p>
* Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:path" target="mlserverdoc">xdmp:path</a> server function.
* @param node The node whose path is returned. (of <a href="{@docRoot}/doc-files/types/node.html">node</a>)
* @param includeDocument If true, then the path is presented with a leading doc(..)/.., otherwise the path is presented as /... (of <a href="{@docRoot}/doc-files/types/xs_boolean.html">xs:boolean</a>)
* @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a> server data type
*/
public ServerExpression path(ServerExpression node, ServerExpression includeDocument);
/**
* Returns an integer value representing the starting position of a string within the search string. Note, the string starting position is 1. If the first parameter is empty, the result is the empty sequence.
* <p>
* Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:position" target="mlserverdoc">xdmp:position</a> server function.
* @param test The string to test for existence in the second parameter. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)
* @param target The string from which to test. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)
* @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_integer.html">xs:integer</a> server data type
*/
public ServerExpression position(ServerExpression test, String target);
/**
* Returns an integer value representing the starting position of a string within the search string. Note, the string starting position is 1. If the first parameter is empty, the result is the empty sequence.
*
* <a name="ml-server-type-position"></a>
* <p>
* Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:position" target="mlserverdoc">xdmp:position</a> server function.
* @param test The string to test for existence in the second parameter. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)
* @param target The string from which to test. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)
* @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_integer.html">xs:integer</a> server data type
*/
public ServerExpression position(ServerExpression test, ServerExpression target);
/**
* Returns an integer value representing the starting position of a string within the search string. Note, the string starting position is 1. If the first parameter is empty, the result is the empty sequence.
* <p>
* Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:position" target="mlserverdoc">xdmp:position</a> server function.
* @param test The string to test for existence in the second parameter. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)
* @param target The string from which to test. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)
* @param collation The optional name of a valid collation URI. For information on the collation URI syntax, see the Search Developer's Guide. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)
* @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_integer.html">xs:integer</a> server data type
*/
public ServerExpression position(ServerExpression test, String target, String collation);
/**
* Returns an integer value representing the starting position of a string within the search string. Note, the string starting position is 1. If the first parameter is empty, the result is the empty sequence.
* <p>
* Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:position" target="mlserverdoc">xdmp:position</a> server function.
* @param test The string to test for existence in the second parameter. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)
* @param target The string from which to test. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)
* @param collation The optional name of a valid collation URI. For information on the collation URI syntax, see the Search Developer's Guide. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)
* @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_integer.html">xs:integer</a> server data type
*/
public ServerExpression position(ServerExpression test, ServerExpression target, ServerExpression collation);
/**
* Construct a QName from a string of the form "{namespaceURI}localname". This function is useful for constructing Clark notation parameters for the xdmp:xslt-eval and xdmp:xslt-invoke functions.
*
* <a name="ml-server-type-QName-from-key"></a>
* <p>
* Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:QName-from-key" target="mlserverdoc">xdmp:QName-from-key</a> server function.
* @param key The string from which to construct a QName. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)
* @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_QName.html">xs:QName</a> server data type
*/
public ServerExpression QNameFromKey(ServerExpression key);
/**
* Returns an integer between 1 and 4, both inclusive, calculating the quarter component in the localized value of arg.
*
* <a name="ml-server-type-quarter-from-date"></a>
* <p>
* Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:quarter-from-date" target="mlserverdoc">xdmp:quarter-from-date</a> server function.
* @param arg The date whose quarter component will be returned. (of <a href="{@docRoot}/doc-files/types/xs_date.html">xs:date</a>)
* @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_integer.html">xs:integer</a> server data type
*/
public ServerExpression quarterFromDate(ServerExpression arg);
/**
* Returns a random unsigned integer between 0 and a number up to 64 bits long.
*
* <a name="ml-server-type-random"></a>
* <p>
* Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:random" target="mlserverdoc">xdmp:random</a> server function.
* @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_unsignedLong.html">xs:unsignedLong</a> server data type
*/
public ServerExpression random();
/**
* Returns a random unsigned integer between 0 and a number up to 64 bits long.
* <p>
* Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:random" target="mlserverdoc">xdmp:random</a> server function.
* @param max The optional maximum value (inclusive). (of <a href="{@docRoot}/doc-files/types/xs_unsignedLong.html">xs:unsignedLong</a>)
* @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_unsignedLong.html">xs:unsignedLong</a> server data type
*/
public ServerExpression random(ServerExpression max);
/**
* Resolves a relative URI against an absolute URI. If base is specified, the URI is resolved relative to that base. If base is not specified, the base is set to the base-uri property from the static context, if the property exists; if it does not exist, an error is thrown.
* <p>
* Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:resolve-uri" target="mlserverdoc">xdmp:resolve-uri</a> server function.
* @param relative A URI reference to resolve against the base. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)
* @param base An absolute URI to use as the base of the resolution. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)
* @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_anyURI.html">xs:anyURI</a> server data type
*/
public ServerExpression resolveUri(ServerExpression relative, String base);
/**
* Resolves a relative URI against an absolute URI. If base is specified, the URI is resolved relative to that base. If base is not specified, the base is set to the base-uri property from the static context, if the property exists; if it does not exist, an error is thrown.
*
* <a name="ml-server-type-resolve-uri"></a>
* <p>
* Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:resolve-uri" target="mlserverdoc">xdmp:resolve-uri</a> server function.
* @param relative A URI reference to resolve against the base. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)
* @param base An absolute URI to use as the base of the resolution. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)
* @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_anyURI.html">xs:anyURI</a> server data type
*/
public ServerExpression resolveUri(ServerExpression relative, ServerExpression base);
/**
* Right-shift a 64-bit integer value.
* <p>
* Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:rshift64" target="mlserverdoc">xdmp:rshift64</a> server function.
* @param x The value to shift. (of <a href="{@docRoot}/doc-files/types/xs_unsignedLong.html">xs:unsignedLong</a>)
* @param y The right shift to perform. This value may be negative. (of <a href="{@docRoot}/doc-files/types/xs_long.html">xs:long</a>)
* @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_unsignedLong.html">xs:unsignedLong</a> server data type
*/
public ServerExpression rshift64(ServerExpression x, long y);
/**
* Right-shift a 64-bit integer value.
*
* <a name="ml-server-type-rshift64"></a>
* <p>
* Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:rshift64" target="mlserverdoc">xdmp:rshift64</a> server function.
* @param x The value to shift. (of <a href="{@docRoot}/doc-files/types/xs_unsignedLong.html">xs:unsignedLong</a>)
* @param y The right shift to perform. This value may be negative. (of <a href="{@docRoot}/doc-files/types/xs_long.html">xs:long</a>)
* @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_unsignedLong.html">xs:unsignedLong</a> server data type
*/
public ServerExpression rshift64(ServerExpression x, ServerExpression y);
/**
* Calculates the SHA1 hash of the given argument.
*
* <a name="ml-server-type-sha1"></a>
* <p>
* Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:sha1" target="mlserverdoc">xdmp:sha1</a> server function.
* @param data Data to be hashed. Must be xs:string or a binary node. (of <a href="{@docRoot}/doc-files/types/item.html">item</a>)
* @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a> server data type
*/
public ServerExpression sha1(ServerExpression data);
/**
* Calculates the SHA1 hash of the given argument.
* <p>
* Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:sha1" target="mlserverdoc">xdmp:sha1</a> server function.
* @param data Data to be hashed. Must be xs:string or a binary node. (of <a href="{@docRoot}/doc-files/types/item.html">item</a>)
* @param encoding Encoding format for the output string, must be "hex" for hexadecimal or "base64". Default is "hex". (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)
* @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a> server data type
*/
public ServerExpression sha1(ServerExpression data, String encoding);
/**
* Calculates the SHA1 hash of the given argument.
* <p>
* Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:sha1" target="mlserverdoc">xdmp:sha1</a> server function.
* @param data Data to be hashed. Must be xs:string or a binary node. (of <a href="{@docRoot}/doc-files/types/item.html">item</a>)
* @param encoding Encoding format for the output string, must be "hex" for hexadecimal or "base64". Default is "hex". (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)
* @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a> server data type
*/
public ServerExpression sha1(ServerExpression data, ServerExpression encoding);
/**
* Calculates the SHA256 hash of the given argument.
*
* <a name="ml-server-type-sha256"></a>
* <p>
* Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:sha256" target="mlserverdoc">xdmp:sha256</a> server function.
* @param data Data to be hashed. Must be xs:string or a binary node. (of <a href="{@docRoot}/doc-files/types/item.html">item</a>)
* @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a> server data type
*/
public ServerExpression sha256(ServerExpression data);
/**
* Calculates the SHA256 hash of the given argument.
* <p>
* Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:sha256" target="mlserverdoc">xdmp:sha256</a> server function.
* @param data Data to be hashed. Must be xs:string or a binary node. (of <a href="{@docRoot}/doc-files/types/item.html">item</a>)
* @param encoding Encoding format for the output string, must be "hex" for hexadecimal or "base64". Default is "hex". (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)
* @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a> server data type
*/
public ServerExpression sha256(ServerExpression data, String encoding);
/**
* Calculates the SHA256 hash of the given argument.
* <p>
* Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:sha256" target="mlserverdoc">xdmp:sha256</a> server function.
* @param data Data to be hashed. Must be xs:string or a binary node. (of <a href="{@docRoot}/doc-files/types/item.html">item</a>)
* @param encoding Encoding format for the output string, must be "hex" for hexadecimal or "base64". Default is "hex". (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)
* @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a> server data type
*/
public ServerExpression sha256(ServerExpression data, ServerExpression encoding);
/**
* Calculates the SHA384 hash of the given argument.
*
* <a name="ml-server-type-sha384"></a>
* <p>
* Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:sha384" target="mlserverdoc">xdmp:sha384</a> server function.
* @param data Data to be hashed. Must be xs:string or a binary node. (of <a href="{@docRoot}/doc-files/types/item.html">item</a>)
* @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a> server data type
*/
public ServerExpression sha384(ServerExpression data);
/**
* Calculates the SHA384 hash of the given argument.
* <p>
* Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:sha384" target="mlserverdoc">xdmp:sha384</a> server function.
* @param data Data to be hashed. Must be xs:string or a binary node. (of <a href="{@docRoot}/doc-files/types/item.html">item</a>)
* @param encoding Encoding format for the output string, must be "hex" for hexadecimal or "base64". Default is "hex". (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)
* @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a> server data type
*/
public ServerExpression sha384(ServerExpression data, String encoding);
/**
* Calculates the SHA384 hash of the given argument.
* <p>
* Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:sha384" target="mlserverdoc">xdmp:sha384</a> server function.
* @param data Data to be hashed. Must be xs:string or a binary node. (of <a href="{@docRoot}/doc-files/types/item.html">item</a>)
* @param encoding Encoding format for the output string, must be "hex" for hexadecimal or "base64". Default is "hex". (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)
* @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a> server data type
*/
public ServerExpression sha384(ServerExpression data, ServerExpression encoding);
/**
* Calculates the SHA512 hash of the given argument.
*
* <a name="ml-server-type-sha512"></a>
* <p>
* Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:sha512" target="mlserverdoc">xdmp:sha512</a> server function.
* @param data Data to be hashed. Must be xs:string or a binary node. (of <a href="{@docRoot}/doc-files/types/item.html">item</a>)
* @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a> server data type
*/
public ServerExpression sha512(ServerExpression data);
/**
* Calculates the SHA512 hash of the given argument.
* <p>
* Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:sha512" target="mlserverdoc">xdmp:sha512</a> server function.
* @param data Data to be hashed. Must be xs:string or a binary node. (of <a href="{@docRoot}/doc-files/types/item.html">item</a>)
* @param encoding Encoding format for the output string, must be "hex" for hexadecimal or "base64". Default is "hex". (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)
* @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a> server data type
*/
public ServerExpression sha512(ServerExpression data, String encoding);
/**
* Calculates the SHA512 hash of the given argument.
* <p>
* Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:sha512" target="mlserverdoc">xdmp:sha512</a> server function.
* @param data Data to be hashed. Must be xs:string or a binary node. (of <a href="{@docRoot}/doc-files/types/item.html">item</a>)
* @param encoding Encoding format for the output string, must be "hex" for hexadecimal or "base64". Default is "hex". (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)
* @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a> server data type
*/
public ServerExpression sha512(ServerExpression data, ServerExpression encoding);
/**
* Combines an initial hash with a subsequent hash.
*
* <a name="ml-server-type-step64"></a>
* <p>
* Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:step64" target="mlserverdoc">xdmp:step64</a> server function.
* @param initial An initial hash. (of <a href="{@docRoot}/doc-files/types/xs_unsignedLong.html">xs:unsignedLong</a>)
* @param step A step hash to be combined with the initial hash. (of <a href="{@docRoot}/doc-files/types/xs_unsignedLong.html">xs:unsignedLong</a>)
* @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_unsignedLong.html">xs:unsignedLong</a> server data type
*/
public ServerExpression step64(ServerExpression initial, ServerExpression step);
/**
* Formats a dateTime value using POSIX strftime. This function uses the POSIX strftime system call in the way it is implemented on each platform. For other XQuery functions that have more functionality (for example, for things like timezones), use one or more if the various XQuery or XSLT standard functions such as fn:format-dateTime .
* <p>
* Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:strftime" target="mlserverdoc">xdmp:strftime</a> server function.
* @param format The strftime format string. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)
* @param value The dateTime value. (of <a href="{@docRoot}/doc-files/types/xs_dateTime.html">xs:dateTime</a>)
* @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a> server data type
*/
public ServerExpression strftime(ServerExpression format, String value);
/**
* Formats a dateTime value using POSIX strftime. This function uses the POSIX strftime system call in the way it is implemented on each platform. For other XQuery functions that have more functionality (for example, for things like timezones), use one or more if the various XQuery or XSLT standard functions such as fn:format-dateTime .
*
* <a name="ml-server-type-strftime"></a>
* <p>
* Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:strftime" target="mlserverdoc">xdmp:strftime</a> server function.
* @param format The strftime format string. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)
* @param value The dateTime value. (of <a href="{@docRoot}/doc-files/types/xs_dateTime.html">xs:dateTime</a>)
* @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a> server data type
*/
public ServerExpression strftime(ServerExpression format, ServerExpression value);
/**
* Converts a 64 bit timestamp value to an xs:dateTime.
*
* <a name="ml-server-type-timestamp-to-wallclock"></a>
* <p>
* Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:timestamp-to-wallclock" target="mlserverdoc">xdmp:timestamp-to-wallclock</a> server function.
* @param timestamp The timestamp. (of <a href="{@docRoot}/doc-files/types/xs_unsignedLong.html">xs:unsignedLong</a>)
* @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_dateTime.html">xs:dateTime</a> server data type
*/
public ServerExpression timestampToWallclock(ServerExpression timestamp);
/**
* Constructs a JSON document.
*
* <a name="ml-server-type-to-json"></a>
* <p>
* Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:to-json" target="mlserverdoc">xdmp:to-json</a> server function.
* @param item A sequence of items from which the JSON document is to be constructed. The item sequence from which the JSON document is constructed. (of <a href="{@docRoot}/doc-files/types/item.html">item</a>)
* @return a server expression with the <a href="{@docRoot}/doc-files/types/node.html">node</a> server data type
*/
public ServerExpression toJson(ServerExpression item);
/**
* Returns the name of the simple type of the atomic value argument as an xs:QName.
*
* <a name="ml-server-type-type"></a>
* <p>
* Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:type" target="mlserverdoc">xdmp:type</a> server function.
* @param value The value to return the type of. (of <a href="{@docRoot}/doc-files/types/xs_anyAtomicType.html">xs:anyAtomicType</a>)
* @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_QName.html">xs:QName</a> server data type
*/
public ServerExpression type(ServerExpression value);
/**
* Parses a string as XML, returning one or more document nodes.
*
* <a name="ml-server-type-unquote"></a>
* <p>
* Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:unquote" target="mlserverdoc">xdmp:unquote</a> server function.
* @param arg Input to be unquoted. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)
* @return a server expression with the <a href="{@docRoot}/doc-files/types/document-node.html">document-node</a> server data type
*/
public ServerExpression unquote(ServerExpression arg);
/**
* Parses a string as XML, returning one or more document nodes.
* <p>
* Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:unquote" target="mlserverdoc">xdmp:unquote</a> server function.
* @param arg Input to be unquoted. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)
* @param defaultNamespace Default namespace for nodes in the first parameter. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)
* @return a server expression with the <a href="{@docRoot}/doc-files/types/document-node.html">document-node</a> server data type
*/
public ServerExpression unquote(ServerExpression arg, String defaultNamespace);
/**
* Parses a string as XML, returning one or more document nodes.
* <p>
* Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:unquote" target="mlserverdoc">xdmp:unquote</a> server function.
* @param arg Input to be unquoted. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)
* @param defaultNamespace Default namespace for nodes in the first parameter. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)
* @return a server expression with the <a href="{@docRoot}/doc-files/types/document-node.html">document-node</a> server data type
*/
public ServerExpression unquote(ServerExpression arg, ServerExpression defaultNamespace);
/**
* Parses a string as XML, returning one or more document nodes.
* <p>
* Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:unquote" target="mlserverdoc">xdmp:unquote</a> server function.
* @param arg Input to be unquoted. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)
* @param defaultNamespace Default namespace for nodes in the first parameter. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)
* @param options The options for getting this document. The default value is (). Options include: "repair-full" Specifies that malformed XML content be repaired. XML content with multiple top-level elements will be parsed as multiple documents. This option has no effect on binary or text documents. "repair-none" Specifies that malformed XML content be rejected. XML content will be parsed as a single document, so a maximum of one document node will be returned. This option has no effect on binary or text documents. "format-text" Specifies to get the document as a text document, regardless of the URI specified. "format-binary" Specifies to get the document as a binary document, regardless of the URI specified. "format-xml" Specifies to get the document as an XML document, regardless of the URI specified. "format-json" Specifies to get the document as a JSON document, regardless of the URI specified. "default-language=xx" If the root element node specified in the first parameter does not already have an xml:lang attribute, the language to specify in an xml:lang attribute on the root element node. If default-language is not specified, then nothing is added to the root element node. Some examples are default-language=en and default-language=fr. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)
* @return a server expression with the <a href="{@docRoot}/doc-files/types/document-node.html">document-node</a> server data type
*/
public ServerExpression unquote(ServerExpression arg, String defaultNamespace, String options);
/**
* Parses a string as XML, returning one or more document nodes.
* <p>
* Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:unquote" target="mlserverdoc">xdmp:unquote</a> server function.
* @param arg Input to be unquoted. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)
* @param defaultNamespace Default namespace for nodes in the first parameter. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)
* @param options The options for getting this document. The default value is (). Options include: "repair-full" Specifies that malformed XML content be repaired. XML content with multiple top-level elements will be parsed as multiple documents. This option has no effect on binary or text documents. "repair-none" Specifies that malformed XML content be rejected. XML content will be parsed as a single document, so a maximum of one document node will be returned. This option has no effect on binary or text documents. "format-text" Specifies to get the document as a text document, regardless of the URI specified. "format-binary" Specifies to get the document as a binary document, regardless of the URI specified. "format-xml" Specifies to get the document as an XML document, regardless of the URI specified. "format-json" Specifies to get the document as a JSON document, regardless of the URI specified. "default-language=xx" If the root element node specified in the first parameter does not already have an xml:lang attribute, the language to specify in an xml:lang attribute on the root element node. If default-language is not specified, then nothing is added to the root element node. Some examples are default-language=en and default-language=fr. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)
* @return a server expression with the <a href="{@docRoot}/doc-files/types/document-node.html">document-node</a> server data type
*/
public ServerExpression unquote(ServerExpression arg, ServerExpression defaultNamespace, ServerExpression options);
/**
* Returns the content type of the given URI as matched in the mimetypes configuration. xdmp:content-type continues to work too.
*
* <a name="ml-server-type-uri-content-type"></a>
* <p>
* Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:uri-content-type" target="mlserverdoc">xdmp:uri-content-type</a> server function.
* @param uri The document URI. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)
* @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a> server data type
*/
public ServerExpression uriContentType(ServerExpression uri);
/**
* Returns the format of the given URI as matched in the mimetypes configuration.
*
* <a name="ml-server-type-uri-format"></a>
* <p>
* Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:uri-format" target="mlserverdoc">xdmp:uri-format</a> server function.
* @param uri The document URI. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)
* @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a> server data type
*/
public ServerExpression uriFormat(ServerExpression uri);
/**
* Converts URL-encoded string to plaintext. This decodes the string created with xdmp:url-encode.
*
* <a name="ml-server-type-url-decode"></a>
* <p>
* Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:url-decode" target="mlserverdoc">xdmp:url-decode</a> server function.
* @param encoded Encoded text to be decoded. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)
* @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a> server data type
*/
public ServerExpression urlDecode(ServerExpression encoded);
/**
* Converts plaintext into URL-encoded string. To decode the string, use xdmp:url-decode.
*
* <a name="ml-server-type-url-encode"></a>
* <p>
* Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:url-encode" target="mlserverdoc">xdmp:url-encode</a> server function.
* @param plaintext Plaintext to be encoded. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)
* @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a> server data type
*/
public ServerExpression urlEncode(ServerExpression plaintext);
/**
* Converts plaintext into URL-encoded string. To decode the string, use xdmp:url-decode.
* <p>
* Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:url-encode" target="mlserverdoc">xdmp:url-encode</a> server function.
* @param plaintext Plaintext to be encoded. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)
* @param noSpacePlus True to encode space as "%20" instead of "+". (of <a href="{@docRoot}/doc-files/types/xs_boolean.html">xs:boolean</a>)
* @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a> server data type
*/
public ServerExpression urlEncode(ServerExpression plaintext, boolean noSpacePlus);
/**
* Converts plaintext into URL-encoded string. To decode the string, use xdmp:url-decode.
* <p>
* Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:url-encode" target="mlserverdoc">xdmp:url-encode</a> server function.
* @param plaintext Plaintext to be encoded. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)
* @param noSpacePlus True to encode space as "%20" instead of "+". (of <a href="{@docRoot}/doc-files/types/xs_boolean.html">xs:boolean</a>)
* @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a> server data type
*/
public ServerExpression urlEncode(ServerExpression plaintext, ServerExpression noSpacePlus);
/**
* Converts an xs:dateTime to a 64 bit timestamp value.
*
* <a name="ml-server-type-wallclock-to-timestamp"></a>
* <p>
* Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:wallclock-to-timestamp" target="mlserverdoc">xdmp:wallclock-to-timestamp</a> server function.
* @param timestamp The xs:datetime value. (of <a href="{@docRoot}/doc-files/types/xs_dateTime.html">xs:dateTime</a>)
* @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_unsignedLong.html">xs:unsignedLong</a> server data type
*/
public ServerExpression wallclockToTimestamp(ServerExpression timestamp);
/**
* Returns an integer between 1 and 53, both inclusive, representing the week value in the localized value of arg.
*
* <a name="ml-server-type-week-from-date"></a>
* <p>
* Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:week-from-date" target="mlserverdoc">xdmp:week-from-date</a> server function.
* @param arg The date whose weeks of the year will be returned. (of <a href="{@docRoot}/doc-files/types/xs_date.html">xs:date</a>)
* @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_integer.html">xs:integer</a> server data type
*/
public ServerExpression weekFromDate(ServerExpression arg);
/**
* Returns an integer in the range 1 to 7, inclusive, representing the weekday value in the localized value of arg. Monday is the first weekday value (value of 1), and Sunday is the last (value of 7).
*
* <a name="ml-server-type-weekday-from-date"></a>
* <p>
* Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:weekday-from-date" target="mlserverdoc">xdmp:weekday-from-date</a> server function.
* @param arg The date whose weekday value will be returned. (of <a href="{@docRoot}/doc-files/types/xs_date.html">xs:date</a>)
* @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_integer.html">xs:integer</a> server data type
*/
public ServerExpression weekdayFromDate(ServerExpression arg);
/**
* XOR two 64-bit integer values.
*
* <a name="ml-server-type-xor64"></a>
* <p>
* Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:xor64" target="mlserverdoc">xdmp:xor64</a> server function.
* @param x The first value. (of <a href="{@docRoot}/doc-files/types/xs_unsignedLong.html">xs:unsignedLong</a>)
* @param y The second value. (of <a href="{@docRoot}/doc-files/types/xs_unsignedLong.html">xs:unsignedLong</a>)
* @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_unsignedLong.html">xs:unsignedLong</a> server data type
*/
public ServerExpression xor64(ServerExpression x, ServerExpression y);
/**
* Returns an integer between 1 and 366, both inclusive, representing the yearday value in the localized value of arg.
*
* <a name="ml-server-type-yearday-from-date"></a>
* <p>
* Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:yearday-from-date" target="mlserverdoc">xdmp:yearday-from-date</a> server function.
* @param arg The date whose days of the year will be returned. (of <a href="{@docRoot}/doc-files/types/xs_date.html">xs:date</a>)
* @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_integer.html">xs:integer</a> server data type
*/
public ServerExpression yeardayFromDate(ServerExpression arg);
} | {
"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;
}
return null;
} | {
"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;
}
return null;
} | {
"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 = new File(path.toString());
if (file.exists()) {
FileInputStream fis = new FileInputStream(file);
bufReader = new BufferedReader(new InputStreamReader(fis, "UTF-8"));
while (true) {
String line = bufReader.readLine();
if (line == null) {
break;
}
String temp = line.trim();
if (!temp.isEmpty()) {
if (Shell.WINDOWS) {
// On Windows, pid is expected to be a container ID, so find first
// line that parses successfully as a container ID.
try {
ContainerId.fromString(temp);
processId = temp;
break;
} catch (Exception e) {
// do nothing
}
}
else {
// Otherwise, find first line containing a numeric pid.
try {
long pid = Long.parseLong(temp);
if (pid > 0) {
processId = temp;
break;
}
} catch (Exception e) {
// do nothing
}
}
}
}
}
} finally {
if (bufReader != null) {
bufReader.close();
}
}
LOG.debug("Got pid {} from path {}",
(processId != null ? processId : "null"), path);
return processId;
} | {
"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_behavior) = REQUIRED]; | 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_behavior) = REQUIRED]; | 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_names_passthrough = 3 [(.google.api.field_behavior) = REQUIRED]; | 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_names_passthrough = 3 [(.google.api.field_behavior) = REQUIRED]; | 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 Integer(index); // ID
result[i][1] = new Integer(getClientDemand(index)); // Demand
TimeWindow tw = getClientTimeWindow(index); // TW
result[i][2] = new Double(tw.begin);
result[i][3] = new Double(tw.end);
result[i][4] = new Double(getTWClientServiceTime(index));
i++;
}
return result;
} | {
"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();
// ID
result[i][0] = new Integer(
((ID)cp.getPropertyByName("ID")).getValue());
result[i][1] = new Integer(DEFAULT_CLIENT_DEMAND); // Demand
result[i][2] = new Double(DEFAULT_CLIENT_TW_BEGIN);
result[i][3] = new Double(DEFAULT_CLIENT_TW_END);
result[i][4] = new Double(DEFAULT_CLIENT_TW_SERVICE);
}
return result;
} | {
"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.GONE);
}
holder.treeName.setText(treeNameList.get(position));
// holder.inMemoryOf.setText(treeRelationList.get(position));
// holder.NoOfTrees.setText(treeCountList.get(position));
holder.treeAddress.setText(treeAddressList.get(position));
holder.plantDate.setText(plantDateList.get(position));
//new ImageLoadTask(treeImageList.get(position), holder.treeImage,holder.imageBar).execute();
loadImage(treeImageList.get(position),holder.imageBar,holder.treeImage);
// implement setOnClickListener event on item view.
holder.itemView.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
// display a toast with person name on item click
Intent intent = new Intent(context.getApplicationContext(), UpdateTreeDetails.class);
intent.putExtra("treeName",treeNameList.get(position));
intent.putExtra("treeAddress",treeAddressList.get(position));
intent.putExtra("plantDate",plantDateList.get(position));
intent.putExtra("updatedDate",updatedDateList.get(position));
intent.putExtra("updateStatus",updateStatusList.get(position));
intent.putExtra("treeImage",treeImageList.get(position));
intent.putExtra("treeId",treeIdList.get(position));
intent.putExtra("treeRelation",treeRelationList.get(position));
intent.putExtra("treeCount",treeCountList.get(position));
context.startActivity(intent);
}
});
} | {
"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));
intent.putExtra("plantDate",plantDateList.get(position));
intent.putExtra("updatedDate",updatedDateList.get(position));
intent.putExtra("updateStatus",updateStatusList.get(position));
intent.putExtra("treeImage",treeImageList.get(position));
intent.putExtra("treeId",treeIdList.get(position));
intent.putExtra("treeRelation",treeRelationList.get(position));
intent.putExtra("treeCount",treeCountList.get(position));
context.startActivity(intent);
} | {
"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))) {
return false;
}
return true;
} | {
"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.entrySet()) {
SatelliteBeerContainer other_element_key = other_element.getKey();
SatelliteMenuPart other_element_value = other_element.getValue();
SatelliteBeerContainer __this__beerList_copy_key = other_element_key;
SatelliteMenuPart __this__beerList_copy_value = new SatelliteMenuPart(other_element_value);
__this__beerList.put(__this__beerList_copy_key, __this__beerList_copy_value);
}
this.beerList = __this__beerList;
}
if (other.isSetStatusCode()) {
this.statusCode = other.statusCode;
}
} | {
"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);
Session sess = HibernateUtil.currentSession();
tran = sess.beginTransaction();
StudyTaskInfo st = new StudyTaskInfo(slDao.getEntityById(sess, studyLogId), taskNum,
taskName, coin, CurrentTime.getCurrentTime());
stDao.save(sess, st);
tran.commit();
return st.getId();
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
throw new WEBException("增加学习任务信息时出现异常!");
} finally{
HibernateUtil.closeSession();
}
} | {
"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.getEntityById(sess, id);
if(st != null){
st.setCoin(st.getCoin() + newAddCoin);
st.setAddTime(CurrentTime.getCurrentTime());
stDao.update(sess, st);
tran.commit();
return true;
}
return false;
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
throw new WEBException("修改学习任务中奖励金币数信息时出现异常!");
} finally{
HibernateUtil.closeSession();
}
} | {
"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);
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
throw new WEBException("根据学习记录编号、学习任务获取学习任务记录列表时出现异常!");
} finally{
HibernateUtil.closeSession();
}
} | {
"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 e) {
// TODO Auto-generated catch block
e.printStackTrace();
throw new WEBException("获取最后一次的任务记录列表时出现异常!");
} finally{
HibernateUtil.closeSession();
}
} | {
"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();
temp=false;
}
else if (pass.isEmpty())
{
Toast.makeText(JSPassword.this,"Enter a password",Toast.LENGTH_SHORT).show();
temp=false;
}
else
{
temp=false;
et_pass.setText("");
et_confirm_pass.setText("");
Intent intent = new Intent(getApplicationContext(),JSDetails.class);
startActivity(intent);
}
return temp;
} | {
"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.println("Balance = "+ tim.getBalance());
System.out.println("Customer Name = " + bankAccount.getCustomerName());
System.out.println("Email = " + bankAccount.getEmailAddress());
System.out.println("Phone Number = " + bankAccount.getPhoneNumber());
System.out.println("deposit = "+ bankAccount.getDeposit(90));
System.out.println("new balance = "+ bankAccount.getWithdrawal(200));
} | {
"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");
int idx_repeat_type = detail.getColumnIndexOrThrow("repeat_type");
int idx_times_completed = detail.getColumnIndexOrThrow("times_completed");
int repeat_type = detail.getInt(idx_repeat_type);
String repeat_text = "";
Calendar cal = Calendar.getInstance();
cal.setTimeInMillis(detail.getLong(idx_due));
switch(repeat_type){
case 0: // none
repeat_text = "none";
break;
case 1: // daily
repeat_text = "daily";
break;
case 2: // weekdays
repeat_text = "weekdays";
break;
case 3: // weekly
repeat_text = "weekly";
break;
case 4: // monthly
repeat_text = "monthly";
break;
case 5: // annually
repeat_text = "annually";
break;
default:
break;
}
Log.i(TAG,"TIMES COMPLETED:" + detail.getInt(idx_times_completed));
String text = "" + java.net.URLDecoder.decode(detail.getString(idx_desc)) + "\n\nRepeat type: " + repeat_text + "\n\nDue: " + cal.getTime().toString() + "\n\nTimes completed: " + detail.getInt(idx_times_completed);
text_view_detail.setText(text);
task_title = java.net.URLDecoder.decode(detail.getString(idx_title));
} | {
"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>) request.getSession().getAttribute("socials");
List<Aducational> aducational3 = (List<Aducational>) request.getSession().getAttribute("aducationals");
System.out.println("resume=" + resume);
System.out.println("social=" + social + "aducational=" + aducational);
System.out.println(social.getCompany().split(",")[0]);
System.out.println(aducational.getSname().split(",")[0]);
if (fileaot.getOriginalFilename() != null && !"".equals(fileaot.getOriginalFilename().trim()))
{
String filename = null;
// 设置上传图片的保存路径
String savePath = request.getServletContext().getRealPath("/images/");
File file = new File(savePath);
// 判断上传文件的保存目录是否存在
if (!file.exists() && !file.isDirectory())
{
System.out.println(savePath + "目录不存在,需要创建");
// 创建目录
file.mkdir();
}
DiskFileItemFactory factory = new DiskFileItemFactory();
// 2、创建一个文件上传解析器
ServletFileUpload upload = new ServletFileUpload(factory);
upload.setHeaderEncoding("UTF-8");
// 3、判断提交上来的数据是否是上传表单的数据
if (!ServletFileUpload.isMultipartContent(request))
{
// 按照传统方式获取数据
return;
}
try
{
// 報錯 需要過濾文件名稱 java.io.FileNotFoundException:
// G:\测试02\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\FaceUp\WEB-INF\images\C:\Users\Ray\Pictures\2.jpeg
// (文件名、目录名或卷标语法不正确。)
filename = fileaot.getOriginalFilename();
// System.out.print(filename);
if (fileaot.getOriginalFilename().split("\\.")[1].equals("png") || fileaot.getOriginalFilename().split("\\.")[1].equals("jpg") || fileaot.getOriginalFilename().split("\\.")[1].equals("jpeg"))
{
resume.setRepic("images/" + fileaot.getOriginalFilename());
InputStream in = fileaot.getInputStream();// 獲得上傳的輸入流
FileOutputStream out = new FileOutputStream(savePath + filename);// 指定web-inf目錄下的images文件
request.setAttribute("path", "images" + "/" + filename);
int len = 0;
byte buffer[] = new byte[1024];
while ((len = in.read(buffer)) > 0)// 每次讀取
{
out.write(buffer, 0, len);
}
in.close();
out.close();
} else
{ //必须是图片才能上传否则失败
ResponseUtils.outJson(response, "上传必须是图片");
return;
}
} catch (FileNotFoundException e)
{
e.printStackTrace();
} catch (IOException e)
{
e.printStackTrace();
}
}
if (social3.size() != 0)
{
//社会关系更新
social1.setCompany(social.getCompany().split(",")[0]);
social1.setContent(social.getContent().split(",")[0]);
social1.setSocialtime(social.getSocialtime().split(",")[0]);
String s = (social.getSocialid() + "").split(",")[0];
int socialid1 = Integer.valueOf(s);
social1.setUid(uid);
social1.setSocialid(socialid1);
schoolService.updateSocial(social1);
if (social3.size() > 1)
{
social2.setCompany(social.getCompany().split(",")[1]);
social2.setContent(social.getContent().split(",")[1]);
social2.setSocialtime(social.getSocialtime().split(",")[1]);
social2.setUid(uid);
String s1 = (social.getSocialid() + "").split(",")[1];
int socialid2 = Integer.valueOf(s);
social1.setSocialid(socialid2);
schoolService.updateSocial(social2);
}
if (social3.size() == 1 && social.getCompany().split(",").length > 1)
{
social2.setCompany(social.getCompany().split(",")[1]);
social2.setContent(social.getContent().split(",")[1]);
social2.setSocialtime(social.getSocialtime().split(",")[1]);
social2.setUid(uid);
schoolService.insertSocial(social2);
}
} else
{
//插入
social1.setCompany(social.getCompany().split(",")[0]);
social1.setContent(social.getContent().split(",")[0]);
social1.setSocialtime(social.getSocialtime().split(",")[0]);
social1.setUid(uid);
schoolService.insertSocial(social1);
if (social3.size() == 1 && social.getCompany().split(",")[1].length() > 1)
{
social2.setCompany(social.getCompany().split(",")[1]);
social2.setContent(social.getContent().split(",")[1]);
social2.setSocialtime(social.getSocialtime().split(",")[1]);
social2.setUid(uid);
schoolService.insertSocial(social2);
}
}
if (aducational3.size() != 0)
{
//学校更新
aducational1.setAdtime(aducational.getAdtime().split(",")[0]);
aducational1.setSname(aducational.getSname().split(",")[0]);
aducational1.setProfession(aducational.getProfession().split(",")[0]);
aducational1.setUid(uid);
String s = (aducational.getAducationid() + "").split(",")[0];
int aducationid1 = Integer.valueOf(s);
aducational1.setAducationid(aducationid1);
schoolService.updateAducation(aducational1);
if (aducational3.size() > 1)
{
aducational2.setAdtime(aducational.getAdtime().split(",")[1]);
aducational2.setSname(aducational.getSname().split(",")[1]);
aducational2.setProfession(aducational.getProfession().split(",")[1]);
aducational2.setUid(uid);
String s1 = (aducational.getAducationid() + "").split(",")[1];
int aducationid2 = Integer.valueOf(s1);
aducational1.setAducationid(aducationid2);
schoolService.updateAducation(aducational2);
}
if (aducational3.size() == 1 && aducational.getAdtime().split(",").length > 1)
{
aducational2.setAdtime(aducational.getAdtime().split(",")[1]);
aducational2.setSname(aducational.getSname().split(",")[1]);
aducational2.setProfession(aducational.getProfession().split(",")[1]);
aducational2.setUid(uid);
schoolService.insertAducation(aducational2);
}
} else
{
//插入
aducational1.setAdtime(aducational.getAdtime().split(",")[0]);
aducational1.setSname(aducational.getSname().split(",")[0]);
aducational1.setProfession(aducational.getProfession().split(",")[0]);
aducational1.setUid(uid);
schoolService.insertAducation(aducational1);
if (aducational3.size() == 1 && aducational.getAdtime().split(",")[1].length() > 1)
{
aducational2.setAdtime(aducational.getAdtime().split(",")[1]);
aducational2.setSname(aducational.getSname().split(",")[1]);
aducational2.setProfession(aducational.getProfession().split(",")[1]);
aducational2.setUid(uid);
schoolService.insertAducation(aducational2);
}
}
Resume resume1=schoolService.findResumeByUid(uid);
if(resume1==null){
//插入简历表
//简历就更新就行
Degree degreeid = schoolService.findDegreeidByDegreeName(resume);
if(degreeid==null){
schoolService.insertDegreeName(resume);
degreeid = schoolService.findDegreeidByDegreeName(resume);
}
Profession professid = schoolService.findProfessidByProfessName(resume);
if(professid==null){
//先插入专业表再查
schoolService.insertProfessname(resume);
professid = schoolService.findProfessidByProfessName(resume);
}
int sid = schoolService.findSidBySchoolName(resume);
resume.setDegreeid(degreeid.getDegreeid());
resume.setSid(sid);
resume.setProfessid(professid.getProfessid());
resume.setUid(uid);
schoolService.insertUserResume(resume);
}else{
//简历就更新就行
Degree degreeid = schoolService.findDegreeidByDegreeName(resume);
Profession professid = schoolService.findProfessidByProfessName(resume);
if(degreeid==null){
schoolService.insertDegreeName(resume);
degreeid = schoolService.findDegreeidByDegreeName(resume);
}
if(professid==null){
//先插入专业表再查
schoolService.insertProfessname(resume);
professid = schoolService.findProfessidByProfessName(resume);
}
int sid = schoolService.findSidBySchoolName(resume);
resume.setDegreeid(degreeid.getDegreeid());
resume.setSid(sid);
resume.setProfessid(professid.getProfessid());
resume.setUid(uid);
schoolService.updateUserresume(resume);
}
ResponseUtils.outJson(response, "保存成功");
} | {
"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 javax.swing.JLabel();
jLabel4 = new javax.swing.JLabel();
jLabel5 = new javax.swing.JLabel();
jLabel6 = new javax.swing.JLabel();
jLabel7 = new javax.swing.JLabel();
jLabel8 = new javax.swing.JLabel();
jButton1 = new javax.swing.JButton();
Apos = new javax.swing.JTextField();
Bneg = new javax.swing.JTextField();
Oneg = new javax.swing.JTextField();
Opos = new javax.swing.JTextField();
ABneg = new javax.swing.JTextField();
Aneg = new javax.swing.JTextField();
Bpos = new javax.swing.JTextField();
ABpos = new javax.swing.JTextField();
jLabel9 = new javax.swing.JLabel();
jLabel10 = new javax.swing.JLabel();
jLabel11 = new javax.swing.JLabel();
jLabel12 = new javax.swing.JLabel();
jLabel13 = new javax.swing.JLabel();
jTextField9 = new javax.swing.JTextField();
jTextField10 = new javax.swing.JTextField();
jLabel14 = new javax.swing.JLabel();
jComboBox1 = new javax.swing.JComboBox<>();
jButton3 = new javax.swing.JButton();
jLabel15 = new javax.swing.JLabel();
jTextField11 = new javax.swing.JTextField();
jButton4 = new javax.swing.JButton();
jButton2.setText("jButton2");
setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
setTitle("Blood Logistics Manager");
setBackground(new java.awt.Color(102, 102, 255));
setBounds(new java.awt.Rectangle(0, 0, 0, 0));
setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
setForeground(new java.awt.Color(255, 102, 102));
setIconImage(getIconImage());
setResizable(false);
jLabel1.setFont(new java.awt.Font("Corbel", 0, 16)); // NOI18N
jLabel1.setText("A Positive");
jLabel2.setFont(new java.awt.Font("Corbel", 0, 16)); // NOI18N
jLabel2.setText("B Positive");
jLabel3.setFont(new java.awt.Font("Corbel", 0, 16)); // NOI18N
jLabel3.setText("A Negative");
jLabel4.setFont(new java.awt.Font("Corbel", 0, 16)); // NOI18N
jLabel4.setText("B Negative");
jLabel5.setFont(new java.awt.Font("Corbel", 0, 16)); // NOI18N
jLabel5.setText("O Negative");
jLabel6.setFont(new java.awt.Font("Corbel", 0, 16)); // NOI18N
jLabel6.setText("AB Positive");
jLabel7.setFont(new java.awt.Font("Corbel", 0, 16)); // NOI18N
jLabel7.setText("AB Negative");
jLabel8.setFont(new java.awt.Font("Corbel", 0, 16)); // NOI18N
jLabel8.setText("O Positive");
jButton1.setFont(new java.awt.Font("Corbel", 0, 14)); // NOI18N
jButton1.setText("Submit");
jButton1.setToolTipText("");
jButton1.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
sendPintNumber(evt);
}
});
Apos.setBackground(new java.awt.Color(255, 204, 204));
Apos.setFont(new java.awt.Font("Corbel", 0, 16)); // NOI18N
Apos.setHorizontalAlignment(javax.swing.JTextField.CENTER);
Bneg.setBackground(new java.awt.Color(255, 204, 204));
Bneg.setFont(new java.awt.Font("Corbel", 0, 16)); // NOI18N
Bneg.setHorizontalAlignment(javax.swing.JTextField.CENTER);
Oneg.setBackground(new java.awt.Color(255, 204, 204));
Oneg.setFont(new java.awt.Font("Corbel", 0, 16)); // NOI18N
Oneg.setHorizontalAlignment(javax.swing.JTextField.CENTER);
Opos.setBackground(new java.awt.Color(255, 204, 204));
Opos.setFont(new java.awt.Font("Corbel", 0, 16)); // NOI18N
Opos.setHorizontalAlignment(javax.swing.JTextField.CENTER);
ABneg.setBackground(new java.awt.Color(255, 204, 204));
ABneg.setFont(new java.awt.Font("Corbel", 0, 16)); // NOI18N
ABneg.setHorizontalAlignment(javax.swing.JTextField.CENTER);
Aneg.setBackground(new java.awt.Color(255, 204, 204));
Aneg.setFont(new java.awt.Font("Corbel", 0, 16)); // NOI18N
Aneg.setHorizontalAlignment(javax.swing.JTextField.CENTER);
Bpos.setBackground(new java.awt.Color(255, 204, 204));
Bpos.setFont(new java.awt.Font("Corbel", 0, 16)); // NOI18N
Bpos.setHorizontalAlignment(javax.swing.JTextField.CENTER);
ABpos.setBackground(new java.awt.Color(255, 204, 204));
ABpos.setFont(new java.awt.Font("Corbel", 0, 16)); // NOI18N
ABpos.setHorizontalAlignment(javax.swing.JTextField.CENTER);
jLabel9.setFont(new java.awt.Font("Corbel", 1, 18)); // NOI18N
jLabel9.setText("Number of Pints");
jLabel10.setFont(new java.awt.Font("Corbel", 1, 18)); // NOI18N
jLabel10.setText("Blood Types");
jLabel11.setFont(new java.awt.Font("Corbel", 1, 18)); // NOI18N
jLabel11.setText("Set City and State");
jLabel12.setFont(new java.awt.Font("Corbel", 0, 16)); // NOI18N
jLabel12.setText("City");
jLabel13.setFont(new java.awt.Font("Corbel", 0, 16)); // NOI18N
jLabel13.setText("State");
jTextField9.setBackground(new java.awt.Color(255, 204, 204));
jTextField9.setFont(new java.awt.Font("Corbel", 0, 16)); // NOI18N
jTextField9.setHorizontalAlignment(javax.swing.JTextField.CENTER);
jTextField10.setBackground(new java.awt.Color(255, 204, 204));
jTextField10.setFont(new java.awt.Font("Corbel", 0, 16)); // NOI18N
jTextField10.setHorizontalAlignment(javax.swing.JTextField.CENTER);
jLabel14.setFont(new java.awt.Font("Corbel", 1, 18)); // NOI18N
jLabel14.setText("Set Radius From Location to Search");
jComboBox1.setFont(new java.awt.Font("Corbel", 0, 16)); // NOI18N
jComboBox1.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { "10 Miles", "20 Miles", "50 Miles", "100 Miles", "200 Miles", "500 Miles", "Unlimited Miles" }));
jButton3.setFont(new java.awt.Font("Corbel", 0, 14)); // NOI18N
jButton3.setText("Submit");
jButton3.setToolTipText("");
jButton3.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
setRadiusAway(evt);
}
});
jLabel15.setFont(new java.awt.Font("Corbel", 1, 18)); // NOI18N
jLabel15.setText("Set Number of Injured");
jTextField11.setBackground(new java.awt.Color(255, 204, 204));
jTextField11.setFont(new java.awt.Font("Corbel", 0, 16)); // NOI18N
jTextField11.setHorizontalAlignment(javax.swing.JTextField.CENTER);
jButton4.setFont(new java.awt.Font("Corbel", 0, 14)); // NOI18N
jButton4.setText("Submit");
jButton4.setToolTipText("");
jButton4.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
setInjuryNumber(evt);
}
});
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
getContentPane().setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
.addGroup(layout.createSequentialGroup()
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(jLabel15, javax.swing.GroupLayout.PREFERRED_SIZE, 191, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(jLabel10))
.addGroup(layout.createSequentialGroup()
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(jComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE, 250, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(43, 43, 43))
.addGroup(layout.createSequentialGroup()
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGap(96, 96, 96)
.addComponent(jButton4, javax.swing.GroupLayout.PREFERRED_SIZE, 113, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGroup(layout.createSequentialGroup()
.addGap(76, 76, 76)
.addComponent(jLabel11))
.addGroup(layout.createSequentialGroup()
.addGap(100, 100, 100)
.addComponent(jButton3, javax.swing.GroupLayout.PREFERRED_SIZE, 113, javax.swing.GroupLayout.PREFERRED_SIZE)))
.addGap(0, 0, Short.MAX_VALUE))
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
.addGap(0, 0, Short.MAX_VALUE)
.addComponent(jLabel14)))
.addGap(18, 18, 18))
.addGroup(layout.createSequentialGroup()
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGap(39, 39, 39)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
.addGroup(layout.createSequentialGroup()
.addComponent(jLabel12, javax.swing.GroupLayout.PREFERRED_SIZE, 80, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jTextField10, javax.swing.GroupLayout.PREFERRED_SIZE, 186, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGroup(layout.createSequentialGroup()
.addComponent(jLabel13, javax.swing.GroupLayout.PREFERRED_SIZE, 80, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jTextField9))))
.addGroup(layout.createSequentialGroup()
.addGap(53, 53, 53)
.addComponent(jTextField11, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE)))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 30, Short.MAX_VALUE)))
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
.addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 80, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(jLabel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(jLabel4, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(jLabel6, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(jLabel7, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(jLabel8, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, 89, javax.swing.GroupLayout.PREFERRED_SIZE))))
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGap(52, 52, 52)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
.addComponent(jButton1, javax.swing.GroupLayout.DEFAULT_SIZE, 85, Short.MAX_VALUE)
.addComponent(Apos)
.addComponent(Oneg)
.addComponent(Opos, javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(ABneg)
.addComponent(Aneg, javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(Bpos, javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(Bneg, javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(ABpos, javax.swing.GroupLayout.Alignment.LEADING)))
.addGroup(layout.createSequentialGroup()
.addGap(29, 29, 29)
.addComponent(jLabel9)))
.addGap(51, 51, 51))
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
.addContainerGap(14, Short.MAX_VALUE)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel9, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel10, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel15, javax.swing.GroupLayout.PREFERRED_SIZE, 37, javax.swing.GroupLayout.PREFERRED_SIZE))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 33, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(Apos, javax.swing.GroupLayout.PREFERRED_SIZE, 33, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jTextField11, javax.swing.GroupLayout.PREFERRED_SIZE, 33, javax.swing.GroupLayout.PREFERRED_SIZE))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 33, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(Aneg, javax.swing.GroupLayout.PREFERRED_SIZE, 33, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jButton4, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 33, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(Bpos, javax.swing.GroupLayout.PREFERRED_SIZE, 33, javax.swing.GroupLayout.PREFERRED_SIZE))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 33, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(Bneg, javax.swing.GroupLayout.PREFERRED_SIZE, 33, javax.swing.GroupLayout.PREFERRED_SIZE))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel6, javax.swing.GroupLayout.PREFERRED_SIZE, 33, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(ABpos, javax.swing.GroupLayout.PREFERRED_SIZE, 33, javax.swing.GroupLayout.PREFERRED_SIZE))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel7, javax.swing.GroupLayout.PREFERRED_SIZE, 33, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(ABneg, javax.swing.GroupLayout.PREFERRED_SIZE, 33, javax.swing.GroupLayout.PREFERRED_SIZE))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel8, javax.swing.GroupLayout.PREFERRED_SIZE, 33, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(Opos, javax.swing.GroupLayout.PREFERRED_SIZE, 33, javax.swing.GroupLayout.PREFERRED_SIZE))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, 33, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(Oneg, javax.swing.GroupLayout.PREFERRED_SIZE, 33, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(27, 27, 27)
.addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGroup(layout.createSequentialGroup()
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jLabel11, javax.swing.GroupLayout.PREFERRED_SIZE, 37, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel12, javax.swing.GroupLayout.PREFERRED_SIZE, 33, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jTextField10, javax.swing.GroupLayout.PREFERRED_SIZE, 33, javax.swing.GroupLayout.PREFERRED_SIZE))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel13, javax.swing.GroupLayout.PREFERRED_SIZE, 33, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jTextField9, javax.swing.GroupLayout.PREFERRED_SIZE, 33, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(20, 20, 20)
.addComponent(jLabel14, javax.swing.GroupLayout.PREFERRED_SIZE, 37, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(18, 18, 18)
.addComponent(jButton3, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE)))
.addGap(20, 20, 20))
);
Apos.getAccessibleContext().setAccessibleName("");
Opos.getAccessibleContext().setAccessibleName("");
getAccessibleContext().setAccessibleName("Blood Logistics Manager");
pack();
} | {
"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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.