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 |
|---|---|---|---|---|---|---|
///Click the Customers option driver.findElement(By.xpath("//span[.='Customers']")).click(); Create instance of Java script executor JavascriptExecutor je = (JavascriptExecutor) driver; Identify the WebElement which will appear after scrolling down WebElement element = driver.findElement(By.xpath("//span[.='House Accou... | @Test(priority=3)
public void HouseAccount_Method_OpenPage() throws Exception
{
driver.get(Utility.getProperty("baseURL")+Utility.getProperty("store_Id")+"houseAccount");
Thread.sleep(5000);
//Check House Account page opened or not
if(driver.findElement(By.xpath("//a[.='HouseAccount']")).getText().equal... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void scrollDownThePageToFindTheEnrollNowButton() {\n By element =By.xpath(\"//a[@class='btn btn-default enroll']\");\n\t scrollIntoView(element);\n\t _normalWait(3000);\n }",
"@Test\n public void scrollIntoView() throws InterruptedException {\n/*\nTask:\ngo to http://carettahot... | [
"0.72373945",
"0.7201423",
"0.68331015",
"0.6693802",
"0.66532844",
"0.6630084",
"0.65505815",
"0.6541462",
"0.6495084",
"0.64642906",
"0.6407156",
"0.6376381",
"0.63512313",
"0.6339301",
"0.6284808",
"0.62669253",
"0.6263858",
"0.62576044",
"0.6257126",
"0.6249901",
"0.62096... | 0.0 | -1 |
created by ketao by 2019/03/21 | public interface BaseConstant {
//=======数据来源=========//
/**
* 微信公众号
*/
Integer SOURCE_TYPE_WECHAT=1;
/**
* 后台
*/
Integer SOURCE_TYPE_WEB=2;
/**
* APP
*/
Integer SOURCE_TYPE_APP=3;
//=======数据来源end=========//
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void perish() {\n \n }",
"private static void cajas() {\n\t\t\n\t}",
"private stendhal() {\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"public void mo38117a() {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic v... | [
"0.5488285",
"0.5479203",
"0.5456386",
"0.53974646",
"0.5356602",
"0.5346789",
"0.5321748",
"0.529519",
"0.5283026",
"0.52099025",
"0.52044916",
"0.52044916",
"0.52044916",
"0.52044916",
"0.52044916",
"0.52044916",
"0.52044916",
"0.5203951",
"0.5140935",
"0.5140935",
"0.51298... | 0.0 | -1 |
Insert entry into the index file. | abstract public void insert(final KeyClass data, final RID rid); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void indexItem(IndexDocument indexDoc) {\n if(bDebug) System.out.println(\"\\n*** document to index - \" + indexDoc);\n Indexer indexer=null;\n try {\n indexer=new Indexer(PetstoreConstants.PETSTORE_INDEX_DIRECTORY, false);\n PetstoreUtil.getLogger().log(Level.FIN... | [
"0.6363306",
"0.6288294",
"0.6275662",
"0.62650335",
"0.6197107",
"0.61802435",
"0.6149447",
"0.6084058",
"0.60489035",
"0.60419285",
"0.6015125",
"0.5953484",
"0.59111756",
"0.59088135",
"0.5908466",
"0.5856505",
"0.58449906",
"0.58307886",
"0.5813546",
"0.57985455",
"0.5781... | 0.0 | -1 |
Delete entry from the index file. | abstract public boolean Delete(final KeyClass data, final RID rid); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public synchronized void delete(long entry) throws IOException {\n long startOfEntry = IDX_START_OF_CONTENT + (entry * bytesPerSlot);\n \n // Remove the entry by writing a '\\n' to the first byte\n idx.seek(startOfEntry);\n idx.writeChar('\\n');\n idx.write(new byte[bytesPerSlot - 2]);\n \n ... | [
"0.7762577",
"0.6907505",
"0.6726972",
"0.666473",
"0.66357994",
"0.6626356",
"0.65793055",
"0.65222585",
"0.6522126",
"0.64830494",
"0.64520776",
"0.64060724",
"0.63825685",
"0.63606656",
"0.6356997",
"0.6319979",
"0.62727565",
"0.62727123",
"0.6262342",
"0.6225984",
"0.6219... | 0.0 | -1 |
only passes because we don't test anything just tests the restart capability! | @Test public void testRestartLogserver() throws InterruptedException,IOException {
logServer=new LogServer(host,service,null,getClass().getSimpleName());
thread=new Thread(new Runnable() {
@Override public void run() {
logServer.run();
}
},"log server");
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\n public void restartSystemTest() {\n //Setup\n launcher.launch();\n Game game = launcher.getGame();\n game.start();\n game.stop();\n assertThat(game.isInProgress()).isFalse();\n\n //Execute\n game.start();\n\n //Assert\n assertThat(gam... | [
"0.7591184",
"0.72496986",
"0.71562403",
"0.70498806",
"0.6894574",
"0.684453",
"0.6719157",
"0.66976595",
"0.6686872",
"0.6680064",
"0.665704",
"0.6608318",
"0.6604303",
"0.65791404",
"0.6525306",
"0.6525306",
"0.6525306",
"0.64951754",
"0.649231",
"0.649231",
"0.649231",
... | 0.0 | -1 |
Creates new form BuscarSabor | public CadastrarSabor() {
initComponents();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public creacionempresa() {\n initComponents();\n mostrardatos();\n }",
"public NewConsultasS() {\n initComponents();\n limpiar();\n bloquear();\n }",
"public BuscarProvedor() {\n initComponents();\n }",
"public BuscarReserva() {\r\n initComponents();\... | [
"0.6776278",
"0.6559406",
"0.64844406",
"0.63629764",
"0.6349671",
"0.63355625",
"0.6237752",
"0.62365913",
"0.62019247",
"0.6194085",
"0.6160034",
"0.6155445",
"0.61298573",
"0.61281323",
"0.6124942",
"0.6090425",
"0.6066068",
"0.60519004",
"0.6047253",
"0.60381365",
"0.6032... | 0.62154573 | 8 |
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() {
jLabel1 = new javax.swing.JLabel();
jtnome = new javax.swing.JTextField();
jbsalvar = new javax.swing.JButton();
setClosable(... | {
"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.73213893",
"0.72913563",
"0.72913563",
"0.72913563",
"0.7286415",
"0.724936",
"0.72132975",
"0.72076875",
"0.71963966",
"0.7190991",
"0.7184836",
"0.71593595",
"0.71489584",
"0.709429",
"0.7080468",
"0.70567",
"0.6987573",
"0.69780385",
"0.69556123",
"0.69538146",
"0.69455... | 0.0 | -1 |
TODO Autogenerated method stub | public static Object findById(Class clazz, Serializable id) {
Session session = null;
Transaction ts = null;
Object obj = null;
try {
session = openSession();
ts = session.beginTransaction();
obj = session.load(clazz, id);
ts.commit();
}catch(Exception e) {
if(ts != null) {
ts.rollback... | {
"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 |
Returns an InetAddress object given the raw IP address. The argument is in network byte order: the highest order byte of the address is in getAddress()[0]. This method doesn't block, i.e. no reverse name service lookup is performed. IPv4 address byte array must be 4 bytes long and IPv6 byte array must be 16 bytes long | public static IPAddress getByAddress(byte[] addr)
throws UnknownHostException
{
IPAddress result = null;
java.net.InetAddress jnetAddr = null;
if(addr.length==16) {
StringBuffer sb = new StringBuffer();
for(int i=0; i<16; i=i+2) {
sb.append(Integer.toHexString(0xFF & addr[i]));
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"InetAddress getAddress();",
"InetAddress getAddress();",
"public InternetAddress getFromAddress();",
"private static String convertIpAddress(int rawAddress)\n {\n if (ByteOrder.nativeOrder().equals(ByteOrder.LITTLE_ENDIAN)) {\n rawAddress = Integer.reverseBytes(rawAddre... | [
"0.6708217",
"0.6708217",
"0.6534083",
"0.6272063",
"0.62550217",
"0.6169014",
"0.6046147",
"0.6031738",
"0.58570313",
"0.5782706",
"0.5770029",
"0.5753722",
"0.574766",
"0.5727025",
"0.57198787",
"0.5706598",
"0.5693538",
"0.56273824",
"0.56261235",
"0.5587655",
"0.55265117"... | 0.72022945 | 0 |
TODO only works on IPv4 now | public static IPAddress getByAddress(int addr) throws UnknownHostException {
StringBuffer sb = new StringBuffer();
for (int shift = 24; shift > 0; shift -= 8) {
// process 3 bytes, from high order byte down
sb.append(Integer.toString((addr >>> shift) & 0xff));
sb.append('.');
}
sb.append(Integer.toStr... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"int getClientIpV4();",
"int getS1Ip();",
"int getInIp();",
"int getInIp();",
"java.lang.String getIpv4();",
"String getAddr();",
"int getIp();",
"int getIp();",
"int getIp();",
"String getIp();",
"String getIp();",
"@Override\r\n\tpublic boolean hasIpAddressSupport() {\n\t\treturn false;\r\n\... | [
"0.68033427",
"0.65171015",
"0.6344366",
"0.6344366",
"0.6308423",
"0.621424",
"0.6193533",
"0.6193533",
"0.6193533",
"0.61815745",
"0.61815745",
"0.6161812",
"0.61600864",
"0.61338234",
"0.6123101",
"0.6110551",
"0.61019844",
"0.61019844",
"0.61019844",
"0.61019844",
"0.6101... | 0.0 | -1 |
Parse a literal representation of an IP address and returns the corresponding IPAddress class. | public static IPAddress parseHostAddress(String hostAddress)
throws UnknownHostException
{
InetAddress jnetAddr = InetAddress.getByName(hostAddress);
return getByAddress(jnetAddr.getAddress());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static IPV4Address parseAddress(String source)\n {\n if(source == null || source.length() <= 0){\n return new IPV4Address();\n }\n\n source = source.trim();\n\n int[] octs = new int[4];\n\n Scanner parse = new Scanner(source);\n parse.useDelimiter(\".\... | [
"0.5638015",
"0.5578203",
"0.556105",
"0.5470006",
"0.54058313",
"0.53189284",
"0.53135246",
"0.5184021",
"0.513772",
"0.5118379",
"0.51137185",
"0.51124257",
"0.51012355",
"0.504604",
"0.5011457",
"0.49676046",
"0.49504805",
"0.49275893",
"0.4918329",
"0.4889949",
"0.4881731... | 0.50169396 | 14 |
Returns the raw IP address of this InetAddress object. The result is in network byte order: the highest order byte of the address is in getAddress()[0]. | public byte[] getAddress() {
return address;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getIp() {\n return getIpString(inetAddress);\n }",
"public java.lang.String getIp() {\n java.lang.Object ref = ip_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.go... | [
"0.7349296",
"0.7060038",
"0.7060038",
"0.7060038",
"0.70307475",
"0.7025019",
"0.7025019",
"0.7007043",
"0.70054656",
"0.69944733",
"0.6992467",
"0.6965645",
"0.69614905",
"0.6943098",
"0.6942975",
"0.6920467",
"0.6882384",
"0.68681616",
"0.68681616",
"0.68681616",
"0.686816... | 0.0 | -1 |
Returns the IP address string in textual presentation. | public String getHostAddress() {
return javaNetAddress.getHostAddress();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"java.lang.String getIp();",
"java.lang.String getIp();",
"java.lang.String getIp();",
"java.lang.String getIp();",
"java.lang.String getIp();",
"java.lang.String getIp();",
"java.lang.String getIp();",
"java.lang.String getIp();",
"public java.lang.String getIp() {\n java.lang.Object ref = i... | [
"0.75199777",
"0.75199777",
"0.75199777",
"0.75199777",
"0.75199777",
"0.75199777",
"0.75199777",
"0.75199777",
"0.7428225",
"0.73880035",
"0.738737",
"0.7382289",
"0.73801935",
"0.73801935",
"0.7344613",
"0.7344613",
"0.7344613",
"0.7333032",
"0.7293043",
"0.7261232",
"0.724... | 0.0 | -1 |
Utility routine to check if the InetAddress in a wildcard address. | public boolean isAnyLocalAddress() {
return javaNetAddress.isAnyLocalAddress();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private boolean isAllowedAddress(String ipAddress) {\n if (allowedAddresses == null) {\n return false;\n }\n\n // IPv4\n int offset = ipAddress.lastIndexOf('.');\n if (offset == -1) {\n // IPv6\n offset = ipAddress.lastIndexOf(':');\n i... | [
"0.65406203",
"0.6499105",
"0.6464641",
"0.6330644",
"0.62792164",
"0.6164231",
"0.6039469",
"0.6005729",
"0.60036635",
"0.59519535",
"0.5873977",
"0.5833237",
"0.58170706",
"0.58090055",
"0.5777601",
"0.57175654",
"0.57175654",
"0.56923723",
"0.5682425",
"0.5624887",
"0.5604... | 0.5107682 | 58 |
Utility routine to check if the InetAddress is an link local address. | public boolean isLinkLocalAddress() {
return javaNetAddress.isLinkLocalAddress();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static boolean isLocal(InetAddress addr) {\n if (addr.isAnyLocalAddress() || addr.isLoopbackAddress())\n return true;\n\n // Check if the address is defined on any interface\n try {\n return NetworkInterface.getByInetAddress(addr) != null;\n }\n catch... | [
"0.7189544",
"0.66499794",
"0.6586445",
"0.6584024",
"0.65430576",
"0.64006644",
"0.6396519",
"0.63588035",
"0.6111949",
"0.60314286",
"0.58222663",
"0.5801699",
"0.57818115",
"0.5771237",
"0.5771237",
"0.5762112",
"0.5717028",
"0.5570038",
"0.55410165",
"0.55176216",
"0.5517... | 0.82400244 | 0 |
Utility routine to check if the InetAddress is a loopback address. | public boolean isLoopbackAddress() {
return javaNetAddress.isLoopbackAddress();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean isAnyLocalAddress() {\n\t\treturn javaNetAddress.isAnyLocalAddress();\n\t}",
"public static boolean isLocal(InetAddress addr) {\n if (addr.isAnyLocalAddress() || addr.isLoopbackAddress())\n return true;\n\n // Check if the address is defined on any interface\n try {... | [
"0.63758636",
"0.62711805",
"0.6116269",
"0.5949139",
"0.5889717",
"0.5853722",
"0.58323896",
"0.5760149",
"0.57528275",
"0.5686382",
"0.5563729",
"0.5563729",
"0.5563729",
"0.5563729",
"0.5519457",
"0.5519457",
"0.55019134",
"0.53965074",
"0.5352732",
"0.5338629",
"0.5241833... | 0.7634832 | 0 |
Utility routine to check if the multicast address has global scope. | public boolean isMCGlobal() {
return javaNetAddress.isMCGlobal();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean isMulticast() {\n return multicast;\n }",
"public boolean isGlobal();",
"public boolean isMulticastAddress() {\n\t\treturn javaNetAddress.isMulticastAddress();\n\t}",
"boolean hasAddress();",
"boolean hasAddress();",
"public boolean isGlobalScopeOnly() {\n return this.isGlob... | [
"0.63503087",
"0.63246244",
"0.63199985",
"0.59159875",
"0.59159875",
"0.58724225",
"0.58520675",
"0.58331937",
"0.58225054",
"0.5805121",
"0.57920223",
"0.57010084",
"0.57004654",
"0.5676426",
"0.5595252",
"0.5586952",
"0.5578722",
"0.55254155",
"0.55185586",
"0.5510962",
"0... | 0.70973855 | 0 |
Utility routine to check if the multicast address has link scope. | public boolean isMCLinkLocal() {
return javaNetAddress.isMCLinkLocal();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean isMulticast() {\n return multicast;\n }",
"public boolean isMulticastAddress() {\n\t\treturn javaNetAddress.isMulticastAddress();\n\t}",
"public boolean hasMAddr() {\n LogWriter.logMessage(LogWriter.TRACE_DEBUG, \"hasMaddr () \");\n Via via=(Via)sipHeader;\n \n ... | [
"0.62086093",
"0.61569804",
"0.6112537",
"0.60428214",
"0.5664314",
"0.5664314",
"0.5501069",
"0.546036",
"0.5447058",
"0.54166716",
"0.5412875",
"0.53802294",
"0.53651416",
"0.5346277",
"0.53444445",
"0.52968246",
"0.5265489",
"0.52635247",
"0.5261641",
"0.5249188",
"0.52428... | 0.55411196 | 6 |
Utility routine to check if the multicast address has node scope. | public boolean isMCNodeLocal() {
return javaNetAddress.isMCNodeLocal();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"boolean hasAddress();",
"boolean hasAddress();",
"public boolean isMulticast() {\n return multicast;\n }",
"public boolean isMulticastAddress() {\n\t\treturn javaNetAddress.isMulticastAddress();\n\t}",
"boolean hasNodeId();",
"boolean hasHasAddress();",
"boolean hasHasNodeID();",
"public boolean ... | [
"0.6064833",
"0.6064833",
"0.6023056",
"0.60141194",
"0.59388846",
"0.5836164",
"0.58164626",
"0.57413495",
"0.57410604",
"0.5692682",
"0.56176525",
"0.5559696",
"0.5559696",
"0.5541645",
"0.5522047",
"0.54554003",
"0.5453808",
"0.5426825",
"0.54213685",
"0.53957117",
"0.5350... | 0.59504 | 4 |
Utility routine to check if the multicast address has organization scope. | public boolean isMCOrgLocal() {
return javaNetAddress.isMCOrgLocal();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean isMulticast() {\n return multicast;\n }",
"public boolean isMulticastAddress() {\n\t\treturn javaNetAddress.isMulticastAddress();\n\t}",
"public boolean isSetOrganizationId()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_... | [
"0.5928558",
"0.591553",
"0.5786847",
"0.573943",
"0.573943",
"0.563814",
"0.5635386",
"0.5369896",
"0.53646564",
"0.5349957",
"0.5331632",
"0.53201294",
"0.5303441",
"0.5270108",
"0.525362",
"0.5234291",
"0.523425",
"0.5172148",
"0.51711637",
"0.5166403",
"0.51456255",
"0.... | 0.50309443 | 34 |
Utility routine to check if the multicast address has site scope. | public boolean isMCSiteLocal() {
return javaNetAddress.isMCSiteLocal();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean isSiteLocalAddress() {\n\t\treturn javaNetAddress.isSiteLocalAddress();\n\t}",
"boolean hasAddress();",
"boolean hasAddress();",
"boolean hasHasAddress();",
"public boolean hasSite() {\n return fieldSetFlags()[0];\n }",
"public boolean hasMAddr() {\n LogWriter.logMessage(Lo... | [
"0.6149003",
"0.594068",
"0.594068",
"0.5849558",
"0.58352625",
"0.5828233",
"0.57757187",
"0.5707495",
"0.56252193",
"0.55968684",
"0.5512237",
"0.5491615",
"0.54340416",
"0.53975326",
"0.5368687",
"0.53489304",
"0.53489304",
"0.53489304",
"0.53489304",
"0.53333366",
"0.5290... | 0.4818734 | 83 |
Utility routine to check if the InetAddress is an IP multicast address. | public boolean isMulticastAddress() {
return javaNetAddress.isMulticastAddress();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean isMulticast() {\n return multicast;\n }",
"private boolean isIpv6Multicast(Ethernet eth) {\n return eth.getEtherType() == Ethernet.TYPE_IPV6 && eth.isMulticast();\n }",
"boolean hasIp();",
"boolean hasIp();",
"boolean hasIp();",
"boolean hasIp();",
"public static boolean is... | [
"0.6975005",
"0.6436787",
"0.5858109",
"0.5858109",
"0.5858109",
"0.5858109",
"0.5832434",
"0.5778269",
"0.57020515",
"0.56740576",
"0.56709087",
"0.5665821",
"0.56602913",
"0.5585236",
"0.55788594",
"0.55389476",
"0.55125356",
"0.5445699",
"0.5356587",
"0.5343447",
"0.530460... | 0.7768627 | 0 |
Utility routine to check if the InetAddress is a site local address.} | public boolean isSiteLocalAddress() {
return javaNetAddress.isSiteLocalAddress();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static boolean isLocal(InetAddress addr) {\n if (addr.isAnyLocalAddress() || addr.isLoopbackAddress())\n return true;\n\n // Check if the address is defined on any interface\n try {\n return NetworkInterface.getByInetAddress(addr) != null;\n }\n catch... | [
"0.7187426",
"0.7013916",
"0.69291985",
"0.69209737",
"0.68253744",
"0.66879165",
"0.66365707",
"0.6607418",
"0.6547911",
"0.6547911",
"0.6547911",
"0.6547911",
"0.64533204",
"0.63588417",
"0.63588417",
"0.6115996",
"0.60999715",
"0.6045846",
"0.60314155",
"0.60314155",
"0.59... | 0.8215312 | 0 |
Returns a map of all pubserver handlers the _only tagged pubservers represent nondefault pubservers | private Map<String, Object> generatePubServerHandlerMap() throws PSNotFoundException {
IPSPublisherService pubsvc = PSPublisherServiceLocator.getPublisherService();
Map<String, Object> handlerMap = new HashMap<>();
IPSDeliveryType tmp = pubsvc.loadDeliveryType("ftp");
handlerMap.put("... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Map<String, Handler> handlers();",
"public Map<HandlerRegistryInfo, PhaseHandler> getHandlers() {\r\n return this.delegate.getHandlers();\r\n }",
"public Map<String, Integer> getBungeeServerProtocols() {\n return get(\"bungee-servers\", Map.class, new HashMap<>());\n }",
"@Override\r\n\tp... | [
"0.625556",
"0.5744123",
"0.5697894",
"0.5244482",
"0.5201211",
"0.51601523",
"0.51253575",
"0.5112172",
"0.50968623",
"0.5086326",
"0.50784",
"0.50705403",
"0.50705403",
"0.5037352",
"0.5025029",
"0.50049555",
"0.49885446",
"0.49885446",
"0.49706483",
"0.49599636",
"0.493613... | 0.73728967 | 0 |
Gets the publish server name and validate the name. | private String getPubServerName(String serverName) throws PSPubServerServiceException {
serverName = StringUtils.trim(serverName);
if (StringUtils.isBlank(serverName)) {
throw new PSPubServerServiceException("The server name cannot be empty.");
}
return serverName;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getServername() {\r\n return servername;\r\n }",
"public static server getNameServer(){\n return nameServer;\n }",
"public String getServerName() {\n\t\treturn m_serverName;\n\t}",
"public static final String getPublisherName() { return publisherName; }",
"public String ge... | [
"0.652036",
"0.6215731",
"0.6058984",
"0.5849966",
"0.58390385",
"0.5835578",
"0.5798781",
"0.5702397",
"0.5702397",
"0.5669898",
"0.56257445",
"0.55412054",
"0.5534884",
"0.55337965",
"0.55156356",
"0.5483162",
"0.5478983",
"0.5478983",
"0.5460917",
"0.5460917",
"0.54209274"... | 0.7403988 | 0 |
Deletes the specified publishserver. | private void deletePubServer(PSPubServer pubServer) throws PSPubServerServiceException, PSNotFoundException {
siteDataService.deletePublishingItemsByPubServer(pubServer);
pubServerDao.deletePubServer(pubServer);
if (!equalsIgnoreCase(pubServer.getPublishType(), PublishType.database.name())) {
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Server deleteServer(int serverId){\n\t\tlogger.info(\"Destroying the server\");\n\t\tServer server = getServerById(serverId);\n\t\tserver.setServerStatus(ServerStatus.DESTROYED);\n\t\treturn server;\n\t}",
"public int delete(String serverName, String serverCmd){\n\t\treturn dbWritable.delete(\"servers\", ... | [
"0.58225965",
"0.568991",
"0.562938",
"0.55019176",
"0.53220034",
"0.52523994",
"0.5211129",
"0.52010614",
"0.51882017",
"0.5143131",
"0.5123918",
"0.511022",
"0.51051563",
"0.5082583",
"0.507341",
"0.5072095",
"0.50555134",
"0.50412244",
"0.50412184",
"0.5022179",
"0.498715"... | 0.74364156 | 0 |
Helper method to set the properties related to folder and own server settings | private void setFolderProperty(PSPubServer server, PSPublishServerInfo pubServerInfo, IPSSite site)
{
String ownServerFlagVal = pubServerInfo.findProperty(OWN_SERVER_FLAG);
String defaultServerVal = pubServerInfo.findProperty(DEFAULT_SERVER_FLAG);
String publishFolderVal = pubServerInfo.find... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private boolean setFolderProperty(PSPubServer server, IPSSite site, String publishFolderValue, Boolean isOwnServerSet,\n String ownServerVal, Boolean isDefaultServerSet)\n {\n String propertyValue = EMPTY;\n Boolean ownServer = false;\n\n String publishT... | [
"0.69026124",
"0.6679295",
"0.6404394",
"0.6110534",
"0.6100548",
"0.5922611",
"0.57948714",
"0.5790715",
"0.5757724",
"0.57560754",
"0.57357216",
"0.5701291",
"0.5699012",
"0.5677235",
"0.56558937",
"0.5651252",
"0.5617835",
"0.5607641",
"0.56051385",
"0.56024724",
"0.559962... | 0.69202465 | 0 |
Configure the folder property value and set on the supplied pub server. | private boolean setFolderProperty(PSPubServer server, IPSSite site, String publishFolderValue, Boolean isOwnServerSet,
String ownServerVal, Boolean isDefaultServerSet)
{
String propertyValue = EMPTY;
Boolean ownServer = false;
String publishType = serve... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void setFolderProperty(PSPubServer server, PSPublishServerInfo pubServerInfo, IPSSite site)\n {\n String ownServerFlagVal = pubServerInfo.findProperty(OWN_SERVER_FLAG);\n String defaultServerVal = pubServerInfo.findProperty(DEFAULT_SERVER_FLAG);\n String publishFolderVal = pubServer... | [
"0.75929356",
"0.6750308",
"0.61815125",
"0.553348",
"0.54935277",
"0.54098785",
"0.53951204",
"0.536791",
"0.5270331",
"0.5209708",
"0.5172264",
"0.51588595",
"0.5145989",
"0.510699",
"0.50782907",
"0.5066217",
"0.50532556",
"0.504524",
"0.5037834",
"0.503743",
"0.50363314",... | 0.7552119 | 1 |
Helper method to set the properties related to format | private void setFormatProperty(PSPubServer server, PSPublishServerInfo pubServerInfo, IPSSite site)
{
boolean isXmlSet = Boolean.parseBoolean(pubServerInfo.findProperty(XML_FLAG));
String propertyValue = isXmlSet ? XML_FLAG : HTML_FLAG;
server.addProperty(IPSPubServerDao.PUBLISH_FORMAT_PROP... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setFormat(String value) {\n/* 198 */ setValue(\"format\", value);\n/* */ }",
"public void setProperties() {\r\n\t\tconfigProps.setProperty(\"Root\", textRoot.getText());\r\n\t\tconfigProps.setProperty(\"Map\", textMap.getText());\r\n\t\tconfigProps.setProperty(\"Out\", textOut.getText());\r... | [
"0.6596663",
"0.65095115",
"0.6456264",
"0.64526564",
"0.6404083",
"0.63943726",
"0.6314332",
"0.62869084",
"0.62835693",
"0.6265592",
"0.6236592",
"0.61289597",
"0.61269665",
"0.61052364",
"0.60922575",
"0.60922575",
"0.60922575",
"0.6069752",
"0.60474473",
"0.60324",
"0.602... | 0.61013037 | 14 |
Converts a PSPubServer object to PSPublishServerInfo | private PSPublishServerInfo toPSPublishServerInfo(IPSPubServer pubServer, IPSSite site, boolean includeProperties) throws PSPubServerServiceException {
PSPublishServerInfo serverInfo = new PSPublishServerInfo();
boolean needToSave =false;
Set<PSPubServerProperty> properties = pubServer.getProp... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private IPSGuid getPubServerGuid(String serverId)\n {\n return guidMgr.makeGuid(serverId, PSTypeEnum.PUBLISHING_SERVER);\n }",
"private void updatePublishTypeForStaging(IPSPubServer server)\n {\n String pubType = server.getPublishType();\n if(PSPubServer.STAGING.equalsIgnoreCase( se... | [
"0.51453596",
"0.4900917",
"0.4761975",
"0.47537035",
"0.47136244",
"0.4713109",
"0.46951663",
"0.46646345",
"0.4649856",
"0.46402505",
"0.46237236",
"0.46192056",
"0.46189478",
"0.46160135",
"0.46145755",
"0.4598557",
"0.45977533",
"0.4594806",
"0.45945287",
"0.45476717",
"0... | 0.6780002 | 0 |
Helper method to set the flag properties related to password | private void setPasswordFlags(IPSPubServer pubServer, PSPublishServerInfo serverInfo)
{
String passwordValue = pubServer.getPropertyValue(IPSPubServerDao.PUBLISH_PASSWORD_PROPERTY);
PSPubServerProperty privateKeyProperty = pubServer.getProperty(IPSPubServerDao.PUBLISH_PRIVATE_KEY_PROPERTY);
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setPassword(String pass);",
"void setPassword(String password);",
"void setPassword(String password);",
"void setPassword(String password);",
"public void setPassword(String password)\r\n/* 26: */ {\r\n/* 27:42 */ this.password = password;\r\n/* 28: */ }",
"public void setPassword... | [
"0.7150563",
"0.70714396",
"0.70714396",
"0.70714396",
"0.69116336",
"0.6909408",
"0.689385",
"0.68575543",
"0.6848792",
"0.67801195",
"0.66928554",
"0.66906756",
"0.6660312",
"0.6641096",
"0.66409075",
"0.65996385",
"0.6599465",
"0.6563239",
"0.6541521",
"0.6485798",
"0.6472... | 0.6791894 | 9 |
Helper method to set the flag properties related to the folder | private void setFolderFlags(IPSPubServer pubServer, IPSSite site, PSPublishServerInfo serverInfo)
{
Boolean isOwnServer = Boolean.parseBoolean(pubServer.getProperty(IPSPubServerDao.PUBLISH_OWN_SERVER_PROPERTY)
.getValue()) ? true : false;
String folderValue = pubServer.getProperty(IP... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setDirFlag(boolean dirFlag) { this.dirFlag = dirFlag; }",
"protected void setFlag() {\n flag = flagVal;\n }",
"protected void setFlag() {\n flag = flagVal;\n }",
"void setBinaryFileAttribute(boolean flag);",
"Update withFolderPath(String folderPath);",
"public void setFlag( Ke... | [
"0.6618519",
"0.61284435",
"0.61284435",
"0.5826496",
"0.5794488",
"0.5750274",
"0.57166547",
"0.5714748",
"0.5697875",
"0.5677179",
"0.56460243",
"0.5559955",
"0.5516288",
"0.54939044",
"0.54845375",
"0.5482645",
"0.5468306",
"0.54652023",
"0.545772",
"0.54348135",
"0.538926... | 0.6094129 | 3 |
Helper method to set the publish type according to the driver. | private void setPublishType(IPSPubServer server, String type, String driver, String secure, boolean isDefaultServer, String format)
{
// Check for file type and local driver
if (type.equalsIgnoreCase(PUBLISH_FILE_TYPE) && driver.equalsIgnoreCase(DRIVER_LOCAL))
{
String publishTyp... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setPublish(String publish) {\n this.publish = publish;\n }",
"public void setPublish(String publish) {\n this.publish = publish;\n }",
"private void updatePublishTypeForStaging(IPSPubServer server)\n {\n String pubType = server.getPublishType();\n if(PSPubServer... | [
"0.5886421",
"0.5886421",
"0.5781978",
"0.56949806",
"0.5506057",
"0.538505",
"0.53142107",
"0.5299205",
"0.52780414",
"0.5255683",
"0.52300954",
"0.5213237",
"0.5203354",
"0.5198529",
"0.5179072",
"0.51629376",
"0.51629376",
"0.5159855",
"0.5139566",
"0.51225",
"0.5110722",
... | 0.67675686 | 0 |
If the supplied server is a staging server then updates the publishing type. Checks the current publish type and if the supplied type ends with _only then removes _only and resets the publish type. | private void updatePublishTypeForStaging(IPSPubServer server)
{
String pubType = server.getPublishType();
if(PSPubServer.STAGING.equalsIgnoreCase( server.getServerType())){
if(pubType.endsWith("_only")){
server.setPublishType(pubType.replace("_only", ""));
}
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void setPublishType(IPSPubServer server, String type, String driver, String secure, boolean isDefaultServer, String format)\n {\n // Check for file type and local driver\n if (type.equalsIgnoreCase(PUBLISH_FILE_TYPE) && driver.equalsIgnoreCase(DRIVER_LOCAL))\n {\n String ... | [
"0.60199934",
"0.5139362",
"0.5047618",
"0.4992341",
"0.4964125",
"0.49320433",
"0.4741369",
"0.4703014",
"0.4687678",
"0.4528292",
"0.4521763",
"0.44986433",
"0.4444879",
"0.44376016",
"0.44188878",
"0.4405278",
"0.43228793",
"0.42943302",
"0.42672157",
"0.42515847",
"0.4206... | 0.8577971 | 0 |
Validate the port value name. Cannot be empty and only contains numbers characters 09, strip leading and trailing spaces. | private void validatePort(String port) throws PSValidationException {
PSValidationErrorsBuilder builder = validateParameters("validatePort").rejectIfNull("PORT_FIELD", port)
.throwIfInvalid();
// Validate characters
Pattern pattern = Pattern.compile("[\\d]+");
Matcher ma... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean isValidPort(String port) {\n\t\tfor(char x : port.toCharArray()) {\n\t\t\tif(!Character.isDigit(x)) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}",
"public void testParsePortNumber() {\n int portNumber = PortParser.parsePortNumber(PARAMETERS);\n assertEquals(\"portN... | [
"0.63179004",
"0.6005192",
"0.5720256",
"0.5718667",
"0.55993766",
"0.5565558",
"0.5538435",
"0.5478604",
"0.546735",
"0.5404786",
"0.5391404",
"0.53863186",
"0.535608",
"0.53490615",
"0.5341824",
"0.5270494",
"0.5259288",
"0.5247467",
"0.5243381",
"0.5216717",
"0.5167041",
... | 0.68323517 | 0 |
Checks if the server belongs to the current site | private boolean serverBelongsToSite(IPSGuid siteGuid, IPSPubServer pubServer) throws Exception
{
List<PSPubServer> servers = pubServerDao.findPubServersBySite(siteGuid);
for (PSPubServer server : servers)
{
if(server.getServerId() == pubServer.getServerId()) {
ret... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean isSite() {\n return site;\n }",
"private boolean checkServer(Context mContext) {\n\t\t\t\tConnectivityManager cm = (ConnectivityManager) mContext\n\t\t\t\t\t\t.getSystemService(Context.CONNECTIVITY_SERVICE);\n\t\t\t\tNetworkInfo netInfo = cm.getActiveNetworkInfo();\n\t\t\t\tif (netInfo !... | [
"0.7052652",
"0.66418177",
"0.6548545",
"0.6526662",
"0.6453254",
"0.64306545",
"0.63739395",
"0.6370915",
"0.6365575",
"0.63404936",
"0.6314468",
"0.62348884",
"0.6230761",
"0.6225489",
"0.6218074",
"0.61940175",
"0.61647606",
"0.61243725",
"0.6115331",
"0.60876846",
"0.6055... | 0.64290833 | 6 |
Validates the properties that are different given the type and driver specified for the publishing server. | private void validateProperties(PSPublishServerInfo pubServerInfo, String siteId, boolean isNew) throws PSValidationException, PSPubServerServiceException {
String driver = pubServerInfo.findProperty(IPSPubServerDao.PUBLISH_DRIVER_PROPERTY);
String type = pubServerInfo.getType();
String serverTy... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void validatePropertiesByDriver(PSPublishServerInfo pubServerInfo, String[] requieredProperties) throws PSValidationException {\n PSValidationErrorsBuilder builder = validateParameters(\"validatePropertiesByDriver\");\n String val = pubServerInfo.findProperty(IPSPubServerDao.PUBLISH_AS3_USE_A... | [
"0.6732138",
"0.607115",
"0.5356244",
"0.5311085",
"0.52489835",
"0.5137374",
"0.51165706",
"0.50982964",
"0.5071961",
"0.50597805",
"0.50466806",
"0.50397646",
"0.5015956",
"0.4989266",
"0.4949809",
"0.49103373",
"0.48747236",
"0.48625755",
"0.48526922",
"0.4843286",
"0.4835... | 0.60004115 | 2 |
Validates properties for based on an specific driver. | private void validatePropertiesByDriver(PSPublishServerInfo pubServerInfo, String[] requieredProperties) throws PSValidationException {
PSValidationErrorsBuilder builder = validateParameters("validatePropertiesByDriver");
String val = pubServerInfo.findProperty(IPSPubServerDao.PUBLISH_AS3_USE_ASSUME_ROL... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void validateFields() throws InvalidConnectionDataException {\n if (driver == null) throw new InvalidConnectionDataException(\"No driver field\");\n if (address == null) throw new InvalidConnectionDataException(\"No address field\");\n if (username == null) throw new InvalidConnectionD... | [
"0.5946383",
"0.57869416",
"0.5738715",
"0.57343453",
"0.571149",
"0.5469101",
"0.5461854",
"0.539461",
"0.53353894",
"0.52775156",
"0.5271491",
"0.5265217",
"0.52008367",
"0.51827645",
"0.5152051",
"0.5063298",
"0.5061347",
"0.50364566",
"0.50230885",
"0.49952692",
"0.499388... | 0.6657533 | 0 |
Helper method that return the normalized path so all back slashes are converted into forward slashes. This conversion is done just before sending the value to the client, and before saving the value into the server properties, just to make sure the correct value is saved properly. | private String normalizePath(String path)
{
return path.replaceAll("\\\\{1,}", "/");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public final static String normalizePath(String path) { \n return normalizePath( path, true);\n }",
"public static String normalizePath(String path)\r\n {\r\n StringBuilder result = new StringBuilder();\r\n char nextChar;\r\n for(int i = 0; i < path.length(); i++)\r\n {\r\n ... | [
"0.6751213",
"0.6746845",
"0.6696299",
"0.6524968",
"0.64469576",
"0.6340681",
"0.631055",
"0.62437046",
"0.62311137",
"0.61780685",
"0.6140732",
"0.6003317",
"0.5822901",
"0.5729823",
"0.5723798",
"0.5680213",
"0.5655267",
"0.5648069",
"0.5640607",
"0.561575",
"0.55655277",
... | 0.71253645 | 0 |
Return the GUID for the given id supplied as parameter | private IPSGuid getSiteGuid(String siteId)
{
return guidMgr.makeGuid(siteId, PSTypeEnum.SITE);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"UUID getId();",
"String getUniqueId();",
"UUID id();",
"UUID getUniqueId();",
"String resourceGuid();",
"@NonNull\n public final synchronized String getId() {\n if (id == null) {\n id = UUID.randomUUID().toString();\n }\n return id;\n }",
"String uniqueId();",
"p... | [
"0.69140345",
"0.6862188",
"0.6835147",
"0.67548454",
"0.6575339",
"0.65383273",
"0.6457295",
"0.64118546",
"0.63312376",
"0.6304602",
"0.6298309",
"0.62980497",
"0.62919384",
"0.6240267",
"0.6238885",
"0.62187004",
"0.62179244",
"0.61935264",
"0.6167509",
"0.6167509",
"0.616... | 0.61708134 | 18 |
Return the GUID for the given id supplied as parameter | private IPSGuid getPubServerGuid(String serverId)
{
return guidMgr.makeGuid(serverId, PSTypeEnum.PUBLISHING_SERVER);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"UUID getId();",
"String getUniqueId();",
"UUID id();",
"UUID getUniqueId();",
"String resourceGuid();",
"@NonNull\n public final synchronized String getId() {\n if (id == null) {\n id = UUID.randomUUID().toString();\n }\n return id;\n }",
"String uniqueId();",
"p... | [
"0.69140345",
"0.6862188",
"0.6835147",
"0.67548454",
"0.6575339",
"0.65383273",
"0.6457295",
"0.64118546",
"0.63312376",
"0.6304602",
"0.6298309",
"0.62980497",
"0.62919384",
"0.6240267",
"0.6238885",
"0.62187004",
"0.62179244",
"0.61935264",
"0.61708134",
"0.6167509",
"0.61... | 0.0 | -1 |
Decrypt the string. Will attempt to decrypt using legacy algorithms to handle upgrade scenario. | private String decrypt(String dstr) {
try {
return PSEncryptor.decryptString(PathUtils.getRxDir().getAbsolutePath().concat(PSEncryptor.SECURE_DIR),dstr);
} catch (PSEncryptionException | IllegalArgumentException e) {
log.warn("Decryption failed: {}. Attempting to decrypt with l... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String decryptString(String toDecrypt) throws NoUserSelectedException, IllegalValueException;",
"public String Decrypt(String s);",
"public String decrypt(String cipherText);",
"public static String decrypt(String str)\n {\n return encrypt(str);\n }",
"public static String decrypt(String strToDec... | [
"0.78190976",
"0.7561738",
"0.74197257",
"0.7235211",
"0.71999866",
"0.7073129",
"0.70667666",
"0.7060829",
"0.70173633",
"0.69994444",
"0.6964461",
"0.6943306",
"0.6875174",
"0.6840999",
"0.6808788",
"0.68004423",
"0.6734591",
"0.672888",
"0.67179877",
"0.6672666",
"0.666605... | 0.7339443 | 3 |
Converts the password property of the publishing server info from Base64 to a String. | private void convertPasswordFromBase64(PSPublishServerInfo pubServerInfo) {
String encodedPassword = pubServerInfo.findProperty(IPSPubServerDao.PUBLISH_PASSWORD_PROPERTY);
if(encodedPassword != null){
PSPublishServerProperty pubProperty = new PSPublishServerProperty();
pubPropert... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getPassword() {\n return (String) getObject(\"password\");\n }",
"public java.lang.String getPassword() {\n java.lang.Object ref = password_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteSt... | [
"0.69676566",
"0.6962587",
"0.6962587",
"0.69538975",
"0.69538677",
"0.6946913",
"0.6946913",
"0.6946913",
"0.6920287",
"0.6919366",
"0.6919366",
"0.68903714",
"0.68866694",
"0.687833",
"0.68383104",
"0.6821908",
"0.6821908",
"0.6821908",
"0.6819673",
"0.6819673",
"0.6819673"... | 0.7871767 | 0 |
Finds the pub server for the supplied guid, returns null if the server does not exist. | @Override
public PSPubServer findPubServer(IPSGuid guid) throws PSPubServerServiceException {
PSPubServer ret = null;
if(guid!= null){
ret = pubServerDao.findPubServer(guid);
}
return ret;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private IPSGuid getPubServerGuid(String serverId)\n {\n return guidMgr.makeGuid(serverId, PSTypeEnum.PUBLISHING_SERVER);\n }",
"private boolean serverBelongsToSite(IPSGuid siteGuid, IPSPubServer pubServer) throws Exception\n {\n List<PSPubServer> servers = pubServerDao.findPubServersBySite... | [
"0.53616524",
"0.5100617",
"0.5015799",
"0.4995981",
"0.49244654",
"0.4759591",
"0.4748299",
"0.46893197",
"0.45717496",
"0.45675978",
"0.4515502",
"0.4469933",
"0.4465512",
"0.43372735",
"0.43253306",
"0.43217453",
"0.4315206",
"0.42861378",
"0.42823407",
"0.42545813",
"0.42... | 0.8061685 | 0 |
find all sites and update Encrypetd Properties | @Override
public void propertyChange(PropertyChangeEvent evt) {
List<IPSSite> sites = siteMgr.findAllSites();
String secureDir = PSServer.getRxDir().getAbsolutePath().concat(PSEncryptor.SECURE_DIR);
if(sites == null || sites.isEmpty()){
return;
}
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void update(Site site);",
"private static void fillSourceSite() {\r\n\t\tsourceSites.add(\"http://hom.nfe.fazenda.gov.br/portal/WebServices.aspx\");\r\n\t\tsourceSites.add(\"http://www.nfe.fazenda.gov.br/portal/WebServices.aspx\");\r\n\t\tsourceSites.add(\"http://www.cte.fazenda.gov.br/webservices.aspx\")... | [
"0.59548753",
"0.56714344",
"0.5512651",
"0.5472949",
"0.5446484",
"0.54178613",
"0.5388242",
"0.53843117",
"0.5305352",
"0.52908885",
"0.5254176",
"0.5243487",
"0.5209905",
"0.5199032",
"0.5149373",
"0.51251656",
"0.5122256",
"0.51217717",
"0.5097382",
"0.50600034",
"0.50537... | 0.6163017 | 0 |
Send the positive button event back to the host activity | public void onClick(DialogInterface dialog, int id) {
String title = editTextTitle.getText().toString();
if(title.length() > 15)
{
Toast.makeText(context, "Naslov ne sme biti daljši od 15 znakov!" , Toast.LENGTH_SHORT ).... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void onPositiveClick() {\n quitThisActivity();\n }",
"@Override\n public void onClick(View v) {\n Log.d(\"Notification-debug\", \"Ignore button\");\n finish();\n ... | [
"0.77081764",
"0.6739251",
"0.6697131",
"0.6678385",
"0.6664058",
"0.66638684",
"0.6655203",
"0.65544945",
"0.6548877",
"0.6546442",
"0.6534811",
"0.6520205",
"0.64969385",
"0.6494932",
"0.64948064",
"0.6490716",
"0.6490716",
"0.6485105",
"0.64787656",
"0.6472755",
"0.6472195... | 0.0 | -1 |
Send the negative button event back to the host activity | public void onClick(DialogInterface dialog, int id) {
getDialog().dismiss();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n protected void negativeClick() {\n\n }",
"@Override\n public void onPositiveClick() {\n quitThisActivity();\n }",
"@Override\n\tpublic void onNegativeButtonClicked(int requestCode) {\n\n\t}",
"publi... | [
"0.7359275",
"0.7071962",
"0.6812512",
"0.6718625",
"0.6682156",
"0.6645862",
"0.6631399",
"0.6599572",
"0.6596135",
"0.6559999",
"0.6554005",
"0.655123",
"0.65390974",
"0.6537083",
"0.6527577",
"0.6526543",
"0.65166557",
"0.6516467",
"0.6512137",
"0.65106636",
"0.65049493",
... | 0.0 | -1 |
Send the positive button event back to the host activity | public void onClick(DialogInterface dialog, int id) {
String name = t.getText().toString();
if(name.length() > 15) {
Toast.makeText(context, "Ime igralca ne sme biti daljše od 15 znakov!" , Toast.LENGTH_SHORT ).show();
}else{
players.ad... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void onPositiveClick() {\n quitThisActivity();\n }",
"@Override\n public void onClick(View v) {\n Log.d(\"Notification-debug\", \"Ignore button\");\n finish();\n ... | [
"0.77081764",
"0.6739251",
"0.6697131",
"0.6678385",
"0.6664058",
"0.66638684",
"0.6655203",
"0.65544945",
"0.6548877",
"0.6546442",
"0.6534811",
"0.6520205",
"0.64969385",
"0.6494932",
"0.64948064",
"0.6490716",
"0.6490716",
"0.6485105",
"0.64787656",
"0.6472755",
"0.6472195... | 0.0 | -1 |
Send the negative button event back to the host activity | public void onClick(DialogInterface dialog, int id) {
mPlayers = 0;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n protected void negativeClick() {\n\n }",
"@Override\n public void onPositiveClick() {\n quitThisActivity();\n }",
"@Override\n\tpublic void onNegativeButtonClicked(int requestCode) {\n\n\t}",
"publi... | [
"0.7359275",
"0.7071962",
"0.6812512",
"0.6718625",
"0.6682156",
"0.6645862",
"0.6631399",
"0.6599572",
"0.6596135",
"0.6559999",
"0.6554005",
"0.655123",
"0.65390974",
"0.6537083",
"0.6527577",
"0.6526543",
"0.65166557",
"0.6516467",
"0.6512137",
"0.65106636",
"0.65049493",
... | 0.0 | -1 |
Methods: Getter method for the COM property "element" | @DISPID(1001)
@PropGet
ms.html.IHTMLElement element(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Object getElement()\r\n\t\t{ return element; }",
"public E getElement() { return element; }",
"public String getElement() { return element; }",
"public Object getElement() {\n return element;\n }",
"public E getElement() {\r\n return element;\r\n }",
"public Object getE... | [
"0.8074919",
"0.79757345",
"0.7930858",
"0.7881696",
"0.7778749",
"0.7688344",
"0.764913",
"0.7625022",
"0.76148933",
"0.7612169",
"0.7584458",
"0.7557968",
"0.7543542",
"0.7543542",
"0.7507329",
"0.7505378",
"0.743289",
"0.7391383",
"0.7377077",
"0.7291782",
"0.7288787",
"... | 0.7413581 | 17 |
Getter method for the COM property "inlineStyles" | @DISPID(1002)
@PropGet
ms.html.IHTMLStyle inlineStyles(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"final public String getInlineStyle()\n {\n return ComponentUtils.resolveString(getProperty(INLINE_STYLE_KEY));\n }",
"public static BooleanValueStyle createInlineStyle() {\r\n\t\tBooleanValueStyle result = NotationFactory.eINSTANCE.createBooleanValueStyle();\r\n\t\tresult.setName(INLINE_STYLE);\r\n\t\tresul... | [
"0.7579512",
"0.64907306",
"0.6310656",
"0.6299389",
"0.628606",
"0.6257653",
"0.6257653",
"0.6257653",
"0.6257653",
"0.6249544",
"0.61832523",
"0.6145621",
"0.61419636",
"0.61295485",
"0.60789955",
"0.6063041",
"0.6061297",
"0.6052625",
"0.60407656",
"0.5996188",
"0.5970771"... | 0.7707139 | 0 |
Getter method for the COM property "appliedRules" | @DISPID(1003)
@PropGet
ms.html.IHTMLStyleSheetRulesAppliedCollection appliedRules(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Rules getRules()\r\n {\r\n return rules;\r\n }",
"String getRules();",
"public String getRules() { \n\t\treturn getRulesElement().getValue();\n\t}",
"@Override\n public List getRules() {\n return rules;\n }",
"public ArrayList<String> getRules() {\n return rules;\n }",
... | [
"0.7207375",
"0.71788305",
"0.7092216",
"0.69748664",
"0.6947047",
"0.68017024",
"0.6765153",
"0.6748494",
"0.6687826",
"0.6480125",
"0.6473928",
"0.63657933",
"0.6345209",
"0.6338761",
"0.6302452",
"0.62660694",
"0.6243442",
"0.62264985",
"0.6195893",
"0.6080863",
"0.6052218... | 0.7289501 | 0 |
create a project from the Maven template and return the RepositoryArtifact representing the bpmn process model | public RepositoryArtifact createProject(RepositoryConnector connector, String rootFolderId, String projectName, String processDefinitionXml) {
RepositoryArtifact result = null;
try {
ZipInputStream projectTemplateInputStream = new ZipInputStream(getProjectTemplate());
ZipEntry zipEntry = nul... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Project createProject();",
"Project createProject();",
"Project createProject();",
"private MavenModuleSet createMavenProject() throws IOException {\n MavenModuleSet mavenModuleSet = j.jenkins.createProject(MavenModuleSet.class, \"test\"+j.jenkins.getItems().size());\n mavenModuleSet.setRunHead... | [
"0.69441485",
"0.69441485",
"0.69441485",
"0.65481496",
"0.630555",
"0.6238284",
"0.61255133",
"0.5877014",
"0.5804718",
"0.57777786",
"0.5771297",
"0.5693189",
"0.5680899",
"0.5664071",
"0.5628452",
"0.55152375",
"0.5477543",
"0.5453205",
"0.54354495",
"0.5432446",
"0.542969... | 0.76834714 | 0 |
Renders the element. Checks if a specific font style has been set for the element. If a font style does exist we create a new font object (if needed) and change the font style for this specific object. | @Override
public void render() {
if (this.hidden) {
return;
}
super.render();
this.font.draw(Graphics.batch, this.label, this.getX(),
this.getY() + (this.getHeight() - this.font.getLineHeight()) / 2);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void updateFont() {\n this.currFont = new Font(this.currentFontFamily.getItemText(this.currentFontFamily.getSelectedIndex()),\n Integer.parseInt(this.currentFontSize.getItemText(this.currentFontSize.getSelectedIndex())),\n this.currentF... | [
"0.65796715",
"0.63046163",
"0.6194676",
"0.6112829",
"0.6000268",
"0.5898499",
"0.5884877",
"0.584737",
"0.5807906",
"0.57906765",
"0.57875466",
"0.5775014",
"0.57564557",
"0.57555085",
"0.57233566",
"0.572122",
"0.5686639",
"0.5667758",
"0.5663745",
"0.5642795",
"0.56422794... | 0.5533681 | 33 |
Sets font and calculates new size | public void setFont(BitmapFont font) {
this.font = font;
this.setLabel(this.label);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void updateFont() {\n this.currFont = new Font(this.currentFontFamily.getItemText(this.currentFontFamily.getSelectedIndex()),\n Integer.parseInt(this.currentFontSize.getItemText(this.currentFontSize.getSelectedIndex())),\n this.currentF... | [
"0.74120593",
"0.7362426",
"0.72802305",
"0.72347844",
"0.71728176",
"0.716316",
"0.7159166",
"0.714678",
"0.7081037",
"0.7065135",
"0.70614886",
"0.70494086",
"0.702261",
"0.69838893",
"0.6967044",
"0.6951008",
"0.6915669",
"0.68995476",
"0.68874454",
"0.6853124",
"0.6800961... | 0.0 | -1 |
Sets the fontStyle to be applied to the font, for this specific instance. | public void setFontStyle(final FontStyles fontStyle)
{
this.fontStyle = fontStyle;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public LabelBuilder setFontStyle(FontStyle fontStyle) {\n\t\tIsBuilder.checkIfValid(getOptionsBuilder());\n\t\tlabel.getFont().setStyle(fontStyle);\n\t\treturn this;\n\t}",
"public static void setFont(String fontName, int fontSize, int style){\n\t\tGComponent.fGlobalFont = new Font(fontName, fontSize, style);\n\... | [
"0.7537316",
"0.71796966",
"0.7165175",
"0.69697773",
"0.69228333",
"0.6737425",
"0.6721364",
"0.6679071",
"0.66789687",
"0.66761744",
"0.66338545",
"0.6627782",
"0.65999746",
"0.6572147",
"0.65512604",
"0.6546238",
"0.65400255",
"0.65362316",
"0.65263855",
"0.65088874",
"0.6... | 0.804518 | 0 |
private String url = null; private boolean shareble; private boolean expandable; | public YouTubeWidget() {
super();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setURL(String _url) { url = _url; }",
"public String getURL() { return url; }",
"public void setURL(String url);",
"public void setUrl(String url);",
"public void setUrl(String url);",
"public String getIsShare() {\n return isShare;\n }",
"public interface MatchDetaiView {\n vo... | [
"0.6567568",
"0.6333524",
"0.62674433",
"0.6252686",
"0.6252686",
"0.6238981",
"0.6142797",
"0.6078909",
"0.60456187",
"0.6037443",
"0.5968359",
"0.59578085",
"0.59246796",
"0.5919635",
"0.5911071",
"0.5910348",
"0.5905474",
"0.58890074",
"0.5864026",
"0.5860765",
"0.58405507... | 0.0 | -1 |
Returns the listener owner of this method | public Listener getListener() {
return listener;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Object getDelegateOwner();",
"Participant getOwner();",
"protected Object getOwner(){\n return owner;\n }",
"@Nullable\n public P getListener() {\n return mListener;\n }",
"public String owner() {\n return this.owner;\n }",
"public MethodMappingInfo getOwnerMethod()\n\t{\... | [
"0.7420936",
"0.656325",
"0.6487147",
"0.6454462",
"0.64352506",
"0.6356191",
"0.6312269",
"0.63108873",
"0.6310233",
"0.6278393",
"0.6273773",
"0.623123",
"0.62134147",
"0.621334",
"0.620836",
"0.61985606",
"0.6171911",
"0.6163491",
"0.61604005",
"0.6160076",
"0.6146224",
... | 0.6442052 | 4 |
Invoke the Listener method with the supplied packet | public void call(Object object) {
try {
this.method.invoke(this.listener, object);
} catch (IllegalAccessException | InvocationTargetException ex) {
throw new InvalidListenerException("Unable to invoke method", ex);
} catch (Exception ex) {
throw new InvalidLi... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void packetReceived(Pdu packet);",
"protected abstract void handlePacket(DatagramPacket packet);",
"@Override\n\tpublic void handle(PacketListener var1) {\n\t\tthis.a((class_id) var1);\n\t}",
"public void deliver(Packet packet) {\n \n }",
"public abstract void onPingReceived(byte[] data);"... | [
"0.65795165",
"0.61115205",
"0.60783696",
"0.6041121",
"0.5908135",
"0.5844061",
"0.580972",
"0.57681024",
"0.57428867",
"0.5725713",
"0.56779486",
"0.56085676",
"0.56010437",
"0.55999756",
"0.55643994",
"0.55532557",
"0.5480087",
"0.5476379",
"0.54688555",
"0.54673564",
"0.5... | 0.54953146 | 16 |
If we don't have the location client, let's get it | @Override
public void Handle() {
fusedLocationClient = LocationServices.getFusedLocationProviderClient(context);
// Fetch the last location
fusedLocationClient.getLastLocation()
.addOnSuccessListener((Activity) context, new OnSuccessListener<Location>() {
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"LocationsClient getLocations();",
"@Override\n public geo_location getLocation() {\n return location;\n }",
"protected Location getLocation()\n {\n return location;\n }",
"protected Location getLocation()\n {\n return location;\n }",
"private FusedLocationProviderClie... | [
"0.6832861",
"0.67496306",
"0.668537",
"0.668537",
"0.66350406",
"0.65877604",
"0.65549743",
"0.6487445",
"0.64859563",
"0.6474553",
"0.64711523",
"0.64711523",
"0.64711523",
"0.64711523",
"0.6462341",
"0.64446604",
"0.6402688",
"0.6391947",
"0.638878",
"0.63881725",
"0.63740... | 0.0 | -1 |
Got last known location. In some rare situations this can be null. | @Override
public void onSuccess(Location location) {
if (location != null) {
// Logic to handle location object
Map<String, Double> latlng = new HashMap<String, Double>();
latlng.put("longitud... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private Location getLastKnownLocation(){\n \t \tLocation loc = LocationUtil.getBestLastKnowLocation(ctx);\t\n \t \tStatus.getCurrentStatus().setLocation(loc);\t\n \t \treturn loc;\n \t}",
"public Location getLastLocation() {\n\t\tif (mLocationClient.isConnected()) {\n\t\t\treturn mLocationClient.getLast... | [
"0.82976794",
"0.79686725",
"0.78017765",
"0.7698573",
"0.76815736",
"0.7583506",
"0.7569769",
"0.7552742",
"0.7535778",
"0.7415372",
"0.7393789",
"0.72912264",
"0.72161716",
"0.72039974",
"0.7203695",
"0.72034955",
"0.71807975",
"0.7135884",
"0.7133322",
"0.70981014",
"0.709... | 0.0 | -1 |
/ initialise mRgba, mGray and mDrawinglayer | @Override
public void onCameraViewStarted(int width, int height){
mRgba = new Mat(height, width, CvType.CV_8UC4);
mGray = new Mat(height, width, CvType.CV_8UC1);
mDrawingLayer = new Mat(height,width,CvType.CV_8UC4);
mMixed = new Mat(height,width,CvType.CV_8UC4);
mOutput = new... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void initialize() {\n this.board.addBoardChangeListener(this);\n\n this.layers = new ArrayList();\n this.bounds = new Rectangle();\n\n this.zoom = 1.0;\n this.zoomLevel = ZOOM_NORMALSIZE;\n this.affineTransform = new AffineTransform();\n\n this.loadTiles(boa... | [
"0.597578",
"0.58678037",
"0.5848515",
"0.58434016",
"0.58216804",
"0.57703996",
"0.57703996",
"0.57575995",
"0.57015187",
"0.5697094",
"0.5693648",
"0.567961",
"0.56671494",
"0.56326634",
"0.553931",
"0.55135614",
"0.54962057",
"0.54832715",
"0.548054",
"0.54702604",
"0.5416... | 0.0 | -1 |
/ nb this function will only be triggered: 1. option to extract optical is checked 2. pattern recognised 3. a trigger (button) is activated | public void cropMoleculeRecognition(){
mOpenCameraView.disableView();
Mat transformMat = Imgproc.getPerspectiveTransform(mCaptureAreaAdjusted,new MatOfPoint2f(new Point(0,0),new Point(0,400),new Point(400,400), new Point(400,0)));
Mat croppedImage = new Mat();
Imgproc.warpPerspective(mG... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n \t\tpublic void actionPerformed(ActionEvent e) {\n \t\t\tif(perceptrons == null)\n \t\t\t\treturn;\n \t\t\tint index = check();\n \t\t\tString name = patterns.get(index).getName();\n \t\t\tSystem.out.println(\"Detected pattern #\" + index + \" \" + name);\n \t\t}",
"@Override\n public void showPat... | [
"0.60480285",
"0.58292705",
"0.56766754",
"0.567265",
"0.5646828",
"0.5576675",
"0.55244565",
"0.5478508",
"0.54285526",
"0.5389195",
"0.53822786",
"0.5379817",
"0.5363667",
"0.5362563",
"0.5357522",
"0.5334195",
"0.5325332",
"0.5302325",
"0.5271672",
"0.5269287",
"0.5258922"... | 0.0 | -1 |
/ compute key points of the incoming frame | public void findKeyPoints(){
Mat descriptorFrame = new Mat();
MatOfKeyPoint keyPointFrame = new MatOfKeyPoint();
mDetector.detect(mGray.submat(mScanTop,mScanBottom,mScanLeft,mScanRight), keyPointFrame);
mExtractor.compute(mGray.submat(mScanTop,mScanBottom,mScanLeft,mScanRight), keyPoint... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getKeyFrame() {\n return keyFrame;\n }",
"void keySequencePassed();",
"public List <Integer> getKeyFrameTimes() { return getKeyFrameTimes(null, true); }",
"public void calculateKeypair() {\n\n BigInteger nTotient = p.subtract(BigInteger.ONE).multiply(q.subtract(BigInteger.ONE));\... | [
"0.6158447",
"0.6016671",
"0.5452524",
"0.54178333",
"0.5409642",
"0.5326404",
"0.5287838",
"0.528391",
"0.5259747",
"0.5245176",
"0.52093506",
"0.5205374",
"0.5147242",
"0.51462406",
"0.51344687",
"0.51233786",
"0.5121396",
"0.5119919",
"0.5108445",
"0.5095694",
"0.5087093",... | 0.68473804 | 0 |
/ this function finds the pattern that matches with the template / this function will then populate a few mat objects | public void findPattern(){
List<MatOfPoint> arrContours = new ArrayList<>();
Mat hierachy = new Mat();
MatOfPoint2f contour2f = new MatOfPoint2f();
MatOfPoint2f approxPoly = new MatOfPoint2f();
Mat transformMatrix;
Mat warped = new Mat();
Mat compareTemplateResult... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void compilePattern() {\r\n\r\n pattern_startOfPage = Pattern.compile(regex_startOfPage);\r\n pattern_headerAttribute = Pattern.compile(regex_headerAttribute);\r\n pattern_messageFirstLine = Pattern.compile(regex_messageFirstLine);\r\n pattern_messageContinuationLine = Pattern.c... | [
"0.61900187",
"0.5730099",
"0.57138145",
"0.55600053",
"0.5532871",
"0.5527754",
"0.55104375",
"0.5459093",
"0.54092276",
"0.53189325",
"0.5214491",
"0.52058804",
"0.5193516",
"0.51659346",
"0.51487726",
"0.51454794",
"0.51220864",
"0.5121334",
"0.50975233",
"0.50723416",
"0.... | 0.6355261 | 0 |
center is nullable. if that's the case, increase width by a specificed or default amount | public void adjustROI(Point center,double width){
if(center==null){
Log.i(TAG,"extending");
mScanWidth += width;
}else{
mScanWidth = width;
mScanCenter = center;
}
mScanLeft = (int)Math.max(0,mScanCenter.x - mScanWidth);
mScanTop =... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public int width()\n {\n return widthCent; //Charlie Gao helped me debug the issue here\n }",
"public static void SetCenter(int center) //set the center fret when needed\n\t{\n\t\tif(center==0)\n\t\t\tSfret=Efret=Center=1;\n\t\tif(center==15)\n\t\t\tSfret=Efret=Center=14;\n\t}",
"public void ... | [
"0.6990304",
"0.68631196",
"0.66265535",
"0.6477989",
"0.64396375",
"0.6345123",
"0.63313645",
"0.6327137",
"0.6312431",
"0.62843746",
"0.6281473",
"0.624493",
"0.62148565",
"0.61968714",
"0.6189558",
"0.6160331",
"0.6123021",
"0.6114852",
"0.6095759",
"0.6079087",
"0.6076534... | 0.0 | -1 |
Some complex logic is done here... | static int staticMethod(long value) {
throw new RuntimeException("I don't want to be executed. I will be mocked.");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tprotected void logic() {\n\n\t}",
"protected void additionalProcessing() {\n\t}",
"public void logic(){\r\n\r\n\t}",
"@Override\r\n \tpublic void process() {\n \t\t\r\n \t}",
"public void smell() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\n\tpublic ... | [
"0.6291104",
"0.61189693",
"0.5622998",
"0.54635715",
"0.5452353",
"0.5434892",
"0.53945607",
"0.5388657",
"0.5374059",
"0.5368456",
"0.53638864",
"0.5317521",
"0.52858794",
"0.5257237",
"0.523007",
"0.52191",
"0.52176934",
"0.5212576",
"0.5201579",
"0.5196926",
"0.518021",
... | 0.0 | -1 |
/ once the file has been read, set the camera to the index it is referring to and set axes | public static void setCameraFrame() {
CAMERA.src = VERTICES[CAMERA.v];
Vector zc = CAMERA.src.d.scale(-1).normalized();
CAMERA.zAxis = zc;
Vector xc = MathUtils.cross(CAMERA.src.d, new Vector(0, 1, 0)).normalized();
CAMERA.xAxis = xc;
Vector yc = MathUtils.cross(zc, xc).normalized();
CAMERA.yAxis = yc;
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setCamera(int x, int y) {\n\t\tcamera[0] = x;\n\t\tcamera[1] = y;\n\t}",
"public void setCameraPosition(float x, float y, float z) {\n\t\tthis.x=x;\n\t\tthis.y=y;\n\t\tthis.z=z;\n\t}",
"public void updateCurrentSheetCameraValues()\n\t{\n\t\tproject.getCurrentSheet().setCamera(cameraX, cameraY, zoom... | [
"0.5964933",
"0.5765528",
"0.5750108",
"0.57104903",
"0.5695255",
"0.5685515",
"0.5654912",
"0.56169933",
"0.55424017",
"0.5518407",
"0.5511903",
"0.5490521",
"0.5490107",
"0.5409775",
"0.53633684",
"0.53486973",
"0.53474224",
"0.5327921",
"0.532484",
"0.5302386",
"0.527384",... | 0.68592954 | 0 |
TODO Autogenerated method stub | @Override
public int compare(Custumer arg0, Custumer arg1) {
return 0;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
The Shugo Merchant League has arrived. | @Override
public void visit(Player player) {
PacketSendUtility.sendPacket(player, SM_SYSTEM_MESSAGE.STR_MSG_HF_ShugoCaravanAppear);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void landedOn() {\n\t\tMonopolyGameController.getInstance();\n\t\tMonopolyGameController.getCurrentPlayer().increaseMoney(300);\n\t\tLogger.getInstance().notifyAll(MonopolyGameController.getCurrentPlayer().getName()+ \" gained 300 dollars by landing on Bonus Square\");\n\t\tMonopolyGameControll... | [
"0.61250955",
"0.6055164",
"0.60327595",
"0.58831805",
"0.5816988",
"0.5802855",
"0.5780679",
"0.57389516",
"0.57199454",
"0.57163584",
"0.5713056",
"0.5686033",
"0.5669348",
"0.5668754",
"0.56037384",
"0.55574274",
"0.5493733",
"0.5492637",
"0.54808867",
"0.54608417",
"0.546... | 0.5353583 | 37 |
Inflate the layout for this fragment | @Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
{
final View view = inflater.inflate(R.layout.fragment_blank, container, false);
((MainActivity) getActivity()).getSupportActionBar().setTitle("ViviendasAPP");
opciones = (Radi... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_main_allinfo, container, false);\n }",
"@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup... | [
"0.6739604",
"0.67235583",
"0.6721706",
"0.6698254",
"0.6691869",
"0.6687986",
"0.66869223",
"0.6684548",
"0.66766286",
"0.6674615",
"0.66654444",
"0.66654384",
"0.6664403",
"0.66596216",
"0.6653321",
"0.6647136",
"0.66423255",
"0.66388357",
"0.6637491",
"0.6634193",
"0.66251... | 0.0 | -1 |
time complexity is O(n + ws) where s is the size of the largest word and w are the number of words. | String reverseWords(String input){
StringBuilder output = new StringBuilder(input.length());
int startIndex = -1;
for(int i = input.length()-1; i >= 0; i--){
if(input.charAt(i) == ' ' || i == 0){
if(i == 0)
startIndex = i;
else
startIndex = i+1;
while(startIndex != input.length() && input... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String solve1(String s) {\n Map<String, Integer> frequency = new HashMap<>();\n String maxWord = null;\n String[] split = s.split(\" \");\n\n for (String word : split) {\n int newFrequency = frequency.getOrDefault(word, 0) + 1;\n frequency.put(word, newFrequ... | [
"0.68995976",
"0.67537165",
"0.6695402",
"0.65619546",
"0.6375062",
"0.6355172",
"0.63358796",
"0.63280797",
"0.6296616",
"0.6285621",
"0.62731797",
"0.6202597",
"0.61941445",
"0.61411273",
"0.611725",
"0.61148626",
"0.6075603",
"0.60326785",
"0.60043335",
"0.6001925",
"0.599... | 0.0 | -1 |
compute difference between 2 dates y m d | public static void main(String[] args) {
LocalDate firstDate = citesteDeLaTastatura();
LocalDate secconddate = citesteDeLaTastatura();
System.out.println(firstDate);
System.out.println(secconddate);
Period perioada = Period.between(firstDate,secconddate);
System.out.prin... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"DateDiff(Datum date1, Datum date2)\r\n\t{\r\n\t\t// Return when equal\r\n\t\tif (date1.equals(date2))\r\n\t\t{\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t// Switch Min / Max\r\n\t\tDatum Maxdate = date1.kleinerDan(date2) ? date2 : date1;\r\n\t\tDatum minDate = date1.kleinerDan(date2) ? date1 : date2;\r\n\t\tminDate = new Da... | [
"0.76932216",
"0.74646056",
"0.7245436",
"0.72066975",
"0.70185614",
"0.6973378",
"0.68298274",
"0.6787359",
"0.6698958",
"0.6570332",
"0.6563067",
"0.6497509",
"0.6464588",
"0.64477694",
"0.64452136",
"0.6373247",
"0.63711745",
"0.6343441",
"0.6325696",
"0.6231776",
"0.62179... | 0.0 | -1 |
TODO Autogenerated method stub | public static void main(String[] args) {
TreeNode root = new TreeNode(1);
root.right = new TreeNode(2);
//root.left.left = new TreeNode(3);
//root.left.right = new TreeNode(3);
root.right.left = new TreeNode(3);
//root.right.right = new TreeNode(3);
System.out.println(inorderTraversal(root));
} | {
"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 |
collegamento utilizzato protected Login login = null; Costruttore di default per il sistema (a volte serve) | public QueryWiki() {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setLogin (String login) {\n this.login = login;\n }",
"public void setLogin(String login) {\n this.login = login;\n }",
"public void setLogin(String login) {\n this.login = login;\n }",
"protected void login() {\n\t\t\r\n\t}",
"public void setLogin(java.lang.String... | [
"0.7688096",
"0.76554495",
"0.76554495",
"0.7455151",
"0.74367213",
"0.74367213",
"0.7377745",
"0.725024",
"0.7246036",
"0.71651393",
"0.7105393",
"0.7080972",
"0.70701694",
"0.7008354",
"0.7005588",
"0.6984985",
"0.69664246",
"0.69457537",
"0.6933703",
"0.69072723",
"0.69055... | 0.0 | -1 |
fine del metodo costruttore Costruttore completo | public QueryWiki(String titlepageid, TipoRicerca tipoRicerca, TipoRequest tipoRequest) {
this.tipoRicerca = tipoRicerca;
super.tipoRequest = tipoRequest;
this.doInit(titlepageid);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public PresuTipoProyectoLogic()throws SQLException,Exception {\r\n\t\tsuper();\r\n\t\t\r\n\t\ttry\t{\t\t\t\t\t\t\r\n\t\t\tthis.presutipoproyectoDataAccess = new PresuTipoProyectoDataAccess();\r\n\t\t\t\r\n\t\t\tthis.presutipoproyectos= new ArrayList<PresuTipoProyecto>();\r\n\t\t\tthis.presutipoproyecto= new Presu... | [
"0.68088406",
"0.659918",
"0.6540531",
"0.6441366",
"0.6376208",
"0.6370019",
"0.63595754",
"0.63261765",
"0.6325639",
"0.632424",
"0.63237923",
"0.6295886",
"0.6245105",
"0.62448364",
"0.6232054",
"0.62185025",
"0.6218204",
"0.61990553",
"0.6193134",
"0.61771715",
"0.6169576... | 0.0 | -1 |
fine del metodo costruttore Costruttore completo | public QueryWiki(int pageid, TipoRicerca tipoRicerca, TipoRequest tipoRequest) {
this.tipoRicerca = tipoRicerca;
super.tipoRequest = tipoRequest;
this.doInit("" + pageid);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public PresuTipoProyectoLogic()throws SQLException,Exception {\r\n\t\tsuper();\r\n\t\t\r\n\t\ttry\t{\t\t\t\t\t\t\r\n\t\t\tthis.presutipoproyectoDataAccess = new PresuTipoProyectoDataAccess();\r\n\t\t\t\r\n\t\t\tthis.presutipoproyectos= new ArrayList<PresuTipoProyecto>();\r\n\t\t\tthis.presutipoproyecto= new Presu... | [
"0.68088406",
"0.659918",
"0.6540531",
"0.6441366",
"0.6376208",
"0.6370019",
"0.63595754",
"0.63261765",
"0.6325639",
"0.632424",
"0.63237923",
"0.6295886",
"0.6245105",
"0.62448364",
"0.6232054",
"0.62185025",
"0.6218204",
"0.61990553",
"0.6193134",
"0.61771715",
"0.6169576... | 0.0 | -1 |
fine del metodo costruttore | protected void doInit(String titlepageid) {
if (titlepageid != null) {
title = titlepageid;
pageid = titlepageid;
stringaPageIds = titlepageid;
domain = this.getDomain();
super.doInit();
}// fine del blocco if
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void limpiarDatos() {\n\t\t\n\t}",
"public Controlador() {\n\t\t// m\n\t\tdatosPrueba1 = new ListaEnlazada();\n\t\t// m\n\t\tdatosPrueba2 = new ListaEnlazada();\n\t\t// add\n\t\tdatosPrueba3 = new ListaEnlazada();\n\t\tdatosPrueba4 = new ListaEnlazada();\n\t\tprueba1 = new Estadisticas(datosPrueba1);\n\t... | [
"0.68177533",
"0.6809004",
"0.6756437",
"0.6729921",
"0.6613262",
"0.66072047",
"0.6572995",
"0.65375054",
"0.6455662",
"0.643855",
"0.64296305",
"0.64279014",
"0.64235264",
"0.6422593",
"0.64187264",
"0.6405603",
"0.6401314",
"0.6399246",
"0.63786507",
"0.63678354",
"0.63643... | 0.0 | -1 |
fine del metodo Costruisce la stringa della request Domain per l'URL dal titolo della pagina o dal pageid (a seconda del costruttore usato) | protected String getDomain() {
return "";
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static String getDomainURL(String pageURL){\r\n\t\ttry{\r\n\t\t\tString[] splitpageurl = pageURL.split(\"/\");\r\n\t\t\treturn splitpageurl[0] + \"//\" + splitpageurl[2];\r\n\t\t\t\r\n\t\t}catch(Exception e){\r\n\t\t\tDebug.println(\"LINKSANITISER:GETDOMAINURL\", \"failed to get domain url from given url. p... | [
"0.6866364",
"0.61565363",
"0.6080642",
"0.5981321",
"0.59392613",
"0.59024024",
"0.5769727",
"0.5654474",
"0.5624186",
"0.5593161",
"0.5575225",
"0.55613685",
"0.55613685",
"0.55613685",
"0.55613685",
"0.55613685",
"0.55613685",
"0.5519957",
"0.55022335",
"0.55022335",
"0.54... | 0.5826649 | 6 |
fine del metodo Crea la connessione Regola i parametri della connessione Recupera i cookies dal Login di registrazione | @Override
protected URLConnection creaConnessione(String domain) throws Exception {
URLConnection urlConn = super.creaConnessione(domain);
WikiLogin wikiLogin = (WikiLogin) LibSession.getAttribute(WikiLogin.WIKI_LOGIN_KEY_IN_SESSION);
String txtCookies;
// regolo i cookies
i... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void action_login_utente(HttpServletRequest request, HttpServletResponse response) throws IOException{\n //recupero credenziali di login\n String email = SecurityLayer.addSlashes(request.getParameter(\"email\").toLowerCase());\n email = SecurityLayer.sanitizeHTMLOutput(email);\n ... | [
"0.6362387",
"0.6321974",
"0.6255023",
"0.61033577",
"0.60950595",
"0.6085565",
"0.60400516",
"0.60376406",
"0.5994428",
"0.59910977",
"0.59643865",
"0.5929512",
"0.59235907",
"0.5877766",
"0.58774793",
"0.58713055",
"0.58648527",
"0.58540857",
"0.5834054",
"0.5831407",
"0.58... | 0.7242496 | 0 |
fine del metodo Regola il risultato Informazioni, contenuto e validita della risposta Controllo del contenuto (testo) ricevuto PUO essere sovrascritto nelle sottoclassi specifiche | @Override
protected void regolaRisultato(String risultatoRequest) {
HashMap mappa = null;
super.regolaRisultato(risultatoRequest);
if (risultatoRequest != null) {
mappa = LibWiki.creaMappaQuery(risultatoRequest);
}// fine del blocco if
if (mappa != null) {
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void PoblarINFO(String llamado) {//C.P.M Aqui llega como argumento llamado\r\n try {\r\n rs = modelo.Obteninfo();//C.P.M Mandamos a poblar la informacion de negocio\r\n if (llamado.equals(\"\")) {//C.P.M si el llamado llega vacio es que viene de la interface\r\n ... | [
"0.6283735",
"0.6253456",
"0.608793",
"0.6070514",
"0.6054194",
"0.6014342",
"0.59893674",
"0.598721",
"0.59748185",
"0.59198207",
"0.5897516",
"0.585401",
"0.58534986",
"0.5850839",
"0.5850839",
"0.5850839",
"0.5850839",
"0.5850839",
"0.5850839",
"0.5850839",
"0.5850839",
... | 0.0 | -1 |
fine del metodo Restituisce il testo del POST per la seconda Request Aggiunge il token provvisorio ricevuto dalla prima Request PUO essere sovrascritto nelle sottoclassi specifiche | protected String getSecondoPost() {
// String testoPost;
// String testo = this.getTestoNew();
// String summary = this.getSummary();
//// String edittoken = this.getToken();
//
// if (testo != null && !testo.equals("")) {
// try { // prova ad eseguire il codice
// ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@FormUrlEncoded\n @POST(\"api/Daftar/tambah\")\n Call<UserModel> daftarUser(@Field(\"nama\") String nama,\n @Field(\"identitas\") String identitas,\n @Field(\"email\") String email,\n @Field(\"password\")... | [
"0.67785245",
"0.67682916",
"0.67285293",
"0.6710282",
"0.66993564",
"0.6675754",
"0.66647565",
"0.6662741",
"0.6618088",
"0.6609501",
"0.65906113",
"0.6583692",
"0.65312314",
"0.6526896",
"0.6518084",
"0.64918715",
"0.64066166",
"0.6390133",
"0.63639766",
"0.63439494",
"0.63... | 0.5805949 | 56 |
TODO Autogenerated method stub | public static void addListeners(GenericData oGenericData)
{
for (int nIndex = 0; nIndex < m_arrListeners.size(); nIndex++)
{
try
{
m_arrListeners.get(nIndex).register(oGenericData);
}
catch (Exception oException)
{
}
}
} | {
"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 |
Connectie maken met database | @Override
public Connection getConnection() throws SQLException {
Connection conn;
conn = ConnectionFactory.getInstance().getConnection();
return conn;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void connect() {\n\n DatabaseGlobalAccess.getInstance().setEmf(Persistence.createEntityManagerFactory(\"PU_dashboarddb\"));\n DatabaseGlobalAccess.getInstance().setEm(DatabaseGlobalAccess.getInstance().getEmf().createEntityManager());\n DatabaseGlobalAccess.getInstance().getDatabaseData... | [
"0.7777816",
"0.75022346",
"0.7450922",
"0.72150093",
"0.7113034",
"0.71012783",
"0.7046754",
"0.69626474",
"0.6891667",
"0.6833525",
"0.68103653",
"0.6806302",
"0.6771204",
"0.675697",
"0.6753917",
"0.6737041",
"0.6734452",
"0.6730135",
"0.6727298",
"0.6711521",
"0.6694043",... | 0.0 | -1 |
Een lid object aanmaken van een lid met een bepaald id uit de database | @Override
public LidPOJO findLid(int id) throws SQLException {
Connection connect = getConnection();
String queryString = "SELECT * FROM leden WHERE id = " + id;
ResultSet res = getConnection().prepareStatement(queryString).executeQuery();
LidPOJO lid = new LidPOJO();
while (res.next()) {
lid = new Li... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Long getId() {return id;}",
"public Long getId() {return id;}",
"public int getId() {return id;}",
"public long getId() { return id; }",
"public long getId() { return id; }",
"public long getId(){return this.id;}",
"public Long id() { return this.id; }",
"Long getId();",
"Long getId();",
"... | [
"0.70951897",
"0.70951897",
"0.6969853",
"0.6954762",
"0.6954762",
"0.6918817",
"0.69165874",
"0.6907511",
"0.6907511",
"0.6907511",
"0.6904428",
"0.6904428",
"0.6904428",
"0.6904428",
"0.6904428",
"0.6904428",
"0.686278",
"0.686278",
"0.6857128",
"0.684108",
"0.6829141",
"... | 0.0 | -1 |
Een lid object aanmaken voor een lid met een bepaalde naam uit de database | @Override
public LidPOJO findLidByName(String naam) throws SQLException {
Connection connect = getConnection();
String queryString = "SELECT * FROM leden WHERE naam = " + naam;
ResultSet res = getConnection().prepareStatement(queryString).executeQuery();
LidPOJO lid = new LidPOJO();
while (res.next()) {
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Lector(BD gestor, int id)\n {\n this.base_de_datos=gestor;\n this.id=id;\n }",
"@Override\n\tpublic LidPOJO findLid(int id) throws SQLException {\n \tConnection connect = getConnection();\n\n\t\tString queryString = \"SELECT * FROM leden WHERE id = \" + id;\n\t\tResultSet res = getC... | [
"0.6493179",
"0.6132854",
"0.60534126",
"0.60534126",
"0.5990993",
"0.5988149",
"0.59702086",
"0.5961122",
"0.59254074",
"0.58819014",
"0.5850589",
"0.5847738",
"0.5824256",
"0.5824256",
"0.5824256",
"0.5824256",
"0.5824256",
"0.5824256",
"0.5821982",
"0.5804018",
"0.5804018"... | 0.5747265 | 32 |
Lid object aanmaken voor een lid met een bepaald password uit de database | @Override
public LidPOJO findLidByPasw(String pasw) throws SQLException {
Connection connect = getConnection();
String queryString = "SELECT * FROM leden WHERE password = " + pasw;
ResultSet res = getConnection().prepareStatement(queryString).executeQuery();
LidPOJO lid = new LidPOJO();
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"PasswdDo selectByPrimaryKey(Integer id);",
"UserPasswordDO selectByUserId(Integer id);",
"public void setLid (String lid)\n {\n this.lid = lid;\n }",
"PasswordCard selectByPrimaryKey(Integer id);",
"@Override\n\tpublic void AddLid(LidPOJO lid) throws Exception {\n try {\n \tConnection co... | [
"0.6690702",
"0.64034414",
"0.6319432",
"0.6208789",
"0.620569",
"0.6194001",
"0.6150602",
"0.613868",
"0.6103444",
"0.6082554",
"0.6074585",
"0.6002194",
"0.59916824",
"0.5915529",
"0.5915529",
"0.5915529",
"0.5845802",
"0.5788068",
"0.5781073",
"0.57759386",
"0.5770503",
... | 0.7204273 | 0 |
Een lid toevoegen aan de database | @Override
public void AddLid(LidPOJO lid) throws Exception {
try {
Connection connect = getConnection();
preparedStatement = connect.prepareStatement("INSERT INTO Leden(Naam, Achternaam, Leeftijd, teamcode, password) VALUES(?, ?, ?, ?, ?)");
preparedStatement.setString(1, lid.getNa... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void inserirLigas() throws SQLException {\n observableListLigas = FXCollections.observableArrayList(ligas);\n selecionarLiga.setItems(observableListLigas);\n \n }",
"public void addBestelling(Bestelling bestelling) {\n\r\n DatabaseConnection connection = new DatabaseConne... | [
"0.62672263",
"0.6158495",
"0.60016024",
"0.5956405",
"0.59341884",
"0.59169424",
"0.58969826",
"0.5882466",
"0.5876838",
"0.5865898",
"0.58308923",
"0.5825124",
"0.5824671",
"0.5823502",
"0.58230907",
"0.5800949",
"0.5795841",
"0.57832736",
"0.5745975",
"0.5741922",
"0.57392... | 0.6581577 | 0 |
Een lid verwijderen uit de database | @Override
public void DeleteLid(int id) throws Exception {
try {
Connection connect = getConnection();
preparedStatement = connect.prepareStatement("DELETE FROM LEDEN WHERE Lid_id = ?;");
preparedStatement.setInt(1, id);
preparedStatement.executeUpdate();
Syste... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic boolean verwijder(int id) {\n\t\tDbAdresDao dbAdresdao = new DbAdresDao();\r\n\t\tDbAdres dbadres = (DbAdres) dbAdresdao.lees(id);\r\n\t\tint straatId = dbadres.getStraatId();\r\n\t\tint gemeenteId = dbadres.getGemeenteId();\r\n\r\n\t\t// delete dbAdres\r\n\t\tdbAdresdao.verwijder(id);\r\n\t\... | [
"0.67885613",
"0.6760478",
"0.67458767",
"0.6742148",
"0.66025776",
"0.64345974",
"0.6398909",
"0.63772863",
"0.63634",
"0.63629603",
"0.6356887",
"0.6348698",
"0.63441366",
"0.632061",
"0.63192815",
"0.63183194",
"0.631052",
"0.6308003",
"0.6279511",
"0.6278522",
"0.6253694"... | 0.0 | -1 |
A standard implementation of deep clone taken from the internet | public static Object deepClone(Serializable obj)
{
if (obj == null)
return null;
try
{
ByteArrayOutputStream b = new ByteArrayOutputStream();
ObjectOutputStream out = new ObjectOutputStream(b);
out.writeObject(obj);
ByteArrayInputStream byteIn = new ByteArrayInputStream(b.toB... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public T cloneDeep();",
"Object clone();",
"Object clone();",
"Component deepClone();",
"public abstract Object clone() ;",
"public abstract Object clone();",
"public Object clone();",
"public Object clone();",
"public Object clone();",
"public Object clone();",
"public Function clone();",
"P... | [
"0.84914035",
"0.82377017",
"0.82377017",
"0.823406",
"0.7874455",
"0.78472114",
"0.78451794",
"0.78451794",
"0.78451794",
"0.78451794",
"0.7767737",
"0.7235202",
"0.72067004",
"0.72064054",
"0.7122173",
"0.7118562",
"0.70614445",
"0.7004089",
"0.6974753",
"0.69715655",
"0.69... | 0.6463646 | 81 |
Given a key and a value separated by a token separator, retrieve only the key | public static String getKeyFromPairedKeyValue(
String str, String tokenSeparator) {
String result = NULL_STRING;
StringTokenizer tok = new StringTokenizer(str, tokenSeparator);
if (tok.hasMoreTokens())
result = tok.nextToken();
return result;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static String getPairedKeyValueFromKeyAndValue(String key, String value, String tokenSeparator)\n\t{\n\t\tStringBuffer buff = new StringBuffer();\n\t\tbuff.append(key);\n\t\tbuff.append(tokenSeparator);\n\t\tbuff.append(value);\n\t\treturn buff.toString();\n\t}",
"private String splitAndGetField(String li... | [
"0.6931079",
"0.65543246",
"0.5912526",
"0.5820301",
"0.57492524",
"0.57492524",
"0.57492524",
"0.57492524",
"0.57492524",
"0.57492524",
"0.5701384",
"0.5640765",
"0.5591096",
"0.55666244",
"0.55548203",
"0.5541592",
"0.5479681",
"0.54776275",
"0.54667634",
"0.5454561",
"0.54... | 0.68668115 | 1 |
From a key, value, and token separator, retrieve an amalgamated keyvalue string. | public static String getPairedKeyValueFromKeyAndValue(String key, String value, String tokenSeparator)
{
StringBuffer buff = new StringBuffer();
buff.append(key);
buff.append(tokenSeparator);
buff.append(value);
return buff.toString();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static String getKeyFromPairedKeyValue(\n\t\t\tString str, String tokenSeparator) {\n\t\tString result = NULL_STRING;\n\t\tStringTokenizer tok = new StringTokenizer(str, tokenSeparator);\n\t\t\n\t\tif (tok.hasMoreTokens())\n\t\t\tresult = tok.nextToken();\n\t\t\n\t\treturn result;\n\t}",
"public static St... | [
"0.6652899",
"0.6261932",
"0.5881322",
"0.5830645",
"0.5726043",
"0.5715331",
"0.5585577",
"0.53996956",
"0.537218",
"0.53333473",
"0.5328563",
"0.5250576",
"0.5181317",
"0.5152861",
"0.506455",
"0.5062525",
"0.50496113",
"0.5015558",
"0.50035435",
"0.49986658",
"0.49907282",... | 0.7471636 | 0 |
Gets the process attached to a given interview id | public static IuaappDocProcesses getProcessForInterview(ActionContext ctx, IuaappDocProcessesDAO processDAO, ProcessInstance processIns) {
if (isInterviewPlanName(processIns.getPlanName()))
{
IuaappDocProcesses process = processDAO.findById(new Long(processIns.getId()));
String processType = process.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public ConProcess getById(int id) throws AppException;",
"public static long getTopInterviewProcessId(long processInstanceId, WFAdminSession wfAdminSession) throws Exception {\t\n \tEPMHelper epmHelper = new EPMHelper();\n \n try {\n\t\t\tProcessInstance procInstance = epmHelper.getProcessInstan... | [
"0.66742265",
"0.6392714",
"0.61096144",
"0.61066115",
"0.60944",
"0.60449535",
"0.5996554",
"0.5981082",
"0.59796494",
"0.5978652",
"0.5958448",
"0.59451956",
"0.5943857",
"0.593829",
"0.5916733",
"0.59009075",
"0.5881499",
"0.5881499",
"0.5881104",
"0.58763117",
"0.58417475... | 0.64457285 | 1 |
There are four templates involved in interview workflows | public static boolean isInterviewPlanName(String planName)
{
return (planName.equals(Constants.EPM_CODE_INITIAL_INTERVIEW)) ||
(planName.equals(Constants.EPM_CODE_FOLLOW_UP_INTERVIEW)) ||
(planName.equals(Constants.EPM_CODE_INTERVIEW_COMMON)) ||
(planName.equals(Constants.EPM_CODE_DOCUMENT_DECISION));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\n\tpublic void test04_CreateNewPageUsingExistingTemplate() {\n\t\tinfo(\"Test 4: Create new page using existing template\");\n\t\tString template1 = wTempData.getWikiTemplate(0);\n\t\tString title1 = txData.getContentByArrayTypeRandom(1)+getRandomNumber();\n\t\tSystem.out.println(template1);\n\t\tString tem... | [
"0.587799",
"0.58104694",
"0.5789839",
"0.57712686",
"0.57610524",
"0.5705902",
"0.55802727",
"0.5479921",
"0.5465846",
"0.5329346",
"0.5263053",
"0.52079445",
"0.5140306",
"0.509042",
"0.5050922",
"0.50462925",
"0.50456375",
"0.504243",
"0.5026427",
"0.5025847",
"0.5018987",... | 0.0 | -1 |
The interview id is mapped to the toplevel process in the interview process. When you are in a subprocess, you have to check if the interview id matches with the parent process pid or the parent's parent process id. | public static boolean comesFromATelephonicInterviewProcess(WorkItem wi, WFSession wfSession) throws Exception{
if (isInterviewPlanName(wi.getPlanName()))
return true;
else
{
long parentProcessId = wi.getProcessInstance().getParentProcessId();
if (parentProcessId > -1)
{
ProcessInstance parentP... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static long getTopInterviewProcessId(long processInstanceId, WFAdminSession wfAdminSession) throws Exception {\t\n \tEPMHelper epmHelper = new EPMHelper();\n \n try {\n\t\t\tProcessInstance procInstance = epmHelper.getProcessInstance(processInstanceId, wfAdminSession);\n\t\t\t\n\t\t\tif (pr... | [
"0.63796055",
"0.6361187",
"0.6118894",
"0.6021074",
"0.5962888",
"0.58030534",
"0.5788593",
"0.57608926",
"0.56637627",
"0.56528366",
"0.56497216",
"0.5553357",
"0.554298",
"0.5525484",
"0.5519449",
"0.5519449",
"0.5519449",
"0.5519449",
"0.5509405",
"0.5485969",
"0.5481452"... | 0.56762487 | 8 |
There are four templates involved in interview workflows | public static boolean isInterviewProcessName(String processName)
{
return (processName.indexOf(Constants.EPM_CODE_INITIAL_INTERVIEW) > -1)
|| (processName.indexOf(Constants.EPM_CODE_FOLLOW_UP_INTERVIEW) > -1)
|| (processName.indexOf(Constants.EPM_CODE_INTERVIEW_COMMON) > -1)
|| (processName.indexOf(Constants.E... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\n\tpublic void test04_CreateNewPageUsingExistingTemplate() {\n\t\tinfo(\"Test 4: Create new page using existing template\");\n\t\tString template1 = wTempData.getWikiTemplate(0);\n\t\tString title1 = txData.getContentByArrayTypeRandom(1)+getRandomNumber();\n\t\tSystem.out.println(template1);\n\t\tString tem... | [
"0.587799",
"0.58104694",
"0.5789839",
"0.57712686",
"0.57610524",
"0.5705902",
"0.55802727",
"0.5479921",
"0.5465846",
"0.5329346",
"0.5263053",
"0.52079445",
"0.5140306",
"0.509042",
"0.5050922",
"0.50462925",
"0.50456375",
"0.504243",
"0.5026427",
"0.5025847",
"0.5018987",... | 0.0 | -1 |
Tests whether the activity name is one of the Nurse Consultant activities. | public static boolean isNurseConsultantActivity(String activity)
{
return (activity.indexOf(Constants.EPM_ACTIVITY_CONDUCT_INITIAL_INTERVIEW) > -1)
|| (activity.indexOf(Constants.EPM_ACTIVITY_CONDUCT_FOLLOW_UP_INTERVIEW) > -1)
|| (activity.indexOf(Constants.EPM_ACTIVITY_REVISE_INTERVIEW) > -1);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"boolean hasDoctorInAppointmentSchedule(Doctor doctor);",
"boolean hasAttackerRoleName();",
"private static boolean isAntonym(String text) {\n return text != null && text.equals(\"ant\");\n }",
"boolean hasCampaignName();",
"public boolean checkFacName(String facultyName) {\n\t\tfor(String facName... | [
"0.4882792",
"0.4866588",
"0.48617697",
"0.48082417",
"0.48078942",
"0.47841322",
"0.4757697",
"0.47364095",
"0.47065178",
"0.46805903",
"0.46798834",
"0.4634974",
"0.46143782",
"0.46016446",
"0.4592824",
"0.45859033",
"0.45754194",
"0.4550045",
"0.45405844",
"0.4518977",
"0.... | 0.8092215 | 0 |
Retrieves a process instance given a context and a process instance id/ | public static ProcessInstance findProcessInstance(ActionContext ctx, long processInstanceId) throws Exception {
User user = (User) ctx.session().getAttribute(com.epm.acmi.struts.Constants.loggedUser);
EPMHelper epmHelper = null;
WFSession wfSession = null;
ProcessInstance pi = null;
try
{
epmHelper =... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Execution getProcessInstance();",
"String getProcessInstanceID();",
"Process getProcess();",
"public ConProcess getById(int id) throws AppException;",
"public static Object instance(ExpressionContext context, String idref) throws XFormsException {\n JXPathContext rootContext = context.getJXPathConte... | [
"0.6535287",
"0.6340977",
"0.62739533",
"0.6188303",
"0.6147594",
"0.6040058",
"0.6007335",
"0.5965652",
"0.5938279",
"0.5938108",
"0.5838677",
"0.5752854",
"0.5737696",
"0.5691473",
"0.56512785",
"0.5620427",
"0.55837464",
"0.55426115",
"0.55348164",
"0.55111414",
"0.5491649... | 0.7235349 | 0 |
This method gets the toplevel process id from one of the subprocesses process id. | public static long getTopInterviewProcessId(long processInstanceId, WFAdminSession wfAdminSession) throws Exception {
EPMHelper epmHelper = new EPMHelper();
try {
ProcessInstance procInstance = epmHelper.getProcessInstance(processInstanceId, wfAdminSession);
if (procInstance == null)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String getPid();",
"public abstract long getProcessID();",
"public int processIdOfActiveWindow()\r\n\t{\n\t\treturn 0;\r\n\t}",
"java.lang.String getProcessId();",
"int getpid();",
"public static final int getProcessId() {\n\t\treturn ID;\n\t}",
"public static String getPid() {\n String retVal = \... | [
"0.68689245",
"0.6758223",
"0.66819257",
"0.66260076",
"0.6556674",
"0.652548",
"0.64530766",
"0.64255106",
"0.6300918",
"0.62867624",
"0.6265951",
"0.61352116",
"0.60958874",
"0.608848",
"0.608848",
"0.60801715",
"0.6072108",
"0.6063116",
"0.6052222",
"0.6028075",
"0.6023133... | 0.6347477 | 8 |
Returns true if the process might belong to an interview process, or one of its subprocesses. There are four templates that might be an interview process template | public static boolean isInterviewProcess(String planName)
{
if (planName == null)
return false;
else
return (planName.equals(Constants.EPM_CODE_INITIAL_INTERVIEW)) ||
(planName.equals(Constants.EPM_CODE_FOLLOW_UP_INTERVIEW)) ||
(planName.equals(Constants.EPM_CODE_INTERVIEW_COMMON)) ||
(planName.equa... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static boolean isInterviewProcessName(String processName)\n\t{\n\t\treturn (processName.indexOf(Constants.EPM_CODE_INITIAL_INTERVIEW) > -1)\n\t\t|| (processName.indexOf(Constants.EPM_CODE_FOLLOW_UP_INTERVIEW) > -1)\n\t\t|| (processName.indexOf(Constants.EPM_CODE_INTERVIEW_COMMON) > -1)\n\t\t|| (processName.... | [
"0.6447464",
"0.58126444",
"0.5757072",
"0.5441991",
"0.53956175",
"0.5347985",
"0.53384185",
"0.5272565",
"0.5187163",
"0.51204664",
"0.5116416",
"0.50739926",
"0.5061555",
"0.5061437",
"0.5011296",
"0.50025934",
"0.49879414",
"0.49836645",
"0.49744648",
"0.49524128",
"0.495... | 0.58932924 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.