sequence stringlengths 388 5.57k | docstring stringlengths 11 171 |
|---|---|
0 module [1];1 function_definition [2,3,5];2 function_name [] list_names;3 parameters [4];4 identifier [] cls;5 block [6,31];6 expression_statement [7];7 assignment [8,9];8 identifier [] ret;9 call [10,11];10 identifier [] dict;11 argument_list [12];12 list_comprehension [13,20];13 tuple [14,17];14 subscript [15,16];15... | Retrieve paas id and names. |
0 module [1];1 function_definition [2,3,5];2 function_name [] datetime_to_nanos;3 parameters [4];4 identifier [] dt;5 block [6,63];6 if_statement [7,14,19,35,44];7 call [8,9];8 identifier [] isinstance;9 argument_list [10,11];10 identifier [] dt;11 attribute [12,13];12 identifier [] pd;13 identifier [] Timestamp;14 blo... | Accepts a string, Pandas Timestamp, or long, and returns nanos since the epoch. |
0 module [1];1 function_definition [2,3,9];2 function_name [] list_cab;3 parameters [4,5,6,7,8];4 identifier [] archive;5 identifier [] compression;6 identifier [] cmd;7 identifier [] verbosity;8 identifier [] interactive;9 block [10,16,28,35];10 expression_statement [11];11 assignment [12,13];12 identifier [] cmdlist;... | List a CAB archive. |
0 module [1];1 function_definition [2,3,8];2 function_name [] _create_subset_file;3 parameters [4,5,6,7];4 identifier [] in_file;5 identifier [] het_region_bed;6 identifier [] work_dir;7 identifier [] data;8 block [9,19,31,59,116];9 expression_statement [10];10 assignment [11,12];11 identifier [] cnv_regions;12 call [1... | Subset the VCF to a set of pre-calculated smaller regions. |
0 module [1];1 function_definition [2,3,5];2 function_name [] UNTL_to_encodedUNTL;3 parameters [4];4 identifier [] subject;5 block [6,13,23,33];6 expression_statement [7];7 assignment [8,9];8 identifier [] subject;9 call [10,11];10 identifier [] normalize_UNTL;11 argument_list [12];12 identifier [] subject;13 expressio... | Normalize a UNTL subject heading to be used in SOLR. |
0 module [1];1 function_definition [2,3,6];2 function_name [] _infodict;3 parameters [4,5];4 identifier [] cls;5 identifier [] name;6 block [7,19,37];7 expression_statement [8];8 assignment [9,10];9 identifier [] info;10 call [11,16];11 attribute [12,15];12 attribute [13,14];13 identifier [] cls;14 identifier [] _datas... | load the info dictionary for the given name |
0 module [1];1 function_definition [2,3,6];2 function_name [] _id_map;3 parameters [4,5];4 identifier [] minion_id;5 identifier [] dns_name;6 block [7,11,25,35,47,59];7 expression_statement [8];8 assignment [9,10];9 identifier [] bank;10 string [] digicert/minions;11 expression_statement [12];12 assignment [13,14];13 i... | Maintain a relationship between a minion and a dns name |
0 module [1];1 function_definition [2,3,6];2 function_name [] keyPressEvent;3 parameters [4,5];4 identifier [] self;5 identifier [] event;6 block [7,23,31,39,47,58,65,110];7 if_statement [8,21];8 comparison_operator [9,16] !=;9 call [10,15];10 attribute [11,14];11 attribute [12,13];12 identifier [] self;13 identifier [... | Handle key press event using the defined input handler. |
0 module [1];1 function_definition [2,3,6];2 function_name [] exclude_from_all;3 parameters [4,5];4 identifier [] self;5 identifier [] exclude_regex;6 block [7,31,45,56,67];7 try_statement [8,16];8 block [9];9 expression_statement [10];10 call [11,14];11 attribute [12,13];12 identifier [] re;13 identifier [] compile;14... | Exclude a pattern from proxy, spider and active scanner. |
0 module [1];1 function_definition [2,3,7];2 function_name [] _get_binary_replacement;3 parameters [4,5,6];4 identifier [] first;5 identifier [] second;6 identifier [] cls;7 block [8,18,30,144];8 expression_statement [9];9 assignment [10,11];10 identifier [] expr;11 call [12,13];12 identifier [] ProtoExpr;13 argument_l... | Helper function for match_replace_binary |
0 module [1];1 function_definition [2,3,5];2 function_name [] create_api_network_ipv6;3 parameters [4];4 identifier [] self;5 block [6];6 return_statement [7];7 call [8,9];8 identifier [] ApiNetworkIPv6;9 argument_list [10,13,16,19];10 attribute [11,12];11 identifier [] self;12 identifier [] networkapi_url;13 attribute... | Get an instance of Api Networkv6 services facade. |
0 module [1];1 function_definition [2,3,5];2 function_name [] _extract_hidden_data;3 parameters [4];4 identifier [] dom;5 block [6,21,25,39];6 expression_statement [7];7 assignment [8,9];8 identifier [] input_tags;9 call [10,13];10 attribute [11,12];11 identifier [] dom;12 identifier [] find_all;13 argument_list [14,15... | Extracts hidden input data from DOM and returns the data as dictionary. |
0 module [1];1 function_definition [2,3,10];2 function_name [] extract_tar;3 parameters [4,5,6,7,8,9];4 identifier [] archive;5 identifier [] compression;6 identifier [] cmd;7 identifier [] verbosity;8 identifier [] interactive;9 identifier [] outdir;10 block [11,56];11 try_statement [12,35];12 block [13];13 with_state... | Extract a TAR archive with the tarfile Python module. |
0 module [1];1 function_definition [2,3,6];2 function_name [] WriteFile;3 parameters [4,5];4 identifier [] self;5 identifier [] printer;6 block [7,13];7 expression_statement [8];8 call [9,12];9 attribute [10,11];10 identifier [] self;11 identifier [] Validate;12 argument_list [];13 expression_statement [14];14 call [15... | Write the messages file to out. |
0 module [1];1 function_definition [2,3,8];2 function_name [] doc_to_html;3 parameters [4,5];4 identifier [] doc;5 default_parameter [6,7];6 identifier [] doc_format;7 string [] ROBOT;8 block [9,16];9 import_from_statement [10,14];10 dotted_name [11,12,13];11 identifier [] robot;12 identifier [] libdocpkg;13 identifier... | Convert documentation to HTML |
0 module [1];1 function_definition [2,3,9];2 function_name [] finger;3 parameters [4,5,6];4 identifier [] self;5 identifier [] match;6 default_parameter [7,8];7 identifier [] hash_type;8 None [];9 block [10,21,31,35,116];10 if_statement [11,14];11 comparison_operator [12,13] is;12 identifier [] hash_type;13 None [];14 ... | Return the fingerprint for a specified key |
0 module [1];1 function_definition [2,3,5];2 function_name [] _destroy;3 parameters [4];4 identifier [] self;5 block [6,12];6 expression_statement [7];7 call [8,11];8 attribute [9,10];9 identifier [] self;10 identifier [] unuse_region;11 argument_list [];12 if_statement [13,18];13 comparison_operator [14,17] is not;14 ... | Destruction code to decrement counters |
0 module [1];1 function_definition [2,3,10];2 function_name [] install_from_zip;3 parameters [4,5,6,7];4 identifier [] pkgpath;5 identifier [] install_path;6 identifier [] register_func;7 default_parameter [8,9];8 identifier [] delete_after_install;9 False [];10 block [11,19,30,80,98,106];11 expression_statement [12];1... | Install plugin from zipfile. |
0 module [1];1 function_definition [2,3,6];2 function_name [] ParseMultiple;3 parameters [4,5];4 identifier [] self;5 identifier [] result_dicts;6 block [7];7 for_statement [8,9,10];8 identifier [] result_dict;9 identifier [] result_dicts;10 block [11,19,46];11 expression_statement [12];12 assignment [13,14];13 identif... | Parse the WMI Win32_UserAccount output. |
0 module [1];1 function_definition [2,3,5];2 function_name [] posted;3 parameters [4];4 identifier [] self;5 block [6,29];6 for_statement [7,10,13];7 pattern_list [8,9];8 identifier [] who;9 identifier [] record;10 attribute [11,12];11 identifier [] self;12 identifier [] logs;13 block [14];14 if_statement [15,26];15 bo... | True if bug was moved to POST in given time frame |
0 module [1];1 function_definition [2,3,5];2 function_name [] _view_removed;3 parameters [4];4 identifier [] self;5 block [6,37,47,183];6 expression_statement [7];7 call [8,9];8 identifier [] print;9 argument_list [10];10 call [11,14];11 attribute [12,13];12 string [] \nPackages with name matching [ {0}{1}{2} ]\n;13 id... | View packages before removed |
0 module [1];1 function_definition [2,3,5];2 function_name [] upload;3 parameters [4];4 identifier [] name;5 block [6,15];6 expression_statement [7];7 assignment [8,9];8 identifier [] storage;9 call [10,13];10 attribute [11,12];11 identifier [] fs;12 identifier [] by_name;13 argument_list [14];14 identifier [] name;15 ... | Handle upload on POST if authorized. |
0 module [1];1 function_definition [2,3,5];2 function_name [] scan_index;3 parameters [4];4 identifier [] content_dir;5 block [6,87,111];6 function_definition [7,8,11];7 function_name [] scan_directory;8 parameters [9,10];9 identifier [] root;10 identifier [] files;11 block [12];12 try_statement [13,77];13 block [14];1... | Scan all files in a content directory |
0 module [1];1 function_definition [2,3,4];2 function_name [] prompt_for_new_password;3 parameters [];4 block [5];5 while_statement [6,7];6 True [];7 block [8,16,24,31];8 expression_statement [9];9 assignment [10,11];10 identifier [] passw;11 call [12,15];12 attribute [13,14];13 identifier [] getpass;14 identifier [] g... | Prompt the user to enter a new password, with confirmation |
0 module [1];1 function_definition [2,3,8];2 function_name [] fetchUrls;3 parameters [4,5,6,7];4 identifier [] cls;5 identifier [] url;6 identifier [] data;7 identifier [] urlSearch;8 block [9,13,32,39,97,110];9 expression_statement [10];10 assignment [11,12];11 identifier [] searchUrls;12 list [] [];13 if_statement [1... | Search all entries for given XPath in a HTML page. |
0 module [1];1 function_definition [2,3,8];2 function_name [] encode_collection;3 parameters [4,5];4 identifier [] collection;5 default_parameter [6,7];6 identifier [] encoding;7 string [] utf-8;8 block [9];9 if_statement [10,15,38,54,68];10 call [11,12];11 identifier [] isinstance;12 argument_list [13,14];13 identifie... | Encodes all the string keys and values in a collection with specified encoding |
0 module [1];1 function_definition [2,3,14];2 function_name [] _wrap_response;3 parameters [4,5,8,11];4 identifier [] request;5 default_parameter [6,7];6 identifier [] data;7 None [];8 default_parameter [9,10];9 identifier [] metadata;10 None [];11 default_parameter [12,13];12 identifier [] status;13 integer [] 200;14 ... | Creates the JSON response envelope to be sent back to the client. |
0 module [1];1 function_definition [2,3,6];2 function_name [] _assignRootname;3 parameters [4,5];4 identifier [] self;5 identifier [] chip;6 block [7,26,41,47,69,97,121,134];7 expression_statement [8];8 assignment [9,10];9 identifier [] extname;10 call [11,25];11 attribute [12,24];12 subscript [13,23];13 attribute [14,... | Assign a unique rootname for the image based in the expname. |
0 module [1];1 function_definition [2,3,6];2 function_name [] add_detector;3 parameters [4,5];4 identifier [] self;5 identifier [] detector_cls;6 block [7,29,37,56];7 if_statement [8,18];8 not_operator [9];9 call [10,11];10 identifier [] issubclass;11 argument_list [12,13];12 identifier [] detector_cls;13 attribute [14... | Add a ``Detector`` to scrubadub |
0 module [1];1 function_definition [2,3,6];2 function_name [] expand_block;3 parameters [4,5];4 identifier [] self;5 identifier [] feat;6 block [7,20,55];7 expression_statement [8];8 assignment [9,10];9 identifier [] chrom_end;10 call [11,16];11 attribute [12,15];12 attribute [13,14];13 identifier [] self;14 identifier... | Expand any blocks which are near the start or end of a contig. |
0 module [1];1 function_definition [2,3,14];2 function_name [] output;3 parameters [4,5,8,11];4 identifier [] self;5 default_parameter [6,7];6 identifier [] attrs;7 None [];8 default_parameter [9,10];9 identifier [] header;10 string [] Set-Cookie:;11 default_parameter [12,13];12 identifier [] sep;13 string [] \015\012;... | Return a string suitable for HTTP. |
0 module [1];1 function_definition [2,3,11];2 function_name [] ftp_walk;3 parameters [4,8];4 typed_parameter [5,6];5 identifier [] ftpconn;6 type [7];7 identifier [] FTP;8 default_parameter [9,10];9 identifier [] rootpath;10 string [];11 block [12,16,34,40];12 expression_statement [13];13 assignment [14,15];14 identifi... | Recursively traverse an ftp directory to discovery directory listing. |
0 module [1];1 function_definition [2,3,8];2 function_name [] im_history;3 parameters [4,5,6];4 identifier [] self;5 identifier [] room_id;6 dictionary_splat_pattern [7];7 identifier [] kwargs;8 block [9];9 return_statement [10];10 call [11,14];11 attribute [12,13];12 identifier [] self;13 identifier [] __call_api_get;... | Retrieves the history for a private im chat |
0 module [1];1 function_definition [2,3,7];2 function_name [] _fast_write;3 parameters [4,5,6];4 identifier [] self;5 identifier [] outfile;6 identifier [] value;7 block [8,15,28];8 expression_statement [9];9 call [10,13];10 attribute [11,12];11 identifier [] outfile;12 identifier [] truncate;13 argument_list [14];14 i... | Function for fast writing to motor files. |
0 module [1];1 function_definition [2,3,12];2 function_name [] showKeyboard;3 parameters [4,5,6,7,8,9,10,11];4 identifier [] self;5 identifier [] eInputMode;6 identifier [] eLineInputMode;7 identifier [] pchDescription;8 identifier [] unCharMax;9 identifier [] pchExistingText;10 identifier [] bUseMinimalMode;11 identif... | Show the virtual keyboard to accept input |
0 module [1];1 function_definition [2,3,6];2 function_name [] _region_code_for_number_from_list;3 parameters [4,5];4 identifier [] numobj;5 identifier [] regions;6 block [7,14,83];7 expression_statement [8];8 assignment [9,10];9 identifier [] national_number;10 call [11,12];11 identifier [] national_significant_number;... | Find the region in a list that matches a number |
0 module [1];1 function_definition [2,3,6];2 function_name [] unique_authors;3 parameters [4,5];4 identifier [] self;5 identifier [] limit;6 block [7,13,22,28];7 expression_statement [8];8 assignment [9,10];9 identifier [] seen;10 call [11,12];11 identifier [] set;12 argument_list [];13 if_statement [14,17];14 comparis... | Unique list of authors, but preserving order. |
0 module [1];1 function_definition [2,3,14];2 function_name [] pop_cell;3 parameters [4,5,8,11];4 identifier [] self;5 default_parameter [6,7];6 identifier [] idy;7 None [];8 default_parameter [9,10];9 identifier [] idx;10 None [];11 default_parameter [12,13];12 identifier [] tags;13 False [];14 block [15,31,49,62];15 ... | Pops a cell, default the last of the last row |
0 module [1];1 function_definition [2,3,5];2 function_name [] informed_consent;3 parameters [4];4 identifier [] self;5 block [6,79,88,93];6 if_statement [7,12,56];7 comparison_operator [8,11] is;8 attribute [9,10];9 identifier [] self;10 identifier [] typeable_handle;11 None [];12 block [13,25,37,44];13 expression_stat... | Create a URL for the user to give their consent through |
0 module [1];1 function_definition [2,3,7];2 function_name [] add_non_hs_service;3 parameters [4,5,6];4 identifier [] self;5 identifier [] info;6 identifier [] address;7 block [8,20,33];8 if_statement [9,18];9 boolean_operator [10,13] and;10 attribute [11,12];11 identifier [] self;12 identifier [] protocol;13 compariso... | Add a new device without Home Sharing to discovered list. |
0 module [1];1 function_definition [2,3,7];2 function_name [] dump;3 parameters [4,5,6];4 identifier [] self;5 identifier [] msg;6 identifier [] fn_;7 block [8,42];8 if_statement [9,12,25];9 attribute [10,11];10 identifier [] six;11 identifier [] PY2;12 block [13];13 expression_statement [14];14 call [15,18];15 attribu... | Serialize the correct data into the named file object |
0 module [1];1 function_definition [2,3,6];2 function_name [] _make_ssh_forward_handler_class;3 parameters [4,5];4 identifier [] self;5 identifier [] remote_address_;6 block [7,28];7 class_definition [8,9,11];8 identifier [] Handler;9 argument_list [10];10 identifier [] _ForwardHandler;11 block [12,16,22];12 expression... | Make SSH Handler class |
0 module [1];1 function_definition [2,3,13];2 function_name [] send_request;3 parameters [4,7,10];4 default_parameter [5,6];5 identifier [] req;6 None [];7 default_parameter [8,9];8 identifier [] method;9 None [];10 default_parameter [11,12];11 identifier [] requires_response;12 True [];13 block [14,32,73,79];14 if_sta... | Call function req and then send its results via ZMQ. |
0 module [1];1 function_definition [2,3,11];2 function_name [] gettext;3 parameters [4,5,6,9];4 identifier [] self;5 identifier [] string;6 default_parameter [7,8];7 identifier [] domain;8 None [];9 dictionary_splat_pattern [10];10 identifier [] variables;11 block [12,21];12 expression_statement [13];13 assignment [14,... | Translate a string with the current locale. |
0 module [1];1 function_definition [2,3,7];2 function_name [] _onOffset;3 parameters [4,5,6];4 identifier [] self;5 identifier [] dt;6 identifier [] businesshours;7 block [8,35,46];8 if_statement [9,14,24];9 comparison_operator [10,13] >=;10 attribute [11,12];11 identifier [] self;12 identifier [] n;13 integer [] 0;14 ... | Slight speedups using calculated values. |
0 module [1];1 function_definition [2,3,5];2 function_name [] getLong;3 parameters [4];4 identifier [] t;5 block [6,12];6 expression_statement [7];7 assignment [8,9];8 identifier [] i;9 call [10,11];10 identifier [] c_long;11 argument_list [];12 if_statement [13,21,26];13 call [14,15];14 identifier [] PL_get_long;15 ar... | If t is of type long, return it, otherwise raise InvalidTypeError. |
0 module [1];1 function_definition [2,3,10];2 function_name [] update_file;3 parameters [4,5,6,7];4 identifier [] finfo;5 identifier [] sample_info;6 identifier [] config;7 default_parameter [8,9];8 identifier [] pass_uptodate;9 False [];10 block [11,24];11 expression_statement [12];12 assignment [13,14];13 identifier ... | Update the file in local filesystem storage. |
0 module [1];1 function_definition [2,3,5];2 function_name [] build_metadata_class;3 parameters [4];4 identifier [] specfile;5 block [6];6 with_statement [7,16];7 with_clause [8];8 with_item [9];9 as_pattern [10,14];10 call [11,12];11 identifier [] open;12 argument_list [13];13 identifier [] specfile;14 as_pattern_targ... | Generate a metadata class for the specified specfile. |
0 module [1];1 function_definition [2,3,5];2 function_name [] info;3 parameters [4];4 identifier [] self;5 block [6,19,27];6 if_statement [7,12];7 comparison_operator [8,11] is;8 attribute [9,10];9 identifier [] self;10 identifier [] _resources;11 None [];12 block [13];13 expression_statement [14];14 call [15,18];15 at... | A read-only resource that returns meta information about the server |
0 module [1];1 function_definition [2,3,8];2 function_name [] DeleteOldRuns;3 parameters [4,5];4 identifier [] self;5 default_parameter [6,7];6 identifier [] cutoff_timestamp;7 None [];8 block [9,19];9 if_statement [10,13];10 comparison_operator [11,12] is;11 identifier [] cutoff_timestamp;12 None [];13 block [14];14 r... | Deletes runs that were started before the timestamp given. |
0 module [1];1 function_definition [2,3,6];2 function_name [] collection;3 parameters [4,5];4 identifier [] cls;5 identifier [] cid;6 block [7,19];7 expression_statement [8];8 assignment [9,10];9 identifier [] url;10 call [11,12];11 identifier [] urljoin;12 argument_list [13,16];13 attribute [14,15];14 identifier [] co... | Get a Collection record |
0 module [1];1 function_definition [2,3,6];2 function_name [] fix_e302;3 parameters [4,5];4 identifier [] self;5 identifier [] result;6 block [7,25,31];7 expression_statement [8];8 assignment [9,10];9 identifier [] add_linenum;10 binary_operator [11,12] -;11 integer [] 2;12 call [13,14];13 identifier [] int;14 argument... | Add missing 2 blank lines. |
0 module [1];1 function_definition [2,3,5];2 function_name [] snapshot;3 parameters [4];4 identifier [] self;5 block [6,48,60,77];6 expression_statement [7];7 assignment [8,9];8 identifier [] snap;9 call [10,11];10 identifier [] connState;11 argument_list [12,17,22,27,35,43];12 keyword_argument [13,14];13 identifier []... | This is used mostly as a way to keep the cipher state and the seq_num. |
0 module [1];1 function_definition [2,3,5];2 function_name [] FindAnomalies;3 parameters [4];4 identifier [] self;5 block [6,77,93];6 for_statement [7,10,16];7 pattern_list [8,9];8 identifier [] grp_name;9 identifier [] group;10 call [11,12];11 identifier [] iteritems;12 argument_list [13];13 attribute [14,15];14 ident... | Identify any anomalous group attributes or memberships. |
0 module [1];1 function_definition [2,3,6];2 function_name [] subclass;3 parameters [4,5];4 identifier [] cls;5 identifier [] t;6 block [7,13,19,25];7 expression_statement [8];8 assignment [9,12];9 attribute [10,11];10 identifier [] t;11 identifier [] doc;12 None [];13 expression_statement [14];14 assignment [15,18];15... | Change a term into a Section Term |
0 module [1];1 function_definition [2,3,5];2 function_name [] _number_parser;3 parameters [4];4 identifier [] str_to_number_func;5 block [6,45];6 function_definition [7,8,11];7 function_name [] _parse_number_value;8 parameters [9,10];9 identifier [] element_text;10 identifier [] state;11 block [12,16,43];12 expression_... | Return a function to parse numbers. |
0 module [1];1 function_definition [2,3,5];2 function_name [] sets;3 parameters [4];4 identifier [] self;5 block [6,10,33];6 expression_statement [7];7 assignment [8,9];8 identifier [] sets;9 dictionary [];10 for_statement [11,12,15];11 identifier [] x;12 attribute [13,14];13 identifier [] self;14 identifier [] _parent... | Returns the equivalence classes as a set of sets. |
0 module [1];1 function_definition [2,3,10];2 function_name [] keys;3 parameters [4,5,6,7];4 identifier [] self;5 identifier [] pattern;6 keyword_separator [];7 default_parameter [8,9];8 identifier [] encoding;9 identifier [] _NOTSET;10 block [11];11 return_statement [12];12 call [13,16];13 attribute [14,15];14 identif... | Returns all keys matching pattern. |
0 module [1];1 function_definition [2,3,5];2 function_name [] step_a_new_working_directory;3 parameters [4];4 identifier [] context;5 block [6,15,22];6 expression_statement [7];7 call [8,11];8 attribute [9,10];9 identifier [] command_util;10 identifier [] ensure_context_attribute_exists;11 argument_list [12,13,14];12 i... | Creates a new, empty working directory |
0 module [1];1 function_definition [2,3,6];2 function_name [] ensure_valid_environment_config;3 parameters [4,5];4 identifier [] module_name;5 identifier [] config;6 block [7];7 if_statement [8,15];8 not_operator [9];9 call [10,13];10 attribute [11,12];11 identifier [] config;12 identifier [] get;13 argument_list [14];... | Exit if config is invalid. |
0 module [1];1 function_definition [2,3,7];2 function_name [] _check_lr;3 parameters [4,5,6];4 identifier [] name;5 identifier [] optimizer;6 identifier [] lr;7 block [8,17,36,61];8 expression_statement [9];9 assignment [10,11];10 identifier [] n;11 call [12,13];12 identifier [] len;13 argument_list [14];14 attribute [... | Return one learning rate for each param group. |
0 module [1];1 function_definition [2,3,6];2 function_name [] __WaitForVolume;3 parameters [4,5];4 identifier [] volume;5 identifier [] desired_state;6 block [7,15,56];7 print_statement [8];8 binary_operator [9,10] %;9 string [] Waiting for volume %s to be %s...;10 tuple [11,14];11 attribute [12,13];12 identifier [] vo... | Blocks until EBS volume is in desired state. |
0 module [1];1 function_definition [2,3,6];2 function_name [] remove_timedim;3 parameters [4,5];4 identifier [] self;5 identifier [] var;6 block [7,42];7 if_statement [8,19];8 boolean_operator [9,12] and;9 attribute [10,11];10 identifier [] self;11 identifier [] pps;12 comparison_operator [13,18] ==;13 subscript [14,17... | Remove time dimension from dataset |
0 module [1];1 function_definition [2,3,5];2 function_name [] ip2hex;3 parameters [4];4 identifier [] ip;5 block [6,15,25,29,66];6 expression_statement [7];7 assignment [8,9];8 identifier [] parts;9 call [10,13];10 attribute [11,12];11 identifier [] ip;12 identifier [] split;13 argument_list [14];14 string [] .;15 if_s... | Converts an ip to a hex value that can be used with a hex bit mask |
0 module [1];1 function_definition [2,3,6];2 function_name [] build;3 parameters [4,5];4 identifier [] check;5 identifier [] sdist;6 block [7,61,71,83,88,96,113,123];7 if_statement [8,13,28];8 comparison_operator [9,10] in;9 identifier [] check;10 call [11,12];11 identifier [] get_valid_checks;12 argument_list [];13 bl... | Build a wheel for a check as it is on the repo HEAD |
0 module [1];1 function_definition [2,3,5];2 function_name [] calendars;3 parameters [4];4 identifier [] self;5 block [6,14,28,41,54,63,96,112,122];6 expression_statement [7];7 assignment [8,9];8 identifier [] today;9 call [10,13];10 attribute [11,12];11 identifier [] datetime;12 identifier [] today;13 argument_list []... | Retrieves calendars for this month |
0 module [1];1 function_definition [2,3,5];2 function_name [] handle;3 parameters [4];4 identifier [] self;5 block [6,17,26,55];6 expression_statement [7];7 assignment [8,9];8 identifier [] data;9 call [10,13];10 attribute [11,12];11 identifier [] cPickle;12 identifier [] load;13 argument_list [14];14 attribute [15,16]... | Parse the RPC, make the call, and pickle up the return value. |
0 module [1];1 function_definition [2,3,9,11];2 function_name [] createElement;3 parameters [4,5];4 identifier [] self;5 typed_parameter [6,7];6 identifier [] tag;7 type [8];8 identifier [] str;9 type [10];10 identifier [] Node;11 block [12];12 return_statement [13];13 call [14,15];14 identifier [] create_element;15 ar... | Create new element whose tag name is ``tag``. |
0 module [1];1 function_definition [2,3,5];2 function_name [] service_start;3 parameters [4];4 identifier [] name;5 block [6,31];6 expression_statement [7];7 assignment [8,9];8 identifier [] r;9 call [10,17];10 attribute [11,16];11 attribute [12,15];12 attribute [13,14];13 identifier [] salt;14 identifier [] utils;15 i... | Start a "service" on the REST server |
0 module [1];1 function_definition [2,3,5];2 function_name [] as_command;3 parameters [4];4 identifier [] self;5 block [6,35,46,62,72,139];6 try_statement [7,28];7 block [8,16,22];8 expression_statement [9];9 assignment [10,11];10 identifier [] params;11 attribute [12,15];12 attribute [13,14];13 identifier [] self;14 i... | Creates the click command wrapping the function |
0 module [1];1 function_definition [2,3,5];2 function_name [] _visual_width;3 parameters [4];4 identifier [] line;5 block [6];6 return_statement [7];7 call [8,9];8 identifier [] len;9 argument_list [10];10 call [11,14];11 attribute [12,13];12 identifier [] re;13 identifier [] sub;14 argument_list [15,22,23];15 attribut... | Get the the number of columns required to display a string |
0 module [1];1 function_definition [2,3,9];2 function_name [] __getSequenceVariants;3 parameters [4,5,6,7,8];4 identifier [] self;5 identifier [] x1;6 identifier [] polyStart;7 identifier [] polyStop;8 identifier [] listSequence;9 block [10];10 if_statement [11,23,92];11 boolean_operator [12,20] and;12 comparison_opera... | polyStop, is the polymorphisme at wixh number where the calcul of combinaisons stops |
0 module [1];1 function_definition [2,3,9];2 function_name [] update_security_group;3 parameters [4,5,6];4 identifier [] self;5 identifier [] security_group;6 default_parameter [7,8];7 identifier [] body;8 None [];9 block [10];10 return_statement [11];11 call [12,15];12 attribute [13,14];13 identifier [] self;14 identi... | Updates a security group. |
0 module [1];1 function_definition [2,3,7];2 function_name [] __DeclareMessageAlias;3 parameters [4,5,6];4 identifier [] self;5 identifier [] schema;6 identifier [] alias_for;7 block [8,16,31,37,46,57];8 expression_statement [9];9 assignment [10,11];10 identifier [] message;11 call [12,15];12 attribute [13,14];13 ident... | Declare schema as an alias for alias_for. |
0 module [1];1 function_definition [2,3,5];2 function_name [] update_version_records;3 parameters [4];4 identifier [] self;5 block [6,15];6 import_from_statement [7,11];7 relative_import [8,9];8 import_prefix [];9 dotted_name [10];10 identifier [] __init__;11 aliased_import [12,14];12 dotted_name [13];13 identifier [] ... | Update rash_info table if necessary. |
0 module [1];1 function_definition [2,3,8];2 function_name [] _insert_new_layers;3 parameters [4,5,6,7];4 identifier [] self;5 identifier [] new_layers;6 identifier [] start_node_id;7 identifier [] end_node_id;8 block [9,25,29,48,60,73,86];9 expression_statement [10];10 assignment [11,12];11 identifier [] new_node_id;1... | Insert the new_layers after the node with start_node_id. |
0 module [1];1 function_definition [2,3,5];2 function_name [] init;3 parameters [4];4 identifier [] self;5 block [6,14,48,67,75,83,95,101,118];6 if_statement [7,12];7 call [8,9];8 identifier [] hasattr;9 argument_list [10,11];10 identifier [] self;11 string [] data;12 block [13];13 return_statement [];14 if_statement [... | Read the poes and set the .data attribute with the hazard curves |
0 module [1];1 function_definition [2,3,13,19];2 function_name [] touch_object;3 parameters [4,5];4 identifier [] self;5 typed_parameter [6,7];6 identifier [] objects;7 type [8];8 generic_type [9,10];9 identifier [] Set;10 type_parameter [11];11 type [12];12 identifier [] Object;13 type [14];14 generic_type [15,16];15 ... | Returns all objects that touch the given set of objects. |
0 module [1];1 function_definition [2,3,5];2 function_name [] register;3 parameters [4];4 identifier [] cls;5 block [6,30];6 expression_statement [7];7 assignment [8,9];8 identifier [] registry_entry;9 call [10,11];10 identifier [] RegistryEntry;11 argument_list [12,17,22,27];12 keyword_argument [13,14];13 identifier [... | Register a given model in the registry |
0 module [1];1 function_definition [2,3,5];2 function_name [] _checkSize;3 parameters [4];4 identifier [] self;5 block [6];6 if_statement [7,12];7 comparison_operator [8,11] is not;8 attribute [9,10];9 identifier [] self;10 identifier [] _item_height;11 None [];12 block [13,33,41,49,57];13 expression_statement [14];14 ... | Automatically resizes widget to display at most max_height_items items |
0 module [1];1 function_definition [2,3,5];2 function_name [] non_increasing;3 parameters [4];4 identifier [] values;5 block [6];6 return_statement [7];7 call [8,9];8 identifier [] all;9 generator_expression [10,13];10 comparison_operator [11,12] >=;11 identifier [] x;12 identifier [] y;13 for_in_clause [14,17];14 patt... | True if values are not increasing. |
0 module [1];1 function_definition [2,3,6];2 function_name [] trainOn;3 parameters [4,5];4 identifier [] self;5 identifier [] dstream;6 block [7,14,34];7 expression_statement [8];8 call [9,12];9 attribute [10,11];10 identifier [] self;11 identifier [] _validate;12 argument_list [13];13 identifier [] dstream;14 function... | Train the model on the incoming dstream. |
0 module [1];1 function_definition [2,3,6];2 function_name [] add_def;3 parameters [4,5];4 identifier [] self;5 identifier [] def_item;6 block [7,16];7 expression_statement [8];8 call [9,14];9 attribute [10,13];10 attribute [11,12];11 identifier [] self;12 identifier [] defs;13 identifier [] append;14 argument_list [15... | Adds a def universally. |
0 module [1];1 function_definition [2,3,5];2 function_name [] clear_threads;3 parameters [4];4 identifier [] self;5 block [6,23];6 for_statement [7,8,16];7 identifier [] aThread;8 call [9,12];9 attribute [10,11];10 identifier [] compat;11 identifier [] itervalues;12 argument_list [13];13 attribute [14,15];14 identifier... | Clears the threads snapshot. |
0 module [1];1 function_definition [2,3,9];2 function_name [] copy_any;3 parameters [4,5,6];4 identifier [] src;5 identifier [] dst;6 default_parameter [7,8];7 identifier [] only_missing;8 False [];9 block [10,19,187];10 if_statement [11,13];11 not_operator [12];12 identifier [] only_missing;13 block [14];14 expression... | Copy a file or a directory tree, deleting the destination before processing |
0 module [1];1 function_definition [2,3,5];2 function_name [] getInstruments;3 parameters [4];4 identifier [] self;5 block [6,16,48,58,75,83,125,144,157];6 expression_statement [7];7 assignment [8,9];8 identifier [] query;9 dictionary [10,13];10 pair [11,12];11 string [] portal_type;12 string [] Instrument;13 pair [14,... | Get the allowed instruments |
0 module [1];1 function_definition [2,3,10,12];2 function_name [] on_step_end;3 parameters [4,5];4 identifier [] self;5 typed_parameter [6,8];6 dictionary_splat_pattern [7];7 identifier [] kwargs;8 type [9];9 identifier [] Any;10 type [11];11 None [];12 block [13,15,25];13 expression_statement [14];14 string [] Update ... | Update the params from master to model and zero grad. |
0 module [1];1 function_definition [2,3,8];2 function_name [] _process_table;3 parameters [4,5];4 identifier [] self;5 default_parameter [6,7];6 identifier [] cache;7 True [];8 block [9,17,36,48,58];9 expression_statement [10];10 assignment [11,12];11 identifier [] table;12 call [13,16];13 attribute [14,15];14 identifi... | Applies the post processors |
0 module [1];1 function_definition [2,3,4];2 function_name [] locale_first_weekday;3 parameters [];4 block [5,9,106];5 expression_statement [6];6 assignment [7,8];7 identifier [] first_weekday;8 integer [] 6;9 try_statement [10,97];10 block [11,20,39,45,65,79,85];11 expression_statement [12];12 assignment [13,14];13 id... | figure if week starts on monday or sunday |
0 module [1];1 function_definition [2,3,5];2 function_name [] list_domains;3 parameters [4];4 identifier [] self;5 block [6,10,33];6 expression_statement [7];7 assignment [8,9];8 identifier [] domains;9 list [] [];10 for_statement [11,12,16];11 identifier [] cookie;12 call [13,14];13 identifier [] iter;14 argument_list... | Utility method to list all the domains in the jar. |
0 module [1];1 function_definition [2,3,4];2 function_name [] run;3 parameters [];4 block [5,11,30,42,66,75,87,96];5 expression_statement [6];6 assignment [7,8];7 identifier [] args;8 call [9,10];9 identifier [] parse_args;10 argument_list [];11 if_statement [12,15,22];12 attribute [13,14];13 identifier [] args;14 iden... | Command line entrypoint for the ``refresh-lsst-bib`` program. |
0 module [1];1 function_definition [2,3,21,23];2 function_name [] raise_for_missing_namespace;3 parameters [4,5,9,13,17];4 identifier [] self;5 typed_parameter [6,7];6 identifier [] line;7 type [8];8 identifier [] str;9 typed_parameter [10,11];10 identifier [] position;11 type [12];12 identifier [] int;13 typed_paramet... | Raise an exception if the namespace is not defined. |
0 module [1];1 function_definition [2,3,7];2 function_name [] fit;3 parameters [4,5,6];4 identifier [] self;5 identifier [] X;6 identifier [] y;7 block [8,20,32];8 expression_statement [9];9 assignment [10,13];10 attribute [11,12];11 identifier [] self;12 identifier [] glm_model;13 call [14,17];14 attribute [15,16];15 ... | Pretend to be a sklearn estimator, fit is called on creation |
0 module [1];1 function_definition [2,3,7];2 function_name [] parse;3 parameters [4,5];4 identifier [] binary;5 dictionary_splat_pattern [6];6 identifier [] params;7 block [8,18];8 expression_statement [9];9 assignment [10,11];10 identifier [] encoding;11 call [12,15];12 attribute [13,14];13 identifier [] params;14 ide... | Turns a JSON structure into a python object. |
0 module [1];1 function_definition [2,3,6];2 function_name [] _set_condition;3 parameters [4,5];4 identifier [] self;5 identifier [] condition;6 block [7,15];7 assert_statement [8];8 call [9,10];9 identifier [] isinstance;10 argument_list [11,12];11 identifier [] condition;12 attribute [13,14];13 identifier [] CodeExpr... | Set the condition for this control flow structure. |
0 module [1];1 function_definition [2,3,7];2 function_name [] retrieve;3 parameters [4,5,6];4 identifier [] self;5 identifier [] request;6 identifier [] _id;7 block [8,15,29];8 expression_statement [9];9 assignment [10,11];10 identifier [] _id;11 call [12,13];12 identifier [] deserialize;13 argument_list [14];14 identi... | Returns the document containing the given _id or 404 |
0 module [1];1 function_definition [2,3,6];2 function_name [] insertContinuousSet;3 parameters [4,5];4 identifier [] self;5 identifier [] continuousSet;6 block [7];7 try_statement [8,72];8 block [9];9 expression_statement [10];10 call [11,16];11 attribute [12,15];12 attribute [13,14];13 identifier [] models;14 identifi... | Inserts a the specified continuousSet into this repository. |
0 module [1];1 function_definition [2,3,5];2 function_name [] owner;3 parameters [4];4 identifier [] self;5 block [6,29];6 if_statement [7,10,15];7 attribute [8,9];8 identifier [] self;9 identifier [] _owner;10 block [11];11 return_statement [12];12 attribute [13,14];13 identifier [] self;14 identifier [] _owner;15 eli... | Username of document creator |
0 module [1];1 function_definition [2,3,7];2 function_name [] enforce_versioning;3 parameters [4];4 default_parameter [5,6];5 identifier [] force;6 False [];7 block [8,16,23,44,56,67];8 expression_statement [9];9 assignment [10,13];10 pattern_list [11,12];11 identifier [] connect_str;12 identifier [] repo_url;13 call [... | Install versioning on the db. |
0 module [1];1 function_definition [2,3,6];2 function_name [] find_diff_violations;3 parameters [4,5];4 identifier [] self;5 identifier [] patch;6 block [7,16,71];7 expression_statement [8];8 assignment [9,10];9 identifier [] violations;10 call [11,14];11 attribute [12,13];12 identifier [] collections;13 identifier [] ... | Uses the diff for this build to find changed lines that also have violations. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.