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 |
|---|---|---|---|---|---|---|
Check that completion in the type annotation context and if there's a qualified expression we are at first of it | private static boolean shouldRunTypeCompletionOnly(PsiElement position, JetSimpleNameReference jetReference) {
JetTypeReference typeReference = PsiTreeUtil.getParentOfType(position, JetTypeReference.class);
if (typeReference != null) {
JetSimpleNameExpression firstPartReference = PsiTreeUtil... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void testFullyQualified(){ \n // when I do this, I need to change the regex as EITHER\n // \n $anno $a = $anno.of(R.class);\n \n @draft.java.proto.SannoTest.R\n class C{} \n _class _c = _class.of(C.class); \n assertNotNull( $a.firs... | [
"0.61949044",
"0.5554141",
"0.544803",
"0.52422833",
"0.52422833",
"0.5234246",
"0.5217432",
"0.516122",
"0.51468277",
"0.51228434",
"0.51127017",
"0.51122034",
"0.5096617",
"0.5051083",
"0.5036964",
"0.50263464",
"0.50223005",
"0.5019756",
"0.50125",
"0.498296",
"0.49798793"... | 0.61719674 | 1 |
Creates a connection with the parameters given. | public DBMySQL(String user, String password, String host, String DBName, int port, boolean sslmode)
{
super(user, password, host, DBName, DBType.MYSQL, port, sslmode);
JDBC = "jdbc:mysql://" + host + "/" + this.DBName;
// If SSL is required JDBC will be updated.
if(sslmode)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Connection createConnection();",
"void createConnection();",
"private void createConnection() {\n this.callbacks = getCallbacks();\n\n Properties props = new Properties();\n props.putAll(getTestProps());\n props.putAll(getProps());\n this.connection = Connections.create((Conn... | [
"0.7989898",
"0.7780263",
"0.77303445",
"0.74832356",
"0.7320691",
"0.71005225",
"0.68835545",
"0.6657608",
"0.6612308",
"0.65901524",
"0.65705556",
"0.6547577",
"0.6538066",
"0.65326625",
"0.6525858",
"0.6507606",
"0.6499135",
"0.6468749",
"0.6446783",
"0.64136225",
"0.63633... | 0.0 | -1 |
Creates a connection based on a given JDBC. | public DBMySQL(String user, String password, String JDBC)
{
super(user, password, JDBC);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static JDBCConnection getConnection(){\n\n //check that ssh session is still open (if not reopen)\n SSHTunnel.getSession();\n\n //check that JDBCconnection is available (if not establish)\n if(jdbc==null){\n jdbc = new JDBCConnection();\n }\n return jdbc;\n }",
"pub... | [
"0.7778387",
"0.7386875",
"0.72653896",
"0.70275587",
"0.6875248",
"0.68171567",
"0.68070143",
"0.6793833",
"0.6783892",
"0.6769815",
"0.67662644",
"0.67247725",
"0.6693161",
"0.66634357",
"0.66634357",
"0.66330576",
"0.66256285",
"0.66118735",
"0.65828127",
"0.653725",
"0.65... | 0.0 | -1 |
Launcher button on action. | @FXML
void launcherButtonOnAction() {
openParamDialog();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void setButtonAction() {\n\t}",
"public void buttonClicked();",
"public void buttonClicked() {\n mSanitizorGame.buttonClicked();\n }",
"public void actionButton(String text);",
"public abstract void executeRunButton();",
"public abstract void executeActionButton();",
"priv... | [
"0.72738874",
"0.7148615",
"0.70194596",
"0.7018384",
"0.69225985",
"0.6919816",
"0.6875988",
"0.6860804",
"0.6846188",
"0.6783564",
"0.6772727",
"0.67392427",
"0.67389727",
"0.67389727",
"0.6721516",
"0.6714946",
"0.6691188",
"0.6679399",
"0.66566235",
"0.6652896",
"0.664576... | 0.6478301 | 40 |
A new alphabet containing CHARS. Character number k has index K (numbering from 0). No character may be duplicated. | Alphabet(String chars) {
if (chars.contains("(") || chars.contains(")") || chars.contains("*")) {
throw error("Parentheses and asterisks not permitted in alphabet.");
}
Map<Character, Integer> map = new HashMap<>();
char[] string2chars = chars.toCharArray();
for (char... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static char[] generateAlphabet() {\n char[] bet = new char[26];\n\n int i = 0;\n for(char alpha = 'A'; alpha <= 'Z'; alpha++) {\n bet[i] = alpha;\n i++;\n }\n\n return bet;\n }",
"private void generateCipher()\n {\n for (int i = 0; i <... | [
"0.6350505",
"0.6331086",
"0.62445563",
"0.62296873",
"0.6165695",
"0.6118997",
"0.60702986",
"0.6068583",
"0.60597223",
"0.60256106",
"0.5912853",
"0.5909165",
"0.58487177",
"0.5805753",
"0.5783425",
"0.5767527",
"0.57423645",
"0.57305306",
"0.5699649",
"0.56775683",
"0.5669... | 0.56750095 | 20 |
A default alphabet of all uppercase characters. | Alphabet() {
this("ABCDEFGHIJKLMNOPQRSTUVWXYZ");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static char getRandomUpperCaseLetter(){\n\t\treturn getRandomCharacter('A','Z');\n\t}",
"private static char[] generateAlphabet() {\n char[] bet = new char[26];\n\n int i = 0;\n for(char alpha = 'A'; alpha <= 'Z'; alpha++) {\n bet[i] = alpha;\n i++;\n }\n\... | [
"0.71894664",
"0.6800382",
"0.664776",
"0.6407757",
"0.639302",
"0.6368587",
"0.6352875",
"0.61705583",
"0.6169616",
"0.61681557",
"0.6123972",
"0.60871804",
"0.60808086",
"0.60326916",
"0.60203755",
"0.601735",
"0.60028285",
"0.59814465",
"0.5981031",
"0.595587",
"0.59306306... | 0.70108235 | 3 |
Returns the size of the alphabet. | int size() {
return _chars.length();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"int size() {\n return _alphabet.size();\n }",
"int size() {\n return _letters.length();\n }",
"public int getLettersCount() {\n return letters_.size();\n }",
"public int getLettersCount() {\n return letters_.size();\n }",
"int size() {\n return _chars.length;\... | [
"0.8101566",
"0.7775351",
"0.74167335",
"0.73806685",
"0.699177",
"0.6907532",
"0.6832305",
"0.67312086",
"0.6682212",
"0.65633565",
"0.6554055",
"0.6544257",
"0.65286887",
"0.65260947",
"0.6521087",
"0.64276516",
"0.6386872",
"0.6370318",
"0.63564664",
"0.6346258",
"0.632626... | 0.7123137 | 5 |
Returns true if CH is in this alphabet. | boolean contains(char ch) {
for (int i = 0; i < _chars.length(); i += 1) {
if (_chars.charAt(i) == ch) {
return true;
}
}
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"boolean contains(char ch) {\n return _letters.indexOf(ch) >= 0;\n }",
"public boolean is(char chIn) {\n for (char ch: allOps) {\n if (chIn == ch){\n return true;\n }\n }\n return false;\n }",
"boolean contains(char ch) {\n String check = Character.to... | [
"0.72130084",
"0.6843694",
"0.6753837",
"0.64310765",
"0.6308059",
"0.62684387",
"0.6231675",
"0.6205673",
"0.6192674",
"0.61693794",
"0.61142343",
"0.609554",
"0.60836935",
"0.60674",
"0.6022349",
"0.593359",
"0.59307706",
"0.5921894",
"0.59086263",
"0.58994925",
"0.5857713"... | 0.6734103 | 3 |
Returns character number INDEX in the alphabet, where 0 <= INDEX < size(). | char toChar(int index) {
return _chars.charAt(index);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"static int getIdx(char ch)\n {\n return (ch - 'a');\n }",
"char toChar(int index) {\n return _letters.charAt(index);\n }",
"private int getCharNumber(Character letter) {\n\t\tint integerA = Character.getNumericValue('a');\n\t\tint integerZ = Character.getNumericValue('z');\n\t\tint integ... | [
"0.7099559",
"0.694932",
"0.69340426",
"0.6890293",
"0.6890128",
"0.6857486",
"0.6787639",
"0.6772778",
"0.6702926",
"0.665864",
"0.66577613",
"0.6654374",
"0.6542603",
"0.65057814",
"0.6473855",
"0.64699674",
"0.6410994",
"0.6390148",
"0.6352703",
"0.6349749",
"0.62964505",
... | 0.6398466 | 17 |
Returns the index of character CH which must be in the alphabet. This is the inverse of toChar(). | int toInt(char ch) {
for (int i = 0; i < _chars.length(); i += 1) {
if (_chars.charAt(i) == ch) {
return i;
}
}
return -1;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"static int getIdx(char ch)\n {\n return (ch - 'a');\n }",
"int toInt(char ch) {\n return _letters.indexOf(ch);\n }",
"public int letter2index(char c) { \t\n \treturn (int)(c - 'A')%26 ;\n }",
"public static int indexOfChar(char A,String alphabet) throws IOException\n... | [
"0.76728153",
"0.70394945",
"0.694336",
"0.6854848",
"0.6853107",
"0.68050134",
"0.67101824",
"0.6397493",
"0.6361591",
"0.6355634",
"0.63359034",
"0.62787586",
"0.62750405",
"0.6270219",
"0.62336403",
"0.6196168",
"0.61749583",
"0.6160766",
"0.6147609",
"0.6146549",
"0.61116... | 0.68481153 | 5 |
coolAnimal is an object with class llama | public static void main(String[] args) {
llama coolAnimal = new llama();
llama.giveName();
llama.giveGender();
llama.name = "joe the llama papa";
llama.gender = "male";
llama.giveName();
llama.giveGender();
unicorn.giveName();
unicorn.giveGender();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void function(Animal a){\n a.eat();\n if (a instanceof Cat){//instanceof 判断指向类型\n Cat c =(Cat)a;\n c.catchMouse();\n }\n else if(a instanceof Dog){\n Dog d =(Dog) a;\n d.kanjia();\n }\n\n }",
"private void seeAnimal()... | [
"0.6608301",
"0.64757717",
"0.6442131",
"0.62945163",
"0.622462",
"0.6204883",
"0.6172951",
"0.61130863",
"0.6107655",
"0.599948",
"0.59868985",
"0.59831643",
"0.59716696",
"0.5951131",
"0.5870461",
"0.58583015",
"0.58383507",
"0.5813803",
"0.57739085",
"0.57626885",
"0.57558... | 0.6637902 | 0 |
giveName is a method | static void giveName() {
System.out.println(name);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"java.lang.String getMethodName();",
"java.lang.String getMethodName();",
"java.lang.String getMethodName();",
"java.lang.String getMethodName();",
"String getMethodName();",
"String getMethodName();",
"private String getName() {\n return method.getName();\n }",
"MethodName getMethod... | [
"0.7381037",
"0.7381037",
"0.7381037",
"0.7381037",
"0.7368248",
"0.7368248",
"0.69546705",
"0.68341106",
"0.6831244",
"0.67641455",
"0.67641455",
"0.67641455",
"0.64992225",
"0.6492497",
"0.64415216",
"0.64269483",
"0.639775",
"0.639775",
"0.6396904",
"0.6395347",
"0.6340514... | 0.0 | -1 |
variable to store county blank constructor | public Location()
{
this.store_name = null;;
this.store_location = null;
this.address = null;
this.city = null;
this.state = null;
this.zip_code = null;
this.latitude = Double.NaN;
this.longitude = Double.NaN;
this.county = null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getCounty()\n {\n \treturn county;\n }",
"public String getCounty() {\r\n return county;\r\n }",
"public String getCounty() {\n return county;\n }",
"public void setCounty(String county) {\r\n this.county = county;\r\n }",
"public City(Integer aK... | [
"0.66602105",
"0.6635698",
"0.6593254",
"0.64642626",
"0.6435304",
"0.6416294",
"0.6370796",
"0.6350197",
"0.6335667",
"0.6297544",
"0.6295749",
"0.6279999",
"0.6279999",
"0.62741554",
"0.6258581",
"0.6246861",
"0.621988",
"0.6074557",
"0.6027994",
"0.60207784",
"0.60178214",... | 0.55296665 | 62 |
constructor given a complete location detail | public Location(String store_name, String store_location, String address, String city, String state, String zip_code, double latitude, double longitude, String county)
{
super();
this.store_name = store_name;
this.store_location = store_location;
this.address = address;
this.cit... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Location() {\n\t}",
"public Location() {\r\n \r\n }",
"public Location() {\n }",
"public Location (java.lang.Long uniqueId) {\n \t\tsuper(uniqueId);\n \t}",
"public MyLocation() {}",
"public ASLocation()\n\t{\n\t\tsuper() ;\n\t\tprepare() ;\n\t}",
"protected SimpleRichLocation() {}"... | [
"0.7564758",
"0.7559759",
"0.7519706",
"0.7456778",
"0.73209924",
"0.7298279",
"0.71604556",
"0.706761",
"0.7048892",
"0.7009272",
"0.6989595",
"0.6935334",
"0.69311404",
"0.69311404",
"0.69311404",
"0.6926354",
"0.6920444",
"0.6888732",
"0.6827725",
"0.6791867",
"0.67690235"... | 0.74375707 | 4 |
getter to get store name | public String getStore_name()
{
return store_name;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getStoreName() {\n return (String) get(\"store_name\");\n }",
"public String getStoreName() {\r\n return storeName;\r\n }",
"public String getStoreName() {\n return storeName;\n }",
"public String getStoreName() {\r\n\t\treturn storeName;\r\n\t}",
"public String ... | [
"0.87249476",
"0.853833",
"0.8485623",
"0.83629686",
"0.82910514",
"0.7846517",
"0.7558999",
"0.75265163",
"0.7295438",
"0.71388614",
"0.683546",
"0.68028253",
"0.67658836",
"0.6720896",
"0.6686316",
"0.6657732",
"0.6640623",
"0.6598854",
"0.6598854",
"0.6590812",
"0.65890217... | 0.85031384 | 2 |
getter to get store location | public String getStore_location()
{
return store_location;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public edu.usfca.cs.dfs.StorageMessages.StoreChunkLocation getStoreChunkLocation() {\n if (msgCase_ == 7) {\n return (edu.usfca.cs.dfs.StorageMessages.StoreChunkLocation) msg_;\n }\n return edu.usfca.cs.dfs.StorageMessages.StoreChunkLocation.getDefaultInstance();\n }",
"public edu.usfca... | [
"0.7220163",
"0.7206839",
"0.7201348",
"0.706017",
"0.7058749",
"0.7051631",
"0.70504844",
"0.70427483",
"0.70394224",
"0.70363396",
"0.70321465",
"0.70304465",
"0.7021038",
"0.7020002",
"0.70128405",
"0.70128405",
"0.70128405",
"0.70128405",
"0.70128405",
"0.70128405",
"0.70... | 0.86802423 | 0 |
get to get address | public String getAddress()
{
return address;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"java.lang.String getAddress();",
"java.lang.String getAddress();",
"java.lang.String getAddress();",
"java.lang.String getAddress();",
"java.lang.String getAddress();",
"java.lang.String getAddress();",
"String getAddress();",
"String getAddress();",
"public String getAddress();",
"@Override\n ... | [
"0.8797714",
"0.8797714",
"0.8797714",
"0.8797714",
"0.8797714",
"0.8797714",
"0.86472285",
"0.86472285",
"0.8376189",
"0.8093563",
"0.80771124",
"0.8069778",
"0.8069778",
"0.80242336",
"0.80162746",
"0.7987179",
"0.7937885",
"0.7930693",
"0.7878541",
"0.786656",
"0.786656",
... | 0.80246454 | 13 |
getter to get city | public String getCity()
{
return city;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String getCity();",
"public String getCity() {\n return (String) get(\"city\");\n }",
"public String getCity() {\r\n return city;\r\n }",
"public String getCity() {\r\n return city;\r\n }",
"public String getCity() {\r\n return city;\r\n }",
"public String getCity(... | [
"0.8812094",
"0.86600685",
"0.8443027",
"0.8443027",
"0.8443027",
"0.8410314",
"0.8378581",
"0.8378581",
"0.8378581",
"0.8378581",
"0.8378581",
"0.8378581",
"0.8378581",
"0.8378581",
"0.8378581",
"0.8378581",
"0.83773416",
"0.8377195",
"0.8360816",
"0.8360816",
"0.8360816",
... | 0.8469374 | 2 |
gettter to get state | public String getState()
{
return state;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Object getState();",
"State getState();",
"State getState();",
"State getState();",
"State getState();",
"public int getState() {return state;}",
"public int getState() {return state;}",
"public State getState(){return this.state;}",
"int getState();",
"int getState();",
"int getState();",
"i... | [
"0.7980636",
"0.7869021",
"0.7869021",
"0.7869021",
"0.7869021",
"0.7810323",
"0.7810323",
"0.77810735",
"0.7748386",
"0.7748386",
"0.7748386",
"0.7748386",
"0.7748386",
"0.7748386",
"0.76432014",
"0.76432014",
"0.76432014",
"0.7640975",
"0.760162",
"0.7592876",
"0.7575707",
... | 0.74814177 | 27 |
getter to get zip code | public String getZip_code()
{
return zip_code;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract String getZipCode();",
"public String getZip()\n\t{\n\t\treturn zipCode;\n\t}",
"public int getZipCode() {\n return zipCode;\n }",
"public int getZipCode() {\n return zipCode;\n }",
"public int getZipCode() {\n return zipCode;\n }",
"public String getZipCode(... | [
"0.83038694",
"0.81560487",
"0.8030226",
"0.8030226",
"0.8030226",
"0.8012731",
"0.7958951",
"0.78872156",
"0.7860781",
"0.7847235",
"0.7832999",
"0.78143823",
"0.78143823",
"0.78143823",
"0.77702034",
"0.771167",
"0.76911384",
"0.76372606",
"0.76372606",
"0.76333797",
"0.760... | 0.7930855 | 7 |
getter to get latitude | public double getLatitude()
{
return latitude;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Double getLatitude();",
"Double getLatitude();",
"double getLatitude();",
"public double getLat() {\n return lat;\n }",
"public double getLat() {\n return lat;\n }",
"public double getLat() {\n return lat;\n }",
"public double getLat() {\r\n\t\treturn lat;\r\n\t}",
"publ... | [
"0.8406025",
"0.8406025",
"0.83098733",
"0.8213215",
"0.8213215",
"0.8213215",
"0.81174374",
"0.8101679",
"0.8101679",
"0.8101679",
"0.8101679",
"0.8101679",
"0.8101347",
"0.8092624",
"0.8079351",
"0.8075556",
"0.8068829",
"0.8067545",
"0.8053013",
"0.8045477",
"0.802972",
... | 0.81438416 | 6 |
getter to get longitude | public double getLongitude()
{
return longitude;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"double getLongitude();",
"long getLongitude();",
"Double getLongitude();",
"Double getLongitude();",
"public double longitude() {\n return this.longitude;\n }",
"public double getLongitude() {\n return longitude_;\n }",
"int getLongitude();",
"public double getLongitude() {\n ret... | [
"0.8767495",
"0.8753269",
"0.87045544",
"0.87045544",
"0.85992026",
"0.85112125",
"0.8508167",
"0.8478543",
"0.8478543",
"0.8478543",
"0.8478543",
"0.8416271",
"0.8416271",
"0.8416271",
"0.8416271",
"0.84142494",
"0.84142494",
"0.8400198",
"0.83887297",
"0.83887297",
"0.83464... | 0.8491915 | 7 |
getter to get county | public String getCounty()
{
return county;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getCounty() {\r\n return county;\r\n }",
"public String getCounty() {\n return county;\n }",
"public String getCounty() {\n return mCounty;\n }",
"public String getCountyname() {\n return countyname;\n }",
"public Integer getCountyid() {\n ... | [
"0.874697",
"0.87271243",
"0.84310067",
"0.7943121",
"0.7886364",
"0.7597604",
"0.7562815",
"0.7530054",
"0.7495266",
"0.7345045",
"0.731739",
"0.6776078",
"0.67326945",
"0.64735",
"0.6446632",
"0.64184916",
"0.6338341",
"0.6168942",
"0.61564463",
"0.6141517",
"0.6141101",
... | 0.871295 | 2 |
just for serializing start | @Override
public void writeExternal(ObjectOutput out) throws IOException {
out.writeLong(size);
out.writeInt(batch);
long remaining = size >> 3;
int step = 1 << 15;
w.position(0);
while (remaining > 0) {
ByteBuffer buffer = ByteBuffer.allocate(step);
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void serialize() {\n\t\t\n\t}",
"@Override\r\n\t\t\tpublic void serializar() {\n\r\n\t\t\t}",
"@Override\r\n\tpublic void serializar() {\n\r\n\t}",
"public abstract String serialise();",
"public void deserialize() {\n\t\t\n\t}",
"public void testSerialization() {\n TaskSeries s1 = new TaskS... | [
"0.73530555",
"0.73366356",
"0.723196",
"0.62980497",
"0.6189253",
"0.6091668",
"0.5934501",
"0.5928333",
"0.58983296",
"0.58647144",
"0.5854411",
"0.5845417",
"0.58186173",
"0.58186173",
"0.58186173",
"0.58186173",
"0.58186173",
"0.58186173",
"0.58071613",
"0.5795908",
"0.57... | 0.0 | -1 |
batch size in bits | Itr(int batch) {
this.batch = batch;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"int batchSize();",
"public int getBatchSize()\r\n/* 31: */ {\r\n/* 32:35 */ return batchArgs.length;\r\n/* 33: */ }",
"public static int size_sampleCnt() {\n return (32 / 8);\n }",
"int getSampleSize();",
"@Override\r\n\tpublic int getSize() {\r\n\t\treturn getBitSiz... | [
"0.81610525",
"0.73302543",
"0.67836434",
"0.6712336",
"0.66823816",
"0.6671214",
"0.6548997",
"0.65026015",
"0.64638186",
"0.64410037",
"0.6427032",
"0.6372847",
"0.6357702",
"0.6351426",
"0.63426447",
"0.6337229",
"0.62896556",
"0.62872845",
"0.62823325",
"0.6271733",
"0.62... | 0.0 | -1 |
Dummy and temporary method for Unit testing Bing Maps API. | public static void main(String[] args) {
double latitude = 33.98067209;
double longitude= -84.07507873;
Optional<String> state = reverseGeocodeFromLatLong(latitude, longitude);
if(state.isPresent()) {
LOGGER.info("State==>{}" + state.get());
} else {
LOGGER.info("Could not find State!!");
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void testMapGet() {\r\n }",
"@Test\n @Override\n public void testMapGet() {\n }",
"@Test\n\tpublic void testMaps() throws Exception {\n\t\ttestWith(TestClassMap.getInstance());\n\t}",
"@Before\n public void initialize()\n {\n map = new MapAdapter();\n }",
"@Test\n publ... | [
"0.73910797",
"0.7010697",
"0.66799355",
"0.6364191",
"0.63530254",
"0.6314426",
"0.6260066",
"0.61863077",
"0.61820155",
"0.6180312",
"0.6164788",
"0.61573917",
"0.6133392",
"0.6119205",
"0.6096452",
"0.60954297",
"0.60659575",
"0.60638976",
"0.6052913",
"0.6033547",
"0.6027... | 0.0 | -1 |
Reverse geocodes the State from the Latitude and Longitude received. | public final static Optional<String> reverseGeocodeFromLatLong(final double latitude, final double longitude) {
final StringBuilder bingMapsURL = new StringBuilder();
bingMapsURL
.append(BING_MAPS_URL_START)
.append(latitude)
.append(",")
.append(longitude)
.append(BING_MAPS_URL_MIDDLE_JSON)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void reverseGeocode(final LatLng latLng, final AsyncCallback callback) {\n GWT.log(\"reverseGeocode\");\n geocoder.getLocations(latLng, new LocationCallback() {\n public void onFailure(int statusCode) {\n getMessagePanel().displayError(\"Failed to geocode position \"... | [
"0.65739",
"0.6297543",
"0.62769884",
"0.60627145",
"0.6024538",
"0.6024538",
"0.59257835",
"0.5881493",
"0.5810534",
"0.566922",
"0.53869724",
"0.53711504",
"0.53406054",
"0.5231766",
"0.519931",
"0.5191974",
"0.51166785",
"0.50833344",
"0.50738806",
"0.5053226",
"0.5045077"... | 0.55349976 | 10 |
Gets the State of the Tweet by checking the InputStream. For a sample Bing Maps API response, please check the snippet at the end of this file. | @SuppressWarnings("unchecked")
private final static Optional<String> getStateFromJSONResponse(InputStream inputStream) {
final ObjectMapper mapper = new ObjectMapper();
try {
//final Map<String,Object> bingResponse = (Map<String, Object>) mapper.readValue(new File("C:/BingMaps_JSON_Response.json"), Map.class);
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public HashMap<String, ArrayList<Tweet>> getStates() {\n return states;\n }",
"ResponseState getState();",
"public com.trg.fms.api.TripState getState() {\n return state;\n }",
"public com.trg.fms.api.TripState getState() {\n return state;\n }",
"public TSLexerState getState() {\r\n \t... | [
"0.5571535",
"0.5257776",
"0.51720005",
"0.51313335",
"0.50365937",
"0.50105363",
"0.5007212",
"0.49944535",
"0.49733603",
"0.49733603",
"0.4943191",
"0.49210972",
"0.49075264",
"0.48946023",
"0.48550516",
"0.48471084",
"0.48130438",
"0.478553",
"0.47847754",
"0.47767702",
"0... | 0.58900195 | 0 |
Check the number of arguments is correct | public static String checkArgsAndGetTraceFormat(String[] args) {
if (args.length != 2 && args.length != 3) {
System.err
.println("Usage: QEAOfflineMain tracePath propertyName [fileFormat (CSV or XML)]");
return null;
}
// Check the property exists
try {
Property.valueOf(args[1]);
} catch (Illeg... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static void checkNumOfArguments(String[] args) throws IllegalArgumentException{\n\t\ttry{\n\t\t\tif(args.length != App.numberOfExpectedArguments ) {\t\n\t\t\t\tthrow new IllegalArgumentException(\"Expected \" + App.numberOfExpectedArguments + \" arguments but received \" + args.length);\n\t\t\t}\n }... | [
"0.8207572",
"0.8038311",
"0.7980599",
"0.79764795",
"0.7726441",
"0.7610781",
"0.75293654",
"0.7414451",
"0.73533547",
"0.73063296",
"0.7264751",
"0.7264751",
"0.7264751",
"0.7264751",
"0.7264751",
"0.72426873",
"0.71694636",
"0.71557707",
"0.7139506",
"0.7074484",
"0.700518... | 0.0 | -1 |
how you're supposed to implement equals | public boolean equals(Object other) {
if (other == this) {
return true;
}
if (other == null) {
return false;
}
if (!other.getClass().equals(this.getClass())) {
return false;
}
Person that = (Person) other;
/*if (!this.na... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic abstract boolean equals(Object other);",
"@Override\n boolean equals(Object other);",
"@Override\n public abstract boolean equals(Object other);",
"@Override\n public abstract boolean equals(Object other);",
"public abstract boolean equals(Object other);",
"@Override public b... | [
"0.8303271",
"0.8282155",
"0.827801",
"0.827801",
"0.82434",
"0.82250917",
"0.82189935",
"0.8197837",
"0.81555897",
"0.8145184",
"0.813778",
"0.81320584",
"0.80774873",
"0.80406356",
"0.80406356",
"0.7970696",
"0.7951921",
"0.79490435",
"0.7800415",
"0.7777809",
"0.7762414",
... | 0.0 | -1 |
Creates a new instance of DirectionController | public DirectionController() {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public DirectionBean() {\n \n }",
"public DirectionAccessBean constructDirections() throws Exception {\n\n\tif (directions == null) {\t\n\t\t// Construct workers bean\n\t\tif (getDirectioncode() != null) {\n\t\t\tdirections = new DirectionAccessBean();\n\t\t\tdirections.setInitKey_division(getDirection... | [
"0.6150142",
"0.6133858",
"0.5916472",
"0.5818249",
"0.5804583",
"0.57139504",
"0.5557128",
"0.5556441",
"0.54805994",
"0.546088",
"0.5415847",
"0.5388201",
"0.53690773",
"0.5362278",
"0.53618693",
"0.5342171",
"0.53406024",
"0.5339035",
"0.53328675",
"0.5321316",
"0.53084093... | 0.7838699 | 0 |
TODO Autogenerated method stub | @Override
public Iterator<T> iterator() {
return new CircularArrayIterator<T>(this);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public boolean hasNext() {
return _current < (_items.length -1);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public T1 next() {
return (T1)_items[getindex(++_current)];
} | {
"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 |
Given an integer x, return true if x is palindrome integer. An integer is a palindrome when it reads the same backward as forward. For example, 121 is palindrome while 123 is not. Example 1: Input: x = 121 Output: true Example 2: Input: x = 121 Output: false Explanation: From left to right, it reads 121. From right to ... | public static boolean isPalindrome(int number) {
boolean isPalindrome = false;
int reverseValue = 0;
int originalNumber = number;
// When x < 0, x is not a palindrome.
// Also: if the last digit of the number is 0, in order to be a palindrome,
// the first digit of the nu... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static boolean palindromeCheck(int x) {\n\t\tint original = x;\n\t\t//\tInitialize an integer to record the reverse of the input\n\t\tint reverse = 0;\n\t\t//\tInitialize an integer to track the remainder through the loop\n\t\tint remainder = 0;\n\t\t\n\t\twhile(x != 0) {\n\t\t\t//\tUse modulo to get the la... | [
"0.88244104",
"0.8709614",
"0.86324286",
"0.85610306",
"0.8537347",
"0.8442966",
"0.8439445",
"0.84007573",
"0.83780736",
"0.8360325",
"0.8279091",
"0.8039229",
"0.7916437",
"0.79075795",
"0.7900985",
"0.7827651",
"0.7789629",
"0.77822506",
"0.7748815",
"0.76931995",
"0.76584... | 0.76589495 | 20 |
Given a string s, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases. Example 1: Input: s = "A man, a plan, a canal: Panama" Output: true Explanation: "amanaplanacanalpanama" is a palindrome. Example 2: Input: s = "race a car" Output: false Explanation: "raceacar" is not a pali... | public static boolean isPalindrome(String s) {
s = s.toLowerCase();
// Store all letters and digits in new string. We don't care about space and special characters etc.
StringBuilder builder = new StringBuilder();
for (char ch : s.toCharArray()) {
if (Character.isLetterOrDigi... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static boolean isPalindrome(String s) {\n\t\tif (s == null || s.trim().isEmpty())\n\t\t\treturn true;\n\t\tif (s.length() == 1) {\n\t\t\treturn true;\n\t\t}\n\t\tchar[] charArray = s.toLowerCase().toCharArray();\n\t\tint start = 0;\n\t\tint end = charArray.length - 1;\n\t\twhile (start < end) {\n\t\t\twhile... | [
"0.85358006",
"0.838073",
"0.8299412",
"0.82735825",
"0.8181053",
"0.81214863",
"0.8111854",
"0.80639696",
"0.8021208",
"0.7953145",
"0.7926608",
"0.782267",
"0.777828",
"0.77772963",
"0.7696813",
"0.7673688",
"0.7668835",
"0.7613757",
"0.7568682",
"0.75665927",
"0.74984884",... | 0.7923764 | 11 |
define of the convert_png_to_jpg method | public static void convert_png_to_jpg(String sourceDir, String destinationDir) throws IOException {
BufferedImage bufferedImage;
File sourceFile = new File(sourceDir);
try {
// read image file
bufferedImage = ImageIO.read(new File(sourceDir));
// create a blank, RGB, same width and height, and a white... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"BufferedImage outputImage();",
"public void compressPng(String inputPath,String outputPath,String extension) throws IOException {\n File input = new File(inputPath);\n BufferedImage inputImage = ImageIO.read(input);\n\n //If the image if of type png, we convert that to jpg.\n if (exte... | [
"0.6328597",
"0.63016623",
"0.6266333",
"0.6144391",
"0.6139412",
"0.6120816",
"0.61188644",
"0.6057707",
"0.59741896",
"0.5961638",
"0.5959498",
"0.5925802",
"0.5915753",
"0.59035635",
"0.5884491",
"0.58227456",
"0.5792113",
"0.5792113",
"0.5792113",
"0.5772872",
"0.572911",... | 0.57772857 | 19 |
define of the opencv_line_remova method | public static void opencv_line_removal(String destinationDir) {
String dirPath = destinationDir;
// System.out.println(destinationDir);
File dir = new File(dirPath);
String filename, filepath;
// System.out.println("directory read");
File[] files = dir.listFiles();
for (File aFile : files) {
filenam... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void recover(List<Line> cppMatrix, Line line) {\n Line newLine = new Line();\n for (int i = findSplitPoint(line); i < line.getContent().size(); i++) {\n newLine.getContent().add(line.getContent().get(i));\n line.getContent().remove(i);\n }\n line.setEndLineC... | [
"0.6339411",
"0.6147643",
"0.6112946",
"0.6019883",
"0.598005",
"0.5921446",
"0.5870983",
"0.58668935",
"0.58187485",
"0.5795515",
"0.57597536",
"0.57312655",
"0.57058144",
"0.56855994",
"0.5623083",
"0.56201327",
"0.5614745",
"0.55957675",
"0.55576235",
"0.5550754",
"0.55386... | 0.68813396 | 0 |
Created instances of all the subsystems. Must be called before any other actions are performed on the robot. | public static void init( ImageProcessing processor)
{
OI.init();
driveTrain = DriveTrain.getInstance();
sensors = Sensors.getInstance();
bridgeTool = BridgingArm.getInstance();
shooter = Shooter.getInstance();
ballGatherer = BallGatherer.getInstance();
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static void setSubsystems()\n {\n //Components\n //Talons\n frontLeftTalon.setName(\"DrivetrainSubsystem\", \"FrontLeftDriveTalon\");\n frontRightTalon.setName(\"DrivetrainSubsystem\", \"FrontRightDriveTalon\");\n rearLeftTalon.setName(\"DrivetrainSubsystem\", \"RearLeftDriveT... | [
"0.66719615",
"0.6648386",
"0.6640399",
"0.66254216",
"0.66092706",
"0.6604295",
"0.6598584",
"0.652124",
"0.6519778",
"0.6488935",
"0.64014626",
"0.63841605",
"0.63226545",
"0.630065",
"0.62566924",
"0.62435955",
"0.6138546",
"0.61328983",
"0.61203593",
"0.61033034",
"0.6102... | 0.0 | -1 |
metoda koja sortira tri proslijedjena broja u rastucem redoslijedu | public static void printSortedNumbers (int n1, int n2, int n3){
int [] numbers = {n1, n2, n3};
Arrays.sort(numbers);
for(int i = 0; i <= 2; i++){
System.out.print(numbers[i] + " ");
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected void ucitajSortiranoPoBrojRez() {\n\t\tObject[]redovi=new Object[9];\r\n\t\tdtm.setRowCount(0);\r\n\t\t\r\n\t\tfor(Rezervacije r:alSort) {\r\n\t\t\t\r\n\t\t\tredovi[0]=r.getID_Rez();\r\n\t\t\tredovi[1]=r.getImePrezime();\r\n\t\t\tredovi[2]=r.getImePozorista();\r\n\t\t\tredovi[3]=r.getNazivPredstave();\r\... | [
"0.75579196",
"0.6686535",
"0.6626134",
"0.65130335",
"0.6500012",
"0.6427119",
"0.62835646",
"0.6281304",
"0.62803257",
"0.6262968",
"0.625154",
"0.6249531",
"0.62399167",
"0.62306297",
"0.6207128",
"0.6200683",
"0.6178357",
"0.6177405",
"0.6166606",
"0.6162301",
"0.6142586"... | 0.0 | -1 |
TODO Autogenerated method stub | public static void main(String[] args) {
Scanner input = new Scanner(System.in);
int number1 = 0;
int number2 = 0;
int number3 = 0;
boolean works1 = true;
System.out.println("Unesite tri cijela broja tipa int.");
//petlja koja kontrolise pravilan unos prvog broja
while(works1){
... | {
"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 |
Change Exclusive Gateway in Event Base Gateway if each Choreography Activity connected by the outgoing transition does not have the projected participant as initiating participant | private boolean changeExclusiveWithEventBaseGateway(Choreography choreography) {
boolean isDeletionPerformed = false;
for (FlowElement flowElement : new ArrayList<FlowElement>(choreography.getFlowElements())) {
if (flowElement instanceof ExclusiveGateway
&& ((ExclusiveGateway) flowElement).getGatewayDirecti... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void checkFlowFromTo(\n NodeAdaptor source, NodeAdaptor target) {\n if (source.isChoreographyActivity() && target.isChoreographyActivity()) {\n Collection<NodeAdaptor> nodesWithoutParticipation =\n getFinalTasksWithoutParticipant(source,\n ... | [
"0.58598757",
"0.5140654",
"0.5102032",
"0.5100796",
"0.5042576",
"0.5017343",
"0.5013772",
"0.501265",
"0.5006645",
"0.49025145",
"0.48934132",
"0.48730552",
"0.48706636",
"0.48702312",
"0.4868296",
"0.48675805",
"0.48529115",
"0.48131797",
"0.4812399",
"0.48016864",
"0.4754... | 0.600485 | 0 |
all choreography activities that they haven't as initiating and receiving the participant used to projection. the removal of one choreography activity occurs changing the target flow node for each incoming transition with the target flow node of the outgoing transition. We assume that a Choreography activity has only o... | private boolean deleteAllUnnecessaryChoreographyActivity(Choreography choreography)
throws Bpmn2ChoreographyProjectorException {
boolean isDeletionPerformed = false;
// delete all choreography activities that they haven't as initiating
// and receiving the participant used to projection
for (FlowElement flow... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void checkFlowFromTo(\n NodeAdaptor source, NodeAdaptor target) {\n if (source.isChoreographyActivity() && target.isChoreographyActivity()) {\n Collection<NodeAdaptor> nodesWithoutParticipation =\n getFinalTasksWithoutParticipant(source,\n ... | [
"0.60373473",
"0.53548014",
"0.5264963",
"0.515106",
"0.51276195",
"0.5121102",
"0.50875217",
"0.5050565",
"0.50178957",
"0.49353123",
"0.49268892",
"0.4919305",
"0.49118915",
"0.4900588",
"0.48673213",
"0.48500252",
"0.48331225",
"0.48289797",
"0.47726735",
"0.47712606",
"0.... | 0.6607273 | 0 |
delete all empty Diverging Gateway. A Diverging Gateway is empty if its outgoing transition directly reach the same Converging Gateway. The Converging Gateway has the same class of the Diverging Gateway. The set of outgoing transition of the Diverging Gateway is equals to the set of incoming transition of the Convergin... | private boolean deleteAllEmptyDivergingGateway(Choreography choreography)
throws Bpmn2ChoreographyProjectorException {
boolean isDeletionPerformed = false;
for (FlowElement flowElement : new ArrayList<FlowElement>(choreography.getFlowElements())) {
// get all Diverging Gateway
if (flowElement instanceof Ga... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private boolean serializeAllConverginGateway(Choreography choreography) throws Bpmn2ChoreographyProjectorException {\n\t\tboolean isDeletionPerformed = false;\n\t\tfor (FlowElement flowElement : new ArrayList<FlowElement>(choreography.getFlowElements())) {\n\t\t\tif (flowElement instanceof Gateway\n\t\t\t\t\t&& ((... | [
"0.6246795",
"0.6238606",
"0.602788",
"0.5686703",
"0.5644372",
"0.5635285",
"0.5633815",
"0.5633679",
"0.5629426",
"0.5580758",
"0.5568989",
"0.5460535",
"0.54308116",
"0.54291785",
"0.53962976",
"0.5383887",
"0.53765774",
"0.5333829",
"0.5330691",
"0.5318267",
"0.53171986",... | 0.69640964 | 0 |
delete all outgoing transition of the Parallel Diverging Gateway that they are directly connected to a Parallel Converging Gateway | private boolean deleteAllParallelGatewayEmptyTransitions(Choreography choreography)
throws Bpmn2ChoreographyProjectorException {
boolean isDeletionPerformed = false;
for (FlowElement flowElement : new ArrayList<FlowElement>(choreography.getFlowElements())) {
// get all Parallel Diverging Gateway
if (flowEl... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void deleteConnections() {\n for (int i = 0; !this.sourceConnections.isEmpty(); ) {\n LinkElement wire = (LinkElement) this.sourceConnections.get(i);\n wire.detachSource();\n wire.detachTarget();\n this.graphElement.removeEdge(wire.getEdgeId(), wire);\n ... | [
"0.6800979",
"0.64402175",
"0.61472124",
"0.6133127",
"0.609959",
"0.6011719",
"0.5906614",
"0.58887666",
"0.5879337",
"0.5826796",
"0.5773439",
"0.5634143",
"0.56246245",
"0.5623702",
"0.5594738",
"0.5591601",
"0.55864704",
"0.5567488",
"0.55241776",
"0.5493172",
"0.5491057"... | 0.6212813 | 2 |
serialize all Diverging Gateway. A Diverging Gateway can be serialized if it has only one incoming transition and only one outgoing transition. Note that: we can serialize an Exclusive Gateway or a Complex Gateway only if they have a target transition connected to an End Event or a Choreography Activity. In the case of... | private boolean serializeAllDivergingGateway(Choreography choreography) throws Bpmn2ChoreographyProjectorException {
boolean isDeletionPerformed = false;
for (FlowElement flowElement : new ArrayList<FlowElement>(choreography.getFlowElements())) {
if ((flowElement instanceof ParallelGateway
&& ((Gateway) flo... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void serialize(OutputStream output, Object graph);",
"public byte[] serialize() {\n int size = distanceVectors.size();\n ByteBuffer buffer = ByteBuffer.allocate(46 * size + headerSize);\n serializeHeader(buffer);\n if(distanceVectors!=null) {\n for (Map.Entry<String, Distan... | [
"0.54616755",
"0.5346284",
"0.5292672",
"0.50476044",
"0.5012962",
"0.49951637",
"0.49535388",
"0.49505606",
"0.49409983",
"0.4936603",
"0.48908103",
"0.4850199",
"0.48426366",
"0.47923982",
"0.47457895",
"0.47331473",
"0.47195134",
"0.47072402",
"0.47050184",
"0.46848986",
"... | 0.5547844 | 0 |
serialize all Converging Gateway. A Converging Gateway can be serialized if he has only one incoming transition and only one outgoing transition | private boolean serializeAllConverginGateway(Choreography choreography) throws Bpmn2ChoreographyProjectorException {
boolean isDeletionPerformed = false;
for (FlowElement flowElement : new ArrayList<FlowElement>(choreography.getFlowElements())) {
if (flowElement instanceof Gateway
&& ((Gateway) flowElement)... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void serialize(OutputStream output, Object graph);",
"public byte[] serialize() {\n int size = distanceVectors.size();\n ByteBuffer buffer = ByteBuffer.allocate(46 * size + headerSize);\n serializeHeader(buffer);\n if(distanceVectors!=null) {\n for (Map.Entry<String, Distan... | [
"0.5776262",
"0.5698755",
"0.56004685",
"0.552453",
"0.5504753",
"0.53584987",
"0.5319408",
"0.5260833",
"0.5189663",
"0.5150108",
"0.51497185",
"0.5138504",
"0.5137377",
"0.51229817",
"0.50448865",
"0.5033887",
"0.50069344",
"0.50001657",
"0.49933076",
"0.49861014",
"0.49786... | 0.5791762 | 0 |
collapse event based gateway. AnEvent Based Gateway can be always collapsed, changing the source of each outgoing transition of the target event based gateway. | private boolean collapseEventBasedGateway(Choreography choreography) {
boolean isDeletionPerformed = false;
for (FlowElement flowElement : new ArrayList<FlowElement>(choreography.getFlowElements())) {
if (flowElement instanceof SequenceFlow
&& ((SequenceFlow) flowElement).getSourceRef() instanceof EventBase... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void collapse() {\n if (DEBUG) logf(\"collapse: \" + this);\n if (!isFullyCollapsed()) {\n mTimeAnimator.cancel();\n mClosing = true;\n // collapse() should never be a rubberband, even if an animation is already running\n mRubberbanding = false;\n ... | [
"0.58979464",
"0.53879404",
"0.5274437",
"0.52191705",
"0.51687217",
"0.5106408",
"0.50912195",
"0.5069265",
"0.5060868",
"0.5025322",
"0.49015978",
"0.48472118",
"0.48028186",
"0.4790084",
"0.47748882",
"0.47471684",
"0.47409025",
"0.47320718",
"0.47275007",
"0.47271237",
"0... | 0.54275495 | 1 |
remove empty parallel gateway flows. A Parallel Gateway Flow is empty is the sourceRef of the flow is a Converging Parallel Gateway and the targetFlowRef is a End Event note that: removing empty parallel gateway flows it may be that we could have the Parallel Gateway without outgoing transition then it must be removed.... | private boolean removeEmptyParallelGatewayFlows(Choreography choreography)
throws Bpmn2ChoreographyProjectorException {
boolean isDeletionPerformed = false;
for (FlowElement flowElement : new ArrayList<FlowElement>(choreography.getFlowElements())) {
if (flowElement instanceof SequenceFlow
&& ((SequenceF... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static List<Flow> splitSinkFromFlow(Flow flow) {\n List<PhysicalExecutionFlow<?, ?>> sinkFlows =\n flow.getNext().stream()\n .filter(f -> f instanceof PhysicalExecutionFlow)\n .map(f -> (PhysicalExecutionFlow<?, ?>) f)\n ... | [
"0.57879084",
"0.5726782",
"0.5539123",
"0.52712727",
"0.5250272",
"0.51568204",
"0.50602835",
"0.5051295",
"0.50398314",
"0.5018812",
"0.49957833",
"0.49665806",
"0.49434897",
"0.49367216",
"0.49204457",
"0.49043384",
"0.48996806",
"0.4843985",
"0.4814297",
"0.4790433",
"0.4... | 0.66561043 | 0 |
remove not used sequence flow. A sequence flow is not used if the sourceRef of the sequence flow is equals to the targetRef of the sequence flow | private boolean removeNotUsedSequenceFlow(Choreography choreography) {
boolean isDeletionPerformed = false;
for (FlowElement flowElement : new ArrayList<FlowElement>(choreography.getFlowElements())) {
if (flowElement instanceof SequenceFlow && ((SequenceFlow) flowElement).getSourceRef()
.equals(((SequenceF... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void remTarget(){\n rem(DmpDMSAG.__target);\n }",
"public void removeAllRuleRef();",
"private void removeActiveSource() {\n for (Iterator<HdmiCecMessage> iter = mBuffer.iterator(); iter.hasNext(); ) {\n HdmiCecMessage message = iter.next();\n if (message.getOpcode... | [
"0.588916",
"0.5689206",
"0.56868184",
"0.5639303",
"0.56239104",
"0.5596134",
"0.5586428",
"0.5584115",
"0.5573883",
"0.5573189",
"0.5541161",
"0.55178404",
"0.5511046",
"0.5504514",
"0.5495952",
"0.549424",
"0.5465556",
"0.54647475",
"0.54313374",
"0.54286087",
"0.54120374"... | 0.6149262 | 0 |
remove all empty end event. An End Event is empty if he has zero incoming flow and zero outgoing sequence flow | private boolean removeAllEmptyEndEvent(Choreography choreography) throws Bpmn2ChoreographyProjectorException {
boolean isDeletionPerformed = false;
for (FlowElement flowElement : new ArrayList<FlowElement>(choreography.getFlowElements())) {
if (flowElement instanceof EndEvent && ((EndEvent) flowElement).getIncom... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void clearReceivedEvents() {\n this.receivedEvents.clear();\n }",
"@Override\n public void onEmptyTarget() {\n endIt(outNode.getNode().getId(), factory, eventCondition.getEnd());\n }",
"void unsetEnd();",
"protected void clearOutEvents() {\n\t... | [
"0.63078535",
"0.6183197",
"0.6105584",
"0.60306907",
"0.60306907",
"0.5792846",
"0.5784061",
"0.57780725",
"0.5713024",
"0.56676686",
"0.56265694",
"0.54931396",
"0.5466641",
"0.54276454",
"0.5425432",
"0.54248524",
"0.54090273",
"0.54034853",
"0.53805107",
"0.5368573",
"0.5... | 0.62316275 | 1 |
To prevent someone from accidentally instantiating the contract class, make the constructor private. | private DBContract() {} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private Contract() {\n }",
"private StoneContract() {\n }",
"private BookMasterContract() {\n }",
"public ContractMethod() {\n }",
"private DishContract() {\n }",
"private CatalogContract() {}",
"private ProjectContract() {\n }",
"private BookContract() {}",
"private TMDBContract(... | [
"0.8854432",
"0.83715004",
"0.81581575",
"0.8156208",
"0.8140227",
"0.8059904",
"0.80594116",
"0.8021256",
"0.79982173",
"0.79760444",
"0.79760444",
"0.7960149",
"0.79027",
"0.7816072",
"0.7811579",
"0.78007317",
"0.7798251",
"0.7783824",
"0.7714849",
"0.77076715",
"0.7685324... | 0.7757424 | 19 |
This is the default constructor. | public CockpitPhaseManager() {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Constructor() {\r\n\t\t \r\n\t }",
"public Constructor(){\n\t\t\n\t}",
"public PSRelation()\n {\n }",
"public Orbiter() {\n }",
"@SuppressWarnings(\"unused\")\n public NoConstructor() {\n // Empty\n }",
"defaultConstructor(){}",
"private Instantiation(){}",
"public Pit... | [
"0.831658",
"0.79991174",
"0.7312765",
"0.7285444",
"0.72804135",
"0.7267609",
"0.7247868",
"0.72120726",
"0.71892464",
"0.718879",
"0.7183687",
"0.7182533",
"0.7168098",
"0.7163782",
"0.7151499",
"0.71496946",
"0.7146192",
"0.7125762",
"0.7114628",
"0.70931274",
"0.708205",
... | 0.0 | -1 |
Constructs the manager from the configuration. It load the handlers and the contest manager from the configuration. | public CockpitPhaseManager(String namespace)
throws CockpitConfigurationException, CockpitPhaseManagementException {
// loads the configuration from the namespace
String username = getPropertyValue(namespace, "EJBContextUsername", null);
String password = getPropertyValue(namespace, ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"ImplementationManager createManager();",
"private void loadManager() {\n LOGGER.info(\"Load metricManager, type: {}\", METRIC_CONFIG.getMetricFrameType());\n ServiceLoader<AbstractMetricManager> metricManagers =\n ServiceLoader.load(AbstractMetricManager.class);\n int size = 0;\n for (Abstract... | [
"0.6096313",
"0.6063441",
"0.5935599",
"0.58903515",
"0.5824956",
"0.5803038",
"0.56270844",
"0.5602292",
"0.555828",
"0.5544285",
"0.55414444",
"0.549051",
"0.54729754",
"0.54575396",
"0.5448026",
"0.54338944",
"0.54270816",
"0.5411749",
"0.53868574",
"0.5380067",
"0.5378108... | 0.0 | -1 |
Returns a Project entity which is mapped from the Contest corresponding to the specified ID. If no such contest exists, null is returned. | public Project getPhases(long contestId) throws PhaseManagementException {
return this.delegate.getPhases(contestId);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Project getById(Long id);",
"public Project getProjectById(String id) {\n\t\tSQLiteQueryBuilder q = new SQLiteQueryBuilder();\n\t\tq.setTables(Constants.TABLE_PROJECTS);\n\n\t\tCursor cursor = q.query(database, null, Constants.COLUMN_ID + \" = ?\", new String[] { id }, null, null, null);\n\t\tcursor.moveToFirst(... | [
"0.7780377",
"0.76609945",
"0.7418027",
"0.736263",
"0.72649425",
"0.7191344",
"0.7148882",
"0.7111097",
"0.70514506",
"0.6985527",
"0.6955015",
"0.6839274",
"0.68308824",
"0.6576454",
"0.65274876",
"0.6508315",
"0.6501786",
"0.6496528",
"0.64291614",
"0.64147013",
"0.6409883... | 0.59952873 | 36 |
Returns an array of all contest statuses mapped to phase types. | public PhaseType[] getAllPhaseTypes() throws PhaseManagementException {
return this.delegate.getAllPhaseTypes();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public PhaseStatus[] getAllPhaseStatuses() throws PhaseManagementException {\r\n return this.delegate.getAllPhaseStatuses();\r\n }",
"public void testGetAllPhaseStatuses() throws Exception {\n PhaseStatus[] phaseStatuses = persistence.getAllPhaseStatuses();\n assertEquals(\"Should return ... | [
"0.66994405",
"0.66745067",
"0.66398114",
"0.6452923",
"0.5892399",
"0.5779665",
"0.57548267",
"0.5574223",
"0.55681807",
"0.5528771",
"0.55248237",
"0.5471726",
"0.5471067",
"0.5419216",
"0.53958416",
"0.5336132",
"0.5270173",
"0.52686167",
"0.52205926",
"0.52186435",
"0.521... | 0.60672367 | 4 |
Returns an array of all phase statuses which can be used by a phase. | public PhaseStatus[] getAllPhaseStatuses() throws PhaseManagementException {
return this.delegate.getAllPhaseStatuses();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public PhaseType[] getAllPhaseTypes() throws PhaseManagementException {\r\n return this.delegate.getAllPhaseTypes();\r\n }",
"public void testGetAllPhaseStatuses() throws Exception {\n PhaseStatus[] phaseStatuses = persistence.getAllPhaseStatuses();\n assertEquals(\"Should return 3 status... | [
"0.6785444",
"0.6533695",
"0.6500349",
"0.62745184",
"0.60001713",
"0.58423764",
"0.5832143",
"0.57915926",
"0.56946474",
"0.56590235",
"0.556988",
"0.55385387",
"0.55170083",
"0.5480661",
"0.54646254",
"0.544052",
"0.5391358",
"0.53811765",
"0.53650576",
"0.5364514",
"0.5360... | 0.80729944 | 0 |
Determines whether it is possible to start the specified phase by the name of phase type. | public boolean canStart(Phase phase) throws PhaseManagementException {
return this.delegate.canStart(phase);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private boolean phaseExists(int phaseNr) {\n return lifeLeft < phaseBoundaries.getPhaseDuration(phaseNr) ;\n }",
"@Test\n public void testStartUpPhase() {\n d_gameEngine.setPhase(new StartUpPhase(d_gameEngine));\n assertEquals(\"StartUpPhase\", d_gameEngine.d_gamePhase.getClass().getSi... | [
"0.564699",
"0.5222011",
"0.51725763",
"0.50708705",
"0.5061084",
"0.4985894",
"0.4983269",
"0.4940161",
"0.4940161",
"0.4940161",
"0.4932458",
"0.49248195",
"0.49037337",
"0.49012703",
"0.487398",
"0.48375657",
"0.48228446",
"0.47924155",
"0.4789689",
"0.47679746",
"0.476524... | 0.65702814 | 0 |
Starts the specified phase and update the contest associated to the phase to the new status. The phase status is set to PhaseStatusOPEN. | public void start(Phase phase, String operator) throws PhaseManagementException {
this.delegate.start(phase, operator);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void setPhaseStatus(GeneralStatus phaseStatus);",
"public void setPhaseStatus(ProjectPhaseStatus phaseStatus) {\r\n this.phaseStatus = phaseStatus;\r\n }",
"public void setPhase(int phase) {\n this.phase = phase;\n }",
"public void testUpdatePhase_Normal() throws Exception {\n // prepare... | [
"0.6483404",
"0.61494434",
"0.60814464",
"0.58770305",
"0.58375156",
"0.5372489",
"0.5359846",
"0.53306735",
"0.5310361",
"0.5285624",
"0.52534324",
"0.52329874",
"0.5216135",
"0.5086797",
"0.50787175",
"0.5058754",
"0.50404876",
"0.49761695",
"0.49747366",
"0.49561444",
"0.4... | 0.53417796 | 7 |
Determines whether it is possible to end the specified phase. | public boolean canEnd(Phase phase) throws PhaseManagementException {
return this.delegate.canEnd(phase);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean isLastPhase ()\n {\n return true;\n }",
"public void endPhase(){\n if(this.actionPhase) {\n this.buyPhase = true;\n this.actionPhase = false;\n }else{\n endTurn();\n }\n }",
"public Guard isFinishedExecution() {\n if (d... | [
"0.6495494",
"0.64842",
"0.6328199",
"0.6318718",
"0.60948634",
"0.6018861",
"0.5904852",
"0.5901655",
"0.59014493",
"0.5813349",
"0.5787536",
"0.5741035",
"0.5675446",
"0.5665274",
"0.56602526",
"0.5660044",
"0.56384593",
"0.5590933",
"0.55879074",
"0.55732816",
"0.55691093"... | 0.7618706 | 0 |
Ends the specified phase. The phase status is set to PhaseStatusCLOSED. | public void end(Phase phase, String operator) throws PhaseManagementException {
this.delegate.end(phase, operator);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void endPhase(){\n if(this.actionPhase) {\n this.buyPhase = true;\n this.actionPhase = false;\n }else{\n endTurn();\n }\n }",
"public void setPhase(int phase) {\n this.phase = phase;\n }",
"public boolean canEnd(Phase phase) throws PhaseMa... | [
"0.68198353",
"0.56837165",
"0.56257105",
"0.5522512",
"0.5490603",
"0.54509765",
"0.5301613",
"0.52850753",
"0.5277388",
"0.52180094",
"0.52026206",
"0.5190657",
"0.51905024",
"0.5180627",
"0.5170517",
"0.5153051",
"0.51530236",
"0.51339567",
"0.5088903",
"0.5088605",
"0.508... | 0.6378553 | 1 |
Determines whether it is possible to cancel the specified phase. This method always returns false. | public boolean canCancel(Phase phase) throws PhaseManagementException {
return this.delegate.canCancel(phase);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract void isCancel(long ms);",
"public boolean checkCancel() {\r\n\t\t\r\n\t\treturn cancel;\r\n\t\t\t\t\r\n\t}",
"@Override\n\tpublic boolean hasCancelBeenRequested() {\n\t\treturn false;\n\t}",
"public boolean checkCancel() {\r\n\t\t\r\n\t\treturn cancel ;\r\n\t\t\t\t\r\n\t}",
"@Override\r\n\t... | [
"0.63144094",
"0.6179708",
"0.6168829",
"0.6114255",
"0.6109873",
"0.6073014",
"0.60349864",
"0.6023438",
"0.6006808",
"0.5993617",
"0.594437",
"0.59324276",
"0.59284717",
"0.58729553",
"0.58604425",
"0.58591545",
"0.58591545",
"0.58591545",
"0.58551496",
"0.580569",
"0.57814... | 0.7814238 | 0 |
Cancels the specified phase. This method does nothing. | public void cancel(Phase phase, String operator) throws PhaseManagementException {
this.delegate.cancel(phase, operator);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void resetPhase();",
"public void cancel() {\n\t}",
"public void cancel();",
"public void cancel();",
"public void cancel();",
"public void cancel();",
"public void cancel();",
"public void cancel();",
"public synchronized void cancel() {\n }",
"public void cancel()\n\t{\n\t}",
"@... | [
"0.65596676",
"0.6396357",
"0.63751173",
"0.63751173",
"0.63751173",
"0.63751173",
"0.63751173",
"0.63751173",
"0.63722545",
"0.6368458",
"0.63582844",
"0.63222706",
"0.63222706",
"0.631838",
"0.6289132",
"0.6288635",
"0.62877566",
"0.6273955",
"0.6269415",
"0.6269188",
"0.62... | 0.7542952 | 0 |
Registers a custom handler for the specified phase type and operation. If a handler already exists for the specified type/operation combination, it will be replaced by the specified handler. Note that type is stored in the registry by reference (rather than copied) so the caller should take care not to subsequently mod... | public void registerHandler(PhaseHandler handler, PhaseType type, PhaseOperationEnum operation) {
this.delegate.registerHandler(handler, type, operation);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private boolean registerHandlerImpl(Class<? extends Packet> packetType, PacketHandler handler) {\n\t\tif(handlers.containsKey(packetType)) {\n\t\t\treturn false; //Don't overwrite an existing handler\n\t\t} else {\n\t\t\thandlers.put(packetType, handler);\n\t\t\treturn true;\n\t\t}\n\t}",
"public <Result> void r... | [
"0.6124099",
"0.60930663",
"0.5926068",
"0.5768589",
"0.54997987",
"0.5477484",
"0.53753954",
"0.5305865",
"0.53046954",
"0.5264824",
"0.52045053",
"0.5099384",
"0.5078783",
"0.5076976",
"0.5059202",
"0.50527275",
"0.4961847",
"0.49485603",
"0.49456522",
"0.48384047",
"0.4803... | 0.80661833 | 0 |
Unregisters the handler (if any) associated with the specified phase type and operation and returns a reference to the handler. Returns null if no handler is associated with the specified type/operation combination. | public PhaseHandler unregisterHandler(PhaseType type, PhaseOperationEnum operation) {
return this.delegate.unregisterHandler(type, operation);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Promise<Void> unregisterHandler(String address, Handler<? extends Message> handler);",
"public void unregisterHandler(Object handler)\n {\n\n }",
"public void registerHandler(PhaseHandler handler, PhaseType type, PhaseOperationEnum operation) {\r\n this.delegate.registerHandler(handler, type, oper... | [
"0.56562644",
"0.564955",
"0.53200686",
"0.5196665",
"0.5119592",
"0.504817",
"0.4753628",
"0.46018443",
"0.45640358",
"0.4525363",
"0.44809183",
"0.44718942",
"0.4462598",
"0.44446847",
"0.44349295",
"0.4395612",
"0.4383394",
"0.4370587",
"0.4330064",
"0.4325258",
"0.4318428... | 0.80702186 | 0 |
Returns an array of all the currently registered phase handlers. If a handler is registered more than one (for different phase/operation combinations), it will appear only once in the array. If there are no handlers in the map then an empty array is returned. | public PhaseHandler[] getAllHandlers() {
return this.delegate.getAllHandlers();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Map<HandlerRegistryInfo, PhaseHandler> getHandlers() {\r\n return this.delegate.getHandlers();\r\n }",
"public HandlerRegistryInfo[] getHandlerRegistrationInfo(PhaseHandler handler) {\r\n return this.delegate.getHandlerRegistrationInfo(handler);\r\n }",
"public HandlerDescription[] g... | [
"0.7277708",
"0.6249965",
"0.6235496",
"0.6027866",
"0.5937708",
"0.59004426",
"0.58945316",
"0.58945316",
"0.58724535",
"0.5864182",
"0.5791294",
"0.57188046",
"0.57188046",
"0.5608562",
"0.5583974",
"0.55055356",
"0.5437954",
"0.54110533",
"0.5366022",
"0.5356249",
"0.53320... | 0.76596415 | 0 |
Returns the phase type(s) and operation(s) associated with the specified handler in the handler registry. An empty array is returned if the handler is not registered. | public HandlerRegistryInfo[] getHandlerRegistrationInfo(PhaseHandler handler) {
return this.delegate.getHandlerRegistrationInfo(handler);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public PhaseHandler[] getAllHandlers() {\r\n return this.delegate.getAllHandlers();\r\n }",
"public PhaseType[] getAllPhaseTypes() throws PhaseManagementException {\r\n return this.delegate.getAllPhaseTypes();\r\n }",
"public Map<HandlerRegistryInfo, PhaseHandler> getHandlers() {\r\n ... | [
"0.66866076",
"0.642305",
"0.6227168",
"0.5950933",
"0.5561866",
"0.53360057",
"0.53170764",
"0.5193465",
"0.51619744",
"0.51369816",
"0.511594",
"0.511594",
"0.5104907",
"0.5104372",
"0.50971895",
"0.50971895",
"0.5063751",
"0.5056746",
"0.5053424",
"0.5048513",
"0.5048513",... | 0.71469533 | 0 |
Sets the current phase validator for this manager. This method does nothing. | public void setPhaseValidator(PhaseValidator phaseValidator) {
this.delegate.setPhaseValidator(phaseValidator);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public PhaseValidator getPhaseValidator() {\r\n return this.delegate.getPhaseValidator();\r\n }",
"public void setValidator(Validator validator) {\n _validator = validator;\n }",
"@Override\r\n\tprotected Validator setValidator() {\n\t\treturn null;\r\n\t}",
"@Override\n protected Vali... | [
"0.63079315",
"0.6231725",
"0.579474",
"0.5315182",
"0.52848756",
"0.5218048",
"0.5185178",
"0.51403487",
"0.50975204",
"0.5092613",
"0.5080925",
"0.5066848",
"0.50645417",
"0.5011044",
"0.48876712",
"0.48622367",
"0.48466423",
"0.48124996",
"0.48096856",
"0.48056018",
"0.479... | 0.7911669 | 0 |
Returns the current phase validator. This method always returns null. | public PhaseValidator getPhaseValidator() {
return this.delegate.getPhaseValidator();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Phase getD_CurrentPhase() {\n return d_CurrentPhase;\n }",
"public Validator getValidator() {\n return _validator;\n }",
"public String phase() {\n return this.phase;\n }",
"public int getPhase() {\n return this.phase;\n }",
"public Integer getPhase() {\n ... | [
"0.63429296",
"0.62727636",
"0.6084841",
"0.5994953",
"0.5962982",
"0.59530413",
"0.59446424",
"0.5922251",
"0.5807391",
"0.58069664",
"0.57817763",
"0.56961036",
"0.56857103",
"0.5672967",
"0.5667079",
"0.563744",
"0.5621551",
"0.5526027",
"0.5525528",
"0.55190957",
"0.54886... | 0.82576084 | 0 |
Returns the contest manager which is configured or set in this manager. | public ContestManager getContestManager() {
return this.delegate.getContestManager();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public final T getManager() {\n return this.manager;\n }",
"public String getManager() {\n return manager;\n }",
"public Manager getManager() {\n return this.manager;\n }",
"public String getManager()\r\n {\r\n return (m_manager);\r\n }",
"public ContentManager getMan... | [
"0.6559416",
"0.65312904",
"0.63808215",
"0.6371791",
"0.6362366",
"0.63538295",
"0.63538295",
"0.63538295",
"0.6324962",
"0.63115144",
"0.62601984",
"0.62302965",
"0.62114125",
"0.6175802",
"0.6079361",
"0.60658437",
"0.60622364",
"0.60606194",
"0.60462815",
"0.6045755",
"0.... | 0.82342106 | 0 |
Sets the contest manager to be used in this manager. | public void setContestManager(ContestManager contestManager) {
this.delegate.setContestManager(contestManager);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setManager(String manager) {\n this.manager = manager;\n }",
"public void setManager(String manager)\r\n {\r\n m_manager = manager;\r\n }",
"public void setSearchContestsManager(SearchContestsManager searchContestsManager) {\r\n this.searchContestsManager = searchContestsM... | [
"0.66131246",
"0.6508819",
"0.63429475",
"0.6270321",
"0.61907256",
"0.6017086",
"0.59964",
"0.5973358",
"0.595172",
"0.583167",
"0.58224624",
"0.57051075",
"0.56916714",
"0.56645375",
"0.5663315",
"0.5614874",
"0.561409",
"0.55749804",
"0.5545979",
"0.54760975",
"0.54632026"... | 0.833401 | 0 |
Returns the log used by this manager. | public Log getLog() {
return this.delegate.getLog();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected synchronized Logger getLog() {\n if (log != null) {\n return log;\n }\n\n log = Logger.getLogger(getClass().getSimpleName());\n\n\n // Store the log in the transient user data, so that it can be properly closed after the batch job is complete.\n // This is ha... | [
"0.7531567",
"0.7385041",
"0.7368199",
"0.73621047",
"0.73518676",
"0.7294845",
"0.72549295",
"0.72275454",
"0.7216568",
"0.71695447",
"0.714601",
"0.7134362",
"0.7127221",
"0.7088649",
"0.70784414",
"0.70460314",
"0.6990523",
"0.69764996",
"0.68520284",
"0.6832983",
"0.67893... | 0.72307485 | 7 |
Sets the log. It can be null which means no logging is performed. | public void setLog(Log log) {
this.delegate.setLog(log);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setLog (Logger log) {\n this.log = log;\n }",
"public void setLog(LogService log) {\n\tthis.log = log;\n }",
"public void setLog(boolean log) {\n this.log = log;\n }",
"public void log(boolean log) {\n this.log = log;\n }",
"public void setLog(boolean log)\n {\n ... | [
"0.8400646",
"0.76270926",
"0.7543798",
"0.75434726",
"0.75335735",
"0.75188607",
"0.7431277",
"0.7272963",
"0.7254121",
"0.7034574",
"0.701173",
"0.6986216",
"0.6941118",
"0.6901989",
"0.6843658",
"0.6829717",
"0.6787972",
"0.676152",
"0.6706573",
"0.6673212",
"0.6556155",
... | 0.8207464 | 1 |
Sets the log by the name. If logName is not null, then a log is retrieved from LogManager by the name, otherwise no logging is performed in this manager. | public void setLog(String logName) {
this.delegate.setLog(logName);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setLog(Log log) {\r\n this.delegate.setLog(log);\r\n }",
"public void setLog (Logger log) {\n this.log = log;\n }",
"public void setLOG(Logger newLog)\r\n\t{\r\n\t\tlog = newLog;\r\n\t}",
"public void setLog(Logger newLog) {\r\n\t\tm_Log = newLog;\r\n\t}",
"public void setLog(LogS... | [
"0.65637344",
"0.64269733",
"0.6036698",
"0.59729433",
"0.59700596",
"0.5812715",
"0.5792587",
"0.5749794",
"0.5735221",
"0.5706403",
"0.5695136",
"0.55876136",
"0.557706",
"0.55625945",
"0.55453545",
"0.55433536",
"0.5498668",
"0.5455371",
"0.5448962",
"0.5438622",
"0.543695... | 0.82714343 | 0 |
Returns the cache used for ContestStatus instances. If it is not null and not empty, the cache will contain 1 object with key "contestStatuses". | public Cache getCachedContestStatuses() {
return this.delegate.getCachedContestStatuses();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public List<ContestStatus> getAllContestStatuses() throws ContestManagementException {\r\n\r\n ContestStatus[] statuses = new ContestStatus[10];\r\n statuses[0] = new ContestStatus();\r\n statuses[0].setContestStatusId(new Long(0));\r\n statuses[0].setName(\"Draft\");\r\n statuse... | [
"0.6303883",
"0.59522605",
"0.5852701",
"0.5789324",
"0.5626097",
"0.5620906",
"0.5433302",
"0.53371835",
"0.5292127",
"0.52850366",
"0.5272914",
"0.52640784",
"0.52466625",
"0.52067184",
"0.5187856",
"0.51820326",
"0.51781607",
"0.50253606",
"0.5002507",
"0.49527904",
"0.494... | 0.7989962 | 0 |
Sets the cache used for ContestStatus instances. | public void setCachedContestStatuses(Cache cachedContestStatuses) {
this.delegate.setCachedContestStatuses(cachedContestStatuses);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Cache getCachedContestStatuses() {\r\n return this.delegate.getCachedContestStatuses();\r\n }",
"public void setCached() {\n }",
"void resetCacheCounters();",
"public void setCache(Cache cache) {\n this.cache = cache;\n }",
"public void setResourceCache(int value)\r\n {\r\n ... | [
"0.66541487",
"0.63196385",
"0.57601714",
"0.5725889",
"0.5608505",
"0.5557383",
"0.5513505",
"0.5458702",
"0.5315943",
"0.5297244",
"0.5255079",
"0.52448267",
"0.52396774",
"0.5236723",
"0.52031106",
"0.5170441",
"0.51693726",
"0.51465607",
"0.514569",
"0.51451206",
"0.51108... | 0.74840355 | 0 |
Returns the handlers map. A shallow copy is returned. | public Map<HandlerRegistryInfo, PhaseHandler> getHandlers() {
return this.delegate.getHandlers();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Map<String, Handler> handlers();",
"public static HandlerList getHandlerList() {\n return handlers;\n }",
"public static HandlerList getHandlerList() {\n return handlers;\n }",
"public final static HandlerList getHandlerList(){\n return handlers;\n }",
"@Override\n public final Handler... | [
"0.7334855",
"0.6661412",
"0.6661412",
"0.6644549",
"0.66196835",
"0.654044",
"0.654044",
"0.6479516",
"0.64674115",
"0.632609",
"0.6281534",
"0.6274528",
"0.6101351",
"0.6082406",
"0.5985036",
"0.59622025",
"0.59413487",
"0.5898994",
"0.5890504",
"0.5880191",
"0.57456046",
... | 0.743843 | 0 |
Set the handlers. A shallow copy is used. | public void setHandlers(Map<HandlerRegistryInfo, PhaseHandler> handlers) {
this.delegate.setHandlers(handlers);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected void setHandlers()\n {\n tableTypeHandler = ccddMain.getTableTypeHandler();\n dataTypeHandler = ccddMain.getDataTypeHandler();\n }",
"public void setHandler(Handler handler) {\r\n this.handler = handler;\r\n }",
"public void setHandler(Handler handler) {\r\n this.handler = ... | [
"0.7149",
"0.67182654",
"0.67182654",
"0.6644577",
"0.6470062",
"0.64368945",
"0.63557553",
"0.62797683",
"0.62797683",
"0.6188528",
"0.6157103",
"0.61478406",
"0.6099808",
"0.6084423",
"0.6084423",
"0.6061306",
"0.5951085",
"0.59452546",
"0.593306",
"0.59263533",
"0.5920959"... | 0.7417352 | 0 |
This helper method loads needed configuration values to create the ContestManager instance, the phase handler and the optional Log and cache. | private void loadConfiguration(String namespace)
throws CockpitConfigurationException, CockpitPhaseManagementException {
// gets 'objectFactoryNamespace' property value
// and creates the ObjectFactory instance
String objectFactoryNamespace = getPropertyValue(namespace, "objectFactor... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected void setUp() {\n config = new ContestConfig();\n }",
"static void loadConfiguration() throws Exception {\n cleanConfiguration();\n\n ConfigManager cm = ConfigManager.getInstance();\n cm.add(\"test_conf/stress/logging.xml\");\n cm.add(\"test_conf/stress/dbconnection... | [
"0.5810632",
"0.58041984",
"0.5804164",
"0.5703587",
"0.56567055",
"0.563537",
"0.55434334",
"0.5541626",
"0.55158365",
"0.54760516",
"0.54503495",
"0.5446547",
"0.54432696",
"0.54363173",
"0.5417935",
"0.54065996",
"0.53374875",
"0.53176016",
"0.53158915",
"0.5311631",
"0.53... | 0.71165127 | 0 |
This helper method obtains ContestManager instance from a JNDI context using JNDIUtil. | private void createContestManager(String contestManagerName, String jndiUtilNamespace)
throws CockpitConfigurationException, CockpitPhaseManagementException {
// creates JNDIUtil instance
JNDIUtil util = createJNDIUtil(jndiUtilNamespace);
try {
// retrieves ContestMana... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public ContestManager getContestManager() {\r\n return this.delegate.getContestManager();\r\n }",
"public static BeanManager lookupBeanManager() {\n BeanManager beanManager = getCDIBeanManager(\"java:comp\");\n if (beanManager == null) {\n beanManager = getCDIBeanManager(\"java... | [
"0.6430586",
"0.5737079",
"0.5656192",
"0.53314996",
"0.5163692",
"0.509153",
"0.5072517",
"0.5029832",
"0.5018783",
"0.498637",
"0.49406493",
"0.4927335",
"0.4907564",
"0.48938993",
"0.48760775",
"0.48707527",
"0.48683888",
"0.4846388",
"0.48425066",
"0.48011714",
"0.4782834... | 0.6786239 | 0 |
This helpers method loads all configured handlers specified in property 'handlers' in configuration. | private void loadHandlers(String namespace, ObjectFactory objectFactory)
throws CockpitConfigurationException {
// gets 'handlers' property
Property handlersProp = getHandlersPropertyObject(namespace);
// iterates all sub-properties
for (Iterator<?> iter = handlersProp.lis... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public HandlerList getHandlers() {\n return handlers;\n }",
"@Override\n public HandlerList getHandlers() {\n return handlers;\n }",
"Map<String, Handler> handlers();",
"@Override\n public void loadRequestHandlers(List<String> list) {\n\n this.requestHandlers.add(\n ... | [
"0.6625413",
"0.6625413",
"0.65892494",
"0.65670836",
"0.6472022",
"0.644462",
"0.6416618",
"0.635971",
"0.63425314",
"0.6336752",
"0.62432325",
"0.61551654",
"0.6132567",
"0.6132567",
"0.6092141",
"0.60464317",
"0.60285777",
"0.5887664",
"0.5830534",
"0.58041096",
"0.5757075... | 0.71957946 | 0 |
This helper methods parses the property name and creates HandlerRegistryInfo instance. | private HandlerRegistryInfo createHandlerRegistryInfo(String propName)
throws CockpitConfigurationException {
// compile the regex pattern for
// 'phaseTypeId,phaseTypeName,phaseOperationEnumName' format.
Pattern pattern = Pattern.compile("^(\\d+),([[\\w*][\\W*]]+),(\\w+)$");
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Object getProperty(String propertyId)\n throws SAXNotRecognizedException\n {\n if ((PROPERTY + \"declaration-handler\").equals(propertyId))\n {\n return (declHandler == base) ? null : declHandler;\n }\n \n if ((PROPERTY + \"lexical-handler\").equals(propertyId))\n {\n... | [
"0.5450524",
"0.5416277",
"0.5258521",
"0.52455366",
"0.51964045",
"0.51442844",
"0.51341915",
"0.5084416",
"0.5083779",
"0.50556326",
"0.49809352",
"0.49561462",
"0.49529096",
"0.49433932",
"0.49321684",
"0.491204",
"0.49116692",
"0.4908284",
"0.49067315",
"0.49067315",
"0.4... | 0.66488826 | 0 |
Gets a property value from configuration namespace under given property name. When the given defaultValue argument is null, it means the property is required, otherwise it means the property is optional. If the property is missing but the property is optional, the default value is returned. | private String getPropertyValue(String namespace, String propertyName, String defaultValue)
throws CockpitConfigurationException {
try {
String prop = ConfigManager.getInstance().getString(namespace, propertyName);
// Property is missing
if (prop == null) {
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String getProperty(String name, String defaultValue);",
"public String getProperty( String name, String defaultValue )\n {\n String value = null;\n if ( config != null )\n {\n value = ( String ) config.getProperty( name );\n LOG.debug( \"getProperty name [{}] value [... | [
"0.7256545",
"0.7217148",
"0.71045583",
"0.7019253",
"0.6927466",
"0.6871094",
"0.6300486",
"0.6215675",
"0.62081724",
"0.620325",
"0.61456966",
"0.6090679",
"0.6059021",
"0.6038552",
"0.5932478",
"0.59265643",
"0.59119976",
"0.59089386",
"0.5833254",
"0.57577527",
"0.575156"... | 0.76685023 | 0 |
Creates ObjectFactory instance with given ConfigManagerSpecificationFactory namespace. | private ObjectFactory createObjectFactory(String objectFactoryNamespace)
throws CockpitConfigurationException {
try {
return new ObjectFactory(new ConfigManagerSpecificationFactory(objectFactoryNamespace));
} catch (IllegalReferenceException e) {
throw new CockpitCon... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static ObjectFactory createObjectFactory(String namespace, String propertyName)\n throws ImageExporterConfigurationException {\n String objectFactoryNamespace = ConfigHelper.getStringProperty(namespace, propertyName);\n\n //not null and not trimmed empty for this property\n if ((... | [
"0.6375589",
"0.6052802",
"0.5653438",
"0.5606141",
"0.55815935",
"0.5529081",
"0.55031663",
"0.5497223",
"0.54663205",
"0.5444349",
"0.5426103",
"0.53666675",
"0.5342945",
"0.53310746",
"0.5306771",
"0.52854013",
"0.5281289",
"0.527612",
"0.5271044",
"0.5268106",
"0.5255086"... | 0.66585386 | 0 |
This helper method creates JNDIUtil instance using specified configuration namespace. If the given namespace is null then JNDIUtilsNAMESPACE is used. | private JNDIUtil createJNDIUtil(String jndiUtilNamespace)
throws CockpitConfigurationException {
try {
return jndiUtilNamespace == null ? new JNDIUtil() : new JNDIUtil(jndiUtilNamespace);
} catch (ConfigurationException e) {
throw new CockpitConfigurationException("F... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static NamespaceContext create() {\n return new NamespaceContext();\n }",
"private NamespaceHelper() {}",
"@DOMSupport(DomLevel.TWO)\r\n @BrowserSupport({BrowserType.FIREFOX_2P, BrowserType.OPERA_9P})\r\n @Function Element createElementNS(String namespaceURI, String qualifiedName);",
"... | [
"0.5032827",
"0.47884953",
"0.45969492",
"0.45153043",
"0.43843204",
"0.43651757",
"0.43359795",
"0.43226293",
"0.4307162",
"0.42774758",
"0.42730245",
"0.4271181",
"0.4246306",
"0.4245804",
"0.42410168",
"0.42409915",
"0.42330155",
"0.42296925",
"0.4212559",
"0.41965917",
"0... | 0.7997727 | 0 |
Creates object using ObjectFactory for given object key. | private Object createObject(ObjectFactory objectFactory, String objectKey, Class<?> type)
throws CockpitConfigurationException {
try {
Object obj = objectFactory.createObject(objectKey);
if (!type.isInstance(obj)) {
throw new CockpitConfigurationException("... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"interface Factory {\n KeyExtractor create(Class<?> entity);\n }",
"public static ObjectKey makeObjectKey(ObjectKeyTemplate paramObjectKeyTemplate, ObjectId paramObjectId) {\n/* 77 */ return (ObjectKey)new ObjectKeyImpl(paramObjectKeyTemplate, paramObjectId);\n/* */ }",
"@Override\n\t\tpublic Obj... | [
"0.6401861",
"0.61923546",
"0.6062367",
"0.6023619",
"0.60007954",
"0.5990874",
"0.5990874",
"0.5990874",
"0.59300864",
"0.59017956",
"0.585351",
"0.5847851",
"0.5780282",
"0.57549065",
"0.575188",
"0.5716927",
"0.56670946",
"0.5618213",
"0.5606996",
"0.55988777",
"0.55779356... | 0.7218377 | 0 |
Gets the handlers property from configuration namespace as Property object. | private Property getHandlersPropertyObject(String namespace)
throws CockpitConfigurationException {
Property handlersProp;
try {
handlersProp = ConfigManager.getInstance().getPropertyObject(namespace, "handlers");
} catch (UnknownNamespaceException e) {
th... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static DispatchingProperties getInstance() {\r\n\t\t// if (handler == null) {\r\n\t\t// handler = new DispatchingProperties();\r\n\t\t// }\r\n\t\t// return handler;\r\n\t\treturn (DispatchingProperties) Properties.forClassName(Properties.DISPATCHING_PROPERTIES_HANDLER_CLASS);\r\n\t}",
"@ClientConfig(JsonM... | [
"0.6502257",
"0.63183665",
"0.62225145",
"0.5987583",
"0.56327593",
"0.5557685",
"0.55212784",
"0.55212784",
"0.55096245",
"0.54866034",
"0.54552877",
"0.54549986",
"0.5448359",
"0.5435755",
"0.5435755",
"0.5435755",
"0.5278658",
"0.52675205",
"0.52675205",
"0.52557087",
"0.5... | 0.8264987 | 0 |
Constructs new CallbackHandlerImpl instance to be set the callbacks with specified user name and password. | private CallbackHandlerImpl(String username, String password) {
this.username = username;
this.password = password;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public ClientCallBackHandler(String user, String pass) {\n\t\tthis.user = user;\n\t\tthis.pass = pass;\n\t }",
"void addUserCallback(UserCallback callback);",
"public CallbackHandler() {\r\n // TODO Auto-generated constructor stub\r\n }",
"public ApplicationManagementServiceCallbackHandler(Object ... | [
"0.65887594",
"0.58340496",
"0.5831316",
"0.56933475",
"0.5653201",
"0.5497862",
"0.5494827",
"0.5467829",
"0.5462276",
"0.5456354",
"0.5439538",
"0.53842664",
"0.53406334",
"0.5335656",
"0.530194",
"0.5235693",
"0.5200469",
"0.5190772",
"0.51703286",
"0.5165803",
"0.5154726"... | 0.7888575 | 0 |
Handles the callbacks. Sets the username and password to be used for autthenticating to EJB container. | public void handle(Callback[] callbacks) throws IOException, UnsupportedCallbackException {
for (int i = 0; i < callbacks.length; i++) {
if (callbacks[i] instanceof TextOutputCallback) {
} else if (callbacks[i] instanceof NameCallback) {
// prompt the ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private CallbackHandlerImpl(String username, String password) {\r\n this.username = username;\r\n this.password = password;\r\n }",
"@Override\r\n\t\t\tpublic void onLogin(String username, String password) {\n\r\n\t\t\t}",
"@Override\n public JsonResponse duringAuthentication(St... | [
"0.6313787",
"0.62972915",
"0.6048594",
"0.597377",
"0.5968496",
"0.5968328",
"0.591545",
"0.5850238",
"0.58099747",
"0.5799389",
"0.5752892",
"0.5737102",
"0.5735037",
"0.5708151",
"0.5693333",
"0.5677102",
"0.5663101",
"0.5626796",
"0.5625944",
"0.5620907",
"0.5620636",
"... | 0.0 | -1 |
not actually part of the model, populated to speed up later requests private String latestCompiledId; | public String getId() {
return _id;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\t\tpublic long getId() {\n\t\t\treturn 0;\n\t\t}",
"public Long getCompId() {\n return compId;\n }",
"public Long getCompId() {\n return compId;\n }",
"public long getId() { return _id; }",
"public long getId() { return this.id; }",
"public long getId() { return id; }",
... | [
"0.5760583",
"0.56805694",
"0.56805694",
"0.5675896",
"0.5668295",
"0.5664936",
"0.5664936",
"0.5594685",
"0.5591747",
"0.55893266",
"0.5545924",
"0.5545013",
"0.5534828",
"0.5533557",
"0.55310386",
"0.5508306",
"0.55034125",
"0.54980975",
"0.54940313",
"0.5491603",
"0.548092... | 0.0 | -1 |
Method that gets the type of error for placing an order | public OrderErrorType getOrderErrorType() {
return orderErrorType;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected <M> M validationError(Class<M> type) {\n Option<Object> err = actual.getValidationError(0);\n if (err.isEmpty()) {\n throwAssertionError(new BasicErrorMessageFactory(\"Expected a Result with validation errors, but instead was %s\",\n actualToString()));\n }\... | [
"0.6139851",
"0.6132074",
"0.5916475",
"0.58114207",
"0.57758844",
"0.57758844",
"0.57758844",
"0.5748107",
"0.57409257",
"0.5683059",
"0.56789637",
"0.55357635",
"0.5526963",
"0.5505637",
"0.5463089",
"0.54350144",
"0.5399372",
"0.5381501",
"0.5381501",
"0.5344827",
"0.53343... | 0.7073017 | 0 |
TODO Autogenerated method stub | public void createAFDetail(VBAFDetail vbAFDetail)
{
AffiliateDAOUtil.createAFDetail(vbAFDetail);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | public void createAffiliate(VBAffiliate vbaffiliate)
{
AffiliateDAOUtil.createAffiliate(vbaffiliate);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | public void deleteAFDetail(VBAFDetail vbAFDetail)
{
AffiliateDAOUtil.deleteAFDetail(vbAFDetail);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | public void deleteAffiliate(VBAffiliate vbaffiliate)
{
AffiliateDAOUtil.deleteAffiliate(vbaffiliate);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | public VBAFDetail getAFDetail(Long afDetailId)
{
return AffiliateDAOUtil.getAFDetail(afDetailId);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | public List getAFDetails()
{
return AffiliateDAOUtil.getAFDetails();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | public List getAFDetails(Long affiliateId)
{
return AffiliateDAOUtil.getAFDetails(affiliateId);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | public VBAffiliate getAffiliate(Long affiliateId)
{
return AffiliateDAOUtil.getAffiliate(affiliateId);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | public List getAllAffiliates()
{
return AffiliateDAOUtil.getAllAffiliates();
} | {
"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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.