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 |
|---|---|---|---|---|---|---|
getter d'un item a partir de la description/nom de l'item | public Item getItem(final String pItem){return this.aItemsList.getItem(pItem);} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getItemDesc() {\n return itemDesc;\n }",
"public String getItemDescription() {\n return itemDescription;\n }",
"public String getItemInformation()\n {\n return this.aDescription + \" qui a un poids de \" + this.aWeight;\n\n }",
"public String getItemDescription(... | [
"0.7625851",
"0.72812104",
"0.72352976",
"0.71578705",
"0.7076287",
"0.70065653",
"0.7000547",
"0.6896606",
"0.68605417",
"0.6850386",
"0.6849256",
"0.68165714",
"0.6803543",
"0.6782722",
"0.6765078",
"0.67639554",
"0.6759413",
"0.67516947",
"0.6743416",
"0.67037225",
"0.6676... | 0.6568062 | 31 |
Methode permmattant de savoir si le player peut prendre un item d'un certaint poid | public boolean canITake(final double pWeight){
return (pWeight+this.aWeight <= this.aStrong) ;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean updatePlayerItem(PlayerItem playerItem);",
"public boolean addPlayerItem(PlayerItem playerItem);",
"public boolean saveNBTToDroppedItem() {\n return true;\n }",
"public abstract boolean depleteItem();",
"private void doItemVerification() {\n\t\tif (actor != null && !actor.attribute... | [
"0.6663407",
"0.6435539",
"0.6300921",
"0.62046325",
"0.6142053",
"0.6100241",
"0.60980034",
"0.6053236",
"0.5999568",
"0.5984184",
"0.59719527",
"0.59650385",
"0.5929284",
"0.5903242",
"0.5890951",
"0.58835614",
"0.5851275",
"0.5838432",
"0.58165973",
"0.5816339",
"0.5804109... | 0.0 | -1 |
Methode affichant tout les item contenu dans l'inventaire du player | public String getItemsString()
{
String vReturnString = "you got : "+this.aItemsList.getItemString();
return vReturnString;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@SuppressWarnings(\"deprecation\")\r\n\t@EventHandler\r\n\tpublic void inventoryClickEvent(InventoryClickEvent e) {\r\n\t\tEntity applier = e.getWhoClicked();\r\n\t\tif (!e.isCancelled()) {\r\n\t\t\tif (applier instanceof Player) {\r\n\t\t\t\tPlayer papplier = (Player) applier;\r\n\t\t\t\t// PlayerInventory pinven... | [
"0.6555848",
"0.63781136",
"0.63334924",
"0.62939274",
"0.62552524",
"0.6251893",
"0.62455195",
"0.61943275",
"0.6172041",
"0.6156793",
"0.6153574",
"0.61478865",
"0.61436313",
"0.61309475",
"0.6121933",
"0.61109364",
"0.6084538",
"0.6080808",
"0.60770845",
"0.6070515",
"0.60... | 0.0 | -1 |
reads all users and applies the filter | private void readUsers(String filter) {
Filter userFilter = Filter.createORFilter(
Filter.createSubAnyFilter("cn", filter),
Filter.createSubAnyFilter("sn", filter),
Filter.createSubAnyFilter("givenname", filter)
);
SearchResult searchResult = Open... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void filterUsers(FilterParameters f) {\n // query users to find appropriate matches and send them a chat request\n Database.getInstance()\n .sendRequestsToMatches(f.getKind(), f.getGender(), f.getReligion(), f.getLanguages()\n , f.getLower_bound(), f.getU... | [
"0.68382746",
"0.67677927",
"0.6647386",
"0.659719",
"0.65643346",
"0.65424067",
"0.6473598",
"0.6437898",
"0.6423328",
"0.6410908",
"0.639261",
"0.6377247",
"0.63568336",
"0.627686",
"0.62737536",
"0.6252497",
"0.62452286",
"0.6236599",
"0.6235531",
"0.6235531",
"0.62154025"... | 0.7846338 | 0 |
Extracts file name from HTTP header contentdisposition | private String extractFileName(final Part part) {
final String contentDisp = part.getHeader("content-disposition");
final String[] items = contentDisp.split(";");
for (final String s : items) {
if (s.trim().startsWith("filename")) {
return s.substring(s.indexOf("=") + 2, s.length()-1);
}
}
return ""... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private String extractFileName(Part part) {\r\n\t\tString contentDisp = part.getHeader(\"content-disposition\");\r\n\t\tString[] items = contentDisp.split(\";\");\r\n\t\tfor (String s : items) {\r\n\t\t\tif (s.trim().startsWith(\"filename\")) {\r\n\t\t\t\treturn s.substring(s.indexOf(\"=\") + 2, s.length()-1);\r\n... | [
"0.83676296",
"0.8355545",
"0.8352466",
"0.8284576",
"0.8276926",
"0.8245582",
"0.80691254",
"0.80658203",
"0.80658203",
"0.7712576",
"0.75882035",
"0.7345139",
"0.6814014",
"0.67860997",
"0.6650416",
"0.64872783",
"0.63520384",
"0.631277",
"0.6156704",
"0.6039019",
"0.598689... | 0.8194779 | 6 |
let subclasses update this directly | public WebStream(String ip, int port, int totalNumPages)
{
this.machineName = ip;
this.port = port;
this.numPagesRequested = totalNumPages;
this.totalNumPagesRetrieved = 0;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\t\tpublic void update() {\n\n\t\t}",
"@Override\n\t\tpublic void update() {\n\n\t\t}",
"@Override\n\t\tpublic void update() {\n\n\t\t}",
"@Override\r\n\t\tpublic void update() {\n\t\t\t\r\n\t\t}",
"@Override\r\n\t\tpublic void update() {\n\t\t\t\r\n\t\t}",
"@Override\r\n\tpublic void update()... | [
"0.66950315",
"0.66950315",
"0.66950315",
"0.65865237",
"0.65865237",
"0.6546491",
"0.65384376",
"0.65384376",
"0.6450742",
"0.638396",
"0.63807416",
"0.6379335",
"0.6366761",
"0.6357711",
"0.6342104",
"0.6342104",
"0.6342104",
"0.6342104",
"0.6342104",
"0.63412046",
"0.62988... | 0.0 | -1 |
Not a realistic method for large crawls! | public Vector<WbRecord> getAllPages() {
Vector<WbRecord> content = getNPages(130000000);
System.out.println("Number of pages expected: " + this.numPagesRequested);
System.out.println("Actual number of pages wbRecordReader crawl: " + this.totalNumPagesRetrieved);
return content;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public ArrayList<String> webCrawling(){\n\t\t\tfor(i=780100; i<790000; i++){\r\n\t\t\t\ttry{\r\n\t\t\t\tdoc = insertPage(i);\r\n\t\t\t\t//Thread.sleep(1000);\r\n\t\t\t\t}catch (Exception e) {\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t\tif(doc != null){\r\n\t\t\t\t\tElement ele = doc.select(\"div.more... | [
"0.6399414",
"0.6206882",
"0.6206373",
"0.60956705",
"0.60757315",
"0.60379785",
"0.59364074",
"0.5926683",
"0.5918691",
"0.5909714",
"0.5836065",
"0.58189994",
"0.5795846",
"0.57749075",
"0.57554024",
"0.57501423",
"0.5734315",
"0.57091755",
"0.56523544",
"0.558346",
"0.5581... | 0.0 | -1 |
Add custom packages here | protected List<ReactPackage> getPackages() {
@SuppressWarnings("UnnecessaryLocalVariable")
List<ReactPackage> packages = new PackageList(this).getPackages();
// Packages that cannot be autolinked yet can be added manually here, for example:
// packages.add(new MyReactNativePackage());
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void addPackage(Package pkg) {\r\n myPackages.add(pkg);\r\n }",
"@Override\n\tprotected void generatePkgImports() {\n\t\toutputList.add(new OutputLine(indentLvl, \"import uvm_pkg::*;\"));\n\t\toutputList.add(new OutputLine(indentLvl, \"import ordt_uvm_reg_translate1_pkg::*;\"));\n\t\tif (UVMRdlT... | [
"0.6608549",
"0.6070275",
"0.5918456",
"0.5911345",
"0.59006274",
"0.589544",
"0.5856004",
"0.5817018",
"0.56911725",
"0.5674507",
"0.56700927",
"0.56480926",
"0.55518246",
"0.5546167",
"0.5538638",
"0.54203105",
"0.54021585",
"0.5394781",
"0.5352344",
"0.53492266",
"0.529757... | 0.52886456 | 21 |
Initializes the controller class. | @Override
public void initialize(URL url, ResourceBundle rb) {
assert lastName != null : "fx:id=\"lastName";
assert name != null : "fx:id=\"name";
assert birth != null : "fx:id=\"birth";
assert place != null : "fx:id=\"place";
assert death != null : "fx:id=\"deat... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void initialize() {\n\t\tcontroller = Controller.getInstance();\n\t}",
"public MainController() {\n\t\tcontroller = new Controller(this);\n\t}",
"public abstract void initController();",
"public Controller() {\n super();\n }",
"public Controller() {\n super();\n }",
"public Co... | [
"0.8126964",
"0.7851839",
"0.7832365",
"0.77611595",
"0.77611595",
"0.76006174",
"0.7449813",
"0.7436411",
"0.74287105",
"0.7421962",
"0.74047625",
"0.7343157",
"0.73301536",
"0.7263003",
"0.7224605",
"0.7101504",
"0.7057384",
"0.69884926",
"0.69719976",
"0.69432217",
"0.6911... | 0.0 | -1 |
Created by Jay on 2018/12/9. | public interface MenuGroupRepository extends JpaRepository<MenuGroup,String>
, QuerydslPredicateExecutor<MenuGroup> {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void perish() {\n \n }",
"private stendhal() {\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r... | [
"0.60498154",
"0.5844589",
"0.5797757",
"0.57664865",
"0.5691012",
"0.5691012",
"0.5652021",
"0.56380427",
"0.5613109",
"0.55913997",
"0.5564318",
"0.55474615",
"0.5541943",
"0.55332196",
"0.55266505",
"0.55011606",
"0.54832083",
"0.54819375",
"0.5480598",
"0.54804724",
"0.54... | 0.0 | -1 |
14.a. Todo Aluno deve ser criado com sua respectiva data de nascimento; | Aluno(String dataNascimento) {
this.dataNascimento = dataNascimento;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void crearVehiculo() {\n\t\t\r\n\t}",
"public void crear() {\n con = new Conexion();\n con.setInsertar(\"insert into lenguajes_programacion (nombre, fecha_creacion, estado) values ('\"+this.getNombre()+\"', '\"+this.getFecha_creacion()+\"', 'activo')\");\n }",
"private in... | [
"0.6720924",
"0.67022324",
"0.66510576",
"0.66281533",
"0.66080195",
"0.6583223",
"0.64883953",
"0.64476866",
"0.6433317",
"0.640121",
"0.6379842",
"0.63680786",
"0.6367804",
"0.6357136",
"0.6319515",
"0.6303976",
"0.629876",
"0.62964463",
"0.6291803",
"0.6281035",
"0.627298"... | 0.6781995 | 0 |
/ node root = new node(1); root.left = new node(2); root.right = new node(3); root.left.left = new node(4); root.left.right = new node(5); | public static void main(String[] args) {
int in[] = new int[] { 9, 8, 4, 2, 10, 5, 10, 1, 6, 3, 13, 12, 7 };
int pre[] = new int[] { 1, 2, 4, 8, 9, 5, 10, 10, 3, 6, 7, 12, 13 };
node root = constructTree(in, pre, 0, in.length - 1);
MorrisTraversePreOrder(root);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static TreeNode getNode() {\n TreeNode treeNode = new TreeNode(1);\n TreeNode left = new TreeNode(2);\n TreeNode right = new TreeNode(3);\n treeNode.left = left;\n treeNode.right = right;\n\n left.left = new TreeNode(4);\n right.left = new TreeNode(5);\n ... | [
"0.753192",
"0.73602766",
"0.73390394",
"0.72480196",
"0.7242657",
"0.722863",
"0.71905345",
"0.7174211",
"0.7148256",
"0.71422416",
"0.71204954",
"0.7110036",
"0.7091399",
"0.70655614",
"0.7057306",
"0.7038168",
"0.6984744",
"0.6958251",
"0.69429994",
"0.69338703",
"0.689354... | 0.0 | -1 |
Created by linchenpeng on 2017/6/23. | public interface ZIndexTransformer {
String getTag();
void transformAnimation(CardItem card, float fraction, int cardWidth, int cardHeight, int fromPosition, int toPosition);
void transformInterpolatedAnimation(CardItem card, float fraction, int cardWidth, int cardHeight, int fromPosition, int toPosition)... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void perish() {\n \n }",
"private stendhal() {\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"private static void cajas() {\n\t\t\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpubli... | [
"0.6007161",
"0.5989859",
"0.57465285",
"0.5724713",
"0.5714884",
"0.57080066",
"0.57080066",
"0.56561935",
"0.56414294",
"0.5622692",
"0.5601056",
"0.5597323",
"0.5587599",
"0.5578967",
"0.55741066",
"0.5552639",
"0.5537759",
"0.55316055",
"0.5513196",
"0.55129266",
"0.54997... | 0.0 | -1 |
Inflate the layout for this fragment | @Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
View rootView = inflater.inflate(R.layout.fragment_profile_comments, container, false);
ProfileCommentsAdapter adapter = new ProfileCommentsAdapter(this.getContext(), mUser.getmComments())... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_main_allinfo, container, false);\n }",
"@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup... | [
"0.6739604",
"0.67235583",
"0.6721706",
"0.6698254",
"0.6691869",
"0.6687986",
"0.66869223",
"0.6684548",
"0.66766286",
"0.6674615",
"0.66654444",
"0.66654384",
"0.6664403",
"0.66596216",
"0.6653321",
"0.6647136",
"0.66423255",
"0.66388357",
"0.6637491",
"0.6634193",
"0.66251... | 0.0 | -1 |
continuously listen for the incoming data and analyse it to get the client intention and perform the correponding action. | public void run() {
out.println("Your are now Connected");
out.println("Enter [user: name] to register");
try {
while (connected) {
cmd = parseLine(in.readLine());
switch(cmd) {
case "user":
Syste... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\t\t\tpublic void run() {\n\t\t\t\twhile (true) {\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\treMsg = withClient.getInputStream();\r\n\t\t\t\t\t\tbyte[] reBuffer = new byte[500];\r\n\t\t\t\t\t\treMsg.read(reBuffer);\r\n\t\t\t\t\t\tString msg = new String(reBuffer);\r\n\t\t\t\t\t\tmsg = msg.trim();\r\n\t\t\t\t\t... | [
"0.67256385",
"0.67192215",
"0.6623474",
"0.6579082",
"0.6440677",
"0.6415186",
"0.6411725",
"0.633512",
"0.6320865",
"0.62653",
"0.6252775",
"0.6235834",
"0.62092847",
"0.61954886",
"0.61780804",
"0.61727345",
"0.6169886",
"0.6165857",
"0.61636454",
"0.6138787",
"0.61374897"... | 0.0 | -1 |
close the connection if an exception occure, or the user want to quit. | public void closeConnection(String s) {
System.out.println(s);
connected = false;
try {
socket.close();
} catch (Exception ee) {
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void close_Connection(){\n\t\ttry{\n\t\t\toutfile.close();\n\t\t\tcon.close();\n\t\t\tSystem.out.println(\"MYSQL is disconnected\");\n\t\t//Catch SQL exception\t\t\n\t\t}catch(SQLException sqle){ \n\t\t\tsqle.printStackTrace();\n\t\t\tSystem.exit(1);\n\t\t}\n\t\t//Catch I/O exception\t\n\t\tcatch(IOException ioe){... | [
"0.6997931",
"0.6966862",
"0.6946444",
"0.6897353",
"0.6885502",
"0.68624294",
"0.67199075",
"0.6699733",
"0.6665452",
"0.66496885",
"0.66430587",
"0.66383237",
"0.66259354",
"0.6600948",
"0.6587031",
"0.6543131",
"0.652401",
"0.6511298",
"0.6498658",
"0.64760566",
"0.6463485... | 0.0 | -1 |
analyse the incoming data | public String parseLine(String line) {
String[] temp = line.split(":");
if (temp[0].equalsIgnoreCase("user")) {
cmd = temp[0];
userName = temp[1];
} else if (temp[0].equalsIgnoreCase("play")) {
if (!playing) {
cmd = temp[0];
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void parseData() {\n\t\t\r\n\t}",
"private void extractData() {\n String[] info = request.split(\";\");\n actionCode = info[0];\n\n // if the code is 102, 103... then it has data attached\n List listOfCodes = Arrays.asList(\"102\", \"103\", \"104\", \"202\", \"203\");\n\n ... | [
"0.71599716",
"0.6329067",
"0.6325892",
"0.6175798",
"0.61198086",
"0.60694873",
"0.6062876",
"0.60440916",
"0.6004658",
"0.5967433",
"0.58078337",
"0.5803986",
"0.57656854",
"0.5765085",
"0.57514423",
"0.5723763",
"0.5713147",
"0.5680758",
"0.56588405",
"0.56569475",
"0.5645... | 0.0 | -1 |
Add your initialization code here | private void parseInit() {
Parse.initialize(this, "gFWZRPLmGg1MRH8TeCNAg4erKgcWrk5OO4uqyJ67","Y8y3WoqfW4pEjSCpYqKBLVnYERvcqmL2GpDQEVf5");
registerParseObjects();
PushService.setDefaultPushCallback(this, PushNotificationActivity.class);
// setInstallationParams(null, false);
Parse.setLogLevel(Parse.LOG_LEV... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void initialize() {\n\t\t\n\t}",
"private void initialize() {\n\t}",
"private void initialize() {\n }",
"private void init() {\n\n\t}",
"private void init() {\n\n\n\n }",
"public void initialize(){\n\t\t//TODO: put initialization code here\n\t\tsuper.initialize();\n\t\t\n\t}",
"protected ... | [
"0.7903482",
"0.7884381",
"0.7875424",
"0.78655183",
"0.7844948",
"0.78390205",
"0.7833755",
"0.78274876",
"0.78274876",
"0.78224546",
"0.7822133",
"0.77985644",
"0.77957034",
"0.7775906",
"0.77747416",
"0.7754356",
"0.7754356",
"0.7749872",
"0.7741338",
"0.7740712",
"0.77407... | 0.0 | -1 |
if (mUser == null) mUser = new User(); | private void initUser() {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void initObjects() {\n databaseHelper = new DatabaseHelper(activity);\n dbHelper = new DBHelper(activity);\n inputValidation = new InputValidation(activity);\n progress = new ProgressDialog(activity);\n user=new User();\n }",
"public User() {\n name = \"\";\n ... | [
"0.6734471",
"0.6617233",
"0.6548706",
"0.6543194",
"0.6542092",
"0.6519755",
"0.6515557",
"0.6495552",
"0.64933455",
"0.6482469",
"0.64810216",
"0.64803076",
"0.6476669",
"0.64654386",
"0.64654386",
"0.64654386",
"0.6442769",
"0.6436221",
"0.6419652",
"0.64163727",
"0.641637... | 0.64609087 | 16 |
This configuration tuning is custom. You can tune every option, you may tune some of them, or you can create default configuration by ImageLoaderConfiguration.createDefault(this); method. | public static void initImageLoader(Context context) {
File cacheDir = StorageUtils.getCacheDirectory(context);
ImageLoaderConfiguration config = new ImageLoaderConfiguration.Builder(context)
.threadPriority(Thread.NORM_PRIORITY - 2)
.denyCacheImageMultipleSizesInMemory()
// .discCache(new UnlimitedDiscC... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void tuningInit() {\n\n }",
"public void customConfig() {\n KConfig kConfig = new KConfig.KConfigBuilder()\n .heapRatio(85.0f) //heap occupied ration in percent, 85.0f means use 85% memory of max heap\n .rootDir(this.getCacheDir().getAbsolutePath()) /... | [
"0.63409853",
"0.5791025",
"0.5730762",
"0.5662872",
"0.56225115",
"0.5558756",
"0.553354",
"0.5359134",
"0.5339623",
"0.52764267",
"0.5270552",
"0.5211977",
"0.5179496",
"0.51467836",
"0.51320463",
"0.51218307",
"0.5092442",
"0.50859445",
"0.508186",
"0.5066703",
"0.50393736... | 0.0 | -1 |
Initializes the controller class. | @Override
public void initialize(URL url, ResourceBundle rb) {
// TODO
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void initialize() {\n\t\tcontroller = Controller.getInstance();\n\t}",
"public MainController() {\n\t\tcontroller = new Controller(this);\n\t}",
"public abstract void initController();",
"public Controller() {\n super();\n }",
"public Controller() {\n super();\n }",
"public Co... | [
"0.8126964",
"0.7851839",
"0.7832365",
"0.77611595",
"0.77611595",
"0.76006174",
"0.7449813",
"0.7436411",
"0.74287105",
"0.7421962",
"0.74047625",
"0.7343157",
"0.73301536",
"0.7263003",
"0.7224605",
"0.7101504",
"0.7057384",
"0.69884926",
"0.69719976",
"0.69432217",
"0.6911... | 0.0 | -1 |
Processes requests for both HTTP GET and POST methods. | protected void processRequest(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException, ClassNotFoundException {
// setting the content type
response.setContentType("application/pdf");
try {
HttpSession session=request... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n protected void doPost(final HttpServletRequest req, final HttpServletResponse resp) throws ServletException, IOException {\n final String method = req.getParameter(METHOD);\n if (GET.equals(method)) {\n doGet(req, resp);\n } else {\n resp.setStatus(HttpServletResponse.SC_METHOD_NOT_... | [
"0.7004024",
"0.66585696",
"0.66031146",
"0.6510023",
"0.6447109",
"0.64421695",
"0.64405906",
"0.64321136",
"0.6428049",
"0.6424289",
"0.6424289",
"0.6419742",
"0.6419742",
"0.6419742",
"0.6418235",
"0.64143145",
"0.64143145",
"0.6400266",
"0.63939095",
"0.63939095",
"0.6392... | 0.0 | -1 |
Handles the HTTP GET method. | @Override
protected void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
try {
processRequest(request, response);
} catch (ClassNotFoundException ex) {
Logger.getLogger(generatepayslip.class.getName()).log(Lev... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void doGet( )\n {\n \n }",
"@Override\n\tprotected void executeGet(GetRequest request, OperationResponse response) {\n\t}",
"@Override\n\tprotected Method getMethod() {\n\t\treturn Method.GET;\n\t}",
"@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) thro... | [
"0.7589609",
"0.71665615",
"0.71148175",
"0.705623",
"0.7030174",
"0.70291144",
"0.6995984",
"0.697576",
"0.68883485",
"0.6873811",
"0.6853569",
"0.6843572",
"0.6843572",
"0.6835363",
"0.6835363",
"0.6835363",
"0.68195957",
"0.6817864",
"0.6797789",
"0.67810035",
"0.6761234",... | 0.0 | -1 |
Handles the HTTP POST method. | @Override
protected void doPost(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
try {
processRequest(request, response);
} catch (ClassNotFoundException ex) {
Logger.getLogger(generatepayslip.class.getName()).log(Le... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void doPost(Request request, Response response) {\n\n\t}",
"@Override\n protected void doPost(HttpServletRequest req, HttpServletResponse resp) {\n }",
"public void doPost( )\n {\n \n }",
"@Override\n public String getMethod() {\n return \"POST\";\n ... | [
"0.73289514",
"0.71383566",
"0.7116213",
"0.7105215",
"0.7100045",
"0.70236707",
"0.7016248",
"0.6964149",
"0.6889435",
"0.6784954",
"0.67733276",
"0.67482096",
"0.66677034",
"0.6558593",
"0.65582114",
"0.6525548",
"0.652552",
"0.652552",
"0.652552",
"0.65229493",
"0.6520197"... | 0.0 | -1 |
Returns a short description of the servlet. | @Override
public String getServletInfo() {
return "Short description";
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getServletInfo()\n {\n return \"Short description\";\n }",
"public String getServletInfo() {\n return \"Short description\";\n }",
"public String getServletInfo() {\n return \"Short description\";\n }",
"public String getServletInfo() {\n return \"Short d... | [
"0.87637967",
"0.8732516",
"0.8732516",
"0.8732516",
"0.8732516",
"0.8732516",
"0.8732516",
"0.8732516",
"0.8732516",
"0.8732516",
"0.8732516",
"0.86994135",
"0.86994135",
"0.86994135",
"0.86994135",
"0.86994135",
"0.86994135",
"0.8531816",
"0.8531816",
"0.8528654",
"0.852865... | 0.0 | -1 |
Constructs a Product with a productName and the productQuantity associated with the product. Product objects constructed will not have any product tags associated with it. | public Product(Name productName, int productQuantity) {
this.productName = productName;
this.productQuantity = productQuantity;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Product(String name, double price, int quantity) {\r\n this.name = name;\r\n this.price = price;\r\n this.quantity = quantity;\r\n }",
"public Product(Name productName, int productQuantity, Set<Tag> productTags) {\n this.productName = productName;\n this.productQuanti... | [
"0.81906533",
"0.80804116",
"0.8046236",
"0.80161655",
"0.7978435",
"0.77009416",
"0.7637445",
"0.7601705",
"0.75932866",
"0.74035114",
"0.73737144",
"0.7333416",
"0.7309889",
"0.7280347",
"0.71678156",
"0.70909697",
"0.7022872",
"0.6992201",
"0.6945147",
"0.6873501",
"0.6815... | 0.8576708 | 0 |
Constructs a Product with a productName and the tags (if any) associated with the products. Tags can be 0 or more than 1. | public Product(Name productName, Set<Tag> productTags) {
this.productName = productName;
this.productQuantity = 0;
this.productTags.addAll(productTags);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Product(Name productName, int productQuantity, Set<Tag> productTags) {\n this.productName = productName;\n this.productQuantity = productQuantity;\n this.productTags.addAll(productTags);\n }",
"public Product createProduct() {\n\t\tProduct prod = new Product();\n\t\tprod.setProdId(... | [
"0.7775399",
"0.72027737",
"0.7008331",
"0.695978",
"0.69367063",
"0.688798",
"0.6874703",
"0.68267465",
"0.6703622",
"0.6682145",
"0.66445595",
"0.65733534",
"0.646821",
"0.6447546",
"0.64176756",
"0.63405293",
"0.62732214",
"0.6270016",
"0.6259648",
"0.62018687",
"0.6186458... | 0.800225 | 0 |
Constructs a Product with a productName, the product's productQuantity and tags associated with the current product. | public Product(Name productName, int productQuantity, Set<Tag> productTags) {
this.productName = productName;
this.productQuantity = productQuantity;
this.productTags.addAll(productTags);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Product(Name productName, int productQuantity) {\n this.productName = productName;\n this.productQuantity = productQuantity;\n }",
"public Product(String name, double price, int quantity) {\r\n this.name = name;\r\n this.price = price;\r\n this.quantity = quantity;\r\... | [
"0.80731314",
"0.77170885",
"0.77021843",
"0.76564646",
"0.7644744",
"0.76249516",
"0.7524072",
"0.75037783",
"0.74687433",
"0.73360175",
"0.73107785",
"0.719176",
"0.71906227",
"0.7032473",
"0.6898218",
"0.6881494",
"0.6801689",
"0.6790597",
"0.67297816",
"0.6728041",
"0.670... | 0.79641384 | 1 |
Compares if two products are equal by checking if they have the same product name. | @Override
public boolean equals(Object other) {
return other == this // short circuit if same object
|| (other instanceof Product // instanceof handles nulls
&& productName.equals(((Product) other).productName)); // state check
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic boolean equals(Object obj) {\n\t\tif(obj instanceof Product) {\n\t\tProduct newProduct = (Product)obj;\n\t\t return this.getSKU() == newProduct.getSKU() ;\n\t\t}\n\t\telse {\n\t\t\treturn false;\n\t\t}\n\t}",
"public void productName_Comparision_MiniCart() {\n UtilityHelper.miniCart_Co... | [
"0.6763442",
"0.6643799",
"0.64385533",
"0.6283071",
"0.62676024",
"0.6234284",
"0.6204925",
"0.6200846",
"0.61890566",
"0.61868054",
"0.6151869",
"0.6084963",
"0.606056",
"0.6056066",
"0.60457546",
"0.6042039",
"0.60180473",
"0.60121804",
"0.59935606",
"0.59892845",
"0.59678... | 0.725806 | 0 |
Displays String representation of Product displayed under a supplier or warehouse. | public String toString() {
final StringBuilder builder = new StringBuilder();
builder.append(getProductName())
.append(" - ")
.append(getProductQuantity())
.append(" left");
return builder.toString();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void displayProduct() {\n\t\tDisplayOutput.getInstance()\n\t\t\t\t.displayOutput(StoreFacade.getInstance());\n\t}",
"public void printProduct() {\n System.out.println(\"nom_jeu : \" + name);\n System.out.println(\"price : \" + price);\n System.out.println(\"uniqueID : \" + i... | [
"0.7244466",
"0.678084",
"0.66707534",
"0.66599786",
"0.65388316",
"0.6524415",
"0.6513666",
"0.6448868",
"0.6427557",
"0.6417845",
"0.6397153",
"0.6377167",
"0.6356508",
"0.63457096",
"0.63304794",
"0.632381",
"0.6315802",
"0.6240458",
"0.62393755",
"0.62053216",
"0.6204089"... | 0.6080102 | 35 |
Displays String representation of Product including Tags. | public String toStringWithTags() {
final StringBuilder builder = new StringBuilder();
builder.append(getProductName())
.append("\nQuantity: ")
.append(getProductQuantity())
.append(" left \n")
.append("Tag(s): \n");
for (Tag tag : ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic String toString() {\r\n\t\treturn \"Product [id=\" + id + \", code=\" + code + \", name=\" + name + \", brand=\" + brand + \", description=\"\r\n\t\t\t\t+ description + \", unitPrice=\" + unitPrice + \", quantity=\" + quantity + \", active=\" + active\r\n\t\t\t\t+ \", categoryId=\" + category... | [
"0.7251838",
"0.70198387",
"0.6890106",
"0.683313",
"0.66368586",
"0.65807694",
"0.64637023",
"0.64604634",
"0.64536196",
"0.6446917",
"0.64402384",
"0.63779646",
"0.63659185",
"0.6309963",
"0.6297137",
"0.6266195",
"0.6246264",
"0.6244983",
"0.6242299",
"0.624028",
"0.621962... | 0.7383113 | 0 |
Examine if a quantity is a valid product quantity. | public static boolean isValidQuantity(int productQuantity) {
return productQuantity >= 0;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private boolean checkValidQuantity (int quantity){\n if (quantity >= 0){\n return true;\n }\n return false;\n }",
"boolean hasQuantity();",
"private boolean isValidNumber(String quantity) {\n\t\ttry{\n\t\t\tint value=Integer.parseInt(quantity);\n\t\t\treturn value>0? true: fa... | [
"0.7448691",
"0.7213221",
"0.7201678",
"0.70818293",
"0.70676214",
"0.69037753",
"0.670418",
"0.66708124",
"0.65656775",
"0.6533227",
"0.6462384",
"0.6179699",
"0.616903",
"0.6163464",
"0.6146982",
"0.59736687",
"0.5948526",
"0.59409565",
"0.59220564",
"0.59181136",
"0.588109... | 0.73930514 | 1 |
_logger.logp(Level.INFO, "ShoppingCart", "addItem", "Entering"); | public void addItem(Item item) {
_items.add(item);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void logs() {\n \n }",
"public void writeLog() {\n\n\t}",
"public void writeLog() {\n\n\t}",
"public void writeLog() {\n\n\t}",
"void log();",
"@Override\n public void log()\n {\n }",
"@Override\n public void log(String message) {\n }",... | [
"0.67233646",
"0.6670111",
"0.6670111",
"0.6670111",
"0.66576564",
"0.6642537",
"0.6515346",
"0.6514745",
"0.64440024",
"0.64260316",
"0.6390422",
"0.6379844",
"0.63214374",
"0.6312054",
"0.6294847",
"0.62944114",
"0.6285169",
"0.62746865",
"0.6202814",
"0.6202403",
"0.616744... | 0.0 | -1 |
_logger.logp(Level.INFO, "ShoppingCart", "removeItem", "Entering"); | public void removeItem(Item item) {
_items.remove(item);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void log();",
"@Override\n public void log()\n {\n }",
"public void writeLog() {\n\n\t}",
"public void writeLog() {\n\n\t}",
"public void writeLog() {\n\n\t}",
"@Override\n public void logs() {\n \n }",
"private void logToFile() {\n }",
"@Override\n public void ... | [
"0.62700933",
"0.6137428",
"0.612223",
"0.612223",
"0.612223",
"0.6114401",
"0.606238",
"0.60464406",
"0.6007493",
"0.5992171",
"0.59737253",
"0.5955351",
"0.5809825",
"0.5746183",
"0.5739325",
"0.57319164",
"0.5728954",
"0.5713035",
"0.5710561",
"0.5701183",
"0.56956154",
... | 0.0 | -1 |
_logger.logp(Level.INFO, "ShoppingCart", "empty", "Entering"); | public void empty() {
_items.clear();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void writeLog() {\n\n\t}",
"public void writeLog() {\n\n\t}",
"public void writeLog() {\n\n\t}",
"@Override\n public void logs() {\n \n }",
"private static void _logInfo ()\n {\n System.err.println (\"Logging is enabled using \" + log.getClass ().getName ());\n }",
"void log();",
"@Ove... | [
"0.6836864",
"0.6836864",
"0.6836864",
"0.6750537",
"0.67350405",
"0.67064035",
"0.6600305",
"0.6452227",
"0.63995856",
"0.6398319",
"0.63788366",
"0.6367272",
"0.6337052",
"0.63078654",
"0.63051116",
"0.6299207",
"0.62972564",
"0.6294277",
"0.6233233",
"0.62288487",
"0.61945... | 0.0 | -1 |
_logger.logp(Level.INFO, "ShoppingCart", "totalValue", "Entering"); unimplemented... free! | public float totalValue() {
return 0;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void logPayRaise(){\r\n\t\tSystem.out.println(\"Log message: employee \" + this.employeeName + \" has new salary: \" + this.salary);\r\n\t}",
"public void logData(){\n }",
"public void writeLog() {\n\n\t}",
"public void writeLog() {\n\n\t}",
"public void writeLog() {\n\n\t}",
"@Override\n ... | [
"0.6387006",
"0.6340284",
"0.62855166",
"0.62855166",
"0.62855166",
"0.62804234",
"0.622163",
"0.61867404",
"0.61380804",
"0.60882336",
"0.6077436",
"0.59431463",
"0.5880096",
"0.58780104",
"0.58765763",
"0.5844818",
"0.58389264",
"0.58356065",
"0.5833006",
"0.58295715",
"0.5... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public BerylliumSphere next() {
return new BerylliumSphere();
} | {
"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 |
Because the field id is private, so change its access first | public long getId(BerylliumSphere s) {
try {
Field f = BerylliumSphere.class.getDeclaredField("id");
f.setAccessible(true);
return f.getLong(s);
} catch(Exception e) {
e.printStackTrace();
}
return -1L;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public int getField(int id) {\n return 0;\n }",
"private Integer getId() { return this.id; }",
"@Override\n\tpublic int getField(int id) {\n\t\treturn 0;\n\t}",
"@Override\n\tpublic int getField(int id) {\n\t\treturn 0;\n\t}",
"@Override\n\tpublic int getField(int id) {\n\t\treturn... | [
"0.71841913",
"0.70222294",
"0.6918454",
"0.6918454",
"0.6918454",
"0.6854692",
"0.6842071",
"0.6783529",
"0.676515",
"0.6702315",
"0.6654889",
"0.66399485",
"0.657235",
"0.657235",
"0.657235",
"0.657235",
"0.657235",
"0.657235",
"0.655193",
"0.65386295",
"0.6501644",
"0.64... | 0.0 | -1 |
TODO Autogenerated method stub | public static void main(String[] args) {
Random r = new Random(47);
BerylliumSphere[] spheres =
Generated.array(BerylliumSphere.class, new BSGenerator(), 10);
Collections.shuffle(Arrays.asList(spheres), r);
System.out.println("Not comparable BS:");
System.out.println(Arrays.toString(spheres));
try {
... | {
"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 |
/public List findByDescription(String searchstr); | @Query("SELECT a FROM Appointment a WHERE a.description like ?1")
public List<Appointment> searchByDescription(String searchstr); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public List<Product> findByDescription(String description);",
"@GetMapping(\"/description/{description}\")\n @ApiOperation(value = \"Search StudyClasses by description\")\n public List<StudyClassDTO> findByDescription(\n @ApiParam(value = \"The StudyClass description\") @PathVariable String desc... | [
"0.8027029",
"0.7296556",
"0.7112129",
"0.7101875",
"0.69368964",
"0.6899516",
"0.68939406",
"0.68145555",
"0.6737028",
"0.66609263",
"0.663154",
"0.65895885",
"0.63810855",
"0.6335838",
"0.63184613",
"0.63160056",
"0.63023794",
"0.6274415",
"0.62410915",
"0.6233143",
"0.6206... | 0.82292587 | 0 |
TODO Autogenerated method stub | @Override
public void run() {
try {
Thread.sleep(5000);
WaitDialogs.this.dialog.dispose();
} catch (InterruptedException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
... | {
"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 |
/ GET INPUT FROM USER FIELDS | @Override
public void onClick(View v) {
String username = edtUsername.getText().toString();
String password = edtPassword.getText().toString();
int usertype = spnUsertype.getSelectedItemPosition();
/* CHECK IF FIELDS ARE BLANK */
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void getTextFromInput() {\n firstName = firstNameField.getText();\n lastName = lastNameField.getText();\n age = ageField.getText();\n email = emailField.getText().toLowerCase();\n }",
"String getUserInput();",
"String getUsersInput(String outForUser) throws IOException;",... | [
"0.70368624",
"0.6782668",
"0.65853",
"0.65673774",
"0.6430418",
"0.6375313",
"0.6355768",
"0.63478225",
"0.62743306",
"0.608286",
"0.59767306",
"0.5962887",
"0.5958919",
"0.5954374",
"0.59331095",
"0.5923627",
"0.5882358",
"0.58822435",
"0.5866794",
"0.5865213",
"0.58627737"... | 0.0 | -1 |
/ GET INPUT FROM USER FIELDS | @Override
public void onClick(View v) {
String username = edtUsername.getText().toString();
String password = edtPassword.getText().toString();
int usertype = spnUsertype.getSelectedItemPosition();
/* CHECK IF FIELDS ARE BLANK */
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void getTextFromInput() {\n firstName = firstNameField.getText();\n lastName = lastNameField.getText();\n age = ageField.getText();\n email = emailField.getText().toLowerCase();\n }",
"String getUserInput();",
"String getUsersInput(String outForUser) throws IOException;",... | [
"0.70368624",
"0.6782668",
"0.65853",
"0.65673774",
"0.6430418",
"0.6375313",
"0.6355768",
"0.63478225",
"0.62743306",
"0.608286",
"0.59767306",
"0.5962887",
"0.5958919",
"0.5954374",
"0.59331095",
"0.5923627",
"0.5882358",
"0.58822435",
"0.5866794",
"0.5865213",
"0.58627737"... | 0.0 | -1 |
Default tags that will be use for writes by Point and POJO. | @Nonnull
public PointSettings getPointSettings() {
return pointSettings;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Tags() {\n set (\"\");\n }",
"public Tag addDefaultTag(){\n StringProperty tagName = new SimpleStringProperty();\n tagName.setValue(\"New Tag\");\n Tag newTag = new Tag(tagName);\n\n\n /* verify if id is integer or string, we handle just strings here\n newTag.setIdPr... | [
"0.585316",
"0.57152116",
"0.5669884",
"0.54547906",
"0.5343675",
"0.5327424",
"0.5286326",
"0.52255714",
"0.5213499",
"0.51833004",
"0.514551",
"0.5136106",
"0.51336306",
"0.5122921",
"0.51205355",
"0.5111237",
"0.5094389",
"0.5094389",
"0.5094389",
"0.5081085",
"0.5060694",... | 0.0 | -1 |
Creates a builder instance. | @Nonnull
public static InfluxDBClientOptions.Builder builder() {
return new InfluxDBClientOptions.Builder();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static Builder create() {\n\t\treturn new Builder();\n\t}",
"public static Builder create() {\n\t\treturn new Builder();\n\t}",
"public static Builder builder ()\n {\n\n return new Builder ();\n\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Bu... | [
"0.834676",
"0.834676",
"0.8243299",
"0.823171",
"0.823171",
"0.823171",
"0.8197563",
"0.8197563",
"0.8197563",
"0.8197563",
"0.81888056",
"0.81887025",
"0.81887025",
"0.81887025",
"0.81887025",
"0.81887025",
"0.81887025",
"0.81887025",
"0.81887025",
"0.81887025",
"0.81887025... | 0.0 | -1 |
Reservation res = (Reservation)reservation; | @RequestMapping(value="/add", method = RequestMethod.POST)
public void addAction(@RequestBody Reservation reservation){
reservationService.create(reservation);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Reservation createReservation();",
"public Reservation getTheObject(){\n return this;\n }",
"CurrentReservation createCurrentReservation();",
"PastReservation createPastReservation();",
"public int getReservationId() { return reservationId; }",
"private ReservationDTO parseReservation(Reservation ... | [
"0.67905784",
"0.66209626",
"0.63198376",
"0.6208411",
"0.61448634",
"0.6037663",
"0.58777887",
"0.5863228",
"0.5854836",
"0.58166426",
"0.5809719",
"0.5809719",
"0.5809719",
"0.5794054",
"0.57632625",
"0.57394826",
"0.56649256",
"0.56501323",
"0.56314623",
"0.56236476",
"0.5... | 0.0 | -1 |
daqui para baixo comeca o controlller do evento// | @RequestMapping("/cadastrodeevento")
public ModelAndView cadastroevento() {
ModelAndView mv = new ModelAndView("CadastroEvento");
mv.addObject(new Evento());
return mv;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void ingresar_a_la_Opcion_de_eventos() {\n\t\t\n\t}",
"public void consulterEvent() {\n\t\t\n\t}",
"@Override\n\tprotected void onEventComming(EventCenter eventCenter) {\n\t}",
"public void TopDreiEvent();",
"@Override\r\n\tpublic void onEvent(Object e) {\n\t}",
"@Override\n\t\t\tpublic void handl... | [
"0.7589339",
"0.72540927",
"0.6977595",
"0.69434774",
"0.68911916",
"0.6700212",
"0.6700212",
"0.667741",
"0.65899944",
"0.65384495",
"0.6483947",
"0.6476122",
"0.6454731",
"0.642151",
"0.642151",
"0.6410684",
"0.6410684",
"0.6410684",
"0.6410684",
"0.6410684",
"0.63544935",
... | 0.0 | -1 |
/ 73: / 74: | public int getId()
/* 75: */ {
/* 76:110 */ return this.idAutorizacionDocumentoPuntoDeVentaAutoimpresorSRI;
/* 77: */ } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void method_4270() {}",
"public void mo21782G() {\n }",
"private void m50366E() {\n }",
"public void mo21779D() {\n }",
"public void mo21877s() {\n }",
"public void mo21785J() {\n }",
"public void mo21794S() {\n }",
"public void mo38117a() {\n }",
"public void mo2178... | [
"0.6956221",
"0.66851795",
"0.66098905",
"0.6554185",
"0.6531153",
"0.6515332",
"0.65074813",
"0.6491724",
"0.6490964",
"0.6483824",
"0.6471957",
"0.64671934",
"0.64283305",
"0.6417651",
"0.640286",
"0.63848376",
"0.6379954",
"0.6371833",
"0.6353902",
"0.63429826",
"0.6339417... | 0.0 | -1 |
/ 78: / 79: | public int getIdAutorizacionDocumentoPuntoDeVentaAutoimpresorSRI()
/* 80: */ {
/* 81:114 */ return this.idAutorizacionDocumentoPuntoDeVentaAutoimpresorSRI;
/* 82: */ } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void method_4270() {}",
"public void mo21782G() {\n }",
"public void mo21779D() {\n }",
"public void mo38117a() {\n }",
"public void mo21877s() {\n }",
"public void mo21787L() {\n }",
"public int p_()\r\n/* 96: */ {\r\n/* 97:117 */ return 64;\r\n/* 98: */ }",
... | [
"0.67917466",
"0.63505256",
"0.63470733",
"0.6314228",
"0.6313831",
"0.62887365",
"0.62793195",
"0.6269475",
"0.62659353",
"0.6260518",
"0.62264603",
"0.6226195",
"0.62204564",
"0.62178564",
"0.62123585",
"0.6199271",
"0.6198202",
"0.6187192",
"0.6186396",
"0.61801577",
"0.61... | 0.0 | -1 |
/ 83: / 84: | public void setIdAutorizacionDocumentoPuntoDeVentaAutoimpresorSRI(int idAutorizacionDocumentoPuntoDeVentaAutoimpresorSRI)
/* 85: */ {
/* 86:118 */ this.idAutorizacionDocumentoPuntoDeVentaAutoimpresorSRI = idAutorizacionDocumentoPuntoDeVentaAutoimpresorSRI;
/* 87: */ } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"C1458cs mo7613iS();",
"public void mo21783H() {\n }",
"public void mo12628c() {\n }",
"void mo33732Px();",
"C2841w mo7234g();",
"public void skystonePos4() {\n }",
"public void mo6081a() {\n }",
"public void mo21782G() {\n }",
"private static int m31084a(zzss zzss) {\n ... | [
"0.5680791",
"0.566645",
"0.56338835",
"0.56084865",
"0.5595498",
"0.5574926",
"0.55568415",
"0.55449283",
"0.55381113",
"0.54939204",
"0.547932",
"0.54283553",
"0.54282093",
"0.54174024",
"0.5416922",
"0.5413567",
"0.54042387",
"0.5402546",
"0.53902173",
"0.53796357",
"0.537... | 0.0 | -1 |
/ 88: / 89: | public int getIdOrganizacion()
/* 90: */ {
/* 91:122 */ return this.idOrganizacion;
/* 92: */ } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static String m21386a(int i) {\n StringBuilder sb = new StringBuilder();\n sb.append(i & 255);\n String str = \".\";\n sb.append(str);\n sb.append((i >> 8) & 255);\n sb.append(str);\n sb.append((i >> 16) & 255);\n sb.append(str);\n sb.append((i... | [
"0.5484231",
"0.544037",
"0.5397333",
"0.53771204",
"0.5343506",
"0.53121394",
"0.5307166",
"0.5289758",
"0.52786124",
"0.52604496",
"0.52574205",
"0.5253081",
"0.5251409",
"0.5244889",
"0.523923",
"0.5217615",
"0.521584",
"0.52144367",
"0.520983",
"0.52094036",
"0.52002454",... | 0.0 | -1 |
/ 93: / 94: | public void setIdOrganizacion(int idOrganizacion)
/* 95: */ {
/* 96:126 */ this.idOrganizacion = idOrganizacion;
/* 97: */ } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void mo9233aH() {\n }",
"public void method_4270() {}",
"public void mo21794S() {\n }",
"public int p_()\r\n/* 96: */ {\r\n/* 97:117 */ return 64;\r\n/* 98: */ }",
"public void mo21782G() {\n }",
"public void mo21786K() {\n }",
"public void mo21879u() {\n }",
"p... | [
"0.62181723",
"0.61741114",
"0.608693",
"0.60841054",
"0.6036582",
"0.5991595",
"0.59792614",
"0.5979204",
"0.5967368",
"0.59491295",
"0.5947058",
"0.59424436",
"0.59405184",
"0.592786",
"0.5906787",
"0.5902277",
"0.58972645",
"0.5871897",
"0.58712167",
"0.5870962",
"0.585354... | 0.0 | -1 |
/ 98: / 99: | public int getIdSucursal()
/* 100: */ {
/* 101:130 */ return this.idSucursal;
/* 102: */ } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int p_()\r\n/* 96: */ {\r\n/* 97:117 */ return 64;\r\n/* 98: */ }",
"int mo5882g(String str);",
"public int a(char paramChar)\r\n/* 484: */ {\r\n/* 485:481 */ if (paramChar == '§') {\r\n/* 486:482 */ return -1;\r\n/* 487: */ }\r\n/* 488:485 */ if (paramChar == ... | [
"0.5628288",
"0.56273305",
"0.5611604",
"0.55347496",
"0.55297834",
"0.5511033",
"0.5477421",
"0.5458874",
"0.5451964",
"0.5409967",
"0.54018193",
"0.5385784",
"0.5385181",
"0.53776425",
"0.5370743",
"0.53645456",
"0.5363271",
"0.53480506",
"0.5309513",
"0.52991766",
"0.52950... | 0.0 | -1 |
/ 103: / 104: | public void setIdSucursal(int idSucursal)
/* 105: */ {
/* 106:134 */ this.idSucursal = idSucursal;
/* 107: */ } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String mo20731c();",
"int getUnknown13();",
"public void method_4270() {}",
"String mo10312id();",
"String mo131984a();",
"public interface C0939c {\n }",
"public void mo12628c() {\n }",
"void mo303a(C0237a c0237a, String str, String str2, String str3);",
"public abstract String mo11611b(... | [
"0.58423746",
"0.5665333",
"0.5561753",
"0.55429715",
"0.5497892",
"0.5480745",
"0.54734147",
"0.54728633",
"0.54487705",
"0.5423911",
"0.5370942",
"0.53389233",
"0.5336923",
"0.5329684",
"0.53224355",
"0.5322351",
"0.531306",
"0.5310239",
"0.5308558",
"0.5297218",
"0.5292828... | 0.0 | -1 |
/ 108: / 109: | public boolean isActivo()
/* 110: */ {
/* 111:138 */ return this.activo;
/* 112: */ } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int mo36g() {\n return 8;\n }",
"public int mo36g() {\n return 4;\n }",
"int main()\n{\n cin>>a.h>>a.m>>a.s>>b.h>>b.m>>b.s;\n int x=a.s-b.s;\n int y=a.m-b.m;\n int z=a.h-b.h;\n if(y<0){\n y+=60;\n z--;\n }\n if(x<0){\n x+=60;\n y--;\n }\n cout<<z<<\":\"<<y<<\... | [
"0.6037383",
"0.57555765",
"0.5660305",
"0.5645482",
"0.55870074",
"0.55654705",
"0.5563369",
"0.5562695",
"0.5555647",
"0.55496514",
"0.5537882",
"0.5533073",
"0.5492722",
"0.5465368",
"0.54617906",
"0.5450966",
"0.5429601",
"0.542803",
"0.5392741",
"0.53878284",
"0.5384824"... | 0.0 | -1 |
/ 113: / 114: | public void setActivo(boolean activo)
/* 115: */ {
/* 116:142 */ this.activo = activo;
/* 117: */ } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int p_()\r\n/* 96: */ {\r\n/* 97:117 */ return 64;\r\n/* 98: */ }",
"public void mo12628c() {\n }",
"C2841w mo7234g();",
"private int e(String paramString, int paramInt)\r\n/* 628: */ {\r\n/* 629:624 */ int i1 = paramString.length();\r\n/* 630:625 */ int i2 = 0;\r\... | [
"0.62958676",
"0.62438715",
"0.6053574",
"0.60032374",
"0.5927514",
"0.5924819",
"0.5890361",
"0.5885106",
"0.58790886",
"0.5878681",
"0.58437216",
"0.58148414",
"0.57902575",
"0.5783843",
"0.5774818",
"0.5770096",
"0.5767558",
"0.5760623",
"0.5732513",
"0.5719069",
"0.571798... | 0.0 | -1 |
/ 118: / 119: | public AutorizacionAutoimpresorSRI getAutorizacionAutoimpresorSRI()
/* 120: */ {
/* 121:146 */ return this.autorizacionAutoimpresorSRI;
/* 122: */ } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void method_4270() {}",
"private void kk12() {\n\n\t}",
"public void mo12628c() {\n }",
"private void m50366E() {\n }",
"public void mo21794S() {\n }",
"public void mo21877s() {\n }",
"public void mo21782G() {\n }",
"public void mo21787L() {\n }",
"public int p_()\r\n/*... | [
"0.6339537",
"0.6154025",
"0.61451656",
"0.61087865",
"0.61070096",
"0.60882515",
"0.6062435",
"0.6051264",
"0.60507864",
"0.6040317",
"0.6031682",
"0.60074955",
"0.59818",
"0.5928441",
"0.591996",
"0.5914567",
"0.5898933",
"0.5869831",
"0.58619237",
"0.58616376",
"0.5860508"... | 0.0 | -1 |
/ 123: / 124: | public void setAutorizacionAutoimpresorSRI(AutorizacionAutoimpresorSRI autorizacionAutoimpresorSRI)
/* 125: */ {
/* 126:150 */ this.autorizacionAutoimpresorSRI = autorizacionAutoimpresorSRI;
/* 127: */ } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\n public void testTakeNumberFromString224() { // FlairImage: 224\n assertEquals(\"From: FlairImage line: 225\", 123, takeNumberFromString(\"123\")); \n assertEquals(\"From: FlairImage line: 226\", 0, takeNumberFromString(\"123a\")); \n assertEquals(\"From: FlairImage line: 227\", -123, takeNumbe... | [
"0.6133244",
"0.594692",
"0.5751824",
"0.5496412",
"0.54067886",
"0.5402204",
"0.5353008",
"0.53391564",
"0.53337115",
"0.5320511",
"0.5306252",
"0.5267958",
"0.5252301",
"0.52263373",
"0.5220291",
"0.5214855",
"0.5210412",
"0.52024406",
"0.51659715",
"0.51613164",
"0.5145246... | 0.0 | -1 |
/ 128: / 129: | public DocumentoBase getDocumentoBase()
/* 130: */ {
/* 131:154 */ return this.documentoBase;
/* 132: */ } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void main(String args[]) {\n\n\n byte b = (byte) 128;\n System.out.println(b);\n byte b1 = (byte) 129;\n System.out.println(b1);\n byte b2 = (byte) -128;\n System.out.println(b2);\n byte b3 = (byte) 127;\n System.out.println(b3);\n }",
"pu... | [
"0.68482375",
"0.6664651",
"0.64156026",
"0.6057379",
"0.60180706",
"0.58829564",
"0.5855996",
"0.58297247",
"0.5787686",
"0.5775992",
"0.57604235",
"0.57397",
"0.569753",
"0.56494874",
"0.56426114",
"0.56353205",
"0.56279075",
"0.5610336",
"0.56043893",
"0.56032044",
"0.5552... | 0.0 | -1 |
/ 133: / 134: | public void setDocumentoBase(DocumentoBase documentoBase)
/* 135: */ {
/* 136:158 */ this.documentoBase = documentoBase;
/* 137: */ } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void mo12628c() {\n }",
"public int p_()\r\n/* 96: */ {\r\n/* 97:117 */ return 64;\r\n/* 98: */ }",
"public int p_()\r\n/* 463: */ {\r\n/* 464:477 */ return 64;\r\n/* 465: */ }",
"public int n_()\r\n/* 429: */ {\r\n/* 430:442 */ return this.a.length + 4;\... | [
"0.6031323",
"0.59166425",
"0.58003706",
"0.5789848",
"0.57057375",
"0.56979513",
"0.56873953",
"0.56843996",
"0.56833106",
"0.56824654",
"0.56755435",
"0.5660506",
"0.5646113",
"0.562926",
"0.5625931",
"0.56065834",
"0.559312",
"0.5585119",
"0.55827093",
"0.5579499",
"0.5570... | 0.0 | -1 |
/ 138: / 139: | public PuntoDeVenta getPuntoDeVenta()
/* 140: */ {
/* 141:162 */ return this.puntoDeVenta;
/* 142: */ } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void mo12628c() {\n }",
"protected int mo3987c() {\n return -1;\n }",
"public void method_4270() {}",
"public void mo21794S() {\n }",
"private void m50366E() {\n }",
"public void mo23813b() {\n }",
"void mo12637b();",
"public void mo115190b() {\n }",
"pub... | [
"0.6307385",
"0.6001657",
"0.59998816",
"0.59321904",
"0.58992887",
"0.5859617",
"0.5852623",
"0.58263165",
"0.5803636",
"0.5796897",
"0.57905525",
"0.57785636",
"0.57607466",
"0.57518065",
"0.5747104",
"0.57362986",
"0.5717662",
"0.5704895",
"0.5696163",
"0.5684736",
"0.5681... | 0.0 | -1 |
/ 143: / 144: | public void setPuntoDeVenta(PuntoDeVenta puntoDeVenta)
/* 145: */ {
/* 146:166 */ this.puntoDeVenta = puntoDeVenta;
/* 147: */ } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"long getMid();",
"long getMid();",
"void mo33732Px();",
"private void m4823s() {\n float f = this.f6613u;\n if (f > 100.0f || f < 0.0f) {\n throw new IllegalArgumentException(\"Invalid percentage.\");\n }\n float j = (float) m4814j();\n this.f6595c.setY((float) (... | [
"0.5455764",
"0.5455764",
"0.5169187",
"0.51539874",
"0.5118921",
"0.5103021",
"0.50778306",
"0.50651634",
"0.50534",
"0.503916",
"0.50254166",
"0.49767992",
"0.4970816",
"0.49547777",
"0.49317572",
"0.4926713",
"0.49187177",
"0.49163088",
"0.49135503",
"0.4890635",
"0.488404... | 0.0 | -1 |
/ 148: / 149: | public Date getFechaInclusion()
/* 150: */ {
/* 151:170 */ return this.fechaInclusion;
/* 152: */ } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getDuration()\r\n/* 70: */ {\r\n/* 71: 71 */ return this.duration;\r\n/* 72: */ }",
"public void mo21794S() {\n }",
"public void mo21783H() {\n }",
"public void mo21877s() {\n }",
"public void mo21782G() {\n }",
"private void m4823s() {\n float f = this.f661... | [
"0.5637329",
"0.5535765",
"0.5488462",
"0.5469369",
"0.54356873",
"0.539732",
"0.53896374",
"0.5367094",
"0.5352267",
"0.5343283",
"0.5340354",
"0.5331528",
"0.5307855",
"0.530436",
"0.5289543",
"0.5284782",
"0.52758247",
"0.52751577",
"0.5273255",
"0.5268581",
"0.52679026",
... | 0.0 | -1 |
/ 153: / 154: | public void setFechaInclusion(Date fechaInclusion)
/* 155: */ {
/* 156:174 */ this.fechaInclusion = fechaInclusion;
/* 157: */ } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected float m()\r\n/* 234: */ {\r\n/* 235:247 */ return 0.03F;\r\n/* 236: */ }",
"private int m15036d(C1085v vVar) {\n if (this.f13675n == 2) {\n return 0;\n }\n int d = this.f13674m.mo12697d(this.f13679r, vVar);\n int a = (this.f13674m.mo12721a(d, ViewCom... | [
"0.6027904",
"0.59516627",
"0.5844907",
"0.57611907",
"0.57536817",
"0.55911297",
"0.55666345",
"0.55644184",
"0.5534809",
"0.5528563",
"0.5528323",
"0.55144995",
"0.5511626",
"0.55064523",
"0.550029",
"0.54842514",
"0.5476825",
"0.544728",
"0.54292977",
"0.54243547",
"0.5415... | 0.0 | -1 |
/ 158: / 159: | public Date getFechaExclusion()
/* 160: */ {
/* 161:178 */ return this.fechaExclusion;
/* 162: */ } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void mo21794S() {\n }",
"public void mo21877s() {\n }",
"public void mo21786K() {\n }",
"public void method_4270() {}",
"public void mo21782G() {\n }",
"public void mo21793R() {\n }",
"public void mo21783H() {\n }",
"public void mo21879u() {\n }",
"public void mo21779D()... | [
"0.62317175",
"0.6138361",
"0.6102031",
"0.60929143",
"0.60242444",
"0.599451",
"0.5986301",
"0.59325415",
"0.59219944",
"0.59171575",
"0.5910267",
"0.59008193",
"0.58962893",
"0.5894904",
"0.58947784",
"0.58853716",
"0.58783317",
"0.5876436",
"0.5852379",
"0.58470213",
"0.58... | 0.0 | -1 |
/ 163: / 164: | public void setFechaExclusion(Date fechaExclusion)
/* 165: */ {
/* 166:182 */ this.fechaExclusion = fechaExclusion;
/* 167: */ } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void method_4270() {}",
"public int n_()\r\n/* 429: */ {\r\n/* 430:442 */ return this.a.length + 4;\r\n/* 431: */ }",
"public void mo12628c() {\n }",
"private void m50366E() {\n }",
"public void mo21879u() {\n }",
"long getUnknown72();",
"private void m27464b() {\n ... | [
"0.60391647",
"0.5954215",
"0.59297895",
"0.59277385",
"0.5907935",
"0.58423746",
"0.5825484",
"0.58039755",
"0.5777627",
"0.5762159",
"0.5755152",
"0.57333845",
"0.57066494",
"0.56967604",
"0.567206",
"0.56551695",
"0.56412715",
"0.56389576",
"0.56284684",
"0.5621621",
"0.56... | 0.0 | -1 |
/ 168: / 169: | public boolean isIndicadorImpreso()
/* 170: */ {
/* 171:186 */ return this.indicadorImpreso;
/* 172: */ } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int method_2436() {\r\n return 16;\r\n }",
"private static String m21398d() {\n try {\n for (NetworkInterface networkInterface : Collections.list(NetworkInterface.getNetworkInterfaces())) {\n if (networkInterface.getName().equalsIgnoreCase(\"wlan0\")) {\n ... | [
"0.5292165",
"0.5116829",
"0.5104743",
"0.50601125",
"0.50137687",
"0.49755737",
"0.49730736",
"0.49262866",
"0.49120483",
"0.4890374",
"0.48630473",
"0.4848078",
"0.48404142",
"0.4835439",
"0.48347503",
"0.481245",
"0.47968426",
"0.47949582",
"0.47937638",
"0.47912472",
"0.4... | 0.0 | -1 |
/ 173: / 174: | public void setIndicadorImpreso(boolean indicadorImpreso)
/* 175: */ {
/* 176:190 */ this.indicadorImpreso = indicadorImpreso;
/* 177: */ } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"long getUnknown72();",
"int getLngE6();",
"int getLngE6();",
"public int method_2436() {\r\n return 16;\r\n }",
"public void mo21877s() {\n }",
"public void mo21794S() {\n }",
"public void mo12628c() {\n }",
"public abstract long mo9746k();",
"private void m50366E() {\n }",
... | [
"0.5993378",
"0.5873376",
"0.5873376",
"0.5806754",
"0.56074244",
"0.5594833",
"0.5563248",
"0.55571127",
"0.5528682",
"0.55253625",
"0.55137515",
"0.55098367",
"0.55083597",
"0.54982203",
"0.5495292",
"0.5465675",
"0.5460454",
"0.5455141",
"0.5445136",
"0.5424993",
"0.542499... | 0.0 | -1 |
/ 178: / 179: | public int getNumeroInicial()
/* 180: */ {
/* 181:194 */ return this.numeroInicial;
/* 182: */ } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void mo12628c() {\n }",
"public void method_4270() {}",
"private void m27464b() {\n this.f25306u = 0;\n this.f25307v = 0;\n if (this.f25277aa) {\n this.f25306u = (int) this.f25288c.measureText(String.valueOf(this.f25301p.get(0)));\n } else if (m27462a(this.f... | [
"0.59851056",
"0.59829897",
"0.59362906",
"0.5883662",
"0.58259505",
"0.5819958",
"0.5798275",
"0.57568157",
"0.575204",
"0.5750321",
"0.57495743",
"0.57337487",
"0.57160825",
"0.5690691",
"0.5689241",
"0.5685898",
"0.56727684",
"0.5670687",
"0.56630266",
"0.5662103",
"0.5660... | 0.0 | -1 |
/ 183: / 184: | public void setNumeroInicial(int numeroInicial)
/* 185: */ {
/* 186:198 */ this.numeroInicial = numeroInicial;
/* 187: */ } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public long mo1981x() throws cf {\r\n return m10270d(m10258F());\r\n }",
"public final void mo14764a() {\n /*\n r9 = this;\n com.google.android.gms.common.util.Clock r0 = com.google.android.gms.ads.internal.zzp.zzkx()\n long r0 = r0.currentTimeMillis()\n ... | [
"0.5945401",
"0.56839633",
"0.5676048",
"0.5641897",
"0.5637808",
"0.5623673",
"0.5620594",
"0.56061643",
"0.5592153",
"0.55883884",
"0.558096",
"0.5545265",
"0.55403376",
"0.55401057",
"0.5528888",
"0.5528056",
"0.5527753",
"0.55146515",
"0.5504566",
"0.55003595",
"0.5490609... | 0.0 | -1 |
/ 188: / 189: | public int getNumero()
/* 190: */ {
/* 191:202 */ return this.numero;
/* 192: */ } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private String processBytes(String bytes){\n Pattern p = Pattern.compile(\"170-180\");\r\n Matcher m = p.matcher(bytes);\r\n //find two bounds\r\n int posi[] = new int[2];\r\n for(int i=0;i<2;i++){\r\n if(m.find()) posi[i] = m.start();\r\n }\r\n //Cut string\r\n retu... | [
"0.59551954",
"0.55867106",
"0.5543647",
"0.5460517",
"0.5428644",
"0.54250795",
"0.5386577",
"0.53071225",
"0.5300438",
"0.529753",
"0.529679",
"0.52706295",
"0.52660006",
"0.524721",
"0.52413046",
"0.52401686",
"0.5233437",
"0.5218408",
"0.52081907",
"0.5194199",
"0.518668"... | 0.0 | -1 |
/ 193: / 194: | public void setNumero(int numero)
/* 195: */ {
/* 196:206 */ this.numero = numero;
/* 197: */ } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void mo12637b();",
"public void mo12628c() {\n }",
"public void mo115190b() {\n }",
"public void mo21879u() {\n }",
"public void method_4270() {}",
"void m5768b() throws C0841b;",
"public int p_()\r\n/* 96: */ {\r\n/* 97:117 */ return 64;\r\n/* 98: */ }",
"@Test(timeout ... | [
"0.61515886",
"0.61209524",
"0.60874486",
"0.60346764",
"0.60144466",
"0.5958108",
"0.58955836",
"0.589272",
"0.5889686",
"0.5874775",
"0.58719546",
"0.5851818",
"0.5795395",
"0.57854944",
"0.5782934",
"0.5778938",
"0.5776883",
"0.5774254",
"0.577381",
"0.5765931",
"0.5763278... | 0.0 | -1 |
/ 198: / 199: | public int getNumeroAnterior()
/* 200: */ {
/* 201:210 */ return this.numeroAnterior;
/* 202: */ } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int mo1980w() throws cf {\r\n return m10275g(m10257E());\r\n }",
"private int m10257E() throws cf {\r\n int i = 0;\r\n int i2;\r\n if (this.g.mo1996h() >= 5) {\r\n byte[] f = this.g.mo1994f();\r\n int g = this.g.mo1995g();\r\n i2 = 0;\r\n ... | [
"0.5269912",
"0.52335095",
"0.50285834",
"0.5020964",
"0.49913698",
"0.49913698",
"0.49756283",
"0.4960104",
"0.4943738",
"0.4900818",
"0.48994172",
"0.48913372",
"0.48868635",
"0.48732013",
"0.48657703",
"0.4861443",
"0.48611066",
"0.48596743",
"0.48493832",
"0.48468706",
"0... | 0.0 | -1 |
/ 203: / 204: | public void setNumeroAnterior(int numeroAnterior)
/* 205: */ {
/* 206:214 */ this.numeroAnterior = numeroAnterior;
/* 207: */ } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void method_204() {}",
"@Test\n void incorrectDeletePathTest() {\n URI uri = URI.create(endBody + \"/dummy\");\n\n // get the response\n HttpResponse<String> response = HttpMethods.delete(uri);\n\n // it should receive 404\n assertNotEquals(200, response.statusCode())... | [
"0.7724344",
"0.5819433",
"0.581816",
"0.5816096",
"0.5749596",
"0.5712729",
"0.57057947",
"0.5703663",
"0.55832225",
"0.5565878",
"0.5559082",
"0.5535366",
"0.55129606",
"0.5470185",
"0.5430394",
"0.5424576",
"0.5417043",
"0.5390752",
"0.5389587",
"0.5379315",
"0.53706676",
... | 0.0 | -1 |
/ 208: / 209: | public boolean isIndicadorNuevo()
/* 210: */ {
/* 211:218 */ return this.indicadorNuevo;
/* 212: */ } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void method_4270() {}",
"public void mo21786K() {\n }",
"public void mo21794S() {\n }",
"public void mo21877s() {\n }",
"public void mo21782G() {\n }",
"private void kk12() {\n\n\t}",
"public int p_()\r\n/* 96: */ {\r\n/* 97:117 */ return 64;\r\n/* 98: */ }",
"publ... | [
"0.6070099",
"0.59103113",
"0.5909211",
"0.58932114",
"0.58269143",
"0.5806681",
"0.57706225",
"0.576613",
"0.57351",
"0.5721793",
"0.5712166",
"0.5693846",
"0.5665776",
"0.56454283",
"0.5633649",
"0.5624437",
"0.56058776",
"0.5598013",
"0.55846345",
"0.55844104",
"0.55822575... | 0.0 | -1 |
/ 213: / 214: | public void setIndicadorNuevo(boolean indicadorNuevo)
/* 215: */ {
/* 216:222 */ this.indicadorNuevo = indicadorNuevo;
/* 217: */ } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int n_()\r\n/* 429: */ {\r\n/* 430:442 */ return this.a.length + 4;\r\n/* 431: */ }",
"public int p_()\r\n/* 96: */ {\r\n/* 97:117 */ return 64;\r\n/* 98: */ }",
"public void method_4270() {}",
"public int p_()\r\n/* 463: */ {\r\n/* 464:477 */ return 64;\r\n/* 4... | [
"0.60815597",
"0.59355235",
"0.5891955",
"0.5862677",
"0.5730288",
"0.57225823",
"0.5661414",
"0.56546926",
"0.5628764",
"0.5617255",
"0.5615247",
"0.56130445",
"0.5600004",
"0.55690813",
"0.55671746",
"0.554174",
"0.5534147",
"0.55188906",
"0.5514317",
"0.5504219",
"0.549897... | 0.0 | -1 |
number of Nodes in the subtree | private Node() {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int countNodes() {\r\n \r\n // call the private countNodes method with root\r\n return countNodes(root);\r\n }",
"public int countNodes(){\r\n \treturn count(root);\r\n }",
"public int countNodes()\r\n {\r\n return countNodes(root);\r\n }",
"public int cou... | [
"0.8550759",
"0.852612",
"0.83994687",
"0.83339375",
"0.83339375",
"0.82514197",
"0.82514197",
"0.8227664",
"0.813227",
"0.813227",
"0.81259996",
"0.81203395",
"0.8004685",
"0.8001473",
"0.79698986",
"0.7964003",
"0.7938558",
"0.79365855",
"0.79269856",
"0.7891468",
"0.788656... | 0.0 | -1 |
initsialize old message lists | public void MakeOldMessageList(){
byte[] nb = new byte[]{1};
ArrayList<Integer> Ids = catalogue.getmasID();
ArrayList<byte[]> names = catalogue.getCNameMessages();
for(int b = 0; b < Ids.size(); b++){
OldMessagesIDs.add(0);
}
for(int b = 0; b < names.size(); b... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void initMsgs() {\n }",
"private void initMsgs() {\n }",
"public ListeMessage() {\n\t\tmessagesEntrant = new ArrayList<Message>();\n\t\tmessagesSortant = new ArrayList<Message>();\n\t\tmessages = new ArrayList<Message>();\n\t}",
"@SuppressWarnings({ \"rawtypes\" })\n @Override\n p... | [
"0.74094045",
"0.74094045",
"0.7402052",
"0.7115848",
"0.68194926",
"0.6612953",
"0.65616",
"0.65312225",
"0.65309805",
"0.6501535",
"0.65015304",
"0.6493245",
"0.6485545",
"0.6420438",
"0.63949865",
"0.6393523",
"0.6384545",
"0.63304955",
"0.6313698",
"0.63006705",
"0.629228... | 0.74856174 | 0 |
Creates a new completion stage which uses a fallback stage in case the primary stage completes exceptionally. | public static <T> CompletionStage<T> withFallback(final CompletionStage<T> stage,
final BiFunction<CompletionStage<T>, Throwable, ? extends CompletionStage<T>> fallback) {
return stage.handle((response, error) -> error)
.thenCompose(error ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public CompletionStage<T> minimalCompletionStage() {\n return context.withContextCapture(f.minimalCompletionStage());\n }",
"public Builder newStage() {\n closeStage();\n currentStage = ImmutableSet.builder();\n return this;\n }",
"private Output... | [
"0.572877",
"0.52146095",
"0.5017",
"0.4962895",
"0.4927009",
"0.4898425",
"0.4853137",
"0.4839596",
"0.48201838",
"0.48163256",
"0.4791236",
"0.47763327",
"0.4726843",
"0.46849948",
"0.46383747",
"0.46211022",
"0.45972043",
"0.45886526",
"0.45691797",
"0.45569167",
"0.453282... | 0.62506104 | 0 |
Returns a completion stage, which is complete when all the completion stages are complete. The lists of each stage are flat mapped into one list, so that the returned stage has one accumulated list. | public static <T> CompletionStage<List<T>> allOf(final Collection<? extends CompletionStage<List<T>>> stages) {
// First convert the list of stages to an array of CompletableFuture.
// Then use CompletableFuture.allOf to combine them all.
return CompletableFuture.allOf(stages.stream().map(Com... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"java.util.List<com.google.container.v1beta1.OperationProgress> getStagesList();",
"private Optional<List<Stage>> toStages(Holder.Stage stage) {\n if (stage.isSyntheticStage()) {\n log.debug(\"Discarding synthetic stage\");\n return Optional.empty();\n }\n\n Status stageStatus =\n Status... | [
"0.5837679",
"0.5645021",
"0.5539508",
"0.5367172",
"0.52342606",
"0.5201069",
"0.51342803",
"0.50983167",
"0.507764",
"0.5069465",
"0.50622106",
"0.49433917",
"0.49376568",
"0.49327648",
"0.48567003",
"0.4783736",
"0.47558677",
"0.47424185",
"0.46964237",
"0.46866223",
"0.46... | 0.5985533 | 0 |
Creates a completion stage, which times out after the specified time, i.e. it completes exceptionally with the supplied exception. | public static <T> CompletionStage<T> timeoutAfter(final long delay, final TimeUnit unit, final Supplier<Throwable> throwableSupplier) {
CompletableFuture<T> completableFuture = new CompletableFuture<>();
TIMEOUT_EXECUTOR.schedule(() ->
completableFuture.completeExceptionally(throwable... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public TimeoutException(long time) {\n\t\tduration = time;\n\t}",
"public TimeoutException(long time, String message) {\n\t\tsuper(message);\n\t\tduration = time;\n\t}",
"public static <T> CompletionStage<T> exceptionallyCompleted(Exception e) {\n CompletableFuture<T> result = new CompletableFuture<T>()... | [
"0.6439347",
"0.6024863",
"0.55310196",
"0.5487768",
"0.54015493",
"0.5336058",
"0.5177344",
"0.50969315",
"0.50657654",
"0.5051165",
"0.5039629",
"0.50266325",
"0.5013172",
"0.50030655",
"0.499446",
"0.49813482",
"0.49224362",
"0.48731753",
"0.48681402",
"0.48677424",
"0.486... | 0.5464451 | 4 |
Creates an instance of IntegerSummary with a given starting value. | public IntegerSummary(final int value) {
value_ = value;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private IntegerSummary(final int value, final Mode mode) {\n value_ = value;\n mode_ = mode;\n }",
"public ElasticInteger(int valueAtStart, long duration) {\n super(valueAtStart, duration);\n }",
"IntegerValue createIntegerValue();",
"IntegerValue createIntegerValue();",
"public ElasticInt... | [
"0.66736495",
"0.63688594",
"0.6046939",
"0.6046939",
"0.59617984",
"0.5824126",
"0.5824126",
"0.5779904",
"0.5709782",
"0.5675967",
"0.5673154",
"0.55678254",
"0.55597633",
"0.5558263",
"0.55304945",
"0.5504114",
"0.54262835",
"0.5418862",
"0.5398018",
"0.5383592",
"0.538267... | 0.77705485 | 0 |
Creates an instance of the IntegerSummary given a serialized representation | public static DeserializeResult<IntegerSummary> fromMemory(final Memory mem) {
return new DeserializeResult<>(new IntegerSummary(mem.getInt(VALUE_INDEX)), SERIALIZED_SIZE_BYTES);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public IntegerSummary(final int value) {\n value_ = value;\n }",
"private IntegerSummary(final int value, final Mode mode) {\n value_ = value;\n mode_ = mode;\n }",
"IntegerValue createIntegerValue();",
"IntegerValue createIntegerValue();",
"public static FinalIntegerNode finalIntegerNodeFactory... | [
"0.6093963",
"0.5515506",
"0.52685684",
"0.52685684",
"0.5251756",
"0.5230547",
"0.5212796",
"0.5161814",
"0.50878406",
"0.49806654",
"0.49805218",
"0.49489594",
"0.49285015",
"0.49211672",
"0.49114978",
"0.49099222",
"0.4830618",
"0.4830618",
"0.48139206",
"0.48128614",
"0.4... | 0.54294604 | 2 |
esto es de otro ejercicio | public static void enumm(int n, List<Integer> l, Set<String> set) {
if (evaluar(l)) {
System.out.println("-----");
} else {
for (int i = 0; i < l.size(); i++) {
if (l.get(i) <= 1)continue;
int x = l.get(i);
l.remove(i);
for (int j = 1; j <= n / 2; j++) {
int d = x - (j);
if (d < 1)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void limpiarDatos() {\n\t\t\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tpublic void iniciar() {\n\t\t\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}... | [
"0.72049356",
"0.71882623",
"0.7022609",
"0.67398155",
"0.6696468",
"0.6649128",
"0.6625912",
"0.6573842",
"0.6531404",
"0.6525658",
"0.6421327",
"0.640522",
"0.6393346",
"0.63916224",
"0.6371776",
"0.6371195",
"0.6348163",
"0.6344026",
"0.631932",
"0.6298623",
"0.62754554",
... | 0.0 | -1 |
Get a list of all online player (nick)names. | public static List<String> getOnlinePlayerNames() {
Iterable<User> onlineUsers = SlapPlugin.getInstance().getEssentials().getOnlineUsers();
return StreamSupport.stream(onlineUsers.spliterator(), false)
.map(user -> StringUtils.isEmpty(user.getNickname()) ? user.getName() : user.getNickna... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public List<String> nicknames();",
"public List<String> getAllPlayerNames() {\n List<String> playerNames = new ArrayList<>(10);\n for (Player p : players) {\n playerNames.add(p.getName());\n }\n return playerNames;\n }",
"public void getPlayerList() {\n if (conn... | [
"0.7481402",
"0.74191046",
"0.71065694",
"0.70900935",
"0.69726896",
"0.69106674",
"0.68388695",
"0.68317825",
"0.6766974",
"0.67152286",
"0.6673878",
"0.659135",
"0.65225375",
"0.6509785",
"0.6498536",
"0.6485341",
"0.6463601",
"0.64554566",
"0.6448661",
"0.6382346",
"0.6287... | 0.84435236 | 0 |
Send a "Bad" message to the player indicating they did something wrong. | public static void badMsg(CommandSender sender, String msg) {
if (sender instanceof Player) {
sender.sendMessage(ChatColor.RED + msg);
} else {
sender.sendMessage(msg);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public synchronized void sendInvalid() {\r\n\t\tbeginMessage();\r\n\t\tsend(ServerConst.ANS + ServerConst.ANS_INVALID);\r\n\t\tendMessage();\r\n\t}",
"public void playerError(Player player, String message){\n\t\tplayer.sendMessage(ChatColor.RED + message);\n\t}",
"@Override\n\tpublic void OnFailCommand() {\n\t... | [
"0.6904836",
"0.67850655",
"0.6603684",
"0.64714366",
"0.6456416",
"0.6450518",
"0.64016384",
"0.63534474",
"0.6347826",
"0.6279274",
"0.6226517",
"0.62204224",
"0.6192679",
"0.6004355",
"0.5999241",
"0.5989082",
"0.5983419",
"0.5973272",
"0.59139585",
"0.58941114",
"0.588826... | 0.6824105 | 1 |
Send a message to all players with the specified permission | public static void messagePermissionHolders(String permission, String message) {
for (Player p : Bukkit.getOnlinePlayers()) {
if (testPermission(p, permission)) {
p.sendMessage(message);
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void sendGameInfoToAll(){\r\n\t\t\r\n\t\tVector<Player> players = lobby.getLobbyPlayers();\t\r\n\t\tString message = \"UDGM\" + lobby.getGameString();\r\n\t\t\r\n\t\tif(!players.isEmpty()){\r\n\t \tfor(int i=0; i<players.size(); i++){\t \t\t\r\n\t \t\tsendOnePlayer(players.get(i), message);\t \t... | [
"0.65606385",
"0.6458323",
"0.6349462",
"0.6225352",
"0.6077561",
"0.6041061",
"0.601192",
"0.5991024",
"0.59603286",
"0.5913042",
"0.58745056",
"0.581606",
"0.57561547",
"0.5735566",
"0.573116",
"0.5729364",
"0.5711508",
"0.5709781",
"0.5698927",
"0.569474",
"0.5678595",
"... | 0.7706496 | 0 |
Broadcast a message to all players. | public static void broadcast(String message) {
Bukkit.broadcastMessage(message);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void broadcast(String message)\n \t{\n \t\tfor(int i = 0; i < players.length; i++)\n \t\t{\n // PROTOCOL\n \t\t\tplayers[i].sendMessage(message);\n // PROTOCOL\n \t\t}\n \t}",
"public void broadcast() {\n for (int i = 1; i <= nbMessagesToBroadcast; i++) {\n Message broadcastMsg = new Me... | [
"0.77389324",
"0.74205834",
"0.7121333",
"0.70147735",
"0.699261",
"0.6926037",
"0.6863096",
"0.6785842",
"0.6606499",
"0.6603655",
"0.6590527",
"0.6581277",
"0.6538427",
"0.6521681",
"0.651778",
"0.647494",
"0.64553416",
"0.645011",
"0.63864475",
"0.6378161",
"0.635685",
"... | 0.6135282 | 27 |
Test if a CommandSender has a certain permission. Prepend SlapPlugin.[perm] | public static boolean testPermission(CommandSender sender, String perm) {
return !(sender instanceof Player) || sender.hasPermission("SlapPlugin." + perm);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public boolean hasPermission(CommandSender sender, String pNode) {\n if (!(sender instanceof Player)) return true;\n return hasPermission((Player) sender, pNode);\n }",
"public boolean handlePerm(Player player, String perm);",
"boolean hasPermission(final Player sniper, final St... | [
"0.7104701",
"0.6981933",
"0.69255334",
"0.6763745",
"0.6590335",
"0.65155464",
"0.6416701",
"0.63301206",
"0.6129254",
"0.60893565",
"0.6082688",
"0.6058193",
"0.6047015",
"0.60333747",
"0.60312086",
"0.60261834",
"0.602348",
"0.59742963",
"0.5951645",
"0.58885163",
"0.58472... | 0.80073994 | 0 |
Build a string from a string array. | public static String buildString(String[] split, String splitChar, int begin) {
return buildString(split, splitChar, begin, Integer.MAX_VALUE);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static String join(String[] array)\n {\n if( array.length == 0 ) return Constants.BLANK;\n StringBuilder sb = new StringBuilder();\n for( String s : array )\n sb.append(s);\n return sb.toString();\n }",
"public static String createString(char[] charArray) {\r\n... | [
"0.64940256",
"0.6478611",
"0.63456255",
"0.6322211",
"0.625692",
"0.62547874",
"0.61514825",
"0.6123989",
"0.60833603",
"0.58831817",
"0.580581",
"0.579534",
"0.5782368",
"0.5715675",
"0.5674481",
"0.56689847",
"0.56241035",
"0.5606291",
"0.55817753",
"0.5577534",
"0.5546521... | 0.53628814 | 34 |
Build a string from a string array. | public static String buildString(String[] split, String splitChar, int begin, int end) {
StringBuilder combined = new StringBuilder();
while (begin <= end && begin < split.length) {
if (combined.length() > 0) {
combined.append(splitChar);
}
combined.ap... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static String join(String[] array)\n {\n if( array.length == 0 ) return Constants.BLANK;\n StringBuilder sb = new StringBuilder();\n for( String s : array )\n sb.append(s);\n return sb.toString();\n }",
"public static String createString(char[] charArray) {\r\n... | [
"0.64940256",
"0.6478611",
"0.63456255",
"0.6322211",
"0.625692",
"0.62547874",
"0.61514825",
"0.6123989",
"0.60833603",
"0.58831817",
"0.580581",
"0.579534",
"0.5782368",
"0.5715675",
"0.5674481",
"0.56689847",
"0.56241035",
"0.5606291",
"0.55817753",
"0.5577534",
"0.5546521... | 0.5242706 | 49 |
Build a string from a string collection | public static String buildString(Collection<String> strings, String splitChar) {
StringBuilder combined = new StringBuilder();
for (String s : strings) {
if (combined.length() > 0) {
combined.append(splitChar);
}
combined.append(s);
}
r... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected final String collectionString(final Collection c) {\n assert c != null;\n String result = \"{\"; //$NON-NLS-1$\n for (Iterator i = c.iterator(); i.hasNext();) {\n Object item = i.next();\n result = result + item.getClass().getName()\n + \"@\" + item.hashCode(); ... | [
"0.63792354",
"0.63014597",
"0.6278262",
"0.624085",
"0.61677784",
"0.58476436",
"0.58251286",
"0.58024764",
"0.58000916",
"0.5781576",
"0.5731483",
"0.57030725",
"0.5613173",
"0.5563825",
"0.55169874",
"0.5503219",
"0.54818064",
"0.5466658",
"0.54424816",
"0.5425062",
"0.540... | 0.6596235 | 0 |
Build a string from a List of strings This one can be used if there last splitChar should be different. Example: buildString(list, ", ", " and "); Will return: "One, Two, Three and Four" | public static String buildString(List<String> strings, String splitChar, String finalSplitChar) {
StringBuilder combined = new StringBuilder();
//Length of the list of strings
int nrOfStrings = strings.size();
//Loop through strings
for (int i = 0; i < nrOfStrings; i++) {
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static String buildString(Collection<String> strings, String splitChar) {\n StringBuilder combined = new StringBuilder();\n for (String s : strings) {\n if (combined.length() > 0) {\n combined.append(splitChar);\n }\n combined.append(s);\n ... | [
"0.74541485",
"0.65914565",
"0.6336941",
"0.63097847",
"0.63086945",
"0.6160893",
"0.6159215",
"0.6157247",
"0.60278225",
"0.6013727",
"0.5917067",
"0.5906423",
"0.5817392",
"0.5814418",
"0.58118075",
"0.5811476",
"0.57870877",
"0.5786617",
"0.57266617",
"0.5670259",
"0.56658... | 0.7661787 | 0 |
Get all the online players | public static Collection<? extends Player> getOnlinePlayers() {
return Bukkit.getServer().getOnlinePlayers();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"List<Player> getPlayers();",
"static List<Player> getAllPlayers() {\n\t\treturn null;\r\n\t}",
"List<Player> listPlayers();",
"public List<Player> findAllPlayers(){\n\t\treturn playerRepository.findAll();\n\t}",
"ArrayList<Player> getAllPlayer();",
"@Override\r\n\tpublic ArrayList<PlayerPO> getAllPlayers... | [
"0.780341",
"0.7696315",
"0.7567485",
"0.7522397",
"0.7444994",
"0.74057394",
"0.7403971",
"0.73925954",
"0.7218694",
"0.7210024",
"0.7207206",
"0.7180795",
"0.7180795",
"0.7146364",
"0.71336377",
"0.7117877",
"0.70934546",
"0.70736706",
"0.7071047",
"0.70419294",
"0.7005787"... | 0.78118664 | 0 |
Safely teleport to another player | public static boolean safeTeleport(Player toBeTeleported, Location toTeleport, boolean isFlying, boolean registerBackLocation, boolean... ignoreCooldown) throws CommandException {
//Get SlapPlayer
// SlapPlayer sp = PlayerControl.getPlayer(toBeTeleported);
//
// if ((ignoreCooldown.length > 0 && !... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"boolean teleport(Player p1, Player p2, boolean change);",
"public boolean teleport(Entity destination) {\n/* 571 */ return teleport(destination.getLocation());\n/* */ }",
"private static void goThroughPassage(Player player) {\n int x = player.getAbsX();\n player.getMovement().teleport... | [
"0.76997197",
"0.71504825",
"0.6882174",
"0.68065476",
"0.67839545",
"0.67223567",
"0.6711288",
"0.669607",
"0.66434395",
"0.6611102",
"0.6597856",
"0.65810806",
"0.65140986",
"0.64137894",
"0.6334881",
"0.62953496",
"0.62780786",
"0.6252449",
"0.6248191",
"0.62175447",
"0.62... | 0.7023411 | 2 |
Get the target block that is NOT air in the line of sight of a player | public static Block getTargetBlock(LivingEntity entity, int maxDistance) throws CommandException {
BlockIterator iterator = new BlockIterator(entity, maxDistance);
while (iterator.hasNext()) {
Block foundBlock = iterator.next();
if (foundBlock.getType() != Material.AIR) {
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void scanForBlockFarAway() {\r\n\t\tList<MapLocation> locations = gameMap.senseNearbyBlocks();\r\n\t\tlocations.removeAll(stairs);\r\n\t\tif (locations.size() == 0) {\r\n\t\t\tblockLoc = null;\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t/* remove blocks that can be sensed */\r\n\t\tIterator<MapLocation> iter = locati... | [
"0.6072184",
"0.597752",
"0.5911494",
"0.58418125",
"0.5743492",
"0.57418734",
"0.5704916",
"0.5623611",
"0.559265",
"0.55569506",
"0.54886866",
"0.5455359",
"0.54454476",
"0.53784657",
"0.53675884",
"0.535486",
"0.5347421",
"0.53431046",
"0.5330754",
"0.5301434",
"0.5297133"... | 0.60506207 | 1 |
Get all blocks in the line of sight of an entity | public static ArrayList<Block> getBlocksInLineOfSight(LivingEntity entity, int maxDistance) {
BlockIterator iterator = new BlockIterator(entity, maxDistance);
ArrayList<Block> blocks = new ArrayList<>();
while (iterator.hasNext()) {
blocks.add(iterator.next());
}
retu... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public List<Block> blocks() {\n int columns = 15, width = 51, height = 30;\n Color darkGreen = new Color(29, 101, 51);\n List<Block> blocks = new ArrayList<>();\n for (int j = 0; j < columns; j++) {\n blocks.add(new Block(new arkanoid.geometry.Rectangle(new Poi... | [
"0.66563284",
"0.6636262",
"0.66151196",
"0.66073257",
"0.65834004",
"0.6187059",
"0.61216384",
"0.61198634",
"0.61103266",
"0.61058986",
"0.60750943",
"0.60682184",
"0.59835535",
"0.596054",
"0.59365255",
"0.57890856",
"0.5781264",
"0.57648194",
"0.5753399",
"0.57442766",
"0... | 0.6588859 | 4 |
Inflate the menu; this adds items to the action bar if it is present. | @Override
public boolean onCreateOptionsMenu(Menu menu) {
getMenuInflater().inflate(R.menu.main, menu);
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tMenuInflater inflater = getMenuInflater();\n \tinflater.inflate(R.menu.main_activity_actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {... | [
"0.7246102",
"0.7201358",
"0.7194834",
"0.7176498",
"0.71066517",
"0.7039537",
"0.7037961",
"0.70112145",
"0.70094734",
"0.69807225",
"0.6944953",
"0.69389373",
"0.6933199",
"0.6916928",
"0.6916928",
"0.6891486",
"0.68831646",
"0.68754137",
"0.68745375",
"0.68621665",
"0.6862... | 0.0 | -1 |
Handle action bar item clicks here. The action bar will automatically handle clicks on the Home/Up button, so long as you specify a parent activity in AndroidManifest.xml. | @Override
public boolean onOptionsItemSelected(MenuItem item) {
int id = item.getItemId();
if (id == R.id.action_settings) {
return true;
}
return super.onOptionsItemSelected(item);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public boolean onOptionsItemSelected(MenuItem item) { Handle action bar item clicks here. The action bar will\n // automatically handle clicks on the Home/Up button, so long\n // as you specify a parent activity in AndroidManifest.xml.\n\n //\n // HANDLE BACK BUTTON\n ... | [
"0.79041183",
"0.7805934",
"0.77659106",
"0.7727251",
"0.7631684",
"0.7621701",
"0.75839096",
"0.75300384",
"0.74873656",
"0.7458051",
"0.7458051",
"0.7438486",
"0.742157",
"0.7403794",
"0.7391802",
"0.73870087",
"0.7379108",
"0.7370295",
"0.7362194",
"0.7355759",
"0.73454577... | 0.0 | -1 |
Get all projects in SonarQube. | public List<String[]> getAllProject() {
String url = Host.getSonar() + "api/projects/index";
String json = null;
try {
Object[] response = HttpUtils.sendGet(url, Authentication.getBasicAuth("sonar"));
if (Integer.parseInt(response[0].toString()) == 200) {
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public List<Project> getAllProjects();",
"@GetMapping(\"/getAll\")\r\n\tpublic List<Project> getAllProjects() {\r\n\t\treturn persistenceService.getAllProjects();\r\n\t}",
"public List<ProjectType> invokeQueryProjects() throws TsResponseException {\n checkSignedIn();\n\n final List<ProjectType> p... | [
"0.73370165",
"0.7158966",
"0.6949477",
"0.6892766",
"0.686157",
"0.6742336",
"0.64473104",
"0.64100486",
"0.63189036",
"0.6316529",
"0.62760866",
"0.62619835",
"0.6252336",
"0.6222761",
"0.6166197",
"0.6145193",
"0.61288714",
"0.61198354",
"0.61051625",
"0.61036295",
"0.6076... | 0.7747356 | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.