sequence stringlengths 388 5.57k | docstring stringlengths 11 171 |
|---|---|
0 module [1];1 function_definition [2,3,5];2 function_name [] pop_callback;3 parameters [4];4 identifier [] obj;5 block [6,12,17,59];6 expression_statement [7];7 assignment [8,9];8 identifier [] callbacks;9 attribute [10,11];10 identifier [] obj;11 identifier [] _callbacks;12 if_statement [13,15];13 not_operator [14];1... | Pop a single callback. |
0 module [1];1 function_definition [2,3,6];2 function_name [] overwrite_file_check;3 parameters [4,5];4 identifier [] args;5 identifier [] filename;6 block [7,91];7 if_statement [8,21];8 boolean_operator [9,13] and;9 not_operator [10];10 subscript [11,12];11 identifier [] args;12 string [] overwrite;13 call [14,19];14 ... | If filename exists, overwrite or modify it to be unique. |
0 module [1];1 function_definition [2,3,15];2 function_name [] add_scan_host_detail;3 parameters [4,5,6,9,12];4 identifier [] self;5 identifier [] scan_id;6 default_parameter [7,8];7 identifier [] host;8 string [];9 default_parameter [10,11];10 identifier [] name;11 string [];12 default_parameter [13,14];13 identifier ... | Adds a host detail result to scan_id scan. |
0 module [1];1 function_definition [2,3,8];2 function_name [] iter_previewers;3 parameters [4,5];4 identifier [] self;5 default_parameter [6,7];6 identifier [] previewers;7 None [];8 block [9,31,48];9 if_statement [10,15];10 comparison_operator [11,14] is not;11 attribute [12,13];12 identifier [] self;13 identifier [] ... | Get previewers ordered by PREVIEWER_PREVIEWERS_ORDER. |
0 module [1];1 function_definition [2,3,5];2 function_name [] unary_operator;3 parameters [4];4 identifier [] op;5 block [6,11,23,75,83];6 expression_statement [7];7 assignment [8,9];8 identifier [] valid_ops;9 set [10];10 string [] ~;11 if_statement [12,15];12 comparison_operator [13,14] not in;13 identifier [] op;14 ... | Factory function for making unary operator methods for Filters. |
0 module [1];1 function_definition [2,3,5];2 function_name [] next_header_class;3 parameters [4];4 identifier [] self;5 block [6,15,25,37,52];6 if_statement [7,12];7 comparison_operator [8,11] ==;8 attribute [9,10];9 identifier [] self;10 identifier [] _next_header_class_key;11 string [];12 block [13];13 return_stateme... | Return class of next header, if known. |
0 module [1];1 function_definition [2,3,4];2 function_name [] __get_connection_info;3 parameters [];4 block [5,9,77];5 expression_statement [6];6 assignment [7,8];7 identifier [] conn_info;8 dictionary [];9 try_statement [10,61];10 block [11,21,31,41,51];11 expression_statement [12];12 assignment [13,16];13 subscript [... | Grab MySQL Connection Details |
0 module [1];1 function_definition [2,3,7];2 function_name [] write_byte;3 parameters [4,5,6];4 identifier [] self;5 identifier [] cmd;6 identifier [] value;7 block [8,21];8 expression_statement [9];9 call [10,15];10 attribute [11,14];11 attribute [12,13];12 identifier [] self;13 identifier [] bus;14 identifier [] writ... | Writes an 8-bit byte to the specified command register |
0 module [1];1 function_definition [2,3,5];2 function_name [] reset;3 parameters [4];4 identifier [] self;5 block [6,12,23,29,39,47,58,68,89];6 expression_statement [7];7 assignment [8,11];8 attribute [9,10];9 identifier [] self;10 identifier [] _episode_steps;11 integer [] 0;12 if_statement [13,16];13 attribute [14,15... | Start a new episode. |
0 module [1];1 function_definition [2,3,6];2 function_name [] _process_response;3 parameters [4,5];4 identifier [] self;5 identifier [] reply;6 block [7,19,31];7 expression_statement [8];8 call [9,12];9 attribute [10,11];10 identifier [] self;11 identifier [] _advance_cluster_time;12 argument_list [13];13 call [14,17];... | Process a response to a command that was run with this session. |
0 module [1];1 function_definition [2,3,6];2 function_name [] _ValidateReturnValue;3 parameters [4,5];4 identifier [] return_value;5 identifier [] type_check_dict;6 block [7,17,23,27,54];7 expression_statement [8];8 assignment [9,10];9 identifier [] return_check;10 call [11,14];11 attribute [12,13];12 identifier [] typ... | Validate return value and return list of errors messages. |
0 module [1];1 function_definition [2,3,5];2 function_name [] validate_sort_fields;3 parameters [4];4 identifier [] self;5 block [6,19,32];6 expression_statement [7];7 assignment [8,9];8 identifier [] sort_fields;9 call [10,13];10 attribute [11,12];11 string [] ,;12 identifier [] join;13 argument_list [14];14 attribute... | Take care of sorting. |
0 module [1];1 function_definition [2,3,7];2 function_name [] update_task_redundancy;3 parameters [4,5,6];4 identifier [] config;5 identifier [] task_id;6 identifier [] redundancy;7 block [8];8 if_statement [9,12,51];9 comparison_operator [10,11] is;10 identifier [] task_id;11 None [];12 block [13,18];13 expression_sta... | Update task redudancy for a project. |
0 module [1];1 function_definition [2,3,6];2 function_name [] GetWsdlMethod;3 parameters [4,5];4 identifier [] ns;5 identifier [] wsdlName;6 block [7];7 with_statement [8,11];8 with_clause [9];9 with_item [10];10 identifier [] _lazyLock;11 block [12,20];12 expression_statement [13];13 assignment [14,15];14 identifier [... | Get wsdl method from ns, wsdlName |
0 module [1];1 function_definition [2,3,6];2 function_name [] setup_logger;3 parameters [4,5];4 identifier [] logging_level;5 identifier [] logging_format;6 block [7,16,37,44,46,66,78];7 expression_statement [8];8 assignment [9,10];9 identifier [] logger;10 call [11,14];11 attribute [12,13];12 identifier [] logging;13 ... | Setup default logging for ray. |
0 module [1];1 function_definition [2,3,5];2 function_name [] _setChoiceDict;3 parameters [4];4 identifier [] self;5 block [6,16];6 expression_statement [7];7 assignment [8,11];8 attribute [9,10];9 identifier [] self;10 identifier [] choiceDict;11 call [12,15];12 attribute [13,14];13 identifier [] minmatch;14 identifie... | Create min-match dictionary for choice list |
0 module [1];1 function_definition [2,3,5];2 function_name [] _extract_node_text;3 parameters [4];4 identifier [] node;5 block [6,33];6 expression_statement [7];7 assignment [8,9];8 identifier [] texts;9 call [10,11];10 identifier [] map;11 argument_list [12,17];12 attribute [13,16];13 attribute [14,15];14 identifier [... | Extract text from a given lxml node. |
0 module [1];1 function_definition [2,3,4];2 function_name [] mode_new_collection;3 parameters [];4 block [5,13,20,24,28,77,81,110];5 print_statement [6];6 attribute [7,12];7 subscript [8,11];8 call [9,10];9 identifier [] globals;10 argument_list [];11 string [] mode_new_collection;12 identifier [] __doc__;13 expressio... | Create a new collection of items with common attributes. |
0 module [1];1 function_definition [2,3,5];2 function_name [] _get_username_for_key;3 parameters [4];4 identifier [] self;5 block [6,23,29];6 expression_statement [7];7 assignment [8,9];8 identifier [] response;9 call [10,15];10 attribute [11,14];11 attribute [12,13];12 identifier [] self;13 identifier [] client;14 ide... | Find the user for a given access key |
0 module [1];1 function_definition [2,3,10];2 function_name [] compute_laplacian_matrix;3 parameters [4,5,8];4 identifier [] affinity_matrix;5 default_parameter [6,7];6 identifier [] method;7 string [] auto;8 dictionary_splat_pattern [9];9 identifier [] kwargs;10 block [11,20];11 if_statement [12,15];12 comparison_oper... | Compute the laplacian matrix with the given method |
0 module [1];1 function_definition [2,3,8];2 function_name [] _format_data;3 parameters [4,5];4 identifier [] self;5 default_parameter [6,7];6 identifier [] name;7 None [];8 block [9,35];9 expression_statement [10];10 assignment [11,12];11 identifier [] is_justify;12 not_operator [13];13 () [14];14 boolean_operator [15... | Return the formatted data as a unicode string. |
0 module [1];1 function_definition [2,3,5];2 function_name [] function_body;3 parameters [4];4 identifier [] self;5 block [6,52];6 if_statement [7,14];7 comparison_operator [8,13] >;8 attribute [9,12];9 attribute [10,11];10 identifier [] self;11 identifier [] shared;12 identifier [] function_vars;13 integer [] 0;14 blo... | Inserts a local variable initialization and body label |
0 module [1];1 function_definition [2,3,6];2 function_name [] treble;3 parameters [4,5];4 identifier [] self;5 identifier [] treble;6 block [7,14,27];7 expression_statement [8];8 assignment [9,10];9 identifier [] treble;10 call [11,12];11 identifier [] int;12 argument_list [13];13 identifier [] treble;14 expression_sta... | Set the speaker's treble. |
0 module [1];1 function_definition [2,3,9];2 function_name [] push_source;3 parameters [4,5,6];4 identifier [] self;5 identifier [] newstream;6 default_parameter [7,8];7 identifier [] newfile;8 None [];9 block [10,12,26,44,50,56];10 expression_statement [11];11 string [] Push an input source onto the lexer's input sour... | Push an input source onto the lexer's input source stack. |
0 module [1];1 function_definition [2,3,4];2 function_name [] invocation;3 parameters [];4 block [5,19,36];5 expression_statement [6];6 assignment [7,8];7 identifier [] cmdargs;8 binary_operator [9,13] +;9 list [10] [sys.executable];10 attribute [11,12];11 identifier [] sys;12 identifier [] executable;13 subscript [14,... | reconstructs the invocation for this python program |
0 module [1];1 function_definition [2,3,5];2 function_name [] checkin;3 parameters [4];4 identifier [] self;5 block [6];6 expression_statement [7];7 call [8,13];8 attribute [9,12];9 attribute [10,11];10 identifier [] self;11 identifier [] _query_instance;12 identifier [] checkin;13 argument_list [14,17];14 attribute [1... | Checks in an anonymous user in. |
0 module [1];1 function_definition [2,3,5];2 function_name [] savepoint;3 parameters [4];4 identifier [] self;5 block [6];6 if_statement [7,10];7 attribute [8,9];8 identifier [] self;9 identifier [] _last_image;10 block [11,22];11 expression_statement [12];12 call [13,18];13 attribute [14,17];14 attribute [15,16];15 id... | Copies the last displayed image. |
0 module [1];1 function_definition [2,3,5];2 function_name [] utc_dt_to_local_dt;3 parameters [4];4 identifier [] dtm;5 block [6,13,36,54];6 expression_statement [7];7 assignment [8,9];8 identifier [] utc_zone;9 call [10,11];10 identifier [] mktz;11 argument_list [12];12 string [] UTC;13 if_statement [14,25];14 boolean... | Convert a UTC datetime to datetime in local timezone |
0 module [1];1 function_definition [2,3,5];2 function_name [] tostr;3 parameters [4];4 identifier [] self;5 block [6,20,27,35];6 expression_statement [7];7 assignment [8,9];8 identifier [] element;9 call [10,13];10 attribute [11,12];11 identifier [] _transform;12 identifier [] SVGFigure;13 argument_list [14,17];14 attr... | Export SVG as a string |
0 module [1];1 function_definition [2,3,6];2 function_name [] mkdir;3 parameters [4,5];4 identifier [] dir;5 identifier [] enter;6 block [7];7 if_statement [8,17];8 not_operator [9];9 call [10,15];10 attribute [11,14];11 attribute [12,13];12 identifier [] os;13 identifier [] path;14 identifier [] exists;15 argument_lis... | Create directory with template for topic of the current environment |
0 module [1];1 function_definition [2,3,10];2 function_name [] patch;3 parameters [4,5,8];4 identifier [] self;5 default_parameter [6,7];6 identifier [] urls;7 None [];8 dictionary_splat_pattern [9];9 identifier [] overrides;10 block [11,22];11 if_statement [12,15];12 comparison_operator [13,14] is not;13 identifier []... | Sets the acceptable HTTP method to PATCH |
0 module [1];1 function_definition [2,3,10];2 function_name [] _batchify;3 parameters [4,5,6,7];4 identifier [] self;5 identifier [] batch_data;6 identifier [] batch_label;7 default_parameter [8,9];8 identifier [] start;9 integer [] 0;10 block [11,15,21,183];11 expression_statement [12];12 assignment [13,14];13 identif... | Override the helper function for batchifying data |
0 module [1];1 function_definition [2,3,6];2 function_name [] apply_deprecations;3 parameters [4,5];4 identifier [] cls;5 identifier [] path;6 block [7,9,18,22,68];7 expression_statement [8];8 string [] Convert any potentially deprecated paths and issue appropriate warnings;9 expression_statement [10];10 assignment [11... | Convert any potentially deprecated paths and issue appropriate warnings |
0 module [1];1 function_definition [2,3,8];2 function_name [] cache_invalidate_by_tags;3 parameters [4,5];4 identifier [] tags;5 default_parameter [6,7];6 identifier [] cache;7 None [];8 block [9,21,33,42,51,55,148];9 if_statement [10,15];10 call [11,12];11 identifier [] isinstance;12 argument_list [13,14];13 identifie... | Clear cache by tags. |
0 module [1];1 function_definition [2,3,8];2 function_name [] part_lister;3 parameters [4,5];4 identifier [] mpupload;5 default_parameter [6,7];6 identifier [] part_number_marker;7 None [];8 block [9,13,17];9 expression_statement [10];10 assignment [11,12];11 identifier [] more_results;12 True [];13 expression_statemen... | A generator function for listing parts of a multipart upload. |
0 module [1];1 function_definition [2,3,5];2 function_name [] compress;3 parameters [4];4 identifier [] self;5 block [6];6 for_statement [7,8,11];7 identifier [] ast_token;8 attribute [9,10];9 identifier [] self;10 identifier [] ast_tokens;11 block [12];12 if_statement [13,21,34];13 comparison_operator [14,18] in;14 ca... | Main function of compression. |
0 module [1];1 function_definition [2,3,8];2 function_name [] session;3 parameters [4,5];4 identifier [] self;5 default_parameter [6,7];6 identifier [] create;7 True [];8 block [9];9 if_statement [10,17,24];10 call [11,12];11 identifier [] hasattr;12 argument_list [13,16];13 attribute [14,15];14 identifier [] self;15 i... | Used to created default session |
0 module [1];1 function_definition [2,3,6];2 function_name [] sign;3 parameters [4,5];4 identifier [] ctx;5 identifier [] filename;6 block [7,30,45,51,57];7 if_statement [8,9,18];8 identifier [] filename;9 block [10];10 expression_statement [11];11 assignment [12,13];12 identifier [] tx;13 call [14,17];14 attribute [15... | Sign a json-formatted transaction |
0 module [1];1 function_definition [2,3,6];2 function_name [] new;3 parameters [4,5];4 identifier [] cls;5 identifier [] arg;6 block [7,11,79,98,102];7 expression_statement [8];8 assignment [9,10];9 identifier [] content;10 None [];11 if_statement [12,17,66];12 comparison_operator [13,16] ==;13 attribute [14,15];14 ide... | Creates a new Parameter object from the given ParameterArgument. |
0 module [1];1 function_definition [2,3,8,10];2 function_name [] clear_layout;3 parameters [4];4 typed_parameter [5,6];5 identifier [] layout;6 type [7];7 identifier [] QLayout;8 type [9];9 None [];10 block [11];11 if_statement [12,15];12 comparison_operator [13,14] is not;13 identifier [] layout;14 None [];15 block [1... | Clear the layout off all its components |
0 module [1];1 function_definition [2,3,6];2 function_name [] visit_Yield;3 parameters [4,5];4 identifier [] self;5 identifier [] node;6 block [7,14];7 expression_statement [8];8 call [9,12];9 attribute [10,11];10 identifier [] self;11 identifier [] generic_visit;12 argument_list [13];13 identifier [] node;14 expressio... | Compute yield type and merges it with others yield type. |
0 module [1];1 function_definition [2,3,5];2 function_name [] check_create_folder;3 parameters [4];4 identifier [] filename;5 block [6];6 expression_statement [7];7 call [8,11];8 attribute [9,10];9 identifier [] os;10 identifier [] makedirs;11 argument_list [12,20];12 call [13,18];13 attribute [14,17];14 attribute [15,... | Check if the folder exisits. If not, create the folder |
0 module [1];1 function_definition [2,3,14,16];2 function_name [] visit_SetComp;3 parameters [4,5,9];4 identifier [] self;5 typed_parameter [6,7];6 identifier [] node;7 type [8];8 identifier [] AST;9 typed_default_parameter [10,11,13];10 identifier [] dfltChaining;11 type [12];12 identifier [] bool;13 True [];14 type [... | Return `node`s representation as set comprehension. |
0 module [1];1 function_definition [2,3,6];2 function_name [] view_num_units;3 parameters [4,5];4 identifier [] token;5 identifier [] dstore;6 block [7,15,23,41,52,69];7 expression_statement [8];8 assignment [9,10];9 identifier [] taxo;10 attribute [11,14];11 subscript [12,13];12 identifier [] dstore;13 string [] asset... | Display the number of units by taxonomy |
0 module [1];1 function_definition [2,3,7];2 function_name [] _get_connection;3 parameters [4,5,6];4 identifier [] self;5 identifier [] x;6 identifier [] y;7 block [8];8 if_statement [9,27,34];9 () [10];10 boolean_operator [11,22] or;11 boolean_operator [12,17] or;12 comparison_operator [13,16] is;13 attribute [14,15];... | Get the appropriate connection for a chip. |
0 module [1];1 function_definition [2,3,7];2 function_name [] add;3 parameters [4,5];4 identifier [] self;5 list_splat_pattern [6];6 identifier [] tasks;7 block [8,18,28];8 expression_statement [9];9 assignment [10,11];10 identifier [] nodes;11 list_comprehension [12,15];12 attribute [13,14];13 identifier [] x;14 ident... | Interfaces the GraphNode `add` method |
0 module [1];1 function_definition [2,3,13];2 function_name [] load;3 parameters [4,5,6,9];4 identifier [] self;5 identifier [] url;6 default_parameter [7,8];7 identifier [] offset;8 integer [] 0;9 default_parameter [10,11];10 identifier [] length;11 unary_operator [12] -;12 integer [] 1;13 block [14,25,32,45,75,87];14... | Load a file-like reader from the local file system |
0 module [1];1 function_definition [2,3,5];2 function_name [] _disconnect;3 parameters [4];4 identifier [] self;5 block [6,26,33,43];6 if_statement [7,18];7 boolean_operator [8,12] or;8 not_operator [9];9 attribute [10,11];10 identifier [] self;11 identifier [] protocol;12 not_operator [13];13 attribute [14,17];14 attr... | Disconnect from the transport. |
0 module [1];1 function_definition [2,3,6];2 function_name [] _get_tables;3 parameters [4,5];4 identifier [] self;5 identifier [] ods;6 block [7,15,29];7 expression_statement [8];8 assignment [9,10];9 identifier [] childnodes;10 attribute [11,14];11 attribute [12,13];12 identifier [] ods;13 identifier [] spreadsheet;14... | Returns list of table nodes from ods object |
0 module [1];1 function_definition [2,3,5];2 function_name [] parse_command_line;3 parameters [4];4 identifier [] self;5 block [6,15,26];6 expression_statement [7];7 assignment [8,9];8 identifier [] result;9 call [10,13];10 attribute [11,12];11 identifier [] _Distribution;12 identifier [] parse_command_line;13 argument... | Process features after parsing command line options |
0 module [1];1 function_definition [2,3,6];2 function_name [] _from_dict;3 parameters [4,5];4 identifier [] cls;5 identifier [] _dict;6 block [7,11,27,43,59,75,101];7 expression_statement [8];8 assignment [9,10];9 identifier [] args;10 dictionary [];11 if_statement [12,15];12 comparison_operator [13,14] in;13 string []... | Initialize a Classification object from a json dictionary. |
0 module [1];1 function_definition [2,3,6];2 function_name [] validate;3 parameters [4,5];4 identifier [] self;5 identifier [] value;6 block [7,20,32];7 expression_statement [8];8 assignment [9,10];9 identifier [] value;10 call [11,18];11 attribute [12,17];12 call [13,14];13 identifier [] super;14 argument_list [15,16]... | Always returns a Python boolean. |
0 module [1];1 function_definition [2,3,4];2 function_name [] clear_cache_root;3 parameters [];4 block [5,12,96];5 expression_statement [6];6 call [7,10];7 attribute [8,9];8 identifier [] logger;9 identifier [] debug;10 argument_list [11];11 string [] Clearing root cache;12 if_statement [13,21];13 call [14,19];14 attri... | Clears everything in the song cache |
0 module [1];1 function_definition [2,3,7];2 function_name [] _is_excluded;3 parameters [4,5,6];4 identifier [] self;5 identifier [] path;6 identifier [] dir_only;7 block [8];8 return_statement [9];9 boolean_operator [10,13] and;10 attribute [11,12];11 identifier [] self;12 identifier [] npatterns;13 call [14,17];14 at... | Check if file is excluded. |
0 module [1];1 function_definition [2,3,5];2 function_name [] _clear;3 parameters [4];4 identifier [] self;5 block [6,17];6 expression_statement [7];7 assignment [8,12];8 tuple_pattern [9,10,11];9 identifier [] colour;10 identifier [] attr;11 identifier [] bg;12 subscript [13,16];13 attribute [14,15];14 identifier [] s... | Clear the current canvas. |
0 module [1];1 function_definition [2,3,20];2 function_name [] add_option;3 parameters [4,5,8,11,14,17];4 identifier [] self;5 default_parameter [6,7];6 identifier [] K;7 None [];8 default_parameter [9,10];9 identifier [] price;10 None [];11 default_parameter [12,13];12 identifier [] St;13 None [];14 default_parameter ... | Add an option to the object's `options` container. |
0 module [1];1 function_definition [2,3,5];2 function_name [] rpm_eval;3 parameters [4];4 identifier [] macro;5 block [6,57];6 try_statement [7,35];7 block [8];8 expression_statement [9];9 assignment [10,11];10 identifier [] value;11 call [12,34];12 attribute [13,33];13 subscript [14,32];14 call [15,31];15 attribute [1... | Get value of given macro using rpm tool |
0 module [1];1 function_definition [2,3,8];2 function_name [] _log_task_info;3 parameters [4,5];4 identifier [] headers;5 default_parameter [6,7];6 identifier [] extra_task_info;7 None [];8 block [9,17,30,63,72];9 expression_statement [10];10 assignment [11,12];11 identifier [] ran_at;12 call [13,16];13 attribute [14,1... | Processes the header from task requests to log analytical data. |
0 module [1];1 function_definition [2,3,5];2 function_name [] serialize;3 parameters [4];4 identifier [] self;5 block [6,10,32,42,58,68,86,104];6 expression_statement [7];7 assignment [8,9];8 identifier [] res;9 string [] <?xml version="1.0" encoding="UTF-8"?>;10 for_statement [11,12,15];11 identifier [] ns;12 attribut... | Return the string representation of the receiver. |
0 module [1];1 function_definition [2,3,5];2 function_name [] getCoeffStr;3 parameters [4];4 identifier [] self;5 block [6,10,30];6 expression_statement [7];7 assignment [8,9];8 identifier [] txt;9 string [];10 for_statement [11,14,21];11 pattern_list [12,13];12 identifier [] key;13 identifier [] val;14 call [15,20];15... | get the distortion coeffs in a formated string |
0 module [1];1 function_definition [2,3,5];2 function_name [] escape_header;3 parameters [4];4 identifier [] val;5 block [6,13];6 if_statement [7,10];7 comparison_operator [8,9] is;8 identifier [] val;9 None [];10 block [11];11 return_statement [12];12 None [];13 try_statement [14,26];14 block [15];15 return_statement ... | Escapes a value so that it can be used in a mime header |
0 module [1];1 function_definition [2,3,7];2 function_name [] discover_settings;3 parameters [4];4 default_parameter [5,6];5 identifier [] conf_base;6 None [];7 block [8,30,46,59,67,75];8 expression_statement [9];9 assignment [10,11];10 identifier [] settings;11 dictionary [12,15,18,21,24,27];12 pair [13,14];13 string ... | Discover custom settings for ZMQ path |
0 module [1];1 function_definition [2,3,6];2 function_name [] _perm_dict_from_pyxb;3 parameters [4,5];4 identifier [] self;5 identifier [] access_pyxb;6 block [7,16];7 expression_statement [8];8 assignment [9,10];9 identifier [] subj_dict;10 call [11,14];11 attribute [12,13];12 identifier [] self;13 identifier [] _subj... | Return dict representation of AccessPolicy PyXB obj. |
0 module [1];1 function_definition [2,3,5];2 function_name [] RunOnce;3 parameters [4];4 identifier [] self;5 block [6,8,23];6 global_statement [7];7 identifier [] WEBAUTH_MANAGER;8 expression_statement [9];9 assignment [10,11];10 identifier [] WEBAUTH_MANAGER;11 call [12,22];12 call [13,16];13 attribute [14,15];14 ide... | Run this once on init. |
0 module [1];1 function_definition [2,3,6];2 function_name [] predict;3 parameters [4,5];4 identifier [] self;5 identifier [] X;6 block [7];7 return_statement [8];8 call [9,12];9 attribute [10,11];10 identifier [] self;11 identifier [] __cost;12 argument_list [13,21,22];13 call [14,17];14 attribute [15,16];15 identifie... | Returns predictions of input test cases. |
0 module [1];1 function_definition [2,3,6];2 function_name [] _generate_time_steps;3 parameters [4,5];4 identifier [] self;5 identifier [] trajectory_list;6 block [7];7 for_statement [8,9,18];8 identifier [] time_step;9 call [10,15];10 attribute [11,14];11 attribute [12,13];12 identifier [] env_problem;13 identifier []... | Transforms time step observations to frames of a video. |
0 module [1];1 function_definition [2,3,8];2 function_name [] pdebug;3 parameters [4,6];4 list_splat_pattern [5];5 identifier [] args;6 dictionary_splat_pattern [7];7 identifier [] kwargs;8 block [9];9 if_statement [10,21];10 call [11,12];11 identifier [] should_msg;12 argument_list [13];13 call [14,17];14 attribute [1... | print formatted output to stdout with indentation control |
0 module [1];1 function_definition [2,3,11];2 function_name [] changes;3 parameters [4,5,8];4 identifier [] self;5 default_parameter [6,7];6 identifier [] adding;7 None [];8 default_parameter [9,10];9 identifier [] deleting;10 None [];11 block [12,30,48,54,60,92];12 if_statement [13,16];13 comparison_operator [14,15] i... | Pass the given changes to the root_node. |
0 module [1];1 function_definition [2,3,5];2 function_name [] _raw;3 parameters [4];4 identifier [] s;5 block [6,28,35,42,52,70];6 if_statement [7,12];7 call [8,9];8 identifier [] isinstance;9 argument_list [10,11];10 identifier [] s;11 identifier [] list;12 block [13];13 expression_statement [14];14 assignment [15,16]... | Get raw representation of s, truncating if too long. |
0 module [1];1 function_definition [2,3,11];2 function_name [] output_to_graphviz;3 parameters [4,5,8];4 identifier [] file;5 default_parameter [6,7];6 identifier [] namer;7 identifier [] _graphviz_default_namer;8 default_parameter [9,10];9 identifier [] block;10 None [];11 block [12];12 expression_statement [13];13 ca... | Walk the block and output it in graphviz format to the open file. |
0 module [1];1 function_definition [2,3,5];2 function_name [] create_shared_noise;3 parameters [4];4 identifier [] count;5 block [6,10,33];6 expression_statement [7];7 assignment [8,9];8 identifier [] seed;9 integer [] 123;10 expression_statement [11];11 assignment [12,13];12 identifier [] noise;13 call [14,29];14 attr... | Create a large array of noise to be shared by all workers. |
0 module [1];1 function_definition [2,3,5];2 function_name [] addContinuousSearchOptions;3 parameters [4];4 identifier [] parser;5 block [6,11,16,21];6 expression_statement [7];7 call [8,9];8 identifier [] addContinuousSetIdArgument;9 argument_list [10];10 identifier [] parser;11 expression_statement [12];12 call [13,1... | Adds common options to a continuous search command line parser. |
0 module [1];1 function_definition [2,3,22];2 function_name [] list_product_versions_for_build_configuration;3 parameters [4,7,10,13,16,19];4 default_parameter [5,6];5 identifier [] id;6 None [];7 default_parameter [8,9];8 identifier [] name;9 None [];10 default_parameter [11,12];11 identifier [] page_size;12 integer [... | List all ProductVersions associated with a BuildConfiguration |
0 module [1];1 function_definition [2,3,5];2 function_name [] _purge_expired;3 parameters [4];4 identifier [] self;5 block [6,18,22,47];6 expression_statement [7];7 assignment [8,9];8 identifier [] time_horizon;9 binary_operator [10,15] -;10 call [11,14];11 attribute [12,13];12 identifier [] time;13 identifier [] time;... | Remove all expired entries from the cache. |
0 module [1];1 function_definition [2,3,6];2 function_name [] finalize;3 parameters [4,5];4 identifier [] self;5 identifier [] sched;6 block [7,18];7 expression_statement [8];8 call [9,16];9 attribute [10,15];10 call [11,12];11 identifier [] super;12 argument_list [13,14];13 identifier [] AddCoro;14 identifier [] self;... | Return a reference to the instance of the newly added coroutine. |
0 module [1];1 function_definition [2,3,6];2 function_name [] _is_suffix;3 parameters [4,5];4 identifier [] self;5 identifier [] t;6 block [7];7 return_statement [8];8 boolean_operator [9,12] and;9 comparison_operator [10,11] not in;10 identifier [] t;11 identifier [] NOT_SUFFIX;12 () [13];13 boolean_operator [14,23] o... | Return true if t is a suffix. |
0 module [1];1 function_definition [2,3,6];2 function_name [] _filter_data;3 parameters [4,5];4 identifier [] self;5 identifier [] pattern;6 block [7,11,15,48,54];7 expression_statement [8];8 assignment [9,10];9 identifier [] removed;10 list [] [];11 expression_statement [12];12 assignment [13,14];13 identifier [] filt... | Removes parameters which match the pattern from the config data |
0 module [1];1 function_definition [2,3,7];2 function_name [] Betainc;3 parameters [4,5,6];4 identifier [] a;5 identifier [] b;6 identifier [] x;7 block [8];8 return_statement [9];9 expression_list [10];10 call [11,16];11 attribute [12,15];12 attribute [13,14];13 identifier [] sp;14 identifier [] special;15 identifier ... | Complemented, incomplete gamma op. |
0 module [1];1 function_definition [2,3,6];2 function_name [] genslices_ndim;3 parameters [4,5];4 identifier [] ndim;5 identifier [] shape;6 block [7,23];7 expression_statement [8];8 assignment [9,10];9 identifier [] iterables;10 list_comprehension [11,17];11 call [12,13];12 identifier [] genslices;13 argument_list [14... | Generate all possible slice tuples for 'shape'. |
0 module [1];1 function_definition [2,3,7];2 function_name [] _add_filter_node;3 parameters [4,5,6];4 identifier [] root;5 identifier [] filter_;6 identifier [] value;7 block [8,18,28];8 expression_statement [9];9 assignment [10,11];10 identifier [] filter_el;11 call [12,15];12 attribute [13,14];13 identifier [] Elemen... | Adds filter xml node to root. |
0 module [1];1 function_definition [2,3,5];2 function_name [] refresh;3 parameters [4];4 identifier [] self;5 block [6,17,23];6 if_statement [7,10];7 attribute [8,9];8 identifier [] self;9 identifier [] exists;10 block [11];11 expression_statement [12];12 call [13,16];13 attribute [14,15];14 identifier [] self;15 ident... | Refresh the cache by deleting the old one and creating a new one. |
0 module [1];1 function_definition [2,3,12];2 function_name [] _send_rpc;3 parameters [4,5,6,7,8,9,10,11];4 identifier [] self;5 identifier [] device_info;6 identifier [] control_info;7 identifier [] address;8 identifier [] rpc_id;9 identifier [] payload;10 identifier [] poll_interval;11 identifier [] timeout;12 block ... | Write and trigger an RPC. |
0 module [1];1 function_definition [2,3,8];2 function_name [] tob;3 parameters [4,5];4 identifier [] data;5 default_parameter [6,7];6 identifier [] enc;7 string [] utf8;8 block [9];9 return_statement [10];10 conditional_expression [11,17,24] if;11 call [12,15];12 attribute [13,14];13 identifier [] data;14 identifier []... | Convert anything to bytes |
0 module [1];1 function_definition [2,3,5];2 function_name [] remove_nullchars;3 parameters [4];4 identifier [] block;5 block [6,15,33];6 expression_statement [7];7 assignment [8,9];8 identifier [] data;9 call [10,13];10 attribute [11,12];11 identifier [] block;12 identifier [] lstrip;13 argument_list [14];14 string []... | Strips NULL chars taking care of bytes alignment. |
0 module [1];1 function_definition [2,3,5];2 function_name [] _get_program;3 parameters [4];4 identifier [] self;5 block [6];6 return_statement [7];7 call [8,13];8 attribute [9,12];9 attribute [10,11];10 identifier [] ansible_mitogen;11 identifier [] target;12 identifier [] get_small_file;13 argument_list [14,19];14 ke... | Fetch the module binary from the master if necessary. |
0 module [1];1 function_definition [2,3,6];2 function_name [] _rules_from_env;3 parameters [4,5];4 identifier [] self;5 identifier [] val;6 block [7,16,37];7 expression_statement [8];8 assignment [9,10];9 identifier [] val;10 call [11,14];11 attribute [12,13];12 identifier [] val;13 identifier [] split;14 argument_list... | Transforms rules list from env-string to python. |
0 module [1];1 function_definition [2,3,10];2 function_name [] log_once;3 parameters [4,5,6,8];4 identifier [] log_func;5 identifier [] msg;6 list_splat_pattern [7];7 identifier [] args;8 dictionary_splat_pattern [9];9 identifier [] kwargs;10 block [11];11 if_statement [12,15];12 comparison_operator [13,14] not in;13 i... | Logs a message only once. |
0 module [1];1 function_definition [2,3,11];2 function_name [] reset_password;3 parameters [4,5,8];4 identifier [] self;5 default_parameter [6,7];6 identifier [] token;7 None [];8 default_parameter [9,10];9 identifier [] login_user;10 None [];11 block [12,20,64,83,114,121,133,154];12 expression_statement [13];13 assign... | Resets the password of the user identified by the token |
0 module [1];1 function_definition [2,3,9];2 function_name [] publish_message_to_centrifugo;3 parameters [4,5,6,7];4 identifier [] sender;5 identifier [] instance;6 identifier [] created;7 dictionary_splat_pattern [8];8 identifier [] kwargs;9 block [10];10 if_statement [11,14];11 comparison_operator [12,13] is;12 ident... | Publishes each saved message to Centrifugo. |
0 module [1];1 function_definition [2,3,5];2 function_name [] master_tops;3 parameters [4];4 identifier [] self;5 block [6,17,36,54];6 expression_statement [7];7 call [8,11];8 attribute [9,10];9 identifier [] log;10 identifier [] debug;11 argument_list [12];12 concatenated_string [13,14,15,16];13 string [] The _ext_nod... | Return the metadata derived from the master_tops system |
0 module [1];1 function_definition [2,3,9];2 function_name [] bank_account_query;3 parameters [4,5,6,7,8];4 identifier [] self;5 identifier [] number;6 identifier [] date;7 identifier [] account_type;8 identifier [] bank_id;9 block [10];10 return_statement [11];11 call [12,15];12 attribute [13,14];13 identifier [] self... | Bank account statement request |
0 module [1];1 function_definition [2,3,6];2 function_name [] remove_partition;3 parameters [4,5];4 identifier [] self;5 identifier [] partition;6 block [7];7 if_statement [8,13,32];8 comparison_operator [9,10] in;9 identifier [] partition;10 attribute [11,12];11 identifier [] self;12 identifier [] _partitions;13 block... | Remove partition from partition list. |
0 module [1];1 function_definition [2,3,5];2 function_name [] json_data;3 parameters [4];4 identifier [] self;5 block [6];6 return_statement [7];7 dictionary [8,13,18,23];8 pair [9,10];9 string [] info_in_id;10 attribute [11,12];11 identifier [] self;12 identifier [] info_in_id;13 pair [14,15];14 string [] info_out_id;... | The json representation of a transformation. |
0 module [1];1 function_definition [2,3,6];2 function_name [] write_device_config;3 parameters [4,5];4 identifier [] self;5 identifier [] device_config;6 block [7,33];7 if_statement [8,19];8 not_operator [9];9 call [10,15];10 attribute [11,14];11 attribute [12,13];12 identifier [] self;13 identifier [] capabilities;14 ... | Write a DEVICE_CONFIG to the YubiKey NEO. |
0 module [1];1 function_definition [2,3,6];2 function_name [] _add_plots_to_output;3 parameters [4,5];4 identifier [] out;5 identifier [] data;6 block [7,13,21,32,40,51,59,70];7 expression_statement [8];8 assignment [9,12];9 subscript [10,11];10 identifier [] out;11 string [] plot;12 dictionary [];13 expression_stateme... | Add CNVkit plots summarizing called copy number values. |
0 module [1];1 function_definition [2,3,5];2 function_name [] _adjust_font;3 parameters [4];4 identifier [] self;5 block [6,18,31,54,69,77];6 expression_statement [7];7 assignment [8,9];8 identifier [] fnames;9 list_comprehension [10,11];10 identifier [] k;11 for_in_clause [12,13];12 identifier [] k;13 call [14,17];14 ... | Ensure the font name is from our list and correctly spelled. |
0 module [1];1 function_definition [2,3,5];2 function_name [] check;3 parameters [4];4 identifier [] self;5 block [6];6 for_statement [7,10,17];7 tuple_pattern [8,9];8 identifier [] path;9 identifier [] handler;10 call [11,16];11 attribute [12,15];12 attribute [13,14];13 identifier [] self;14 identifier [] handlers;15 ... | Check if a file is changed |
0 module [1];1 function_definition [2,3,6];2 function_name [] link_href;3 parameters [4,5];4 identifier [] self;5 identifier [] rel;6 block [7,16,28];7 expression_statement [8];8 assignment [9,10];9 identifier [] link;10 call [11,14];11 attribute [12,13];12 identifier [] self;13 identifier [] link;14 argument_list [15]... | Look for link with specified rel, return href from it or None. |
0 module [1];1 function_definition [2,3,5,11];2 function_name [] default;3 parameters [4];4 identifier [] self;5 type [6];6 generic_type [7,8];7 identifier [] Optional;8 type_parameter [9];9 type [10];10 identifier [] ScalarValue;11 block [12,19,30];12 if_statement [13,16];13 attribute [14,15];14 identifier [] self;15 ... | Default value of the receiver, if any. |
0 module [1];1 function_definition [2,3,8];2 function_name [] chi_eff;3 parameters [4,5,6,7];4 identifier [] mass1;5 identifier [] mass2;6 identifier [] spin1z;7 identifier [] spin2z;8 block [9];9 return_statement [10];10 binary_operator [11,19] /;11 () [12];12 binary_operator [13,16] +;13 binary_operator [14,15] *;14 ... | Returns the effective spin from mass1, mass2, spin1z, and spin2z. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.