sequence stringlengths 388 5.57k | docstring stringlengths 11 171 |
|---|---|
0 module [1];1 function_definition [2,3,6];2 function_name [] _generate_delete_sql;3 parameters [4,5];4 identifier [] self;5 identifier [] delete_keys;6 block [7];7 for_statement [8,9,10];8 identifier [] key;9 identifier [] delete_keys;10 block [11,17,27,42,60,67];11 expression_statement [12];12 assignment [13,16];13 p... | Generate forward delete operations for SQL items. |
0 module [1];1 function_definition [2,3,7];2 function_name [] endpoint_search;3 parameters [4,5,6];4 identifier [] filter_fulltext;5 identifier [] filter_owner_id;6 identifier [] filter_scope;7 block [8,27,33,37,47,64];8 if_statement [9,15];9 boolean_operator [10,13] and;10 comparison_operator [11,12] ==;11 identifier ... | Executor for `globus endpoint search` |
0 module [1];1 function_definition [2,3,5];2 function_name [] _json_to_unicode;3 parameters [4];4 identifier [] data;5 block [6,10,71];6 expression_statement [7];7 assignment [8,9];8 identifier [] ret;9 dictionary [];10 for_statement [11,14,19];11 pattern_list [12,13];12 identifier [] key;13 identifier [] value;14 call... | Encode json values in unicode to match that of the API |
0 module [1];1 function_definition [2,3,6];2 function_name [] _is_replacement_allowed;3 parameters [4,5];4 identifier [] self;5 identifier [] s;6 block [7,24,41];7 if_statement [8,21];8 call [9,10];9 identifier [] any;10 generator_expression [11,16];11 comparison_operator [12,13] in;12 identifier [] tag;13 attribute [1... | Tests whether replacement is allowed on given piece of HTML text. |
0 module [1];1 function_definition [2,3,5];2 function_name [] unique_list;3 parameters [4];4 identifier [] lst;5 block [6,10,26];6 expression_statement [7];7 assignment [8,9];8 identifier [] uniq;9 list [] [];10 for_statement [11,12,13];11 identifier [] item;12 identifier [] lst;13 block [14];14 if_statement [15,18];15... | Make a list unique, retaining order of initial appearance. |
0 module [1];1 function_definition [2,3,8];2 function_name [] search_weekday;3 parameters [4,5,6,7];4 identifier [] weekday;5 identifier [] jd;6 identifier [] direction;7 identifier [] offset;8 block [9];9 return_statement [10];10 call [11,12];11 identifier [] weekday_before;12 argument_list [13,14];13 identifier [] we... | Determine the Julian date for the next or previous weekday |
0 module [1];1 function_definition [2,3,10];2 function_name [] create_dcnm_in_nwk;3 parameters [4,5,6,7];4 identifier [] self;5 identifier [] tenant_id;6 identifier [] fw_dict;7 default_parameter [8,9];8 identifier [] is_fw_virt;9 False [];10 block [11,20,31,64,74];11 expression_statement [12];12 assignment [13,14];13 ... | Create the DCNM In Network and store the result in DB. |
0 module [1];1 function_definition [2,3,9];2 function_name [] trigger;3 parameters [4,5,7];4 identifier [] self;5 list_splat_pattern [6];6 identifier [] args;7 dictionary_splat_pattern [8];8 identifier [] kargs;9 block [10,16,36];10 expression_statement [11];11 assignment [12,13];12 identifier [] event;13 subscript [14... | Execute all event handlers with optional arguments for the observable. |
0 module [1];1 function_definition [2,3,5];2 function_name [] sam_parse_reply;3 parameters [4];4 identifier [] line;5 block [6,15,34];6 expression_statement [7];7 assignment [8,9];8 identifier [] parts;9 call [10,13];10 attribute [11,12];11 identifier [] line;12 identifier [] split;13 argument_list [14];14 string [];15... | parse a reply line into a dict |
0 module [1];1 function_definition [2,3,9];2 function_name [] hash_name;3 parameters [4,5,6];4 identifier [] name;5 identifier [] script_pubkey;6 default_parameter [7,8];7 identifier [] register_addr;8 None [];9 block [10,17,26,38];10 expression_statement [11];11 assignment [12,13];12 identifier [] bin_name;13 call [14... | Generate the hash over a name and hex-string script pubkey |
0 module [1];1 function_definition [2,3,8];2 function_name [] _process_output;3 parameters [4,5,6];4 identifier [] self;5 identifier [] node;6 dictionary_splat_pattern [7];7 identifier [] kwargs;8 block [9];9 for_statement [10,11,14];10 identifier [] n;11 attribute [12,13];12 identifier [] node;13 identifier [] nodes;1... | Processes an output node, which will contain things like `Name` and `TemplateData` nodes. |
0 module [1];1 function_definition [2,3,6];2 function_name [] _check_content;3 parameters [4,5];4 identifier [] self;5 identifier [] content_str;6 block [7,65];7 if_statement [8,11];8 attribute [9,10];9 identifier [] self;10 identifier [] do_content_check;11 block [12,29,44];12 expression_statement [13];13 assignment [... | Check if the content is likely to be successfully read. |
0 module [1];1 function_definition [2,3,7];2 function_name [] _add_mxnet_ctc_loss;3 parameters [4,5,6];4 identifier [] pred;5 identifier [] seq_len;6 identifier [] label;7 block [8,30,48,59,72,83,94];8 expression_statement [9];9 assignment [10,11];10 identifier [] pred_ctc;11 call [12,17];12 attribute [13,16];13 attrib... | Adds Symbol.WapCTC on top of pred symbol and returns the resulting symbol |
0 module [1];1 function_definition [2,3,5];2 function_name [] getavailable;3 parameters [4];4 identifier [] self;5 block [6,11,15,34,58];6 import_from_statement [7,9];7 dotted_name [8];8 identifier [] importlib;9 dotted_name [10];10 identifier [] import_module;11 expression_statement [12];12 assignment [13,14];13 ident... | Return a list of subtitle downloaders available. |
0 module [1];1 function_definition [2,3,6];2 function_name [] censor;3 parameters [4,5];4 identifier [] self;5 identifier [] input_text;6 block [7,15,19,70];7 expression_statement [8];8 assignment [9,10];9 identifier [] bad_words;10 call [11,14];11 attribute [12,13];12 identifier [] self;13 identifier [] get_profane_wo... | Returns input_text with any profane words censored. |
0 module [1];1 function_definition [2,3,8];2 function_name [] _current_user_manager;3 parameters [4,5];4 identifier [] self;5 default_parameter [6,7];6 identifier [] session;7 None [];8 block [9,22,45];9 if_statement [10,13];10 comparison_operator [11,12] is;11 identifier [] session;12 None [];13 block [14];14 expressi... | Return the current user, or SYSTEM user. |
0 module [1];1 function_definition [2,3,5];2 function_name [] _split_one_end;3 parameters [4];4 identifier [] path;5 block [6,16];6 expression_statement [7];7 assignment [8,9];8 identifier [] s;9 call [10,13];10 attribute [11,12];11 identifier [] path;12 identifier [] rsplit;13 argument_list [14,15];14 string [] /;15 i... | Utility function for splitting off the very end part of a path. |
0 module [1];1 function_definition [2,3,5];2 function_name [] body;3 parameters [4];4 identifier [] self;5 block [6,94];6 for_statement [7,10,13];7 pattern_list [8,9];8 identifier [] fp;9 identifier [] need_close;10 attribute [11,12];11 identifier [] self;12 identifier [] files;13 block [14,36,55,67,85];14 try_statemen... | Yields the body of the buffered file. |
0 module [1];1 function_definition [2,3,6];2 function_name [] write;3 parameters [4,5];4 identifier [] self;5 identifier [] fptr;6 block [7,21];7 expression_statement [8];8 call [9,12];9 attribute [10,11];10 identifier [] fptr;11 identifier [] write;12 argument_list [13];13 call [14,17];14 attribute [15,16];15 identifi... | Write a JPEG 2000 Signature box to file. |
0 module [1];1 function_definition [2,3,4];2 function_name [] _compile_itemsort;3 parameters [];4 block [5,14,25,36,48,58,77,104];5 function_definition [6,7,9];6 function_name [] is_extra;7 parameters [8];8 identifier [] key_;9 block [10];10 return_statement [11];11 comparison_operator [12,13] is;12 identifier [] key_;... | return sort function of mappings |
0 module [1];1 function_definition [2,3,10];2 function_name [] _create;3 parameters [4,5,6,7,8,9];4 identifier [] archive;5 identifier [] compression;6 identifier [] cmd;7 identifier [] format;8 identifier [] verbosity;9 identifier [] filenames;10 block [11,26,119];11 if_statement [12,18];12 comparison_operator [13,17]... | Create an LZMA or XZ archive with the lzma Python module. |
0 module [1];1 function_definition [2,3,10];2 function_name [] mkUTC;3 parameters [4,5,6,7,8,9];4 identifier [] year;5 identifier [] month;6 identifier [] day;7 identifier [] hour;8 identifier [] min;9 identifier [] sec;10 block [11,13,28,41];11 expression_statement [12];12 string [] similar to python's mktime but for ... | similar to python's mktime but for utc |
0 module [1];1 function_definition [2,3,6];2 function_name [] remove;3 parameters [4,5];4 identifier [] self;5 identifier [] transport;6 block [7,18];7 expression_statement [8];8 assignment [9,10];9 identifier [] recipients;10 call [11,14];11 attribute [12,13];12 identifier [] copy;13 identifier [] copy;14 argument_lis... | removes a transport from all channels to which it belongs. |
0 module [1];1 function_definition [2,3,7];2 function_name [] project_inspect_template_path;3 parameters [4,5,6];4 identifier [] cls;5 identifier [] project;6 identifier [] inspect_template;7 block [8];8 return_statement [9];9 call [10,17];10 attribute [11,16];11 attribute [12,15];12 attribute [13,14];13 identifier [] ... | Return a fully-qualified project_inspect_template string. |
0 module [1];1 function_definition [2,3,9];2 function_name [] get;3 parameters [4,5,6];4 identifier [] self;5 identifier [] key;6 default_parameter [7,8];7 identifier [] subcommand;8 string [] config:get;9 block [10,21];10 expression_statement [11];11 assignment [12,13];12 identifier [] cmd;13 list [14,15,16,17,18] ["h... | Get a app config value by name |
0 module [1];1 function_definition [2,3,6];2 function_name [] RemoveEventHandler;3 parameters [4,5];4 identifier [] self;5 identifier [] wb;6 block [7,12];7 import_from_statement [8,10];8 dotted_name [9];9 identifier [] UcsBase;10 dotted_name [11];11 identifier [] WriteUcsWarning;12 if_statement [13,18,26];13 compariso... | Removes an event handler. |
0 module [1];1 function_definition [2,3,7];2 function_name [] three_d_effect;3 parameters [4,5];4 identifier [] img;5 dictionary_splat_pattern [6];6 identifier [] kwargs;7 block [8,18,26,50,60,111];8 expression_statement [9];9 assignment [10,11];10 identifier [] w;11 call [12,15];12 attribute [13,14];13 identifier [] k... | Create 3D effect using convolution |
0 module [1];1 function_definition [2,3,6];2 function_name [] append_warning;3 parameters [4,5];4 identifier [] self;5 identifier [] msg;6 block [7,14,23,43];7 assert_statement [8,13];8 comparison_operator [9,12] is not;9 attribute [10,11];10 identifier [] self;11 identifier [] model;12 None [];13 string [] You must al... | Append a warning message to the model to expose issues. |
0 module [1];1 function_definition [2,3,5];2 function_name [] _start;3 parameters [4];4 identifier [] self;5 block [6,16,33];6 expression_statement [7];7 assignment [8,11];8 attribute [9,10];9 identifier [] self;10 identifier [] start;11 call [12,15];12 attribute [13,14];13 identifier [] time;14 identifier [] time;15 a... | mark the time of execution for duration calculations later |
0 module [1];1 function_definition [2,3,9];2 function_name [] make_response;3 parameters [4,5,6];4 identifier [] message;5 identifier [] status_code;6 default_parameter [7,8];7 identifier [] details;8 None [];9 block [10,19,28,35,41];10 expression_statement [11];11 assignment [12,13];12 identifier [] response_body;13 c... | Make a jsonified response with specified message and status code. |
0 module [1];1 function_definition [2,3,5];2 function_name [] valid_modes;3 parameters [4];4 identifier [] self;5 block [6,20];6 expression_statement [7];7 assignment [8,9];8 identifier [] default_mode;9 conditional_expression [10,14,19] if;10 tuple [11];11 attribute [12,13];12 identifier [] self;13 identifier [] mode;... | Valid modes of an open file |
0 module [1];1 function_definition [2,3,7];2 function_name [] streamify;3 parameters [4,5,6];4 identifier [] self;5 identifier [] state;6 identifier [] frame;7 block [8,19,30,34,43,47,173];8 expression_statement [9];9 assignment [10,11];10 identifier [] enc_tab;11 subscript [12,17];12 subscript [13,16];13 attribute [14... | Prepare frame for output as a COBS-encoded stream. |
0 module [1];1 function_definition [2,3,8];2 function_name [] file_ns_handler;3 parameters [4,5,6,7];4 identifier [] importer;5 identifier [] path_item;6 identifier [] packageName;7 identifier [] module;8 block [9,29,36];9 expression_statement [10];10 assignment [11,12];11 identifier [] subpath;12 call [13,18];13 attri... | Compute an ns-package subpath for a filesystem or zipfile importer |
0 module [1];1 function_definition [2,3,12];2 function_name [] ellipse;3 parameters [4,5,6,9];4 identifier [] center;5 identifier [] covariance_matrix;6 default_parameter [7,8];7 identifier [] level;8 integer [] 1;9 default_parameter [10,11];10 identifier [] n;11 integer [] 1000;12 block [13,27,38,53,82];13 expression_... | Returns error ellipse in slope-azimuth space |
0 module [1];1 function_definition [2,3,7];2 function_name [] _set_opt;3 parameters [4,5,6];4 identifier [] config_dict;5 identifier [] path;6 identifier [] value;7 block [8,14,26,38,49];8 if_statement [9,12];9 comparison_operator [10,11] is;10 identifier [] value;11 None [];12 block [13];13 return_statement [];14 if_s... | Set the value in the dictionary at the given path if the value is not None. |
0 module [1];1 function_definition [2,3,5];2 function_name [] _get_pq_array_construct;3 parameters [4];4 identifier [] self;5 block [6,15,24,33,42,51,63,75,87,99,122,131,157];6 expression_statement [7];7 assignment [8,9];8 identifier [] bus_no;9 call [10,13];10 attribute [11,12];11 identifier [] integer;12 identifier [... | Returns a construct for an array of PQ load data. |
0 module [1];1 function_definition [2,3,13];2 function_name [] from_genes;3 parameters [4,5];4 identifier [] cls;5 typed_parameter [6,7];6 identifier [] genes;7 type [8];8 generic_type [9,10];9 identifier [] List;10 type_parameter [11];11 type [12];12 identifier [] ExpGene;13 block [14,26,39,49];14 expression_statement... | Initialize instance using a list of `ExpGene` objects. |
0 module [1];1 function_definition [2,3,5];2 function_name [] _PartitionChunks;3 parameters [4];4 identifier [] chunks;5 block [6,11,15,71];6 expression_statement [7];7 assignment [8,9];8 identifier [] partitions;9 list [10] [[]];10 list [] [];11 expression_statement [12];12 assignment [13,14];13 identifier [] partitio... | Groups chunks into partitions of size safe for a single INSERT. |
0 module [1];1 function_definition [2,3,5];2 function_name [] _check_directory_arguments;3 parameters [4];4 identifier [] self;5 block [6,29];6 if_statement [7,18];7 not_operator [8];8 call [9,14];9 attribute [10,13];10 attribute [11,12];11 identifier [] os;12 identifier [] path;13 identifier [] isdir;14 argument_list ... | Validates arguments for loading from directories, including static image and time series directories. |
0 module [1];1 function_definition [2,3,6];2 function_name [] printSegmentForCell;3 parameters [4,5];4 identifier [] tm;5 identifier [] cell;6 block [7,11];7 print_statement [8,9,10];8 string [] Segments for cell;9 identifier [] cell;10 string [] :;11 for_statement [12,13,22];12 identifier [] seg;13 attribute [14,21];1... | Print segment information for this cell |
0 module [1];1 function_definition [2,3,8];2 function_name [] load;3 parameters [4,5];4 identifier [] self;5 default_parameter [6,7];6 identifier [] file;7 None [];8 block [9,11,22,30,45];9 expression_statement [10];10 string [] Read and decompress a compact script from the Pickler's file object.;11 if_statement [12,15... | Read and decompress a compact script from the Pickler's file object. |
0 module [1];1 function_definition [2,3,9];2 function_name [] overlap;3 parameters [4,5];4 identifier [] self;5 typed_parameter [6,7];6 identifier [] other;7 type [8];8 string [] Span;9 block [10];10 return_statement [11];11 not_operator [12];12 () [13];13 boolean_operator [14,37] or;14 boolean_operator [15,30] or;15 b... | Detect if two spans overlap. |
0 module [1];1 function_definition [2,3,5];2 function_name [] connect;3 parameters [4];4 identifier [] self;5 block [6];6 expression_statement [7];7 assignment [8,11];8 attribute [9,10];9 identifier [] self;10 identifier [] client;11 call [12,15];12 attribute [13,14];13 identifier [] smtplib;14 identifier [] SMTP;15 ar... | Connect to the SMTP server. |
0 module [1];1 function_definition [2,3,4];2 function_name [] find_free_port;3 parameters [];4 block [5];5 with_statement [6,25];6 with_clause [7];7 with_item [8];8 as_pattern [9,23];9 call [10,11];10 identifier [] closing;11 argument_list [12];12 call [13,16];13 attribute [14,15];14 identifier [] socket;15 identifier ... | Finds a free port. |
0 module [1];1 function_definition [2,3,5];2 function_name [] netmask;3 parameters [4];4 identifier [] mask;5 block [6,16,25,36];6 if_statement [7,13];7 not_operator [8];8 call [9,10];9 identifier [] isinstance;10 argument_list [11,12];11 identifier [] mask;12 identifier [] string_types;13 block [14];14 return_statemen... | Returns True if the value passed is a valid netmask, otherwise return False |
0 module [1];1 function_definition [2,3,5];2 function_name [] as_dict;3 parameters [4];4 identifier [] self;5 block [6,29];6 expression_statement [7];7 assignment [8,9];8 identifier [] d;9 dictionary [10,19,24];10 pair [11,12];11 string [] ion;12 call [13,18];13 attribute [14,17];14 attribute [15,16];15 identifier [] s... | Creates a dict of composition, energy, and ion name |
0 module [1];1 function_definition [2,3,8];2 function_name [] write;3 parameters [4,6];4 list_splat_pattern [5];5 identifier [] args;6 dictionary_splat_pattern [7];7 identifier [] kwargs;8 block [9,19,29];9 expression_statement [10];10 assignment [11,12];11 identifier [] debug;12 call [13,16];13 attribute [14,15];14 id... | Redirectable wrapper for print statements. |
0 module [1];1 function_definition [2,3,11];2 function_name [] traverse_levelorder;3 parameters [4,5,8];4 identifier [] self;5 default_parameter [6,7];6 identifier [] leaves;7 True [];8 default_parameter [9,10];9 identifier [] internal;10 True [];11 block [12];12 for_statement [13,14,27];13 identifier [] node;14 call [... | Perform a levelorder traversal of the ``Node`` objects in this ``Tree`` |
0 module [1];1 function_definition [2,3,6];2 function_name [] expand;3 parameters [4,5];4 identifier [] self;5 identifier [] msgpos;6 block [7,15];7 expression_statement [8];8 assignment [9,10];9 identifier [] MT;10 subscript [11,14];11 attribute [12,13];12 identifier [] self;13 identifier [] _tree;14 identifier [] msg... | expand message at given position |
0 module [1];1 function_definition [2,3,5];2 function_name [] file_contents;3 parameters [4];4 identifier [] file_name;5 block [6,24,51];6 expression_statement [7];7 assignment [8,9];8 identifier [] curr_dir;9 call [10,15];10 attribute [11,14];11 attribute [12,13];12 identifier [] os;13 identifier [] path;14 identifier... | Given a file name to a valid file returns the file object. |
0 module [1];1 function_definition [2,3,8];2 function_name [] copy_w_id_suffix;3 parameters [4,5];4 identifier [] elem;5 default_parameter [6,7];6 identifier [] suffix;7 string [] _copy;8 block [9,16,40];9 expression_statement [10];10 assignment [11,12];11 identifier [] mycopy;12 call [13,14];13 identifier [] deepcopy;... | Make a deep copy of the provided tree, altering ids. |
0 module [1];1 function_definition [2,3,7];2 function_name [] click_table_printer;3 parameters [4,5,6];4 identifier [] headers;5 identifier [] _filter;6 identifier [] data;7 block [8,30,45,56,99,112,121,142];8 expression_statement [9];9 assignment [10,11];10 identifier [] _filter;11 binary_operator [12,21] +;12 list_co... | Generate space separated output for click commands. |
0 module [1];1 function_definition [2,3,5];2 function_name [] render_pulp_tag;3 parameters [4];4 identifier [] self;5 block [6,19,29];6 if_statement [7,17];7 not_operator [8];8 call [9,14];9 attribute [10,13];10 attribute [11,12];11 identifier [] self;12 identifier [] dj;13 identifier [] dock_json_has_plugin_conf;14 ar... | Configure the pulp_tag plugin. |
0 module [1];1 function_definition [2,3,5];2 function_name [] collect;3 parameters [4];4 identifier [] self;5 block [6,22];6 if_statement [7,10];7 comparison_operator [8,9] is;8 identifier [] boto;9 None [];10 block [11,20];11 expression_statement [12];12 call [13,18];13 attribute [14,17];14 attribute [15,16];15 identi... | Collect s3 bucket stats |
0 module [1];1 function_definition [2,3,27];2 function_name [] update;3 parameters [4,7,10,15,18,21,24];4 default_parameter [5,6];5 identifier [] callback;6 None [];7 default_parameter [8,9];8 identifier [] path;9 None [];10 default_parameter [11,12];11 identifier [] method;12 attribute [13,14];13 identifier [] Method;... | Decorator to configure an operation that updates a resource. |
0 module [1];1 function_definition [2,3,19,21];2 function_name [] convert_doc_to_text;3 parameters [4,9,14];4 typed_default_parameter [5,6,8];5 identifier [] filename;6 type [7];7 identifier [] str;8 None [];9 typed_default_parameter [10,11,13];10 identifier [] blob;11 type [12];12 identifier [] bytes;13 None [];14 typ... | Converts Microsoft Word DOC files to text. |
0 module [1];1 function_definition [2,3,7];2 function_name [] _addNoise;3 parameters [4,5,6];4 identifier [] self;5 identifier [] pattern;6 identifier [] noiseLevel;7 block [8,15,19,57];8 if_statement [9,12];9 comparison_operator [10,11] is;10 identifier [] pattern;11 None [];12 block [13];13 return_statement [14];14 N... | Adds noise the given list of patterns and returns a list of noisy copies. |
0 module [1];1 function_definition [2,3,6];2 function_name [] pulp_repo_path;3 parameters [4,5];4 identifier [] connection;5 identifier [] repoid;6 block [7,19,29,38,47];7 expression_statement [8];8 assignment [9,10];9 identifier [] dl_base;10 call [11,16];11 attribute [12,15];12 attribute [13,14];13 identifier [] conn... | Given a connection and a repoid, return the url of the repository |
0 module [1];1 function_definition [2,3,10];2 function_name [] reorder;3 parameters [4,5,6,7];4 identifier [] self;5 identifier [] dst_order;6 identifier [] arr;7 default_parameter [8,9];8 identifier [] src_order;9 None [];10 block [11,24,35,51];11 if_statement [12,15];12 comparison_operator [13,14] is;13 identifier []... | Reorder the output array to match that needed by the viewer. |
0 module [1];1 function_definition [2,3,9];2 function_name [] log_accept;3 parameters [4,5,6,7,8];4 identifier [] self;5 identifier [] block_id;6 identifier [] vtxindex;7 identifier [] opcode;8 identifier [] op_data;9 block [10];10 expression_statement [11];11 call [12,15];12 attribute [13,14];13 identifier [] log;14 i... | Log an accepted operation |
0 module [1];1 function_definition [2,3,20];2 function_name [] remove_files_in_dir;3 parameters [4,5,8,11,14,17];4 identifier [] dpath;5 default_parameter [6,7];6 identifier [] fname_pattern_list;7 string [] *;8 default_parameter [9,10];9 identifier [] recursive;10 False [];11 default_parameter [12,13];12 identifier []... | Removes files matching a pattern from a directory |
0 module [1];1 function_definition [2,3,9];2 function_name [] build_index;3 parameters [4,5,6];4 identifier [] self;5 identifier [] idx_name;6 default_parameter [7,8];7 identifier [] _type;8 string [] default;9 block [10,12,16,20,80,88,101];10 expression_statement [11];11 string [] Build the index related to the `name`... | Build the index related to the `name`. |
0 module [1];1 function_definition [2,3,4];2 function_name [] short_token;3 parameters [];4 block [5,18,27];5 expression_statement [6];6 assignment [7,8];7 identifier [] hash;8 call [9,12];9 attribute [10,11];10 identifier [] hashlib;11 identifier [] sha1;12 argument_list [13];13 call [14,17];14 attribute [15,16];15 id... | Generate a hash that can be used as an application identifier |
0 module [1];1 function_definition [2,3,7];2 function_name [] _grouped_backends;3 parameters [4,5,6];4 identifier [] cls;5 identifier [] options;6 identifier [] backend;7 block [8,10,24,31,167];8 expression_statement [9];9 string [] Group options by backend and filter out output group appropriately;10 if_statement [11,... | Group options by backend and filter out output group appropriately |
0 module [1];1 function_definition [2,3,7];2 function_name [] __get_cycle;3 parameters [4,5,6];4 identifier [] graph;5 identifier [] ordering;6 identifier [] parent_lookup;7 block [8,14];8 expression_statement [9];9 assignment [10,11];10 identifier [] root_node;11 subscript [12,13];12 identifier [] ordering;13 integer ... | Gets the main cycle of the dfs tree. |
0 module [1];1 function_definition [2,3,5];2 function_name [] _create_buffers;3 parameters [4];4 identifier [] self;5 block [6,12,62];6 expression_statement [7];7 assignment [8,11];8 attribute [9,10];9 identifier [] self;10 identifier [] buffers;11 dictionary [];12 for_statement [13,14,21];13 identifier [] step;14 call... | Create a buffer for every step in the pipeline. |
0 module [1];1 function_definition [2,3,5];2 function_name [] __clean_tmp;3 parameters [4];4 identifier [] sfn;5 block [6];6 if_statement [7,31];7 call [8,11];8 attribute [9,10];9 identifier [] sfn;10 identifier [] startswith;11 argument_list [12];12 call [13,18];13 attribute [14,17];14 attribute [15,16];15 identifier ... | Clean out a template temp file |
0 module [1];1 function_definition [2,3,5];2 function_name [] _get_value;3 parameters [4];4 identifier [] self;5 block [6,26];6 if_statement [7,10];7 attribute [8,9];8 identifier [] self;9 identifier [] _aux_variable;10 block [11];11 return_statement [12];12 call [13,18];13 subscript [14,17];14 attribute [15,16];15 ide... | Return current parameter value |
0 module [1];1 function_definition [2,3,5];2 function_name [] id_request;3 parameters [4];4 identifier [] self;5 block [6,9,17,27,39,49];6 import_statement [7];7 dotted_name [8];8 identifier [] inspect;9 expression_statement [10];10 assignment [11,12];11 identifier [] curframe;12 call [13,16];13 attribute [14,15];14 id... | Request a device ID from a device. |
0 module [1];1 function_definition [2,3,8];2 function_name [] tmp_context;3 parameters [4,5];4 identifier [] fn;5 default_parameter [6,7];6 identifier [] mode;7 string [] r;8 block [9];9 with_statement [10,23];10 with_clause [11];11 with_item [12];12 as_pattern [13,21];13 call [14,15];14 identifier [] open;15 argument_... | Return content fo the `fn` from the temporary directory. |
0 module [1];1 function_definition [2,3,5];2 function_name [] clean_ns;3 parameters [4];4 identifier [] tag;5 block [6,34];6 if_statement [7,10];7 comparison_operator [8,9] in;8 string [] };9 identifier [] tag;10 block [11,20];11 expression_statement [12];12 assignment [13,14];13 identifier [] split;14 call [15,18];15 ... | Return a tag and its namespace separately. |
0 module [1];1 function_definition [2,3,6];2 function_name [] process_request;3 parameters [4,5];4 identifier [] self;5 identifier [] request_object;6 block [7,56];7 expression_statement [8];8 assignment [9,10];9 identifier [] resources;10 () [11];11 call [12,55];12 attribute [13,54];13 call [14,50];14 attribute [15,49... | Return a list of resources |
0 module [1];1 function_definition [2,3,5];2 function_name [] _next_id;3 parameters [4];4 identifier [] self;5 block [6,14,20];6 assert_statement [7];7 comparison_operator [8,11] ==;8 call [9,10];9 identifier [] get_thread_ident;10 argument_list [];11 attribute [12,13];12 identifier [] self;13 identifier [] ioloop_thre... | Return the next available message id. |
0 module [1];1 function_definition [2,3,5];2 function_name [] parse_cfg;3 parameters [4];4 identifier [] self;5 block [6,14,40,55,66];6 expression_statement [7];7 assignment [8,11];8 attribute [9,10];9 identifier [] self;10 identifier [] cfgparser;11 call [12,13];12 identifier [] ConfigParser;13 argument_list [];14 if_... | parses the given config file for experiments. |
0 module [1];1 function_definition [2,3,6];2 function_name [] send_response;3 parameters [4,5];4 identifier [] self;5 identifier [] response;6 block [7,18,26];7 expression_statement [8];8 assignment [9,10];9 identifier [] response_bytes;10 call [11,14];11 attribute [12,13];12 identifier [] response;13 identifier [] enc... | Send a unicode object as reply to the most recently-issued command |
0 module [1];1 function_definition [2,3,5];2 function_name [] make_gui;3 parameters [4];4 identifier [] self;5 block [6,14,26,40,56,77,96,102,108];6 expression_statement [7];7 assignment [8,11];8 attribute [9,10];9 identifier [] self;10 identifier [] option_window;11 call [12,13];12 identifier [] Toplevel;13 argument_l... | Setups the general structure of the gui, the first function called |
0 module [1];1 function_definition [2,3,5];2 function_name [] _build_resource;3 parameters [4];4 identifier [] self;5 block [6,15,30,45,60];6 expression_statement [7];7 assignment [8,9];8 identifier [] resource;9 dictionary [10];10 pair [11,12];11 string [] name;12 attribute [13,14];13 identifier [] self;14 identifier ... | Generate a resource for ``create`` or ``update``. |
0 module [1];1 function_definition [2,3,6];2 function_name [] _write_config;3 parameters [4,5];4 identifier [] self;5 identifier [] memory;6 block [7,14,36];7 expression_statement [8];8 call [9,12];9 attribute [10,11];10 identifier [] memory;11 identifier [] seek;12 argument_list [13];13 integer [] 0;14 expression_stat... | Write the configuration for this stimulus to memory. |
0 module [1];1 function_definition [2,3,5];2 function_name [] packet_write;3 parameters [4];4 identifier [] self;5 block [6,10,25,151];6 expression_statement [7];7 assignment [8,9];8 identifier [] bytes_written;9 integer [] 0;10 if_statement [11,18];11 comparison_operator [12,15] ==;12 attribute [13,14];13 identifier [... | Write packet to network. |
0 module [1];1 function_definition [2,3,6];2 function_name [] touch_file;3 parameters [4,5];4 identifier [] self;5 identifier [] filename;6 block [7,24,30];7 expression_statement [8];8 assignment [9,10];9 identifier [] path_to_file;10 call [11,14];11 attribute [12,13];12 identifier [] self;13 identifier [] __file_class... | Touch a file in the directory |
0 module [1];1 function_definition [2,3,12,14];2 function_name [] lock_exists_in_either_channel_side;3 parameters [4,8];4 typed_parameter [5,6];5 identifier [] channel_state;6 type [7];7 identifier [] NettingChannelState;8 typed_parameter [9,10];9 identifier [] secrethash;10 type [11];11 identifier [] SecretHash;12 typ... | Check if the lock with `secrethash` exists in either our state or the partner's state |
0 module [1];1 function_definition [2,3,6];2 function_name [] server_stop;3 parameters [4,5];4 identifier [] app;5 identifier [] loop;6 block [7,16,32,38,50];7 expression_statement [8];8 assignment [9,10];9 identifier [] em;10 call [11,12];11 identifier [] Embed;12 argument_list [13];13 keyword_argument [14,15];14 iden... | Sends a message to the webhook channel when server stops. |
0 module [1];1 function_definition [2,3,10];2 function_name [] connect;3 parameters [4,5];4 identifier [] uri;5 default_parameter [6,7];6 identifier [] factory;7 attribute [8,9];8 identifier [] pymongo;9 identifier [] MongoClient;10 block [11,19];11 expression_statement [12];12 call [13,16];13 attribute [14,15];14 iden... | Use the factory to establish a connection to uri. |
0 module [1];1 function_definition [2,3,13];2 function_name [] compute;3 parameters [4,5,6,7,8,9,10,11,12];4 identifier [] self;5 identifier [] xt1;6 identifier [] yt1;7 identifier [] xt;8 identifier [] yt;9 identifier [] theta1t1;10 identifier [] theta2t1;11 identifier [] theta1;12 identifier [] theta2;13 block [14,20... | Accumulate the various inputs. |
0 module [1];1 function_definition [2,3,5];2 function_name [] _build_all_dependencies;3 parameters [4];4 identifier [] self;5 block [6,10,40];6 expression_statement [7];7 assignment [8,9];8 identifier [] ret;9 dictionary [];10 for_statement [11,14,24];11 pattern_list [12,13];12 identifier [] model;13 identifier [] sche... | Helper function to build a map of model to their list of model reference dependencies |
0 module [1];1 function_definition [2,3,6];2 function_name [] search_related;3 parameters [4,5];4 identifier [] self;5 identifier [] request;6 block [7,14,34,38,53,105];7 expression_statement [8];8 call [9,12];9 attribute [10,11];10 identifier [] logger;11 identifier [] debug;12 argument_list [13];13 string [] Cache Se... | extracting everything from the cache |
0 module [1];1 function_definition [2,3,6];2 function_name [] do_application_actions_plus;3 parameters [4,5];4 identifier [] parser;5 identifier [] token;6 block [7,17,23];7 expression_statement [8];8 assignment [9,10];9 identifier [] nodelist;10 call [11,14];11 attribute [12,13];12 identifier [] parser;13 identifier [... | Render actions available with extra text. |
0 module [1];1 function_definition [2,3,6];2 function_name [] func;3 parameters [4,5];4 identifier [] self;5 identifier [] p;6 block [7,14];7 expression_statement [8];8 call [9,12];9 attribute [10,11];10 identifier [] self;11 identifier [] _set_stochastics;12 argument_list [13];13 identifier [] p;14 try_statement [15,2... | The function that gets passed to the optimizers. |
0 module [1];1 function_definition [2,3,6];2 function_name [] from_ad_date;3 parameters [4,5];4 identifier [] cls;5 identifier [] date;6 block [7,14,22,33];7 expression_statement [8];8 call [9,12];9 attribute [10,11];10 identifier [] functions;11 identifier [] check_valid_ad_range;12 argument_list [13];13 identifier []... | Gets a NepDate object from gregorian calendar date |
0 module [1];1 function_definition [2,3,5];2 function_name [] parse_array;3 parameters [4];4 identifier [] raw_array;5 block [6,22,38];6 expression_statement [7];7 assignment [8,9];8 identifier [] array_strip_brackets;9 call [10,19];10 attribute [11,18];11 call [12,15];12 attribute [13,14];13 identifier [] raw_array;14... | Parse a WMIC array. |
0 module [1];1 function_definition [2,3,5];2 function_name [] list_fpgas;3 parameters [4];4 identifier [] self;5 block [6,13,18,28,37,68,77];6 expression_statement [7];7 call [8,11];8 attribute [9,10];9 identifier [] click;10 identifier [] echo;11 argument_list [12];12 string [] \nSupported FPGAs:\n;13 expression_state... | Return a list with all the supported FPGAs |
0 module [1];1 function_definition [2,3,5];2 function_name [] execInspectorDialog;3 parameters [4];4 identifier [] self;5 block [6,20,29,35];6 expression_statement [7];7 assignment [8,9];8 identifier [] dialog;9 call [10,11];10 identifier [] OpenInspectorDialog;11 argument_list [12,17];12 attribute [13,16];13 attribute... | Opens the inspector dialog box to let the user change the current inspector. |
0 module [1];1 function_definition [2,3,8];2 function_name [] select_template_name;3 parameters [4,5];4 identifier [] template_name_list;5 default_parameter [6,7];6 identifier [] using;7 None [];8 block [9,24];9 if_statement [10,16];10 not_operator [11];11 call [12,13];12 identifier [] isinstance;13 argument_list [14,1... | Given a list of template names, find the first one that exists. |
0 module [1];1 function_definition [2,3,11];2 function_name [] resolve_service_id;3 parameters [4,5,8];4 identifier [] self;5 default_parameter [6,7];6 identifier [] service_name;7 None [];8 default_parameter [9,10];9 identifier [] service_type;10 None [];11 block [12,30,38,97];12 expression_statement [13];13 assignmen... | Find the service_id of a given service |
0 module [1];1 function_definition [2,3,5];2 function_name [] n_failed;3 parameters [4];4 identifier [] self;5 block [6];6 return_statement [7];7 binary_operator [8,15] +;8 subscript [9,12];9 attribute [10,11];10 identifier [] self;11 identifier [] _counters;12 attribute [13,14];13 identifier [] JobStatus;14 identifier... | Return the number of failed jobs |
0 module [1];1 function_definition [2,3,6];2 function_name [] run;3 parameters [4,5];4 identifier [] self;5 identifier [] cmd;6 block [7,19,25,36,40,55,80];7 expression_statement [8];8 assignment [9,10];9 identifier [] cmd;10 binary_operator [11,18] +;11 list [12,13] ['git', '--git-dir=%s' % self.path];12 string [] git... | Execute git command in bash |
0 module [1];1 function_definition [2,3,5];2 function_name [] aggregated_relevant_items;3 parameters [4];4 identifier [] raw_df;5 block [6,45,58];6 expression_statement [7];7 assignment [8,9];8 identifier [] df;9 () [10];10 call [11,28];11 attribute [12,27];12 call [13,21];13 attribute [14,20];14 subscript [15,16];15 i... | Aggragation for calculate mean and std. |
0 module [1];1 function_definition [2,3,8];2 function_name [] intersect_two;3 parameters [4,5,6,7];4 identifier [] f1;5 identifier [] f2;6 identifier [] work_dir;7 identifier [] data;8 block [9,22,33,44];9 expression_statement [10];10 assignment [11,12];11 identifier [] bedtools;12 call [13,16];13 attribute [14,15];14 ... | Intersect two regions, handling cases where either file is not present. |
0 module [1];1 function_definition [2,3,9];2 function_name [] similar_items;3 parameters [4,5,6];4 identifier [] self;5 identifier [] itemid;6 default_parameter [7,8];7 identifier [] N;8 integer [] 10;9 block [10,23];10 if_statement [11,20];11 comparison_operator [12,13] >=;12 identifier [] itemid;13 subscript [14,19];... | Returns a list of the most similar other items |
0 module [1];1 function_definition [2,3,5];2 function_name [] _is_streaming_request;3 parameters [4];4 identifier [] self;5 block [6,14,22];6 expression_statement [7];7 assignment [8,9];8 identifier [] arg2;9 subscript [10,13];10 attribute [11,12];11 identifier [] self;12 identifier [] argstreams;13 integer [] 1;14 exp... | check request is stream request or not |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.